1"use strict";(self.webpackChunkprivacypillar_sfo3=self.webpackChunkprivacypillar_sfo3||[]).push([["default-src_app__services_cookie-category_service_ts"],{45597:(S,u,c)=>{c.d(u,{o:()=>R});var n=c(92340),s=c(85740),h=c(24850),I=c(27221),p=c(28597),_=c(591),g=c(61737),U=c(68078),O=c(94650),L=c(80529),N=c(46262),P=c(51692),E=c(36895),C=c(64491);let R=(()=>{const D=class{constructor(o,i,r,t,e){this.http=o,this.loki=i,this.activateRoute=r,this.location=t,this.orgservice=e,this.unpublishData=new _.X(null),this.unpublishDetails=this.unpublishData.asObservable(),this.primaryKeys=["id"],this.activateRoute.queryParamMap.subscribe(a=>{this.queryOID=a.get("oid"),this.queryPID=a.get("pid")}),this.onGetPropsAndOrgId()}onGetPropsAndOrgId(){null!==this.queryOID&&null!==this.queryPID&&void 0!==this.queryOID&&void 0!==this.queryPID?(this.currentManagedOrgID=this.queryOID,this.currrentManagedPropID=this.queryPID):this.getOIDPIDFromURL()}getCookieData(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+t,{params:o}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e?.error?.error||e?.error||e,p.X.cookie,i,r,t),(0,g._)(e))))}getTagList(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE_TAG_LIST;return t=t.replace(":oid",this.currentManagedOrgID),t=t.replace(":pid",this.currrentManagedPropID),this.http.get(n.N.apiUrl+t,{params:o}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}onPushData(o){return new Promise(i=>{i(this.unpublishData.next(o))})}AddScript(o,i,r,t){let e=s.R.ADD_TAG;return e=e.replace(":pid",t),this.http.post(n.N.apiUrl+e,o).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}AddScriptsBulk(o,i,r,t){const e=s.R.ADD_TAG_BULK.replace(":pid",t);return this.http.post(n.N.apiUrl+e,o).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}AddManualScript(o,i,r,t){let e=s.R.ADD_TAG_MANUAL;return e=e.replace(":pid",t),this.http.post(n.N.apiUrl+e,o).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}DeleteScript(o,i,r,t){let e=s.R.DELETE_TAG;return e=e.replace(":pid",r),e=e.replace(":id",t),this.http.delete(n.N.apiUrl+e).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,o,i,e),(0,g._)(a))))}getCookieTagList(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE_BLOCKING_TAG_LIST;return t=t.replace(":pid",this.currrentManagedPropID),this.http.get(n.N.apiUrl+t,{params:o}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}getSubDomainData(o,i,r,t){this.getOIDPIDFromURL();let e=s.R.SUBDOMAIN_SCAN_DETAILS.replace(":pid",this.currrentManagedPropID);return e=e.replace(":id",t),this.http.get(n.N.apiUrl+e,{params:o}).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}getScanningData(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE_SCAN_JOBS.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+t,{params:o}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}getCountOfunpublishedCookie(o,i,r){let t=s.R.UNPUBLISHED_COOKIE.replace(":pid",r);return this.http.get(n.N.apiUrl+t).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,o,i,t),(0,g._)(e))))}getScheduleScanData(o,i,r,t){let e=s.R.SCHEDULE_SCAN_JOB.replace(":pid",t);return this.http.get(n.N.apiUrl+e,{params:o}).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}AddScheduleJob(o,i,r,t,e){let a=s.R.CREATE_SCAN_JOB.replace(":pid",t);return this.http.post(n.N.apiUrl+a,o,{params:{pages:e}}).pipe((0,h.U)(d=>d),(0,I.K)(d=>(this.onSendLogs(p.o.INFO,d,p.X.cookie,i,r,a),(0,g._)(d))))}UpdateScheduleJob(o,i,r,t,e){this.getOIDPIDFromURL();let a=s.R.UPDATE_SCAN_JOB.replace(":pid",e.pid);return a=a.replace(":id",e.id),this.http.put(n.N.apiUrl+a+"?pages="+o.pages+"&date="+o.dates,o).pipe((0,h.U)(d=>d),(0,I.K)(d=>(this.onSendLogs(p.o.INFO,d,p.X.cookie,i,r,a),(0,g._)(d))))}deleteschedulejob(o,i,r){this.getOIDPIDFromURL();let t=s.R.DELETE_SCAN_JOB.replace(":propId",this.currrentManagedPropID);return t=t.replace(":id",o.id),this.http.delete(n.N.apiUrl+t).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}getLastScanningData(o,i){this.getOIDPIDFromURL();let r=s.R.COOKIE_LAST_SCANNING_DATA;return r=r.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookie,o,i,r),(0,g._)(t))))}post(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),this.http.post(n.N.apiUrl+t,o).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e?.error?.error||e,p.X.cookie,i,r,t),(0,g._)(e))))}put(o,i,r,t){this.getOIDPIDFromURL();let e=s.R.COOKIE_WITH_ID.replace(":orgId",this.currentManagedOrgID);return e=e.replace(":propId",this.currrentManagedPropID),e=e.replace(":id",i),this.http.put(n.N.apiUrl+e,o).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a?.error?.error||a?.error||a,p.X.cookie,r,t,e),(0,g._)(a))))}bulkeditcookiecategory(o,i,r){this.getOIDPIDFromURL();let t=s.R.BULK_EDIT_COOKIE.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),this.http.put(n.N.apiUrl+t,o).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}delete(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE_WITH_ID.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),t=t.replace(":id",o.id),this.http.patch(n.N.apiUrl+t,{active:!1}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e?.error?.error||e?.error||e,p.X.cookie,i,r,t),(0,g._)(e))))}createCategory(o,i,r){const t=s.R.COOKIE_CATEGORY;return this.http.post(n.N.apiUrl+t,o).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e?.error?.error||e?.error||e,p.X.cookieCategory,i,r,t),(0,g._)(e))))}scanbehindLogin(o,i,r){this.getOIDPIDFromURL();const t=s.R.SCAN_BEHIND_LOGIN.replace(":propid",this.currrentManagedPropID);return this.http.post(n.N.apiUrl+t,r).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookieCategory,o,i,t),(0,g._)(e))))}scanbehindLoginValidate(o,i,r){const t=s.R.SCAN_VALIDATE;return this.http.post(n.N.webscannerUrl+t,r).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookieCategory,o,i,t),(0,g._)(e))))}scanbehindLoginRecord(o,i){this.getOIDPIDFromURL();const r=s.R.SCAN_BEHIND_LOGIN.replace(":propid",this.currrentManagedPropID);return this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}scanbehindLoginUpdate(o,i,r){this.getOIDPIDFromURL();const t=s.R.SCAN_BEHIND_LOGIN_UPDATE.replace(":propid",this.currrentManagedPropID);return this.http.put(n.N.apiUrl+t,r).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookieCategory,o,i,t),(0,g._)(e))))}uploadCSV(o,i,r){var t=new FormData;t.append("file",o),this.getOIDPIDFromURL();let e=s.R.UPLOAD_CSV.replace(":oid",this.currentManagedOrgID);return e=e.replace(":pid",this.currrentManagedPropID),this.http.post(n.N.apiUrl+e,t).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}getCategoriesList(o,i){const r=s.R.COOKIE_CATEGORY;return this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}cookieScanning(o,i){this.getOIDPIDFromURL();let r=s.R.COOKIE_SCANNER.replace(":orgId",this.currentManagedOrgID);return r=r.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t.error||t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}cookieScanningwithpages(o,i,r){this.getOIDPIDFromURL();let t=s.R.COOKIE_SCANNER.replace(":orgId",this.currentManagedOrgID);return t=t.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+t,{params:{pages:r}}).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e.error||e,p.X.cookieCategory,o,i,t),(0,g._)(e))))}publishCookieCategory(o,i){this.getOIDPIDFromURL();let r=s.R.COOKIE_PUBLISH.replace(":orgId",this.currentManagedOrgID);return r=r.replace(":propId",this.currrentManagedPropID),this.http.post(n.N.apiUrl+r,null).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}onSendLogs(o,i,r,t,e,a){this.loki.onSendErrorLogs(o,i,r,t,e,a).subscribe()}getCategoryChatData(o,i){this.getOIDPIDFromURL();const r=s.R.COOKIE_CATEGORY_CHART.replace(":propId",this.currrentManagedPropID);return this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}getAllCookieForCsv(o,i){this.getOIDPIDFromURL();let r=s.R.COOKIE_CATEGORY_ALL_RECORD.replace(":orgId",this.currentManagedOrgID);return r=r.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>({res:t,propID:this.currrentManagedPropID})),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}getPartyChartData(o,i){this.getOIDPIDFromURL();const r=s.R.COOKIE_CATEGORY_TYPE_CHART.replace(":propId",this.currrentManagedPropID);return this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}getSubscrptionData(o,i){this.getOIDPIDFromURL();const r=s.R.COOKIE_CATEGORY_AVALIBLE.replace(":propId",this.currrentManagedPropID).replace(":orgId",this.currentManagedOrgID);return this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}getCookieCategoriesStatus(o,i){this.getOIDPIDFromURL();let r=s.R.COOKIE_SCANNER_STATUS.replace(":orgId",this.currentManagedOrgID);return r=r.replace(":propId",this.currrentManagedPropID),this.http.get(n.N.apiUrl+r).pipe((0,h.U)(t=>t),(0,I.K)(t=>(this.onSendLogs(p.o.INFO,t,p.X.cookieCategory,o,i,r),(0,g._)(t))))}editAutoCookieScript(o,i,r){this.getOIDPIDFromURL();let t=s.R.UPDATE_COOKIE_TAG_LIST;return t=t.replace(":pid",this.currrentManagedPropID),this.http.post(n.N.apiUrl+t,o).pipe((0,h.U)(e=>e),(0,I.K)(e=>(this.onSendLogs(p.o.INFO,e,p.X.cookie,i,r,t),(0,g._)(e))))}editAutoCookieScriptsBulk(o,i,r,t){const e=s.R.UPDATE_COOKIE_TAG_LIST_BULK.replace(":pid",t);return this.http.post(n.N.apiUrl+e,o).pipe((0,h.U)(a=>a),(0,I.K)(a=>(this.onSendLogs(p.o.INFO,a,p.X.cookie,i,r,e),(0,g._)(a))))}getOIDPIDFromURL(){let o=(0,U.Dq)(this.location.path());null!=o&&(this.currentManagedOrgID=o[0],this.currrentManagedPropID=o[1])}};let l=D;return D.\u0275fac=function(i){return new(i||D)(O.LFG(L.eN),O.LFG(N.L),O.LFG(P.gz),O.LFG(E.Ye),O.LFG(C.Mn))},D.\u0275prov=O.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),l})()}}]);
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.