PageSourceSearch

https://portal.privacypillar.com/src_app_licensehistory_licensehistory_module_ts.9f98b5536273dbd7.js

js privacypillar.com collected 2026-10-01 10:41:37 UTC 17,309 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["src_app_licensehistory_licensehistory_module_ts"],{58123:(X,u,c)=>{c.r(u),c.d(u,{LicensehistoryModule:()=>W});var g=c(36895),f=c(96923),p=c(24006),y=c(51692),v=c(85493),C=c(31456),b=c(3940),O=c(68078),_=c(92340),t=c(94650),Z=c(61737),P=c(24850),T=c(27221),x=c(28597),M=c(80529),L=c(46262);let z=(()=>{const i=class{constructor(e,a){this.http=e,this.lokiService=a}getLicenseHistory(e,a,r){let o="/license-history";return this.http.get(_.N.apiUrl+o,{params:r}).pipe((0,P.U)(l=>l),(0,T.K)(l=>(this.onSendLogs(x.o.INFO,l,x.X.LicenseHistory,e,a,o),(0,Z._)(l))))}onSendLogs(e,a,r,o,l,d){this.lokiService.onSendErrorLogs(e,a,r,o,l,d).subscribe()}};let n=i;return i.\u0275fac=function(a){return new(a||i)(t.LFG(M.eN),t.LFG(L.L))},i.\u0275prov=t.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),n})();var A=c(64491),U=c(11481),I=c(42111);const w=["licenseHistoryTbl"];function q(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"option",32),t._uU(2),t.qZA(),t.BQk()),2&n){const s=i.$implicit;t.xp6(1),t.Q6J("value",s.id),t.xp6(1),t.hij(" ",s.orgname," ")}}function H(n,i){if(1&n){const s=t.EpF();t.TgZ(0,"select",29),t.NdJ("change",function(a){t.CHM(s);const r=t.oxw();return t.KtG(r.onChangeEvent(a))}),t.TgZ(1,"option",30),t._uU(2,"Select organization"),t.qZA(),t.YNc(3,q,3,2,"ng-container",31),t.qZA()}if(2&n){const s=t.oxw();t.xp6(3),t.Q6J("ngForOf",s.organizationList)}}
1function N(n,i){if(1&n&&(t.TgZ(0,"span",33),t._uU(1),t.qZA()),2&n){const s=t.oxw();t.xp6(1),t.Oqu(s.infomsgorg)}}function S(n,i){if(1&n&&(t.ynx(0),t.TgZ(1,"option",32),t._uU(2),t.qZA(),t.BQk()),2&n){const s=i.$implicit;t.xp6(1),t.Q6J("value",s.property_id),t.xp6(1),t.hij(" ",s.property_name," ")}}function F(n,i){if(1&n&&(t.TgZ(0,"span",33),t._uU(1),t.qZA()),2&n){const s=t.oxw(2);t.xp6(1),t.Oqu(s.infomsg)}}function J(n,i){if(1&n){const s=t.EpF();t.TgZ(0,"div",34)(1,"select",29),t.NdJ("change",function(a){t.CHM(s);const r=t.oxw();return t.KtG(r.onChangeEventProperty(a))}),t.TgZ(2,"option",30),t._uU(3,"Select property"),t.qZA(),t.YNc(4,S,3,2,"ng-container",31),t.qZA(),t.YNc(5,F,2,1,"span",18),t.qZA()}if(2&n){const s=t.oxw();t.xp6(4),t.Q6J("ngForOf",s.propertyList),t.xp6(1),t.Q6J("ngIf",s.infomsg)}}function D(n,i){1&n&&(t.TgZ(0,"tr",35)(1,"th",36),t._uU(2,"License ID "),t._UZ(3,"p-sortIcon",37),t.qZA(),t.TgZ(4,"th"),t._uU(5,"License Assigned "),t.qZA(),t.TgZ(6,"th",38),t._uU(7,"License Type "),t._UZ(8,"p-sortIcon",39),t.qZA(),t.TgZ(9,"th",40),t._uU(10,"Action "),t._UZ(11,"p-sortIcon",41),t.qZA(),t.TgZ(12,"th"),t._uU(13,"User name"),t.qZA(),t.TgZ(14,"th",42),t._uU(15,"Organization name "),t._UZ(16,"p-sortIcon",43),t.qZA(),t.TgZ(17,"th",44),t._uU(18,"Property name "),t._UZ(19,"p-sortIcon",45),t.qZA(),t.TgZ(20,"th",46),t._uU(21,"Plan name "),t._UZ(22,"p-sortIcon",47),t.qZA(),t.TgZ(23,"th",48),t._uU(24,"Event date "),t._UZ(25,"p-sortIcon",49),t.qZA()())}function Q(n,i){1&n&&t._UZ(0,"i",53)}function Y(n,i){1&n&&t._UZ(0,"i",54)}function k(n,i){if(1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2),t.qZA(),t.TgZ(3,"td"),t.YNc(4,Q,1,0,"i",50),t.YNc(5,Y,1,0,"i",51),t.qZA(),t.TgZ(6,"td")(7,"span",52),t._uU(8),t.qZA()(),t.TgZ(9,"td"),t._uU(10),t.qZA(),t.TgZ(11,"td"),t._uU(12),t.qZA(),t.TgZ(13,"td"),t._uU(14),t.qZA(),t.TgZ(15,"td"),t._uU(16),t.qZA(),t.TgZ(17,"td"),t._uU(18),t.qZA(),t.TgZ(19,"td"),t._uU(20),t.ALo(21,"date"),t.qZA()()),2&n){const s=i.$implicit;t.xp6(2),t.Oqu(s.license_id),t.xp6(2),t.Q6J("ngIf",!s.license_assigned),t.xp6(1),t.Q6J("ngIf",s.license_assigned),t.xp6(3),t.Oqu(s.license_type),t.xp6(2),t.Oqu(s.action),t.xp6(2),t.Oqu(s.user_name),t.xp6(2),t.Oqu(s.org_name),t.xp6(2),t.Oqu(s.property_name),t.xp6(2),t.Oqu(s.plan_name),t.xp6(2),t.Oqu(t.xi3(21,10,s.created_at,"MM/dd/yyyy"))}}function R(n,i){1&n&&(t.TgZ(0,"tr")(1,"td"),t._uU(2," No records found "),t.qZA()()),2&n&&(t.xp6(1),t.uIk("colspan",9))}const j=function(){return[10,20,30]},E=function(){return["org_name","license_assigned","license_type","org_name","property_name","plan_name","created_at"]},B=[{path:"",component:(()=>{const i=class{constructor(e,a,r){this.licenseHistoryService=e,this.orgservice=a,this.titleService=r,this.licenseHistoryList=[],this.titleService.setTitle("License History - "+_.N.portalPrefix)}ngOnInit(){this.loadOrganizationsWithProperties()}lazyLoadLicenseHistory(e){e.sortField=""!==e.sortField?e.sortField:"created_at",this.lazyevents=e,this.eventRows=e.rows,this.firstone=0===e.first?1:e.first/e.rows+1,this.pagelimit="?limit="+this.eventRows+"&page="+this.firstone,this.loadLicenseHistoryList()}loadLicenseHistoryList(){if(this.loading=!0,"searchbyproperty"==this.searchoption&&(null==this.selectedPID||""==this.selectedPID))return this.licenseHistoryList=[],this.recordcount=0,this.loading=!1,!1;this.pagelimit={limit:this.eventRows,page:this.firstone,oid:"searchbyorganization"==this.searchoption&&void 0!==this.selectedOID?this.selectedOID:"",pid:"searchbyproperty"==this.searchoption&&void 0!==this.selectedPID?this.selectedPID:""},this.licenseHistoryService.getLicenseHistory(this.constructor.name,b.e.licenseHistoryModule,this.pagelimit).subscribe(e=>(this.recordcount=e.count,this.loading=!1,this.lazyevents.sortField||(this.lazyevents.sortField="created_at",this.lazyevents.sortOrder=-1),this.licenseHistoryList=(0,O.cn)(this.lazyevents,e.response),this.licenseHistoryList),e=>{this.alertMsg=e,this.isOpen=!0,this.alertType="danger"})}loadOrganizationsWithProperties(){let e=[];this.orgservice.getOrganizationWithProperty(this.constructor.name,b.e.companyModule).subscribe(a=>{this.orgPropertyMenu=a.response;let r=a.response;if(void 0!==r&&r.length>0){let o=this.removeDupProperties(r);
1for(let l of o)e.push({orgname:l.orgname,id:l.id});this.organizationList=[...e]}})}onChangeEvent(e){let a;if(""!==e.currentTarget.value?(this.selectedOID=e.currentTarget.value,this.infomsgorg="",a=this.orgPropertyMenu.filter(o=>o.id===this.selectedOID)[0].property,this.propertyList=[...a],this.selectedPID=void 0):this.propertyList=[],null==this.selectedOID)return this.infomsgorg="Select organization",!1;"searchbyorganization"==this.searchoption&&this.lazyLoadLicenseHistory(this.lazyevents),"searchbyproperty"==this.searchoption&&this.lazyLoadLicenseHistory(this.lazyevents)}onChangeEventProperty(e){if(""!==e.currentTarget.value&&(this.selectedPID=e.currentTarget.value,this.infomsg="",this.lazyLoadLicenseHistory(this.lazyevents)),null==this.selectedPID)return this.infomsg="Select property2",!1}onClickRadiobtn(e){"searchbyorganization"==e.currentTarget.value&&(this.searchoption="searchbyorganization",void 0!==this.selectedOID&&(this.selectedPID=void 0,this.lazyLoadLicenseHistory(this.lazyevents)))}removeDupProperties(e){let a=[];if(void 0!==e&&e.length>0)for(let o=0;o<e.length;o++)void 0!==e[o].property&&e[o].property.length>0&&(e[o]={...e[o],property:this.mergePropertyWithLicense(e[o].property)},a.push(e[o]));return a}mergePropertyWithLicense(e){return e.reduce((r,o)=>{const l=r.find(d=>d.property_id==o.property_id);if(l)l.name.push(o.name),l.form_isactive.includes(o.form_isactive)||l.form_isactive.push(o.form_isactive);else if(void 0!==o){const d=r.findIndex(h=>h.name==o.name),K=r.findIndex(h=>{for(let m=0;m<h.name.length;m++)if(h.property_id==o.property_id&&h.name[m]==o.name)return m});(-1==d||-1==K)&&r.push({...o,name:[o.name],form_isactive:[o.form_isactive]})}return r},[])}btnreset(){this.selectedOID=void 0,this.selectedPID=void 0,this.searchoption="",this.pTable.reset()}};let n=i;return i.\u0275fac=function(a){return new(a||i)(t.Y36(z),t.Y36(A.Mn),t.Y36(U.Dx)
1)},i.\u0275cmp=t.Xpm({type:i,selectors:[["app-licensehistory"]],viewQuery:function(a,r){if(1&a&&t.Gf(w,5),2&a){let o;t.iGM(o=t.CRH())&&(r.pTable=o.first)}},decls:36,vars:18,consts:[[1,"mb-3"],["aria-label","breadcrumb"],[1,"breadcrumb","breadcrumb-style1","mg-b-0"],["aria-current","page",1,"breadcrumb-item","active"],[1,"card"],[1,"card-header"],[1,"searchfield"],[1,"card","mb-2","border-displex-flex"],[1,"display-flex-row"],[1,"div-radio","pr-4"],["type","radio","value","searchbyorganization","name","searchoption","id","searchoptionorg",1,"form-check-input",3,"ngModel","click","ngModelChange"],["for","searchoptionorg",1,"form-check-label"],[1,"div-radio"],["type","radio","value","searchbyproperty","name","searchoption","id","searchoptionprop",1,"form-check-input",3,"ngModel","click","ngModelChange"],["for","searchoptionprop",1,"form-check-label"],[1,"col-4","mt-2",2,"display","flex","flex-direction","row"],[1,"display-flex-column"],["class","form-control font-size-13","name","selectOptionControl","required","",3,"change",4,"ngIf"],["class","color-red",4,"ngIf"],["class","display-flex-column ml-2",4,"ngIf"],[1,"ml-auto","mr-4","mt-2"],[1,"btn","btn-sm","btn-outline-secondary",3,"click"],[1,"fas","fa-sync","feather-16"],[1,"table-wraper","pt-0"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","sortOrder","-1","styleClass","p-datatable-sm",1,"license-history-table",3,"value","lazy","responsive","paginator","rows","rowHover","showCurrentPageReport","totalRecords","loading","rowsPerPageOptions","globalFilterFields","onLazyLoad"],["licenseHistoryTbl",""],["pTemplate","header"],["pTemplate","body"],["pTemplate","emptymessage"],["name","selectOptionControl","required","",1,"form-control","font-size-13",3,"change"],["selected","","value",""],[4,"ngFor","ngForOf"],[3,"value"],[1,"color-red"],[1,"display-flex-column","ml-2"],[2,"text-align","center"],["pSortableColumn","license_id"],["field","license_id"],["pSortableColumn","license_type"],["field","license_type"],["pSortableColumn","action"],["field","action"],["pSortableColumn","org_name"],["field","org_name"],["pSortableColumn","property_name"],["field","property_name"],["pSortableColumn","plan_name"],["field","plan_name"],["pSortableColumn","created_at"],["field","created_at"],["class","fa fa-times color-red","aria-hidden","true",4,"ngIf"],["class","fa fa-check color-green","aria-hidden","true",4,"ngIf"],[1,"text-center-uppercase"],["aria-hidden","true",1,"fa","fa-times","color-red"],["aria-hidden","true",1,"fa","fa-check","color-green"]],template:function(a,r){1&a&&(t.TgZ(0,"div")(1,"div",0)(2,"nav",1)(3,"ol",2)(4,"li",3),t._uU(5,"License History"),t.qZA()()()(),t.TgZ(6,"div",4)(7,"div",5)(8,"div",6)(9,"h5"),t._uU(10,"License History"),t.qZA()()(),t.TgZ(11,"div",7)(12,"div",8)(13,"div",9)(14,"input",10),t.NdJ("click",function(l){return r.onClickRadiobtn(l)})("ngModelChange",function(l){return r.searchoption=l}),t.qZA(),t.TgZ(15,"label",11),t._uU(16,"Search by Organization "),t.qZA()(),t.TgZ(17,"div",12)(18,"input",13),t.NdJ("click",function(l){return r.onClickRadiobtn(l)})("ngModelChange",function(l){return r.searchoption=l}),t.qZA(),t.TgZ(19,"label",14),t._uU(20,"Search by Property "),t.qZA()()(),t.TgZ(21,"div",15)(22,"div",16),t.YNc(23,H,4,1,"select",17),t.YNc(24,N,2,1,"span",18),t.qZA(),t.YNc(25,J,6,2,"div",19),t.qZA(),t.TgZ(26,"div",20)(27,"button",21),t.NdJ("click",function(){return r.btnreset()}),t._UZ(28,"i",22),t._uU(29," Reset"),t.qZA()()(),t.TgZ(30,"div",23)(31,"p-table",24,25),t.NdJ("onLazyLoad",function(l){return r.lazyLoadLicenseHistory(l)}),t.YNc(33,D,26,0,"ng-template",26),t.YNc(34,k,22,13,"ng-template",27),t.YNc(35,R,3,1,"ng-template",28),t.qZA()()()()),2&a&&(t.xp6(14),t.Q6J("ngModel",r.searchoption),t.xp6(4),t.Q6J("ngModel",r.searchoption),t.xp6(5),t.Q6J("ngIf","searchbyproperty"==r.searchoption||"searchbyorganization"==r.searchoption),t.xp6(1),t.Q6J("ngIf",r.infomsgorg),t.xp6(1),t.Q6J("ngIf","searchbyproperty"==r.searchoption),t.xp6(6),t.Q6J("value",r.licenseHistoryList)("lazy",!0)("responsive",!0)("paginator",!0)("rows",10)("rowHover",!0)("showCurrentPageReport",!0)("totalRecords",r.recordcount)("loading",r.loading)("rowsPerPageOptions",t.DdM(16,j))("globalFilterFields",t.DdM(17,E)))},dependencies:[g.sg,g.O5,f.iA,I.jx,f.lQ,f.fz,p.YN,p.Kr,p.Fj,p._,p.JJ,p.On,g.uU],styles:[".color-green[_ngcontent-%COMP%]{color:green}
1.color-red[_ngcontent-%COMP%]{color:red}.text-center-uppercase[_ngcontent-%COMP%]{text-transform:uppercase;text-align:center}.license-history-table[_ngcontent-%COMP%]     .p-datatable.p-datatable-sm .p-datatable-header{display:flex;width:100%;border-radius:0;border-top:1px solid #1856b8}.license-history-table[_ngcontent-%COMP%]     .p-datatable{position:relative;border-top:0;margin:0;border-radius:0 0 5px 5px}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-wrapper{border:1px solid #ccc}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-header{border-bottom:1px solid #ccc;border-top:0!important;margin:0 -20px 20px;padding:0 20px 18px;background:transparent}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-thead>tr>th{font-size:12px;border-top:1px solid #e9ecef;font-weight:500;color:#1b365d;background:#f8f9fa!important;padding:8px 0;text-align:left}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td{font-size:12px;padding:2px 0;text-align:left}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td:nth-child(2){text-align:left!important;padding-left:40px}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td:nth-child(3){text-align:left!important;padding-left:20px}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-thead>tr>th:first-child{width:280px}.license-history-table[_ngcontent-%COMP%]     .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td>a:hover{text-decoration:underline}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td:nth-child(6){word-wrap:break-word}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td:nth-child(7){text-align:left;font-size:14px;padding-left:18px}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:10px;text-align:left}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-thead>tr>th:nth-child(7){padding-left:10px;text-align:center}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-sortable-column:focus{box-shadow:none;outline:0 none}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-sortable-column .p-sortable-column-icon{color:#1b365d}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#1b365d}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-datatable-tbody>tr>td:first-child{cursor:auto!important;color:#000!important;padding-left:10px;text-align:left}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-sortable-column .p-sortable-column-icon{margin-left:0;font-size:.6rem}.license-history-table[_ngcontent-%COMP%]     .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.8rem .1rem}.license-history-table[_ngcontent-%COMP%]     .p-datatable.p-datatable-sm .p-datatable-thead>tr>th:nth-child(8){padding:.8rem .1rem;width:130px}.license-history-table[_ngcontent-%COMP%]     .p-datatable.p-datatable-sm .p-datatable-thead>tr>th:first-child{padding:.8rem .5rem}.license-history-table[_ngcontent-%COMP%]     .p-multiselect .p-multiselect-label{padding:.3rem}.subdomain-list[_ngcontent-%COMP%]{margin:0;padding:0 0 0 3px;list-style-type:none}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-paginator-bottom{border-radius:0 0 5px 5px;border:1px solid #ccc;border-top:0;position:relative;justify-content:center}.license-history-table[_ngcontent-%COMP%]     .p-datatable .p-paginator .p-paginator-current{right:0!important;position:absolute!important}.license-history-table[_ngcontent-%COMP%]     .p-paginator-bottom .p-paginator{display:flex;position:relative}.license-history-table[_ngcontent-%COMP%]     .p-paginator .p-dropdown{position:absolute;left:0;top:12px;align-items:center}.title-heading[_ngcontent-%COMP%]{padding:0}.display-flex-column[_ngcontent-%COMP%]{display:flex;flex-direction:column}.display-flex-column[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:0}.display-flex-row[_ngcontent-%COMP%]{display:flex;margin-left:36px;flex-direction:row;font-weight:400!important}.div-radio[_ngcontent-%COMP%]{display:flex;align-content:center;align-items:center;margin-left:-13px!important;justify-content:flex-start;padding-left:20px}.div-radio[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-left:-20px;margin-top:0}.display-flex-row[_ngcontent-%COMP%] > input[type=radio][_ngcontent-%COMP%]{margin:5px 0 0 -18px;display:flex;justify-content:flex-start;align-items:center}.display-flex-row[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-bottom:0;line-height:25px}.font-size-13[_ngcontent-%COMP%]{font-size:13px}.border-displex-flex[_ngcontent-%COMP%]{border:0!important;display:flex;flex-wrap:wrap;flex-direction:row}.table-wraper[_ngcontent-%COMP%]{margin:0 20px 20px}.searchfield[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{padding:0;margin:0}"]}),n})(),canActivate:[v.a1,C.p]}];let G=(()=>{const i=class{};let n=i;return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[y.Bz.forChild(B),y.Bz]}),n})(),W=(()=>{const i=class{};let n=i;return i.\u0275fac=function(a){return new(a||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[g.ez,G,f.U$,p.u5]}),n})()}}]);

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.