PageSourceSearch

https://portal.privacypillar.com/default-src_app_privacy_dsar_webforms_webforms_module_ts.e548338b87b6e90f.js

js privacypillar.com collected 2026-09-24 09:08:29 UTC 33,349 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["default-src_app_privacy_dsar_webforms_webforms_module_ts","src_app_guards_dirty-check_guards_ts"],{19688:(k,_,a)=>{a.d(_,{c:()=>y});var b=a(94650);let y=(()=>{const g=class{canDeactivate(h,u,t,v){const f=h.canDeactivate(h,u,t,v);return!0!==f&&!1!==f?f:!0===f||confirm("You have unsaved changes. If you leave, your changes will be lost.")}};let d=g;return g.\u0275fac=function(u){return new(u||g)},g.\u0275prov=b.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"}),d})()},29164:(k,_,a)=>{a.r(_),a.d(_,{WebformsModule:()=>Pt});var b=a(22096),y=a(67195),d=a(51692),g=a(3940),l=a(24006),h=a(72986),u=a(92340),t=a(94650),v=a(81536),f=a(7904),x=a(64491),T=a(37407),I=a(59922),q=a(20388),O=a(11481),p=a(36895),P=a(32320),Z=a(4358),U=a(12553),S=a(2854);function R(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"button",22),t.NdJ("click",function(){t.CHM(s);const n=t.oxw(2).$implicit,o=t.oxw();return t.KtG(o.deleteForm(n))}),t._uU(1,"Delete"),t.qZA()}}const L=function(i,r){return{"badge-success":i,"badge-light":r}};function N(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"p",8),t._uU(5," Name"),t.qZA(),t.TgZ(6,"div",9)(7,"span",10),t._uU(8),t.qZA()()(),t.TgZ(9,"div",11)(10,"p",12),t._uU(11," Organization"),t.qZA(),t.TgZ(12,"div",13)(13,"span",10),t._uU(14),t.qZA()()(),t.TgZ(15,"div",14)(16,"p",12),t._uU(17,"Property "),t.qZA(),t.TgZ(18,"div",13)(19,"span",10),t._uU(20),t.qZA()()(),t.TgZ(21,"div",15)(22,"p",12),t._uU(23,"Create "),t.qZA(),t.TgZ(24,"div",13)(25,"span",16),t._uU(26),t.ALo(27,"date"),t.qZA()()(),t.TgZ(28,"div",14)(29,"p",12),t._uU(30,"Status "),t.qZA(),t.TgZ(31,"div",9)(32,"span",17),t._uU(33),t.qZA()()(),t.TgZ(34,"div",15)(35,"p",12),t._uU(36,"Update "),t.qZA(),t.TgZ(37,"div",13)(38,"span",16),t._uU(39),t.ALo(40,"date"),t.qZA()()()()(),t.TgZ(41,"div",18)(42,"button",19),t.NdJ("click",function(){t.CHM(s);const n=t.oxw().$implicit,o=t.oxw();return t.KtG(o.showForm(n))}),t._uU(43,"View"),t.qZA(),t.TgZ(44,"button",20),t.NdJ("click",function(){t.CHM(s);const n=t.oxw().$implicit,o=t.oxw();return t.KtG(o.goToPublishHistory(n))}),t._uU(45,"Publish History"),t.qZA(),t.YNc(46,R,2,0,"button",21),t.qZA()()}if(2&i){const s=t.oxw().$implicit,e=t.oxw();
1t.xp6(8),t.Oqu(s.form_name?s.form_name:"form name not available"),t.xp6(6),t.Oqu(e.currentOrganization),t.xp6(6),t.Oqu(e.currentPropertyName),t.xp6(6),t.Oqu(t.xi3(27,8,s.created_at,"medium")),t.xp6(6),t.Q6J("ngClass",t.WLB(14,L,"publish"==s.form_status,"draft"==s.form_status||"Draft"==s.form_status)),t.xp6(1),t.Oqu(s.form_status),t.xp6(6),t.hij(" ",t.xi3(40,11,s.updated_at,"medium"),""),t.xp6(7),t.Q6J("ngIf","publish"!==s.form_status)}}function J(i,r){if(1&i&&(t.ynx(0),t.YNc(1,N,47,17,"div",3),t.BQk()),2&i){const s=r.$implicit;t.xp6(1),t.Q6J("ngIf",s.active)}}let W=(()=>{const r=class{constructor(e){this.activatedRouter=e,this.onClickViewForm=new t.vpe,this.onDeleteWebForm=new t.vpe,this.onClickPublishHistory=new t.vpe}ngOnInit(){this.activatedRouter.queryParams.subscribe(e=>{this.oID=e.oid,this.pID=e.pid})}showForm(e){this.onClickViewForm.emit(e)}deleteForm(e){this.onDeleteWebForm.emit(e)}goToPublishHistory(e){this.onClickPublishHistory.emit(e)}};let i=r;return r.\u0275fac=function(n){return new(n||r)(t.Y36(d.gz))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-customcards"]],inputs:{dataList:"dataList",currentOrganization:"currentOrganization",currentPropertyName:"currentPropertyName"},outputs:{onClickViewForm:"onClickViewForm",onDeleteWebForm:"onDeleteWebForm",onClickPublishHistory:"onClickPublishHistory"},decls:3,vars:1,consts:[[1,"webform-wrapper"],[1,"card-columns"],[4,"ngFor","ngForOf"],["class","card",4,"ngIf"],[1,"card"],[1,"card-body"],[1,"row"],[1,"col-7"],[1,"tx-11","tx-medium","tx-color-03","tx-spacing-1","tx-nowrap","mg-b-5"],[1,"d-flex","align-items-center"],[1,"tx-12","tx-normal","tx-spacing-1","tx-color-01"],[1,"col-5","pr-0","pl-0"],[1,"tx-11","tx-medium","tx-color-03","tx-spacing-1","mg-b-5"],[1,"d-flex"],[1,"col-7","mg-t-10"],[1,"col-5","mg-t-10","pr-0","pl-0"],[1,"tx-10","tx-medium","tx-color-01"],[1,"tx-color-05","badge","text-capitalize",3,"ngClass"],[1,"card-footer","flex-justify-content"],["tooltip","Click here to view the webform",1,"btn","btn-primary","btn-xs","button",3,"click"],["tooltip","Click here to view the history of web forms like Version, Form Name, Publish Date, and Status.",1,"btn","btn-outline-primary","btn-xs","button",3,"click"],["class","btn btn-outline-danger btn-xs button",3,"click",4,"ngIf"],[1,"btn","btn-outline-danger","btn-xs","button",3,"click"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1),t.YNc(2,J,2,1,"ng-container",2),t.qZA()()),2&n&&(t.xp6(2),t.Q6J("ngForOf",o.dataList))},dependencies:[p.mk,p.sg,p.O5,P.i9,p.uU],styles:[".webform-wrapper[_ngcontent-%COMP%]   .card-columns[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.webform-wrapper[_ngcontent-%COMP%]   .card-columns[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{display:inline-block;width:32%}.flex-justify-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.btn-outline-danger[_ngcontent-%COMP%]:disabled{pointer-events:none}"]}),i})();const H=function(i){return{active:i}};function z(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"li",9),t.NdJ("click",function(){const o=t.CHM(s).$implicit,c=t.oxw();return t.KtG(c.onClickPage(o))}),t.TgZ(1,"a",10),t._uU(2),t.qZA()()}if(2&i){const s=r.$implicit,e=t.oxw();t.Q6J("ngClass",t.VKq(2,H,e.activePage===s)),t.xp6(2),t.Oqu(s)}}let Y=(()=>{const r=class{constructor(){this.totalRecords=0,this.recordsPerPage=0,this.onPageChange=new t.vpe,this.pages=[]}ngOnInit(){}ngOnChanges(){const e=this.getPageCount();this.pages=this.getArrayOfPage(e),this.activePage=1,this.onPageChange.emit(1)}getPageCount(){let e=0;if(this.totalRecords>0&&this.recordsPerPage>0){const n=this.totalRecords/this.recordsPerPage,o=Math.floor(n);e=o<n?o+1:o}return e}getArrayOfPage(e){const n=[];if(e>0)for(let o=1;o<=e;o++)n.push(o);return n}onClickPage(e){e>=1&&e<=this.pages.length&&(this.activePage=e,this.onPageChange.emit(this.activePage))}};let i=r;return r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-custompagination"]],inputs:{totalRecords:"totalRecords",recordsPerPage:"recordsPerPage"},outputs:{onPageChange:"onPageChange"},features:[t.TTD],decls:15,vars:7,consts:[["aria-label","page navigation example",1,"paginator"],[1,"pagination"],[1,"page-item",3,"click"],["href","javascript:void(0);",1,"page-link",3,"ngClass"],["src","../../../assets/imgs/angle-double-left.svg","alt","angle-double-left","width","30px","height","30px",3,"ngClass"],["src","../../../assets/imgs/angle-left.svg","alt","angle-left","width","30px","height","30px",3,"ngClass"],["class","page-item",3,"ngClass","click",4,"ngFor","ngForOf"],["src","../../../assets/imgs/angle-right.svg","alt","angle-right","width","30px","height","30px",1,"apply-opacity-dark"],["src","../../../assets/imgs/angle-double-right.svg","alt","angle-double-right","width","30px","height","30px",1,"apply-opacity-dark"],[1,"page-item",3,"ngClass","click"],["href","javascript:void(0);",1,"page-link"]],template:function(n,o){1&n&&(t.TgZ(0,"nav",0)(1,"ul",1)(2,"li",2),t.NdJ("click",function(){return o.activePage>1?o.onClickPage(1):""}),t.TgZ(3,"a",3),t._UZ(4,"img",4),t.qZA()(),t.TgZ(5,"li",2),t.NdJ("click",function(){return o.activePage-1>=1?o.onClickPage(o.activePage-1):""}),t.TgZ(6,"a",3),t._UZ(7,"img",5),t.qZA()(),t.YNc(8,z,3,4,"li",6),t.TgZ(9,"li",2),t.NdJ("click",function(){return o.onClickPage(o.activePage+1)}),t.TgZ(10,"a",3),t._UZ(11,"img",7),t.qZA()(),t.TgZ(12,"li",2),t.NdJ("click",function(){return o.onClickPage(o.pages.length)}),t.TgZ(13,"a",3),t._UZ(14,"img",8),t.qZA()()()()),2&n&&(t.xp6(3),t.Q6J("ngClass",1==o.activePage?"firstnumber":""),t.xp6(1),t.Q6J("ngClass",1==o.activePage?"apply-opacity":"apply-opacity-default"),t.xp6(2),t.Q6J("ngClass",1==o.activePage?"firstnumber":""),t.xp6(1),t.Q6J("ngClass",1==o.activePage?"apply-opacity":"apply-opacity-default"),t.xp6(1),t.Q6J("ngForOf",o.pages),t.xp6(2),t.Q6J("ngClass",o.activePage==o.pages.length?"apply-opacity":""),t.xp6(3),t.Q6J("ngClass",o.activePage==o.pages.length?"apply-opacity":"apply-opacity-default"))},dependencies:[p.mk,p.sg],styles:[".paginator[_ngcontent-%COMP%]   .pagination[_ngcontent-%COMP%]{margin:0}.paginator[_ngcontent-%COMP%] > ul.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   a.page-link[_ngcontent-%COMP%]{box-shadow:none;color:#6c757d;padding:0;border:0}.paginator[_ngcontent-%COMP%] > ul.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{border-radius:5px}ul.pagination[_ngcontent-%COMP%] > li.page-item.active[_ngcontent-%COMP%] > a.page-link[_ngcontent-%COMP%]{border-radius:5px;background:#E3F2FD!important;border-color:#e3f2fd!important;color:#495057!important}ul.paginator[_ngcontent-%COMP%] > ul.pagination[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]   a.page-link[_ngcontent-%COMP%]:hover{border-radius:5px}ul.pagination[_ngcontent-%COMP%] > li.page-item.active[_ngcontent-%COMP%] > a.page-link[_ngcontent-%COMP%]:hover{border-radius:5px;background:#E3F2FD!important;border-color:#e3f2fd!important;color:#495057!important}.firstnumber[_ngcontent-%COMP%]{color:#495057;cursor:auto;background-color:transparent!important}.right-arrow-icon[_ngcontent-%COMP%]{background:url(angle-right.63bbcd9f3413ca8f.svg);background:url(angle-left.86c1c16ce22c8ab7.svg)}.double-right-arrow-icon[_ngcontent-%COMP%]{background:url(angle-double-right.a5ebde7631fa7025.svg)}.double-left-arrow-icon[_ngcontent-%COMP%]{background:url(angle-double-left.47bc30869cc0d9a2.svg)}.apply-opacity[_ngcontent-%COMP%]{opacity:.5}.apply-opacity-dark[_ngcontent-%COMP%]{opacity:.7}.apply-opacity-default[_ngcontent-%COMP%]{opacity:.5}"]}),i})();const Q=["confirmTemplate"];function B(i,r){if(1&i&&(t.TgZ(0,"div"),t._uU(1),t.qZA()),2&i){const s=t.oxw();
1t.xp6(1),t.Oqu(s.dataLoadingMsg)}}function j(i,r){1&i&&t._UZ(0,"span",23)}function E(i,r){if(1&i&&(t.TgZ(0,"span"),t.YNc(1,j,1,0,"span",22),t._uU(2,"Loading.."),t.qZA()),2&i){const s=t.oxw();t.xp6(1),t.Q6J("ngIf",s.isLoadingData)}}function G(i,r){1&i&&(t.TgZ(0,"span"),t._uU(1,"No records found"),t.qZA())}function K(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"div",24)(1,"div",25)(2,"div",26)(3,"select",27),t.NdJ("ngModelChange",function(n){t.CHM(s);const o=t.oxw();return t.KtG(o.numofRecords=n)})("change",function(n){t.CHM(s);const o=t.oxw();return t.KtG(o.onPagesizeChangeEvent(n))}),t.TgZ(4,"option",28),t._uU(5,"2"),t.qZA(),t.TgZ(6,"option",29),t._uU(7,"5"),t.qZA(),t.TgZ(8,"option",30),t._uU(9,"10"),t.qZA()()()(),t.TgZ(10,"app-custompagination",31),t.NdJ("onPageChange",function(n){t.CHM(s);const o=t.oxw();return t.KtG(o.displayActivePage(n))}),t.qZA(),t._uU(11),t.qZA()}if(2&i){const s=t.oxw();t.xp6(3),t.Q6J("ngModel",s.numofRecords),t.xp6(7),t.Q6J("totalRecords",s.totalRecordsAvailable)("recordsPerPage",s.numofRecords),t.xp6(1),t.lnq(" Showing ",s.fromNumbers," to ",s.toNumbers," of ",s.totalRecordsAvailable," ")}}function V(i,r){1&i&&(t.TgZ(0,"div",43),t._uU(1," Enter appropriate text "),t.qZA())}function $(i,r){if(1&i&&(t.TgZ(0,"button",44),t._uU(1),t.qZA()),2&i){const s=t.oxw(2);t.xp6(1),t.hij("I understand the consequences, delete this ",s.controlname,"")}}const X=function(i){return{"is-invalid":i}};function tt(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"div",32)(1,"h5",33),t._uU(2,"Are you absolutely sure?"),t.qZA(),t.TgZ(3,"button",34),t.NdJ("click",function(){t.CHM(s);const n=t.oxw();return t.KtG(n.cancelModal())}),t.TgZ(4,"span",35),t._uU(5,"\xd7"),t.qZA()()(),t.TgZ(6,"div",36)(7,"p"),t._uU(8,"This will delete selected "),t.TgZ(9,"span",37),t._uU(10),t.qZA(),t._uU(11),t.qZA(),t.TgZ(12,"p"),t._uU(13,"Please type "),t.TgZ(14,"strong"),t._uU(15,"'Delete'"),t.qZA(),t._uU(16," to confirm"),t.qZA(),t.TgZ(17,"form",38),t.NdJ("ngSubmit",function(){t.CHM(s);const n=t.oxw();return t.KtG(n.onSubmitConfirmation(n.controlname))}),t._UZ(18,"input",39),t.YNc(19,V,2,0,"div",40),t.TgZ(20,"div",41),t.YNc(21,$,2,1,"button",42),t.qZA()()()}if(2&i){const s=t.oxw();t.xp6(10),t.hij(" ",s.showControlContent()," "),t.xp6(1),t.Oqu(s.controlname),t.xp6(6),t.Q6J("formGroup",s.confirmationForm),t.xp6(1),t.Q6J("ngClass",t.VKq(6,X,s.isconfirmationsubmitted&&"Delete"!==s.confirmDelete.userInput.value)),t.xp6(1),t.Q6J("ngIf",s.isconfirmationsubmitted&&"Delete"!==s.confirmDelete.userInput.value),t.xp6(2),t.Q6J("ngIf","web form"==s.controlname)}}function et(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"alert",45),t.NdJ("onClosed",function(){t.CHM(s);const n=t.oxw();return t.KtG(n.onClosed(n.alertMsg))}),t.TgZ(1,"span",46),t._uU(2),t.qZA()()}if(2&i){const s=t.oxw();t.Q6J("type",s.alertType)("dismissible",s.dismissible),t.xp6(2),t.Oqu(s.alertMsg)}}let ot=(()=>{const r=class{constructor(e,n,o,c,m,xt,Tt,Ot,Zt,At,Ft){this.ccpaFormConfigService=e,this.dsarformService=n,this.organizationService=o,this.loading=c,this.userService=m,this.dataService=xt,this.formBuilder=Tt,this.bsmodalService=Ot,this.activateRoute=Zt,this.router=At,this.titleService=Ft,this.formList=[],this.dismissible=!0,this.isOpen=!1,this.isDirty=!1,this.activePage=1,this.numofRecords=10,this.licenseAvailabilityObj={},this.planUsageByOrgid=[],this.isLoadingData=!1,this.activateRoute.queryParamMap.subscribe(M=>{let D=M.get("oid"),w=M.get("pid");null!=this.queryOID&&(this.queryOID!=D||this.queryPID!=w)&&(this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.navigateByUrl(this.router.url)),this.queryOID=D,this.queryPID=w}),this.titleService.setTitle("DSAR Web Forms - "+u.N.portalPrefix)}ngOnInit(){this.dsarformService.isFormCreatedFromWizard&&(this.dsarformService.isFormCreatedFromWizard=!1,this.organizationService.isOrganizationUpdated.next(!0)),this.loadCurrentProperty(),this.licenseAvailabilityForFormAndRequestPerOrg(this.currentOrgID),this.confirmationForm=this.formBuilder.group({userInput:["",[l.kI.required]]})}get confirmDelete(){return this.confirmationForm.controls}loadCurrentProperty(){if(void 0!==this.organizationService.getCurrentOrgWithProperty()&&null!==this.organizationService.getCurrentOrgWithProperty()){const e={organization_id:this.organizationService.getCurrentOrgWithProperty().organization_id,organization_name:this.organizationService.getCurrentOrgWithProperty().organization_name,property_id:this.organizationService.getCurrentOrgWithProperty().property_id,property_name:this.organizationService.getCurrentOrgWithProperty().property_name,user_id:this.organizationService.getCurrentOrgWithProperty().user_id};this.orgDetails=e,this.currentOrgID=e.organization_id,this.currentOrganization=e.organization_name,this.currentPropertyName=e.property_name,this.getCCPAFormList(e)}}getCCPAFormList(e){this.loading.start(),this.isLoadingData=!0,void 0!==e&&this.ccpaFormConfigService.getCCPAFormList(e.organization_id||this.queryOID,e.property_id||this.queryPID,this.constructor.name,g.e.dsarWebFormModule,"?limit="+(this.numofRecords?this.numofRecords:10)+"&page="+this.activePage).subscribe(c=>(this.loading.stop(),null!=c?(this.formList=c.response,this.totalRecordsAvailable=c.count,this.isLoadingData=!1,this.formList):(this.isLoadingData=!1,this.formList.length=0)),c=>{this.alertMsg=c,this.isOpen=!0,this.alertType="danger"})}showForm(e){this.dsarformService.removeControls(),this.ccpaFormConfigService.removeControls(),this.ccpaFormConfigService.removeStoredDataBeforeEdit(),this.ccpaFormConfigService.removeStoredFormDataBeforeSavingToDB(),this.ccpaFormConfigService.removeCurrentSelectedFormData(),this.ccpaFormConfigService.captureCurrentSelectedFormData(e),this.router.navigate(["/privacy/dsar/dsarform",e.crid],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})}navigateToPublishHistory(e){this.router.navigate(["/privacy/dsar/webforms/history",e.crid],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})}
1navigateToDSARForm(){this.ccpaFormConfigService.isDSARFormCreated=!1,this.dsarformService.removeControls(),this.ccpaFormConfigService.removeControls(),sessionStorage.removeItem("customdp_dsarformlanguages"),void 0!==this.currentPropertyName||void 0!==this.queryOID&&void 0!==this.queryPID?this.isLicenseLimitAvailable()&&(this.ccpaFormConfigService.removeStoredFormDataBeforeSavingToDB(),this.ccpaFormConfigService.removeCurrentSelectedFormData(),this.router.navigate(["/privacy/dsar/dsarform"],{queryParams:{oid:this.queryOID,pid:this.queryPID},queryParamsHandling:"merge",skipLocationChange:!1})):(this.alertMsg="Please Select property first!",this.isOpen=!0,this.alertType="danger")}onClosed(e){this.alertMsg=!e,this.isOpen=!1}currentLoggedInUser(){this.userService.getLoggedInUserDetails(this.constructor.name,g.e.webFormModule).subscribe(e=>{this.currentUser=e,this.currentuserID=this.currentUser.response.uid})}isLicenseLimitAvailable(){return this.dataService.isLicenseLimitAvailableForOrganizationRestrication("form",this.dataService.getAvailableLicenseForFormAndRequestPerOrg())}licenseAvailabilityForFormAndRequestPerOrg(e){this.dataService.removeAvailableLicenseForFormAndRequestPerOrg(),this.dataService.checkLicenseAvailabilityPerOrganization(e).pipe((0,h.q)(1)).subscribe(n=>{let o={...n[0].response,...n[1].response,...n[2].response};this.dataService.setAvailableLicenseForFormAndRequestPerOrg(o)},n=>{console.log(n)})}canDeactivate(){return this.isDirty}onPagesizeChangeEvent(e){this.numofRecords=Number(e.target.value)}displayActivePage(e){this.activePage=e,this.selectedPageNumber=this.activePage,1===e&&this.totalRecordsAvailable>0&&(this.fromNumbers=e),this.fromNumbers=1===e&&0==this.totalRecordsAvailable?0:this.numofRecords*(this.selectedPageNumber-1)+1;let n=this.numofRecords*this.selectedPageNumber;this.toNumbers=n>=this.totalRecordsAvailable?this.totalRecordsAvailable:n,1!=e&&this.getCCPAFormList(this.orgDetails)}cancelModal(){return this.modalRef.hide(),this.confirmationForm.reset(),this.isconfirmationsubmitted=!1,!1}onSubmitConfirmation(e){return this.isconfirmationsubmitted=!0,!this.confirmationForm.invalid&&"Delete"===this.confirmationForm.value.userInput&&void("web form"===e&&this.confirmDeleteWebForm())}removeWebForm(e,n){this.controlname=n,this.selectedWebForm=e,this.openModal(this.confirmModal)}openModal(e){this.modalRef=this.bsmodalService.show(e,{class:""})}showControlContent(){return this.selectedWebForm.form_name}confirmDeleteWebForm(){const e=this.formList.findIndex(o=>o.crid===this.selectedWebForm.crid);this.modalRef.hide(),this.ccpaFormConfigService.deleteDSARForm(this.selectedWebForm.OID,this.selectedWebForm.PID,this.selectedWebForm.crid,{active:!1},this.constructor.name,g.e.webFormModule).subscribe(o=>{200==o.status&&(-1!=o.response.indexOf("Selected webform")&&(this.formList[e].active=!1,this.formList=[...this.formList],this.totalRecordsAvailable=this.totalRecordsAvailable-1),this.confirmationForm.value.userInput="",this.alertMsg=o.response,this.isOpen=!0,this.alertType="info",this.confirmationForm.controls.userInput.setValue(""),this.isconfirmationsubmitted=!1,this.licenseAvailabilityForFormAndRequestPerOrg(this.currentOrgID),(0==this.totalRecordsAvailable||1==this.totalRecordsAvailable)&&this.organizationService.isOrganizationUpdated.next(!0))},o=>{this.alertMsg=o,this.isOpen=!0,this.alertType="danger",this.confirmationForm.controls.userInput.setValue(""),this.isconfirmationsubmitted=!1})}};let i=r;return r.\u0275fac=function(n){return new(n||r)(t.Y36(v.y),t.Y36(f.i),t.Y36(x.Mn),t.Y36(T.LA),t.Y36(x.KD),t.Y36(I.D),t.Y36(l.QS),t.Y36(q.tT),t.Y36(d.gz),t.Y36(d.F0),t.Y36(O.Dx))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-webforms"]],viewQuery:function(n,o){if(1&n&&t.Gf(Q,5),2&n){let c;t.iGM(c=t.CRH())&&(o.confirmModal=c.first)}},decls:31,vars:8,consts:[["appTheme",""],[1,"mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-0"],[1,"breadcrumb-item"],["aria-current","page",1,"breadcrumb-item","active"],[1,"table-responsive"],[1,"card"],[1,"card-header","d-flex"],[1,"tx-12","tx-color-03","mg-b-0"],[1,"mg-b-0"],["tooltip","The website's owner creates web forms to collect visitors' requests. Click here to create a web form.","placement","left",1,"d-flex","ml-auto","pd-0"],[1,"btn","btn-sm","btn-uppercase","btn-primary",2,"text-transform","none","font-size","12px",3,"click"],["name","plus",1,"feather-16"],[1,"d-none","d-sm-inline","mg-l-5"],[1,"card-body"],[4,"ngIf"],[3,"dataList","currentOrganization","currentPropertyName","onClickViewForm","onDeleteWebForm","onClickPublishHistory"],["class","pagination-wrapper tx-color-03",4,"ngIf"],["confirmTemplate",""],[1,"float-right","flotingdiv"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed",4,"ngIf"],["class","spinner-border spinner-border-sm mr-1",4,"ngIf"],[1,"spinner-border","spinner-border-sm","mr-1"],[1,"pagination-wrapper","tx-color-03"],[1,"form-inline","align-item-start"],[1,"form-group","pr-0"],["id","numofRecords","name","numofRecords",1,"form-control",3,"ngModel","ngModelChange","change"],["value","2"],["value","5"],["value","10"],[3,"totalRecords","recordsPerPage","onPageChange"],[1,"modal-header"],[1,"modal-title"],["type","button","data-dismiss","modal","aria-label","Close",1,"close",3,"click"],["aria-hidden","true"],["appTheme","",1,"modal-body","text-center"],[1,"font-weight-bold"],[3,"formGroup","ngSubmit"],["type","text","formControlName","userIn
1put","name","userInput","required","",1,"form-control",3,"ngClass"],["class","invalid-feedback text-left",4,"ngIf"],[1,"mt-2","d-flex"],["class","btn btn-xs btn-primary btn-block",4,"ngIf"],[1,"invalid-feedback","text-left"],[1,"btn","btn-xs","btn-primary","btn-block"],["dismissOnTimeout","5000",3,"type","dismissible","onClosed"],[1,"mr-3"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"nav",2)(3,"ol",3)(4,"li",4),t._uU(5,"Privacy"),t.qZA(),t.TgZ(6,"li",4),t._uU(7,"Privacy Rights"),t.qZA(),t.TgZ(8,"li",5),t._uU(9,"Web Forms"),t.qZA()()()(),t.TgZ(10,"div",6)(11,"div",7)(12,"div",8)(13,"span",9)(14,"h6",10),t._uU(15,"Privacy Rights Forms"),t.qZA()(),t.TgZ(16,"div",11)(17,"button",12),t.NdJ("click",function(){return o.navigateToDSARForm()}),t._UZ(18,"i-feather",13),t.TgZ(19,"span",14),t._uU(20," Create"),t.qZA()()()(),t.TgZ(21,"div",15),t.YNc(22,B,2,1,"div",16),t.YNc(23,E,3,1,"span",16),t.YNc(24,G,2,0,"span",16),t.TgZ(25,"app-customcards",17),t.NdJ("onClickViewForm",function(m){return o.showForm(m)})("onDeleteWebForm",function(m){return o.removeWebForm(m,"web form")})("onClickPublishHistory",function(m){return o.navigateToPublishHistory(m)}),t.qZA(),t.YNc(26,K,12,6,"div",18),t.qZA()()()(),t.YNc(27,tt,22,8,"ng-template",null,19,t.W1O),t.TgZ(29,"div",20),t.YNc(30,et,3,3,"alert",21),t.qZA()),2&n&&(t.xp6(22),t.Q6J("ngIf",o.dataLoadingMsg),t.xp6(1),t.Q6J("ngIf",o.isLoadingData),t.xp6(1),t.Q6J("ngIf",0==o.totalRecordsAvailable),t.xp6(1),t.Q6J("dataList",o.formList)("currentOrganization",o.currentOrganization)("currentPropertyName",o.currentPropertyName),t.xp6(1),t.Q6J("ngIf",0!==o.totalRecordsAvailable),t.xp6(4),t.Q6J("ngIf",o.isOpen))},dependencies:[l._Y,l.YN,l.Kr,l.Fj,l.EJ,l.JJ,l.JL,l.Q7,l.On,l.sg,l.u,b.u,p.mk,p.O5,P.i9,Z.wx,U.mh,S.E,W,Y],styles:[".webformlist[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}.webformlist[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:block;width:100%;position:relative;padding:0;margin:0;list-style-type:none!important}.webformlist[_ngcontent-%COMP%]{display:block;width:100%;position:relative}.feather-16[_ngcontent-%COMP%]{margin-top:1px}.cardtext[_ngcontent-%COMP%]{border-top:1px solid #ccc;border-bottom:1px solid #ccc;height:40px;padding:10px}.txt-bold[_ngcontent-%COMP%]{font-weight:700;height:10px}.webform-title[_ngcontent-%COMP%]{font-size:15px;font-weight:400;border-bottom:1px solid #ccc}.alert-success[_ngcontent-%COMP%]{background-color:#5cb85c;border-color:#4cae4c;color:#fff;padding:12px 32px 12px 12px!important}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv[_ngcontent-%COMP%]{position:sticky;bottom:40px;right:10px;overflow-x:hidden;overflow-y:auto;z-index:0}.text-capitalize[_ngcontent-%COMP%]{text-transform:capitalize!important}.webform-wrapper[_ngcontent-%COMP%]   .card-columns[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.webform-wrapper[_ngcontent-%COMP%]   .card-columns[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{display:inline-block;width:32%}.align-item-start[_ngcontent-%COMP%]{align-items:flex-start}.pagination-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-top:1px solid #ccc;padding:10px 20px;margin:0 -20px -19px}@media (max-width: 768px){.card-columns[_ngcontent-%COMP%]{column-count:2}}"]}),i})();var it=a(85493),A=a(19688),nt=a(31456),rt=a(94284),C=a(43265),F=a(96923),st=a(42111);function at(i,r){1&i&&(t.TgZ(0,"tr")(1,"th"),t._uU(2,"Version"),t.qZA(),t.TgZ(3,"th"),t._uU(4,"Form Name"),t.qZA(),t.TgZ(5,"th"),t._uU(6,"Publish Date"),t.qZA(),t.TgZ(7,"th"),t._uU(8,"Status"),t.qZA(),t.TgZ(9,"th"),t._uU(10,"Action"),t.qZA()())}function ct(i,r){1&i&&(t.TgZ(0,"span",19),t._uU(1,"Inactive"),t.qZA())}function lt(i,r){1&i&&(t.TgZ(0,"span",20),t._uU(1,"Active"),t.qZA())}function gt(i,r){if(1&i){const s=t.EpF();t.TgZ(0,"div",21)(1,"button",22),t.O4$(),t.TgZ(2,"svg",23),t._UZ(3,"path",24),t.qZA()(),t.kcU(),t.TgZ(4,"div",25)(5,"button",26),t.NdJ("click",function(){t.CHM(s);const n=t.oxw().$implicit,o=t.oxw();return t.KtG(o.onActiveConfig(n.form_id,n.crid))}),t._uU(6,"Rollback"),t.qZA(),t.TgZ(7,"button",26),t.NdJ("click",function(){t.CHM(s);const n=t.oxw().$implicit,o=t.oxw();return t.KtG(o.onDeleteConfig(n.crid))}),t._uU(8,"Delete"),t.qZA()()()}}function dt(i,r){if(1&i&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t._uU(4),t.qZA(),t.TgZ(5,"td"),t._uU(6),t.ALo(7,"date"),t.qZA(),t.TgZ(8,"td"),t.YNc(9,ct,2,0,"span",16),t.YNc(10,lt,2,0,"span",17),t.qZA(),t.TgZ(11,"td"),t.YNc(12,gt,9,0,"div",18),t.qZA()()),2&i){const s=r.$implicit;t.xp6(2),t.hij("V-",s.version_count,""),t.xp6(2),t.Oqu(s.form_name),t.xp6(2),t.Oqu(t.xi3(7,6,s.created_at,"medium")),t.xp6(3),t.Q6J("ngIf",!s.active),t.xp6(1),t.Q6J("ngIf",s.active),t.xp6(2),t.Q6J("ngIf",!s.active)}}function pt(i,r){if(1&i&&(t.TgZ(0,"alert",27),t._uU(1),t.qZA()),2&i){const s=t.oxw();t.Q6J("type",s.alertType),t.xp6(1),t.Oqu(s.alertMsg)}}const mt=function(i,r){return{oid:i,pid:r}},ut=function(){return[10,20,30]},ht=[{path:"",component:ot,canActivate:[it.a1,nt.p,rt.g],canDeactivate:[A.c]},{path:"privacy/dsar/dsarform/:id",loadChildren:()=>Promise.all([a.e("default-node_modules_angular_cdk_fesm2020_overlay_mjs"),a.e("default-node_modules_angular_material_fesm2020_menu_mjs"),a.e("default-src_app__components_customdropdown_customdropdown_component_ts-src_app__components_cu-6819d1"),a.e("default-src_app_privacy_cookie-consent_banner-config_bannerConfigDefaultValue_constant_ts"),a.e("default-node_modules_primeng___ivy_ngcc___fesm2015_primeng-menu_js"),a.e("default-src_app_pagesettings_system_integration_system_integration_module_ts"),a.e("default-src_app__helpers_s
1afe_pipe_ts-src_app__models_dsarwebformdefaultsettings_ts-src_app__-fbba4d"),a.e("default-src_app_privacy_dsar_dsarform_dsarform_module_ts")]).then(a.bind(a,44658)).then(i=>i.DsarformModule),canDeactivate:[A.c]},{path:"history/:crid",component:(()=>{const r=class{constructor(e,n,o,c,m){this.activatedRouter=e,this.loading=n,this.titleService=o,this.router=c,this.ccpaFormConfigurationService=m,this.BannerHistoryList=[],this.isEdit=!1,this.isOpen=!1,this.tLoading=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1}ngOnInit(){this.titleService.setTitle("Publish History - DSAR"),this.activatedRouter.params.subscribe(e=>{this.crid=e.crid}),this.activatedRouter.queryParams.subscribe(e=>{this.oID=e.oid,this.pID=e.pid}),this.onGetBannerHistory()}onGetBannerHistory(){this.loading.start("1"),this.ccpaFormConfigurationService.GetDsarHistory(this.constructor.name,g.e.cookieBannerModule,this.oID,this.pID,this.crid).subscribe(e=>{this.loading.stop("1"),this.BannerHistoryList=e.response,this.tLoading=!1},e=>{this.loading.stop("1"),this.isOpen=!0,this.alertMsg=e,this.alertType="danger",this.tLoading=!1})}onActiveConfig(e,n){this.loading.start("2"),this.ccpaFormConfigurationService.ActiveDsarHistory(this.constructor.name,g.e.cookieBannerModule,this.pID,this.oID,e,n).subscribe(o=>{this.loading.stop("2"),this.onGetBannerHistory(),this.isOpen=!0,this.alertMsg="Configuration Activated",this.alertType="success",this.tLoading=!1},o=>{this.loading.stop("2"),this.isOpen=!0,this.alertMsg=o,this.alertType="danger",this.tLoading=!1})}onDeleteConfig(e){this.loading.start("3"),this.ccpaFormConfigurationService.DeleteDsarHistory(this.constructor.name,g.e.cookieBannerModule,this.pID,this.oID,e).subscribe(n=>{this.loading.stop("3"),this.isOpen=!0,this.alertMsg="Configuration Deleted",this.alertType="success",this.onGetBannerHistory()},n=>{this.loading.stop("3"),this.isOpen=!0,this.alertMsg=n,this.alertType="danger"})}};let i=r;return r.\u0275fac=function(n){return new(n||r)(t.Y36(d.gz),t.Y36(T.LA),t.Y36(O.Dx),t.Y36(d.F0),t.Y36(v.y))},r.\u0275cmp=t.Xpm({type:r,selectors:[["app-dsar-history"]],decls:24,vars:13,consts:[[1,"col-md-9","ml-4"],[1,"d-sm-flex","align-items-center","justify-content-between"],["aria-label","breadcrumb",1,"bredcrub-row",2,"margin-left","-14px"],[1,"breadcrumb","breadcrumb-style1","mg-b-10"],[1,"breadcrumb-item"],["routerLink","/privacy/dsar/webforms",3,"queryParams"],[1,"breadcrumb-item","active"],[1,"card"],[1,"pl-4","pt-3"],[1,"card-body"],["styleClass","p-datatable-sm","currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","rowExpandMode","single",1,"dsar-history","p-paginator-alignment",3,"value","loading","totalRecords","rowsPerPageOptions","paginator","rows","showCurrentPageReport"],["dt",""],["pTemplate","header"],["pTemplate","body","styleClass","p-datatable-responsive-demo"],[1,"col-sm-5","mt-3","mr-0","float-right","flotingdiv"],["dismissOnTimeout","5000",3,"type",4,"ngIf"],["class","product-badge status-outofstock",4,"ngIf"],["class","product-badge status-instock",4,"ngIf"],["ngbDropdown","","class","d-inline-block",4,"ngIf"],[1,"product-badge","status-outofstock"],[1,"product-badge","status-instock"],["ngbDropdown","",1,"d-inline-block"],["id","dropdownBasic1","tooltip","Click to delete or roll back the version","ngbDropdownToggle","",1,"btn","btn-light","bg-white","border-0"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 128 512"],["d","M64 360C94.93 360 120 385.1 120 416C120 446.9 94.93 472 64 472C33.07 472 8 446.9 8 416C8 385.1 33.07 360 64 360zM64 200C94.93 200 120 225.1 120 256C120 286.9 94.93 312 64 312C33.07 312 8 286.9 8 256C8 225.1 33.07 200 64 200zM64 152C33.07 152 8 126.9 8 96C8 65.07 33.07 40 64 40C94.93 40 120 65.07 120 96C120 126.9 94.93 152 64 152z"],["ngbDropdownMenu","","aria-labelledby","dropdownBasic1"],["ngbDropdownItem","",1,"btn","btn-link",3,"click"],["dismissOnTimeout","5000",3,"type"]],template:function(n,o){1&n&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div")(3,"nav",2)(4,"ol",3)(5,"li",4),t._uU(6,"Privacy"),t.qZA(),t.TgZ(7,"li",4),t._uU(8,"Data Subject Access Request"),t.qZA(),t.TgZ(9,"li",4)(10,"a",5),t._uU(11,"Web Forms"),t.qZA()(),t.TgZ(12,"li",6),t._uU(13,"Publish History"),t.qZA()()()()()(),t.TgZ(14,"div",7)(1
15,"h4",8),t._uU(16,"Publish history"),t.qZA(),t.TgZ(17,"div",9)(18,"p-table",10,11),t.YNc(20,at,11,0,"ng-template",12),t.YNc(21,dt,13,9,"ng-template",13),t.qZA()()(),t.TgZ(22,"div",14),t.YNc(23,pt,2,2,"alert",15),t.qZA()),2&n&&(t.xp6(10),t.Q6J("queryParams",t.WLB(9,mt,o.oID,o.pID)),t.xp6(8),t.Q6J("value",o.BannerHistoryList)("loading",o.tLoading)("totalRecords",o.BannerHistoryList.length)("rowsPerPageOptions",t.DdM(12,ut))("paginator",!0)("rows",10)("showCurrentPageReport",!0),t.xp6(5),t.Q6J("ngIf",o.isOpen))},dependencies:[d.rH,p.O5,C.jt,C.iD,C.Vi,C.TH,P.i9,Z.wx,F.iA,st.jx,p.uU],styles:[".product-badge[_ngcontent-%COMP%]{border-radius:2px;padding:.25em .5rem;text-transform:uppercase;font-weight:700;font-size:10px;letter-spacing:.3px}.product-badge.status-instock[_ngcontent-%COMP%]{background:#c8e6c9;color:#256029}.product-badge.status-lowstock[_ngcontent-%COMP%]{background:#feedaf;color:#8a5340}.product-badge.status-outofstock[_ngcontent-%COMP%]{background:#ffcdd2;color:#c63737}.alert-info[_ngcontent-%COMP%]{color:#0c5460;background-color:#d1ecf1;border-color:#bee5eb}.alert-success[_ngcontent-%COMP%]{background-color:#10b759;border-color:#10b759;color:#fff}.alert-danger[_ngcontent-%COMP%]{color:#721c24;background-color:#f8d7da;border-color:#f5c6cb}.flotingdiv[_ngcontent-%COMP%]{position:fixed;bottom:0;top:84%;right:0;overflow-x:hidden;overflow-y:auto}.dropdown-toggle[_ngcontent-%COMP%]:after{display:none!important}"]}),i})()}];let _t=(()=>{const r=class{};let i=r;return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[d.Bz.forChild(ht),d.Bz]}),i})();var bt=a(19119),vt=a(23501),Ct=a(55466),yt=a(91742);let Pt=(()=>{const r=class{};let i=r;return r.\u0275fac=function(n){return new(n||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({imports:[l.u5,l.UX,b.p.pick(y.kEt),_t,bt.J,F.U$,vt.O.forRoot({themes:[Ct.W,yt.$],active:u.N.theme})]}),i})()}}]);

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.