1import {U as Ut$1,j as jt$1}from'./chunk-Ds6Xd7D1.js';import {cA as wt,T,u as uo$1,eV as Ye$1,v,br as F,z as z$1,d0 as fr,au as ne,cD as Py,dq as o$1,Z as Ze,cS as Dd$1,r as rd$1,dT as I,fP as We$2,ah as I$1,az as YI,g as gw,aA as Rm$1,dZ as be$1,e4 as we,ew as Yr,eB as cr,aE as ut,dX as _e,e5 as le,cO as pn,bU as An,X as Om$1,aB as GC,M as ls$1,aS as VC,Q as ig,R as au,aV as qT,a0 as Qm$1,V as VD,aX as BC,cV as lg,cW as BT,cX as $T,bO as Ln$1,dz as ce,$,eL as c,aD as xe,W as Zm$1,a6 as mC,f as gg,y as yg,a8 as Mg,ab as ST,fT as Rg,ac as af,a9 as LT,ad as cf,fU as Ag,d as vT,I as IT,aH as Ew,fW as IC,bu as pt,cz as Tt,c$ as pt$1,ds as b,bh as A,j as u$,k as kt,bi as Nn$1,aN as fu,aR as he,aJ as ne$1,cs as _m$1,ct as _a$1,eD as oe,gF as q,jJ as fm$1,cu as Xn,dW as Zn,cx as x,aI as nr,bE as Ee$1,c7 as Be$1,bf as a,jK as ep$1,G as Ii$1,c4 as Fe$1,Y as Ye$2,fp as we$1,dY as Fe$2,cw as ie,aY as H,eU as C,fr as qe$1,jL as Vi$1,eO as bn,jM as ro$1,jN as kc$1,cK as ia$1,jO as M1,jP as lL,du as A$1,jQ as qo,jR as uL,jD as L1,bM as c$1,gS as Ln$2,C as f$,cR as v$,l as l$,a1 as dg,a2 as UT,de as zn,eg as be$2,dU as z$2,bo as Fy,dV as tt,e9 as W,bH as fe,eh as Wn,dg as Hn,dh as $n$1,dk as Dn$1,dE as Vn,O as Og,dn as Mb,dp as xb,p as NC,S as SC,ji as k,fF as Ue$2,by as U$1,ca as b$1,bA as Ys$1,ci as qy,H as Ht$1,jS as Gy,bz as Ed$1,U as Uy,h as Ot,gb as lv,jT as Vn$1,bq as o,jU as m$1,dD as nt,di as Xt$1,cQ as u,dm as rt,jV as li,cB as hr,jW as Le$2,jX as V,cj as P,E,jY as mo$1,bG as zs$1,bF as we$2,c5 as Ee$2,fA as Ge$1,da as vn,ed as Bn,eb as On$1,db as p$2,fC as $$1,e as EC,cN as fo$1,A as A$2,cE as gd$1,fM as yd$1,bB as Oe$1,cJ as Re$1,bX as Y,bR as Ms$1,a as vc$1,bt as I$2,jZ as yo$1,cL as hn$1,aW as rC,F as F$1,J as dn,n as bT,w as wT,P as P$1,bx as wr,B,b as be$3,aw as nd$1,bs as l,bJ as td$1,ae as d$1,a3 as Xr,bS as Iw,aF as AI,dc as Xe,gu as Xe$1,dj as vn$1,dd as Xt$2,j_ as tt$1,gI as z$3,dv as $t,bl as He$1,bp as q$1,fw as su,aa as DC,be as UC,i as iC,f$ as r,dx as uu,dy as xs$1,aT as $C,gU as b$2,bZ as Xy,cC as pd$1,j$ as gr,eJ as s,dt as S,cl as y,k0 as I$3,cM as Tt$1,aG as yn,cF as di,ef as P$2,N,bN as ke$1,a4 as pe,b3 as zm$1,ba as Sg,h2 as fn$1,bD as d$2,cU as Le$3,f_ as Sn$1,bK as $e$2,a_ as AC,jw as p$3,k1 as gm$1,c6 as xg,bw as Id$1,cg as ye,k2 as ne$2,a5 as cu,a7 as lu,aK as Ym$1,o as ET,q as fe$1,ej as gi,ax as jT,b8 as VT,c2 as ng,L as Fn$1,fY as Kt,gi as Gt$1,gh as Zt$1,gg as Ht$2,c8 as De$1,cq as gh,fc as wC,b1 as Jm$1,k3 as Z,k4 as T$1,cT as fd$1,bb as Je$1,g3 as xC,cH as Mn,cI as ce$1,c1 as GE,ck as K,k5 as go$1,aL as n$1,k8 as go$2,k6 as ti,k7 as Yt,k9 as ii,ka as O,kb as Ht$3,kc as ei,kd as qt,ke as Qt,kf as Bt,kg as Jt,kh as Kt$1,ki as Zt$2,kj as ni,kk as mr,kl as xr}from'./main-5UFSG3V7.js';import {u as u$1}from'./chunk-CPVQWsZS.js';import {t as t$1}from'./chunk-Ct6rYB-8.js';import {E as Ee,U as Ue$1}from'./chunk-CplcOrSK.js';import {p as p$1}from'./chunk-CpIWnA6S.js';import {o as o$3}from'./chunk-CAP_OOaR.js';import {o as o$2,_ as _t}from'./chunk-dDkmrodY.js';import {w}from'./chunk-fZONQALE.js';import'./chunk-B5EMXlG-.js';import'./chunk-yvgA8r94.js';import {m as m$2}from'./chunk-YnvaE95w.js';import {_,m}from'./chunk-D2MbVE8B.js';import {D}from'./chunk-D0q2IPe0.js';import {e}from'./chunk-DuY_0cQi.js';import {d,C as C$1,a as a$1}from'./chunk-DCNaFjDX.js';import'./chunk-TRxHCJOm.js';import {e as e$1}from'./chunk-CzMg6y3G.js';import {W as Wl$1,L as Lh}from'./chunk-B00mIpSZ.js';import {p}from'./chunk-BVrvtRAZ.js';import {D as D$1}from'./chunk-Cut1X4T_.js';import'./chunk-pCySw8Ys.js';var be=(()=>{class o{constructor(e){this.userPreferenceService=e,this.columns$=new fr([]);let i=[{label:"Name",field:"name",width:350,multiline:true,maxLines:2},{label:"Description",field:"description",min_width:350,style:{"white-space":"normal"},multiline:true,maxLines:5},{label:"Likelihood",field:"likelihood",headerCellTooltip:"Specifies the likelihood of an attack originating from this Threat.",min_width:145,mapFunc:n=>n?.likelihood?new p().transform(n?.likelihood):"None"},{label:"Creation Date",field:"created_at",pipe:new Ln$1("en"),width:140},{label:"Modification Date",field:"last_modified",pipe:new Ln$1("en")}],t=this.userPreferenceService.fetchDataFromLocalStorage("threats",i);this.columns$.next(t);}onChangeTablePreferences(){this.userPreferenceService.changePreferences("threats",this.columns$.getValue());}initColumnTemplates(e){e.forEach(i=>
1this.columns$.getValue().find(t=>t.label===i.label).template=i.template);}static{this.\u0275fac=function(i){return new(i||o)(ce(d))};}static{this.\u0275prov=$({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var ve=(()=>{class o{transform(e){return o$2[e]??o$2.default}static{this.\u0275fac=function(i){return new(i||o)};}static{this.\u0275pipe=Ew({name:"threatIcon",type:o,pure:true});}}return o})();var Se=(()=>{class o extends c{static{this.\u0275fac=(()=>{let e;return function(t){return (e||(e=YI(o)))(t||o)}})();}static{this.\u0275cmp=gw({type:o,selectors:[["threat-column-name"]],inputs:{position:"position"},features:[Rm$1],decls:6,vars:8,consts:[[2,"width","70px"],[1,"threat-icon"],[3,"icon"],[1,"name"]],template:function(i,t){i&1&&(ls$1(0,"span",0)(1,"span",1),Zm$1(2,"cye-icon",2),VC(3,"threatIcon"),au()(),ls$1(4,"span",3),mC(5),au()),i&2&&(VD(2),Qm$1("icon",BC(3,6,t.position.name)),VD(2),gg("-webkit-line-clamp",t.evaluatedMaxLines()),yg("with-multi-lines",t.isMultiline()),VD(),Mg(t.position.name));},dependencies:[xe,ut,ve],styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-start;align-items:center;overflow:hidden}[_nghost-%COMP%] span[_ngcontent-%COMP%]:not(.name){flex-shrink:0}[_nghost-%COMP%] .threat-icon[_ngcontent-%COMP%]{background:var(--threat-background-color);display:block;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center}"]});}}return o})();var ke=["nameColumn"];function De(o,d){if(o&1){let e=ST();ls$1(0,"overlay-popup",8),Rg("showChange",function(t){af(e);let n=LT();return IC(n.onNewPosition,t)||(n.onNewPosition=t),cf(t)}),ig("popupCloseClicked",function(){af(e);let t=LT();return cf(t.onNewPosition=false)}),ls$1(1,"new-position-threat",9),ig("onsubmit",function(t){af(e);let n=LT();return cf(n.onNewSubmit(t))})("oncancel",function(){af(e);let t=LT();return cf(t.onNewPosition=false)}),au()();}if(o&2){let e=LT();Qm$1("iconContainer",false),Ag("show",e.onNewPosition);}}function $e$1(o,d){if(o&1){let e=ST();ls$1(0,"overlay-popup",10),Rg("showChange",function(t){af(e);let n=LT();return IC(n.onEditPosition,t)||(n.onEditPosition=t),cf(t)}),ig("popupCloseClicked",function(){af(e);let t=LT();return cf(t.onEditPosition=false)}),ls$1(1,"new-position-threat",11),VC(2,"async"),ig("onsubmit",function(t){af(e);let n=LT();return cf(n.onEditSubmit(t))})("oncancel",function(){af(e);let t=LT();return cf(t.onEditPosition=false)}),au()();}if(o&2){let e=LT();Qm$1("iconContainer",false),Ag("show",e.onEditPosition),VD(),Qm$1("disableName",true)("position",BC(2,4,e.onPositionDetails$));}}function Me(o,d){if(o&1&&Zm$1(0,"threat-column-name",12),o&2){let e=d.$implicit,i=d.column;Qm$1("position",e)("isMultiline",!!i?.multiline)("maxLines",i?.maxLines||3);}}function Be(o,d){if(o&1){let e=ST();ls$1(0,"cye-icon",14),ig("click",function(){af(e);let t=LT(2);return cf(t.onBackClick())}),au();}o&2&&Qm$1("icon","back-icon");}function Ve$1(o,d){if(o&1&&vT(0,Be,1,1,"cye-icon",13),o&2){let e=LT();IT(e.showBackButton()?0:-1);}}function Ie(o,d){if(o&1&&(ls$1(0,"cye-side-pane",15),VC(1,"async"),Zm$1(2,"position-details",16),VC(3,"async"),au()),o&2){let e=LT();Qm$1("open",!!BC(1,4,e.onPositionDetails$))("currentWidth",300),VD(2),Qm$1("newIcons",true)("position",BC(3,6,e.onPositionDetails$));}}function Le$1(o,d){o&1&&(ls$1(0,"div",17),mC(1," No Threats Sources Defined "),Zm$1(2,"img",18),au());}var mt=(()=>{class o extends wt{constructor(){super(...arguments),this.modalService=T(uo$1),this.positionsService=T(w),this.dynamicComponentsService=T(Ye$1),this.threatsService=T(be),this.authService=T(v),this.router=T(F),this.updating=false,this.onEditPosition=false,this.onNewPosition=false,this.actionPermitted=false,this.positionsList$=this.positionsService.threatsList$,this.positionsList=z$1(this.positionsList$),this.columns$=this.threatsService.columns$,this.onPositionDetails$=new fr(null),this.positionsListLoading$=this.positionsService.positionsListLoadState$.pipe(ne(e=>e==="loading")),this.selectedRow$=Py([this.onPositionDetails$.pipe(o$1()),this.positionsList$],(e,i)=>i.find(t=>
1t.id===e?.id)),this.showBackButton=Ze(false),this.actionButtonsToShow=[{name:"add",tooltip:()=>this.actionPermitted?"Add new threat":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPermitted},{name:"delete",tooltip:()=>this.actionPermitted?this.onPositionDetails$.getValue()&&this.onPositionDetails$.getValue()?.edges_count?"This position is linked to an edge of a finding. Therefore, the system cannot delete it":"Delete threat":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPermitted||!this.onPositionDetails$.getValue()||this.onPositionDetails$.getValue()&&!!this.onPositionDetails$.getValue()?.edges_count},{name:"edit",tooltip:()=>this.actionPermitted?"Edit threat":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPermitted||!this.onPositionDetails$.getValue()}],this.styleRowFunc=()=>({height:"90px"});}onChangeTablePreferences(){this.threatsService.onChangeTablePreferences();}ngOnInit(){this.authService.profileResponse$.pipe(Dd$1(this.destroy$),o$1(),ne(e=>e?.role),rd$1(e=>this.actionPermitted=e===I.ADMIN)).subscribe(),this.positionsService.positionsListError$.pipe(Dd$1(this.destroy$)).subscribe(e=>{this.updating=false;let i=e?.error?.length?e?.error[0]:e?.message||"Something went wrong";e.status===0||e.status>500||this.dynamicComponentsService.show({component:We$2,context:{headerText:"Threats failed",messageText:i,messageType:"error",buttonsArray:[{handler:()=>this.dynamicComponentsService.hide(),text:"Close"}]}});}),this.positionsService.newPositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Threat created successfully","success");}),this.positionsService.deletePositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Threat deleted successfully","success");}),this.positionsService.editPositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Threat changed successfully","success");}),this.positionsService.positionsList$.pipe(Dd$1(this.destroy$)).subscribe(e=>{let i=this.onPositionDetails$.getValue();i&&this.onPositionDetails$.next(e.find(t=>t.id===i.id)),this.updating=false;}),this.threatsService.initColumnTemplates([{label:"Name",template:this.nameColumnRef}]),this.positionsService.getPositionsDescription("start"),this.positionsService.getPositions("start"),this.checkIfShowBackButton();}onTableActionClick(e){switch(e){case "edit":this.onEditPosition=true;break;case "add":this.onNewPosition=true;break;case "delete":this.onDelete();break}}onRowSelected(e){this.onPositionDetails$.next(e),this.actionButtonsToShow=[...this.actionButtonsToShow];}onDelete(){this.modalService.confirm("Delete Threat Source",`This action is irreversible. 2 Are you sure you want to delete this Threat source?`,()=>{this.updating=true;let e=this.positionsList$.getValue().find(i=>i.id!==this.onPositionDetails$.getValue()?.id);this.positionsService.deleteThreatPosition(this.onPositionDetails$.getValue()),this.onPositionDetails$.next(e);},"warn");}onEditSubmit(e){this.updating=true,this.onEditPosition=false,this.positionsService.editThreatPosition(e.position,e.formData);}onNewSubmit(e){this.updating=true,this.onNewPosition=false,this.positionsService.newThreat(e.formData);}setSelectedRowPosition(e){let i=this.positionsList$.getValue().find(t=>t.id===e);this.onPositionDetails$.next(i);}checkIfShowBackButton(){let n=history.state,{redirectFromGraph:e,id:i}=n,t=I$1(n,["redirectFromGraph","id"]);this.setSelectedRowPosition(i),e?(this.showBackButton.set(true),history.pushState(t,"")):this.showBackButton.set(false);}onBackClick(){this.router.navigateByUrl("/graph");}static{this.\u0275fac=(()=>{let e;return function(t){return (e||(e=YI(o)))(t||o)}})();}static{this.\u0275cmp=gw({type:o,selectors:[["app-threats-page"]],viewQuery:function(i,t){if(i&1&&lg(ke,7),i&2){let n;BT(n=$T())&&(t.nameColumnRef=n.first);}},features:[Rm$1],decls:15,vars:28,consts:[["nameColumn",""],["backButton",""],["icon","tab-position-threat","headerTitle","Create new threat source",3,"iconContainer","show","showChange","popupCloseClicked",4,"ngIf"],["icon","tab-position-threat","headerTitle","Edit threat source",3,"iconContainer","show","showChange","popupCloseClicked",4,"ngIf"],[1,"container"],[3,"tableactionbuttonclick","onselect","changeTablePreference","showNo
2MatchMessage","loading","selectedRow","selectDefault","itemsList","showHeaderFilters","showHeaderSearch","showHeaderColumns","showColumnsHeader","actionButtonsToShow","columns","styleRowFunc","titleTemplate","title"],[3,"open","currentWidth",4,"ngIf"],["class","no-threats",4,"ngIf"],["icon","tab-position-threat","headerTitle","Create new threat source",3,"showChange","popupCloseClicked","iconContainer","show"],[3,"onsubmit","oncancel"],["icon","tab-position-threat","headerTitle","Edit threat source",3,"showChange","popupCloseClicked","iconContainer","show"],[3,"onsubmit","oncancel","disableName","position"],[3,"position","isMultiline","maxLines"],[1,"back-button",3,"icon"],[1,"back-button",3,"click","icon"],[3,"open","currentWidth"],[3,"newIcons","position"],[1,"no-threats"],["src","assets/png/notification-arrow.png","alt",""]],template:function(i,t){if(i&1&&(Om$1(0,De,2,2,"overlay-popup",2)(1,$e$1,3,6,"overlay-popup",3)(2,Me,1,3,"ng-template",null,0,GC)(4,Ve$1,1,1,"ng-template",null,1,GC),ls$1(6,"div",4)(7,"cye-data-table",5),VC(8,"async"),VC(9,"async"),VC(10,"async"),ig("tableactionbuttonclick",function(f){return t.onTableActionClick(f)})("onselect",function(f){return t.onRowSelected(f)})("changeTablePreference",function(){return t.onChangeTablePreferences()}),au(),Om$1(11,Ie,4,8,"cye-side-pane",6),VC(12,"async"),Om$1(13,Le$1,3,0,"div",7),VC(14,"async"),au()),i&2){let n=qT(5),f=t.positionsList(),F=!!f?.length;Qm$1("ngIf",t.onNewPosition),VD(),Qm$1("ngIf",t.onEditPosition),VD(6),Qm$1("showNoMatchMessage",false)("loading",BC(8,18,t.positionsListLoading$)||t.updating)("selectedRow",BC(9,20,t.selectedRow$))("selectDefault",true)("itemsList",f)("showHeaderFilters",false)("showHeaderSearch",false)("showHeaderColumns",false)("showColumnsHeader",F)("actionButtonsToShow",t.actionButtonsToShow)("columns",BC(10,22,t.columns$))("styleRowFunc",t.styleRowFunc)("titleTemplate",n)("title",f?.length+" Threat sources"),VD(4),Qm$1("ngIf",BC(12,24,t.onPositionDetails$)),VD(2),Qm$1("ngIf",!BC(14,26,t.positionsListLoading$)&&!F);}},dependencies:[be$1,we,Ee,Yr,cr,ut,_e,le,Ue$1,pn,Se,An],styles:[".container[_ngcontent-%COMP%]{height:100%;display:flex;overflow:hidden;box-sizing:content-box;position:relative}.container[_ngcontent-%COMP%] cye-data-table[_ngcontent-%COMP%]{margin:44px 12px 0}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{margin-right:15px;cursor:pointer}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;margin:15px}.container[_ngcontent-%COMP%] .no-threats[_ngcontent-%COMP%]{margin:110px 20px 50px;position:absolute;width:calc(100% - 50px);height:138px;background-color:#fff;box-shadow:0 2px 10px #00000026;border-radius:5px;display:flex;align-items:center;justify-content:center;font:var(--font-22);color:var(--hyver-tertiary)}.container[_ngcontent-%COMP%] .no-threats[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:200px;transform:scaleX(-1);top:-30px}"],changeDetection:1});}}return o})();var Ne=(()=>{class o{constructor(e,i){this.authService=e,this.userPreferenceService=i,this.defaultBCA=["Employee information","Customer information","Reputation","Business continuity","Intellectual property"],this.initialColumns=[{label:"Name",field:"name",width:350,multiline:true,min_width:150,maxLines:2},{label:"Org. Importance",field:"priority",width:150,center:true,isDefaultSortingColumn:true,sortFunc:(t,s,d)=>s.priority?t.priority?(!t.priority||t.priority<0)&&(!s.priority||s.priority<0)?t.name?.localeCompare(s?.name||""):t.priority-s.priority:d:-d},{label:"Likelihood",field:"likelihood",pipe:new p,sortDirection:"desc",mapFunc:t=>t.likelihood?.toFixed(2)||b}],this.columns$=new fr([]),this.authService.profileResponse$.pipe(o$1()).subscribe(t=>{this.initColumns();});}initColumns(){let e=[...this.initialColumns];e=e.concat([{label:"Cost of breach",field:"cost_of_breach",sortDirection:"desc",width:240,min_width:130,mapFunc:i=>{let t=new A().transform(i.cost_of_breach);return t==="N/A"?"No impact":t},sortFunc:(i,t)=>i?.cost_of_breach?.min==null?-1:t?.cost_of_breach?.min==null?1:i?.cost_of_breach?.min-t?.cost_of_breach?.min,tooltipOnOverflow:true,canShowCellTooltip:i=>new A().transform(i.cost_of_breach)=="N/A",cellTooltipType:"template"},{label:"Exposure cost",field:"exposure_cost",sortDirection:"desc",width:240,min_width:130,mapFunc:i=>
2{let t=new A().transform(i.exposure_cost);return t==="N/A"?"No impact":t},sortFunc:(i,t)=>i?.exposure_cost?.min==null?-1:t?.exposure_cost?.min==null?1:i?.exposure_cost?.min-t?.exposure_cost?.min,tooltipOnOverflow:true,canShowCellTooltip:i=>new A().transform(i.exposure_cost)=="N/A",cellTooltipType:"template"}]),this.columns$.next(e);}initColumnTemplates(e){e.forEach(i=>{let t=this.columns$.getValue().find(s=>s.label===i.label);t&&(i?.template&&(t.template=i.template),i?.tooltipTemplate&&(t.cellTooltipTemplate=i.tooltipTemplate));});}onChangeTablePreferences(){this.userPreferenceService.changePreferences("business-assets",this.columns$.getValue());}static{this.\u0275fac=function(i){return new(i||o)(ce(v),ce(d))};}static{this.\u0275prov=$({token:o,factory:o.\u0275fac,providedIn:"root"});}}return o})();var Re=(()=>{class o{constructor(){this.deafultBcaNoImpactTooltip="Ensure the number of Customer records is entered on the CoB calculator page to calculate the CoB and exposure.",this.customeBcaNoImpactTooltip="Ensure your company information is entered on the CoB calculator page to calculate the CoB and exposure. You can edit the CoB values on the business assets page.",this.defaultBCA=["Employee information","Customer information","Reputation","Business continuity","Intellectual property"],this.position=u$({id:""}),this.authService=T(v),this.tooltipText=kt(()=>this.defaultBCA.includes(this.position().name)?this.deafultBcaNoImpactTooltip:this.customeBcaNoImpactTooltip);}static{this.\u0275fac=function(i){return new(i||o)};}static{this.\u0275cmp=gw({type:o,selectors:[["no-impact-tooltip"]],inputs:{position:[1,"position"]},decls:1,vars:1,template:function(i,t){i&1&&mC(0),i&2&&fu("",t.tooltipText(),` 3`);},dependencies:[Nn$1],styles:["[_nghost-%COMP%]{display:block;padding:10px}"]});}}return o})();var $e=(()=>{class o extends c{static{this.\u0275fac=(()=>{let e;return function(t){return (e||(e=YI(o)))(t||o)}})();}static{this.\u0275cmp=gw({type:o,selectors:[["business-asset-column-name"]],inputs:{position:"position"},features:[Rm$1],decls:7,vars:11,consts:[[1,"icon-container"],[1,"bca-icon"],[3,"icon"],[1,"name-container",3,"tooltip"]],template:function(i,t){i&1&&(ls$1(0,"span",0)(1,"span",1),Zm$1(2,"cye-icon",2),VC(3,"businessAssetsIcon"),au()(),ls$1(4,"span",3),VC(5,"businessAssetsTooltip"),mC(6),au()),i&2&&(VD(2),Qm$1("icon",BC(3,7,t.position.name)),VD(2),gg("-webkit-line-clamp",t.evaluatedMaxLines()),yg("with-multi-lines",t.isMultiline()),Qm$1("tooltip",BC(5,9,t.position.name)),VD(2),Mg(t.position.name));},dependencies:[xe,ut,he,ne$1,o$3,p$1],styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-start;align-items:center}[_nghost-%COMP%] .icon-container[_ngcontent-%COMP%]{min-width:70px}[_nghost-%COMP%] .bca-icon[_ngcontent-%COMP%]{background:var(--bca-background-color);display:block;border-radius:50%;width:48px;height:48px;display:flex;align-items:center;justify-content:center}"]});}}return o})();var Le=["newPosition"],Oe=["nameColumn"],Ve=["importanceColumn"],Fe=["settingsWarning"],je=["noImapctTooltipRef"];function We$1(o,r){if(o&1){let e=ST();ls$1(0,"overlay-popup",9),Rg("showChange",function(t){af(e);let s=LT();return IC(s.onNewPosition,t)||(s.onNewPosition=t),cf(t)}),ig("popupCloseClicked",function(){af(e);let t=LT();return cf(t.onNewPosition=false)}),ls$1(1,"new-position-business-asset",10),ig("onsubmit",function(t){af(e);let s=LT();return cf(s.onNewSubmit(t))})("oncancel",function(){af(e);let t=LT();return cf(t.onNewPosition=false)}),au()();}if(o&2){let e=LT();Qm$1("width",840)("iconContainer",false),Ag("show",e.onNewPosition);}}function He(o,r){if(o&1){let e=ST();ls$1(0,"overlay-popup",11),Rg("showChange",function(t){af(e);let s=LT();return IC(s.onEditPosition,t)||(s.onEditPosition=t),cf(t)}),ig("popupCloseClicked",function(){af(e);let t=LT();return cf(t.onEditPosition=false)}),ls$1(1,"new-position-business-asset",12),VC(2,"async"),ig("onsubmit",function(t){af(e);let s=LT();return cf(s.onEditSubmit(t))})("oncancel",function(){af(e);let t=LT();return cf(t.onEditPosition=false)}),au()();}if(o&2){let e=LT();Qm$1("iconContainer",false),Ag("show",e.onEditPosition),VD(),Qm$1("disableName",true)("position",BC(2,4,e.onPositionDetail
3s$));}}function Qe(o,r){if(o&1&&Zm$1(0,"business-asset-column-name",13),o&2){let e=r.$implicit,i=r.column;Qm$1("position",e)("isMultiline",!!i?.multiline)("maxLines",i?.maxLines||3);}}function Ue(o,r){if(o&1&&(ls$1(0,"div"),mC(1),VC(2,"noValue"),au()),o&2){let e=r.$implicit;yg("importance-number",e.priority),VD(),Mg(BC(2,3,e.priority));}}function qe(o,r){if(o&1&&Zm$1(0,"no-impact-tooltip",14),o&2){let e=r.$implicit;Qm$1("position",e.data);}}function ze(o,r){if(o&1){let e=ST();ls$1(0,"cye-icon",16),ig("click",function(){af(e);let t=LT(2);return cf(t.onBackClick())}),au();}o&2&&Qm$1("icon","back-icon");}function Ye(o,r){if(o&1&&vT(0,ze,1,1,"cye-icon",15),o&2){let e=LT();IT(e.showBackButton()?0:-1);}}function Je(o,r){if(o&1&&(ls$1(0,"cye-side-pane",17),Zm$1(1,"position-details",18),au()),o&2){let e=r.ngIf;Qm$1("open",!!e)("currentWidth",400)("minResize",400),VD(),Qm$1("newIcons",true)("position",e);}}function Ge(o,r){o&1&&(ls$1(0,"div",19),mC(1," No business asset sources defined "),Zm$1(2,"img",20),au());}var Lt=(()=>{class o extends wt{constructor(){super(...arguments),this.businessAssetsService=T(Ne),this.dynamicComponentsService=T(Ye$1),this.positionService=T(w),this.authService=T(v),this.modalService=T(uo$1),this.router=T(F),this.onEditPosition=false,this.onNewPosition=false,this.updating=false,this.actionPremited=false,this.positionsList$=this.positionService.businessAssetsList$,this.positionsList=z$1(this.positionsList$),this.positionsListLoading$=this.positionService.positionsListLoadState$.pipe(ne(e=>e==="loading")),this.columns$=this.businessAssetsService.columns$,this.onPositionDetails$=new fr(null),this.selectedRow$=Py([this.onPositionDetails$.pipe(o$1()),this.positionsList$],(e,i)=>i.find(t=>t.id===e?.id)||i[0]),this.showBackButton=Ze(false),this.actionButtonsToShow=[{name:"add",tooltip:()=>this.actionPremited?"Add new business asset":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPremited},{name:"delete",tooltip:()=>this.actionPremited?this.currentPositionDetails?.edges_count?`This position is linked to one or more edges and, therefore, cannot be deleted. 4Delete all linked edges and try again. It is recommended to use the filtering options to view all routes, including Fixed and Limited routes.`:"Delete business asset":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPremited||!this.currentPositionDetails||!!this.currentPositionDetails?.edges_count},{name:"edit",icon:"edit_highlight",actionButtonStyle:{border:"none"},tooltip:()=>this.actionPremited?"Edit business asset":"You need \u201CAdministrator\u201D permission in order to use these actions",disableFunc:()=>!this.actionPremited||!this.currentPositionDetails}],this.styleRowFunc=()=>({height:"90px"});}get currentPositionDetails(){return this.onPositionDetails$.getValue()}ngOnInit(){this.authService.profileResponse$.pipe(Dd$1(this.destroy$),o$1(),ne(e=>e?.role)).subscribe(e=>this.actionPremited=e===I.ADMIN),this.initColumns(),this.positionService.positionsListError$.pipe(Dd$1(this.destroy$)).subscribe(e=>{this.updating=false;let i=e?.error?.length?e?.error[0]:e?.message||"Something went wrong";e.status===0||e.status>500||this.dynamicComponentsService.show({component:We$2,context:{headerText:"Business assets failed",messageText:i,messageType:"error",buttonsArray:[{handler:()=>this.dynamicComponentsService.hide(),text:"Close"}]}});}),this.actionButtonsToShow.push({name:"settings",icon:"settings",tooltip:()=>"Settings",disableFunc:()=>!this.actionPremited,template:this.settingsWarningRef}),this.positionService.newPositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Business asset created successfully","success");}),this.positionService.deletePositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Business asset deleted successfully","success");}),this.positionService.editPositionSuccess$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.modalService.openToast("Business asset changed successfully","success");}),this.positionService.businessAssetsList$.pipe(Dd$1(this.destroy$),pt(()=>
4!!this.currentPositionDetails),rd$1(e=>{this.onPositionDetails$.next(e.find(i=>i.id===this.currentPositionDetails?.id)),this.updating=false;})).subscribe(),this.positionsList$.pipe(pt(e=>history.state.assetId&&!!e.length),ne(e=>e.find(i=>i.id===history.state.assetId)),o$1(),Dd$1(this.destroy$)).subscribe(e=>this.onPositionDetails$.next(e)),this.checkIfShowBackButton();}initColumns(){this.businessAssetsService.initColumnTemplates([{label:"Name",template:this.nameColumnRef},{label:"Org. Importance",template:this.importanceColumnRef},{label:"Cost of breach",tooltipTemplate:this.noImapctTooltipRef},{label:"Exposure level",tooltipTemplate:this.noImapctTooltipRef},{label:"Exposure cost",tooltipTemplate:this.noImapctTooltipRef}]),this.positionService.getPositionsDescription("end"),this.positionService.getPositions("end");}onChangeTablePreferences(){this.businessAssetsService.onChangeTablePreferences();}onEditSubmit(e){let i=this.cleanEditablePositionForm(e.formData);this.updating=true,this.onEditPosition=false,this.positionService.editBusinessAssetPosition(e.position,i).subscribe();}onNewSubmit(e){this.updating=true,this.onNewPosition=false,this.positionService.newBusinessAsset(e.formData);}onTableActionClick(e){switch(e){case "settings":this.router.navigateByUrl("settings/company");break;case "edit":this.onEditPosition=true;break;case "add":this.onNewPosition=true;break;case "delete":this.onDelete();break}}onDelete(){this.modalService.confirm("Delete Business Asset",`This action is irreversible. 5 Are you sure you want to delete this business asset?`,()=>{this.updating=true;let e=this.positionsList$.getValue().find(i=>i.id!==this.currentPositionDetails?.id);this.positionService.deleteBusinessAssetPosition(this.currentPositionDetails),this.onPositionDetails$.next(e);},"warn");}onRowSelected(e){this.onPositionDetails$.next(e),this.actionButtonsToShow=[...this.actionButtonsToShow];}cleanEditablePositionForm(e){let i=this.onPositionDetails$.getValue();return Object.keys(e).forEach(s=>{JSON.stringify(e[s])===JSON.stringify(i[s])&&delete e[s];}),e}setSelectedRowPosition(e){let i=this.positionsList$.getValue().find(t=>t.id===e);this.onPositionDetails$.next(i);}checkIfShowBackButton(){let s=history.state,{redirectFromGraph:e,id:i}=s,t=I$1(s,["redirectFromGraph","id"]);this.setSelectedRowPosition(i),e?(this.showBackButton.set(true),history.pushState(t,"")):this.showBackButton.set(false);}onBackClick(){this.router.navigateByUrl("/graph");}static{this.\u0275fac=(()=>{let e;return function(t){return (e||(e=YI(o)))(t||o)}})();}static{this.\u0275cmp=gw({type:o,selectors:[["app-business-assets-page"]],viewQuery:function(i,t){if(i&1&&lg(Le,7)(Oe,7)(Ve,7)(Fe,7)(je,7),i&2){let s;BT(s=$T())&&(t.newPositionRef=s.first),BT(s=$T())&&(t.nameColumnRef=s.first),BT(s=$T())&&(t.importanceColumnRef=s.first),BT(s=$T())&&(t.settingsWarningRef=s.first),BT(s=$T())&&(t.noImapctTooltipRef=s.first);}},features:[Rm$1],decls:18,vars:28,consts:[["nameColumn",""],["importanceColumn",""],["noImapctTooltipRef",""],["backButton",""],["icon","tab-position-business-asset","headerTitle","Create new business asset",3,"width","iconContainer","show","showChange","popupCloseClicked",4,"ngIf"],["icon","tab-position-business-asset","headerTitle","Update business asset",3,"iconContainer","show","showChange","popupCloseClicked",4,"ngIf"],[3,"tableactionbuttonclick","onselect","changeTablePreference","showNoMatchMessage","loading","selectedRow","selectDefault","itemsList","showHeaderFilters","showHeaderSearch","showHeaderColumns","showColumnsHeader","actionButtonsToShow","columns","styleRowFunc","titleTemplate","title"],[3,"open","currentWidth","minResize",4,"ngIf"],["class","no-data",4,"ngIf"],["icon","tab-position-business-asset","headerTitle","Create new business asset",3,"showChange","popupCloseClicked","width","iconContainer","show"],[3,"onsubmit","oncancel"],["icon","tab-position-business-asset","headerTitle","Update business asset",3,"showChange","popupCloseClicked","iconContainer","show"],[3,"onsubmit","oncancel","disableName","position"],[3,"position","isMultiline","maxLines"],[3,"position"],[1,"back-button",3,"icon"],[1,"back-button",3,"click","icon"],[3,"open","currentWidth","minResize"],[3,"newIcons","position"],[1,"n
5o-data"],["src","./assets/png/notification-arrow.png","alt",""]],template:function(i,t){if(i&1&&(Om$1(0,We$1,2,3,"overlay-popup",4)(1,He,3,6,"overlay-popup",5)(2,Qe,1,3,"ng-template",null,0,GC)(4,Ue,3,5,"ng-template",null,1,GC)(6,qe,1,1,"ng-template",null,2,GC)(8,Ye,1,1,"ng-template",null,3,GC),ls$1(10,"cye-data-table",6),VC(11,"async"),VC(12,"async"),VC(13,"async"),ig("tableactionbuttonclick",function(d){return t.onTableActionClick(d)})("onselect",function(d){return t.onRowSelected(d)})("changeTablePreference",function(){return t.onChangeTablePreferences()}),au(),Om$1(14,Je,2,5,"cye-side-pane",7),VC(15,"async"),Om$1(16,Ge,3,0,"div",8),VC(17,"async")),i&2){let s=qT(9),d=t.positionsList(),H=!!d?.length;Qm$1("ngIf",t.onNewPosition),VD(),Qm$1("ngIf",t.onEditPosition),VD(9),Qm$1("showNoMatchMessage",false)("loading",!!BC(11,18,t.positionsListLoading$))("selectedRow",BC(12,20,t.selectedRow$))("selectDefault",true)("itemsList",d)("showHeaderFilters",false)("showHeaderSearch",false)("showHeaderColumns",false)("showColumnsHeader",H)("actionButtonsToShow",t.actionButtonsToShow)("columns",BC(13,22,t.columns$))("styleRowFunc",t.styleRowFunc)("titleTemplate",s)("title",d?.length+" Business assets"),VD(4),Qm$1("ngIf",BC(15,24,t.onPositionDetails$)),VD(2),Qm$1("ngIf",!BC(17,26,t.positionsListLoading$)&&!H);}},dependencies:[_t,be$1,we,Yr,cr,ut,Re,_e,le,Ue$1,$e,Tt,pn,An,pt$1],styles:["[_nghost-%COMP%]{height:100%;display:flex;overflow:hidden;box-sizing:content-box;position:relative}[_nghost-%COMP%] cye-data-table[_ngcontent-%COMP%]{margin:44px 12px 0;min-width:0}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{position:absolute;margin:15px}[_nghost-%COMP%] .back-button[_ngcontent-%COMP%]{margin-right:15px;cursor:pointer}[_nghost-%COMP%] .no-data[_ngcontent-%COMP%]{margin:110px 20px 50px;position:absolute;width:calc(100% - 40px);height:138px;background-color:#fff;box-shadow:0 2px 10px #00000026;border-radius:5px;display:flex;align-items:center;justify-content:center;font:var(--font-22);color:var(--hyver-tertiary)}[_nghost-%COMP%] .no-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{pointer-events:none;position:absolute;left:140px;transform:scaleX(-1);top:-30px}.importance-number[_ngcontent-%COMP%]{font:var(--font-20);color:var(--bg-action-bar);border:2px solid var(--hyver-tertiary);border-radius:50%;width:36px;height:36px;display:flex;align-items:center;justify-content:center}.warning[_ngcontent-%COMP%]{position:absolute;right:-6px;top:-6px;z-index:99}"],changeDetection:1});}}return o})();var ea=new Map;ea.set(t$1.V1,"Cost of breach V1");ea.set(t$1.V2,"Cost of breach V2");var xi=new Map;xi.set("Cost of breach V1",t$1.V1);xi.set("Cost of breach V2",t$1.V2);var eo="license/companies/filter";var to="MMMM d, y",no=[{label:"Company name",field:"name",sortable:true},{label:"License package",sortable:false},{label:"Creation date",field:"created_time",sortable:true},{label:"Company status",field:"company_subscription_type",sortable:true},{label:"Modification date",field:"assignment_date",sortable:true},{label:"Modified by",field:"modified_by",sortable:true},{label:"",sortable:false}];var z=(function(t){return t.DRAFT="DRAFT",t.ACTIVE="ACTIVE",t.DEPRECATED="DEPRECATED",t})(z||{});var fn=(function(t){return t.CUSTOMER="Customer",t.POC="Company on POC",t.NONCUSTOMER="Noncustomer",t.INTERNAL_DEMO="Internal demo",t.NONE="None",t})(fn||{}),hn=(function(t){return t.CUSTOMER="CUSTOMER",t.POC="POC",t.NONCUSTOMER="NONCUSTOMER",t.INTERNAL_DEMO="INTERNAL_DEMO",t})(hn||{});var On=(()=>{class t{constructor(){this.selectedItem=Ze(null);}getSelectedItem(){return this.selectedItem.asReadonly()}updateSelectedItem(e){this.selectedItem.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var io=(()=>{class t{constructor(){this.cyeListStoreService=T(On);}setSelectedItem(e){this.cyeListStoreService.updateSelectedItem(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var ia={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6],0,0,0,0,0,0,0,[["6\\d{4}",[5]],["[2-47]\\d{4}",[5]],0,0,0,0,["(?:0[1-9]|[1589]\\d)\\d{4}",[6]]]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[["[78]\\d{5}",[6]],["690\\d{6}|[356]\\d{5}",[6,9]],["180[02]\\d{4}",[8]],["[19]\\d{5}",[6]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4}
5)","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["[2-4679][2-8]\\d{6}",[8]],["5[02-68]\\d{7}",[9]],["400\\d{6}|800\\d{2,9}"],["900[02]\\d{5}",[9]],0,0,["600[25]\\d{5}",[9]],0,0,["700[05]\\d{5}",[9]]]],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}"],["7\\d{8}"]]],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268",[["268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}"],["268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,["26840[69]\\d{4}"],["26848[01]\\d{4}"]]],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264",[["264(?:292|4(?:6[12]|9[78]))\\d{4}"],["264(?:235|4(?:69|7[67])|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,["264724\\d{4}"]]],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0",0,0,0,0,0,[["4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",[8]],["6(?:[78][2-9]|9\\d)\\d{6}",[9]],["800\\d{4}",[7]],["900[1-9]\\d\\d",[6]],["700[2-9]\\d{4}",[8]],0,0,0,0,["808[1-9]\\d\\d",[6]]]],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}"],["(?:33|4[1349]|55|77|88|9[13-9])\\d{6}"],["800\\d{5}"],["90[016]\\d{5}"],0,0,0,0,["60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[0-2])\\d{4}"],["80[1-4]\\d{5}"]]],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],0,0,0,0,0,0,[["2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}"],["9[1-79]\\d{7}"]]],AR
vendor: 5,619 bytes, line 5
5:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1",0,0,[["3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:(?:11[0-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68])))\\d{6}|(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",[10]],["93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]\\d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]\\d{5}|(?:675\\d|9(?:11[0-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))\\d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]\\d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}"],["800\\d{7,8}"],["60[04579]\\d{7}",[10]],0,0,["810\\d{7}",[10]]]],
vendor: 3,316 bytes, line 5
5AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684",[["684(?:274|6(?:22|33|44|55|77|88|9[19]))\\d{4}"],["684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0",0,0,0,0,0,[["1(?:11\\d|[2-9]\\d{3,11})|(?:316|463)\\d{3,10}|648[34]\\d{3,9}|(?:51|66|73)2\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-7]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}"],["6(?:485|(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d)\\d{3,9}",[7,8,9,10,11,12,13]],["800\\d{6,10}",[9,10,11,12,13]],["(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",[9,10,11,12,13]],0,0,0,0,["5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",[5,6,7,8,9,10,11,12,13]],["8(?:10|2[018])\\d{6,10}|828\\d{5}",[8,9,10,11,12,13]]]],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],0,0,0,0,0,0,[["5(?:2\\d|8[1-9])\\d{4}"],["(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4
5-8]))\\d{4}"],["800\\d{4}"],["900\\d{4}"],0,0,0,0,["(?:28\\d|501)\\d{4}"]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",[["18[1-8]\\d{3,6}",[6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}"],["36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}"],["88\\d{7}"],["900200\\d{3}"]]],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",[8]],["6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}"],["8[08]\\d{6}",[8]],["9[0246]\\d{6}",[8]],0,0,["703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",[8]],0,0,["8[12]\\d{6}",[8]]]],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246",[["246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}"],["246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:246976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}"],0,["24631\\d{5}"]]],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0",0,0,0,0,0,[["(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:[23]\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}"],["(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",[10]],["80[03]\\d{7}",[10]],0,0,0,0,0,["96(?:0[1-69]|1[0-479]|2[278]|3[13-9]|4[0134]|54|6[69]|7[78]|88)\\d{6}",[10]]]],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0",0,0,0,0,0,[["80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",[8]],["4[5-9]\\d{7}",[9]],["800[1-9]\\d{4}",[8]],["(?:70(?:2[0-57]|3[04-7]|44|6[04-69]|7[0579])|90\\d\\d)\\d{4}",[8]],0,0,["78(?:0[578]|1[014-8]|2[25]|3[15-8]|48|5[05]|60|7[06-8]|9\\d)\\d{4}",[8]],0,0,["7879\\d{4}",[8]]]],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]],0,0,0,0,0,0,[["2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[01
579])|5(?:[34]\\d|50|6[5-8]))\\d{4}"],["(?:0[1-7]|4[4-6]|5[0-8]|[67]\\d)\\d{6}"]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",[6,7,8]],["(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",[8,9]],["(?:00800\\d\\d|800)\\d{5}",[8,12]],["90\\d{6}",[8]],0,0,0,0,0,["700\\d{5}",[8]]]],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]],0,0,0,0,0,0,[["(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]\\d\\d|1(?:11|78)))\\d{4}"],["(?:3(?:[0-79]\\d|8[0-57-9])\\d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]\\d|7[0-689])))\\d{4}"],["8[02369]\\d{6}"],["(?:87|9[0-8])\\d{6}"],0,0,0,0,0,["84\\d{6}"]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],0,0,0,0,0,0,[["(?:22|31)\\d{6}"],["(?:29|6[1-9]|7[125-9])\\d{6}"]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]],0,0,0,0,0,0,[["012\\d{7}",[10]],["01(?:2[5-9]|[4-69]\\d)\\d{6}",[10]],0,0,0,0,["81\\d{6}",[8]],0,["857[58]\\d{4}",[8]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441",[["441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}"],["441(?:[2378]\\d|5[0-39]|9[02])\\d{5}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}"],["(?:22[89]|[78]\\d\\d)\\d{4}"],0,0,0,0,0,0,["5[34]\\d{5}"]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?",0,0,0,[["(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",[8]],["(?:57|[67]\\d)\\d{6}",[8]],["8001[07]\\d{4}",[9]],0,0,0,0,0,["50\\d{6}",[8]]]],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]",[["(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}"],["(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}"]]],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",0,0,[["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",[10]],["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",[10,11]],["800\\d{6,7}",[9,10]],["[59]00\\d{6,7}",[9,10]],0,0,0,0,0,["(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370|864))\\d{4}|300\\d{5}",[8,10]]]],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242",[["242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}"],["242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|3[0-4]|[89]9))\\d{4}"],["242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,["242225\\d{4}"]]],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]],0,0,0,0,0,0,[["(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",[7]],["(?:1[67]|[78]7)\\d{6}",[8]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))\\d{4}",[7]],["(?:321|7(?:[1-8]\\d|9[03]))\\d{5}",[8]],["(?:0800|800\\d)\\d{6}",[10]],["90\\d{5}",[7]],0,0,0,0,["79(?:1(?:[0-2]\\d|3[0-8])|2[0-7]\\d)\\d{3}",[8]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,[["(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",[9]],["(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",[9]],["800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}"],["(?:810|902)\\d{7}",[10]],0,0,0,0,["249\\d{6}",[9]]],"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],0,0,0,0,0,0,[["(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",[7]],["6[0-35-7]\\d{5}",[7]],["0800\\d{7}",[11]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}"],["88\\d{5}|(?:8[0-69]|9[016-9])\\d{7}",[7,9]]]],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]],0,0,0,0,0,0,[["(?:2[12]|61)\\d{6}"],["7[02-7]\\d{6}"],0,["8776\\d{4}"]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],0,0,0,0,0,0,[["222[1-589]\\d{5}"],["026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}"],0,["80[0-2]\\d{6}"]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",[9]],["(?:6[89]|7[235-9])\\d{7}",[9]],["800\\d{6}",[9]],["90[016]\\d{6}",[9]],["878\\d{6}",[9]],["860\\d{9}",[12]],["5[18]\\d{7}",[9]],["74[0248]\\d{6}",[9]],0,["84[0248]\\d{6}",[9]]]],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]],0,0,0,0,0,0,[["2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}"],["0[157]\\d{8}"]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],0,0,0,0,0,0,[["(?:2\\d|3[13-7]|4[1-5])\\d{3}"],["[578]\\d{4}"]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]],0,0,0,0,0,0,[["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[0346-9]\\d|1[0-35-9]|2[1-9]|5[0-24-9])|600)|646[59])|(?:600|80[1-9])\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]\\d|50)\\d|3(?:[0346-9]\\d|1[0-35-9]|2[1-9]|5[0-24-9])|600)|646[59])|80[1-8]\\d\\d|9(?:(?:10[0-2]|7[1-9]\\d)\\d|3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",[9]],["(?:123|8)00\\d{6}",[9,11]],0,0,0,0,0,["44\\d{7}",[9]],["600\\d{7,8}",[10,11]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]],0,0,0,0,0,0,[["2(?:22|33)\\d{6}",[9]],["(?:24[23]|6(?:[25-9]\\d|4[0-2]))\\d{6}",[9]],["88\\d{6,7}"]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4}
5)","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,[["(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|2(?:[02-57-9]\\d{3}|1(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))|(?:41[03]|8078|9(?:78|94))\\d\\d)\\d{5}|(?:10|2[0-57-9])(?:1(?:00|23)\\d\\d|95\\d{3,4})|(?:41[03]|9(?:78|94))(?:100\\d\\d|95\\d{3,4})|8078123|(?:43[35]|754|851)\\d{7,8}|(?:43[35]|754|851)(?:1(?:00\\d|23)\\d|95\\d{3,4})|(?:3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[13-9]\\d{6}|2(?:[0-24-9]\\d{5}|3\\d(?:\\d{4})?))|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[24-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[13-9]\\d{5}|2(?:[0-24-9]\\d{4}|3\\d(?:\\d{3})?))|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",[7,8,9,10,11]],["1(?:610\\d|740[0-5])\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",[11]],["(?:(?:10|21)8|8)00\\d{7}",[10,12]],["16[08]\\d{5}",[8]],0,0,0,0,0,["10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-9]|3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",[7,8,9,10,11]]],"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?",0,0,0,[["601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|(?:46|60(?:[18][1-9]|[24-7][2-9]))\\d{6}",[8,10]],["333301[0-5]\\d{3}|3333(?:00|2[5-9]|[3-9]\\d)\\d{4}|(?:3(?:(?:0[0-5]|1\\d|5[01]|70)\\d|2(?:[0-3]\\d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))\\d{6}",[10]],["1800\\d{7}",[11]],["(?:19(?:0[01]|4[78])|901)\\d{7}",[10,11]]]],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))",0,0,0,[["210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",[8]],["(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",[8]],["800\\d{7}",[10]],["90[059]\\d{7}",[10]],0,0,0,0,["(?:210[0-6]|4\\d{3}|5100)\\d{4}",[8]]]],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:3[23]|4[89])\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}"],["(?:5\\d|6[2-4])\\d{6}",[8]],["800\\d{7}",[10]],0,0,0,0,0,0,["807\\d{7}",[10]]]],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}"],["(?:36|5[1-389]|9\\d)\\d{5}"],["800\\d{4}"],0,0,0,0,0,["(?:3[3-5]|4[356])\\d{5}"]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]",[["9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}"],["953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}"],0,0,0,0,0,["955\\d{5}",[8]],0,["60[0-2]\\d{4}",[7]]]],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],0,0,0,0,0,0,[["2[2-6]\\d{6}"],["9(?:10|[4-79]\\d)\\d{5}"],["800\\d{5}"],["90[09]\\d{5}"],["700\\d{5}"],0,["(?:50|77)\\d{6}"],0,0,["80[1-9]\\d{5}"]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",[9]],["7060\\d{5}|(?:60[1-8]|7(?:0[2-5]|19|[2379]\\d))\\d{6}",[9]],["800\\d{6}",[9]],["9(?:0[05689]|76)\\d{6}",[9]],["70[01]\\d{6}",[9]],["9(?:3\\d{9}|6\\d{7,10})"],["9(?:5\\d|7[2-4])\\d{6}",[9]],0,["9[17]0\\d{6}",[9]],["8[134]\\d{7}",[9]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0",0,0,0,0,0,[["32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][
50-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",[5,6,7,8,9,10,11,12,13,14,15]],["1(?:6[023]|7\\d)\\d{7,8}|15(?:[0-25-9]\\d\\d|3(?:10|33))\\d{6}",[10,11]],["800\\d{7,12}",[10,11,12,13,14,15]],["(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",[10,11]],["700\\d{8}",[11]],["1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",[12,13]],["18(?:1\\d{5,11}|[2-9]\\d{8})",[8,9,10,11,12,13,14]],["16(?:4\\d{1,10}|[89]\\d{1,11})",[4,5,6,7,8,9,10,11,12,13,14]],0,["180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",[7,8,9,10,11,12,13,14]]]],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],0,0,0,0,0,0,[["2(?:1[2-5]|7[45])\\d{5}"],["77\\d{6}"]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:[0-59][1-9]|[6-8]\\d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7\\d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]\\d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6\\d))\\d{5}"],["(?:2[6-8]|37|6[78]|96)\\d{6}|(?:2[0-59]|3[0-689]|[457]\\d|6[0-69]|8[126-9]|9[1-47-9])[1-9]\\d{5}"],["80\\d{6}"],["90\\d{6}"]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767",[["767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}"],["767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9",[["8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}"],["8[024]9[2-9]\\d{6}"],["800(?:14|[2-9]\\d)\\d{5}|8[024]9[01]\\d{6}|8(?:33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0",0,0,0,0,0,[["9619\\d{5}|(?:[1-3]\\d|4[013-689])\\d{6}"],["5(?:4[0-29]|6[0-4])\\d{6}|(?:55|6\\d|7[7-9])\\d{7}",[9]],["800\\d{6}",[9]],["80[3-689]1\\d{5}",[9]],0,0,0,0,["98[23]\\d{6}",[9]],["80[12]1\\d{5}",[9]]]],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["[2-7][2-7]\\d{6}",[8]],["964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",[9]],["1800\\d{7}|1[78]00\\d{6}",[10,11]],0,0,0,0,0,["[2-7]890\\d{4}",[8]]]],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",[7]],["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|(?:19|[2-7]\\d)\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[
50-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",[7,8]],["800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}"],["(?:40\\d\\d|900)\\d{4}",[7,8]],["70[0-2]\\d{5}",[8]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0",0,0,0,0,0,[["13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2\\d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",[8,9]],["1[0-25]\\d{8}",[10]],["800\\d{7}",[10]],["900\\d{7}",[10]]]],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}"],["(?:17[1-3]|7\\d\\d)\\d{4}"]]],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]],0,0,0,0,0,0,[["96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:400|8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}"],["96906(?:09|10)\\d\\d|(?:590(?:10[0-2]|600)|97390\\d)\\d{3}|(?:6\\d|7[1-48])\\d{7}"],["[89]00\\d{6}"],["80[367]\\d{6}"],["70\\d{7}"],0,["51\\d{7}"],0,0,["90[12]\\d{6}"]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:11(?:[124]\\d\\d|3(?:[0-79]\\d|8[0-7])|5(?:[02-9]\\d|1[0-57-9])|6(?:[02-79]\\d|1[0-57-9]|8[0-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}"],["700[1-9]\\d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3\\d|77|86|99)|(?:8[01]|9\\d)\\d)\\d{6}"]]],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",[["1[3-7][1-8]\\d{3,6}|(?:19[1-8]|[23568][1-8]\\d|9(?:00|[1-8]\\d))\\d{2,6}",[5,6,7,8,9]],["4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",[6,7,8,9,10]],["800\\d{4,6}",[7,8,9]],["[67]00\\d{5,6}",[8,9]],0,0,["20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}"]],"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,[["603\\d{4}|(?:3[0-6]|6[25-7]|8[58])\\d{5}",[7]],["(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",[7]],["0800\\d{7}",[11]]],"00"],FK:["500","00","[2-7]\\d{4}",[5],0,0,0,0,0,0,0,[["[2-47]\\d{4}"],["[56]\\d{4}"]]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]],0,0,0,0,0,0,[["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}"],["31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}"]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))",0,0,0,[["(?:20|[34]\\d|8[19])\\d{4}"],["(?:[27][1-9]|5\\d|9[16])\\d{4}"],["80[257-9]\\d{3}"],["90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d"],0,0,0,0,["6[0-36]\\d{4}"]]],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0",0,0,0,0,0,[["(?:26[013-9]|59[1-35-9])\\d{6}|(?:[13]\\d|2[0-57-9]|4[1-9]|5[0-8])\\d{7}"],["(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7[3-9]\\d)\\d{6}"],["80[0-5]\\d{6}"],["836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}"],0,0,["80[6-9]\\d{6}"],0,["9\\d{8}"],["8(?:1[01]|2[0156]|4[024]|84)\\d{6}"]]],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",0,0,[["[01]1\\d{6}",[8]],["(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}"]]],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])
5))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473",[["473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-4]|5[59]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}"],["473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0",0,0,0,0,0,[["(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}"],["5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|4(?:0[04]0|411)|5222|9000)[0-4]\\d{3}|(?:5(?:0(?:0(?:0\\d|1[12]|2[02]|3[0-6]|4[04]|5[05]|77|88|9[09])|(?:[14]\\d|77)\\d|22[02])|1(?:1(?:[03][01]|[124]\\d|5[02-6]|7[0-6])|4\\d\\d)|2(?:228|555)|3555|4(?:4(?:[02-9]\\d|14)|555)|5(?:[0157-9]\\d\\d|200|333|4(?:44|55))|6[89]\\d\\d|7(?:(?:[0147-9]\\d|22)\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}"],["800\\d{6}"],0,0,0,0,0,["70[67]\\d{6}"]]],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:4(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)|88\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:694(?:[0-249]\\d|3[0-8])|7093[0-3])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:396|76\\d)\\d|476[0-6])\\d{4}"]]],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0",0,0,0,0,0,[["3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",[9]],["(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",[9]],["800\\d{5,6}"]]],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]],0,0,0,0,0,0,[["2190[0-2]\\d{3}|2(?:0(?:[02]\\d|3[01])|16[24-9]|2[2-5]\\d)\\d{4}"],["5251[0-4]\\d{3}|(?:5(?:[146-8]\\d\\d|250)|60(?:1[01]|6\\d))\\d{4}"]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],0,0,0,0,0,0,[["(?:19|3[1-7]|[68][1-9]|70|9\\d)\\d{4}"],["[245]\\d{5}"],["80\\d{4}"],0,0,0,0,0,["3[89]\\d{4}"]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]],0,0,0,0,0,0,[["44(?:44[6-9]|8[0-389]\\d)\\d{4}|44[6-9]\\d{4}|(?:4(?:[23]|44[23])|8[0-389])\\d{5}|44(?:1|441)[024679]\\d{3}|(?:445|5)(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))\\d{3}"],["(?:(?:[23679]\\d|4[015]|8(?:(?:3[35]|6[68]|99)\\d|7(?:[27]\\d|4[015])))\\d|5(?:[0-489]\\d|56))\\d{4}|8[4-7]\\d{5}"]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]],0,0,0,0,0,0,[["3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",[8]],["6[0-356]\\d{7}",[9]],0,0,0,0,0,0,["722\\d{6}",[9]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]],0,0,0,0,0,0,[["33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}"],["(?:222|55\\d)\\d{6}"],["80\\d[1-9]\\d{5}"],["90\\d[1-9]\\d{5}
5"]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",[10]],["68[57-9]\\d{7}|(?:69|94)\\d{8}",[10]],["800\\d{7,9}"],["90[19]\\d{7}",[10]],["70\\d{8}",[10]],0,["5005000\\d{3}",[10]],0,0,["8(?:0[16]|12|[27]5|50)\\d{7}",[10]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["[267][2-9]\\d{6}",[8]],["(?:[3-5]\\d\\d|80[0-4])\\d{5}",[8]],["18[01]\\d{8}",[11]],["19\\d{9}",[11]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671",[["671(?:2\\d\\d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],0,0,0,0,0,0,[["443\\d{6}",[9]],["9(?:5\\d|6[569]|77)\\d{6}",[9]],0,0,0,0,0,0,["40\\d{5}",[7]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56]
5)|50[0-6]|77[1-57])\\d{4}"],["(?:51[01]|6\\d\\d|7(?:[0-5]\\d|6[0-79]|70|8[067]))\\d{4}"],["(?:289|8(?:00|6[28]|88|99))\\d{4}"],["9008\\d{3}"],0,0,0,0,["515\\d{4}"]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,[["(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|[579]\\d|6[0-5]))|58(?:0[1-9]|1[2-9]))\\d{4}",[8]],["(?:4(?:(?:09|24)[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))\\d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",[8]],["800\\d{6}",[9]],["900(?:[0-24-9]\\d{7}|3\\d{1,4})",[5,6,7,8,11]],["8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",[8]],0,["30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",[8]],["7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",[8]]],"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],0,0,0,0,0,0,[["2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-8]|5[57]|6[2458]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589]|80)|5(?:0[2357-9]|1[1-6]|4[03-58]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|2[01]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",[8]],["[37-9]\\d{7}",[8]],["8002\\d{7}",[11]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",[8,9]],["9(?:(?:0[1-9]|[12589]\\d)\\d\\d|7(?:[0679]\\d\\d|5(?:[01]\\d|44|55|77|9[5-79])))\\d{4}|98\\d{6}",[8,9]],["80\\d{5,7}"],["6[01459]\\d{6}|6[01]\\d{5}",[7,8]],["7[45]\\d{6}",[8]],0,["62\\d{6,7}|72\\d{6}",[8,9]]]],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],0,0,0,0,0,0,[["2(?:2\\d|5[1-5]|81|9[149])\\d{5}"],["(?:[34]\\d|5[568])\\d{6}"],["8\\d{7}"],0,0,0,0,0,["9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}"]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06",0,0,0,0,0,[["(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",[8]],["(?:[257]0|3[01])\\d{7}",[9]],["(?:[48]0\\d|680[29])\\d{5}"],["9[01]\\d{6}",[8]],0,0,["38\\d{7}",[9]],0,["21\\d{7}",[9]]]],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0",0,0,0,0,0,[["2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",[7,8,9,10,11]],["8[1-35-9]\\d{7,10}",[9,10,11,12]],["00(?:1803\\d{5,11}|7803\\d{7})|(?:177\\d|800)\\d{5,7}",[8,9,10,11,12,13,14,15,16,17]],["809\\d{7}",[10]],0,0,["(?:1500|8071\\d{3})\\d{3}",[7,10]],0,0,["804\\d{7}",[10]]]],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}"],["8(?:22|[35-9]\\d)\\d{6}",[9]],["1800\\d{6}",[10]],["15(?:1[2-8]|[2-8]0|9[089])\\d{6}",[10]],["700\\d{6}",[9]],["88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",[10]],["818\\d{6}",[9]],0,["76\\d{7}",[9]],["18[59]0\\d{6}",[10]]]],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0",0,0,0,0,0,[["153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}
5",[8,11,12]],["55(?:4(?:0[0-3]|10|6[015-9])|57[0-289]|8[06][0-2])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",[9]],["1(?:255|80[019]\\d{3})\\d{3}",[7,10]],["1212\\d{4}|1(?:200|9(?:0[0-2]|19|9\\d))\\d{6}",[8,10]],0,["151\\d{8,9}",[11,12]],["1599\\d{6}",[10]],0,["7(?:280[01]|38(?:[05]\\d|8[01358])|8(?:33|55|77|81)\\d)\\d{4}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",[9]],["1700\\d{6}",[10]]]],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24",[["1624(?:230|[5-8]\\d\\d)\\d{3}"],["76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}"],["808162\\d{4}"],["8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}"],["70\\d{8}"],0,["3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}"],0,["56\\d{8}"]]],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0",0,0,0,0,0,[["(?:2717(?:[2-7]\\d|95)|6828[235-7]\\d)\\d{4}|(?:170[24]|280[13468]|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:271[0-689]|682[0-79]|782[0-6])[2-7]\\d{5}|(?:2(?:[02][2-79]|90)|3(?:23|80)|683|79[1-7])\\d{7}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2
5-689]|6[24578]|7[235689]|8[14-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",[10]],["(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:160[01]|6(?:(?:12|[2-4]1|5[17]|6[13]|80)[0189]|7(?:1[0189]|86))|7(?:1(?:2[0189]|9[0-5])|3(?:2[5-8]|[34][017-9]|9[016-9])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:731|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|4[0189]|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-5])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]|881))[0189]\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:[024]\\d|3[05-8]|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}",[10]],["000800\\d{7}|180(?:0\\d{4,9}|3\\d{9})"],["186[12]\\d{9}",[13]],0,0,["140\\d{7}",[10]],0,0,["1860\\d{7}",[11]]]],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]],0,0,0,0,0,0,[["37\\d{5}"],["38\\d{5}"]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",[8,9]],["7[3-9]\\d{8}",[10]]]],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0",0,0,0,0,0,[["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|(?:12\\d|30[0-2])\\d|2(?:[02689]0\\d|121)|4(?:111|40\\d))\\d{4}",[6,7,10]],["9(?:(?:0[0-5]|[13]\\d|2[0-3])\\d\\d|9(?:[0-46]\\d\\d|5(?:10|5\\d)|8(?:[12]\\d|3[0-2]|88)|9(?:[01359]\\d|21|69|77|8[7-9])))\\d{5}",[10]],0,0,0,0,["96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",[4,5]]]],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",[7]],["(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}"],["80[0-8]\\d{4}",[7]],["90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",[7]],0,["(?:689|8(?:7[18]|80)|95[48])\\d{4}",[7]],["809\\d{4}",[7]],0,["49[0-24-79]\\d{4}",[7]]],"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876",[["8766060\\d{3}|(?:658(?:2(?:[5-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]\\d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}"],["(?:6582(?:[0-4]\\d|95)|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[
567])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0",0,0,0,0,0,[["87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",[8]],["(?:427|7(?:[78][0-25-9]|9\\d))\\d{6}",[9]],["80\\d{6}",[8]],["9\\d{7}",[8]],["70\\d{7}",[9]],0,["8(?:10|8\\d)\\d{5}",[8]],["74(?:66|77)\\d{5}",[9]],0,["85\\d{6}",[8]]]],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1",0,0,[["(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",[9]],["[6-9]0[1-9]\\d{7}",[10]],["00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}"],["990\\d{6}",[9]],["60\\d{7}",[9]],0,["570\\d{6}",[9]],["20\\d{8}",[10]],["50[1-9]\\d{7}",[10]]]],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",[7,8,9]],["(?:1(?:0[0-8]|[18]\\d|2[014]|30|4[0-5])|7\\d\\d)\\d{6}",[9]],["800[02-8]\\d{5,6}",[9,10]],["900[02-9]\\d{5}",[9]]]],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",[9]],["312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|9(?:12|9[05-9]))\\d{6}",[9]],["800\\d{6,7}"]]],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}
5|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",[8,9]],["(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",[8,9]],["1800(?:1\\d|2[019])\\d{4}",[10]],["1900(?:1\\d|2[09])\\d{4}",[10]]]],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0",0,0,0,0,0,[["(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}"],["(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))\\d{3}|(?:63\\d\\d|7(?:(?:[0146-9]\\d|2[0-689])\\d|3(?:[02-9]\\d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]\\d)))\\d{4}",[8]],0,0,0,0,0,0,["30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",[8]]]],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],0,0,0,0,0,0,[["7[4-7]\\d{5}"],["[34]\\d{6}"],0,["8\\d{6}"]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869",[["869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}"],["869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}"],["19[1-3]\\d{7}",[10]]]],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?",0,0,0,[["(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",[5,6,8,9,10]],["1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[0-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",[9,10]],["00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|[38]0)\\d{7}",[9,11,12,13,14]],["60[2-9]\\d{6}",[9]],["50\\d{8,9}",[10,11]],0,["1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))\\d{4}",[8]],["15\\d{7,8}",[9,10]],["70\\d{8}",[10]]]],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]],0,0,0,0,0,0,[["2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",[8]],["(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]\\d)|8[68]8|9(?:[069]\\d|3[039]))|9(?:(?:[04679]\\d|8[057-9])\\d|1(?:00|1[01]|99)|2(?:00|2\\d)|3(?:00|3[03])|5(?:00|5\\d)))\\d{4}",[8]],["18\\d{5}",[7]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345",[["345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))\\d{4}"],["345(?:32[1-9]|4(?:1[2-6]|2[0-4])|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["(?:345976|900[2-9]\\d\\d)\\d{4}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",[["7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59)))\\d{5}",[10]],["7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",[10]],["8(?:00|108\\d{3})\\d{7}"],["809\\d{7}",[10]],["808\\d{7}",[10]],0,0,0,["751\\d{7}",[10]]],"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,0,0,0,0,[["(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",[8]],["(?:20(?:[23579]\\d|8[78])|30[24]\\d)\\d{6}|30\\d{7}",[9,10]]]],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0",0,0,0,0,0,[["7(?:62|8[0-6]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}
5"],["(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[7-9]|9[0-4]))\\d{5}"],0,["9[01]\\d{6}",[8]],0,0,0,0,0,["80\\d{6}",[8]]]],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758",[["758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}"],["758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0",0,0,0,[["(?:2(?:01|1[27]|2[024]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",[7]],["(?:6(?:(?:4[5-9]|5\\d)\\d|6(?:[024-68]\\d|1[01]|3[7-9]|7[02]))\\d|7(?:[37-9]\\d|42|56))\\d{4}"],["8002[28]\\d\\d|80(?:05\\d|9)\\d{4}"],["90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",[7]],0,["697(?:42|56|[78]\\d)\\d{4}",[9]],["870(?:28|87)\\d\\d",[7]]]],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}"],["7(?:[0-25-8]\\d|4[0-4])\\d{6}"],0,0,0,0,["1973\\d{5}"]]],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0",0,0,0,0,0,[["2\\d{7}",[8]],["(?:(?:(?:22|33)0|555|7(?:6[01]|7\\d)|88\\d)\\d|4(?:240|[67]))\\d{5}|[56]\\d{6}",[7,9]],0,["332(?:02|[34]\\d)\\d{4}",[9]]]],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],0,0,0,0,0,0,[["2\\d{7}"],["[56]\\d{7}"],["800[1256]\\d{4}"]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]",0,0,0,[["(?:3[1478]|4[124-6]|52)\\d{6}"],["6\\d{7}"],["80[02]\\d{5}"],["9(?:0[0239]|10)\\d{5}"],["70[05]\\d{5}"],0,["70[67]\\d{5}"],0,["[89]01\\d{5}"],["808\\d{5}"]]],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",0,0,0,[["(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}"],["6(?:[26][18]|5[1568]|7[189]|81|9[128])\\d{6}",[9]],["800\\d{5}",[8]],["90[015]\\d{5}",[8]],0,0,0,0,["20(?:1\\d{5}|[2-689]\\d{1,7})",[4,5,6,7,8,9,10]],["801\\d{5}",[8]]]],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]],0,0,0,0,0,0,[["6\\d{7}"],["2333[0-8]\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[02-9]|3[0-24-9]))\\d{4}"],["80\\d{6}"],["90\\d{6}"],0,0,0,0,0,["81\\d{6}"]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}"],["9[1-6]\\d{7}"]]],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]",[["5(?:(?:18|4[0679]|5[03])\\d|2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0",0,0,0,0,0,[["(?:870|9[2-47-9]\\d)\\d{5}",[8]],["4(?:[46]\\d|5[1-9])\\d{5}|(?:3|[67]\\d)\\d{7}"],["(?:800|90\\d)\\d{5}",[8]]]],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}"],["562\\d{5}|(?:6\\d|7[16-9])\\d{6}"],["800\\d{5}"],["90[056]\\d{5}"],0,0,["803\\d{5}"],0,["3[08]\\d{6}"],["808\\d{5}
5"]]],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",[8]],["6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",[8]],["80(?:[0-2578]|9\\d)\\d{5}"],["9(?:4[1568]|5[178])\\d{5}",[8]],0,0,["77[1-9]\\d{5}",[8]],0,["78[1-49]\\d{5}",[8]]]],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1",0,0,[["2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])\\d{5}"],["3[2-9]\\d{7}"],0,0,0,0,0,0,["22\\d{7}"]]],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1",0,0,0,0,0,[["(?:247|528|625)\\d{4}"],["(?:(?:23|54)5|329|45[35-8])\\d{4}"],0,0,0,0,0,0,["635\\d{4}"]]],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0",0,0,0,0,0,[["(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}"],["7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-478]\\d|6[01])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|5[01]|7[015]))\\d{4}"],["800\\d{5}"],["5\\d{7}"],0,0,0,0,0,["8(?:0[1-9]|[1-9]\\d)\\d{5}"]]],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],0,0,0,0,0,0,[["2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-69]))\\d{5}"],["2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[0-3]|[679]\\d|8[2-59])\\d{6}"],["80\\d{6}"]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:12|[28]\\d|3[56]|7[3-6]|9[0-6])\\d|4(?:2[29]|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|22|7[0-2]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[013])|3(?:20\\d|4(?:70|83)|56)|420\\d|5(?:2\\d|470))|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|2472|3(?:20\\d|470)|4(?:2[04]\\d|472)|7(?:3\\d\\d|4[67]0|8(?:[01459]\\d|8))))\\d{4}|5(?:2(?:2\\d{5,6}|47[02]\\d{4})|(?:3472|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[01])|8(?:20\\d|47[02])|9(?:20\\d|470))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:(?:2\\d|51)\\d|4(?:[1-35-9]\\d|4[0-57-9]))|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",[6,7,8,9]],["(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",[7,8,9,10]],["80080(?:0[1-9]|2\\d)\\d{3}",[10]],0,0,0,0,0,["1333\\d{4}",[8]]]],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0",0,0,0,0,0,[["[12](?:2[1-3]|(?:3[2-8]|4[2-68]|5[1-4689])\\d)\\d{5,6}|7(?:0(?:[0-5]\\d|7[078]|80)|128)\\d{4}|[12]27\\d{6}|(?:11|2[16]|5[368])\\d{6}"],["(?:87[01]|92[0139])\\d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])\\d{6}",[8]],0,0,0,0,0,0,["712[0-79]\\d{4}|7(?:1[013-9]|[5-79]\\d)\\d{5}",[8]]]],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]],0,0,0,0,0,0,[["(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",[8]],["6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",[8]],["0800\\d{3}",[7]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670",[["670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:6(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])|89\\d)|80[6-9]\\d\\d|9(?:477[6-9]|767[4589]))\\d{4}"],["(?:69[67]\\d\\d|7091[0-3])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}"]]],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],0,0,0,0,0,0,[["(?:25[08]|35\\d|45[1-7])\\d{5}"],["[2-4][0-46-9]\\d{6}"],["800\\d{5}"]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664",[["6644(?:1[0-3]|91)\\d{4}"],["664(?:3(?:49|9[1-6])|49[2-6])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],0,0,0,0,0,0,[["20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}"],["(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}"],["800(?:02|[3467]\\d)\\d{3}"],["5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}"],0,0,["501\\d{5}"],["7117\\d{4}"],["3550\\d{4}"]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,[["(?:2(?:[0346-8]\\d|1[0-8])|4(?:[013568]\\d|2[0-24-8]|71|90)|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",[7,8]],["5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:0[0-7]|3[013]))\\d{5}",[8]],["802\\d{7}|80[0-2]\\d{4}",[7,10]],["30\\d{5}",[7]],0,0,0,["219\\d{4}",[7]],["3(?:20|9\\d)\\d{4}",[7]]],"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",[7]],["(?:46[46]|[79]\\d\\d)\\d{4}",[7]],["800\\d{7}",[10]],["900\\d{7}",[10]],0,0,["4(?:0[01]|50)\\d{4}",[7]]],"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0",0,0,0,0,0,[["1[2-9]\\d{5}",[7]],["111\\d{6}|(?:2[12]|31|77|[89][89])\\d{7}",[9]]]],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["(?:2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]\\d|7[12]|8[1-8]))\\d{7}"],["8(?:00|88)\\d{7}"],["900\\d{7}"],["500\\d{7}"],0,0,0,0,["300\\d{7}"]],"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0",0,0,0,0,0,[["427[01]\\d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",[8,9]],["1(?:(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|9\\d{7,8})|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0-4]\\d|5[0-79]|6[02-4]|8[02-5]))|(?:[26]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[23
56]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",[9,10]],["1[378]00\\d{6}",[10]],["1600\\d{6}",[10]],0,0,0,0,["15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",[10]]]],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",[8]],["8[2-9]\\d{7}",[9]],["800\\d{6}",[9]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}"],["(?:60|8[1245])\\d{7}",[9]],["80\\d{7}",[9]],["8701\\d{5}",[9]],0,0,0,0,["8(?:3\\d\\d|86)\\d{5}"]]],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],0,0,0,0,0,0,[["(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}"],["(?:[579]\\d|8[0-79])\\d{4}"],["050\\d{3}"],["36\\d{4}"]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]],0,0,0,0,0,0,[["2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}"],["(?:23|7[0467]|[89]\\d)\\d{6}"],["08\\d{6}"],["09\\d{6}"]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1",0,0,[["(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}"],["(?:14|3[58])\\d{4}"]]],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0",0,0,0,0,0,[["20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}",[10]],["(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}",[10]],["800\\d{7,11}"],0,0,0,["700\\d{7,11}"]]],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],0,0,0,0,0,0,[["2\\d{7}"],["(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}"],["1800\\d{4}"]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",[9]],["(?:6[1-58]|970\\d)\\d{7}",[9,11]],["800\\d{4,7}",[7,8,9,10]],["90[069]\\d{4,7}",[7,8,9,10]],0,0,["140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",[5,6,9]],["66\\d{7}",[9]],["(?:85|91)\\d{7}",[9]]]],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]",[["(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-46-9]|7[0-8])\\d{6}",[8]],["45(?:[0-24-9]\\d|3[0-57-9])\\d{4}|(?:4[016-8]|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}
5",[8]],["81[23]\\d{5}",[8]],["(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0",0,0,0,0,0,[["(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",[8]],["9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])\\d{7}",[10]],["1(?:66001|800\\d\\d)\\d{5}",[11]]]],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]],0,0,0,0,0,0,[["444\\d{4}"],["(?:222|55[3-9]|666|777|8\\d\\d|999)\\d{4}"]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]],0,0,0,0,0,0,[["[47]\\d{3}",[4]],["(?:[56]|888[1-9])\\d{3}"]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,[["240\\d{5}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",[8]],["2(?:[0-27-9]\\d|6)\\d{6,7}|2(?:1\\d|75)\\d{5}",[8,9,10]],["508\\d{6,7}|80\\d{6,8}",[8,9,10]],["(?:1[13-57-9]\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",[7,8,9,10]],["70\\d{7}",[9]],0,["8(?:1[16-9]|22|3\\d|4[045]|5[459]|6[235-9]|7[0-3579]|90)\\d{2,7}"]],"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]],0,0,0,0,0,0,[["2[1-6]\\d{6}",[8]],["(?:1505|90[1-9]\\d)\\d{4}|(?:7[124-9]|9[1-9])\\d{6}",[8]],["8007\\d{4,5}|(?:500|800[05])\\d{4}"],["900\\d{5}",[8]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:1(?:0\\d|1[0479]|2[37]|3[0137]|4[147]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[0147-9]\\d|[25][0-5]|33|6[068])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",[7]],["(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",[7,8]],["800\\d{4,5}|(?:00800|800\\d)\\d{6}"],["(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",[7]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:(?:19[02-68]|(?:4[34]|5[14])[0-8]|687)\\d|7(?:173|(?:3[0-8]|55)\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",[8]],["9\\d{8}",[9]],["800\\d{5}",[8]],["805\\d{5}",[8]],["80[24]\\d{5}",[8]],0,0,0,0,["801\\d{5}",[8]]],"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["4(?:0[4-689]|9[4-68])\\d{5}",[8]],["8[7-9]\\d{6}",[8]],["80[0-5]\\d{6}",[9]],0,0,0,["44\\d{4}",[6]],0,["499\\d{5}",[8]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,[["(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",[7]],["(?:7\\d|8[1-48])\\d{6}",[8]],["180\\d{4}",[7]],0,0,0,0,["27[01]\\d{4}",[7]],["2(?:0[0-57]|7[568])\\d{4}",[7]]],"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0",0,0,0,0,0,[["(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",[6,8,9,10]],["(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",[10]],["1800\\d{7,9}",[11,12,13]]]],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]\\d{5,6}",[9,10]],["3(?:[0-247]\\d|3[0-79]|55|64)\\d{7}",[10]],["800\\d{5}
5(?:\\d{3})?",[8,11]],["900\\d{5}",[8]],["122\\d{6}",[9]],0,["(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",[11,12]]]],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]],0,0,0,0,0,0,[["(?:30|47\\d\\d)\\d{5}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",[7,9]],["21(?:1[013-5]|2\\d|3[1-9])\\d{5}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",[9]],["800\\d{6,7}",[9,10]],["70[01346-8]\\d{6}",[9]],0,0,["804\\d{6}",[9]],["64\\d{4,7}",[6,7,8,9]],["39\\d{7}",[9]],["801\\d{6}",[9]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["80[6-9]\\d{6}|(?:[236-9]\\d|4[1-35-9]|5[0-47-9])\\d{4}"],["708(?:4[0-5]|5[0-6])\\d{4}|(?:[236-9]\\d|4[02-489]|5[02-9])\\d{4}"],["80[0-5]\\d{6}",[9]],["8[129]\\d{7}",[9]]]],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939",[["(?:787|939)[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",[8]],["5[69]\\d{7}",[9]],["1800\\d{6}",[10]],0,0,0,0,0,0,["1700\\d{6}",[10]]]],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],0,0,0,0,0,0,[["2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}"],["6(?:[06]92(?:30|9\\d)|[35]92(?:[049]\\d|3[034]))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}"],["80[02]\\d{6}"],["(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}"],["884[0-4689]\\d{5}"],["600\\d{6}|6[06]92(?:0\\d|3[349]|49)\\d{3}"],["70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}"],["6(?:222\\d|89(?:00|88|99))\\d{4}"],["30\\d{7}"],["80(?:8\\d|9[1579])\\d{5}"]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],0,0,0,0,0,0,[["(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}"],["(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)\\d{4}|(?:45|77|88)\\d{5}"]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,[["(?:3[289]|4[246-8]|61|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:[14-68]\\d|2[4-68]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:1\\d|3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-
5578]|75|8[0-8])|858)\\d{5,6}",[7,8,9]],["9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])\\d{6}",[9]],["9800\\d{5,7}",[9,10,11]],0,0,0,["[245]0\\d{6,7}|[36-9]0\\d{4,7}",[6,7,8,9]],0,["8700[0-4]\\d{4}",[9]]]],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],0,0,0,0,0,0,[["4(?:(?:[014]\\d\\d|999)\\d|2022)\\d{3}",[8]],["[35-7]\\d{7}",[8]],["800\\d{4}|(?:0080[01]|800)\\d{6}",[7,9,11]],0,0,0,0,["2[136]\\d{5}",[7]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,[["[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d"],["(?:630|702)0\\d{5}|(?:6(?:00|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}",[9]],["800\\d{6}",[9]],["90[0136]\\d{6}",[9]],0,0,["(?:37\\d|80[578])\\d{6}",[9]],0,0,["801\\d{6}",[9]]],0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0",0,0,0,0,0,[["(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",[7,8,9,10,11,12]],["6(?:[0-689]|7\\d)\\d{6,7}",[8,9,10]],["800\\d{3,9}"],["(?:78\\d|90[0169])\\d{3,7}",[6,7,8,9,10]],0,0,["7[06]\\d{4,10}"]]],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",[["(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))\\d{7}",[10]],["9\\d{9}",[10]],["8(?:0[04]|108\\d{3})\\d{7}"],["80[39]\\d{7}",[10]],["808\\d{7}",[10]]],"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0",0,0,0,0,0,[["(?:06|2[23568]\\d)\\d{6}"],["7[237-9]\\d{7}",[9]],["800\\d{6}",[9]],["900\\d{6}",[9]]]],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0",0,0,0,0,0,[["1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",[9]],["579[0-8]\\d{5}|5(?:[013-689]\\d|7[0-8])\\d{6}",[9]],["800\\d{7}",[10]],["925\\d{6}",[9]],0,0,0,0,0,["920\\d{6}",[9]]]],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]],0,0,0,0,0,0,[["(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",[5]],["48\\d{3}|(?:(?:6[89]|7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}"],["1[38]\\d{3}",[5]],0,0,0,0,0,["5[12]\\d{3}",[5]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,[["4[2-46]\\d{5}"],["2[125-8]\\d{5}"],["800[08]\\d{3}"],["85\\d{5}"],0,0,0,0,["971\\d{4}|(?:64|95)\\d{5}"]],"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1(?:5\\d|8[35-7])\\d{6}"],["(?:1[0-2]|9[0-3569])\\d{7}"]]],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0",0,0,0,0,0,[["(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",[7,8,9]],["7[023689]\\d{7}",[9]],["20\\d{4,7}",[6,7,8,9]],["649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",[7,8,9,10]],["75[1-8]\\d{6}",[9]],["(?:25[245]|67[3-68])\\d{9}",[12]],["10[1-8]\\d{6}",[9]],["74[02-9]\\d{6}",[9]],0,["77[0-7]\\d{6}",[9]]]],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[["662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",[8]],["80[1-9]\\d{5}|(?:8[1-9]|9[0-8])\\d{6}",[8]],["(?:18|8)00\\d{7}",[10,11]],["1900\\d{7}",[11]],0,0,["7000\\d{7}",[11]],0,["(?:3[12]\\d|666)\\d{5}",[8]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]",[["2(?:[0-57-9]\\d|6[4-9])\\d\\d"],["[56]\\d{4}",[5]],0,0,0,0,0,0,["262\\d\\d",[5]]]],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,[["(?:[1-357][2-8]|4[24-8])\\d{6}",[8]],["65(?:[178]\\d|5[56]|6[01])\\d{4}|(?:[37][01]|4[013]|51|6[489])\\d{6}",[8]],["80\\d{4,6}",[6,7,8]],["89[1-3]\\d{2,5}|90\\d{4,6}"],0,0,0,0,["(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",[8]]],"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79",[["79\\d{6}",[8]],["45(?:[0-24-9]\\d|3[0-57-9])\\d{4}|(?:4[016-8]|9\\d)\\d{6}",[8]],["80[01]\\d{5}",[8]],["82[09]\\d{5}",[8]],["880\\d{5}
5",[8]],["81[23]\\d{5}",[8]],["(?:0[235-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}"],0,["85[0-5]\\d{5}",[8]],["810(?:0[0-6]|[2-8]\\d)\\d{3}",[8]]]],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d"],["909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",[9]],["800\\d{6}",[9]],["9(?:00|[78]\\d)\\d{6}",[9]],0,0,["96\\d{7}",[9]],["9090\\d{3}",[7]],["6(?:02|5[0-4]|9[0-6])\\d{6}",[9]],["8[5-9]\\d{7}",[9]]]],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0",0,0,0,0,0,[["22[2-4][2-9]\\d{4}"],["(?:25|3[0-5]|66|7\\d|8[08]|9[09])\\d{6}"]]],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1",0,0,[["0549(?:8[0157-9]|9\\d)\\d{4}",[10]],["6[16]\\d{6}",[8]],0,["7[178]\\d{6}",[8]],0,0,0,0,["5[158]\\d{6}",[8]]]],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]],0,0,0,0,0,0,[["3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}"],["7(?:[015-8]\\d|21|90)\\d{6}"],["800\\d{6}"],["88[4689]\\d{6}
5"],0,0,0,0,["(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}"],["81[02468]\\d{6}"]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0",0,0,0,0,0,[["(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",[6,7]],["(?:(?:15|(?:3[59]|4[89]|6\\d|7[0-35-9]|8[08])\\d|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",[7,8,9]]]],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]],0,0,0,0,0,0,[["(?:2[1-3]|3[0-7]|4\\d|5[2-578])\\d{4}",[6]],["(?:6[08]|7[1-7]|8[1-9])\\d{5}",[7]],["80\\d{5}",[7]],["90\\d{5}",[7]],0,0,0,0,["(?:56|91\\d)\\d{4}"]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0",0,0,0,0,0,[["1[89]\\d{7}"],["(?:12|9[1257-9])\\d{7}"]]],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]],0,0,0,0,0,0,[["22\\d{5}"],["900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}"]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,[["2(?:79(?:0[0347-9]|[1-9]\\d)|89(?:0[024589]|[1-9]\\d))\\d{3}|2(?:[1-69]\\d|[78][0-8])\\d{5}",[8]],["[5-7]\\d{7}",[8]],["800\\d{8}|80[01]\\d{4}",[7,11]],["900\\d{4}(?:\\d{4})?",[7,11]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721",[["7215(?:4[2-8]|8[39]|9[056])\\d{4}"],["7215(?:1[02]|2\\d|5[034679]|8[0-24-8])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0",0,0,0,0,0,[["(?:1(?:[1478]\\d|[2356])|21\\d|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}|2[1-5]\\d{6}"],["(?:50|9[03-689])\\d{7}",[9]]]],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]],0,0,0,0,0,0,[["[23][2-5]\\d{6}",[8]],["7[5-9]\\d{6}",[8]],["0800\\d{4}",[8]],["900\\d{6}",[9]],0,0,0,0,["70\\d{6}",[8]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8",[["8\\d{3}"]]],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649",[["649(?:266|712|9(?:4\\d|50))\\d{4}"],["649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["649(?:71[01]|966)\\d{4}"]]],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,[["22(?:[37-9]0|5[0-5]|6[89])\\d{4}"],["(?:3[01]|[69]\\d|77|8[5-7])\\d{6}"]],"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],0,0,0,0,0,0,[["2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}"],["(?:7[0-389]|9[0-36-9])\\d{6}"]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0",0,0,0,0,0,[["(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",[8]],["(?:(?:14|[89]\\d)\\d\\d|6(?:[1-6]\\d\\d|7(?:1[0-8]|2[4-7]|3[1-6])))\\d{5}",[9]],["(?:001800\\d|1800)\\d{6}",[10,13]],["1900\\d{6}",[10]],0,0,0,0,["6[08]\\d{7}",[9]]]],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4}
5)","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,[["(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}"],["(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])\\d{7}"]],"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7],0,0,0,0,0,0,0,[["(?:2[2-4]|[34]\\d)\\d{2,5}"],["7[2-4]\\d{2,5}"]]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]],0,0,0,0,0,0,[["(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",[7]],["7[2-8]\\d{6}",[8]],["80\\d{5}",[7]],["90\\d{5}",[7]],["70\\d{5}",[7]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,[["(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}"],["(?:6\\d|7[12])\\d{6}"]],"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],0,0,0,0,0,0,[["81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}"],["3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-8])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}"],["8010\\d{4}"],["88\\d{6}"],0,0,0,0,0,["8[12]10\\d{4}"]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]],0,0,0,0,0,0,[["(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",[5]],["(?:5(?:4[0-5]|5[4-6])|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",[7]],["0800\\d{3}",[7]],0,0,0,0,0,["55[0-37-9]\\d{4}",[7]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0",0,0,0,0,0,[["(?:2(?:1[26]|[28][2468]|[3-5][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",[10]],["5(?:61(?:011|61\\d)|82[2-4]\\d\\d)\\d{4}|5(?:[03-5]\\d|1[06]|24|6[24]|7[245]|9[46])\\d{7}",[10]],["8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",[10,12,13]],["(?:8[89]8|900)\\d{7}",[10]],["592(?:21[12]|461)\\d{4}",[10]],0,["444\\d{4}",[7]],["512\\d{7}",[10]],["850\\d{7}",[10]]]],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868",[["868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}"],["868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}"],["868800\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],["868619\\d{4}"]]],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["2[02-9]\\d{3}",[5]],["(?:7[01]\\d|90)\\d{4}",[6,7]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",[8,9]],["(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",[9]],["80[0-79]\\d{6}|800\\d{5}",[8,9]],["20(?:[013-9]\\d\\d|2)\\d{4}",[7,9]],["99\\d{7}",[9]],0,["50[0-46-9]\\d{6}
5",[9]],0,["7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",[10,11]]],0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0",0,0,0,0,0,[["2[2-8]\\d{7}"],["(?:6[1-35-9]|7\\d)\\d{7}"],["80[08]\\d{6}"],["90\\d{7}"],0,0,0,0,["41\\d{7}"],["8(?:40|6[01])\\d{6}"]]],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,[["(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",[9]],["790\\d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])\\d{7}",[9]],["800[1-8]\\d{5,6}"],["900[239]\\d{5,6}"],0,0,0,0,["89[1-579]\\d{6}",[9]]],"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0",0,0,0,0,0,[["20(?:(?:24[09]|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}"],["7(?:28|34)0\\d{5}|7(?:[014-8]\\d|2[01467]|3[0167]|9[0-589])\\d{6}"],["800[1-3]\\d{5}"],["90[1-3]\\d{6}"]]],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,[["(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}",[8]],["9[1-9]\\d{6}",[8]],["0004\\d{2,9}|(?:405|80[05])\\d{4}",[6,7,8,9,10,11,12,13]],["90[0-8]\\d{4}",[7]],0,0,["21\\d{2,3}",[4,5]]],"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]],0,0,0,0,0,0,[["(?:55\\d\\d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]\\d\\d|7(?:[23]\\d|7[69]))|7(?:[168]\\d\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))\\d{5}"],["(?:(?:[25]0|33|8[078]|9[0-57-9])\\d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079])))|7(?:[07]\\d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}"]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698",[["06698\\d{1,6}",[6,7,8,9,10,11]],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784",[["784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}"],["784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"],0,0,0,["78451[0-2]\\d{4}"]]],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}"],["4(?:1[24-8]|2[246])\\d{7}"],["800\\d{7}"],["90[01]\\d{7}"],0,0,["501\\d{7}"]]],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284",[["284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}"],["284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))\\d{4}"],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340",[["340(?:2(?:0\\d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0",0,0,0,0,0,[["2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])\\d{7}
5",[10]],["121[0-3]\\d{5}|(?:160|(?:3\\d|7[06-9])\\d|5(?:[1689]\\d|2[238]|59)|8(?:[1-8]\\d|9[6-9])|9(?:[0-8]\\d|9[013-9]))\\d{6}",[9]],["1800\\d{4,6}|12(?:0[13]|28)\\d{4}",[8,9,10]],["1900\\d{4,6}",[8,9,10]],0,0,["[17]99\\d{4}|69\\d{5,6}",[7,8]],0,["672\\d{6}",[9]]]],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],0,0,0,0,0,0,[["(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",[5]],["(?:[58]\\d|7[0-7])\\d{5}",[7]],["81[18]\\d\\d",[5]],0,0,0,["(?:3[03]|900\\d)\\d{3}"],0,["9(?:0[1-9]|1[01])\\d{4}",[7]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],0,0,0,0,0,0,[["72\\d{4}",[6]],["(?:72|8[23])\\d{4}",[6]],["80[0-5]\\d{6}",[9]],0,0,["[48]0\\d{4}",[6]],0,0,["9[23]\\d{4}",[6]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]],0,0,0,0,0,0,[["6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",[5,6]],["(?:7[1-35-8]|8(?:[3-7]|9\\d{3}))\\d{5}",[7,10]],["800\\d{3}",[6]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0",0,0,0,0,0,[["38\\d{6,10}|(?:2[89]|39)(?:0\\d{5,6}|[1-9]\\d{5})"],["4[3-9]\\d{6}",[8]],["800\\d{5}",[8]],["900\\d{5}",[8]]]],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,[["78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",[7,8]],["7[01378]\\d{7}",[9]]]],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",[9]],["(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:50[0-2]|[67]\\d\\d)\\d\\d|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",[5,6,7,8,9]],["80\\d{7}",[9]],["(?:86[2-9]|9[0-2]\\d)\\d{6}",[9]],0,0,["861\\d{6,7}",[9,10]],0,["87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",[9]],["860\\d{6}",[9]]]],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0",0,0,0,0,0,[["21[1-8]\\d{6}"],["(?:[59][5-8]|7[5-9])\\d{7}"],["800\\d{6}"],0,0,0,0,0,["63\\d{7}"]]],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?
5:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}"],["7(?:[1278]\\d|3[1-9]|9[01])\\d{6}",[9]],["80(?:[01]\\d|20|8[0-8])\\d{3}",[7]],0,0,0,0,0,["86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",[10]]]]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function oo(t,l){var e=Array.prototype.slice.call(l);return e.push(ia),t.apply(this,e)}function Si(){return oo(D$1,arguments)}var Cn=class{static phoneValidator(l){let e;return l.value?(e=Si(l.value),e&&e.isValid()?null:{customError:{message:"incorrect phone number format",error:true}}):null}};var ro=(function(t){return t.SAVE="save",t.CANCEL="cancel",t})(ro||{});var oa=(()=>{class t{#t;#e;#n;constructor(){this.#t=T(Xr),this.#e=T(Ms$1),this.#n=T(A$2),this.ngFeatureFlagElse=null,vc$1(()=>{this.featureFlag&&this.#i();});}ngOnChanges(){this.#i();}#i(){this.#e.clear(),this.#o()?this.#e.createEmbeddedView(this.#t):this.ngFeatureFlagElse&&this.#e.createEmbeddedView(this.ngFeatureFlagElse);}#o(){return this.featureFlag?this.#n.featureFlagEnabled(this.featureFlag):true}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275dir=Iw({type:t,selectors:[["","ngFeatureFlag",""]],inputs:{featureFlag:[0,"ngFeatureFlag","featureFlag"],ngFeatureFlagElse:"ngFeatureFlagElse"},features:[AI]});}}return t})();var cd=["*"];function ld(t,l){if(t&1){let e=ST();ls$1(0,"cye-icon",11),ig("click",function(){af(e);let i=LT();return cf(i.secondary())}),au();}t&2&&Qm$1("clickable",true)("size",15);}function pd(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",12),ig("click",function(){af(e);let i=LT();return cf(i.primary())}),mC(1),au();}if(t&2){let e=LT();Qm$1("disabled",e.disablePrimaryButton),VD(),fu(" ",e.primaryButtonText," ");}}var $i=(()=>{class t{constructor(){this.modalHeader="",this.headerIcon="info",this.topCloseButton=true,this.errorMessage="",this.confirm=true,this.primaryButtonText="Approve",this.primaryButtonEvent=new Xe,this.seconderyButtonText="Close",this.seconderyButtonEvent=new Xe,this.preventDefaultAction=false,this.modalClose=true;}onEscClick(e){e.preventDefault(),this.closeModal();}openModal(){this.modalClose=false;}closeModal(){this.modalClose=true;}primary(){this.primaryButtonEvent.emit(),!this.preventDefaultAction&&this.closeModal();}secondary(){this.seconderyButtonEvent.emit(),!this.preventDefaultAction&&this.closeModal();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["cye-modal-component"]],hostVars:1,hostBindings:function(n,i){n&1&&ig("keydown.esc",function(u){return i.onEscClick(u)},GE),n&2&&ng("hidden",i.modalClose);},inputs:{modalHeader:"modalHeader",headerIcon:"headerIcon",topCloseButton:"topCloseButton",errorMessage:"errorMessage",confirm:"confirm",primaryButtonText:"primaryButtonText",disablePrimaryButton:"disablePrimaryButton",seconderyButtonText:"seconderyButtonText",disableSecondryButton:"disableSecondryButton",preventDefaultAction:"preventDefaultAction",modalClose:"modalClose"},outputs:{primaryButtonEvent:"primaryButtonEvent",seconderyButtonEvent:"seconderyButtonEvent"}
5,standalone:false,ngContentSelectors:cd,decls:16,vars:8,consts:[[1,"back-shadow"],[1,"modal-container"],[1,"header-container"],[3,"size","icon"],["icon","close",3,"clickable","size","click",4,"ngIf"],[1,"body-container"],[1,"footer-container"],[1,"error-message"],[1,"button-group"],[1,"secondary",3,"click","disabled"],[3,"disabled","click",4,"ngIf"],["icon","close",3,"click","clickable","size"],[3,"click","disabled"]],template:function(n,i){n&1&&(jT(),Zm$1(0,"div",0),ls$1(1,"div",1)(2,"div",2),Zm$1(3,"cye-icon",3),ls$1(4,"h3"),mC(5),au(),Om$1(6,ld,1,2,"cye-icon",4),au(),ls$1(7,"div",5),VT(8),au(),ls$1(9,"div",6)(10,"div",7),mC(11),au(),ls$1(12,"div",8)(13,"cye-button",9),ig("click",function(){return i.secondary()}),mC(14),au(),Om$1(15,pd,2,2,"cye-button",10),au()()()),n&2&&(VD(3),Qm$1("size",25)("icon",i.headerIcon),VD(2),Mg(i.modalHeader),VD(),Qm$1("ngIf",i.topCloseButton),VD(5),Mg(i.errorMessage),VD(2),Qm$1("disabled",i.disableSecondryButton),VD(),fu(" ",i.seconderyButtonText," "),VD(),Qm$1("ngIf",i.confirm));},dependencies:[pn,ut,rt],styles:['[_nghost-%COMP%]{position:fixed;top:0;left:0;z-index:999;width:100vw;height:100vh}[_nghost-%COMP%] .back-shadow[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100vw;height:100vh;background-color:var(--black);opacity:.6}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);min-width:320px;background-color:var(--white);border-radius:5px}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(0px,40px) auto minmax(0px,40px);grid-template-rows:50px;gap:0px 10px;grid-template-areas:". . .";background-color:var(--bg-dialog);border-radius:5px 5px 0 0;min-height:45px;width:100%}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{justify-self:center;align-self:center}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .header-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-16);text-align:left;width:100%}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .body-container[_ngcontent-%COMP%]{min-height:30px}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .footer-container[_ngcontent-%COMP%]{padding:0 20px;min-height:70px;display:flex;justify-content:space-between;align-items:center}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .footer-container[_ngcontent-%COMP%] .button-group[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .footer-container[_ngcontent-%COMP%] .button-group[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:10px}[_nghost-%COMP%] .modal-container[_ngcontent-%COMP%] .footer-container[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{color:var(--negative-400);font:var(--font-12)}'],changeDetection:1});}}return t})();var Mi=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275mod=_m$1({type:t});}static{this.\u0275inj=_a$1({imports:[Nn$1,xe,a]});}}return t})();var md=["anchor"],ud=t=>({$implicit:t});function gd(t,l){t&1&&(ls$1(0,"div",2),Zm$1(1,"cye-spinner",5),au());}function fd(t,l){t&1&&(ls$1(0,"div",3),Zm$1(1,"img",6),ls$1(2,"div",7),mC(3,"No matching items"),au()());}function hd(t,l){t&1&&Jm$1(0);}function Cd(t,l){if(t&1){let e=ST();ls$1(0,"div",12),ig("click",function(){let i=af(e).$implicit,s=LT(2);return cf(s.onItemClick(i))}),Om$1(1,hd,1,0,"ng-container",13),au();}if(t&2){let e=l.$implicit;LT(2);let n=DC(0),i=DC(3),s=DC(4);gg("height",i,"px"),yg("selected",s===e),VD(),Qm$1("ngTemplateOutlet",n)("ngTemplateOutletContext",AC(6,ud,e));}}function _d(t,l){t&1&&(ls$1(0,"div",9),mC(1,"You\u2019ve reached the end of the feed"),au());}function yd(t,l){t&1&&(ls$1(0,"div",10),Zm$1(1,"cye-spinner",14),ls$1(2,"span",15),mC(3,"Loading more..."),au()());}function vd(t,l){if(t&1&&(ls$1(0,"cdk-virtual-scroll-viewport",4,0),Om$1(2,Cd,2,8,"div",8),vT(3,_d,2,0,"div",9)(4,yd,4,0,"div",10),Zm$1(5,"div",11,1),au()),t&2){let e=LT(),n=DC(1),i=DC(2),s=DC(3),u=DC(5);Qm$1("itemSize",s),VD(2),Qm$1("cdkVirtualForOf",n)("cdkVirtualForTrackBy",e.trackByFn),VD(),IT(u?3:i?4:-1);}}var aa=(()=>{class t{constructor(){this.itemTemplate=u$.required(),this.itemHeight=u$.required(),this.list=u$(),this.loading=u$(),this.reloading=u$(),this.reachToEnd=u$(),this.selected=u$(),this.itemSelected=l$(),this.scrollEnd=l$(),this.anchor=f$("anchor"),vc$1(()=>{this.itemSelected.emit(this.list()?.[0]);}),vc$1(()=>{let e=this.anchor()?.nativeElement;this.observer?.disconnect(),this.observer=void 0,e&&(this.observer=new IntersectionObserver(n=>{!this.loading()&&n.some(i=>i.isIntersecting)&&this.scrollEnd.emit();}),this.observer.observe(e));});}
5ngOnDestroy(){this.observer?.disconnect();}trackByFn(e,n){return n?.id}onItemClick(e){this.itemSelected.emit(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["cye-list-view"]],viewQuery:function(n,i){n&1&&dg(i.anchor,md,5),n&2&&UT();},inputs:{itemTemplate:[1,"itemTemplate"],itemHeight:[1,"itemHeight"],list:[1,"list"],loading:[1,"loading"],reloading:[1,"reloading"],reachToEnd:[1,"reachToEnd"],selected:[1,"selected"]},outputs:{itemSelected:"itemSelected",scrollEnd:"scrollEnd"},decls:9,vars:7,consts:[["viewport",""],["anchor",""],[1,"reloading"],[1,"empty-list"],[1,"virtual-scroll-viewport",3,"itemSize"],["size","large"],["src","assets/svg/images/unavailable.svg","alt","finding status"],[1,"empty-text"],["class","item",3,"selected","height","click",4,"cdkVirtualFor","cdkVirtualForOf","cdkVirtualForTrackBy"],[1,"no-more-items"],[1,"loading-container"],[1,"sentinel"],[1,"item",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["size","small"],[1,"loading-text"]],template:function(n,i){if(n&1&&(Og(0)(1)(2)(3)(4)(5),vT(6,gd,2,0,"div",2)(7,fd,4,0,"div",3)(8,vd,7,4,"cdk-virtual-scroll-viewport",4)),n&2){EC(i.itemTemplate()),VD();let s=EC(i.list());VD(),EC(i.loading());let u=i.reloading();VD(),EC(i.itemHeight()),VD(),EC(i.selected()),VD(),EC(i.reachToEnd()),VD(),IT(u||!s?6:s.length?8:7);}},dependencies:[Nn$1,Fn$1,Ye$2,P$1,Kt,Gt$1,Zt$1,Ht$2],styles:["[_nghost-%COMP%]{min-width:300px;display:flex;flex-direction:column;min-height:0}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:var(--gray-300) transparent}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{cursor:pointer;border-bottom:solid 1px var(--tertiary-100)}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .item.selected[_ngcontent-%COMP%]{background-color:var(--state-selected)}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover:not(.selected){background-color:var(--state-hover)}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .no-more-items[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;min-height:80px;font:var(--font-14-500)}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:100%;min-height:80px}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font:var(--font-14-500);margin-left:16px}[_nghost-%COMP%] .virtual-scroll-viewport[_ngcontent-%COMP%] .sentinel[_ngcontent-%COMP%]{height:1px}[_nghost-%COMP%] .empty-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;height:100%;justify-content:center}[_nghost-%COMP%] .empty-list[_ngcontent-%COMP%] .empty-text[_ngcontent-%COMP%]{font:var(--font-18-400);margin-top:40px}[_nghost-%COMP%] .reloading[_ngcontent-%COMP%]{display:flex;align-items:center;height:100%;justify-content:center}[_nghost-%COMP%] .reloading[_ngcontent-%COMP%] .loading-text[_ngcontent-%COMP%]{font:var(--font-14-500);margin-left:16px}"]});}}return t})();var sa=(()=>{class t{constructor(){this.itemTemplate=u$.required(),this.itemHeight=u$.required(),this.list=u$(),this.loading=u$(),this.reloading=u$(),this.reachToEnd=u$(),this.scrollEnd=l$(),this.selected=l$(),this.cyeListStoreService=T(On),this.cyeListActionService=T(io),this.selectedItem=this.cyeListStoreService.getSelectedItem();}onItemClick(e){this.cyeListActionService.setSelectedItem(e),this.selected.emit(e);}onScrollEnd(){this.scrollEnd.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["cye-list"]],inputs:{itemTemplate:[1,"itemTemplate"],itemHeight:[1,"itemHeight"],list:[1,"list"],loading:[1,"loading"],reloading:[1,"reloading"],reachToEnd:[1,"reachToEnd"]},outputs:{scrollEnd:"scrollEnd",selected:"selected"},features:[SC([io,On])],decls:1,vars:7,consts:[[3,"scrollEnd","itemSelected","itemTemplate","list","loading","reloading","reachToEnd","itemHeight","selected"]],template:function(n,i){if
5(n&1&&(ls$1(0,"cye-list-view",0),ig("scrollEnd",function(){return i.onScrollEnd()})("itemSelected",function(u){return i.onItemClick(u)}),au()),n&2){let s=i.itemTemplate(),u=i.list(),D=i.loading(),Me=i.reloading(),Ye=i.itemHeight(),st=i.selectedItem(),qt=i.reachToEnd();Qm$1("itemTemplate",s)("list",u)("loading",D)("reloading",Me)("reachToEnd",qt)("itemHeight",Ye)("selected",st);}},dependencies:[aa],styles:["[_nghost-%COMP%]{min-width:300px;width:100%;display:flex;flex-direction:column;min-height:0}cye-list-view[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}"]});}}return t})();var Zt=(()=>{class t{constructor(){this._list=Ze([]),this._total=Ze(0),this._url=Ze(""),this._apiVersion=Ze(null),this._page=Ze(0),this.list=this._list.asReadonly(),this.total=this._total.asReadonly(),this.url=this._url.asReadonly(),this.apiVersion=this._apiVersion.asReadonly(),this.page=this._page.asReadonly();}updateList(e){this._list.update(n=>{let i=n||[],s=e||[];return [...i,...s]});}setList(e){this._list.set(e||[]);}updateTotal(e){this._total.set(e);}updateUrl(e){this._url.set(e);}updateApiVersion(e){this._apiVersion.set(e);}updatePage(e){this._page.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var bi=(()=>{class t{constructor(){this.cyeManagedListStoreService=T(Zt),this.restApiService=T(d$1);}fetchList(e){let n=this.cyeManagedListStoreService.url(),i=this.cyeManagedListStoreService.apiVersion(),st=e,{filter:s,page:u}=st,D=I$1(st,["filter","page"]),Me=F$1(E(E({},s??{}),D),{page:(u??0)+1});return (i?this.restApiService.postClientBaseUrl(n,Me,i):this.restApiService.post(n,Me)).pipe(ne(qt=>this.mapResponse(qt)))}mapResponse(e){return {items:e.findings??e.items??[],total:e.total??0}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var ao=(()=>{class t{constructor(){this.cyeManagedListStoreService=T(Zt),this.cyeManagedListApiService=T(bi);}updateUrl(e){this.cyeManagedListStoreService.updateUrl(e);}updateApiVersion(e){this.cyeManagedListStoreService.updateApiVersion(e);}updatePage(e){this.cyeManagedListStoreService.updatePage(e);}refreshList(e){return this.cyeManagedListApiService.fetchList(e).pipe(rd$1(n=>{this.setList(n.items),this.cyeManagedListStoreService.updateTotal(n.total);}))}loadMore(e){return this.cyeManagedListApiService.fetchList(e).pipe(rd$1(n=>{this.updateList(n.items),this.cyeManagedListStoreService.updateTotal(n.total);}))}setList(e){this.cyeManagedListStoreService.setList(e);}updateList(e){this.cyeManagedListStoreService.updateList(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var wi=(()=>{class t{constructor(){this.cyeManagedListStoreService=T(Zt),this.cyeManagedListActionService=T(ao),this.itemTemplate=u$.required(),this.itemHeight=u$.required(),this.url=u$.required(),this.apiVersion=u$(null),this.filter=u$(),this.selected=l$(),this.totalChanged=l$(),this.page=this.cyeManagedListStoreService.page,this.list=this.cyeManagedListStoreService.list,this.total=this.cyeManagedListStoreService.total,this.params=kt(()=>({filter:this.filter(),page:this.page()})),this.reachToEnd=kt(()=>this.list()?.length===this.total()),this.refreshResource=B({stream:e=>this.cyeManagedListActionService.refreshList(be$3(this.params))}),this.loadMoreResource=B({stream:e=>this.page()?this.cyeManagedListActionService.loadMore(be$3(this.params)):Uy(null)}),vc$1(()=>{this.filter()&&(this.cyeManagedListActionService.updatePage(0),this.refreshResource.reload());}),vc$1(()=>this.totalChanged.emit(this.total()));}ngOnInit(){this.cyeManagedListActionService.updateApiVersion(this.apiVersion()),this.cyeManagedListActionService.updateUrl(this.url());}loadNextPage(){this.refreshResource.isLoading()||this.reachToEnd()||(this.cyeManagedListActionService.updatePage(this.page()+1),this.loadMoreResource.reload());}handleSelected(e){this.selected.emit(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["cye-managed-list"]],inputs:{itemTemplate:[1,"itemTemplate"],itemHeight:[1,"itemHeight"],url:[1,"url"],apiVersion:[1,"apiVersion"],filter:[1,"filter"]},outputs:{selected:"selected",totalChanged:"totalChanged"},features:[SC([Zt,ao,bi])],decls:1,vars:6,consts:[[1,"findings-list",3,"selected","scrollEnd","list","itemTemplate","itemHeight","loading","reloading","reachToEnd"]],template:function(n,i){if
5(n&1&&(ls$1(0,"cye-list",0),ig("selected",function(u){return i.handleSelected(u)})("scrollEnd",function(){return i.loadNextPage()}),au()),n&2){let s=i.itemTemplate(),u=i.itemHeight(),D=i.refreshResource?.isLoading(),Me=i.loadMoreResource?.isLoading(),Ye=i.list(),st=i.reachToEnd();Qm$1("list",Ye)("itemTemplate",s)("itemHeight",u)("loading",Me)("reloading",D)("reachToEnd",st);}},dependencies:[Nn$1,sa],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;min-height:0}cye-list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}"]});}}return t})();var En=t=>({ok:t});function $d(t,l){t&1&&(uu(0),ls$1(1,"label"),mC(2,"Two-factor token:"),au(),Zm$1(3,"cye-input",14),Mb(),xs$1()),t&2&&(VD(3),Qm$1("primaryIcon","icon-key")("maxlength",6),xb());}function Md(t,l){if(t&1&&(ls$1(0,"p",15),mC(1),au()),t&2){let e=LT(2);VD(),fu("Error: ",e.errorMessage);}}function bd(t,l){t&1&&(ls$1(0,"p",15),mC(1,"Passwords do not match"),au());}function wd(t,l){if(t&1){let e=ST();ls$1(0,"div")(1,"form",2),ig("ngSubmit",function(){af(e);let i=LT();return cf(i.submit())}),ls$1(2,"label",3),mC(3,"Current Password:"),au(),Zm$1(4,"cye-input",4),Mb(),ls$1(5,"div",5)(6,"cye-link-button",6),mC(
57,"Forgot your password?"),au()(),ls$1(8,"i",7),Zm$1(9,"span",8)(10,"span",8)(11,"span",8)(12,"span",8)(13,"span",8),au(),ls$1(14,"label"),mC(15,"New Password:"),au(),Zm$1(16,"cye-input",9),Mb(),ls$1(17,"p",10),mC(18," Password must contain at least: "),ls$1(19,"label",8),Zm$1(20,"i",8),mC(21," 12 Characters "),au(),ls$1(22,"label",8),Zm$1(23,"i",8),mC(24," One upper case letter "),au(),ls$1(25,"label",8),Zm$1(26,"i",8),mC(27," One lower case letter "),au(),ls$1(28,"label",8),Zm$1(29,"i",8),mC(30," One number "),au(),ls$1(31,"label",8),Zm$1(32,"i",8),mC(33," One special characters "),au()(),ls$1(34,"label",3),mC(35,"Retype New Password:"),au(),Zm$1(36,"cye-input",11),Mb(),Om$1(37,$d,4,2,"ng-container",0)(38,Md,2,1,"p",12)(39,bd,2,0,"p",12),ls$1(40,"footer")(41,"cye-button",13),mC(42,"Update Password"),au()()()();}if(t&2){let e=LT();VD(),Qm$1("formGroup",e.passwordForm),VD(3),xb(),VD(5),Qm$1("ngClass",e.calculatePassStrengthCssCalss(5)),VD(),Qm$1("ngClass",e.calculatePassStrengthCssCalss(4)),VD(),Qm$1("ngClass",e.calculatePassStrengthCssCalss(3)),VD(),Qm$1("ngClass",e.calculatePassStrengthCssCalss(2)),VD(),Qm$1("ngClass",e.calculatePassStrengthCssCalss(1)),VD(3),xb(),VD(3),Qm$1("ngClass",AC(21,En,e.validPassword("length"))),VD(),Qm$1("ngClass",e.validPassword("length")?"icon-edit-submit":"icon-grey-thin-arrow"),VD(2),Qm$1("ngClass",AC(23,En,e.validPassword("upper-case"))),VD(),Qm$1("ngClass",e.validPassword("upper-case")?"icon-edit-submit":"icon-grey-thin-arrow"),VD(2),Qm$1("ngClass",AC(25,En,e.validPassword("lower-case"))),VD(),Qm$1("ngClass",e.validPassword("lower-case")?"icon-edit-submit":"icon-grey-thin-arrow"),VD(2),Qm$1("ngClass",AC(27,En,e.validPassword("number"))),VD(),Qm$1("ngClass",e.validPassword("number")?"icon-edit-submit":"icon-grey-thin-arrow"),VD(2),Qm$1("ngClass",AC(29,En,e.validPassword("special-char"))),VD(),Qm$1("ngClass",e.validPassword("special-char")?"icon-edit-submit":"icon-grey-thin-arrow"),VD(4),xb(),VD(),Qm$1("ngIf",e.tfaEnabled),VD(),Qm$1("ngIf",e.errorMessage),VD(),Qm$1("ngIf",e.confirm.touched&&e.passwordForm.hasError("notSame")),VD(2),Qm$1("loading",e.isLoading)("disabled",!e.passwordForm.valid);}}function Pd(t,l){t&1&&(ls$1(0,"div",16)(1,"div",17)(2,"h2"),mC(3,"Your password has been changed succesfully"),au(),Zm$1(4,"img",18),au()());}var da=(()=>{class t extends wt{constructor(e,n,i,s){super(),this.fb=e,this.authService=n,this.authActionService=i,this.authApiService=s,this.passRegEx=/^(?=.{12,})(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&+*!=]).*$/,this.passwordForm=this.fb.group({current:["",be$2.required],newPass:["",[be$2.required,r(this.passRegEx,{customError:{message:"Password is too weak"}})]],confirm:["",[be$2.required]]},{validator:this.checkPasswords}),this.passwordChanged=false,this.errorMessage="",this.failedUpdate=false,this.isLoading=false;}ngOnInit(){this.authApiService.deviceList$.pipe(Dd$1(this.destroy$),pt(e=>!!e),rd$1(e=>this.activeDeviceId=e.find(n=>n.confirmed===true)?.id)).subscribe(),this.authService.changePasswordResult$.pipe(Dd$1(this.destroy$)).subscribe(e=>{e.status==="success"?this.passwordChanged=true:e.status==="error"&&(e.detail.error?e.detail.error.password?this.errorMessage=e.detail.error.password[0]:e.detail.error.new_password?e.detail.error.new_password[0][0].message?this.errorMessage=e.detail.error.new_password[0][0].message:e.detail.error.new_password[0]&&(this.errorMessage=e.detail.error.new_password[0].replace(/[^a-zA-Z0-9. ]+/g,"")):this.errorMessage="Please try again or contact support":this.errorMessage="Please try again or contact support"),this.isLoading=false;}),this.tfaEnabled&&(this.passwordForm.addControl("tfaToken",new z$2("",be$2.required)),this.authApiService.getDeviceList());}resetForm(){this.passwordForm.reset();}get current(){return this.passwordForm.controls.current}get newPass(){return this.passwordForm.controls.newPass}get confirm(){return this.passwordForm.controls.confirm}get tfaToken(){return this.passwordForm.controls.tfaToken}checkPasswords(e){let n=e.get("newPass").value,i=e.get("confirm").value;return n===i?null:{notSame:true}}submit(){if(this.isLoading=true,this.errorMessage="",this.tfaEnabled){if(!this.activeDeviceId){this.errorMessage="Please try again or c
5ontact support",this.authApiService.getDeviceList();return}this.authActionService.changePassword(this.current.value,this.newPass.value,this.activeDeviceId,this.tfaToken.value);}else this.authActionService.changePassword(this.current.value,this.newPass.value);}validPassword(e){switch(e){case "length":return this.newPass.value.length>11;case "upper-case":return /(?=.*[A-Z])/.test(this.newPass.value);case "lower-case":return /(?=.*[a-z])/.test(this.newPass.value);case "number":return /(?=.*[0-9])/.test(this.newPass.value);case "special-char":return /(?=.*[@#$%^&+*!=])/.test(this.newPass.value)}return false}strengthVal(){let e=0;return this.newPass.value.length>11&&e++,/(?=.*[0-9])/.test(this.newPass.value)&&e++,/(?=.*[A-Z])/.test(this.newPass.value)&&e++,/(?=.*[a-z])/.test(this.newPass.value)&&e++,/(?=.*[@#$%^&+*!=])/.test(this.newPass.value)&&e++,e}calculatePassStrengthCssCalss(e){let n=this.strengthVal(),i=this.newPass.value;switch(e){case 1:if(n>=1&&n<3)return "bad";if(n>=3&&n<4&&i.length<4)return "bad";if(n>=3&&n<4&&i.length>=4)return "med";if(n>=4&&i.length<5)return "med";if(n>=4&&i.length>=5)return "good";if(n<1)return "";break;case 2:if(n>=2&&n<3&&i.length>=2)return "bad";if(n>=3&&n<4&&i.length<4)return "bad";if(n>=3&&n<4&&i.length>=4)return "med";if(n>=4&&i.length>=4)return "good";break;case 3:if(n>=3&&n<4&&i.length>=4)return "med";if(n>=4)return "good";break;case 4:if(n>=4&&n<5)return "good";if(n>=5)return "good";break;case 5:if(n>=5)return "good";break}return ""}validInput(e){switch(e){case "curr":if(this.current.invalid&&this.current.dirty)return "input-err";break;case "new":if(this.newPass.invalid&&this.newPass.dirty)return "input-err";if(this.newPass.valid&&this.newPass.touched)return "input-success";break;case "confirm":if(this.confirm.touched&&this.confirm.value!==this.newPass.value)return "input-err";if(this.confirm.value===this.newPass.value&&this.confirm.touched&&this.confirm.value!=="")return "input-success";break}return ""}static{this.\u0275fac=function(n){return new(n||t)(fo$1(zn),fo$1(v),fo$1(Ue$2),fo$1(k))};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-change-pass"]],inputs:{tfaEnabled:"tfaEnabled"},standalone:false,features:[Rm$1],decls:2,vars:2,consts:[[4,"ngIf"],["class","success",4,"ngIf"],[1,"form",3,"ngSubmit","formGroup"],[2,"margin-top","0"],["errorPosition","topright","formControlName","current","type","password","placeholder","Enter your current password",2,"width","100%"],[1,"forgot-password-container"],["routerLink","/forgot-password","id","forgot-pass"],[1,"strength-indicator"],[3,"ngClass"],["errorPosition","topright","formControlName","newPass","type","password","placeholder","Enter new password",2,"width","100%"],[1,"password-tip"],["errorPosition","topright","formControlName","confirm","type","password","placeholder","Retype new password",2,"width","100%"],["class","error-message",4,"ngIf"],["type","submit",3,"loading","disabled"],["placeholder","Enter Token","formControlName","tfaToken",2,"width","100%",3,"primaryIcon","maxlength"],[1,"error-message"],[1,"success"],[1,"text"],["src","assets/svg/icons/hyver-icon-hex-success.svg"]],template:function(n,i){n&1&&Om$1(0,wd,43,31,"div",0)(1,Pd,5,0,"div",1),n&2&&(Qm$1("ngIf",!i.passwordChanged),VD(),Qm$1("ngIf",i.passwordChanged));},dependencies:[z$3,hn$1,pn,Wn,Hn,$n$1,Xt$1,Dn$1,Vn,rt,fe,$t],styles:[".success[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:var(--font-18);line-height:24px;color:var(--text-color-success);font-weight:400;text-align:center}.success[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:0;right:0;margin:auto auto 20px;display:block}label[_ngcontent-%COMP%]{display:block;margin:10px 0 0}.error-message[_ngcontent-%COMP%]{font:var(--font-14);color:red}.forgot-password-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:5px}.strength-indicator[_ngcontent-%COMP%]{position:absolute;height:32px;width:4px;margin-top:37px;margin-left:-7px;display:flex;flex-direction:column;justify-content:space-between}.strength-indicator[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:100%;border-radius:50%;height:4px;background:#a6b5d4}.strength-indicator[_ngcontent-%COMP%] span.bad[_ngcontent-%COMP%]{background-color:#e03551}.strength-indicator[_ngcontent-%COMP%] span.med[_ngcontent-%COMP%]{background-color:#f2c549}.strength-indicator[_ngcontent-%COMP%] span.good[_ngcontent-%COMP%]{background-color:#00b07b}.password-tip[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font:var(--font-12);margin:0}.password-tip[_ngcontent-%COMP%] label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-family:Roboto!important;font-size:10px}.password-tip[_ngcontent-%COMP%] label.ok[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .password-tip[_ngcontent-%COMP%] label.ok[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--text-color-success)}footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}"],changeDetection:1});}}return t})();function kd(t,l){t&1&&Zm$1(0,"cye-spinner",12);}function Od(t,l){if(t&1&&(ls$1(0,"div",9),Om$1(1,kd,1,0,"cye-spinner",10),Zm$1(2,"qrcode",11),au()),t&2){LT(3);let e=DC(0);VD(),Qm$1("ngIf",!e),VD(),Qm$1("qrdata",e)("width",256);}}function Ed(t,l){if(t&1&&(uu(0),ls$1(1,"h3"),mC(2,"Authentication Using OTP:"),au(),ls$1(3,"p"),mC(4,"Open Authenticator App and scan this code:"),au(),Om$1(5,Od,3,3,"div",8),xs$1()),t&2){let e=LT(2);VD(5),Qm$1("ngIf",e.showQr);}}function Ld(t,l){t&1&&(uu(0),ls$1(1,"h3"),mC(2,"Disable two-factor authentication:"),au(),xs$1());}function Id(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",13),VC(1,"async"),ig("click",function(){af(e);let i=LT(2);return cf(i.verifyTfa())}),mC(2,"Verify"),au();}if(t&2){let e=LT(2);Qm$1("loading",BC(1,2,e.isLoading$))("disabled",!e.tfaForm.valid);}}function Dd(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",13),VC(1,"async"),ig("click",function(){af(e);let i=LT(2);return cf(i.disableTfa())}),mC(2," Disable "),au();}if(t&2){let e=LT(2);Qm$1("loading",BC(1,2,e.isLoading$))("disabled",!e.tfaForm.valid);}}function Ad(t,l){if(t&1&&(ls$1(0,"form",3),Om$1(1,Ed,6,1,"ng-container",4)(2,Ld,3,0,"ng-container",4),ls$1(3,"label"),mC(4,"Password:"),au(),Zm$1(5,"cye-input",5),Mb(),ls$1(6,"label"),mC(7,"Token:"),au(),Zm$1(8,"cye-input",6),Mb(),ls$1(9,"footer"),Om$1(10,Id,3,4,"cye-button",7)(11,Dd,3,4,"cye-button",7),au()()),t&2){let e=LT();Qm$1("formGroup",e.tfaForm),VD(),Qm$1("ngIf",!e.tfaEnabled),VD(),Qm$1("ngIf",e.tfaEnabled),VD(3),xb(),VD(3),Qm$1("maxlength",6),xb(),VD(2),Qm$1("ngIf",!e.tfaEnabled),VD(),Qm$1("ngIf",e.tfaEnabled);}}function Vd(t,l){if(t&1){let e=ST();uu(0),ls$1(1,"shared-pages-recovery-key",16),ig("ondone",function(){af(e);let i=LT(2);return cf(i.onDone())}),au(),xs$1();}if(t&2){let e=LT(2);VD(),Qm$1("mainDescription","Copy this recovery code to a safe place. Use it to reset your 2FA.")("recoveryKeyText","This recovery code can only be used once.")("reset2faToken",e.recoveryKey);}}function Fd(t,l){if(t&1&&(ls$1(0,"div",17)(1,"h2"),mC(2),au(),Zm$1(3,"img",18),au()),t&2){let e=LT(2);VD(2),fu("Two-factor authentication has been successfuly ",e.tfaEnabled?"activated":"disabled");}}function Nd(t,l){if(t&1&&(ls$1(0,"div",14),Om$1(1,Vd,2,3,"ng-container",15)(2,Fd,4,1,"ng-template",null,0,GC),au()),t&2){let e=qT(3),n=LT();VD(),Qm$1("ngIf",n.tfaEnabled)("ngIfElse",e);}}var ca=(()=>{class t extends wt{constructor(e,n,i,s,u,D){super(),this.fb=e,this.modalService=n,this.tokenService=i,this.authService=s,this.authActionService=u,this.authApiService=D,this.showQr=true,this.tfaEnabledChange=new Xe,this.popupclose=new Xe,this.isLoading$=this.authService.isLoading$.pipe(Dd$1(this.destroy$),gd$1(1)),this.tfaForm=this.fb.group({token:["",be$2.required],password:["",be$2.required]}),this.qrUrl=Ze(null),this.success=false;}ngOnInit(){this.authApiService.deviceList$.pipe(Dd$1(this.destroy$),pt(e=>!!e?.length)).subscribe(e=>this.activeDeviceId=e.find(n=>n.confirmed===true)?.id||""),this.tfaEnabled?this.authApiService.getDeviceList():this.authApiService.addDeviceToList({device_type:"TOTP",name:"google_authenticator"}).pipe(pt(e=>e?.id!=null),rd$1(e=>{this.qrUrl.set(this.buildQR(this.tokenService.getUserKey()||"",e.key)),this.tfaObj=e;}),Ys$1(()=>(this.modalService.openToast("OTP failed","error"),Oe$1))).subscribe();}verifyTfa(){this.authService.isLoading=true,this.authActionService.getSpecialToken(this.password.value).pipe(Ys$
51(e=>(this.tokenService.restoreLastToken(),this.modalService.openToast("Failed to activate Two-factor authentication. Please try again or contact support","warn",10),this.authService.isLoading=true,e)),pt(e=>!(e instanceof b$1)),Ht$1(1),Ed$1(e=>(this.tokenService.saveLastToken(),this.tokenService.sessionToken=e.token,this.authApiService.confirmDevice(this.token.value,this.tfaObj.id).pipe(Ht$1(1))))).pipe(rd$1(e=>{this.tokenService.restoreLastToken(),this.tfaEnabled=true,this.recoveryKey=e?.token_set[0]||"",this.tfaEnabledChange.emit(true),this.success=true;}),nd$1(()=>this.authService.isLoading=false),Ys$1(()=>(this.modalService.openToast("Failed to activate Two-factor authentication. Please try again or contact support","warn",10),Oe$1))).subscribe();}disableTfa(){this.authService.isLoading=true,this.activeDeviceId&&this.authActionService.getSpecialToken(this.password.value,this.activeDeviceId,this.token.value).pipe(Ht$1(1),rd$1(e=>{this.tokenService.saveLastToken(),this.tokenService.sessionToken=e.token;}),Ed$1(()=>this.authApiService.disableDevice(this.token.value,this.activeDeviceId).pipe(Ht$1(1),rd$1(()=>{this.tfaEnabled=false,this.tfaEnabledChange.emit(false),this.success=true;}),nd$1(()=>{this.tokenService.restoreLastToken(),this.authService.isLoading=false;}))),Ys$1(()=>(this.modalService.openToast("Failed to disable Two-factor authentication. Please try again or contact support","warn",10),this.authService.isLoading=false,Oe$1))).subscribe();}buildQR(e,n){let i="Hyver";return `otpauth://totp/${i}:${e}?secret=${n}&issuer=${i}`}onDone(){this.popupclose.emit();}get token(){return this.tfaForm.controls.token}get password(){return this.tfaForm.controls.password}static{this.\u0275fac=function(n){return new(n||t)(fo$1(zn),fo$1(uo$1),fo$1(p$3),fo$1(v),fo$1(Ue$2),fo$1(k))};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-tfa-setting"]],inputs:{tfaEnabled:"tfaEnabled",showQr:"showQr"},outputs:{tfaEnabledChange:"tfaEnabledChange",popupclose:"popupclose"},standalone:false,features:[Rm$1],decls:3,vars:3,consts:[["tfaDisable",""],[3,"formGroup",4,"ngIf"],["class","success",4,"ngIf"],[3,"formGroup"],[4,"ngIf"],["placeholder","Enter Password","primaryIconClass","icon-key","type","password","formControlName","password",2,"width","100%"],["placeholder","Enter Token","primaryIconClass","icon-key","formControlName","token",2,"width","100%",3,"maxlength"],["type","submit",3,"loading","disabled","click",4,"ngIf"],["class","qr",4,"ngIf"],[1,"qr"],["size","medium",4,"ngIf"],[3,"qrdata","width"],["size","medium"],["type","submit",3,"click","loading","disabled"],[1,"success"],[4,"ngIf","ngIfElse"],[3,"ondone","mainDescription","recoveryKeyText","reset2faToken"],[2,"height","180px"],["src","assets/svg/icons/hyver-icon-hex-success.svg"]],template:function(n,i){n&1&&(Og(0),Om$1(1,Ad,12,6,"form",1)(2,Nd,4,2,"div",2)),n&2&&(EC(i.qrUrl()),VD(),Qm$1("ngIf",!i.success),VD(),Qm$1("ngIf",i.success));},dependencies:[gm$1,pn,Wn,Hn,$n$1,Xt$1,Dn$1,Vn,rt,P$1,ep$1,fe,An],styles:["h3[_ngcontent-%COMP%]{font-weight:400;margin:0}.qr[_ngcontent-%COMP%]{min-height:150px;margin-bottom:20px;position:relative}.qr[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:0;right:0;margin:auto;display:block;max-width:150px}.qr[_ngcontent-%COMP%] cye-spinner[_ngcontent-%COMP%]{position:absolute;inset:0;margin:auto;width:36px;height:36px}.qr[_ngcontent-%COMP%] qrcode[_ngcontent-%COMP%]{display:flex;justify-content:space-evenly}label[_ngcontent-%COMP%]{display:block;margin:10px 0 0}.success[_ngcontent-%COMP%]{height:215px;display:flex;align-items:center}.success[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:var(--font-18);line-height:24px;color:var(--text-color-success);font-weight:400;text-align:center}.success[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{left:0;right:0;margin:auto auto 20px;display:block}footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:10px}"],changeDetection:1});}}return t})();var Ud=()=>({color:"var(--hyver-tertiary)",marginRight:"5px"});
5function jd(t,l){if(t&1){let e=ST();ls$1(0,"overlay-popup",7),ig("popupCloseClicked",function(){af(e);let i=LT(2);return cf(i.onPopupClose())}),Rg("showChange",function(i){af(e);let s=LT(2);return IC(s.tfaActiveShown,i)||(s.tfaActiveShown=i),cf(i)}),ls$1(1,"settings-tfa-setting",8),ig("tfaEnabledChange",function(){af(e);let i=LT(2);return cf(i.onTfaChange())})("popupclose",function(){af(e);let i=LT(2);return cf(i.onPopupClose())}),au()();}if(t&2){let e=LT().ngIf,n=LT();Ag("show",n.tfaActiveShown),Qm$1("iconSize",22)("width",300),VD(),Qm$1("tfaEnabled",!!e.tfa_enabled);}}function Gd(t,l){if(t&1){let e=ST();ls$1(0,"div",9)(1,"label",4),mC(2,"Rescue codes"),au(),ls$1(3,"div",5)(4,"a",10),ig("click",function(){af(e);let i=LT(2);return cf(i.createRescueCode())}),mC(5,"Create"),au()()();}}function Hd(t,l){if(t&1){let e=ST();uu(0),Om$1(1,jd,2,4,"overlay-popup",1),ls$1(2,"cye-card")(3,"header")(4,"h3"),mC(5,"Two-factor authentication"),au(),ls$1(6,"cye-button",2),ig("click",function(){af(e);let i=LT();return cf(i.changeTfaSetting())}),mC(7),au()(),ls$1(8,"div",3)(9,"label",4),mC(10,"Status"),au(),ls$1(11,"p",5),mC(12),au()(),Om$1(13,Gd,6,0,"div",6),au(),xs$1();}if(t&2){let e=l.ngIf,n=LT();VD(),Qm$1("ngIf",n.tfaActiveShown),VD(5),Qm$1("disabled",n.disable)("iconStyle",NC(6,Ud)),VD(),fu(" ",e.tfa_enabled?"Disable":"Enable"," "),VD(5),Mg(e.tfa_enabled?"Enabled":"Disabled"),VD(),Qm$1("ngIf",n.tfaState.state);}}var la=(()=>{class t{constructor(e,n,i){this.authService=e,this.authActionService=n,this.authApiService=i,this.disable=true,this.profile$=this.authService.profileResponse$,this.tfaState={state:false,text:"Disabled"},this.tfaActiveShown=false,this.createRescueShown=false;}ngOnInit(){this.authApiService.getDeviceList();}changeTfaSetting(){this.disable||(this.tfaActiveShown=true);}createRescueCode(){this.createRescueShown=true;}onTfaChange(){this.authActionService.getUserProfile().subscribe();}onPopupClose(){this.tfaActiveShown=false;}static{this.\u0275fac=function(n){return new(n||t)(fo$1(v),fo$1(Ue$2),fo$1(k))};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-tfa-info"]],hostVars:2,hostBindings:function(n,i){n&2&&yg("disable",i.disable);},inputs:{disable:"disable"},standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],["icon","status-applicable","headerTitle","Two-factor authentication",3,"show","iconSize","width","popupCloseClicked","showChange",4,"ngIf"],["iconClass","icon-lock-icon",1,"secondary",3,"click","disabled","iconStyle"],[1,"line","first-line"],[1,"key"],[1,"value"],["class","line",4,"ngIf"],["icon","status-applicable","headerTitle","Two-factor authentication",3,"popupCloseClicked","showChange","show","iconSize","width"],[3,"tfaEnabledChange","popupclose","tfaEnabled"],[1,"line"],[1,"change-password",2,"margin-left","-2px","margin-top","-2px",3,"click"]],template:function(n,i){n&1&&(Om$1(0,Hd,14,7,"ng-container",0),VC(1,"async")),n&2&&Qm$1("ngIf",BC(1,1,i.profile$));},dependencies:[pn,u,we,rt,ca,An],styles:["[_nghost-%COMP%]{display:block}.disable[_nghost-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%] .line[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .line[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%] .line[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:225px;line-height:40px}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18);line-height:32px;font-weight:400}[_nghost-%COMP%] header[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:20px}"],changeDetection:1});}}return t})();var zd=()=>({color:"var(--hyver-tertiary)",marginRight:"5px"});function Qd(t,l){if(t&1&&Zm$1(0,"settings-change-pass",9),t&2){let e=LT().ngIf;Qm$1("tfaEnabled",!!e.tfa_enabled);}}function Wd(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",10),ig("click",function(){af(e);let i=LT(2);return cf(i.changePassword())}),mC(1," Change "),au();}if(t&2){let e=LT(2);Qm$1("disabled",e.disable)("iconStyle",NC(2,zd));}}function Kd(t,l){if(t&1){let e=ST();uu(0),ls$1(1,"overlay-popup",1),Rg("showChange",function(i){af(e);let s=LT();return IC(s.passChangeShown,i)||(s.passChangeShown=i),cf(i)}),ig("popupCloseClicked",function(){af(e);let i=LT();return cf(i.onPopupClose())}),Om$1(2,Qd,1,1,"settings-change-pass",2),au(),ls$1(3,"cye-card")(4,"h3"),mC(5,"Account"),au(),ls$1(6,"div",3)(7,"label",4),mC(8,"Last login"),au(),ls$1(9,"p",5),mC(10),VC(11,"date"),au()(),ls$1(12,"div",3)(13,"label",4),mC(14,"Password"),au(),ls$1(15,"div",6),Om$1(16,Wd,2,3,"cye-button",7),au()(),ls$1(17,"div",3)(18,"label",4),mC(19,"E-mail"),au(),ls$1(20,"p",5),mC(21),au()()(),Zm$1(22,"settings-tfa-info",8),VC(23,"async"),xs$1();}if(t&2){let e=l.ngIf,n=LT();VD(),Ag("show",n.passChangeShown),Qm$1("iconSize",22)("width",300),VD(),Qm$1("ngIf",n.passChangeShown),VD(8),Mg($C(11,8,e.last_login,"medium")),VD(6),Qm$1("ngIf",!n.passChanged),VD(5),Mg(e.email),VD(),Qm$1("disable",!!BC(23,11,n.profile$)?.company?.enforce_multi_factor);}}var pa=(()=>{class t{constructor(e){this.authService=e,this.passChangeShown=false,this.passChanged=false,this.profile$=this.authService.profileResponse$;}changePassword(){this.passChangeShown=true;}onPopupClose(){this.passChangeShown=false;}static{this.\u0275fac=function(n){return new(n||t)(fo$1(v))};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-account-info"]],hostVars:2,hostBindings:function(n,i){n&2&&yg("disable",i.disable);},inputs:{disable:"disable",profile:"profile"},standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],["icon","status-applicable","headerTitle","Change Password",3,"showChange","popupCloseClicked","show","iconSize","width"],[3,"tfaEnabled",4,"ngIf"],[1,"line","first-line"],[1,"key"],[1,"value"],[1,"value","passvalue"],["class","secondary","iconClass","icon-edit",3,"disabled","iconStyle","click",4,"ngIf"],[3,"disable"],[3,"tfaEnabled"],["iconClass","icon-edit",1,"secondary",3,"click","disabled","iconStyle"]],template:function(n,i){n&1&&(Om$1(0,Kd,24,13,"ng-container",0),VC(1,"async")),n&2&&Qm$1("ngIf",BC(1,1,i.profile$));},dependencies:[pn,u,we,rt,da,la,An,Ln$1],styles:["[_nghost-%COMP%]{margin-bottom:25px;display:block}.disable[_nghost-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%] .line[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .line[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{vertical-align:middle}[_nghost-%COMP%] .line[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:225px;line-height:40px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18);line-height:32px;font-weight:400}[_nghost-%COMP%] h3[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:10px;vertical-align:middle}.passvalue[_ngcontent-%COMP%]{line-height:45px}"],changeDetection:1});}}return t})();var Yd=["pass"],Zd=["token"];function Jd(t,l){t&1&&(ls$1(0,"div",4)(1,"label"),mC(2,"Token:"),au(),Zm$1(3,"cye-input",11,1),Mb(),au()),t&2&&(VD(3),Qm$1("formControlName","token")("showInputErrors",true)("primaryIcon","icon-key")("type","text")("placeholder","Enter Token"),xb());}function Xd(t,l){t&1&&(ls$1(0,"p",12),mC(1,"Error: Please try again or c
5ontact support"),au());}var ma=(()=>{class t{constructor(){this.fb=T(zn),this.dynamicComponentsService=T(Ye$1),this.enableTfa=false,this.showToken=false,this.tfachanged=new Xe,this.form=this.fb.group({pass:this.fb.control(""),token:this.fb.control("")});}ngOnChanges(e){e.processStatus?.currentValue&&this.processStatus==="done"&&this.dynamicComponentsService.hide(0);}onVerifyClick(){this.tfachanged.emit({formValue:this.form.value,enableTfa:!this.enableTfa});}onRedirectToResetPass(){this.dynamicComponentsService.hide();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["force-company-tfa-verification"]],viewQuery:function(n,i){if(n&1&&lg(Yd,7)(Zd,7),n&2){let s;BT(s=$T())&&(i.passRef=s.first),BT(s=$T())&&(i.tokenRef=s.first);}},inputs:{enableTfa:"enableTfa",showToken:"showToken",processStatus:"processStatus"},outputs:{tfachanged:"tfachanged"},standalone:false,features:[AI],decls:15,vars:10,consts:[["pass",""],["token",""],[3,"formGroup"],[1,"tfa-header"],[1,"flex-column"],["placeholder","Enter Password",3,"formControlName","showInputErrors","type"],[1,"forgot-password-container"],["routerLink","/forgot-password","id","forgot-pass",3,"click"],["class","flex-column",4,"ngIf"],["class","error-message",4,"ngIf"],[1,"verify-button",3,"click","disabled","loading"],[3,"formControlName","showInputErrors","primaryIcon","type","placeholder"],[1,"error-message"]],template:function(n,i){n&1&&(ls$1(0,"form",2)(1,"p",3),mC(2),au(),ls$1(3,"div",4)(4,"label"),mC(5,"Password:"),au(),Zm$1(6,"cye-input",5,0),Mb(),ls$1(8,"div",6)(9,"cye-link-button",7),ig("click",function(){return i.onRedirectToResetPass()}),mC(10,"Forgot your password?"),au()()(),Om$1(11,Jd,5,5,"div",8)(12,Xd,2,0,"p",9),ls$1(13,"cye-button",10),ig("click",function(){return i.onVerifyClick()}),mC(14),au()()),n&2&&(Qm$1("formGroup",i.form),VD(2),fu("",i.enableTfa?"Disable":"Enable"," two-factor authentication:"),VD(4),Qm$1("formControlName","pass")("showInputErrors",true)("type","password"),xb(),VD(5),Qm$1("ngIf",i.showToken),VD(),Qm$1("ngIf",i.processStatus==="error"),VD(),Qm$1("disabled",!i.form.touched)("loading",i.processStatus==="processing"),VD(),fu(" ",i.enableTfa?"Disable":"Verify"," "));},dependencies:[z$3,pn,Wn,Hn,$n$1,Dn$1,Vn,rt,fe,$t],styles:["[_nghost-%COMP%]{padding:0 20px;display:block}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-flow:column}[_nghost-%COMP%] .forgot-password-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;margin-top:5px}[_nghost-%COMP%] .flex-column[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap}[_nghost-%COMP%] .verify-button[_ngcontent-%COMP%]{align-self:flex-end;margin-top:10px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{font-size:14px;color:var(--negative-500)}"],changeDetection:1});}}return t})();var Ln=(function(t){return t.MIGRATE="migrate",t})(Ln||{});var We=(function(t){return t.GET="get",t.UPDATE="update",t})(We||{});var n0="aux/currency",ua="company/logo",ga=(()=>{class t{constructor(e,n){this.environment=e,this.http=n,this.cancelPendingRequests$=new U$
51;}getCurrencyList(){return this.http.get(`${this.getFullApi(n0)}`)}requestCompanyLogoUpload(e){let n=new FormData;return n.append("file",e),this.http.post(this.getFullApi(ua),n)}updateCompanyLogoExist(e){return this.http.put(`${this.getFullApi(ua)}`,{exists:e})}cancelPendingRequests(){this.cancelPendingRequests$.next(true);}getFullApi(e){return this.environment.createUrl(e)}static{this.\u0275fac=function(n){return new(n||t)(ce(hr),ce(K))};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var fa={cob:"Save cost of breach settings",lob:"Save likelihood settings"};var ha={cob:"Type 'Save' before you click Continue to confirm that you want to change your company's cost of breach version",lob:"Type 'Save' before you click Continue to confirm that you want to change your company's likelihood version"};var so={COB_REQUIRES_V2:"Likelihood of Breach is on V3, which requires Cost of Breach V2 or higher.",LOB_V3_REQUIRES_COB_V2:"Likelihood of Breach V3 requires Cost of Breach V2 or higher."};var Ut=(()=>{class t{constructor(){this.settingsApiService=T(ga),this.authApiService=T(k),this.authActionService=T(Ue$2),this.modalService=T(uo$1),this.updatedLogoInDb$=new U$1,this.updatedLogoInDbError$=new U$1,this.postLink$=new fr(""),this.backendErrorResponse$=new fr(null),this.uploadedCompanyLogo$=new fr(false),this.currentFromCompnyLogo$=new fr(null),this.isParentCompany$=new fr(false),this.currencyRates=z$1(this.settingsApiService.getCurrencyList()),this.currencyList=kt(()=>Object.keys(this.currencyRates()).map(e=>e)),this.impactManagementList=["None","Quantitative (Money)","Qualitative (Level)"],this.effortUnitList=["Hours","Days","Weeks"];}updatePersonalData(e){this.authApiService.updatePersonalData(e);}updateFormCompanyLogo(e){this.currentFromCompnyLogo$.next(e);}getFormCompanyLogo(){return this.currentFromCompnyLogo$.asObservable()}uploadLogo(e,n){return this.settingsApiService.requestCompanyLogoUpload(e).pipe(rd$1(i=>{i instanceof b$1?this.backendErrorResponse$.next(i):this.backendErrorResponse$.next(null);}),Ys$1(()=>(this.modalService.openToast("Update failed! Please try again or contact support","warn"),qy(()=>new Error(n)))),Ht$1(1))}updateLogoStatus(e,n){return Gy(this.settingsApiService.updateCompanyLogoExist(e).pi
5pe(rd$1(i=>{this.updatedLogoInDb$.next(i.exists);}),Ys$1(i=>(this.updatedLogoInDbError$.next(i),this.modalService.openToast("Update failed! Please try again or contact support","warn"),qy(()=>i))),Ed$1(()=>n?this.authActionService.updatePersonalData({company:n}).pipe(ne(()=>{})):Uy(void 0))))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var jt=(()=>{class t{constructor(){this.modalService=T(Ot);}saveMaturitySettings(e){let n=this.modalService.openWithHeader(e,{title:"Save Maturity settings",icon:"status-applicable",headerIconSize:24,customStyle:{height:"200px",width:"340px"},context:{data:{modalText:"Type 'Save' before you click Continue to confirm that you want to change your company's primary framework."}}}).modalRef;return lv(n.result(),n.cancel()).pipe(Ht$1(1))}saveSettings(e,n="cob"){let i=fa[n],s=ha[n],u=this.modalService.openWithHeader(e,{title:i,icon:"status-applicable",headerIconSize:24,customStyle:{height:"200px",width:"340px"},context:{data:{modalText:s}}}).modalRef;return lv(u.result(),u.cancel()).pipe(Ht$1(1))}migrateFramework(e,n){let i=this.modalService.openWithHeader(n,{title:`Migrate data to ${e}`,cancelButtonName:"Not now",confirmButtonName:"Migrate data",modalContentStyle:{height:"275px",width:"455px"}}).modalRef;return lv(i.result(),i.cancel()).pipe(Ht$1(1))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var ki=(()=>{class t{constructor(){this.restApiService=T(d$1);}getSetting(){return this.restApiService.get("parent_company_settings")}updateSetting(e){return this.restApiService.patch("parent_company_settings",e)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var co=(()=>{class t{constructor(){this.multiCompanyApiService=T(ki);}getSetting(){return this.multiCompanyApiService.getSetting()}updateSetting(e){let n=z$1(e.pipe(td$1(500),yd$1(1)));return B({params:()=>n(),stream:({params:i})=>this.multiCompanyApiService.updateSetting(i)})}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var lo=(()=>{class t{constructor(){this.showWidgets$=new fr(false);}updateShowWidgets(e){this.showWidgets$.next(e);}getShowWidgets(){return this.showWidgets$.asObservable()}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var i0=()=>({backgroundColor:"var(--primary-100)"}),o0=()=>({backgroundColor:"var(--primary-500)"}),Oi=(()=>{class t{constructor(){this.fb=T(zn),this.multiCompanyActionService=T(co),this.multiCompanyStoreService=T(lo),this.NAME_VALIDATORS=[be$2.minLength(1),be$2.maxLength(20),be$2.pattern("^[a-zA-Z0-9 #*()_-]*$"),be$2.required],this.form=this.fb.group({parent:new z$2("",{validators:this.NAME_VALIDATORS}),subsidiary:new z$2("",{validators:this.NAME_VALIDATORS})}),this.parentControl=this.form.get("parent"),this.subsidiaryControl=this.form.get("subsidiary"),this.parentName$=this.getChangedValueObs(this.parentControl.statusChanges,this.parentControl),this.subsidiaryName$=this.getChangedValueObs(this.subsidiaryControl.statusChanges,this.subsidiaryControl),this.showAggregationWidgets$=this.multiCompanyStoreService.getShowWidgets(),this.change$=Fy(this.parentName$.pipe(ne(e=>({managing_entity:e}))),this.subsidiaryName$.pipe(ne(e=>({subordinate_entity:e}))),this.showAggregationWidgets$.pipe(ne(e=>({show_widgets:e})))),this.updateStatus=this.multiCompanyActionService.updateSetting(this.change$);}ngOnInit(){this.multiCompanyActionService.getSetting().pipe(rd$1(e=>this.setSettings(e))).subscribe();}handleToggle(e){this.multiCompanyStoreService.updateShowWidgets(e);}getChangedValueObs(e,n){return e.pipe(pt(i=>i==="VALID"),ne(i=>n.value))}setSettings(e){this.parentControl.setValue(e.managing_entity),this.subsidiaryControl.setValue(e.subordinate_entity),this.multiCompanyStoreService.updateShowWidgets(e.show_widgets);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["multi-company-setting"]],features:[SC([co,ki,lo])],decls:22,vars:8,consts:[[3,"formGroup"],[1,"section"],[1,"sub-header"],[1,"row"],[1,"label"],["formControlName","parent"],["formControlName","subsidiary"],[1,"label-container"],[1,"sub-label"],[3,"toggle","isOn","sliderStyle","switchStyle"]],template:function(n,i){if
5(n&1&&(Og(0),VC(1,"async"),ls$1(2,"form",0)(3,"div",1),mC(4,"Multi company"),au(),ls$1(5,"div",2),mC(6,"Rename Multi-Company terminology"),au(),ls$1(7,"div",3)(8,"span",4),mC(9,"Managing entity label"),au(),Zm$1(10,"cye-input",5),Mb(),au(),ls$1(11,"div",3)(12,"span",4),mC(13,"Sub-entity"),au(),Zm$1(14,"cye-input",6),Mb(),au(),ls$1(15,"div",3)(16,"div",7)(17,"span",4),mC(18,"Aggregation widgets"),au(),ls$1(19,"span",8),mC(20,"Shows the widgets at the top of the Multi-Company Dashboard"),au()(),ls$1(21,"cye-switch",9),ig("toggle",function(u){return i.handleToggle(u)}),au()()()),n&2){let s=BC(1,4,i.showAggregationWidgets$);VD(2),Qm$1("formGroup",i.form),VD(8),xb(),VD(4),xb(),VD(7),Qm$1("isOn",s)("sliderStyle",NC(6,i0))("switchStyle",NC(7,o0));}},dependencies:[tt,W,Ii$1,fe,Xn,Wn,Hn,$n$1,Dn$1,Vn,An],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .section[_ngcontent-%COMP%]{font:var(--font-18)}[_nghost-%COMP%] .sub-header[_ngcontent-%COMP%]{font:var(--font-14-400);color:var(--text-color-secondary)}[_nghost-%COMP%] .row[_ngcontent-%COMP%]{display:flex;margin-top:24px}[_nghost-%COMP%] .row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font:var(--font-12);width:225px}[_nghost-%COMP%] .row[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .row[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] .sub-label[_ngcontent-%COMP%]{width:200px;color:var(--text-color-secondary)}"]});}}return t})();var a0=["file"],s0=()=>({width:"200px"}),d0=()=>({"font-size":"14px","margin-left":"10px",cursor:"pointer"});function c0(t,l){if(t&1){let e=ST();ls$1(0,"i",13),ig("click",function(){af(e);let i=LT();return cf(i.onDeleteLogo())}),au();}t&2&&rC(NC(2,d0));}function l0(t,l){if(t&1&&(ls$1(0,"p",14),mC(1),au()),t&2){let e=LT();VD(),Mg("* "+e.uploadError);}}function p0(t,l){if(t&1&&Zm$1(0,"img",15),t&2){let e=LT();Qm$1("src",e.previewSrc||e.logoLink,gh);}}var Ca=(()=>{class t{constructor(e){this.sanitizer=e,this.loading=false,this.isEditing=false,this.fileSelected=new Xe,this.logoDeleted=new Xe,this.uploadError="",this.extensionsList=[".png",".jpg",".jpeg"],this.logoLink="";}ngOnChanges(e){e.profile&&e.profile.currentValue&&e.profile.currentValue.company.logo&&(this.logoLink=e.profile.currentValue.company.logo.public_link||"");}onUpload(e){e.click();}onFileSelected(e){let n=this.extensionsList.find(i=>e.files[0].name.includes(i));this.uploadError=n?"":"Please upload image in the supported format",this.uploadError=!this.uploadError&&e.files[0].size>1048576?"Logo size is greater then 1MB":this.uploadError,this.uploadError||this.imageToBase64(e.files[0]);}imageToBase64(e){let n=new FileReader;n.onload=()=>{this.previewSrc=this.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(e)),this.fileSelected.emit(e);},n.readAsDataURL(e);}onDeleteLogo(){this.previewSrc="",this.logoLink="",this.fileRef.nativeElement.value="",this.logoDeleted.emit();}static{this.\u0275fac=function(n){return new(n||t)(fo$1(Xe$1))};}static{this.\u0275cmp=gw({type:t,selectors:[["update-company-logo"]],viewQuery:function(n,i){if(n&1&&lg(a0,5),n&2){let s;BT(s=$T())&&(i.fileRef=s.first);}},inputs:{loading:"loading",profile:"profile",isEditing:"isEditing"},outputs:{fileSelected:"fileSelected",logoDeleted:"logoDeleted"},standalone:false,features:[AI],decls:18,vars:8,consts:[["file",""],[1,"column","second-axis__start",2,"margin","20px 0"],[1,"key",2,"line-height","22px"],[1,"upload"],[1,"upload__actions"],[3,"click","disabled"],["type","file","accept",".jpg, .jpeg, .png",2,"display","none",3,"change"],["class","icon-trash-red",3,"style","click",4,"ngIf"],["class","upload__errors",4,"ngIf"],[1,"upload__constraint-text"],[1,"logo-container"],["alt","",3,"src",4,"ngIf"],[1,"upload__advise-text"],[1,"icon-trash-red",3,"click"],[1,"upload__errors"],["alt","",3,"src"]],template:function(n,i){if(n&1){let s=ST();ls$1(0,"div",1)(1,"label",2),mC(2,"Company logo"),au(),ls$1(3,"div",3)(4,"div",4)(5,"cye-button",5),ig("click",function(){af(s);let D=qT(8);return cf(i.onUpload(D))}),mC(6,"Upload Logo"),au(),ls$1(7,"input",6,0),ig("change",function(){af(s);let D=qT(8);return cf(i.onFileSelected(D))}),au(),Om$1(9,c0,1,3,"i",7)(10,l0,2,1,"p",8),au(),ls$1(11,"p",9),mC(12,"JPG, PNG maximum size 1MB"),au(),ls$1(13,"div",10),Om$1(14,p0,1,1,"img",11),mC(15),au(),ls$1(16,"p",12),mC(17,"Use a dark version of your logo, it will look good on white background!"),au()()();}n&2&&(VD(5),rC(NC(7,s0)),Qm$1("disabled",i.loading),VD(4),Qm$1("ngIf",i.logoLink&&!i.loading&&i.profile?.company?.logo?.exists==="yes"||i.previewSrc&&!i.loading),VD(),Qm$1("ngIf",i.uploadError),VD(4),Qm$1("ngIf",i.previewSrc||i.logoLink&&i.profile?.company?.logo?.exists==="yes"),VD(),fu(" ",i.previewSrc||i.logoLink&&i.profile.company?.logo?.exists==="yes"?"":"LOGO"," "));},dependencies:[pn,rt],styles:[".line[_ngcontent-%COMP%]{display:flex;align-items:center}.line.second-axis__start[_ngcontent-%COMP%]{align-items:flex-start}.line[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:225px;line-height:50px}.line[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{vertical-align:middle}.column[_ngcontent-%COMP%], .upload[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap}.upload[_ngcontent-%COMP%] .upload__actions[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;justify-content:space-between;align-items:center;width:fit-content}.upload[_ngcontent-%COMP%] .upload__actions[_ngcontent-%COMP%] .upload__errors[_ngcontent-%COMP%]{color:var(--text-color-error);margin:0 0 0 20px}.upload[_ngcontent-%COMP%] .upload__constraint-text[_ngcontent-%COMP%]{font:var(--font-12);line-height:13px;font-weight:400;margin:10px 0 20px;color:#787f9b}.upload[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%]{height:160px;width:400px;border:1px dashed #c1cfe1;display:flex;justify-content:center;box-sizing:border-box;border-radius:4px;align-items:center;font-size:36px;line-height:42px;letter-spacing:.05em;
5color:#0000001a}.upload[_ngcontent-%COMP%] .logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;max-width:70%}.upload[_ngcontent-%COMP%] .upload__advise-text[_ngcontent-%COMP%]{color:#787f9b;font-weight:400;font-size:11px;line-height:13px;letter-spacing:.05em}"],changeDetection:1});}}return t})();var f0=()=>({width:"135px"});function h0(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",3),ig("click",function(){af(e);let i=LT(2);return cf(i.updateFromWeb())}),mC(1,"Update from web"),au();}}function C0(t,l){if(t&1){let e=ST();mC(0),VC(1,"number"),ls$1(2,"action-button",2),ig("click",function(){af(e);let i=LT();return cf(i.enableEditMode())}),au(),vT(3,h0,2,0,"cye-button");}if(t&2){let e=LT(),n=DC(0),i=DC(1);fu(" $",$C(1,3,n.value,"1.2-4")," "),VD(2),Qm$1("button",e.enableEditBtn),VD(),IT(i?3:-1);}}function _0(t,l){if(t&1&&(Zm$1(0,"cye-input",4),Mb(),Zm$1(1,"cye-action-buttons-set",5)),t&2){let e=LT(),n=DC(0);Qm$1("inputStyle",NC(3,f0))("formControl",n),xb(),VD(),Qm$1("actionButtons",e.editBtns);}}function y0(t,l){if(t&1&&(ls$1(0,"p",1),mC(1),VC(2,"currencySymbol"),VC(3,"number"),au()),t&2){LT();let e=DC(1),n=DC(2);VD(),Sg("Web exchange rate: ",BC(2,2,n),"1 = $",$C(3,4,e,"1.2-4"));}}var _a=(()=>{class t{constructor(){this.modalService=T(uo$1),this.currency=u$(""),this.rateControl=u$(),this.initialValue=null,this.cancelEdit=l$(),this.webExchangeRate=kt(()=>{let e=this.settingsPageService.currencyRates(),n=this.currency().toUpperCase();return e[n]??1}),this.editMode=false,this.enableEditBtn={name:"Edit",icon:"edit",disableFunc:()=>!this.editMode,tooltip:()=>""},this.editBtns=[{name:"update",icon:"edit-cancel",tooltip:()=>"",handler:()=>this.onCancelEdit()},{name:"update",icon:"v-white",disableFunc:()=>!this.rateControl().dirty||!this.rateControl().valid,tooltip:()=>"",actionButtonStyle:{background:"var(--hyver-primary)"},handler:()=>this.onEditAccept()}],this.settingsPageService=T(Ut),vc$1(()=>{if(this.currency()){let e=this.rateControl();e.value?this.initialValue=e.value:this.updateFromWeb();}});}onCancelEdit(){this.editMode=false,this.initialValue&&this.rateControl().setValue(this.initialValue);}onEditAccept(){this.rateControl().valid?this.editMode=false:this.modalService.openToast("Invalid currency rate","warn");}enableEditMode(){this.editMode=true;}updateFromWeb(){let e=this.currency(),i=this.settingsPageService.currencyRates()[e.toUpperCase()];i&&(this.rateControl().setValue(i),this.initialValue=i);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["currency-rate"]],inputs:{currency:[1,"currency"],rateControl:[1,"rateControl"]},outputs:{cancelEdit:"cancelEdit"},standalone:false,features:[SC([])],decls:11,vars:8,consts:[[1,"exchange-rate-container"],[1,"web-exchange-rate"],[3,"click","button"],[3,"click"],["primaryIcon","USD","primaryIconType","currency",3,"inputStyle","formControl"],[3,"actionButtons"]],template:function(n,i){if(n&1&&(Og(0)(1)(2),ls$1(3,"div",0)(4,"label"),mC(5,"Exchange rate"),au(),mC(6),VC(7,"currencySymbol"),vT(8,C0,4,6)(9,_0,2,4),au(),vT(10,y0,4,7,"p",1)),n&2){EC(i.rateControl()),VD();let s=EC(i.webExchangeRate());VD();let u=EC(i.currency());VD(4),fu(" ",BC(7,6,u),"1 = "),VD(2),IT(i.editMode?9:8),VD(2),IT(s?10:-1);}},dependencies:[Hn,vn$1,rt,fe,Xt$2,tt$1,On$1,$$1],styles:["[_nghost-%COMP%]{margin:20px 0;display:block}.exchange-rate-container[_ngcontent-%COMP%]{border-radius:5px;background:var(--bg-secondery-1);padding:15px;width:737px;max-width:100%;border:1px solid var(--section-seperator);display:flex;align-items:center;gap:15px}.web-exchange-rate[_ngcontent-%COMP%]{margin:10px 0}action-button[_ngcontent-%COMP%]{width:32px}"]});}}return t})();var Gt=(()=>{class t{constructor(){this._authMethods$=new fr(null),this._selectedAuthMethod$=new fr({sso:false,microsoft_oidc:false,hyver_credentials:false}),this._editMode$=new fr(false),this._loading$=new fr(true),this._saveActionLoading$=new fr(false),this._ssoEnabled$=new fr(false);}getSsoEnabled(){return this._ssoEnabled$.asObservable()}setSsoEnabled(e){this._ssoEnabled$.next(e);}get saveActionLoading$(){return this._saveActionLoading$.asObservable()}set saveActionLoading(e){this._saveActionLoading$.next(e);}get authMethods$(){return this._authMethods$.asObservable()}set authMethods(e){this._authMethods$.next({sso:{enabled:e.sso.enabled,config:e.sso.config},hyver_credentials:E({},e.hyver_credentials),microsoft_oidc:E({},e.microsoft_oidc)});}get editMode$(){return this._editMode$.asObservable()}get loading$(){return this._loading$.asObservable()}set loading(e){this._loading$.next(e);}get selectedAuthMethod$(){return this._selectedAuthMethod$.asObservable()}set selectedAuthMethod(e){this._selectedAuthMethod$.next(E(E({},this._selectedAuthMethod$.value),e));}toggleEditMode(){this._editMode$.next(!this._editMode$.value);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var ya=(()=>{class t{constructor(){this.url="company/authn_methods",this.restApiService=T(d$1);}getCompanyAuthenticationMethods(){return this.restApiService.get("
5company/authn_methods")}saveCompanyAuthenticationMethods(e){let{hyver_credentials:n,microsoft_oidc:i,sso:s}=e,u={hyver_credentials:n,microsoft_oidc:i,sso:{config:{entity_id:s.config.entity_id,metadata_url:s.config.metadata_url},enabled:s.enabled}},D=new FormData;return D.append("payload",JSON.stringify(u)),s?.enabled&&s?.config?.metadata_file&&D.append("metadata_file",s?.config?.metadata_file,s?.config?.metadata_file?.name),this.restApiService.put("company/authn_methods",D)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var x0=()=>({width:"100%"}),In=(()=>{class t{constructor(){this.cyeModalActiveViewService=T(d$2),this.saving$=T(Gt).saveActionLoading$;}ngOnInit(){this.form=new P$2({confirmAction:new z$2("",{validators:[be$2.required,r(new RegExp(`^${this.context.data.action}$`),{customError:{error:true,message:`Please type "${this.context.data.action}" to continue`}})],updateOn:"submit"})});}onCloseClick(){this.cyeModalActiveViewService.dismiss(this.context.id,"close");}onActionClick(){this.form.invalid||this.cyeModalActiveViewService.close(this.context.id,this.context.data.action);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["verify-action"]],inputs:{context:"context"},standalone:false,features:[SC([Gt])],decls:11,vars:9,consts:[[1,"confirm-action"],[3,"ngSubmit","formGroup"],["placeholder","Type here...","type","string","formControlName","confirmAction"],["type","button",1,"secondary",3,"click"],["type","submit"]],template:function(n,i){n&1&&(ls$1(0,"div"),mC(1),VC(2,"lowercase"),au(),ls$1(3,"div",0)(4,"form",1),ig("ngSubmit",function(){return i.onActionClick()}),Zm$1(5,"cye-input",2),Mb(),ls$1(6,"footer")(7,"cye-button",3),ig("click",function(){return i.onCloseClick()}),mC(8,"Cancel"),au(),ls$1(9,"cye-button",4),mC(10," Continue"),au()()()()),n&2&&(VD(),xg(' Type "',i.context.data.action,'" before you click Continue to ',BC(2,6,i.context.data.action)," ",i.context.data.header,`. 6`),VD(3),Qm$1("formGroup",i.form),VD(),rC(NC(8,x0)),xb());},dependencies:[Wn,Hn,$n$1,Dn$1,Vn,rt,fe,Sn$1],styles:[".confirm-action[_ngcontent-%COMP%]{margin-top:40px;width:100%}footer[_ngcontent-%COMP%]{margin-top:30px;display:flex;justify-content:flex-end}footer[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t})();var Dn=(()=>{class t{constructor(){this.authenticationMethodStoreService=T(Gt),this.authenticationMethodsApiService=T(ya),this.cyeModalService=T(Ot),this.modalService=T(uo$1),this.actionsMap={save:e=>this.cyeModalService.openWithHeader(In,{icon:"status-applicable",title:"Save SSO configuration",headerIconSize:25,size:l.CUSTOM,customStyle:{width:"310px",height:"190px",padding:"15px 20px"},context:{data:{action:"Save",header:"the authentication methods for all company users"}}}).modalRef.result().pipe(rd$1(()=>this.authenticationMethodStoreService.saveActionLoading=true),Ed$1(()=>this.authenticationMethodsApiService.saveCompanyAuthenticationMethods(e).pipe(rd$1(()=>this.modalService.openToast("SSO configuration was saved successfully. ","success",10)),rd$1(n=>{this.authenticationMethodStoreService.setSsoEnabled(n.sso.enabled),this.authenticationMethodStoreService.toggleEditMode(),this.authenticationMethodStoreService.authMethods=n;}),nd$1(()=>this.authenticationMethodStoreService.saveActionLoading=false)))),cancel:()=>(this.authenticationMethodStoreService.toggleEditMode(),$e$2([()=>this.getAuthenticationMethods()])),edit:()=>(this.authenticationMethodStoreService.toggleEditMode(),Uy())};}getAuthenticationMethods(){return this.authenticationMethodStoreService.loading=true,this.authenticationMethodsApiService.getCompanyAuthenticationMethods().pipe(rd$1(e=>this.authenticationMethodStoreService.authMethods=e),rd$1(e=>this.authenticationMethodStoreService.setSsoEnabled(e.sso.enabled)),nd$1(()=>this.authenticationMethodStoreService.loading=false))}updateSelectedAuthenticantionMethod(e){this.authenticationMethodStoreService.selectedAuthMethod=e;}executeAction(e,n){return this.actionsMap.hasOwnProperty.call(this.actionsMap,e)?this.actionsMap[e](n):Uy([])}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var po=(()=>{class t{constructor(){this.authenticationMethodActionsService=T(Dn),this.modalService=T(uo$1),this.cyeModalService=T(Ot);}handleSaveActionError(e,n){let i=n.get("ssoDetails");if(!(i instanceof P$2))return;let s=i.get("config");s instanceof P$2&&(Object.entries(s.controls).map(([u,D])=>{u===Object.keys(e)[0]&&this.errorFunction(u,D);}),n.valid&&this.modalService.openToast(e,"error",10));}transformFormToData(e){return {hyver_credentials:{enabled:e.hyver_credentials},microsoft_oidc:{enabled:e.microsoft_oidc},sso:{enabled:e.ssoDetails.sso,config:e.ssoDetails.config}}}openDisableAuthenticationWarning(e,n){this.cyeModalService.openConfirm({size:l.SMALL,title:"Disable authentication method",confirmButtonName:"Close",showCancelButton:false,customStyle:{"line-height":"2","white-space":"break-spaces"},message:`You deselected an authentication method option for company users which will prevent existing users using this method to log in to Cye. 7Are you sure you want to disable this authentication method?`}).modalRef.result().pipe(Ht$1(1),rd$1(()=>{this.authenticationMethodActionsService.updateSelectedAuthenticantionMethod({[e]:n});})).subscribe();}errorFunction(e,n){e==="metadata_url"?(n.setErrors({customError:{message:"The metadata URL is incorrect. Please copy the metadata URL from the IdP configuration.",error:true}}),this.modalService.openToast("The metadata URL is incorrect. Please copy the metadata URL from the IdP configuration.","error",10)):e==="entity_id"&&(n.setErrors({customError:{message:"The IdP entity ID is incorrect. Please copy the IdP entity ID from the IdP configuration.",error:true}}),this.modalService.openToast("The IdP entity ID is incorrect. Please copy the IdP entity ID from the IdP configuration.","error",10));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var mo=(()=>{class t{initForm(){return new P$2({hyver_credentials:new z$2(false),microsoft_oidc:new z$2(false),ssoDetails:new P$2({sso:new z$2(false),config:new P$2({hyver_entity_id:new z$2("",{validators:[be$2.required]}
7),hyver_acs_url:new z$2("",{validators:[be$2.required]}),entity_id:new z$2("",{validators:[be$2.required]}),metadata_file:new z$2(null),metadata_url:new z$2(null,[a$1])},{validators:this.requireOneOf("metadata_file","metadata_url")})})})}patchForm(e,n){e.patchValue({hyver_credentials:n.hyver_credentials.enabled,microsoft_oidc:n.microsoft_oidc.enabled,ssoDetails:{sso:n.sso.enabled,config:{hyver_entity_id:n.sso.config.hyver_entity_id,hyver_acs_url:n.sso.config.hyver_acs_url,entity_id:n.sso.config.entity_id,metadata_file:n.sso.config.file_information?n.sso.config.file_information:n.sso.config.metadata_file,metadata_url:n.sso.config.metadata_url}}});}requireOneOf(...e){return n=>e.some(s=>!!n.get(s)?.value)?null:{oneRequired:true}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();function S0(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",2),ig("click",function(){af(e);let i=LT();return cf(i.onAction("edit"))}),mC(1,"Edit"),au();}}function $0(t,l){if(t&1){let e=ST();ls$1(0,"div",1)(1,"cye-button",3),ig("click",function(){af(e);let i=LT();return cf(i.onAction("cancel"))}),mC(2,"Cancel"),au(),ls$1(3,"cye-button",4),ig("click",function(){af(e);let i=LT();return cf(i.onAction("save"))}),mC(4,"Save"),au()();}if(t&2){let e=LT();VD(3),Qm$1("disabled",e.disabled)("loading",e.saving)("spinnerColor","#FFFFFF")("loadingSize","extra-tiny");}}var va=(()=>{class t{constructor(){this.disabled=true,this.onaction=new Xe;}onAction(e){this.onaction.emit(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["action-buttons"]],inputs:{disabled:"disabled",edit:"edit",saving:"saving"},outputs:{onaction:"onaction"},standalone:false,decls:2,vars:1,consts:[["icon","edit",1,"secondary"],[1,"edit-mode"],["icon","edit",1,"secondary",3,"click"],[1,"secondary",3,"click"],[1,"save-btn",3,"click","disabled","loading","spinnerColor","loadingSize"]],template:function(n,i){n&1&&vT(0,S0,2,0,"cye-button",0)(1,$0,5,4,"div",1),n&2&&IT(i.edit?0:1);},dependencies:[rt],styles:[".edit-mode[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.edit-mode[_ngcontent-%COMP%] .save-btn[_ngcontent-%COMP%]{margin-left:15px}"]});}}return t})();var uo=(function(t){return t.FILE="file",t.URL="url",t})(uo||{});var xa=(()=>{class t{transform(e){return e>=1024*1024?(e/1024/1024).toFixed(1)+" MB":(e/1024).toFixed(1)+" KB"}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"prettyFileSize",type:t,pure:true});}}return t})();var b0=["fileDropRef"];function w0(t,l){if(t&1){let e=ST();ls$1(0,"div",3),ig("click",function(){af(e);let i=LT();return cf(i.uploadClick())}),mC(1," Upload file "),ls$1(2,"input",4,0),ig("change",function(i){af(e);let s=LT();return cf(s.onFilesDrop(i))}),au()();}t&2&&(VD(2),yg("inline",true));}function P0(t,l){if(t&1){let e=ST();ls$1(0,"div",2)(1,"div",5),Zm$1(2,"cye-icon",6),ls$1(3,"div",7)(4,"span",8),mC(5),au(),ls$1(6,"span",9),mC(7),VC(8,"prettyFileSize"),au()()(),ls$1(9,"div",10),ig("click",function(){af(e);let i=LT();return cf(i.onRemoveFile())}),Zm$1(10,"cye-icon",11),au()();}if(t&2){let e=LT();VD(2),Qm$1("icon","file")("size",30),VD(3),fu(" ",e.getMetadataFile.value.name," "),VD(2),fu(" ",BC(8,5,e.getMetadataFile.value.size)," "),VD(3),Qm$1("size",11);}}var Ei=(()=>{class t{constructor(){this.fileDropRef=f$("fileDropRef"),this.cdr=T(v$),this.ssoConfigForm=u$(),this.removeFile=l$();}uploadClick(){this.fileDropRef().nativeElement.click();}onFilesDrop(e){let n=e.target.files?.[0];if(!n)return;let i=new FileReader;i.readAsDataURL(n),i.onload=()=>{this.ssoConfigForm().patchValue({metadata_file:n}),this.cdr.markForCheck();};}get getMetadataFile(){return this.ssoConfigForm().get("metadata_file")}onRemoveFile(){this.ssoConfigForm().patchValue({metadata_file:null}),this.cdr.markForCheck(),this.removeFile.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["xml-file-drop"]],viewQuery:function(n,i){n&1&&dg(i.fileDropRef,b0,5),n&2&&UT();},inputs:{ssoConfigForm:[1,"ssoConfigForm"]},outputs:{removeFile:"removeFile"},decls:2,vars:1,consts:[["fileDropRef",""],[1,"upload-button"],[1,"file-drop"],[1,"upload-button",3,"click"],["id","fileDropRef","type","file","accept",".xml",1,"file-input",3,"change"],[1,"selected-file"],[3,"icon","size"],[1,"file-info"],[1,"file-name"],[1,"file-size"],[1,"remove-file",3,"click"],["icon","close",3,"size"]],template:function(n,i){n&1&&vT(0,w0,4,2,"div",1)(1,P0,11,7,"div",2),n&2&&IT(i.getMetadataFile?.value?1:0);},dependencies:[a,ut,xa],styles:["[_nghost-%COMP%] .upload-button[_ngcontent-%COMP%]{border-radius:3px;padding:8px 7px;cursor:pointer;border:1px solid var(--primary-400);width:68px;font-weight:500}[_nghost-%COMP%] .upload-button[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .upload-button[_ngcontent-%COMP%] .disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;width:100%}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%] .remove-file[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%] .selected-file[_ngcontent-%COMP%]{display:flex;flex-direction:row;margin-right:10px;gap:10px}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%] .selected-file[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%] .selected-file[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .file-name[_ng
7content-%COMP%]{font:var(--font-14-500)}[_nghost-%COMP%] .file-drop[_ngcontent-%COMP%] .selected-file[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .file-size[_ngcontent-%COMP%]{font:var(--font-12);color:var(--secondary-300)}"]});}}return t})();var O0=["idpUrlTemplate"],E0=["idpXmlTemplate"];function L0(t,l){if(t&1&&(Zm$1(0,"cye-input",14),Mb()),t&2){let e=LT();yg("inline",true)("disabled",e.radioOptionsControl.value!==e.AuthenticationSsoConfig.URL&&e.selectedAuthMethod()),Qm$1("formControlName","metadata_url"),xb();}}function I0(t,l){if(t&1){let e=ST();ls$1(0,"xml-file-drop",15),ig("removeFile",function(){af(e);let i=LT();return cf(i.onRemoveFile())}),au();}if(t&2){let e=LT();yg("disabled",e.currentRadioItem()!==e.AuthenticationSsoConfig.FILE&&e.selectedAuthMethod()),Qm$1("ssoConfigForm",e.ssoConfigForm);}}var Sa=(()=>{class t{constructor(){this.fb=T(zn),this.editMode=false,this.idpUrlTemplateRef=f$("idpUrlTemplate"),this.idpXmlTemplateRef=f$("idpXmlTemplate"),this.selectedAuthMethod=u$(false),this.style={width:"100%","margin-right":"117px","margin-left":"0"},this.radioButtonStyle={display:"flex","flex-direction":"row",gap:"29px",border:"none","margin-bottom":"30px","align-items":"baseline","padding-left":"0","margin-left":"0"},this.currentRadioItem=Ze("url"),this.radioForm=this.fb.group({option:this.fb.control("")}),this.AuthenticationSsoConfig=uo;}get radioOptionsControl(){return this.radioForm.get("option")}ngOnInit(){this.getMetadataFile.value&&this.currentRadioItem.set("file"),this.metadataRadioItems=[{value:"url",label:"IdP URL",labelTemplate:this.idpUrlTemplateRef(),style:this.style},{value:"file",label:"XML",labelTemplate:this.idpXmlTemplateRef(),style:this.style}];}onRadioClick(e){this.radioOptionsControl.markAsPristine(),this.currentRadioItem.set(e),e==="url"?this.getMetadataFile.setValue(null):e==="file"&&this.getMetadataUrl.setValue("");}onRemoveFile(){this.getMetadataFile.setValue(null),this.getMetadataUrl.setValue("");}get getMetadataFile(){return this.ssoConfigForm.get("metadata_file")}get getMetadataUrl(){return this.ssoConfigForm.get("metadata_url")}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["saml-settings"]],viewQuery:function(n,i){n&1&&dg(i.idpUrlTemplateRef,O0,5)(i.idpXmlTemplateRef,E0,5),n&2&&UT(2);},inputs:{ssoConfigForm:"ssoConfigForm",editMode:"editMode",selectedAuthMethod:[1,"selectedAuthMethod"]},standalone:false,decls:27,vars:16,consts:[["entityIdControl",""],["idpUrlTemplate",""],["idpXmlTemplate",""],[3,"formGroup"],[1,"instruction-text"],[1,"copy-fields-container"],[1,"input-container"],[3,"label","showCopy","isBald","value"],[3,"label","showCopy","value","isBald"],[1,"asterix"],["placeholder","",1,"url-input",3,"formControlName"],[1,"input-container","metadata"],[1,"metadata-header","asterix"],[3,"radioClick","isInlineLabel","hasTemplate","selectedValue","radioButtonStyle","items","formControl"],[1,"url-input",3,"formControlName"],[3,"removeFile","ssoConfigForm"]],template:function(n,i){n&1&&(ls$1(0,"form",3)(1,"header",4),mC(2,"Copy and use this information in the identity provider configuration:"),au(),ls$1(3,"div",5)(4,"div",6)(5,"label"),mC(6,"Cye entity ID"),au(),Zm$1(7,"copy-to-clipboard",7),au(),ls$1(8,"div",6)(9,"label"),mC(10,"Cye single sign-on URL"),au(),Zm$1(11,"copy-to-clipboard",8),au()(),ls$1(12,"div",4),mC(13,"To complete these fields, use the information that you copy from the identity provider:"),au(),ls$1(14,"div",6)(15,"label",9),mC(16,"IdP entity ID"),au(),Zm$1(17,"cye-input",10,0),Mb(),au(),ls$1(19,"div",11)(20,"label",12),mC(21,"metadata"),au(),ls$1(22,"cye-radio-group",13),ig("radioClick",function(u){return i.onRadioClick(u)}),au(),Mb(),Om$1(23,L0,1,5,"ng-template",null,1,GC)(25,I0,1,3,"ng-template",null,2,GC),au()()),n&2&&(Qm$1("formGroup",i.ssoConfigForm),VD(7),Qm$1("label",i.ssoConfigForm.controls.hyver_entity_id.value)("showCopy",true)("isBald",false)("value",i.ssoConfigForm.controls.hyver_entity_id.value),VD(4),Qm$1("label",i.ssoConfigForm.controls.hyver_acs_url.value)("showCopy",true)("value",i.ssoConfigForm.controls.hyver_acs_url.value)("isBald",false),VD(6),Qm$1("formControlName","entity_id"),xb(),VD(5),Qm$1("isInlineLabel",true)("hasTemplate",true)("selectedValue",i.currentRadioItem())("radioButtonStyle",i.radioButtonStyle)("items",i.metadataRadioItems)("formControl",i.radioOptionsControl),xb());},dependencies:[oe,Wn,Hn,$n$1,vn$1,Dn$1,Vn,De$1,fe,Ei],styles:['[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .main-header[_ngcontent-%COMP%]{color:var(--secondary-500);font:var(--font-14);margin-bottom:20px;margin-top:20px}[_nghost-%COMP%] form[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{margin-bottom:20px;justify-content:flex-start;align-items:center;display:flex;width:100%;flex-direction:row}[_nghost-%COMP%] form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:200
7px;font:var(--font-14)}[_nghost-%COMP%] form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] label.asterix[_ngcontent-%COMP%]:after{content:"*";color:var(--negative-500)}[_nghost-%COMP%] form[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%] .url-input[_ngcontent-%COMP%]{width:400px}[_nghost-%COMP%] form[_ngcontent-%COMP%] .metadata[_ngcontent-%COMP%]{margin-top:60px;display:flex;flex-direction:column;align-items:flex-start}[_nghost-%COMP%] form[_ngcontent-%COMP%] .metadata[_ngcontent-%COMP%] .metadata-header[_ngcontent-%COMP%]{font:var(--font-14)}[_nghost-%COMP%] form[_ngcontent-%COMP%] .copy-fields-container[_ngcontent-%COMP%]{margin-bottom:50px}[_nghost-%COMP%] form[_ngcontent-%COMP%] .instruction-text[_ngcontent-%COMP%]{margin:20px 0 25px;color:var(--secondary-300);font:var(--font-14)}.disabled[_ngcontent-%COMP%]{opacity:.5;pointer-events:none}']});}}return t})();var A0=()=>({color:"var(--secondary-500)",font:"var(--font-14)"});function V0(t,l){if(t&1&&(ls$1(0,"div",2),Zm$1(1,"saml-settings",3),au()),t&2){let e=LT();VD(),Qm$1("selectedAuthMethod",e.selectedAuthMethod())("ssoConfigForm",e.form.controls.config)("editMode",!e.disabled);}}var $a=(()=>{class t{constructor(){this.disabled=true,this.onchange=new Xe,this.selectedAuthMethod=u$(false);}OnChange(e){this.onchange.emit(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["saml-checkbox"]],inputs:{value:"value",disabled:"disabled",form:"form",selectedAuthMethod:[1,"selectedAuthMethod"]},outputs:{onchange:"onchange"},standalone:false,decls:3,vars:5,consts:[[1,"saml-form",3,"formGroup"],["formControlName","sso","label","SSO (SAML 2.0)",3,"onchange","labelStyle","disabled"],[1,"saml-settings"],[3,"selectedAuthMethod","ssoConfigForm","editMode"]],template:function(n,i){n&1&&(ls$1(0,"div",0)(1,"cye-checkbox",1),ig("onchange",function(u){return i.OnChange(u)}),au(),Mb(),vT(2,V0,2,3,"div",2),au()),n&2&&(Qm$1("formGroup",i.form),VD(),Qm$1("labelStyle",NC(4,A0))("disabled",i.disabled),xb(),VD(),IT(!i.disabled&&i.form.value.sso?2:-1));},dependencies:[Hn,$n$1,Dn$1,Vn,we$2,Sa],styles:[".saml-form[_ngcontent-%COMP%]{margin-top:5px}.saml-form[_ngcontent-%COMP%] .saml-settings[_ngcontent-%COMP%]{margin-left:50px}"]});}}return t})();var Ma=()=>({color:"var(--secondary-500)",font:"var(--font-14)"});function N0(t,l){t&1&&Zm$1(0,"cye-spinner");}function R0(t,l){if(t&1){let e=ST();ls$1(0,"header"),mC(1,"Select one or more login authentication methods for your company users. "),Zm$1(2,"br"),mC(3," Note: You can enable both OIDC and SAML, but only one method per protocol."),au(),ls$1(4,"form",0)(5,"div",1)(6,"action-buttons",2),VC(7,"async"),VC(8,"async"),ig("onaction",function(i){af(e);let s=LT(2);return cf(s.onAction(i))}),au(),ls$1(9,"div",3)(10,"cye-checkbox",4),ig("onchange",function(i){af(e);let s=LT(2);return cf(s.onChecked(i,"hyver_credentials"))}),au(),Mb(),ls$1(11,"cye-checkbox",5),ig("onchange",function(i){af(e);let s=LT(2);return cf(s.onChecked(i,"microsoft_oidc"))}),au(),Mb(),ls$1(12,"saml-checkbox",6),ig("onchange",function(i){af(e);let s=LT(2);return cf(s.onChecked(i,"sso"))}),au()()()();}if(t&2){let e=LT(2),n=DC(0);VD(4),iC(n?"small-shrink":"big-shrink"),Qm$1("formGroup",e.form),VD(2),Qm$1("disabled",BC(7,13,e.disableSaveAuthenticationMethods$))("saving",BC(8,15,e.saveActionLoading$))("edit",n),VD(4),Qm$1("labelStyle",NC(17,Ma))("disabled",n),xb(),VD(),Qm$1("labelStyle",NC(18,Ma))("disabled",n),xb(),VD(),Qm$1("selectedAuthMethod",e.selectedAuthMethod())("disabled",n)("form",e.form.controls.ssoDetails);}}function B0(t,l){if(t&1&&(vT(0,R0,13,19),VC(1,"async")),t&2){let e,n=LT();IT((e=BC(1,1,n.authenticationMethods$))?0:-1,e);}}var ba=(()=>{class t{constructor(){this.authenticationMethodActionsService=T(Dn),this.authenticationMethodStoreService=T(Gt),this.authenticationMethodsUtilsService=T(po),this.authenticationMethodsFormUtilsService=T(mo),this.cyeModalService=T(Ot),this.destroyRef=T(He$1),this.form=this.authenticationMethodsFormUtilsService.initForm(),this.selectedAuthMethod=z$1(this.authenticationMethodStoreService.getSsoEnabled()),this.saveActionLoading$=this.authenticationMethodStoreService.saveActionLoading$,this.disableSaveAuthenticationMethods$=Py([this.form.statusChanges,this.authenticationMethodStoreService.selectedAuthMethod$]).pipe(ne(([e,n])=>{let i=e!=="VALID"&&n.sso,s=!n.hyver_credentials&&!n.microsoft_oidc&&!n.sso;return !!(i||s)}),q$1(this.destroyRef)),this.disabled$=this.authenticationMethodStoreService.editMode$.pipe(ne(e=>!e),ne(e=>(e?this.form.disable():this.form.enable(),e)),gd$1(1)),this.authenticationMethods$=this.authenticationMethodStoreService.authMethods$.pipe(pt(e=>!!e),rd$1(e=>{this.authenticationMethodsFormUtilsService.patchForm(this.form,e),this.form.markAsDirty();}),rd$1(e=>{this.authenticationMethodActionsService.updateSelectedAuthenticantionMethod({hyver_credentials:e.hyver_credentials.enabled,microsoft_oidc:e.microsoft_oidc.enabled,sso:e.sso.enabled});})),this.loading$=this.authenticationMethodStoreService.loading$.pipe(gd$1(1));}ngOnInit(){this.authenticationMethodActionsService.getAuthenticationMethods().subscribe();}onChecked(e,n){e?this.authenticationMethodActionsService.updateSelectedAuthenticantionMethod({[n]:e}):this.authenticationMethodsUtilsService.openDisableAuthenticationWarning(n,e);}onAction(e){let n=this.authenticationMethodsUtilsService.transformFormToData(this.form.value);this.authenticationMethodActionsService.executeAction(e,n).pipe(q$1(this.destroyRef),pt(i=>typeof i=="function"),Ed$1(i=>i()),Ys$1(i=>{let s=i?.error?.sso?.config||i?.error[0]||"A system error has occurred. If the issue persists, please contact us.";return this.authenticationMethodsUtilsService.handleSaveActionError(s,this.form),Oe$1})).subscribe();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["authentication-method"]],standalone:false,features:[SC([Dn,Gt,mo,po])],decls:5,vars:6,consts:[[3,"formGroup"],[1,"background-wrapper"],[1,"item","special-item",3,"onaction","disabled","saving","edit"],[1,"checkbox-container"],["formControlName","hyver_credentials","label","Username & password",1,"item","label",3,"onchange","labelStyle","disabled"],["formControlName","microsoft_oidc","label","Microsoft (OIDC)",1,"item","label",3,"onchange","labelStyle","disabled"],[1,"item",3,"onchange","selectedAuthMethod","disabled","form"]],template:function(n,i){n&1&&(Og(0),VC(1,"async"),vT(2,N0,1,0,"cye-spinner"),VC(3,"async"),su(4,B0,2,3)),n&2&&(EC(BC(1,1,i.disabled$)),VD(2),IT(BC(3,4,i.loading$)?2:4));},dependencies:[Wn,Hn,$n$1,Dn$1,Vn,we$2,P$1,va,$a,An],styles:["header[_ngcontent-%COMP%]{font:var(--font-14);line-height:1.5;padding-bottom:10px}cye-spinner[_ngcontent-%COMP%]{display:flex;height:120px;
7width:200px;justify-content:center;align-items:center}.background-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:10px;width:clamp(300px,100%,750px);min-width:300px;min-height:135px;border-radius:5px}.background-wrapper[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{margin:6px 5px 7px 10px;width:fit-content}.background-wrapper[_ngcontent-%COMP%] .special-item[_ngcontent-%COMP%]{align-self:end;height:0px}.background-wrapper[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}form.small-shrink[_ngcontent-%COMP%]{width:clamp(300px,100%,750px);min-width:300px}form.big-shrink[_ngcontent-%COMP%]{width:clamp(380px,100%,750px);min-width:380px}"]});}}return t})();var q0=["tfaModal"],wa=()=>({width:"280px"}),z0=()=>({color:"var(--hyver-tertiary)"}),Q0=()=>({color:"var(--hyver-tertiary)",marginRight:"5px"});function W0(t,l){if(t&1){let e=ST();ls$1(0,"force-company-tfa-verification",2),VC(1,"async"),VC(2,"async"),VC(3,"async"),VC(4,"async"),ig("tfachanged",function(i){af(e);let s=LT();return cf(s.onTfaChange(i))}),au();}if(t&2){let e=LT();Qm$1("processStatus",BC(1,3,e.companyTfaEnableStatus$))("showToken",BC(2,5,e.deviceList$)?.length&&BC(3,7,e.deviceList$)[0].confirmed)("enableTfa",!!BC(4,9,e.companyTfaEnabled$));}}function K0(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",23),ig("click",function(){af(e);let i=LT(2);return cf(i.onStartEdit())}),mC(1,"Edit "),au();}if(t&2){let e=LT(2);Qm$1("disabled",e.disable);}}function Y0(t,l){if(t&1&&(ls$1(0,"p",7),mC(1),VC(2,"capitalizeFirst"),VC(3,"noValue"),au()),t&2){let e=LT(2);VD(),Mg(BC(3,3,BC(2,1,e.industry.value)));}}function Z0(t,l){if(t&1&&Zm$1(0,"company-sector-picker",24),t&2){let e=LT(2);Qm$1("controlName","industry")("formGroup",e.companyInfoForm);}}function J0(t,l){if(t&1&&(ls$1(0,"pre",25),mC(1),au()),t&2){let e=LT(2);VD(),Mg(e.compDescription.value);}}function X0(t,l){if(t&1&&(Zm$1(0,"cye-textarea",26),Mb()),t&2){let e=LT(2);Qm$1("inputStyle",e.inputStyle)("maxlength",512),xb();}}function ec(t,l){if(t&1&&(ls$1(0,"p",7),mC(1),VC(2,"noValue"),au()),t&2){let e=LT(3);VD(),Mg(BC(2,1,e.statusLabelText()));}}function tc(t,l){if(t&1&&mC(0),t&2){let e=LT(5);fu(" Mandatory data is required for activation. Please complete it in ",e.profile?.company?.name," Company Profile in Cost of Breach ");}}function nc(t,l){if(t&1&&mC(0),t&2){let e=LT(5);fu(" Mandatory data is required for activation. Please complete it in ",e.profile?.company?.name," Settings ");}}function ic(t,l){if(t&1&&(ls$1(0,"p",30),vT(1,tc,1,1)(2,nc,1,1),au()),t&2){let e=LT(4);VD(),IT(e.hasCobLicense()?1:2);}}function oc(t,l){if(t&1){let e=ST();ls$1(0,"div",28)(1,"cye-drop-down",29),ig("onselect",function(i){af(e);let s=LT(3);return cf(s.onStatusSelect(i))}),au(),vT(2,ic,3,1,"p",30),au();}if(t&2){let e=LT(3);VD(),Qm$1("items",e.statusItems())("selectedItem",e.selectedStatusItem())("disabled",!e.isStatusEditable()||e.isActivationBlocked())("emitValue",true)("enableSearch",false)("headerStyle",NC(7,wa)),VD(),IT(e.isActivationBlocked()?2:-1);}}function rc(t,l){if(t&1&&(ls$1(0,"div",27)(1,"label",6),mC(2,"Status"),au(),vT(3,ec,3,3,"p",7),vT(4,oc,3,8,"div",28),au()),t&2){let e=LT(2);iC(e.isEditing?"column":"line"),VD(),yg("mandatory",e.isEditing&&!e.isStatusUnavailable()),VD(2),IT(!e.isEditing||e.isStatusUnavailable()?3:-1),VD(),IT(e.isEditing&&!e.isStatusUnavailable()?4:-1);}}function ac(t,l){if(t&1&&(ls$1(0,"p",7),mC(1),au()),t&2){let e=LT(2);VD(),fu("Name: ",e.techName.value);}}function sc(t,l){if(t&1){let e=ST();ls$1(0,"cye-checkbox",31),ig("onchange",function(){af(e);let i=LT(2);return cf(i.copyPersonalInfo())}),au();}if(t&2){let e=LT(2);Qm$1("value",e.techDataEq);}}function dc(t,l){if(t&1&&(ls$1(0,"span"),mC(1),au()),t&2){let e=LT(3);VD(),Mg(e.techPhone.value);}}function cc(t,l){if(t&1&&(ls$1(0,"div",5),Zm$1(1,"p",14),ls$1(2,"p",32),mC(3," Phone: "),Om$1(4,dc,2,1,"span",22),au()()),t&2){let e=LT(2);VD(4),Qm$1("ngIf",e.techPhone.value);}}function lc(t,l){if(t&1&&(ls$1(0,"div",5)(1,"label",33),mC(2,"Name"),au(),Zm$1(3,"cye-input",34),Mb(),au()),t&2){let e=LT(2);VD(3),Qm$1("disabled",e.techDataEq)("maxlength",60),xb();}}function pc(t,l){if(t&1&&(ls$1(0,"div",5)(1,"label",35),mC(2,"Phone"),au(),ls$1(3,"div",36),Zm$1(4,"cye-input-phone",37),Mb(),au()()),t&2){let e=LT(2);
7VD(4),Qm$1("disabled",e.techDataEq),xb();}}function mc(t,l){t&1&&(ls$1(0,"p",7),mC(1),au()),t&2&&(VD(),fu(" ","No Image"," "));}function uc(t,l){if(t&1&&(ls$1(0,"div",40)(1,"div",40),Zm$1(2,"img",41),au()()),t&2){LT(3);let e=DC(0);VD(2),Qm$1("src",e,gh);}}function gc(t,l){if(t&1&&(ls$1(0,"div",5)(1,"label",38),mC(2,"Company logo"),au(),Om$1(3,mc,2,1,"p",9)(4,uc,3,1,"div",39),au()),t&2){let e=LT(2),n=DC(0);VD(3),Qm$1("ngIf",!e.profile?.company?.logo?.public_link||e.profile?.company?.logo?.exists==="no"),VD(),Qm$1("ngIf",n&&e.profile?.company?.logo?.public_link&&e.profile?.company?.logo?.exists==="yes");}}function fc(t,l){if(t&1){let e=ST();ls$1(0,"update-company-logo",42),ig("fileSelected",function(i){af(e);let s=LT(2);return cf(s.onFileUpload(i))})("logoDeleted",function(){af(e);let i=LT(2);return cf(i.onLogoDeleted())}),au();}if(t&2){let e=LT(2),n=DC(3);Qm$1("isEditing",e.isEditing)("loading",n)("profile",e.profile);}}function hc(t,l){t&1&&Zm$1(0,"div",21);}function Cc(t,l){if(t&1){let e=ST();ls$1(0,"cye-drop-down",45),ig("searchclear",function(){af(e);let i=LT(4);return cf(i.onCurrencyClear())}),au(),Mb();}if(t&2){let e=LT(4);Qm$1("enableSearch",true)("headerStyle",NC(6,wa))("icon",e.currencyControl.value)("iconType","currency")("iconStyle",NC(7,z0))("items",e.currencyList()),xb();}}function _c(t,l){t&1&&(ls$1(0,"span",46),mC(1,"|"),au(),mC(2),VC(3,"date")),t&2&&(VD(2),fu(" Last updated: ",$C(3,1,l,"dd MMM, yyyy | hh:mm aaa")," "));}function yc(t,l){if(t&1){let e=ST();ls$1(0,"currency-rate",47),ig("cancelEdit",function(){af(e);let i=LT(4);return cf(i.cancelCurrencyEdit())}),au();}if(t&2){let e=LT(4);Qm$1("rateControl",e.currencyRateControl)("currency",e.currencyControl.value);}}function vc(t,l){if(t&1&&(ls$1(0,"div"),Om$1(1,Cc,1,8,"cye-drop-down",43),Mb(),vT(2,_c,4,4),vT(3,yc,1,2,"currency-rate",44),au()),t&2){let e,n=LT(3);VD(),Qm$1("ngIf",n.isEditing),xb(),VD(),IT((e=n.profile.company.currency_rate_last_updated)?2:-1,e),VD(),IT(n.currencyControl.value!=="usd"&&n.currencyControl.value!=="USD"?3:-1);}}function xc(t,l){if(t&1&&(ls$1(0,"span",46),mC(1,"|"),au(),ls$1(2,"span"),mC(3,"Exchange rate"),au(),ls$1(4,"strong",48),mC(5),VC(6,"currencySymbol"),VC(7,"number"),au()),t&2){let e=LT(4);VD(5),Sg("",BC(6,2,e.currencyControl.value),"1 = $",$C(7,4,e.currencyRateControl.value,"1.2-4"));}}function Sc(t,l){t&1&&(ls$1(0,"span",46),mC(1,"|"),au(),mC(2),VC(3,"date")),t&2&&(VD(2),fu(" Last updated: ",$C(3,1,l,"dd MMM, yyyy | hh:mm aaa")," "));}function $c(t,l){if(t&1&&(ls$1(0,"p",7)(1,"strong"),mC(2),VC(3,"currencySymbol"),VC(4,"uppercase"),VC(5,"noValue"),au(),vT(6,xc,8,7),vT(7,Sc,4,4),au()),t&2){let e,n=LT(3);VD(2),Sg("",BC(3,4,n.currencyControl.value)," ",BC(5,8,BC(4,6,n.currencyControl.value))),VD(4),IT(n.currencyControl.value!=="usd"&&n.currencyControl.value!=="USD"?6:-1),VD(),IT((e=n.profile.company.currency_rate_last_updated)?7:-1,e);}}function Mc(t,l){if(t&1&&(ls$1(0,"div",5)(1,"label"),mC(2,"Currency"),au(),vT(3,vc,4,3,"div")(4,$c,8,10,"p",7),au()),t&2){let e=LT(2);VD(3),IT(e.isEditing?3:e.currencyControl.value?4:-1);}}function bc(t,l){if(t&1){let e=ST();ls$1(0,"div",49)(1,"cye-button",50),ig("click",function(){af(e);let i=LT(2);return cf(i.updateCompanyData())}),mC(2," Save "),au(),ls$1(3,"cye-button",51),ig("click",function(){af(e);let i=LT(2);return cf(i.cancelEdits())}),mC(4,"Cancel "),au()();}if(t&2){let e=LT(2),n=DC(3);VD(),Qm$1("disabled",e.companyInfoForm.invalid)("loading",n),VD(2),Qm$1("disabled",n);}}function wc(t,l){t&1&&Zm$1(0,"multi-company-setting")(1,"div",21);}function Pc(t,l){t&1&&(ls$1(0,"span",59)(1,"span"),mC(2,"Turn on 2FA to enhance company security"),au(),ls$1(3,"b"),mC(4,"!"),au()());}function Tc(t,l){t&1&&(ls$1(0,"span",60),mC(1,"Note: 2FA option is still available to users, if they enable it"),au());}function kc(t,l){if(t&1){let e=ST();ls$1(0,"div")(1,"div",52)(2,"span",53),mC(3,"Enforce Two-Factor authentication for all users"),au(),ls$1(4,"cye-button",54),ig("click",function(){af(e);let i=LT(2);return cf(i.forceCompanyTfa())}),mC(5),VC(6,"async"),au(),Om$1(7,Pc,5,0,"span",55),VC(8,"async"),au(),ls$1(9,"div",5)(10,"span",56),mC(11,"Status"),au(),ls$1(12,"span",57),VC(13,"async"),mC(14),VC(15,"async"),au()(),Om$1(16,Tc,2,0,"span",58),VC(17,"async"),au();}if(t&2){let e=LT(2);VD(4),Qm$1("iconStyle",NC(17,Q0)),VD(),fu(" ",BC(6,7,e.companyTfaEnabled$)?"Disable":"Enable"," "),VD(2),Qm$1("ngIf",BC(8,9,e.companyTfaEnabled$)===false),VD(5),yg("enabled",BC(13,11,e.companyTfaEnabled$)),VD(2),fu(" ",BC(15,13,e.companyTfaEnabled$)?"Enabled":"Disabled"," "),VD(2),Qm$1("ngIf",BC(17,15,e.companyTfaEnabled$)===false);}}function Oc(t,l){t&1&&(ls$1(0,"h2",61),mC(1," Authentication method "),au(),Zm$1(2,"authentication-method"));}function Ec(t,l){if(t&1&&(ls$1(0,"form",3)(1,"header")(2,"h3"),mC(3,"Company profile"),au(),Om$1(4,K0,2,1,"cye-button",4),au(),ls$1(5,"div",5)(6,"label",6),mC(7,"Name"),au(),ls$1(8,"p",7),mC(9),VC(10,"slice"),au()(),ls$1(11,"div",8)(12,"label",6),mC(13,"Sector"),au(),Om$1(14,Y0,4,5,"p",9)(15,Z0,1,2,"company-sector-picker",10),au(),ls$1(16,"div")(17,"label",6),mC(18,"Description"),au(),Om$1(19,J0,2,1,"pre",11)(20,X0,1,2,"cye-textarea",12),Mb(),au(),vT(21,rc,5,6,"div",13),ls$1(22,"div",5)(23,"label",14),mC(24,"Technical contact details"),au(),Om$1(25,ac,2,1,"p",9)(26,sc,1,1,"cye-checkbox",15),au(),Om$1(27,cc,5,1,"div",16)(28,lc,4,2,"div",16)(29,pc,5,1,"div",16)(30,gc,5,2,"div",16)(31,fc,1,3,"update-company-logo",17)(32,hc,1,0,"div",18)(33,Mc,5,1,"div",19)(34,bc,5,3,"div",20),Zm$1(35,"div",21),vT(36,wc,2,0),Om$1(37,kc,18,18,"div",22),Zm$1(38,"div",21),vT(39,Oc,3,0),au()),t&2){let e=LT(),n=DC(2);Qm$1("formGroup",e.companyInfoForm),VD(4),Qm$1("ngIf",e.canEdit&&!e.isEditing),VD(5),Mg(UC(10,27,e.compName.value,0,50)),VD(2),iC(e.isEditing?"column":"line"),VD(),yg("mandatory",e.isEditing),VD(2),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),iC(e.isEditing?"column":"line"),VD(3),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),xb(),VD(),IT(e.showStatusField()?21:-1),VD(4),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),Qm$1("ngFeatureFlag","currency_settings"),VD(),Qm$1("ngFeatureFlag","currency_settings"),VD(),Qm$1("ngIf",e.isEditing),VD(2),IT(n?36:-1),VD(),Qm$1("ngIf",e.profile?.role==="admin"),VD(2),IT(!e.isSkynet&&e.isAdmin()?39:-1);}}var go=t=>t.charAt(0).toUpperCase()+t.slice(1),Pa=(()=>{class t extends wt{constructor(){super(),this.environment=T(hr),this.settingsPageService=T(Ut),this.modalService=T(uo$1),this.authService=T(v),this.authActionService=T(Ue$2),this.authApiService=T(k),this.dynamicComponentsService=T(Ye$1),this.fb=T(zn),this.isSkynet=this.environment.isSkynet,this.isAdmin=Ze(false),this.inputStyle={width:"100%"},this.loading=Ze(false),this.isEditing=false,this.companyInfoForm=this.fb.group({compName:["",be$2.required],industry:["",[be$2.required]],compDescription:[""],techName:["",be$2.required],techPhone:this.fb.control("",{updateOn:"change"}),companyLogo:[""],effort:this.fb.control(""),currency:this.fb.control(""),currency_rate:this.fb.control(1,[be$2.pattern(/^(100|(\d{1,2})(\.\d+)?|0?\.\d+)$/),be$2.min(1e-7),be$2.max(100)])}),this.techDataEq=false,this.effortUnitItems=this.settingsPageService.effortUnitList.map(e=>({label:e,value:e.toLowerCase()})),this.currencyList=kt(()=>this.settingsPageService.currencyList().map(e=>({label:e.toUpperCase(),icon:e.toUpperCase(),iconType:"currency",value:e.toLowerCase()}))),this.isParentCompany=z$1(this.settingsPageService.isParentCompany$),this.logoLink$=this.settingsPageService.getFormCompanyLogo(),this.canEdit=false,this.StatusControlStateEnum=Le$2,this.companyStatus=Ze(null),this.selectedStatus=Ze(null),this.companyIsParent=Ze(false),this.showStatusField=kt(()=>!this.companyIsParent()),this.statusControlState=kt(()=>go$1({status:this.companyStatus(),canEdit:this.isAdmin(),isParent:this.companyIsParent(),companyName:this.profile?.company?.name??""})),this.isStatusEditable=kt(()=>this.statusControlState().state===Le$2.EDITABLE),this.isStatusUnavailable=kt(()=>this.statusControlState().state===Le$2.UNAVAILABLE),this.readiness=Ze(null),this.readinessLoaded=Ze(false),this.isActivationBlocked=kt(()=>this.companyStatus()===V.STAGING&&this.readinessLoaded()&&this.readiness()?.is_ready===false),this.statusItems=kt(()=>this.statusControlState().options.map(e=>({label:go(e),value:e}))),this.selectedStatusItem=kt(()=>{let e=this.selectedStatus();return e?{label:go(e),value:e}:void 0}),this.statusLabelText=kt(()=>{let e=this.companyStatus();return e?go(e):""}),this.statusChanged=kt(()=>this.isStatusEditable()&&this.selectedStatus()!=null&&this.selectedStatus()!==this.companyStatus()),this.uploadLogoError="",this.logoDeleted=false,this.companyTfaEnabled$=this.authService.profileResponse$.pipe(pt(e=>!!e),ne(e=>!!e?.company?.enforce_multi_factor)),this.deviceList$=this.authApiService.deviceList$,this.companyTfaEnableStatus$=this.authService.companyTfaEnableStatus$,this.onratechange=onratechange;}ngOnInit(){this.authApiService.getDeviceList(),this.companyInfoForm.controls.techPhone.setValidators(Cn.phoneValidator),this.settingsPageService.uploadedCompanyLogo$.pipe(pt(e=>!!e),Dd$1(this.destroy$),rd$1(()=>this.settingsPageService.updateLogoStatus("yes"))).subscribe(),this.authService.profileResponse$.pipe(Dd$1(this.destroy$),pt(e=>!!e),rd$1(e=>{if(this.profile=e,e?.company?.logo&&this.settingsPageService.updateFormCompanyLogo(e.company.logo.public_link),this.isAdmin.set(e?.role===I.ADM
7IN),this.loading.set(false),e?.role===I.ADMIN&&(this.canEdit=true),this.profile.company){this.compName.setValue(this.profile.company.name),this.industry.setValue(this.profile.company.industry),this.compDescription.setValue(this.profile.company.description),this.techName.setValue(this.profile.company.technical_contact_full_name),this.techPhone.setValue(this.profile.company.technical_contact_phone),this.effortControl.setValue(this.profile.company?.effort||this.effortUnitItems.find(i=>i.value==="days")),this.currencyControl.setValue(this.profile.company?.currency||"USD"),this.currencyRateControl.setValue(this.profile.company?.currency_rate||1),this.currencyRateControl.markAsPristine(),this.companyIsParent.set(this.profile.company.is_parent_company===true);let n=this.profile.company.status??null;this.companyStatus.set(n),this.selectedStatus.set(n),this.loadReadiness();}})).subscribe(),this.authService.profileResponseError$.pipe(Dd$1(this.destroy$)).subscribe(()=>{this.loading.set(false),this.modalService.openToast("Update failed! Please try again or contact support","warn");}),Py([this.settingsPageService.postLink$,this.settingsPageService.backendErrorResponse$]).pipe(Dd$1(this.destroy$),rd$1(e=>{let n=e.some(i=>i instanceof b$1);this.uploadLogoError=n?"something went wrong":"";})).subscribe(),this.currencyControl.valueChanges.subscribe(()=>{this.currencyRateControl.setValue(null);});}onCurrencyClear(){this.currencyControl.setValue(this.profile.company?.currency||"USD",{emitEvent:false}),this.currencyRateControl.setValue(this.profile.company?.currency_rate||1);}cancelEdits(){this.profile.company&&(this.compName.setValue(this.profile.company.name),this.industry.setValue(this.profile.company.industry),this.compDescription.setValue(this.profile.company.description),this.techName.setValue(this.profile.company.technical_contact_full_name),this.techPhone.setValue(this.profile.company.technical_contact_phone),this.effortControl.setValue(this.profile.company?.effort||null),this.currencyControl.setValue(this.profile.company?.currency||"USD",{emitEvent:false}),this.cancelCurrencyEdit()),this.selectedStatus.set(this.companyStatus()),this.isEditing=false,this.techDataEq=false,this.techPhone.setErrors(null);}onStatusSelect(e){this.selectedStatus.set(e);}hasCobLicense(){return u$1.contains(this.profile?.company?.views??[],[A$1.ORGANIZATION_COB_V1,A$1.ORGANIZATION_COB_V2])}loadReadiness(){this.readinessLoaded.set(false),!(this.companyStatus()!==V.STAGING||this.companyIsParent())&&this.authActionService.getOwnCompanyReadiness().pipe(Dd$1(this.destroy$)).subscribe({next:e=>{this.readiness.set(e),this.readinessLoaded.set(true);},error:()=>this.readinessLoaded.set(false)});}cancelCurrencyEdit(){this.currencyRateControl.setValue(this.profile.company?.currency_rate||1);}updateCompanyData(e=true){return P(this,null,function*(){this.loading.set(true);let n=E({},this.getUpdatedCompany());try{if(this.statusChanged())try{let i=yield Gy(this.authActionService.updateOwnCompanyStatus(this.selectedStatus()));this.companyStatus.set(i.status);}catch(i){this.modalService.openToast(mo$1(i),"warn");return}this.logoDeleted&&(yield this.settingsPageService.updateLogoStatus("no",n)),!this.logoDeleted&&this.logoFileData?yield Gy(this.settingsPageService.uploadLogo(this.logoFileData,this.profile?.company?.id||"").pipe(Ed$1(()=>this.authActionService.updatePersonalData({company:n})))):this.logoDeleted||(yield Gy(this.authActionService.updatePersonalData({company:n}))),this.isEditing=!e;}finally{this.loading.set(false);}})}getUpdatedCompany(){return E(E({name:this.profile?.company?.name,industry:this.industry.value,description:this.compDescription.value,technical_contact_full_name:this.techName.value,technical_contact_phone:this.techPhone.value},this.currencyControl.value&&{currency:this.currencyControl.value,currency_rate:this.currencyRateControl.value||1}),this.effortControl.value&&{effort:this.effortControl.value})}copyPersonalInfo(){if(this.techDataEq=!this.techDataEq,this.techDataEq){this.techName.setValue(`${this.profile.first_name} ${this.profile.last_name}`),this.profile.phone_number&&(this.techPhone.setErrors(null),this.techPhone.setValue(this.profile.phone_number));return}this.techName.setValue(""),this.techPhone.setValue("");}get compName(){return this.companyInfoForm.controls.compName}get industry(){return this.companyInfoForm.controls.industry}get compDescription(){return this.companyInfoForm.controls.compDescription}get techName(){return this.companyInfoForm.controls.techName}get techPhone(){return this.companyInfoForm.controls.techPhone}get currencyControl(){return this.companyInfoForm.controls.currency}get currencyRateControl(){return this.companyInfoForm.controls.currency_rate}get effortControl(){return this.companyInfoForm.controls.effort}onFileUpload(e){this.settingsPageService.updateFormCompanyLogo(e.toString()),this.logoDeleted=false,this.logoFileData=e;}onStartEdit(){this.isEditing=!this.isEditing,this.logoFileData=null,this.isEditing&&(this.logoDeleted=false),this.profile?.company?.logo&&this.settingsPageService.uploadedCompanyLogo$.next(false);}onLogoDeleted(){this.logoDeleted=true,this.logoFileData=null,this.settingsPageService.updateFormCompanyLogo(null);}getRandomNumber(){return Math.round(Math.random()*1e5).toString()}forceCompanyTfa(){this.companyTfaEnableStatus$.next(null),this.dynamicComponentsService.show({component:We$2,context:{headerText:"Two-factor authentication",template:this.tfaModalRef,icon:"status-applicable"}});}onTfaChange(e){this.authActionService.toggleCompanyTfa(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-company-info"]],viewQuery:function(n,i){if
7(n&1&&lg(q0,7),n&2){let s;BT(s=$T())&&(i.tfaModalRef=s.first);}},hostVars:2,hostBindings:function(n,i){n&2&&yg("disable",i.disable);},inputs:{disable:"disable"},standalone:false,features:[Rm$1],decls:8,vars:6,consts:[["tfaModal",""],[3,"formGroup",4,"ngIf"],[3,"tfachanged","processStatus","showToken","enableTfa"],[3,"formGroup"],["class","secondary","icon","edit",3,"disabled","click",4,"ngIf"],[1,"line"],[1,"key"],[1,"value"],[2,"margin-bottom","10px"],["class","value",4,"ngIf"],[3,"controlName","formGroup",4,"ngIf"],["style","white-space: pre-line",4,"ngIf"],["formControlName","compDescription",3,"inputStyle","maxlength",4,"ngIf"],[1,"second-axis__start",3,"class"],[1,"key",2,"clear","left"],["label","Same as mine",3,"value","onchange",4,"ngIf"],["class","line",4,"ngIf"],[3,"isEditing","loading","profile","fileSelected","logoDeleted",4,"ngIf"],["class","hr-divider",4,"ngFeatureFlag"],["class","line",4,"ngFeatureFlag"],["style","display: flex",4,"ngIf"],[1,"hr-divider"],[4,"ngIf"],["icon","edit",1,"secondary",3,"click","disabled"],[3,"controlName","formGroup"],[2,"white-space","pre-line"],["formControlName","compDescription",3,"inputStyle","maxlength"],[1,"second-axis__start"],[1,"status-control"],["placeholder","Select status",3,"onselect","items","selectedItem","disabled","emitValue","enableSearch","headerStyle"],[1,"status-message"],["label","Same as mine",3,"onchange","value"],[1,"value",2,"padding-left","226px"],[1,"mandatory",2,"width","40px"],["formControlName","techName",2,"margin-left","10px","width","350px",3,"disabled","maxlength"],[1,"key",2,"width","40px"],[2,"padding-left","10px"],["formControlName","techPhone",2,"width","'350px'",3,"disabled"],[1,"key","logo-label",2,"line-height","0","flex-shrink","0"],["class","logo-container",4,"ngIf"],[1,"logo-container"],["alt","",3,"src"],[3,"fileSelected","logoDeleted","isEditing","loading","profile"],["placeholder","Select your currency","formControlName","currency",3,"enableSearch","headerStyle","icon","iconType","iconStyle","items","searchclear",4,"ngIf"],[3,"rateControl","currency"],["placeholder","Select your currency","formControlName","currency",3,"searchclear","enableSearch","headerStyle","icon","iconType","iconStyle","items"],[1,"divider"],[3,"cancelEdit","rateControl","currency"],[1,"current-rate"],[2,"display","flex"],["type","submit",2,"width","100px","margin-right","10px",3,"click","disabled","loading"],[1,"secondary",2,"width","100px",3,"click","disabled"],[1,"line","wrappable"],[1,"tfa-label"],["iconClass","icon-lock-icon",1,"secondary","enable-tfa-button",3,"click","iconStyle"],["class","tfa-warning-message",4,"ngIf"],[1,"tfa-status-label"],[1,"tfa-status"],["class","tfa-note",4,"ngIf"],[1,"tfa-warning-message"],[1,"tfa-note"],[1,"authentication-method-header"]],template:function(n,i){n&1&&(Og(0),VC(1,"async"),Og(2)(3),Om$1(4,W0,5,11,"ng-template",null,0,GC),ls$1(6,"cye-card"),Om$1(7,Ec,40,31,"form",1),au()),n&2&&(EC(BC(1,1,i.logoLink$)),VD(2),EC(i.isParentCompany()),VD(),EC(i.loading()),VD(4),Qm$1("ngIf",i.companyInfoForm));},dependencies:[pn,Wn,Hn,$n$1,Xt$1,Dn$1,Vn,u,zs$1,we$2,rt,li,fe,Ee$2,Ge$1,oa,Oi,Ca,_a,ma,ba,An,vn,Bn,On$1,Ln$1,pt$1,p$2,$$1],styles:['[_nghost-%COMP%]{display:block;margin-bottom:25px}[_nghost-%COMP%] cye-card[_ngcontent-%COMP%]{border:none}.disable[_nghost-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%] .tfa-label[_ngcontent-%COMP%]{margin-right:10px;color:#2b3442;white-space:nowrap}[_nghost-%COMP%] .enable-tfa-button[_ngcontent-%COMP%]{min-width:80px;margin-right:10px;flex:0 0 auto}[_nghost-%COMP%] .tfa-warning-message[_ngcontent-%COMP%]{color:#fff;background:var(--negative-500);border-radius:5px;line-height:100%;padding:5px 15px;font-size:14px;font-weight:700;white-space:nowrap;margin:10px 5px 10px 0}[_nghost-%COMP%] .tfa-warning-message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{vertical-align:baseline}[_nghost-%COMP%] .tfa-warning-message[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#fff;font-weight:900;font-size:18px;vertical-align:middle}[_nghost-%COMP%] .tfa-status-label[_ngcontent-%COMP%]{font-size:14px;margin-right:20px;color:#000;line-height:100%}[_nghost-%COMP%] .tfa-status[_ngcontent-%COMP%]{line-height:100%;margin-top:2px;font-size:14px;font-weight:700;color:var(--negative-500)}[_nghost-%COMP%] .tfa-status.enabled[_ngcontent-%COMP%]{color:#06bc70}[_nghost-%COMP%] .tfa-note[_ngcontent-%COMP%]{display:inline-block;margin-top:8px;font-size:12px;color:#59657f}[_nghost-%COMP%] .flex-column[_ngcontent-%COMP%]{background:red}.column[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap}.line[_ngcontent-%COMP%]{display:flex;align-items:center}.line.wrappable[_ngcontent-%COMP%]{flex-wrap:wrap}.line.second-axis__start[_ngcontent-%COMP%]{align-items:flex-start}.line[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:225px;line-height:40px}.line[_ngcontent-%COMP%] label.mandatory[_ngcontent-%COMP%]:after{color:red;content:"*"}.line[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{vertical-align:middle}cye-textarea[_ngcontent-%COMP%], company-sector-picker[_ngcontent-%COMP%]{width:clamp(200px,100%,550px)}header[_ngcontent-%COMP%]{display:flex;align-items:center}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18);line-height:32px;font-weight:400}header[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:15px}pre[_ngcontent-%COMP%]{max-width:50%}form[_ngcontent-%COMP%] .hr-divider[_ngcontent-%COMP%]{width:100%;height:1px;margin:20px 0;background:var(--primary-150)}.logo-container[_ngcontent-%COMP%]{height:160px;width:400px;display:flex;justify-content:flex-start;box-sizing:border-box;border-radius:4px;align-items:center;font-size:36px;line-height:42px;letter-spacing:.05em;
7color:#0000001a}.logo-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:100%;max-width:70%}.key[_ngcontent-%COMP%]{align-self:flex-start}.current-rate[_ngcontent-%COMP%]{margin-left:10px}.divider[_ngcontent-%COMP%]{color:#dee3ef;margin-right:5px;margin-left:10px}.authentication-method-header[_ngcontent-%COMP%]{font-weight:400}.logo-label[_ngcontent-%COMP%]{white-space:nowrap}.background-wrapper[_ngcontent-%COMP%]{width:100%}.status-control[_ngcontent-%COMP%]{display:flex;flex-direction:column}.status-message[_ngcontent-%COMP%]{margin:4px 0 0;max-width:280px;font:var(--font-12-500);color:var(--text-color-secondary)}'],changeDetection:1});}}return t})();function Lc(t,l){if(t&1&&(ls$1(0,"div",7),mC(1),au()),t&2){let e=l.$implicit;VD(),fu(" ",e," ");}}(()=>{class t{constructor(e,n){this.cyeModalActiveViewService=e,this.router=n,this.passwordForm=new P$2({password:new z$2(null,{validators:[be$2.required],updateOn:"blur"})});}forgotPass(){this.router.navigate(["/forgot-password"]),this.cyeModalActiveViewService.close(this.context.id);}onCancel(){this.cyeModalActiveViewService.dismiss(this.context.id);}onDelete(){this.cyeModalActiveViewService.close(this.context.id,this.passwordForm.controls?.password.value);}onAction(){this.cyeModalActiveViewService.close(this.context.id,this.passwordForm.controls?.password.value);}static{this.\u0275fac=function(n){return new(n||t)(fo$1(d$2),fo$1(F))};}static{this.\u0275cmp=gw({type:t,selectors:[["guard-with-password"]],inputs:{context:"context"},standalone:false,decls:10,vars:6,consts:[["class","text-container",4,"ngFor","ngForOf"],[3,"submit","formGroup"],["type","password","placeholder","Enter your password",1,"password",3,"passwordShow","formControl"],[1,"forgot-pass",3,"click"],[1,"buttons-container"],[1,"secondary",3,"click"],[3,"click","disabled"],[1,"text-container"]],template:function(n,i){n&1&&(Om$1(0,Lc,2,1,"div",0),ls$1(1,"form",1),ig("submit",function(){return i.onAction()}),Zm$1(2,"cye-input",2),Mb(),au(),ls$1(3,"div",3),ig("click",function(){return i.forgotPass()}),mC(4,"Forgot your password?"),au(),ls$1(5,"div",4)(6,"cye-button",5),ig("click",function(){return i.onCancel()}),mC(7,"Cancel"),au(),ls$1(8,"cye-button",6),ig("click",function(){return i.onAction()}),mC(9),au()()),n&2&&(Qm$1("ngForOf",i.context.data.text),VD(),Qm$1("formGroup",i.passwordForm),VD(),Qm$1("passwordShow",true)("formControl",i.passwordForm?.controls.password),xb(),VD(6),Qm$1("disabled",!i.passwordForm.valid),VD(),Mg(i.context.data.action));},dependencies:[Tt$1,Wn,Hn,$n$1,vn$1,Dn$1,rt,fe],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:flex-end;width:170px}[_nghost-%COMP%] .text-container[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%] .password[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}[_nghost-%COMP%] .forgot-pass[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:10px;align-self:flex-end;color:var(--light-blue-500)}"]});}}return t})();(()=>{class t{constructor(e,n){this.cyeModalActiveViewService=e,this.router=n,this.passwordForm=new P$2({password:new z$2(null,{validators:[be$2.required],updateOn:"blur"})});}forgotPass(){this.router.navigate(["/forgot-password"]),this.cyeModalActiveViewService.close(this.context.id);}onCancel(){this.cyeModalActiveViewService.dismiss(this.context.id,this.passwordForm?.controls?.password.value);}onSave(){this.cyeModalActiveViewService.close(this.context.id,this.passwordForm?.controls?.password.value);}static{this.\u0275fac=function(n){return new(n||t)(fo$1(d$2),fo$1(F))};}static{this.\u0275cmp=gw({type:t,selectors:[["edit-sso-config"]],inputs:{context:"context"},standalone:false,decls:11,vars:4,consts:[[1,"text-container"],[3,"submit","formGroup"],["type","password","placeholder","Enter your password",1,"password",3,"passwordShow","formControl"],[1,"forgot-pass",3,"click"],[1,"buttons-container"],[1,"secondary",3,"click"],[3,"click","disabled"]],template:function(n,i){n&1&&(ls$1(0,"div",0),mC(1,"Enter your password in order to save the SSO configuration for all c
7ompany users."),au(),ls$1(2,"form",1),ig("submit",function(){return i.onSave()}),Zm$1(3,"cye-input",2),Mb(),au(),ls$1(4,"div",3),ig("click",function(){return i.forgotPass()}),mC(5,"Forgot your password?"),au(),ls$1(6,"div",4)(7,"cye-button",5),ig("click",function(){return i.onCancel()}),mC(8,"Cancel"),au(),ls$1(9,"cye-button",6),ig("click",function(){return i.onSave()}),mC(10,"Continue"),au()()),n&2&&(VD(2),Qm$1("formGroup",i.passwordForm),VD(),Qm$1("passwordShow",true)("formControl",i.passwordForm?.controls.password),xb(),VD(6),Qm$1("disabled",!i.passwordForm.valid));},dependencies:[Wn,Hn,$n$1,vn$1,Dn$1,rt,fe],styles:["[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column}[_nghost-%COMP%] .buttons-container[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;align-self:flex-end;width:170px}[_nghost-%COMP%] .text-container[_ngcontent-%COMP%]{margin-bottom:20px}[_nghost-%COMP%] .password[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}[_nghost-%COMP%] .forgot-pass[_ngcontent-%COMP%]{cursor:pointer;margin-bottom:10px;align-self:flex-end;color:var(--light-blue-500)}"]});}}return t})();var Ta=(()=>{class t{transform(e){let n=0;return e?.first_name&&(n+=25),e?.tfa_enabled&&(n+=50),e?.company?.industry&&(n+=25),n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"profileComplete",type:t,pure:true,standalone:false});}}return t})();var Dc=["chart"];Wl$1.register(...Lh);var ka=(()=>{class t{ngAfterViewInit(){this.chartRef&&new Wl$1(this.chartRef.nativeElement,{type:"doughnut",data:{datasets:[{data:[this.completeness,100-this.completeness],backgroundColor:["#0067b6","#b8c9d9"],borderWidth:0}]},options:{cutout:43,responsive:true,plugins:{legend:{display:false}}}});}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-complete-pie-chart"]],viewQuery:function(n,i){if(n&1&&lg(Dc,5),n&2){let s;BT(s=$T())&&(i.chartRef=s.first);}},inputs:{completeness:"completeness"},standalone:false,decls:2,vars:0,consts:[["chart",""],["id","myChart","width","95","height","95"]],template:function(n,i){n&1&&Zm$1(0,"canvas",1,0);},styles:["[_nghost-%COMP%]{position:absolute;pointer-events:none}"]});}}return t})();function Vc(t,l){if(t&1&&(ls$1(0,"cye-card")(1,"h3"),mC(2,"Profile completeness"),au(),ls$1(3,"div",1)(4,"div",2),Zm$1(5,"settings-complete-pie-chart",3),VC(6,"profileComplete"),Zm$1(7,"img",4),ls$1(8,"label"),mC(9),VC(10,"profileComplete"),Zm$1(11,"br"),mC(12," complete "),au()(),ls$1(13,"div",5),Zm$1(14,"img",6),ls$1(15,"label"),mC(16,"ACCOUNT CREATED"),au()(),ls$1(17,"div",5),Zm$1(18,"img",7),ls$1(19,"label"),mC(20,"ADD PERSONAL INFO"),au()(),ls$1(21,"div",5),Zm$1(22,"img",7),ls$1(23,"label"),mC(24,"ENABLE 2FA"),au()()()()),t&2){let e=l.ngIf;VD(5),Qm$1("completeness",BC(6,4,e)),VD(4),fu(" ",BC(10,6,e),"% "),VD(9),Qm$1("src",e?.first_name?"assets/img/personal-info-green.svg":"assets/img/personal-info-blue.svg",gh),VD(4),Qm$1("src",e?.tfa_enabled?"assets/img/tfa_green.svg":"assets/img/tfa_blue.svg",gh);}}var Oa=(()=>{class t{constructor(e){this.authService=e,this.profile$=this.authService.profileResponse$;}static{this.\u0275fac=function(n){return new(n||t)(fo$1(v))};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-dashboard"]],standalone:false,decls:2,vars:3,consts:[[4,"ngIf"],[1,"setting-white-box"],[1,"top-profile-tabs","first-tab"],[3,"completeness"],["src","assets/img/user.svg","alt",""],[1,"top-profile-tabs"],["src","assets/img/gear.svg","alt",""],["alt","",3,"src"]],template:function(n,i){n&1&&(Om$1(0,Vc,25,8,"cye-card",0),VC(1,"async")),n&2&&Qm$1("ngIf",BC(1,1,i.profile$));},dependencies:[pn,u,ka,An,Ta],styles:["[_nghost-%COMP%]{margin-bottom:25px;display:block;container-type:inline-size;container-name:settingsWhiteBox}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18);line-height:32px;font-weight:400}[_nghost-%COMP%] .setting-white-box[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}[_nghost-%COMP%] .setting-white-box[_ngcontent-%COMP%] .top-profile-tabs.first-tab[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;justify-content:space-between;align-items:center}
7[_nghost-%COMP%] .setting-white-box[_ngcontent-%COMP%] .top-profile-tabs[_ngcontent-%COMP%]{font-size:13px;text-align:center;color:#425062;font-weight:400}[_nghost-%COMP%] .setting-white-box[_ngcontent-%COMP%] .top-profile-tabs[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin:1em 0;display:block}@container settingsWhiteBox (width <= 640px){[_nghost-%COMP%] .setting-white-box[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,auto)}}"]});}}return t})();function Nc(t,l){if(t&1&&Zm$1(0,"cye-menu-navigation",0),t&2){LT();let e=DC(0);Qm$1("showExact",false)("menuItems",e);}}var Ea=(()=>{class t{constructor(){this.featureFlagService=T(A$2),this.settingsPageService=T(Ut),this.environment=T(hr),this.authService=T(v),this.profile$=this.authService.profileResponse$,this.profile=z$1(this.profile$),this.isSkynet=this.environment.isSkynet,this.isSettingsFacelift=Ze(this.featureFlagService.featureFlagEnabled("settings_facelift")),this._menuItems=[{path:"profile",label:"User profile"},{path:"company",label:"Company profile"},{path:"account",label:"Account & Two-factor authentication"}],this.workatoOverlapDeprecated=this.featureFlagService.getIsFeatureFlagEnabled("workato_overlap_deprecation"),this.profileMenuItems=z$1(this.profile$.pipe(ne(e=>{let n=[...this._menuItems];if(!e)return n;let i=e.company?.views?.includes(A$1.ORGANIZATION_PARENT_COMPANY);this.settingsPageService.isParentCompany$.next(i);let s=e.role==="admin",u=e.role===I.IT_ADMIN;if(s){let D={path:"members",label:"Members & Groups"};this.insertBefore(n,D,Me=>Me.path==="account"),this.featureFlagService.featureFlagEnabled("media_library")&&n.push({path:"media-library",label:"Media library"}),!this.isSkynet&&!i&&(n.push({path:"token",label:"Access token"}),n.push({path:"notifications",label:"Notifications"})),i||n.push({path:"maturity",label:"Maturity"}),u$1.contains(e.company?.views,[A$1.ORGANIZATION_COB_V1,A$1.ORGANIZATION_COB_V2])&&n.push({path:"cob",label:"Cost of breach"}),u$1.contains(e.company?.views,[A$1.ORGANIZATION_LOB_V1,A$1.ORGANIZATION_LOB_V2])&&n.push({path:"lob",label:"Likelihood"}),(u$1.contains(e.company?.views||[],[A$1.THREATS_AND_BUSINESS_ASSETS])||this.isSkynet||i)&&(n.push({path:"threats",label:"Threats sources"}),n.push({path:"businessassets",label:"Business assets"}));}return u&&(n.push({path:"token",label:"Access token"}),n.push({path:"notifications",label:"Notifications"})),e.is_manager&&(n.push({path:"licenses",label:"Licenses"}),n.push({path:"licenses-v2",label:"Licenses V2"}),n.push({path:"companies",label:"Companies"})),n}))),this.menuItems=kt(()=>{let e=this.profileMenuItems();return this.workatoOverlapDeprecated()?e?.filter(n=>n.path!=="notifications"):e});}insertBefore(e,n,i){let s=e.findIndex(i);s!==-1?e.splice(s,0,n):e.push(n);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["settings"]],standalone:false,decls:4,vars:2,consts:[["menuHeader","Settings menu",3,"showExact","menuItems"],[1,"settings-pages","scrollable","allways"]],template:function(n,i){if(n&1&&(Og(0),vT(1,Nc,1,2,"cye-menu-navigation",0),ls$1(2,"div",1),Zm$1(3,"router-outlet"),au()),n&2){let s=i.isSettingsFacelift();EC(i.menuItems()),VD(),IT(s?-1:1);}},dependencies:[jt$1,wr],styles:["[_nghost-%COMP%]{display:flex;position:relative;width:100%;height:100%;overflow:hidden;background-color:#fff}[_nghost-%COMP%] cye-menu-navigation[_ngcontent-%COMP%]{margin-top:6px}.settings-pages[_ngcontent-%COMP%]{scrollbar-gutter:stable;width:100%;height:100%;overflow:overlay;overflow-x:hidden;padding:0 20px}.settings-pages[_ngcontent-%COMP%]:has(workflow-automation-page){overflow:hidden}.sub-navigation[_ngcontent-%COMP%]{min-width:245px;height:100%;border-right:1px solid var(--primary-150)}.sub-navigation[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{height:50px;line-height:50px;font-size:13px;font-weight:500;border-bottom:1px solid var(--primary-150);padding:0 23px;display:block;margin-bottom:10px}.sub-navigation[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;font:var(--font-12);line-height:40px;padding:0 23px;text-decoration:none;color:var(--hyver-primary);transition:.3s ease all}.sub-navigation[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{background:#d2ecff}"]});}}return t})();var Rc=()=>({height:"18px",padding:"0 0 0 4px"}),La=(()=>{class t{constructor(){this.changequantity=new Xe;}changeQuantity(e){this.changequantity.emit(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["compamies-license-edit"]],inputs:{license:"license"},outputs:{changequantity:"changequantity"},standalone:false,decls:7,vars:7,consts:[[1,"license-name"],[1,"license-control
7s"],[1,"quantity"],["type","number",3,"valueChanged","value","min","inputStyle"],["icon","remove",3,"click","clickable","size"]],template:function(n,i){n&1&&(ls$1(0,"div",0),mC(1),au(),ls$1(2,"div",1)(3,"p",2),mC(4,"Quantity"),au(),ls$1(5,"cye-input",3),ig("valueChanged",function(u){return i.license.license_package_quantity=u,i.changeQuantity(u)}),au(),ls$1(6,"cye-icon",4),ig("click",function(){return i.changeQuantity(0)}),au()()),n&2&&(VD(),Mg(i.license.license_package_name),VD(4),Qm$1("value",i.license.license_package_quantity)("min",1)("inputStyle",NC(6,Rc)),VD(),Qm$1("clickable",true)("size",16));},dependencies:[ut,fe],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:var(--primary-25);margin:5px 22px;padding:9px;border-radius:4px}[_nghost-%COMP%] .license-name[_ngcontent-%COMP%]{font:var(--font-14)}[_nghost-%COMP%] .license-controls[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] .license-controls[_ngcontent-%COMP%] .quantity[_ngcontent-%COMP%]{margin:auto 6px auto auto;font:var(--font-11)}[_nghost-%COMP%] .license-controls[_ngcontent-%COMP%] cye-input[_ngcontent-%COMP%]{width:48px;margin-right:20px}"],changeDetection:1});}}return t})();var Ia=(()=>{class t{transform(e){switch(e){case hn.CUSTOMER:return "Customer";case hn.POC:return "Company on POC";case hn.NONCUSTOMER:return "Noncustomer";case hn.INTERNAL_DEMO:return "Internal demo";default:return "None"}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"subscriptionCompanyType",type:t,pure:true});}}return t})();var Da=(()=>{class t{constructor(){this.company=u$.required(),this.edit=l$(),this.licenseNames=kt(()=>{let e=this.company().assigned_license_package_names;return e?.length?e.join(", "):"None"}),this.COMPANIES_DATE_FORMAT=to;}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["company-row"]],inputs:{company:[1,"company"]},outputs:{edit:"edit"},standalone:false,decls:18,vars:15,consts:[[1,"company-row"],[1,"col-name"],[1,"col-license"],[1,"col-created"],[1,"col-status"],[1,"col-modified-date"],[1,"col-modified-by"],["icon","edit",3,"click"]],template:function(n,i){if(n&1){let s=ST();Og(0),ls$1(1,"div",0)(2,"span",1),mC(3),au(),ls$1(4,"span",2),mC(5),au(),ls$1(6,"span",3),mC(7),VC(8,"date"),au(),ls$1(9,"span",4),mC(10),VC(11,"subscriptionCompanyType"),au(),ls$1(12,"span",5),mC(13),VC(14,"date"),au(),ls$1(15,"span",6),mC(16),au(),ls$1(17,"cye-icon",7),ig("click",function(){af(s);let D=DC(0);return cf(i.edit.emit(D))}),au()();}if(n&2){let s=EC(i.company()),u=i.licenseNames();VD(3),Mg(s.name),VD(2),fu("",u,"."),VD(2),Mg($C(8,7,s.created_time,i.COMPANIES_DATE_FORMAT)),VD(3),Mg(BC(11,10,s.company_subscription_type)),VD(3),Mg($C(14,12,s.assignment_date,i.COMPANIES_DATE_FORMAT)),VD(3),Mg(s.modified_by);}},dependencies:[ut,Ln$1,Ia],styles:["[_nghost-%COMP%]{display:block}.company-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(110px,1.7fr) minmax(180px,2.3fr) minmax(90px,.9fr) minmax(100px,1fr) minmax(110px,1.6fr) minmax(100px,1fr) 40px;align-items:center;padding:0 10px;font:var(--font-12);height:42px;border:1px solid var(--border-table-row)}.company-row[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding:0 10px}.company-row[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{justify-self:center}"]});}}return t})();var fo=(t,l,e)=>{let n=t.filter(s=>s.default&&s.status!=="DEPRECATED").sort((s,u)=>s.name.localeCompare(u.name)).map(s=>({label:s.name,value:s.id,disabled:l?.some(u=>u===s.name),icon:"info",iconOrder:"right",iconToolTipTemplate:e,category:"DEFAULT PACKAGE",tooltipContent:{$implicit:s.description}})),i=t.filter(s=>s.status==="ACTIVE"&&!s.default).sort((s,u)=>s.name.toLowerCase().localeCompare(u.name.toLowerCase())).map(s=>({label:s.name,value:s.id,icon:"info",iconOrder:"right",iconToolTipTemplate:e,category:"CUSTOMIZED",tooltipContent:{$implicit:s.description}}));return [...n,...i]};var Aa=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["components-item"]],inputs:{name:"name",type:"type"},standalone:false,decls:3,vars:2,consts:[[1,"item-bar",3,"ngClass"]],template:function(n,i){n&1&&(Zm$1(0,"div",0),ls$1(1,"p"),mC(2),au()
7),n&2&&(Qm$1("ngClass",i.type),VD(2),Mg(i.name));},dependencies:[hn$1],styles:["[_nghost-%COMP%]{display:flex;margin-bottom:1px}[_nghost-%COMP%] .item-bar[_ngcontent-%COMP%]{width:0px;height:22px;border-radius:5px 0 0 5px;border:3px solid #ab47bc}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:auto 10px;font:var(--font-12);font-style:normal;font-weight:400;line-height:12px;letter-spacing:0em;text-align:left}[_nghost-%COMP%] .BASIC[_ngcontent-%COMP%]{border-color:#ab47bc;background-color:#ab47bc}[_nghost-%COMP%] .INTERMEDIATE[_ngcontent-%COMP%]{border-color:#ffa726;background-color:#ffa726}[_nghost-%COMP%] .PREMIUM[_ngcontent-%COMP%]{border-color:#26c6da;background-color:#26c6da}"],changeDetection:1});}}return t})();var Hc=t=>Object.keys(t).map(l=>t[l]).join(` 8`),Ht=Hc;var qc={name:"",description:"",duration:12,status:z.DRAFT,content:[],components:[],editMode:true},Va=qc;var zc=()=>({width:"70px"}),Fa=()=>({height:"18px"}),Qc=()=>({width:"90px"});function Wc(t,l){t&1&&Jm$1(0);}function Kc(t,l){if(t&1){let e=ST();ls$1(0,"div",4),ig("click",function(){af(e);let i=LT();return cf(i.item.has_quantity&&i.checked&&i.editmode&&(i.editState=true))}),mC(1),au();}if(t&2){let e=LT();yg("pointer",e.item.has_quantity&&e.editmode&&e.checked),VD(),fu(" ",e.checked?e.item.has_quantity?"Every "+e.timeAmount+" "+e.timeUnit:"Unlimited":"-"," ");}}function Yc(t,l){if(t&1){let e=ST();ls$1(0,"div",5),ig("clickOutside",function(){af(e);let i=LT();return cf(i.editState=false)}),ls$1(1,"cye-drop-down",6),ig("onselect",function(i){af(e);let s=LT();return cf(s.dropdownSelectNumbers(i))}),au(),ls$1(2,"cye-drop-down",7),ig("onselect",function(i){af(e);let s=LT();return cf(s.dropdownSelectUnits(i))}),au()();}if(t&2){let e=LT();VD(),rC(NC(10,zc)),Qm$1("headerStyle",NC(11,Fa))("items",e.numbers)("selectedItem",e.numbersValue),VD(),rC(NC(12,Qc)),Qm$1("headerStyle",NC(13,Fa))("selectedItem",e.unitsValue)("items",e.units);}}var Ra=(()=>{class t{constructor(){this.listChecked=[],this.edited=new Xe,this.numbers=new Array(5).fill({}).map((e,n)=>({value:n+1,label:""+(n+1)})),this.units=[{label:"month",value:"month"},{label:"year",value:"year"}],this.unitsValue=this.units[1],this.numbersValue={label:"1",value:1},this.timeUnit="year",this.timeAmount=1,this.editState=false,this.checked=false;}dropdownSelectNumbers(e){this.numbersValue={label:e.toString(),value:e},e>1?this.timeAmount===1&&(this.timeUnit=this.timeUnit+"s"):this.timeAmount!==1&&(this.timeUnit=this.timeUnit.slice(0,-1)),this.timeAmount=e,this.editedEmitter();}dropdownSelectUnits(e){e.includes("y")?this.numbers=new Array(5).fill({}).map((n,i)=>({value:i+1,label:""+(i+1)})):this.numbers=new Array(11).fill({}).map((n,i)=>({value:i+1,label:""+(i+1)})),this.unitsValue={label:e,value:e},this.timeAmount>1?this.timeUnit=e+"s":this.timeUnit=e,this.editedEmitter();}changeCheckBox(e){this.checked=e,this.editState=e,this.editedEmitter();}editedEmitter(){this.edited.emit({name:this.item.name,quantity:`${this.timeAmount} ${this.timeUnit}`,checked:this.checked,amount:this.item.has_quantity?this.timeUnit.includes("y")?12*this.timeAmount:this.timeAmount:"UNLIMITED",id:this.item.id});}ngOnInit(){if(this.listChecked.some(e=>e.id===this.item.id)){let e=this.listChecked[this.listChecked.findIndex(i=>i.id===this.item.id)].quantity;isNaN(e)&&(e=Number(e.includes("y")?12*Number(e.split(" ")[0]):Number(e.split(" ")[0]))),this.checked=true;let n=e%12?e>=2?"months":"month":e/12>=2?"years":"year";this.numbersValue={label:""+(e%12?e:e/12),value:e%12?e:e/12},this.timeAmount=e%12?e:e/12,this.timeUnit=n,e>1?this.timeAmount===1&&(this.timeUnit=this.timeUnit+"s"):this.timeAmount!==1&&(this.timeUnit=this.timeUnit.slice(0,-1)),n.includes("y")?this.numbers=new Array(5).fill({}).map((i,s)=>({value:s+1,label:""+(s+1)})):this.numbers=new Array(11).fill({}).map((i,s)=>({value:s+1,label:""+(s+1)})),this.unitsValue={label:n,value:n},this.timeAmount<=0&&(this.timeUnit=n);}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["component-item"]],inputs:{item:"item",editmode:"editmode",listChecked:"listChecked"},outputs:{edited:"edited"},standalone:false,decls:7,vars:5,consts:[["text",""],["edit",""],[2,"width","12px","height","12px","margin-top","5px",3,"onchange","value","disabled"],[4,"ngIf","ngIfThe
8n","ngIfElse"],[1,"clickable",3,"click"],[1,"dropdown-container",3,"clickOutside"],["placeholder","",3,"onselect","headerStyle","items","selectedItem"],[3,"onselect","headerStyle","selectedItem","items"]],template:function(n,i){if(n&1&&(ls$1(0,"div")(1,"cye-checkbox",2),ig("onchange",function(u){return i.changeCheckBox(u)}),au(),Om$1(2,Wc,1,0,"ng-container",3)(3,Kc,2,3,"ng-template",null,0,GC)(5,Yc,3,14,"ng-template",null,1,GC),au()),n&2){let s=qT(4),u=qT(6);VD(),Qm$1("value",i.checked)("disabled",!i.editmode),VD(),Qm$1("ngIf",i.item.has_quantity&&i.editState)("ngIfThen",u)("ngIfElse",s);}},dependencies:[pe,pn,zs$1,we$2],styles:["[_nghost-%COMP%] .clickable[_ngcontent-%COMP%]{width:100%;font:var(--font-12);line-height:28px}[_nghost-%COMP%] div[_ngcontent-%COMP%]{display:flex;height:28px;align-items:flex-start;align-items:center}[_nghost-%COMP%] div[_ngcontent-%COMP%] cye-drop-down[_ngcontent-%COMP%]{margin-bottom:7px}[_nghost-%COMP%] div[_ngcontent-%COMP%] cye-drop-down[_ngcontent-%COMP%]:first-child{margin-right:3px}[_nghost-%COMP%] div[_ngcontent-%COMP%] cye-checkbox[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;margin-right:75px;margin-bottom:6px;margin-left:25px}[_nghost-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center}"],changeDetection:1});}}return t})();var at=(()=>{class t{constructor(){this.licensePackageList$=new fr([]),this.licenseComponent$=new fr([]),this.licenseActiveStatus$=new fr("loading"),this.licenseComponentsList$=new fr([]),this.errorMessage$=new U$1,this.loadingLicensePackages$=new fr(false),this.incomingID$=new fr(""),this.loadingActivateLicensePackages$=new fr(false);}setLoadingActivateLicensePackage(e){this.loadingActivateLicensePackages$.next(e);}setLicensePackageList(e){this.licensePackageList$.next(e);}setLicenseComponent(e){this.licenseComponent$.next(e);}setLicenseActiveStatus(e){this.licenseActiveStatus$.next(e);}setLicenseComponentsList(e){this.licenseComponentsList$.next(e);}setErrorMessage(e){this.errorMessage$.next(e);}setLoadingLicensePackages(e){this.loadingLicensePackages$.next(e);}setIncomingID(e){this.incomingID$.next(e);}getLoadingActivateLicensePackages(){return this.loadingActivateLicensePackages$.asObservable()}getLicensePackageList(){return this.licensePackageList$.asObservable()}getLicenseComponent(){return this.licenseComponent$.asObservable()}getLicenseActiveStatus(){return this.licenseActiveStatus$.asObservable()}getLicenseComponentsList(){return this.licenseComponentsList$.asObservable()}getErrorMessage(){return this.errorMessage$.asObservable()}getLoadingLicensePackages(){return this.loadingLicensePackages$.asObservable()}getIncomingID(){return this.incomingID$.asObservable()}getLicensePackageListValue(){return this.licensePackageList$.getValue()}getIncomingIDValue(){return this.incomingID$.getValue()}getLicenseComponentsListValue(){return this.licenseComponentsList$.getValue()}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Jc=(t,l)=>l.id;function Xc(t,l){if(t&1){let e=ST();ls$1(0,"component-item",1),ig("edited",function(i){af(e);let s=LT();return cf(s.editedFunTemp(i))}),au();}if(t&2){let e=l.$implicit,n=LT();Qm$1("listChecked",n.formList)("editmode",n.editmode)("item",e);}}var Ba=(()=>{class t{constructor(e){this.licenseStoreService=e,this.edited=new Xe,this.listOfComponentCheckList$=this.licenseStoreService.getLicenseComponentsList();}editedFunTemp(e){e.checked?!this.formList.some((i,s)=>i.id===e.id?(this.formList[s]=e,true):false)&&this.formList.push(e):this.formList.some((n,i)=>n.id===e.id?(this.formList.splice(i,1),true):false),this.edited.emit(this.formList);}static{this.\u0275fac=function(n){return new(n||t)(fo$1(at))};}static{this.\u0275cmp=gw({type:t,selectors:[["component-list-form"]],inputs:{formList:"formList",editmode:"editmode"},outputs:{edited:"edited"},standalone:false,decls:3,vars:2,consts:[[3,"listChecked","editmode","item"],[3,"edited","listChecked","editmode","item"]],template:function(n,i){n&1&&(bT(0,Xc,1,3,"component-item",0,Jc),VC(2,"async")),n&2&&wT(BC(2,0,i.listOfComponentCheckList$));},dependencies:[Ra,An],styles:["[_nghost-%COMP%]{display:block;margin:7px 0 0}[_nghost-%COMP%] component-item[_ngcontent-%COMP%]{margin:auto auto 1px;display:block;height:28px;width:100%}[_nghost-%COMP%] component-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#ebf0f180}"],changeDetection:1});}}return t})();var Ua=()=>({width:"74px"}),ja=()=>({height:"18px"}),tl=()=>({"border-radius":" 3px 0px 0px 3px","border-right":"none"}),nl=()=>({}),il=()=>({"border-radius":"0px 3px 3px 0px"});function ol(t,l){t&1&&Jm$1(0);}function rl(t,l){if(t&1&&(ls$1(0,"span",3),mC(1),au()),t&2){let e=LT();
8VD(),Mg(e.yearValue.text+e.monthValue.text?e.yearValue.text+e.monthValue.text:"Duration is required");}}function al(t,l){if(t&1){let e=ST();ls$1(0,"div",4),ig("clickOutside",function(){af(e);let i=LT();return cf(i.editState=false)}),ls$1(1,"cye-drop-down",5),ig("onselect",function(i){af(e);let s=LT();return cf(s.dropdownSelectYear(i))}),au(),ls$1(2,"cye-drop-down",6),ig("onselect",function(i){af(e);let s=LT();return cf(s.dropdownSelect(i))}),au()();}if(t&2){let e=LT();VD(),rC(NC(13,Ua)),Qm$1("headerStyle",NC(14,ja))("items",e.yearList)("selectedItem",e.yearValue)("headerInputStyle",e.type==="duration"?NC(15,tl):NC(16,nl)),VD(),rC(NC(17,Ua)),Qm$1("disabled",e.yearValue.value===60)("headerStyle",NC(18,ja))("headerInputStyle",NC(19,il))("selectedItem",e.monthValue)("items",e.monthList);}}var Ga=(()=>{class t{constructor(){this.value=12,this.monthList=[],this.yearList=[],this.edited=new Xe,this.yearValue={value:12,label:"1y",text:"1"},this.monthValue={value:0,label:"0m",text:"0"},this.editState=false;}onEdit(){this.editMode&&this.setToEditMode();}ngOnInit(){for(let e=0;e<12;e++)this.monthList.push({label:`${e}m`,value:e,text:e.toString()}),e<6&&this.yearList.push({label:`${e}y`,value:e*12,text:e.toString()});this.sortByMonths(this.value);}sortByMonths(e){this.yearValue={value:Math.floor(e/12)*12,label:Math.floor(e/12)+"y",text:Math.floor(e/12)+""},this.monthValue={value:e%12,label:e%12+"m",text:e%12+""},e&&(this.yearValue.text=Math.floor(e/12)===1?" 1 Year ":Math.floor(e/12)+" Years ",this.yearValue.label=Math.floor(e/12)+"y",this.monthValue.text=e%12===1?" 1 Month ":e%12+" Months ",this.monthValue.label=e%12+"m"),Math.floor(e/12)||(this.yearValue={value:0,label:"0y",text:""}),e%12===0&&(this.monthValue={value:0,label:"0m",text:""}),e>=60&&(this.monthValue={value:0,label:"0m",text:""});}setToEditMode(){this.editState=true;}dropdownSelect(e){this.monthValue.value=e,this.value=this.yearValue.value+this.monthValue.value,this.sortByMonths(this.value),this.edited.emit(this.value);}dropdownSelectYear(e){this.yearValue.value=e,this.value=this.yearValue.value+this.monthValue.value,this.sortByMonths(this.value),this.edited.emit(this.value);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["licenses-card-drop-down-line"]],hostBindings:function(n,i){n&1&&ig("click",function(){return i.onEdit()});},inputs:{value:"value",type:"type",editMode:"editMode"},outputs:{edited:"edited"},standalone:false,decls:7,vars:4,consts:[["text",""],["edit",""],[4,"ngIf","ngIfThen","ngIfElse"],[1,"hidden-drop-down"],[1,"dropdown-container",3,"clickOutside"],["placeholder","",3,"onselect","headerStyle","items","selectedItem","headerInputStyle"],[3,"onselect","disabled","headerStyle","headerInputStyle","selectedItem","items"]],template:function(n,i){if(n&1&&(ls$1(0,"span"),mC(1),au(),Om$1(2,ol,1,0,"ng-container",2)(3,rl,2,1,"ng-template",null,0,GC)(5,al,3,20,"ng-template",null,1,GC)),n&2){let s=qT(4),u=qT(6);VD(),fu("",i.type==="duration"?"Package duration:":""," \xA0"),VD(),Qm$1("ngIf",i.editState)("ngIfThen",u)("ngIfElse",s);}},dependencies:[pe,pn,zs$1],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:28px}[_nghost-%COMP%] span[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;font:var(--font-12);font-weight:400;line-height:12px}[_nghost-%COMP%] .hidden-drop-down[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .dropdown-container[_ngcontent-%COMP%] cye-drop-down[_ngcontent-%COMP%]{position:relative;bottom:2px}"],changeDetection:1});}}return t})();var Ha=(()=>{class t{transform(e,n){return n.includes(e.value)||e.default?1:.3}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"checkIfContains",type:t,pure:true});}}return t})();var cl=t=>({opacity:t});function ll(t,l){if(t&1&&(ls$1(0,"div"),VC(1,"checkIfContains"),Zm$1(2,"cye-icon",1),ls$1(3,"span"),mC(4),au()()),t&2){let e=l.$implicit,n=LT();rC(AC(7,cl,$C(1,4,e,n.content))),VD(2),Qm$1("icon",e.icon),VD(2),Mg(e.name);}}var qa=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["tooltip-container-content-of-license"]],inputs:{ContentList:"ContentList",content:"content"},standalone:false,decls:3,vars:1,consts:[[3,"style",4,"ngFor","ngForOf"],[3,"icon"]],template:function(n,i){n&1&&(ls$1(0,"h3"),mC(1,"Content"),au(),Om$1(2,ll,5,9,"div",0)),n&2&&(VD(2),Qm$1("ngForOf",i.ContentList));},dependencies:[Tt$1,ut,Ha],styles:["[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-12);margin:20px 30px 22px;line-height:18px}[_nghost-%COMP%] div[_ngcontent-%COMP%]{margin:20px 30px}[_nghost-%COMP%] div[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{width:16px;margin-right:20px}"]});}}return t})();var ml=["editElement"],ul=()=>[],gl=t=>({"max-height":"50px","background-color":t,margin:"0",padding:"0px 5px"}),fl=()=>({width:"120px",position:"relative",bottom:"2px"}),hl=()=>({height:"18px"}),Cl=()=>({"border-radius":" 3px 0px 0px 3px","border-right":"none"}),_l=()=>({});function yl(t,l){if(t&1){let e=ST();ls$1(0,"cye-icon",23),ig("click",function(){af(e);let i=LT();return cf(i.onSave())}),au();}}function vl(t,l){if(t&1){let e=ST();ls$1(0,"cye-icon",24),ig("click",function(){af(e);let i=LT();return cf(i.onRemove())}),au();}}function xl(t,l){t&1&&Jm$1(0);}function Sl(t,l){t&1&&Jm$1(0);}function $l(t,l){t&1&&Jm$1(0);}function Ml(t,l){if(t&1&&(ls$1(0,"p",20),mC(1),VC(2,"date"),au()),t&2){let e=LT();VD(),fu("Creation: ",BC(2,1,e.license.created_time));}}function bl(t,l){if(t&1&&(ls$1(0,"p",20),mC(1),VC(2,"date"),au()),t&2){let e=LT();VD(),fu("Modification: ",BC(2,1,e.license.modified_time));}}function wl(t,l){t&1&&Zm$1(0,"span",27);}function Pl(t,l){if(t&1){let e=ST();ls$1(0,"h3",25),ig("click",function(){af(e);let i=LT();return cf(i.nameEdit())}),mC(1),Om$1(2,wl,1,0,"span",26),au();}if(t&2){let e=LT(),n=qT(36);yg("pointer",e.licenseState.status==="DRAFT"),Qm$1("canShowTooltip",e.licenseState.name.length>=29)("tooltip",n),VD(),fu(" ",e.licenseState.name?e.licenseState.name:"New package name..."," "),VD(),Qm$1("ngIf",!e.licenseState?.name);}}function Tl(t,l){if(t&1){let e=ST();ls$1(0,"cye-input",28,8),ig("clickOutside",function(){af(e);let i=LT();return cf(i.nameEditState.set(false))})("valueChanged",function(i){af(e);let s=LT();return s.licenseState.name=i,cf(s.onEdit())}),au();}if(t&2){let e=LT();yg("error",!e.licenseState.name),Qm$1("value",e.licenseState.name);}}function kl(t,l){t&1&&Zm$1(0,"span",27);}function Ol(t,l){if(t&1){let e=ST();ls$1(0,"span",31),ig("click",function(i){af(e);let s=LT(2);return cf(s.openDescriptionModal(i))}),mC(1,"Read more"),au();}}
8function El(t,l){if(t&1){let e=ST();ls$1(0,"div",29),ig("click",function(){af(e);let i=LT();return cf(i.descriptionEdit())}),mC(1),Om$1(2,kl,1,0,"span",26)(3,Ol,2,0,"span",30),au();}if(t&2){let e=LT();yg("pointer",e.licenseState.status==="DRAFT"),VD(),fu(" ",e.descriptionText()?e.descriptionText():"Description..."," "),VD(),Qm$1("ngIf",!e.descriptionText()),VD(),Qm$1("ngIf",e.licenseState.description.length>120);}}function Ll(t,l){if(t&1){let e=ST();ls$1(0,"cye-textarea",32,8),ig("clickOutside",function(){af(e);let i=LT();return cf(i.descriptionEditState.set(false))})("inputModelChange",function(i){af(e);let s=LT();return s.licenseState.description=i,cf(s.descriptionEditEvent(i))}),au();}if(t&2){let e=LT();yg("error",!e.descriptionText()),Qm$1("maxlength",1024)("value",e.licenseState.description)("inputStyle",AC(5,gl,e.descriptionText()?"transparent":"rgba(255, 0, 0, 0.1)"));}}function Il(t,l){if(t&1&&(ls$1(0,"span",33),mC(1),VC(2,"lowercase"),VC(3,"capitalizeEvery"),au()),t&2){let e=LT();yg("warning-border",e.licenseState.status==="DEPRECATED"),VD(),fu(" ",BC(3,5,BC(2,3,e.licenseState.status))," ");}}function Dl(t,l){if(t&1){let e=ST();ls$1(0,"cye-drop-down",34),ig("clickOutside",function(){af(e);let i=LT();return cf(i.dropdownStatusEditState.set(false))})("onselect",function(i){af(e);let s=LT();return cf(s.dropdownSelectStatus(i))}),au();}if(t&2){let e=LT();rC(NC(6,fl)),Qm$1("headerStyle",NC(7,hl))("items",e.statusList())("selectedItem",e.statusList()[0])("headerInputStyle",e.licenseState.duration==="duration"?NC(8,Cl):NC(9,_l));}}function Al(t,l){if(t&1&&(ls$1(0,"div",35)(1,"h4"),mC(2),au()()),t&2){let e=LT();VD(2),Mg(e.licenseState.name);}}function Vl(t,l){if(t&1&&Zm$1(0,"tooltip-container-content-of-license",36),t&2){let e=LT();Qm$1("content",e.content())("ContentList",e.ContentList);}}var za=(()=>{class t extends Z{get haveMandatoryError(){return !this.descriptionText()||!this.licenseState?.name}constructor(e,n,i){super(),this.modalService=e,this.licenseStoreService=n,this.licenseActionsService=i,this.remove=new Xe,this.save=new Xe,this.mouseevent=new Xe(false),this.editedState=new Xe(false),this.duplicate=new Xe,this.errorModal=new Xe,this.edited=false,this.descriptionEditState=Ze(false),this.nameEditState=Ze(false),this.dropdownStatusEditState=Ze(false),this.statusList=Ze([]),this.componentList=[],this.descriptionText=Ze(""),this.content=Ze([]),this.ContentList=T$1;}ngOnInit(){this.license.status===z.DRAFT?this.statusList.set([{label:"Draft",value:z.DRAFT},{label:"Active",value:z.ACTIVE}]):this.license.status===z.ACTIVE&&this.statusList.set([{label:"Active",value:z.ACTIVE},{label:"Deprecated",value:z.DEPRECATED}]),this.licenseState=JSON.parse(JSON.stringify(this.license)),this.license.new&&(this.edited=true),this.contentList(),this.descriptionEditEvent(),this.licenseStoreService.getErrorMessage().pipe(Dd$1(this.destroy$),rd$1(e=>{this.edited=e.setToEditState,this.editedState.next(e.setToEditState);})).subscribe();}ngAfterViewInit(){this.editElement.changes.pipe(fd$1(0),Dd$1(this.destroy$)).subscribe(e=>e.first?.focus());}onmousedown(){this.mouseevent.emit(true);}onmouseup(){this.mouseevent.emit(false);}onRemove(){if(!this.licenseState.new){this.licenseActionsService.openDeleteLicensePackageModal(this.license?.id||"");return}this.remove.emit(this.index);}onSave(){if(this.haveMandatoryError){this.enterEditModeOnMandatoryError();return}this.licenseActionsService.saveLicense(this.licenseState,this.index,this.content()),this.edited=false,this.editedState.emit(false);}enterEditModeOnMandatoryError(){this.descriptionEditState.set(!this.descriptionText()),this.nameEditState.set(!this.licenseState?.name);}onEdit(){if(JSON.stringify(this.license)!==JSON.stringify(this.licenseState)){this.edited=true,this.editedState.emit(true);return}this.edited=false,this.editedState.emit(false);}durationOnChange(e){this.licenseState.duration=e,this.onEdit();}checkListEdit(e){this.licenseState.components=[...e],this.contentList(),this.onEdit();}nameEdit(){this.licenseState.status===z.DRAFT&&this.nameEditState.set(true);}descriptionEdit(){this.licenseState.status===z.DRAFT&&this.descriptionEditState.set(true);}descriptionEditEvent(e=""){if(e&&this.onEdit(),this.licenseState.description.length>120){this.descriptionText.set(`${this.licenseState.description.substring(0,120)}...`);return}this.descriptionText.set(this.licenseState.description);}openDescriptionModal(e){e.stopPropagation(),this.modalService.alert("Description",this.licenseState.description);}dropdownStatusEdit(){(this.license.status===z.DRAFT||this.license.status===z.ACTIVE)&&this.dropdownStatusEditState.set(true);}dropdownSelectStatus(e){this.licenseState.status=e,this.onEdit();}onDuplicate(){this.duplicate.emit(this.licenseState);}checkIfContains(e){return !(this.content().some(n=>n===e.value)||e?.default)}contentList(){let e=this.licenseStoreService.getLicenseComponentsListValue();this.content.set([...new Set(this.licenseState.components?.map(n=>e.find(i=>i.id===n.id)?.views||[]))].flat());}static{this.\u0275fac=function(n){return new(n||t)(fo$1(uo$1),fo$1(at),fo$1(ft))};}static{this.\u0275cmp=gw({type:t,selectors:[["licenses-card"]],viewQuery:function(n,i){if
8(n&1&&lg(Xr,5)(Xr,5)(ml,5),n&2){let s;BT(s=$T())&&(i.templateSave=s.first),BT(s=$T())&&(i.deleteModal=s.first),BT(s=$T())&&(i.editElement=s);}},hostVars:2,hostBindings:function(n,i){n&2&&yg("changed",i.edited);},inputs:{license:"license",index:"index"},outputs:{remove:"remove",save:"save",mouseevent:"mouseevent",editedState:"editedState",duplicate:"duplicate",errorModal:"errorModal"},standalone:false,features:[Rm$1],decls:39,vars:23,consts:[["name",""],["editName",""],["description",""],["editDescription",""],["status",""],["editStatus",""],["tooltip",""],["contentList",""],["editElement",""],["icon","drag-handle",1,"drag-handle",3,"mousedown","mouseup"],[1,"side-functions","pointer"],["tooltip","Save","placement","bottom","class","save-button","icon","save",3,"click",4,"ngIf"],["tooltip","Delete","placement","bottom","class","remove-button","icon","trash",3,"click",4,"ngIf"],["tooltip","Duplicate","placement","bottom","icon","duplicate",1,"save-button",3,"click"],[1,"content"],[4,"ngIf","ngIfThen","ngIfElse"],["type","duration",3,"edited","editMode","value"],[1,"span-status",3,"click"],["icon","info","placement","bottom","content-type","template",1,"content-tooltip",3,"tooltip"],[1,"form-column-header"],[1,"grayedText"],[3,"edited","editmode","formList"],["class","grayedText",4,"ngIf"],["tooltip","Save","placement","bottom","icon","save",1,"save-button",3,"click"],["tooltip","Delete","placement","bottom","icon","trash",1,"remove-button",3,"click"],["placement","bottom","content-type","template",1,"licenses",3,"click","canShowTooltip","tooltip"],["class","mandatory",4,"ngIf"],[1,"mandatory"],["placeholder","New package name...",1,"licenses-input",3,"clickOutside","valueChanged","value"],[1,"description-text",3,"click"],["class","read-more-description-link",3,"click",4,"ngIf"],[1,"read-more-description-link",3,"click"],["placeholder","Description...",1,"description-text",3,"clickOutside","inputModelChange","maxlength","value","inputStyle"],[1,"hidden-drop-down"],["placeholder","",3,"clickOutside","onselect","headerStyle","items","selectedItem","headerInputStyle"],[1,"tooltip-container"],[3,"content","ContentList"]],template:function(n,i){if(n&1&&(ls$1(0,"cye-icon",9),ig("mousedown",function(){return i.onmousedown()})("mouseup",function(){return i.onmouseup()}),au(),ls$1(1,"div",10),Om$1(2,yl,1,0,"cye-icon",11)(3,vl,1,0,"cye-icon",12),ls$1(4,"cye-icon",13),ig("click",function(){return i.onDuplicate()}),au()(),ls$1(5,"div",14),Om$1(6,xl,1,0,"ng-container",15)(7,Sl,1,0,"ng-container",15),ls$1(8,"licenses-card-drop-down-line",16),ig("edited",function(u){return i.durationOnChange(u)}),au(),ls$1(9,"div",17),ig("click",function(){return i.dropdownStatusEdit()}),ls$1(10,"span"),mC(11,"Status: \xA0"),au(),Om$1(12,$l,1,0,"ng-container",15),Zm$1(13,"cye-icon",18),au(),ls$1(14,"div",19)(15,"p",20),mC(16,"Selection"),au(),ls$1(17,"p",20),mC(18,"Quantity"),au()()(),ls$1(19,"component-list-form",21),ig("edited",function(u){return i.checkListEdit(u)}),au(),ls$1(20,"footer"),Om$1(21,Ml,3,3,"p",22)(22,bl,3,3,"p",22),au(),Om$1(23,Pl,3,6,"ng-template",null,0,GC)(25,Tl,2,3,"ng-template",null,1,GC)(27,El,4,5,"ng-template",null,2,GC)(29,Ll,2,7,"ng-template",null,3,GC)(31,Il,4,7,"ng-template",null,4,GC)(33,Dl,1,10,"ng-template",null,5,GC)(35,Al,3,1,"ng-template",null,6,GC)(37,Vl,1,2,"ng-template",null,7,GC)),n&2){let s=qT(24),u=qT(26),D=qT(28),Me=qT(30),Ye=qT(32),st=qT(34),qt=qT(38),ji=i.descriptionEditState(),Gi=i.nameEditState(),Hi=i.dropdownStatusEditState();VD(2),Qm$1("ngIf",i.edited&&!i.license.default),VD(),Qm$1("ngIf",i.license.status==="DRAFT"),VD(3),Qm$1("ngIf",Gi)("ngIfThen",u)("ngIfElse",s),VD(),Qm$1("ngIf",ji)("ngIfThen",Me)("ngIfElse",D),VD(),yg("poiter",i.licenseState.status==="DRAFT"),Qm$1("editMode",i.licenseState.status==="DRAFT")("value",+i.license.duration),VD(),yg("pointer",i.licenseState.status==="DRAFT"||i.licenseState.status==="ACTIVE"),VD(3),Qm$1("ngIf",Hi&&!i.license.default)("ngIfThen",st)("ngIfElse",Ye),VD(),Qm$1("tooltip",qt),VD(6),Qm$1("editmode",i.licenseState.status==="DRAFT")("formList",i.licenseState.components||NC(22,ul)),VD(2),Qm$1("ngIf",i.license.created_time),VD(),Qm$1("ngIf",i.license.modified_time&&!i.license.default);}},dependencies:[pe,ne$1,pn,ut,zs$1,Ee$2,fe,Ga,Ba,qa,Je$1,Sn$1,Ln$1],styles:['[_nghost-%COMP%]{width:305px;min-width:305px;margin:0 5px;border:1px solid var(--hyver-tertiary);border-radius:10px;position:relative}.changed[_nghost-%COMP%]{border:1px dashed var(--hyver-tertiary)}[_nghost-%COMP%] .side-functions[_ngcontent-%COMP%]{position:absolute;right:0;margin:11px 15px 0 0}[_nghost-%COMP%] .side-functions[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{margin-left:14px;filter:brightness(30%)}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .content-tooltip[_ngcontent-%COMP%]{position:absolute;margin-top:6px;right:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .span-status[_ngcontent-%COMP%]{display:flex;height:28px}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .span-status[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;font:var(--font-12);font-weight:400;line-height:12px}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .span-status[_ngcontent-%COMP%] .warning-border[_ngcontent-%COMP%]{border:1px solid var(--note-500);border-radius:6px;padding:0 7px;background-color:#fffbd6}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .span-status[_ngcontent-%COMP%] .hidden-drop-down[_ngcontent-%COMP%]{font-weight:500}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .span-status[_ngcontent-%COMP%] .dropdown-container[_ngcontent-%COMP%] cye-drop-down[_ngcontent-%COMP%]{position:relative;bottom:2px}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .description-text[_ngcontent-%COMP%]{height:50px;overflow:auto;font:var(--font-12);font-weight:400;line-height:12px;color:var(--bg-action-bar);overflow:hidden;margin-bottom:2px;display:block}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .description-text[_ngcontent-%COMP%] .read-more-description-link[_ngcontent-%COMP%]{color:var(--info-600);text-decoration-line:underline;cursor:pointer}[_nghost-%COMP%] .content[_ngcontent-%COMP%] .form-column-header[_ngcontent-%COMP%]{margin-top:11px;line-height:0}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{margin:auto 22px}[_nghost-%COMP%] .content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{padding:0;display:inline;margin-right:43px}[_nghost-%COMP%] .drag-handle[_ngcontent-%COMP%]{position:absolute;
8left:50%;transform:translate(-50%);cursor:grab;margin-top:5px;display:flex;justify-content:center}[_nghost-%COMP%] .drag-handle[_ngcontent-%COMP%]:active{cursor:grabbing}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin-top:18px;font:var(--font-12);font-weight:400;line-height:12px}[_nghost-%COMP%] .licenses-input[_ngcontent-%COMP%]{margin-top:32px;width:100%;margin-bottom:12px}[_nghost-%COMP%] .licenses[_ngcontent-%COMP%]{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:38px;font:var(--font-18);height:calc(1em + 2px);min-width:100px;font-weight:400;line-height:calc(1em + 2px)}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%;margin-bottom:10px}[_nghost-%COMP%] footer[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:center;margin:0;padding:0}[_nghost-%COMP%] .grayedText[_ngcontent-%COMP%]{font-size:11px;font-weight:400;color:var(--text-color-disabled)}[_nghost-%COMP%] .mandatory[_ngcontent-%COMP%]:after{display:inline-block;color:var(--text-color-error);content:"*";line-height:100%;vertical-align:text-top}[_nghost-%COMP%] .mandatory[_ngcontent-%COMP%]{display:inline-block}.tooltip-container[_ngcontent-%COMP%]{margin:10px}']});}}return t})();var Fl=()=>({"font-size":"14px","line-height":"23px"}),Nl=()=>({});function Rl(t,l){if(t&1&&(ls$1(0,"p",11),mC(1),VC(2,"lowercase"),VC(3,"capitalizeFirst"),au()),t&2){let e=l.$implicit,n=LT();Qm$1("ngStyle",n.context.data.content.length>6?NC(6,Fl):NC(7,Nl)),VD(),fu(" ",BC(3,4,BC(2,2,e))," ");}}function Bl(t,l){if(t&1&&(uu(0),ls$1(1,"div",12)(2,"p"),mC(3),au(),ls$1(4,"p"),mC(5),au()(),xs$1()),t&2){let e=l.$implicit;VD(3),Mg(e.name),VD(2),Mg(e.amount==="UNLIMITED"?"Unlimited":e.quantity);}}var Qa=(()=>{class t{constructor(e,n){this.licenseActionService=e,this.cyeActiveModalView=n;}ngOnInit(){this.context.data.licenseState.components&&this.context.data.licenseState.components.map(e=>{typeof e.quantity!="string"&&(e.quantity%12?e.quantity=e.quantity===1?"1 month":e.quantity+" months":e.quantity=e.quantity/12===1?"1 year":e.quantity/12+" years");}),this.context.data.content=["Findings","Engagement",...this.context.data.content.map(e=>e.replace(/_/g," "))],this.monthsToText(this.context.data.licenseState.duration);}monthsToText(e){let n=Math.floor(e/12),i=e%12,s=n===1?" 1 Year ":n+" Years ",u=i===1?" 1 Month ":i+" Months ",D=n&&i?"and ":"";this.textDuration=n?s+D+u:u;}
8onCancel(){this.cyeActiveModalView.dismiss(this.context?.id||"","canceled");}onApprove(){this.context.data.loadingActivationObserver$.pipe(Ed$1(()=>this.context.data.newLicenseId$.pipe(rd$1(e=>this.licenseActionService.activateLicensePackage(this.context.data.licenseState.id||e)))),Ht$1(1),rd$1(()=>this.cyeActiveModalView.close(this.context?.id||""))).subscribe();}static{this.\u0275fac=function(n){return new(n||t)(fo$1(ft),fo$1(d$2))};}static{this.\u0275cmp=gw({type:t,selectors:[["activate-modal"]],inputs:{context:"context"},standalone:false,decls:41,vars:13,consts:[[1,"modal-container-created-success"],[1,"package-info"],[1,"package-info-content"],[1,"header"],[1,"content"],["class","content-list","style","margin-right: 5px",3,"ngStyle",4,"ngFor","ngForOf"],[1,"component-table","table-header"],["overflowsShadow","",1,"scrollable","table-container"],[4,"ngFor","ngForOf"],[1,"secondary",3,"click"],[3,"click","loading"],[1,"content-list",2,"margin-right","5px",3,"ngStyle"],[1,"component-table"]],template:function(n,i){n&1&&(ls$1(0,"div",0)(1,"div",1)(2,"p"),mC(3,"Package name"),au(),ls$1(4,"p"),mC(5),au()(),ls$1(6,"div",1)(7,"p"),mC(8,"Description"),au(),ls$1(9,"p"),mC(10),au()(),ls$1(11,"div",1)(12,"p"),mC(13,"Package duration"),au(),ls$1(14,"p"),mC(15),au()(),ls$1(16,"div",1)(17,"p"),mC(18,"Status"),au(),ls$1(19,"p"),mC(20),VC(21,"lowercase"),VC(22,"capitalizeFirst"),au()(),ls$1(23,"div",2)(24,"p",3),mC(25,"Content"),au(),ls$1(26,"div",4),Om$1(27,Rl,4,8,"p",5),au()(),ls$1(28,"div",6)(29,"p"),mC(30,"Component name"),au(),ls$1(31,"p"),mC(32,"Quantity"),au()(),ls$1(33,"div",7),Om$1(34,Bl,6,2,"ng-container",8),au()(),ls$1(35,"footer")(36,"cye-button",9),ig("click",function(){return i.onCancel()}),mC(37,"Cancel"),au(),ls$1(38,"cye-button",10),VC(39,"async"),ig("click",function(){return i.onApprove()}),mC(40,"Approve"),au()()),n&2&&(VD(5),Mg(i.context.data.licenseState.name),VD(5),Mg(i.context.data.licenseState.description),VD(5),Mg(i.textDuration),VD(5),Mg(BC(22,9,BC(21,7,i.context.data.licenseState.status))),VD(7),Qm$1("ngForOf",i.context.data.content),VD(7),Qm$1("ngForOf",i.context.data.licenseState.components),VD(4),Qm$1("loading",!!BC(39,11,i.context.data.loadingActivationObserver$)));},dependencies:[Le$3,Tt$1,yn,rt,p$2,An,Sn$1],styles:['.modal-container-created-success[_ngcontent-%COMP%]{width:1020px;margin:30px 70px}.modal-container-created-success[_ngcontent-%COMP%] .scrollable[_ngcontent-%COMP%]{max-height:calc(100vh - 700px);overflow:overlay}.modal-container-created-success[_ngcontent-%COMP%] .table-container[_ngcontent-%COMP%]{min-height:100px}.modal-container-created-success[_ngcontent-%COMP%] .inner-shadow-top[_ngcontent-%COMP%]{box-shadow:inset 0 -8px 10px -6px #000}.modal-container-created-success[_ngcontent-%COMP%] .sub-header[_ngcontent-%COMP%]{font-style:italic;font-weight:300;font:var(--font-18);line-height:100%}.modal-container-created-success[_ngcontent-%COMP%] .package-info-content[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-150);font-weight:400;display:flex}.modal-container-created-success[_ngcontent-%COMP%] .package-info-content[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:500;width:180px}.modal-container-created-success[_ngcontent-%COMP%] .package-info-content[_ngcontent-%COMP%] .content-list[_ngcontent-%COMP%]:not(:last-child):after{content:","}.modal-container-created-success[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%]{border-bottom:1px solid var(--primary-150);display:flex;justify-content:flex-start;font-weight:400}.modal-container-created-success[_ngcontent-%COMP%] .package-info[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:first-child{font-weight:500;width:180px}.modal-container-created-success[_ngcontent-%COMP%] .table-header[_ngcontent-%COMP%]{margin:20px 0;font-weight:500}.modal-container-created-success[_ngcontent-%COMP%] .component-table[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-right:20px}.modal-container-created-success[_ngcontent-%COMP%] .component-table[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--font-14);line-height:0px}.content-list[_ngcontent-%COMP%]{display:flex}.content[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:3px 0;padding:0}footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}footer[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:10px}']});}}return t})();var Wa=(()=>{class t{constructor(e){this.cyeActiveModalView=e;}onDelete(){this.cyeActiveModalView.close(this.context?.id||"","deleted");}
8onCancel(){this.cyeActiveModalView.dismiss(this.context?.id||"");}static{this.\u0275fac=function(n){return new(n||t)(fo$1(d$2))};}static{this.\u0275cmp=gw({type:t,selectors:[["delete-modal"]],inputs:{context:"context"},standalone:false,decls:10,vars:0,consts:[[2,"margin","0px 30px"],[1,"secondary",3,"click"],[3,"click"]],template:function(n,i){n&1&&(ls$1(0,"div",0)(1,"p"),mC(2,"This action is irreversible."),au(),ls$1(3,"p"),mC(4,"Are you sure you want to delete this package? all data will be lost."),au()(),ls$1(5,"footer")(6,"cye-button",1),ig("click",function(){return i.onCancel()}),mC(7,"Cancel"),au(),ls$1(8,"cye-button",2),ig("click",function(){return i.onDelete()}),mC(9,"Delete"),au()());},dependencies:[rt],styles:["footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:20px}footer[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:10px}"],changeDetection:1});}}return t})();var Ul=["licensePackageList"],jl=["scrollProxy"],Gl=(t,l)=>l.id;function Hl(t,l){if(t&1){let e=ST();ls$1(0,"licenses-card",7),ig("duplicate",function(i){af(e);let s=LT();return cf(s.duplicate(i))})("editedState",function(i){af(e);let s=LT();return cf(s.editedState.emit(i))})("save",function(){let i=af(e).$implicit,s=LT();return cf(s.onSave(i))})("remove",function(i){af(e);let s=LT();return cf(s.onRemove(i))})("mouseevent",function(){af(e);let i=LT();return cf(i.mouseEventState=true)}),au();}if(t&2){let e=l.$implicit,n=l.$index,i=LT();Qm$1("cdkDragDisabled",!i.mouseEventState)("license",e)("index",n);}}var Ii=(()=>{class t{constructor(){this.licenseActionsService=T(ft),this.editedState=new Xe(false),this.showShadow=new Xe(false),this.mouseEventState=false,this.hideSideScrollBtn=true,this.hideSideScrollBtnLeft=true,this.cardWidth=315,this.syncingProxy=false;}onWindowScroll(){this.licensePackageList.nativeElement.scrollLeft>0?(this.showShadow.emit(true),this.hideSideScrollBtnLeft=false):(this.showShadow.emit(false),this.hideSideScrollBtnLeft=true),this.hideSideScrollBtn=this.licensePackageList.nativeElement.scrollLeft>this.licensePackageList.nativeElement.scrollWidth-1200;}ngOnChanges(e){e.scrollToStart?.currentValue&&(this.licensePackageList.nativeElement.scrollTo({left:0,behavior:"smooth"}),this.scrollToStart=false),e.licenses?.currentValue&&this.licenses.length>3&&setTimeout(()=>{this.hideSideScrollBtn=this.licensePackageList?.nativeElement?.scrollLeft>this.licensePackageList?.nativeElement?.scrollWidth-1200;},200);}duplicate(e){this.licenseActionsService.duplicateLicense(e),this.licensePackageList.nativeElement.scrollTo({left:0,behavior:"smooth"});}drop(e){di(this.licenses,e.previousIndex,e.currentIndex),this.mouseEventState=false;}onClickScrollBtnLeft(){this.hideSideScrollBtnLeft=true,this.hideSideScrollBtn=false,this.licensePackageList.nativeElement.scrollTo({left:(Math.round(this.licensePackageList?.nativeElement?.scrollLeft/this.cardWidth)-2)*this.cardWidth,behavior:"smooth"});}onClickScrollBtn(){this.hideSideScrollBtn=true,this.hideSideScrollBtnLeft=false,this.licensePackageList.nativeElement.scrollTo({left:(Math.round(this.licensePackageList?.nativeElement?.scrollLeft/this.cardWidth)+2)*this.cardWidth,behavior:"smooth"});}onScroll(){this.onWindowScroll();let e=this.scrollProxy?.nativeElement,n=this.licensePackageList.nativeElement;e&&e.scrollLeft!==n.scrollLeft&&(this.syncingProxy=true,e.scrollLeft=n.scrollLeft);}syncFromProxy(){if(this.syncingProxy){this.syncingProxy=false;return}this.licensePackageList.nativeElement.scrollLeft=this.scrollProxy.nativeElement.scrollLeft;}onSave(e){e.new=false;}onRemove(e){this.licenseActionsService.removeLicenseByIndex(e);}hoverLeft(e,n){if(e&&this.mouseEventState){setTimeout(()=>{n==="left"?setTimeout(()=>this.licensePackageList.nativeElement.scrollTo({left:0,behavior:"smooth"}),100):this.licensePackageList.nativeElement.scrollTo({left:this.licensePackageList.nativeElement.scrollWidth,behavior:"smooth"});},1e3);return}clearTimeout(this.timeout);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["licenses-card-list"]],viewQuery:function(n,i){if
8(n&1&&lg(Ul,5)(jl,5),n&2){let s;BT(s=$T())&&(i.licensePackageList=s.first),BT(s=$T())&&(i.scrollProxy=s.first);}},hostBindings:function(n,i){n&1&&ig("wheel",function(){return i.onWindowScroll()});},inputs:{licenses:"licenses",scrollToStart:"scrollToStart"},outputs:{editedState:"editedState",showShadow:"showShadow"},standalone:false,features:[AI],decls:9,vars:6,consts:[["licensePackageList",""],["scrollProxy",""],["cdkDropList","","cdkDropListOrientation","horizontal","id","container",1,"example-list","scrollable","allways","sticky",3,"cdkDropListDropped","scroll"],["cdkDrag","",1,"example-box",3,"cdkDragDisabled","license","index"],[1,"h-scroll-proxy","scrollable","allways",3,"scroll"],["icon","right-pane",1,"scroll-btn",3,"mouseover","mouseout","click"],["icon","right-pane",1,"scroll-btn-left",3,"mouseover","mouseout","click"],["cdkDrag","",1,"example-box",3,"duplicate","editedState","save","remove","mouseevent","cdkDragDisabled","license","index"]],template:function(n,i){n&1&&(ls$1(0,"div",2,0),ig("cdkDropListDropped",function(u){return i.drop(u)})("scroll",function(){return i.onScroll()}),bT(2,Hl,1,3,"licenses-card",3,Gl),au(),ls$1(4,"div",4,1),ig("scroll",function(){return i.syncFromProxy()}),Zm$1(6,"div"),au(),ls$1(7,"cye-icon",5),ig("mouseover",function(){return i.hoverLeft(true,"right")})("mouseout",function(){return i.hoverLeft(false,"right")})("click",function(){return i.onClickScrollBtn()}),au(),ls$1(8,"cye-icon",6),ig("mouseover",function(){return i.hoverLeft(true,"left")})("mouseout",function(){return i.hoverLeft(false,"left")})("click",function(){return i.onClickScrollBtnLeft()}),au()),n&2&&(VD(2),wT(i.licenses),VD(4),gg("width",i.licenses.length*i.cardWidth,"px"),VD(),yg("hide",i.licenses.length<3||i.hideSideScrollBtn),VD(),yg("hide",i.hideSideScrollBtnLeft));},styles:[".scroll-btn[_ngcontent-%COMP%]{transition:.2s;opacity:1;position:absolute;right:0;top:45%}.scroll-btn-left[_ngcontent-%COMP%]{transition:.2s;opacity:1;position:absolute;left:620px;top:45%;z-index:2;transform:rotate(180deg)}.hide[_ngcontent-%COMP%]{opacity:0;z-index:0}.example-list[_ngcontent-%COMP%]{width:100%;min-height:60px;display:flex;background:#fff;border-radius:4px;overflow-x:auto;scrollbar-width:none}.example-list[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.h-scroll-proxy[_ngcontent-%COMP%]{position:sticky;bottom:0;height:15px;overflow:auto hidden}.h-scroll-proxy[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{height:1px}.example-box[_ngcontent-%COMP%]{box-sizing:border-box;background:#fff;font:var(--font-14);flex-grow:1;flex-basis:0}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:10px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0;cursor:grabbing}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.example-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .example-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:1});}}return t})();var Xt="license",Ka=(()=>{class t{constructor(e){this.restApiService=e;}getLicensePackages(){return this.restApiService.get(`${Xt}/packages`)}getLicenseComponents(){return this.restApiService.get(`${Xt}/components`)}createLicensePackage(e){return this.restApiService.post(`${Xt}/package`,E({},e))}updateLicensePackage(e,n){return this.restApiService.put(`${Xt}/package/${e}`,E({},n))}deleteLicansePackage(e){return this.restApiService.delete(`${Xt}/package/${e}`)}activateLicensePackage(e){return this.restApiService.put(`${Xt}/package/${e}/activate`,{})}deprecateLicensePackage(e){return this.restApiService.put(`${Xt}/package/${e}/deprecate`,{})}static{this.\u0275fac=function(n){return new(n||t)(ce(d$1))};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var ft=(()=>{class t{constructor(e,n,i,s){this.licenseStoreService=e,this.licenseApiService=n,this.modalService=i,this.cyeModalService=s;}getLicensePackages(){this.licenseStoreService.setLoadingLicensePackages(true),this.licenseApiService.getLicensePackages().pipe(rd$1(e=>{let n=e.filter(u=>u.default).sort((u,D)=>u.name<D.name?-1:u.name>D.name?1:0),i=e.filter(u=>!u.default&&u.status!==z.DEPRECATED).sort((u,D)=>new Date(D.modified_time).getTime()-new Date(u.modified_time).getTime()),s=e.filter(u=>u.status===z.DEPRECATED).sort((u,D)=>new Date(D.modified_time).getTime()-new Date(u.modified_time).getTime());this.licenseStoreService.setLicensePackageList([...n,...i,...s]);}),Ys$1(e=>(this.modalService.alert("Faild to get llicense packages",Ht(e.error)),Oe$1)),nd$1(()=>this.licenseStoreService.setLoadingLicensePackages(false))).subscribe();}getLicenseComponents(){this.licenseApiService.getLicenseComponents().pipe(rd$1(e=>{let n={BASIC:1,INTERMEDIATE:2,PREMIUM:3};this.licenseStoreService.setLicenseComponentsList(e.sort((i,s)=>i.name<s.name?-1:i.name>s.name?1:0).sort((i,s)=>n[i.category]-n[s.category]));}),Ys$1(e=>(this.modalService.alert("Faild to get licnese components",Ht(e.error)),Oe$1))).subscribe();}deprecateLicensePackage(e){this.licenseApiService.deprecateLicensePackage(e).pi
8pe(Ys$1(n=>(this.modalService.alert("Faild to deprecate license package",Ht(n.error)),Oe$1))).subscribe();}activateLicensePackage(e=this.licenseStoreService.getIncomingIDValue()){this.licenseStoreService.setLoadingActivateLicensePackage(true),this.licenseApiService.activateLicensePackage(e).pipe(nd$1(()=>this.licenseStoreService.setLoadingActivateLicensePackage(false)),Ys$1(n=>(this.modalService.alert("Faild to activate licnese package",Ht(n.error)),Oe$1))).subscribe();}updateLicensePackage(e,n){this.licenseStoreService.setIncomingID(e);let i=n.components?.map(s=>E({id:s.id},s.amount!=="UNLIMITED"&&s.amount!=="Unlimited"&&s.quantity!=="Unlimited"&&{quantity:s.amount?s.amount:s.quantity}));this.licenseApiService.updateLicensePackage(e,{license_components:i}).pipe(Ys$1(s=>(this.modalService.alert("Failed to update license package",Ht(s.error)),this.licenseStoreService.setErrorMessage({errorName:Object.keys(s.error)[0],setToEditState:true}),Oe$1))).subscribe();}openDeleteLicensePackageModal(e){this.cyeModalService.openWithHeader(Wa,{title:"Delete package",icon:"warning-icon",size:l.CUSTOM}).modalRef.result().pipe(Ht$1(1),rd$1(()=>this.deleteLicansePackage(e))).subscribe();}deleteLicansePackage(e){let n=this.licenseStoreService.getLicensePackageListValue(),i=[...n],s=n.findIndex(u=>u.id===e);s!==-1&&i.splice(s,1),this.licenseApiService.deleteLicansePackage(e).pipe(rd$1(()=>this.licenseStoreService.setLicensePackageList(i)),rd$1(()=>this.modalService.openToast("License package deleted successfully","success")),Ys$1(u=>(this.modalService.alert("Faild to delete license package",Ht(u.error)),this.licenseStoreService.setErrorMessage({errorName:Object.keys(u.error)[0],setToEditState:false}),Oe$1))).subscribe();}createLicensePackage(e,n){let i=e.components?.map(s=>E({id:s?.id},s.amount&&s.amount!=="UNLIMITED"&&s.amount!=="Unlimited"&&s.quantity!=="Unlimited"&&{quantity:s?.amount?s?.amount:s?.quantity}));this.licenseApiService.createLicensePackage(Object.assign(e,{license_components:i})).pipe(rd$1(s=>{let u=this.licenseStoreService.getLicensePackageListValue();u.splice(n,1,e),u[n]=F$1(E({},s),{status:e.status,new:false}),this.licenseStoreService.setIncomingID(s.id),this.licenseStoreService.setLicensePackageList(u);}),Ys$1(s=>(this.modalService.alert("Failed to create license package",Ht(s.error)),Object.keys(s.error)[0]==="name"&&this.licenseStoreService.setErrorMessage({errorName:"name",setToEditState:true}),Oe$1))).subscribe();}addNewLicense(){let e=JSON.parse(JSON.stringify(Va));e.new=true,this.licenseStoreService.setLicensePackageList([e,...this.licenseStoreService.getLicensePackageListValue()]);}duplicateLicense(e){e=F$1(E({},e),{id:"",default:false,new:true,status:z.DRAFT,name:"CLONE - "+e.name.substring(0,90),description:"CLONE - "+e.description.substring(0,990)});let n=JSON.parse(JSON.stringify(e));this.licenseStoreService.setLicensePackageList([n,...this.licenseStoreService.getLicensePackageListValue()]);}removeLicenseByIndex(e){let n=this.licenseStoreService.getLicensePackageListValue();n.splice(e,1),this.licenseStoreService.setLicensePackageList(n);}saveLicense(e,n,i){let s=this.licenseStoreService.getLicensePackageListValue(),u=s[n];if(e.new?this.createLicensePackage(e,n):u.status!==z.ACTIVE&&this.updateLicensePackage(u.id,e),e.status===z.ACTIVE){if(e.name&&e.description&&e.duration&&e.components?.length){let D=this.cyeModalService.openWithHeader(Qa,{title:"Review your package",message:"",confirmButtonName:"Activate",icon:"check",size:l.CUSTOM,context:{data:{licenseState:e,newLicenseId$:this.licenseStoreService.getIncomingID(),content:i,loadingActivationObserver$:this.licenseStoreService.getLoadingActivateLicensePackages()}}});D.modalRef.result().pipe(Ht$1(1),rd$1(()=>this.modalService.openToast("Package activated successfully","success",3e3))).subscribe(),D.modalRef.cancel().pipe(Ht$1(1),rd$1(()=>e.status=z.DRAFT)).subscribe();return}e.status=z.DRAFT;return}e.status===z.DEPRECATED&&this.deprecateLicensePackage(e.id),s[n]=JSON.parse(JSON.stringify(e)),this.licenseStoreService.setLicensePackageList(s);}changeStatusById(e,n){let i=this.licenseStoreService.getLicensePackageListV
8alue();i[e].status=n,this.licenseStoreService.setLicensePackageList(JSON.parse(JSON.stringify(i)));}static{this.\u0275fac=function(n){return new(n||t)(ce(at),ce(Ka),ce(uo$1),ce(Ot))};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Ql=()=>({opacity:.3}),Wl=()=>({});function Kl(t,l){if(t&1&&(ls$1(0,"div",6),Zm$1(1,"i",7),ls$1(2,"span"),mC(3),au()()),t&2){let e=l.$implicit,n=LT(2).$implicit,i=LT();Qm$1("ngStyle",i.checkIfContains(n,e)?NC(4,Ql):NC(5,Wl)),VD(),iC("icon "+e?.icon),VD(2),Mg(e.name);}}function Yl(t,l){if(t&1&&(ls$1(0,"div",4)(1,"h3"),mC(2,"Default content"),au(),Om$1(3,Kl,4,6,"div",5),au()),t&2){let e=LT(2);VD(3),Qm$1("ngForOf",e.contentList);}}function Zl(t,l){if(t&1&&(ls$1(0,"components-item",3),Om$1(1,Yl,4,1,"ng-template",null,0,GC),au()),t&2){let e=l.$implicit,n=qT(2);Qm$1("tooltip",n)("offset",-6)("name",e.name)("type",e.category);}}var Ya=(()=>{class t{constructor(e){this.licenseStoreService=e,this.componentsArray$=this.licenseStoreService.getLicenseComponentsList().pipe(ne(n=>n.sort((i,s)=>i.category.localeCompare(s.category)))),this.contentList=I$3;}checkIfContains(e,n){return !(e.views?.some(i=>i===n.value)||n?.default)}static{this.\u0275fac=function(n){return new(n||t)(fo$1(at))};}static{this.\u0275cmp=gw({type:t,selectors:[["components-list"]],standalone:false,decls:4,vars:3,consts:[["tooltip",""],[1,"header"],["placement","bottom","content-type","template","class","component-item",3,"tooltip","offset","name","type",4,"ngFor","ngForOf"],["placement","bottom","content-type","template",1,"component-item",3,"tooltip","offset","name","type"],[1,"tooltip-container"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[2,"font-size","18px","vertical-align","sub","margin-right","6px"]],template:function(n,i){n&1&&(ls$1(0,"div",1),mC(1,"Components"),au(),Om$1(2,Zl,3,4,"components-item",2),VC(3,"async")),n&2&&(VD(2),Qm$1("ngForOf",BC(3,1,i.componentsArray$)));},dependencies:[ne$1,Tt$1,yn,Aa,An],styles:["[_nghost-%COMP%] .header[_ngcontent-%COMP%]{font:var(--font-20);font-style:normal;font-weight:400;line-height:20px;letter-spacing:0em;text-align:left;margin-top:141px;margin-bottom:20px}[_nghost-%COMP%] components-item[_ngcontent-%COMP%]:nth-child(2n){border-radius:7px 0 0 7px;background:#ebf0f180}.tooltip-container[_ngcontent-%COMP%]{margin:20px 30px}.tooltip-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-12);line-height:18px;margin-bottom:22px}.tooltip-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin-bottom:20px}.tooltip-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{width:16px;margin-right:20px}"],changeDetection:1});}}return t})();var ep=()=>({width:"180px"}),tp=()=>[],Za=(()=>{class t{constructor(e,n){this.licenseActionsService=e,this.licenseStoreService=n,this.editedState=false,this.licenses$=this.licenseStoreService.getLicensePackageList(),this.showScrollClass=false,this.loadingLicensePackages$=this.licenseStoreService.getLoadingLicensePackages();}showShadow(e){this.scrollToStart=false,this.showScrollClass=e;}addNewLicense(){this.licenseActionsService.addNewLicense(),this.scrollToStart=true;}canDeactivate(){return this.editedState}ngOnInit(){this.licenseActionsService.getLicensePackages(),this.licenseActionsService.getLicenseComponents();}static{this.\u0275fac=function(n){return new(n||t)(fo$1(ft),fo$1(at))};}static{this.\u0275cmp=gw({type:t,selectors:[["licenses"]],inputs:{editedState:"editedState"},standalone:false,decls:9,vars:12,consts:[[1,"static-left",3,"ngClass"],["icon","hyver-icon-plus",3,"click"],[2,"display","flex"],[3,"loading"],[3,"editedState","showShadow","scrollToStart","licenses"]],template:function(n,i){n&1&&(ls$1(0,"div",0)(1,"cye-button",1),ig("click",function(){return i.addNewLicense()}),mC(2,"Create new package "),au(),Zm$1(3,"div",2)(4,"components-list"),au(),Zm$1(5,"cye-page-loader",3),VC(6,"async"),ls$1(7,"licenses-card-list",4),VC(8,"async"),ig("editedState",function(u){return i.editedState=u})("showShadow",function(u){return i.showShadow(u)}
8),au()),n&2&&(Qm$1("ngClass",i.showScrollClass?"shadow-scroll":""),VD(),rC(NC(10,ep)),VD(4),Qm$1("loading",!!BC(6,6,i.loadingLicensePackages$)),VD(2),Qm$1("scrollToStart",i.scrollToStart)("licenses",BC(8,8,i.licenses$)||NC(11,tp)));},dependencies:[hn$1,rt,Re$1,Ya,Ii,An],styles:["[_nghost-%COMP%]{display:flex;width:100%;margin-top:25px;margin-left:35px}[_nghost-%COMP%] .static-left[_ngcontent-%COMP%]{min-width:380px;z-index:1}[_nghost-%COMP%] .shadow-scroll[_ngcontent-%COMP%]{box-shadow:5px 0 6px -6px #888}[_nghost-%COMP%] licenses-card-list[_ngcontent-%COMP%]{width:calc(100vw - 760px)}"],changeDetection:1});}}return t})();var Ja=(()=>{class t{constructor(){this.restApiService=T(d$1);}assignPackageToCompany(e,n){return this.restApiService.put(`license/company/${e}/assign`,n)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Di=(()=>{class t{constructor(){this._workingCompany=Ze(null),this._subscriptionType=Ze(""),this._searchValue=Ze(""),this._assignmentError=Ze(""),this.workingCompany=this._workingCompany.asReadonly(),this.searchValue=this._searchValue.asReadonly(),this.assignmentError=this._assignmentError.asReadonly(),this.isFormValid=kt(()=>!!this._subscriptionType()&&!!this._workingCompany()?.assignment_info?.length);}setWorkingCompany(e){this._workingCompany.set(e);}updateWorkingCompany(e){this._workingCompany.update(e);}setSubscriptionType(e){this._subscriptionType.set(e);}setSearchValue(e){this._searchValue.set(e);}setAssignmentError(e){this._assignmentError.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var np="License packages to assign has components that conflict with the existing assigned license packages",Co=(()=>{class t{constructor(){this.companiesApiService=T(Ja),this.storeService=T(Di),this.licenseStoreService=T(at),this.licenseActionsService=T(ft),this.modalService=T(uo$1),this.destroyRef=T(He$1),this.workingCompany=this.storeService.workingCompany,this.searchValue=this.storeService.searchValue,this.assignmentError=this.storeService.assignmentError,this.isFormValid=this.storeService.isFormValid,this.licensePackageList$=this.licenseStoreService.getLicensePackageList();}initDraft(e){this.storeService.setWorkingCompany(JSON.parse(JSON.stringify(e)));}loadLicensePackages(){this.licenseStoreService.getLicensePackageListValue().length||this.licenseActionsService.getLicensePackages();}setSubscriptionType(e){this.storeService.setSubscriptionType(e);}setSearchValue(e){this.storeService.setSearchValue(e);}selectLicense(e,n){this.storeService.updateWorkingCompany(i=>{if(!i)return i;let s=i.assignment_info??[];if(s.some(D=>D.license_package_id===e))return i;let u=this.licenseStoreService.getLicensePackageListValue().find(D=>D.id===e)?.name||"";return F$1(E({},i),{assignment_info:[...s,{license_package_id:e,license_package_quantity:n,license_package_name:u}]})});}changeQuantity(e,n){if(n){this.storeService.updateWorkingCompany(i=>i&&F$1(E({},i),{assignment_info:i.assignment_info.map(s=>s.license_package_id===e?F$1(E({},s),{license_package_quantity:n}):s)}));return}this.modalService.confirm("Remove package","Are you sure you want to remove this package from this company? ",()=>{this.storeService.updateWorkingCompany(i=>i&&F$1(E({},i),{assignment_info:i.assignment_info.filter(s=>s.license_package_id!==e)}));});}assignPackageToCompany(e,n,i){this.storeService.setAssignmentError(""),this.companiesApiService.assignPackageToCompany(e,n).pipe(q$1(this.destroyRef),rd$1(()=>{this.modalService.openToast("Company is successfully updated.","success",3),i();}),Ys$1(s=>(this.storeService.setAssignmentError(this.mapAssignmentError(s)),Oe$1))).subscribe();}mapAssignmentError(e){let n=e?.error?.non_field_errors?.[0];return n===np?"License packages has conflicts between the components":n}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var ip=["inputSelectLicense"],op=["tooltipTemplateLicensePackage"],rp=(t,l)=>l.license_package_id;function ap(t,l){if(t&1){let e=ST();ls$1(0,"compamies-license-edit",10),ig("changequantity",function(i){let s=af(e).$implicit,u=LT(2);return cf(u.changedQuantity(s.license_package_id,i))}),au();}if(t&2){let e=l.$implicit;Qm$1("license",e);}}function sp(t,l){if(t&1&&(ls$1(0,"div",7)(1,"div",8),mC(2,"Selected packages:"),au(),bT(3,ap,1,1,"compamies-license-edit",9,rp),au()),t&2){LT();let e=DC(0);VD(3),wT(e.assignment_info);}}function dp(t,l){if(t&1&&(ls$1(0,"div",11)(1,"h4"),mC(2,"Package description"),au(),ls$1(3,"div",12),mC(4),au()()),t&2){let e=l.$implicit;VD(4),Mg(e);}}var Xa=(()=>{class t{constructor(){this.companiesActionService=T(Co),this.destroyRef=T(He$1),this.company=u$.required(),this.saved=l$(),this.closed=l$(),this.workingCompany=this.companiesActionService.workingCompany,this.searchValue=this.companiesActionService.searchValue,this.errorAssignment=this.companiesActionService.assignmentError,this.isFormValid=this.companiesActionService.isFormValid,this.licenseList=Ze([]),this.subscriptionTypeList=this.getSubscriptionTypeList(),this.form=new P$2({license_package_id:new z$2("",[be$2.required]),company_
8subscription_type:new z$2("",[be$2.required])}),this.hasAssignedLicenses=kt(()=>!!this.workingCompany()?.assignment_info?.length),this.inputSelectLicense=f$("inputSelectLicense"),this.tooltipTemplateLicensePackage=f$.required("tooltipTemplateLicensePackage");}ngOnInit(){this.companiesActionService.initDraft(this.company()),this.form.reset(),this.setCompanySubType(),this.form.controls.company_subscription_type.setValue(this.companyCurrentsubType||""),this.companiesActionService.setSubscriptionType(this.companyCurrentsubType||""),this.companiesActionService.loadLicensePackages(),this.form.valueChanges.pipe(q$1(this.destroyRef),rd$1(()=>this.companiesActionService.setSubscriptionType(this.form.value.company_subscription_type||""))).subscribe(),this.companiesActionService.licensePackageList$.pipe(q$1(this.destroyRef),rd$1(e=>{this.licenseList.set(fo(e,this.workingCompany()?.assigned_license_package_names,this.tooltipTemplateLicensePackage()));})).subscribe();}selectedLicense(e,n){this.companiesActionService.selectLicense(e,n);}changedQuantity(e,n){this.companiesActionService.changeQuantity(e,n);}onSearch(e){this.companiesActionService.setSearchValue(e);}onSave(){let e=this.workingCompany();e&&(this.inputSelectLicense()?.reset(),this.companiesActionService.assignPackageToCompany(this.company().id,{assignment_info:e.assignment_info.map(n=>({quantity:n.license_package_quantity,license_package_id:n.license_package_id})),company_subscription_type:this.form.value.company_subscription_type||""},()=>this.saved.emit()));}onClose(){this.closed.emit();}getSubscriptionTypeList(){return [{label:fn.CUSTOMER,value:"CUSTOMER"},{label:fn.POC,value:"POC"},{label:fn.NONCUSTOMER,value:"NONCUSTOMER"},{label:fn.INTERNAL_DEMO,value:"INTERNAL_DEMO"}]}setCompanySubType(){let e=this.company()?.company_subscription_type;e&&(this.companyCurrentsubType=e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["company-edit-modal"]],viewQuery:function(n,i){n&1&&dg(i.inputSelectLicense,ip,5)(i.tooltipTemplateLicensePackage,op,5),n&2&&UT(2);},inputs:{company:[1,"company"]},outputs:{saved:"saved",closed:"closed"},standalone:false,features:[SC([Di,Co])],decls:15,vars:11,consts:[["inputSelectLicense",""],["tooltipTemplateLicensePackage",""],["modalHeader","Edit company details","primaryButtonText","Save","headerIcon","pazzel",3,"primaryButtonEvent","seconderyButtonEvent","preventDefaultAction","modalClose","errorMessage","disablePrimaryButton"],[1,"edit-modal",3,"formGroup"],[1,"mandatory"],["placeholder","License list","formControlName","license_package_id",1,"dropdown",3,"onselect","onsearch","searchStr","enableSearch","items"],["placeholder","Classification list","formControlName","company_subscription_type",1,"dropdown",3,"items"],[1,"license-lists"],[1,"selected-header"],[3,"license"],[3,"changequantity","license"],[1,"companies-assign-tooltip"],[1,"companies-assign-description-tooltip"]],template:function(n,i){if(n&1&&(Og(0),ls$1(1,"cye-modal-component",2),ig("primaryButtonEvent",function(){return i.onSave()})("seconderyButtonEvent",function(){return i.onClose()}),ls$1(2,"form",3)(3,"span")(4,"label",4),mC(5,"License"),au(),ls$1(6,"cye-drop-down",5,0),ig("onselect",function(u){return i.selectedLicense(u,1)})("onsearch",function(u){return i.onSearch(u)}),au(),Mb(),au(),ls$1(8,"span")(9,"label",4),mC(10,"Classification"),au(),Zm$1(11,"cye-drop-down",6),Mb(),au()(),vT(12,sp,5,0,"div",7),au(),Om$1(13,dp,5,1,"ng-template",null,1,GC)),n&2){EC(i.workingCompany());let s=i.errorAssignment(),u=i.isFormValid(),D=i.searchValue(),Me=i.licenseList(),Ye=i.hasAssignedLicenses();VD(),Qm$1("preventDefaultAction",true)("modalClose",false)("errorMessage",s)("disablePrimaryButton",!u),VD(),Qm$1("formGroup",i.form),VD(4),Qm$1("searchStr",D)("enableSearch",true)("items",Me),xb(),VD(5),Qm$1("items",i.subscriptionTypeList),xb(),VD(),IT(Ye?12:-1);}},dependencies:[Wn,Hn,$n$1,Dn$1,Vn,zs$1,$i,La],styles:['.companies-assign-tooltip[_ngcontent-%COMP%]{margin:10px 18px;width:350px;min-height:100px}.edit-modal[_ngcontent-%COMP%]{box-sizing:border-box;width:530px;padding:20px 22px 10px;display:grid;row-gap:14px}.edit-modal[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:grid;grid-template-columns:115px 1fr;align-items:center}.edit-modal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{white-space:nowrap}.edit-modal[_ngcontent-%COMP%] label.mandatory[_ngcontent-%COMP%]:after{display:inline-block;color:var(--text-color-error);content:"*";line-height:100%;vertical-align:text-top}.edit-modal[_ngcontent-%COMP%] cye-drop-down.dropdown[_ngcontent-%COMP%]{width:100%}.license-lists[_ngcontent-%COMP%]{width:100%;padding-bottom:20px}.license-lists[_ngcontent-%COMP%] .selected-header[_ngcontent-%COMP%]{margin:20px 0 0 22px;font:var(--font-14)}']});}}return t})();var lp=(t,l)=>l.label;function pp(t,l){if(t&1){let e=ST();ls$1(0,"span",8),ig("click",function(){af(e);let i=LT().$implicit,s=LT();return cf(s.onSortColumn(i.field))}),mC(1),ls$1(2,"span",9),mC(3),au()();}if(t&2){let e=LT().$implicit;VD(),fu(" ",e.label),VD(),yg("active",e.active),VD(),Mg(e.arrow);}}function mp(t,l){if(t&1&&(ls$1(0,"span"),mC(1),au()),t&2){let e=LT().$implicit;VD(),Mg(e.label);}}function up(t,l){if(t&1&&vT(0,pp,4,4,"span",7)(1,mp,2,1,"span"),t&2){let e=l.$implicit;IT(e.sortable?0:1);}}function gp(t,l){if(t&1){let e=ST();ls$1(0,"company-row",10),ig("edit",function(i){af(e);let s=LT();return cf(s.onEdit(i))}),au();}if(t&2){let e=l.$implicit;Qm$1("company",e);}}function fp(t,l){if(t&1){let e=ST();ls$1(0,"company-edit-modal",11),ig("saved",function(){af(e);let i=LT();return cf(i.onSaved())})("closed",function(){af(e);let i=LT();return cf(i.onModalClosed())}),au();}t&2&&Qm$1("company",l);}var es=(()=>{class t{constructor(){this.companiesFilter=Ze({page_size:20,sort_by:"name",sort_order:"asc"}),this.total=Ze(0),this.selectedCompany=Ze(null),this.headerColumns=kt(()=>{let e=this.companiesFilter();return no.map(n=>{let i=!!n.field&&e.sort_by===n.field;return {label:n.label,field:n.field,sortable:n.sortable,active:i,arrow:i?e.sort_order==="asc"?"\u25B2":"\u25BC":"\u2195"}})}),this.COMPANIES_FILTER_URL=eo,this.COMPANIES_ROW_HEIGHT=42;}onSortColumn(e){e&&this.companiesFilter.update(n=>F$1(E({},n),{sort_by:e,sort_order:n.sort_by===e&&n.sort_order==="asc"?"desc":"asc"}));}onSearchChange(e){this.companiesFilter.update(n=>F$1(E({},n),{search:e||void 0}));}onTotalChanged(e){this.total.set(e);}onEdit(e){this.selectedCompany.set(e);}onSaved(){this.companiesFilter.update(e=>E({},e)),this.selectedCompany.set(null);}onModalClosed(){this.selectedCompany.set(null);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["companies"]],standalone:false,decls:13,vars:6,consts:[["rowTpl",""],[1,"search-container"],["placeholder","Search companies",3,"onchange"],[1,"company-counter"],[1,"company-header"],[3,"totalChanged","url","filter","itemTemplate","itemHeight"],[3,"company"],[1,"sortable"],[1,"sortable",3,"click"],[1,"sort-arrow"],[3,"edit","company"],[3,"saved","closed","company"]],template:function(n,i){if
8(n&1&&(ls$1(0,"div",1)(1,"cye-input-search",2),ig("onchange",function(u){return i.onSearchChange(u)}),au(),ls$1(2,"div",3)(3,"strong"),mC(4),au(),mC(5," Companies "),au()(),ls$1(6,"div",4),bT(7,up,2,1,null,null,lp),au(),ls$1(9,"cye-managed-list",5),ig("totalChanged",function(u){return i.onTotalChanged(u)}),au(),Om$1(10,gp,1,1,"ng-template",null,0,GC),vT(12,fp,1,1,"company-edit-modal",6)),n&2){let s,u=qT(11),D=i.total(),Me=i.headerColumns(),Ye=i.companiesFilter(),st=i.selectedCompany();VD(4),Mg(D),VD(3),wT(Me),VD(2),Qm$1("url",i.COMPANIES_FILTER_URL)("filter",Ye)("itemTemplate",u)("itemHeight",i.COMPANIES_ROW_HEIGHT),VD(3),IT((s=st)?12:-1,s);}},dependencies:[dn,wi,Da,Xa],styles:["[_nghost-%COMP%]{height:calc(100% - 20px);display:flex;flex-direction:column;margin-top:20px;overflow:hidden}[_nghost-%COMP%] .search-container[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center;justify-content:space-between;gap:1rem}[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] cye-input-search[_ngcontent-%COMP%]{align-self:flex-start;width:320px}[_nghost-%COMP%] .search-container[_ngcontent-%COMP%] .company-counter[_ngcontent-%COMP%]{white-space:nowrap}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(110px,1.7fr) minmax(180px,2.3fr) minmax(90px,.9fr) minmax(100px,1fr) minmax(110px,1.6fr) minmax(100px,1fr) 40px;align-items:center;padding:0 10px;font:var(--font-12);height:36px;font-weight:500;color:var(--text-color-secondary)}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{padding:0 10px}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%] .sortable[_ngcontent-%COMP%]{cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%] .sortable[_ngcontent-%COMP%]:hover{color:var(--text-color-primary)}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%] .sort-arrow[_ngcontent-%COMP%]{margin-left:4px;font-size:10px;opacity:.35}[_nghost-%COMP%] .company-header[_ngcontent-%COMP%] .sort-arrow.active[_ngcontent-%COMP%]{opacity:1;color:var(--primary-500)}[_nghost-%COMP%] cye-managed-list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0}"]});}}return t})();var Ke=(function(t){return t.BASIC="BASIC",t.INTERMEDIATE="INTERMEDIATE",t.PREMIUM="PREMIUM",t.INTEGRATION="INTEGRATION",t.RISK_MANAGEMENT="RISK_MANAGEMENT",t.OTHER="OTHER",t})(Ke||{});var hp=1,_o=12;function Cp(t){return !t||!t.trim()?"Name is required":t.length>100?"Name must be 100 characters or less":null}function _p(t){return !t||!t.trim()?"Description is required":t.length>1e3?"Description must be 1000 characters or less":null}function yp(t){return !t||t<1?"Duration must be at least 1 month":t>9999?"Duration must be 9999 months or less":null}function yo(t,l,e,n){let i={},s=Cp(t);s&&(i.name=s);let u=_p(l);u&&(i.description=u);let D=yp(e);return D&&(i.duration=D),n||(i.components="At least one component is required"),{valid:Object.keys(i).length===0,errors:i}}function ts(t,l){return !t||t.length<=l?t:t.substring(0,l-3)+"..."}function ns(t){return t.reduce((l,e)=>{let n=e.category||"UNCATEGORIZED";return l[n]||(l[n]=[]),l[n].push(e),l},{})}function is(t){if(typeof t=="string")return t;if(t===hp)return "1 month";if(t>=_o){let l=Math.floor(t/_o),e=t%_o;return e===0?`${l} ${l===1?"year":"years"}`:`${l}y ${e}m`}return `${t} months`}function os(t){switch(t){case z.ACTIVE:return "Active";case z.DRAFT:return "Draft";case z.DEPRECATED:return "Deprecated";default:return t}}function rs(t){switch(t){case z.ACTIVE:return "status-active";case z.DRAFT:return "status-draft";case z.DEPRECATED:return "status-deprecated";default:return ""}}function as(t){return t.status===z.DRAFT&&!t.default}function ss(t){return t.status===z.ACTIVE}function ds(t){let l=new Date(t);return isNaN(l.getTime())?t:l.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}var cs=(()=>{class t{constructor(){this.status=u$.required(),this.statusText=kt(()=>os(this.status())),this.statusClass=kt(()=>rs(this.status()));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["license-status-badge"]],inputs:{status:[1,"status"]},decls:2,vars:2,consts:[[1,"status-badge",3,"ngClass"]],template:function(n,i){if
8(n&1&&(ls$1(0,"span",0),mC(1),au()),n&2){let s=i.statusText(),u=i.statusClass();Qm$1("ngClass",u),VD(),fu(" ",s,` 9`);}},dependencies:[hn$1],styles:["[_nghost-%COMP%]{display:inline-flex}.status-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:12px;font:var(--font-12);font-weight:600;text-transform:uppercase;letter-spacing:.5px}.status-badge.status-active[_ngcontent-%COMP%]{background-color:var(--color-success, #10b981);color:var(--white)}.status-badge.status-draft[_ngcontent-%COMP%]{background-color:var(--color-warning, #f59e0b);color:var(--white)}.status-badge.status-deprecated[_ngcontent-%COMP%]{background-color:var(--gray-500, #6b7280);color:var(--white)}"]});}}return t})();function xp(t,l){if(t&1){let e=ST();ls$1(0,"cye-menu",20),ig("clickOutside",function(){af(e);let i=LT(),s=qT(9);return cf(i.closeMenu(s))})("onselect",function(i){af(e);let s=LT(),u=qT(9);return cf(s.onMenuItemSelect(i,u))}),au();}if(t&2){LT();let e=DC(0);Qm$1("items",e);}}var ls=(()=>{class t{constructor(){this.METADATA_ICON_SIZE=14,this.FOOTER_ICON_SIZE=12,this.license=u$.required(),this.edit=l$(),this.delete=l$(),this.duplicate=l$(),this.activate=l$(),this.deprecate=l$(),this.truncatedDescription=kt(()=>ts(this.license().description||"",120)),this.componentCount=kt(()=>this.license().components?.length||0),this.companiesCount=kt(()=>this.license().companies_count??0),this.formattedDuration=kt(()=>is(this.license().duration)),this.formattedModifiedDate=kt(()=>ds(this.license().modified_time)),this.status=kt(()=>this.license().status),this.isDeprecated=kt(()=>this.license().status===z.DEPRECATED),this.moreActionsLabel=kt(()=>`More actions for ${this.license().name}`),this.componentCountLabel=kt(()=>this.componentCount()===1?"component":"components"),this.companiesCountLabel=kt(()=>this.companiesCount()===1?"company":"companies"),this.canActivate=kt(()=>as(this.license())),this.canDeprecate=kt(()=>ss(this.license())),this.canDelete=kt(()=>this.license().status!==z.ACTIVE),this.menuItems=kt(()=>{let e=[{label:"Duplicate",value:"duplicate",icon:"copy",iconSize:16}];return this.canActivate()&&e.push({label:"Activate",value:"activate",icon:"check-circle",iconSize:16}),this.canDeprecate()&&e.push({label:"Deprecate",value:"deprecate",icon:"warning",iconSize:16}),this.canDelete()&&e.push({label:"Delete",value:"delete",icon:"trash",iconSize:16,color:"var(--color-error, #ef4444)"}),e});}onEdit(){this.edit.emit(this.license());}onMenuItemSelect(e,n){switch(n?.hide(),e){case "duplicate":this.duplicate.emit(this.license());break;case "activate":this.activate.emit(this.license());break;case "deprecate":this.deprecate.emit(this.license());break;case "delete":this.delete.emit(this.license());break}}closeMenu(e){e.hide();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["license-card"]],inputs:{license:[1,"license"]},outputs:{edit:"edit",delete:"delete",duplicate:"duplicate",activate:"activate",deprecate:"deprecate"},decls:31,vars:23,consts:[["tooltipRef","tooltip"],["optionsMenu",""],[1,"license-card"],[1,"card-header"],[1,"header-left"],[1,"header-right"],[3,"status"],["icon","3 dots",1,"more-actions",3,"trigger","tooltip","content-type","clickable","placement","z-index"],[1,"card-body"],[1,"description"],[1,"card-metadata"],[1,"metadata-item"],["icon","calendar",3,"size"],["icon","package",3,"size"],["icon","users",3,"size"],[1,"card-footer"],[1,"modified-date"],["icon","clock",3,"size"],[1,"card-actions"],["label","Edit",1,"secondary",3,"click"],[1,"options-menu",3,"clickOutside","onselect","items"]],template:function(n,i){if(n&1&&(Og(0),ls$1(1,"cye-card",2)(2,"div",3)(3,"div",4)(4,"h3"),mC(5),au()(),ls$1(6,"div",5),Zm$1(7,"license-status-badge",6)(8,"cye-icon",7,0),Om$1(10,xp,1,1,"ng-template",null,1,GC),au()(),ls$1(12,"div",8)(13,"p",9),mC(14),au()(),ls$1(15,"div",10)(16,"span",11),Zm$1(17,"cye-icon",12),mC(18),au(),ls$1(19,"span",11),Zm$1(20,"cye-icon",13),mC(21),au(),ls$1(22,"span",11),Zm$1(23,"cye-icon",14),mC(24),au()(),ls$1(25,"div",15)(26,"span",16),Zm$1(27,"cye-icon",17),mC(28),au()(),ls$1(29,"div",18)(30,"cye-button",19),ig("click",function(){return i.onEdit()}),au()()()),n&2){let s=qT(11),u=i.license(),D=i.truncatedDescription(),Me=i.formattedDuration(),Ye=i.formattedModifiedDate(),st=i.componentCount(),qt=i.companiesCount(),ji=i.componentCountLabel(),Gi=i.companiesCountLabel(),Hi=i.isDeprecated(),ad=i.status(),sd=i.moreActionsLabel();EC(i.menuItems()),VD(),yg("deprecated",Hi),VD(4),Mg(u.name),VD(2),Qm$1("status",ad),VD(),Qm$1("trigger","click")("tooltip",s)("content-type","template")("clickable",true)("placement","bottom")("z-index",100),zm$1("aria-label",sd),VD(6),Mg(D),VD(3),Qm$1("size",i.METADATA_ICON_SIZE),VD(),fu(" ",Me," "),VD(2),Qm$1("size",i.METADATA_ICON_SIZE),VD(),Sg(" ",st," ",ji," "),VD(2),Qm$1("size",i.METADATA_ICON_SIZE),VD(),Sg(" ",qt," ",Gi," "),VD(3),Qm$1("size",i.FOOTER_ICON_SIZE),VD(),fu(" Modified: ",Ye," ");}},dependencies:[x,u,a,rt,ut,xe,c$1,ke$1,he,ne$1,cs,pe],styles:["[_nghost-%COMP%]{display:block}cye-card[_ngcontent-%COMP%]{overflow:visible}.license-card[_ngcontent-%COMP%]{position:relative;transition:all .2s ease-in-out;cursor:pointer;min-height:17.5rem;display:flex;flex-direction:column;border:1px solid rgba(166,181,211,.5);border-radius:.375rem;overflow:visible}.license-card[_ngcontent-%COMP%]:hover{transform:translateY(-.25rem);box-shadow:0 .5rem 1.5rem #00000026}.license-card.deprecated[_ngcontent-%COMP%]{opacity:.7}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem;gap:.75rem}.card-header[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;flex:1;min-width:0}
9.card-header[_ngcontent-%COMP%] .header-left[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18-600);color:var(--text-color-primary);margin:0;word-break:break-word}.card-header[_ngcontent-%COMP%] .header-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.default-badge[_ngcontent-%COMP%]{display:inline-flex;align-items:center;padding:.125rem .5rem;background-color:var(--light-blue-25, #e0f2fe);color:var(--hyver-primary);border-radius:.25rem;font:var(--font-12);font-weight:600;letter-spacing:.03125rem;width:fit-content}.more-actions[_ngcontent-%COMP%]{cursor:pointer;padding:.25rem;border-radius:.25rem;transition:background-color .15s ease}.more-actions[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondery-1, #f3f4f6)}.options-menu[_ngcontent-%COMP%]{width:10rem;min-width:10rem}.card-body[_ngcontent-%COMP%]{margin-bottom:1rem;flex:1}.card-body[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:var(--text-color-secondary);font:var(--font-14-400);line-height:1.5;margin:0;word-break:break-word}.card-metadata[_ngcontent-%COMP%]{display:flex;gap:1rem;margin-bottom:.75rem;flex-wrap:wrap}.card-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem;color:var(--text-color-secondary);font:var(--font-14-400)}.card-metadata[_ngcontent-%COMP%] .metadata-item[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--hyver-tertiary);flex-shrink:0}.card-footer[_ngcontent-%COMP%]{margin-bottom:1rem;padding-top:.75rem;border-top:1px solid rgba(166,181,211,.2)}.card-footer[_ngcontent-%COMP%] .modified-date[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.375rem;color:var(--text-color-secondary);font:var(--font-12)}.card-footer[_ngcontent-%COMP%] .modified-date[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--hyver-tertiary)}.card-actions[_ngcontent-%COMP%]{display:flex;gap:.75rem}.card-actions[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{flex:1}"]});}}return t})();var Sp=(t,l)=>l.key,$p=(t,l)=>l.id;function Mp(t,l){if(t&1){let e=ST();ls$1(0,"div",10)(1,"label",11),mC(2,"Quantity:"),au(),ls$1(3,"input",12),ig("input",function(i){af(e);let s=LT().$implicit,u=LT(2);return cf(u.updateQuantity(s.id,i))}),au()();}if(t&2){let e=LT().$implicit,n=LT(2);VD(),Qm$1("for",wC("quantity-",e.id)),VD(2),Qm$1("id",wC("quantity-",e.id))("value",n.getQuantity(e.id)||1);}}function bp(t,l){if(t&1){let e=ST();ls$1(0,"div",7)(1,"div",8)(2,"cye-checkbox",9),ig("onchange",function(){let i=af(e).$implicit,s=LT(2);return cf(s.toggleComponent(i))}),au()(),vT(3,Mp,4,5,"div",10),au();}if(t&2){let e=l.$implicit,n=LT(2).isSelected(e.id);yg("selected",n),VD(2),Qm$1("value",n)("label",e.name),VD(),IT(e.has_quantity&&n?3:-1);}}function wp(t,l){if(t&1&&(ls$1(0,"div",1)(1,"div",3),Zm$1(2,"cye-icon",4),ls$1(3,"h4"),mC(4),au()(),ls$1(5,"div",5),bT(6,bp,4,5,"div",6,$p),au()()),t&2){let e=l.$implicit;VD(2),Qm$1("icon",e.config.icon)("size",16),VD(2),Mg(e.config.displayName),VD(2),wT(e.components);}}function Pp(t,l){t&1&&(ls$1(0,"div",2)(1,"p"),mC(2,"Select at least one component for this license package"),au()());}var ps=(()=>{class t{constructor(){this.components=u$.required(),this.selectedComponentIds=u$(new Set),this.componentQuantities=u$(new Map),this.selectionChange=l$(),this.categoryConfig={[Ke.BASIC]:{icon:"circle",displayName:"Basic Components"},[Ke.INTERMEDIATE]:{icon:"hexagon",displayName:"Intermediate Components"},[Ke.PREMIUM]:{icon:"star",displayName:"Premium Components"},[Ke.INTEGRATION]:{icon:"link",displayName:"Integration Components"},[Ke.RISK_MANAGEMENT]:{icon:"shield",displayName:"Risk Management Components"},[Ke.OTHER]:{icon:"grid",displayName:"Other Components"}},this.categoryOrder=[Ke.BASIC,Ke.INTERMEDIATE,Ke.PREMIUM,Ke.INTEGRATION,Ke.RISK_MANAGEMENT,Ke.OTHER],this.categories=kt(()=>{let e=ns(this.components());if(!e)return [];let n=new Set(this.categoryOrder),i=Object.keys(e).filter(s=>!n.has(s)).flatMap(s=>e[s]);return this.categoryOrder.map(s=>({key:s,config:this.categoryConfig[s],components:s===Ke.OTHER?i:e[s]??[]})).filter(s=>s.components.length>0)}),this.selectedCount=kt(()=>this.selectedComponentIds().size);}isSelected(e){return this.selectedComponentIds().has(e)}getQuantity(e){return this.componentQuantities().get(e)||null}toggleComponent(e){this.selectionChange.emit({componentId:e.id,selected:!this.isSelected(e.id),quantity:e.has_quantity?1:void 0});}
9updateQuantity(e,n){let i=parseInt(n.target.value,10);!isNaN(i)&&i>0&&this.selectionChange.emit({componentId:e,selected:true,quantity:i});}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["license-component-selector"]],inputs:{components:[1,"components"],selectedComponentIds:[1,"selectedComponentIds"],componentQuantities:[1,"componentQuantities"]},outputs:{selectionChange:"selectionChange"},decls:4,vars:1,consts:[[1,"component-selector"],[1,"category-section"],[1,"no-selection"],[1,"category-header"],[3,"icon","size"],[1,"components-list"],[1,"component-item",3,"selected"],[1,"component-item"],[1,"component-checkbox"],[3,"onchange","value","label"],[1,"component-quantity"],[3,"for"],["type","number","min","1",1,"quantity-input",3,"input","id","value"]],template:function(n,i){if(n&1&&(ls$1(0,"div",0),bT(1,wp,8,3,"div",1,Sp),vT(3,Pp,3,0,"div",2),au()),n&2){VD(),wT(i.categories());let s=i.selectedCount();VD(2),IT(s?-1:3);}},dependencies:[Ee$1,we$2,xe,ut],styles:["[_nghost-%COMP%]{display:block}.component-selector[_ngcontent-%COMP%]{width:100%}.selector-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.selector-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18-600);color:var(--text-color-primary);margin:0}.selector-header[_ngcontent-%COMP%] .selected-count[_ngcontent-%COMP%]{font:var(--font-14-500);color:var(--text-color-secondary);padding:.25rem .75rem;background-color:var(--light-blue-25, #e0f2fe);border-radius:.75rem}.category-section[_ngcontent-%COMP%]{margin-bottom:1.5rem}.category-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.category-section[_ngcontent-%COMP%] .category-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem;padding:.5rem .75rem;background-color:var(--bg-secondery-1, #f3f4f6);border-radius:.375rem}.category-section[_ngcontent-%COMP%] .category-header[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--hyver-primary)}.category-section[_ngcontent-%COMP%] .category-header[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:var(--font-14-600);color:var(--text-color-primary);margin:0;text-transform:uppercase;letter-spacing:.03125rem}.category-section[_ngcontent-%COMP%] .components-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.component-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.75rem;border:1px solid rgba(166,181,211,.3);border-radius:.375rem;transition:all .15s ease;gap:.75rem}.component-item[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondery-1, #f9fafb);border-color:#a6b5d380}.component-item.selected[_ngcontent-%COMP%]{background-color:var(--light-blue-25, #eff6ff);border-color:var(--hyver-primary)}.component-item[_ngcontent-%COMP%] .component-checkbox[_ngcontent-%COMP%]{flex:1;min-width:0}.component-item[_ngcontent-%COMP%] .component-checkbox[_ngcontent-%COMP%] cye-checkbox[_ngcontent-%COMP%]{width:100%}.component-item[_ngcontent-%COMP%] .component-checkbox[_ngcontent-%COMP%] cye-checkbox[_ngcontent-%COMP%] label{font:var(--font-14-400);color:var(--text-color-primary)}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-14-400);color:var(--text-color-secondary);white-space:nowrap}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] .quantity-input[_ngcontent-%COMP%]{width:2.5rem;padding:.375rem .625rem;border:1px solid rgba(166,181,211,.5);border-radius:.25rem;font:var(--font-14-400);text-align:right}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] .quantity-input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--hyver-primary)}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] .quantity-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] .quantity-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{opacity:1}.no-selection[_ngcontent-%COMP%]{text-align:center;padding:2rem 1rem;color:var(--text-color-secondary);font:var(--font-14-400);background-color:var(--bg-secondery-1, #f9fafb);border-radius:.375rem;border:1px dashed rgba(166,181,211,.5)}.no-selection[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}@media(max-width:48rem){.component-item[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}
9.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%]{justify-content:space-between}.component-item[_ngcontent-%COMP%] .component-quantity[_ngcontent-%COMP%] .quantity-input[_ngcontent-%COMP%]{flex:1;max-width:7.5rem}}"]});}}return t})();var ms=(()=>{class t{constructor(){this.restApiService=T(d$1),this.apiUrl="license";}getLicensePackages(){return this.restApiService.get(`${this.apiUrl}/packages`)}getLicenseComponents(){return this.restApiService.get(`${this.apiUrl}/components`)}createLicensePackage(e){return this.restApiService.post(`${this.apiUrl}/package`,e)}updateLicensePackage(e,n){return this.restApiService.put(`${this.apiUrl}/package/${e}`,n)}deleteLicensePackage(e){return this.restApiService.delete(`${this.apiUrl}/package/${e}`)}activateLicensePackage(e){return this.restApiService.put(`${this.apiUrl}/package/${e}/activate`,{})}deprecateLicensePackage(e){return this.restApiService.put(`${this.apiUrl}/package/${e}/deprecate`,{})}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var en=(()=>{class t{constructor(){this._licenses=Ze([]),this._components=Ze([]),this._isLoading=Ze(false),this._error=Ze(null),this._sortBy=Ze(localStorage.getItem(N.LICENSE_V2_SORT_BY)??"companies_count"),this._hideDrafts=Ze(localStorage.getItem(N.LICENSE_V2_HIDE_DRAFTS)!=="false"),this._hideDeprecated=Ze(localStorage.getItem(N.LICENSE_V2_HIDE_DEPRECATED)!=="false"),this.licenses=this._licenses.asReadonly(),this.components=this._components.asReadonly(),this.isLoading=this._isLoading.asReadonly(),this.error=this._error.asReadonly(),this.sortBy=this._sortBy.asReadonly(),this.hideDrafts=this._hideDrafts.asReadonly(),this.hideDeprecated=this._hideDeprecated.asReadonly(),this.activeLicenses=kt(()=>this._licenses().filter(e=>e.status===z.ACTIVE)),this.draftLicenses=kt(()=>this._licenses().filter(e=>e.status===z.DRAFT)),this.deprecatedLicenses=kt(()=>this._licenses().filter(e=>e.status===z.DEPRECATED)),this.getLicenseById=e=>kt(()=>this._licenses().find(n=>n.id===e)),this.hasLicenses=kt(()=>this._licenses().length>0);}setSortBy(e){this._sortBy.set(e),localStorage.setItem(N.LICENSE_V2_SORT_BY,e);}setHideDrafts(e){this._hideDrafts.set(e),localStorage.setItem(N.LICENSE_V2_HIDE_DRAFTS,String(e));}setHideDeprecated(e){this._hideDeprecated.set(e),localStorage.setItem(N.LICENSE_V2_HIDE_DEPRECATED,String(e));}setLicenses(e){this._licenses.set(e);}setComponents(e){this._components.set(e);}addLicense(e){this._licenses.update(n=>[...n,e]);}updateLicense(e,n){this._licenses.update(i=>i.map(s=>s.id===e?E(E({},s),n):s));}removeLicense(e){this._licenses.update(n=>n.filter(i=>i.id!==e));}setLoading(e){this._isLoading.set(e);}setError(e){this._error.set(e);}clearError(){this._error.set(null);}reset(){this._licenses.set([]),this._components.set([]),this._isLoading.set(false),this._error.set(null);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var Fn=(()=>{class t{constructor(){this.apiService=T(ms),this.store=T(en),this.modalService=T(uo$1),this.cyeModalService=T(Ot);}loadLicenses(){this.store.setLoading(true),this.store.clearError(),this.apiService.getLicensePackages().pipe(rd$1(e=>{this.store.setLicenses(e);}),Ys$1(e=>{let n=this.extractErrorMessage(e);return this.store.setError({message:n}),this.modalService.openToast(n,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}loadComponents(){this.store.setLoading(true),this.store.clearError(),this.apiService.getLicenseComponents().pipe(rd$1(e=>{this.store.setComponents(e);}),Ys$1(e=>{let n=this.extractErrorMessage(e);return this.store.setError({message:n}),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}createLicense(e){this.store.setLoading(true),this.store.clearError(),this.apiService.createLicensePackage(e).pipe(rd$1(n=>{this.store.addLicense(n),this.modalService.openToast("License package created successfully","success");}),Ys$1(n=>{let i=this.extractErrorMessage(n);return this.store.setError({message:i}),this.modalService.openToast(i,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}createAndActivateLicense(e){this.store.setLoading(true),this.store.clearError(),this.apiService.createLicensePackage(e).pi
9pe(Ed$1(n=>this.apiService.activateLicensePackage(n.id)),rd$1(n=>{this.store.addLicense(n),this.modalService.openToast("License package created and activated successfully","success");}),Ys$1(n=>{let i=this.extractErrorMessage(n);return this.store.setError({message:i}),this.modalService.openToast(i,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}updateLicense(e,n){this.store.setLoading(true),this.store.clearError(),this.apiService.updateLicensePackage(e,n).pipe(rd$1(i=>{this.store.updateLicense(e,i),this.modalService.openToast("License package updated successfully","success");}),Ys$1(i=>{let s=this.extractErrorMessage(i);return this.store.setError({message:s}),this.modalService.openToast(s,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}deleteLicense(e){this.cyeModalService.openConfirm({title:"Delete License Package",message:`Are you sure you want to delete "${e.name}"? This action cannot be undone.`,confirmButtonName:"Delete",cancelButtonName:"Cancel",size:l.SMALL}).modalRef.result().pipe(Ht$1(1)).subscribe(()=>this.executeDelete(e.id));}activateLicense(e){this.cyeModalService.openConfirm({title:"Activate License Package",message:`Are you sure you want to activate "${e.name}"? Once activated, this package can be assigned to companies.`,confirmButtonName:"Activate",cancelButtonName:"Cancel",size:l.SMALL}).modalRef.result().pipe(Ht$1(1)).subscribe(()=>this.executeActivation(e.id));}activateDraft(e,n){this.cyeModalService.openConfirm({title:"Activate License Package",message:`Are you sure you want to activate "${e.name}"? Once activated, this package can be assigned to companies.`,confirmButtonName:"Activate",cancelButtonName:"Cancel",size:l.SMALL}).modalRef.result().pipe(Ht$1(1)).subscribe(()=>{this.store.setLoading(true),this.store.clearError(),this.apiService.updateLicensePackage(e.id,n).pipe(Ed$1(()=>this.apiService.activateLicensePackage(e.id)),rd$1(s=>{this.store.updateLicense(e.id,s),this.modalService.openToast("License package activated successfully","success");}),Ys$1(s=>{let u=this.extractErrorMessage(s);return this.store.setError({message:u}),this.modalService.openToast(u,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();});}deprecateLicense(e){this.cyeModalService.openConfirm({title:"Deprecate License Package",message:`Are you sure you want to deprecate "${e.name}"? This package will no longer be available for new assignments.`,confirmButtonName:"Deprecate",cancelButtonName:"Cancel",size:l.SMALL}).modalRef.result().pipe(Ht$1(1)).subscribe(()=>this.executeDeprecation(e.id));}executeDelete(e){this.store.setLoading(true),this.store.clearError(),this.apiService.deleteLicensePackage(e).pipe(rd$1(()=>{this.store.removeLicense(e),this.modalService.openToast("License package deleted successfully","success");}),Ys$1(n=>{let i=this.extractErrorMessage(n);return this.store.setError({message:i}),this.modalService.openToast(i,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}executeActivation(e){this.store.setLoading(true),this.store.clearError(),this.apiService.activateLicensePackage(e).pipe(rd$1(n=>{this.store.updateLicense(e,n),this.modalService.openToast("License package activated successfully","success");}),Ys$1(n=>{let i=this.extractErrorMessage(n);return this.store.setError({message:i}),this.modalService.openToast(i,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}executeDeprecation(e){this.store.setLoading(true),this.store.clearError(),this.apiService.deprecateLicensePackage(e).pipe(rd$1(n=>{this.store.updateLicense(e,n),this.modalService.openToast("License package deprecated successfully","success");}),Ys$1(n=>{let i=this.extractErrorMessage(n);return this.store.setError({message:i}),this.modalService.openToast(i,"error"),Oe$1}),nd$1(()=>this.store.setLoading(false))).subscribe();}extractErrorMessage(e){if(e?.error){if(typeof e.error=="object"&&!Array.isArray(e.error)){let n=Object.values(e.error)[0];return Array.isArray(n)?n[0]:String(n)}if(typeof e.error=="string")return e.error}if(e?.status)switch(e.status){case 400:return "Invalid request. Please check your input.";case 401:return "Unauthorized. Please log in again.";case 404:return "License package not found.";case 409:return "A license package with this name already exists.";case 500:return "Server error. Please try again later.";default:return "An unexpected error occurred."}return "An unexpected error occurred. Please try again."}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();function Tp(t,l){if(t&1&&(ls$1(0,"span",8),mC(1),au()),t&2){LT();let e=DC(0);VD(),Mg(e.name);}}function kp(t,l){if(t&1&&(ls$1(0,"span",8),mC(1),au()),t&2){LT();let e=DC(19);VD(),Mg(e);}}function Op(t,l){if(t&1&&(ls$1(0,"span",14),mC(1),au()),t&2){LT();let e=DC(29);VD(),fu("",e," selected");}}function Ep(t,l){if(t&1&&(ls$1(0,"div",15),mC(1),au()),t&2){LT();let e=DC(0);VD(),fu(" ",e.components," ");}}function Lp(t,l){t&1&&(ls$1(0,"div",18)(1,"p"),mC(2,"No components match your search."),au()());}function Ip(t,l){if(t&1){let e=ST();ls$1(0,"div",19)(1,"license-component-selector",20),ig("selectionChange",function(i){af(e);let s=LT();return cf(s.handleComponentSelection(i))}),au()();}if(t&2){let e=LT(),n=DC(1),i=DC(34);VD(),Qm$1("components",i)("selectedComponentIds",n)("componentQuantities",e.componentQuantities());}}var us=(()=>{class t{constructor(){this.facadeService=T(Fn),this.storeService=T(en),this.mode=u$.required(),this.license=u$(null),this.isOpen=u$.required(),this.closed=l$(),this.name=Ze(""),this.description=Ze(""),this.duration=Ze(36),this.selectedComponentIds=Ze(new Set),this.componentQuantities=Ze(new Map),this.validationErrors=Ze({}),this.componentSearchQuery=Ze(""),this.isLoading=this.storeService.isLoading,this.availableComponents=kt(()=>{let e=this.componentSearchQuery().toLowerCase().trim();return e?this.storeService.components().filter(n=>n.name.toLowerCase().includes(e)):this.storeService.components()}),this.modalTitle=kt(()=>{switch(this.mode()){case "create":return "Create License Package";case "edit":return "Edit License Package";case "duplicate":return "Duplicate License Package";default:return "License Package"}}),this.modalIcon=kt(()=>{switch(this.mode()){case "create":return "plus-circle";case "edit":return "edit";case "duplicate":return "copy";default:return "package"}}),this.isEditMode=kt(()=>this.mode()==="edit"),this.isCreating=kt(()=>this.mode()==="create"||this.mode()==="duplicate"),this.isDraft=kt(()=>this.isEditMode()&&this.license()?.status===z.DRAFT),this.primaryButtonLabel=kt(()=>this.mode()==="create"?"Create and Activate":"Save"),this.secondaryButtonLabel=kt(()=>this.mode()==="create"?"Create as Draft":this.isCreating()?"Save as Draft":this.isDraft()?"Activate":"Cancel"),this.isValid=kt(()=>yo(this.name(),this.description(),this.duration(),this.selectedComponentIds().size>0).valid),this.populateOrRestoreFormEffect=vc$1(()=>{let e=this.license();e?this.populateForm(e):this.isCreating()&&this.resetForm();});}populateForm(e){this.name.set(this.mode()==="duplicate"?"":e.name),this.description.set(e.description),this.duration.set(typeof e.duration=="number"?e.duration:36);let n=new Set,i=new Map;e.components?.forEach(s=>
9{n.add(s.id);let u=s.amount??s.quantity;if(u!==void 0&&u!==""){let D=typeof u=="string"?parseInt(u,10):u;isNaN(D)||i.set(s.id,D);}}),this.selectedComponentIds.set(n),this.componentQuantities.set(i);}resetForm(){this.name.set(""),this.description.set(""),this.duration.set(36),this.selectedComponentIds.set(new Set),this.componentQuantities.set(new Map),this.validationErrors.set({});}validateForm(){let e=yo(this.name(),this.description(),this.duration(),this.selectedComponentIds().size>0);return this.validationErrors.set(e.errors),e.valid}buildLicenseComponents(){return Array.from(this.selectedComponentIds()).map(e=>({id:e,quantity:this.componentQuantities().get(e)}))}handleComponentSelection(e){let n=new Set(this.selectedComponentIds()),i=new Map(this.componentQuantities());e.selected?(n.add(e.componentId),e.quantity!==void 0&&i.set(e.componentId,e.quantity)):(n.delete(e.componentId),i.delete(e.componentId)),this.selectedComponentIds.set(n),this.componentQuantities.set(i);}save(){if(this.validateForm()){if(this.isEditMode()&&this.license()){let e={name:this.name(),description:this.description(),duration:this.duration(),license_components:this.buildLicenseComponents()};this.facadeService.updateLicense(this.license().id,e);}else if(this.mode()==="create"){let e={name:this.name(),description:this.description(),duration:this.duration(),license_components:this.buildLicenseComponents()};this.facadeService.createAndActivateLicense(e);}else {let e={name:this.name(),description:this.description(),duration:this.duration(),license_components:this.buildLicenseComponents(),status:z.ACTIVE};this.facadeService.createLicense(e);}this.closeModal();}}activate(){if(!this.validateForm())return;let e=this.license(),n={name:this.name(),description:this.description(),duration:this.duration(),license_components:this.buildLicenseComponents()};this.closeModal(),this.facadeService.activateDraft(e,n);}saveAsDraft(){if(!this.validateForm())return;let e={name:this.name(),description:this.description(),duration:this.duration(),license_components:this.buildLicenseComponents(),status:z.DRAFT};this.facadeService.createLicense(e),this.closeModal();}closeModal(){this.resetForm(),this.closed.emit();}onSecondaryAction(){this.isCreating()?this.saveAsDraft():this.isDraft()?this.activate():this.closeModal();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["license-modal"]],hostBindings:function(n,i){n&1&&ig("keydown.escape",function(){return i.closeModal()},GE);},inputs:{mode:[1,"mode"],license:[1,"license"],isOpen:[1,"isOpen"]},outputs:{closed:"closed"},decls:37,vars:25,consts:[[3,"primaryButtonEvent","seconderyButtonEvent","modalHeader","headerIcon","topCloseButton","primaryButtonText","seconderyButtonText","disablePrimaryButton","disableSecondryButton","modalClose","preventDefaultAction"],[1,"license-modal-content"],[1,"modal-layout"],[1,"modal-left-column"],[1,"modal-section"],[1,"form-field"],["for","license-name"],["type","text","id","license-name","placeholder","Enter package name","maxlength","100",1,"form-control",3,"ngModelChange","ngModel"],[1,"error-message"],[1,"hint"],["for","license-description"],["id","license-description","placeholder","Describe the package features and benefits","rows","3","maxlength","1000",1,"form-control",3,"ngModelChange","ngModel"],[1,"modal-right-column"],[1,"components-header"],[1,"selected-count"],[1,"error-message-block"],[1,"component-search"],["placeholder","Search components...","type","search",3,"valueChanged"],[1,"components-empty-state"],[1,"component-selector-wrapper","scrollable"],[3,"selectionChange","components","selectedComponentIds","componentQuantities"]],template:function(n,i){if(n&1&&(Og(0)(1),ls$1(2,"cye-modal-component",0),ig("primaryButtonEvent",function(){return i.save()})("seconderyButtonEvent",function(){return i.onSecondaryAction()}),ls$1(3,"div",1)(4,"div",2)(5,"div",3)(6,"div",4)(7,"h3"),mC(8,"Basic Information"),au(),ls$1(9,"div",5)(10,"label",6),mC(11,"Name *"),au(),ls$1(12,"input",7),ig("ngModelChange",function(u){return i.name.set(u)}),au(),Mb(),vT(13,Tp,2,1,"span",8),ls$1(14,"span",9),mC(15,"Max 100 characters"),au()(),ls$1(16,"div",5)(17,"label",10),mC(18,"Description *"),au(),Og(19),ls$1(20,"textarea",11),ig("ngModelChange",function(u){return i.description.set(u)}),au(),Mb(),vT(21,kp,2,1,"span",8),ls$1(22,"span",9),mC(23,"Max 1000 characters"),au()()()(),ls$1(24,"div",12)(25,"div",4)(26,"div",13)(27,"h3"),mC(28,"Components *"),au(),Og(29),vT(30,Op,2,1,"span",14),au(),vT(31,Ep,2,1,"div",15),ls$1(32,"div",16)(33,"cye-input",17),ig("valueChanged",function(u){return i.componentSearchQuery.set(u)}),au()(),Og(34),vT(35,Lp,3,0,"div",18)(36,Ip,2,3,"div",19),au()()()()()),n&2){let s=EC(i.validationErrors());VD();let u=EC(i.selectedComponentIds());VD(),Qm$1("modalHeader",i.modalTitle())("headerIcon",i.modalIcon())("topCloseButton",true)("primaryButtonText",i.primaryButtonLabel())("seconderyButtonText",i.secondaryButtonLabel())("disablePrimaryButton",!i.isValid()||i.isLoading())("disableSecondryButton",(i.isCreating()||i.isDraft())&&(!i.isValid()||i.isLoading()))("modalClose",!i.isOpen())("preventDefaultAction",true),VD(7),yg("has-error",s.name),VD(3),Qm$1("ngModel",i.name()),xb(),VD(),IT(s.name?13:-1),VD(3),yg("has-error",s.description),VD(3);let D=EC(s.description);VD(),Qm$1("ngModel",i.description()),xb(),VD(),IT(D?21:-1),VD(8);let Me=EC(u.size);VD(),IT(Me>0?30:-1),VD(),IT(s.components?31:-1),VD(3);let Ye=EC(i.availableComponents());VD(),IT(Ye.length?36:35);}},dependencies:[Zn,nt,Hn,Xt$1,fn$1,Mi,$i,a,xe,Ii$1,fe,ps],styles:["[_nghost-%COMP%]{display:block}.license-modal-content[_ngcontent-%COMP%]{padding:1.5rem}.modal-layout[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:2rem;min-height:60vh}@media(max-width:63.9375rem){.modal-layout[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1.5rem}}.modal-left-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;width:25rem;padding-right:.625rem}.modal-right-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;border-left:1px solid rgba(166,181,211,.2);padding-left:2rem;width:37.5rem}@media(max-width:63.9375rem){.modal-right-column[_ngcontent-%COMP%]{border-left:none;border-top:1px solid rgba(166,181,211,.2);padding-left:0;padding-top:1.5rem}}.component-search[_ngcontent-%COMP%]{margin-bottom:.75rem}.component-search[_ngcontent-%COMP%] cye-input[_ngcontent-%COMP%]{width:100%}.components-empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-height:12.5rem}.components-empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--font-14-500);color:var(--text-color-secondary)}.component-selector-wrapper[_ngcontent-%COMP%]{max-height:calc(100svh - 18.75rem);min-height:25rem;overflow-y:auto;overflow-x:hidden;padding-right:.5rem}
9.components-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.components-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18-600);color:var(--text-color-primary);margin:0;padding:0;border:none}.components-header[_ngcontent-%COMP%] .selected-count[_ngcontent-%COMP%]{font:var(--font-14-500);color:var(--text-color-secondary);padding:.25rem .75rem;background-color:var(--light-blue-25, #e0f2fe);border-radius:.75rem}.modal-section[_ngcontent-%COMP%]{margin-bottom:2rem}.modal-section[_ngcontent-%COMP%]:last-child{margin-bottom:0}.modal-section[_ngcontent-%COMP%] > h3[_ngcontent-%COMP%]{font:var(--font-18-600);color:var(--text-color-primary);margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid rgba(166,181,211,.2)}.form-field[_ngcontent-%COMP%]{margin-bottom:1.25rem}.form-field[_ngcontent-%COMP%]:last-child{margin-bottom:0}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font:var(--font-14-500);color:var(--text-color-primary);margin-bottom:.375rem}.form-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{width:100%;padding:.625rem .75rem;border:1px solid rgba(166,181,211,.5);border-radius:.25rem;font:var(--font-14-400);color:var(--text-color-primary);transition:border-color .15s ease}.form-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--hyver-primary)}.form-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]::placeholder{color:var(--text-color-secondary);opacity:.6}.form-field[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:disabled{background-color:var(--bg-secondery-1, #f3f4f6);cursor:not-allowed;opacity:.6}.form-field[_ngcontent-%COMP%] textarea.form-control[_ngcontent-%COMP%]{resize:vertical;min-height:5rem;font-family:inherit}.form-field[_ngcontent-%COMP%] .duration-input[_ngcontent-%COMP%]{max-width:12.5rem}.form-field[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{display:block;font:var(--font-12);color:var(--text-color-secondary);margin-top:.25rem}.form-field[_ngcontent-%COMP%] .error-message[_ngcontent-%COMP%]{display:block;font:var(--font-12);color:var(--color-error, #ef4444);margin-top:.25rem}.form-field.has-error[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border-color:var(--color-error, #ef4444)}.form-field.has-error[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border-color:var(--color-error, #ef4444)}.error-message-block[_ngcontent-%COMP%]{padding:.75rem;background-color:#fef2f2;border:1px solid #fecaca;border-radius:.25rem;color:var(--color-error, #ef4444);font:var(--font-14-400);margin-bottom:1rem} cye-modal-component .modal-body{max-height:none;overflow:visible} cye-modal-component .cye-modal-component{min-width:56.25rem;max-width:75rem}@media(max-width:63.9375rem){ cye-modal-component .cye-modal-component{min-width:auto;max-width:90vw}}@media(max-width:48rem){ cye-modal-component .cye-modal-component{min-width:auto;max-width:95vw}}@media(max-width:48rem){.license-modal-content[_ngcontent-%COMP%]{padding:1rem}.modal-layout[_ngcontent-%COMP%]{gap:1rem}.modal-right-column[_ngcontent-%COMP%]{padding-top:1rem}.modal-section[_ngcontent-%COMP%]{margin-bottom:1rem}.form-field[_ngcontent-%COMP%] .duration-input[_ngcontent-%COMP%]{max-width:100%}.component-selector-wrapper[_ngcontent-%COMP%]{max-height:60vh}}"]});}}return t})();var Dp=(t,l)=>l.id;function Ap(t,l){t&1&&(ls$1(0,"div",11),Zm$1(1,"cye-spinner",15),ls$1(2,"p"),mC(3,"Loading license packages..."),au()());}function Vp(t,l){if(t&1){let e=ST();ls$1(0,"div",12),Zm$1(1,"cye-icon",16),ls$1(2,"h3"),mC(3,"Failed to Load Licenses"),au(),ls$1(4,"p"),mC(5),au(),ls$1(6,"cye-button",17),ig("click",function(){af(e);let i=LT();return cf(i.retryLoad())}),au()();}if(t&2){let e=LT();VD(),Qm$1("size",48),VD(4),Mg(e.error()?.message),VD(),Qm$1("iconPosition","left");}}function Fp(t,l){if(t&1){let e=ST();ls$1(0,"div",13),Zm$1(1,"cye-icon",18),ls$1(2,"h3"),mC(3,"No License Packages Yet"),au(),ls$1(4,"p"),mC(5,"Get started by creating your first license package"),au(),ls$1(6,"cye-button",19),ig("click",function(){af(e);let i=LT();return cf(i.openCreateModal())}),au()();}t&2&&(VD(),Qm$1("size",64));}function Np(t,l){t&1&&(ls$1(0,"div",13),Zm$1(1,"cye-icon",21),ls$1(2,"h3"),mC(3,"No Matches Found"),au(),ls$1(4,"p"),mC(5,"No license packages match your current search or filter criteria."),au()()),t&2&&(VD(),Qm$1("size",48));}function Rp(t,l){if(t&1){let e=ST();ls$1(0,"license-card",23),ig("edit",function(i){af(e);let s=LT(3);return cf(s.openEditModal(i))})("delete",function(i){af(e);let s=LT(3);return cf(s.handleDelete(i))})("duplicate",function(i){af(e);let s=LT(3);return cf(s.handleDuplicate(i))})("activate",function(i){af(e);let s=LT(3);return cf(s.handleActivate(i))})("deprecate",function(i){af(e);let s=LT(3);return cf(s.handleDeprecate(i))}),au();}if(t&2){let e=l.$implicit;Qm$1("license",e);}}function Bp(t,l){if(t&1&&(ls$1(0,"div",20),bT(1,Rp,1,1,"license-card",22,Dp),au()),t&2){LT();let e=DC(0);VD(),wT(e);}}function Up(t,l){if(t&1&&(Og(0),vT(1,Np,6,1,"div",13)(2,Bp,3,0,"div",20)),t&2){let e=EC(LT().filteredLicenses());VD(),IT(e.length===0?1:2);}}function jp(t,l){if(t&1){let e=ST();ls$1(0,"license-modal",24),ig("closed",function(){af(e);let i=LT();return cf(i.isModalOpen.set(false))}),au();}if(t&2){let e=LT(),n=DC(22),i=e.modalMode(),s=e.selectedLicense();Qm$1("mode",i)("license",s)("isOpen",n);}}var gs=(()=>{class t{constructor(){this.facade=T(Fn),this.store=T(en),this.isLoading=this.store.isLoading,this.error=this.store.error,this.hasLicenses=this.store.hasLicenses,this.sortBy=this.store.sortBy,this.hideDrafts=this.store.hideDrafts,this.hideDeprecated=this.store.hideDeprecated,this.searchQuery=Ze(""),this.sortOptions=[{label:"Companies count",value:"companies_count"},{label:"Created date",value:"created_time"},{label:"Modified date",value:"modified_time"}],this.selectedSortOption=kt(()=>this.sortOptions.find(e=>e.value===this.sortBy())??this.sortOptions[0]),this.filteredLicenses=kt(()=>{let e=this.searchQuery().toLowerCase().trim(),n=this.sortBy(),i=[...this.store.licenses()];return this.hideDrafts()&&(i=i.filter(s=>s.status!==z.DRAFT)),this.hideDeprecated()&&(i=i.filter(s=>s.status!==z.DEPRECATED)),e&&(i=i.filter(s=>s.name?.toLowerCase().includes(e))),i.sort((s,u)=>{if(n==="companies_count")return (u.companies_count??0)-(s.companies_count??0);let D=n==="created_time"?s.created_time??"":s.modified_time;return (n==="created_time"?u.created_time??"":u.modified_time).localeCompare(D)})}),this.isModalOpen=Ze(false),this.modalMode=Ze("create"),this.selectedLicense=Ze(null);}ngOnInit(){this.facade.loadLicenses(),this.facade.loadComponents();}openCreateModal(){this.modalMode.set("create"),this.selectedLicense.set(null),this.isModalOpen.set(true);}openEditModal(e){this.modalMode.set("edit"),this.selectedLicense.set(e),this.isModalOpen.set(true);}handleDelete(e){this.facade.deleteLicense(e);}handleDuplicate(e){this.modalMode.set("duplicate"),this.selectedLicense.set(e),this.isModalOpen.set(true);}handleActivate(e){this.facade.activateLicense(e);}handleDeprecate(e){this.facade.deprecateLicense(e);}retryLoad(){this.facade.loadLicenses(),this.facade.loadComponents();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["licenses-v2-page"]],features:[SC([en,Fn])],decls:24,vars:9,consts:[[1,"licenses-v2-page"],[1,"page-header"],[1,"header-content"],[1,"header-subtitle"],["label","Add New Package","icon","hyver-icon-plus",3,"click","iconPosition","iconSize"],[1,"toolbar"],["placeholder","Search license packages...","type","search",3,"valueChanged"],[1,"toolbar-right"],[3,"onchange","value"],[1,"sort-label"],[3,"onselect","items","selectedItem"],[1,"loading-state"],[1,"error-state"],[1,"empty-state"],[3,"mode","license","isOpen"],["size","large"],["icon","alert-circle",3,"size"],["label","Retry","icon","refresh-cw",3,"click","iconPosition"],["icon","package",3,"size"],["label","Create License Package",3,"click"],[1,"licenses-gri
9d"],["icon","search",3,"size"],[3,"license"],[3,"edit","delete","duplicate","activate","deprecate","license"],[3,"closed","mode","license","isOpen"]],template:function(n,i){if(n&1&&(ls$1(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),mC(4,"License Packages"),au(),ls$1(5,"p",3),mC(6,"Manage your license packages and their components"),au()(),ls$1(7,"cye-button",4),ig("click",function(){return i.openCreateModal()}),au()(),ls$1(8,"div",5)(9,"cye-input",6),ig("valueChanged",function(u){return i.searchQuery.set(u)}),au(),ls$1(10,"div",7)(11,"cye-checkbox",8),ig("onchange",function(){return i.store.setHideDrafts(!i.hideDrafts())}),mC(12," Hide drafts "),au(),ls$1(13,"cye-checkbox",8),ig("onchange",function(){return i.store.setHideDeprecated(!i.hideDeprecated())}),mC(14," Hide deprecated "),au(),ls$1(15,"span",9),mC(16,"Sort by"),au(),ls$1(17,"cye-drop-down",10),ig("onselect",function(u){return i.store.setSortBy(u)}),au()()(),vT(18,Ap,4,0,"div",11)(19,Vp,7,3,"div",12)(20,Fp,7,1,"div",13)(21,Up,3,2),au(),Og(22),vT(23,jp,1,3,"license-modal",14)),n&2){VD(7),Qm$1("iconPosition","left")("iconSize",16),VD(4),Qm$1("value",i.hideDrafts()),VD(2),Qm$1("value",i.hideDeprecated()),VD(4),Qm$1("items",i.sortOptions)("selectedItem",i.selectedSortOption()),VD(),IT(i.isLoading()?18:i.error()?19:i.hasLicenses()?21:20),VD(4);let s=EC(i.isModalOpen());VD(),IT(s?23:-1);}},dependencies:[a,rt,ut,P$1,Ee$1,we$2,Ii$1,fe,zs$1,nr,ls,us],styles:[".licenses-v2-page[_ngcontent-%COMP%]{padding:24px;max-width:1600px;margin:0 auto}.page-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;gap:24px}.page-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:var(--font-32-600);color:var(--text-color-primary);margin:0 0 8px}.page-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font:var(--font-14-400);color:var(--text-color-secondary);margin:0}.page-header[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{flex-shrink:0}.toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;margin-bottom:24px;gap:16px}.toolbar[_ngcontent-%COMP%] cye-input[_ngcontent-%COMP%]{width:320px}.toolbar[_ngcontent-%COMP%] .toolbar-right[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.toolbar[_ngcontent-%COMP%] .toolbar-right[_ngcontent-%COMP%] .sort-label[_ngcontent-%COMP%]{font:var(--font-14-500);color:var(--text-color-secondary);white-space:nowrap}.toolbar[_ngcontent-%COMP%] .toolbar-right[_ngcontent-%COMP%] cye-drop-down[_ngcontent-%COMP%]{width:180px}.licenses-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px}@media(max-width:1279px){.licenses-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}}@media(max-width:767px){.licenses-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:16px}}.loading-state[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:64px 24px;text-align:center;background:var(--white);border:1px solid rgba(166,181,211,.2);border-radius:6px;min-height:400px}.loading-state[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--text-color-secondary);margin-bottom:16px}.loading-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-20);font-weight:600;color:var(--text-color-primary);margin:0 0 8px}.loading-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font:var(--font-14-400);color:var(--text-color-secondary);margin:0 0 24px;max-width:400px}.loading-state[_ngcontent-%COMP%] .loading-spinner[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 1s linear infinite}.error-state[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{color:var(--color-error, #ef4444)}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(max-width:767px){.licenses-v2-page[_ngcontent-%COMP%]{padding:16px}.page-header[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;margin-bottom:24px}.page-header[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{width:100%}.loading-state[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{padding:48px 16px;min-height:300px}}"]});}}return t})();var fs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275mod=_m$1({type:t});}static{this.\u0275inj=_a$1({providers:[at,ft],imports:[Tt,he,Nn$1,c$1,Zn,Xn,a,nr,Fe$1,Ee$1,Ii$1,xe,Ln$2,Ye$2,Mi,wi]});}}return t})();xC(Ii,[ut,Mn,ce$1,za],[]);function Gp(t,l){if(t&1){let e=ST();ls$1(0,"cye-button",12),ig("click",function(){af(e);let i=LT(2);return cf(i.onEdit())}),mC(1,"Edit"),au();}if(t&2){let e=LT(2);Qm$1("disabled",e.disable);}}function Hp(t,l){if(t&1&&(ls$1(0,"p",13),mC(1),au()),t&2){let e=LT(2);VD(),Mg(e.firstName.value);}}function qp(t,l){if(t&1&&(Zm$1(0,"cye-input",14),Mb()),t&2){let e=LT(2);Qm$1("inputStyle",e.inputStyle)("maxlength",50),xb();}}function zp(t,l){if(t&1&&(ls$1(0,"p",13),mC(1),au()),t&2){let e=LT(2);VD(),Mg(e.lastName.value);}}function Qp(t,l){if(t&1&&(Zm$1(0,"cye-input",15),Mb()),t&2){let e=LT(2);Qm$1("inputStyle",e.inputStyle)("maxlength",50),xb();}}function Wp(t,l){if(t&1&&(ls$1(0,"p",13),mC(1),au()),t&2){let e=LT(2);VD(),Mg(e.phoneNumber.value);}}function Kp(t,l){if(t&1&&(Zm$1(0,"cye-input-phone",16),Mb()),t&2){let e=LT(2);rC(e.inputStyle),xb();}}function Yp(t,l){if(t&1&&(ls$1(0,"p",13),mC(1),au()),t&2){let e=LT(2);VD(),Mg(e.jobTitle.value);}}function Zp(t,l){if(t&1&&Zm$1(0,"job-title-input",17),t&2){let e=LT(2);Qm$1("inputStyle",e.inputStyle)("control",e.jobTitle);}}function Jp(t,l){if(t&1){let e=ST();ls$1(0,"div",18)(1,"cye-button",19),ig("click",function(){af(e);let i=LT(2);return cf(i.updatePersonalData())}),mC(2," Save "),au(),ls$1(3,"cye-button",20),ig("click",function(){af(e);let i=LT(2);return cf(i.cancelEdits())}),mC(4,"Cancel"),au()();}if(t&2){let e=LT(2);VD(),Qm$1("loading",e.loading)("disabled",e.personalInfoForm.invali
9d||e.personalInfoForm.pristine);}}function Xp(t,l){if(t&1&&(ls$1(0,"form",2)(1,"header")(2,"h3"),mC(3,"Personal"),au(),Om$1(4,Gp,2,1,"cye-button",3),au(),ls$1(5,"div",4)(6,"label",5),mC(7,"First name"),au(),Om$1(8,Hp,2,1,"p",6)(9,qp,1,2,"cye-input",7),Mb(),au(),ls$1(10,"div",4)(11,"label",5),mC(12,"Last name"),au(),Om$1(13,zp,2,1,"p",6)(14,Qp,1,2,"cye-input",8),Mb(),au(),ls$1(15,"div",4)(16,"label",5),mC(17,"Contact phone"),au(),Om$1(18,Wp,2,1,"p",6)(19,Kp,1,2,"cye-input-phone",9),Mb(),au(),ls$1(20,"div",4)(21,"label",5),mC(22,"Job title"),au(),Om$1(23,Yp,2,1,"p",6)(24,Zp,1,2,"job-title-input",10),au(),Om$1(25,Jp,5,2,"div",11),au()),t&2){let e=LT();Qm$1("formGroup",e.personalInfoForm),VD(4),Qm$1("ngIf",!e.isEditing),VD(2),yg("mandatory",e.isEditing),VD(2),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),xb(),VD(2),yg("mandatory",e.isEditing),VD(2),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),xb(),VD(4),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),xb(),VD(2),yg("mandatory",e.isEditing),VD(2),Qm$1("ngIf",!e.isEditing),VD(),Qm$1("ngIf",e.isEditing),VD(),Qm$1("ngIf",e.isEditing);}}function em(t,l){if(t&1){let e=ST();ls$1(0,"cye-card",1)(1,"header")(2,"h3"),mC(3,"Conference Demo \u2014 Finding Status Notification"),au()(),ls$1(4,"div",21)(5,"label",5),mC(6,"Finding ID"),au(),ls$1(7,"div",22),Zm$1(8,"input",23),Mb(),Zm$1(9,"input",24),Mb(),ls$1(10,"cye-button",25),ig("click",function(){af(e);let i=LT();return cf(i.triggerDemoFindingStatusNotification())}),mC(11," Add Notification "),au()()()();}if(t&2){let e=LT();VD(4),Qm$1("formGroup",e.demoForm),VD(4),xb(),VD(),xb(),VD(),Qm$1("disabled",!e.demoForm.controls.findingId.value?.trim());}}var hs=(()=>{class t extends wt{constructor(){super(...arguments),this.modalService=T(uo$1),this.authService=T(v),this.fb=T(zn),this.authActionService=T(Ue$2),this.conferenceDemoNotificationsService=T(m$1),this.inputStyle={width:"400px"},this.hasSolvoLicense=false,this.personalInfoForm=this.fb.group({firstName:["",[be$2.required,be$2.minLength(2),be$2.pattern("^[a-zA-Z ]*")]],lastName:["",[be$2.required,be$2.minLength(2),be$2.pattern("^[a-zA-Z -.]*")]],jobTitle:["",[be$2.required]],phoneNumber:this.fb.control("",{updateOn:"change"})}),this.demoForm=this.fb.group({findingId:[""],findingName:[""]}),this.loading=false,this.isEditing=false;}ngOnInit(){this.personalInfoForm.controls.phoneNumber.setValidators(Cn.phoneValidator),this.authService.profileResponse$.pipe(Dd$1(this.destroy$),pt(e=>!!e),rd$1(e=>{this.loading=false,this.isEditing=false,this.personalInfoForm.markAsPristine(),this.personalInfoForm.markAsUntouched(),this.profile=e,this.hasSolvoLicense=!!e?.company?.views?.includes(A$1.ORGANIZATION_SOLVO_MANAGEMENT),this.firstName.setValue(this.profile.first_name),this.lastName.setValue(this.profile.last_name),this.phoneNumber.setValue(this.profile.phone_number),this.jobTitle.setValue(this.profile.job_title);})).subscribe(),this.authService.profileResponseError$.pipe(Dd$1(this.destroy$),Ys$1(e=>(this.loading=false,this.modalService.openToast("Update failed! Please try again or contact support","warn"),Uy(e)))).subscribe();}onEdit(){this.isEditing=true;}cancelEdits(){this.firstName.setValue(this.profile.first_name),this.lastName.setValue(this.profile.last_name),this.phoneNumber.setValue(this.profile.phone_number),this.jobTitle.setValue(this.profile.job_title),this.personalInfoForm.markAsPristine(),this.isEditing=false,this.personalInfoForm.markAsUntouched();}updatePersonalData(){if(this.personalInfoForm.valid){this.loading=true;let e={first_name:this.firstName.value,last_name:this.lastName.value,job_title:this.jobTitle.value,phone_number:this.phoneNumber.value,company:{name:this.profile.company?.name}};this.authActionService.updatePersonalData(e).subscribe();}}get firstName(){return this.personalInfoForm.controls.firstName}get lastName(){return this.personalInfoForm.controls.lastName}get phoneNumber(){return this.personalInfoForm.controls.phoneNumber}get jobTitle(){return this.personalInfoForm.controls.jobTitle}triggerDemoFindingStatusNotification(){let e=this.demoForm.controls.findingId.value?.trim();if(!e)return;let n=this.demoForm.controls.findingName.value?.trim()||e;this.conferenceDemoNotificationsService.addFindingStatusChangedNotification(e,n),this.modalService.openToast("Status change notification added to the bell","success");}static{this.\u0275fac=(()=>{let e;return function(i){return (e||(e=YI(t)))(i||t)}})();}static{this.\u0275cmp=gw({type:t,selectors:[["settings-personal-info"]],hostVars:2,hostBindings:function(n,i){n&2&&yg("disable",i.disable);},inputs:{disable:"disable"},standalone:false,features:[Rm$1],decls:4,vars:2,consts:[[3,"formGroup",4,"ngIf"],[1,"demo-card"],[3,"formGroup"],["class","secondary","icon","edit",3,"disabled","click",4,"ngIf"],[1,"line"],[1,"key"],["class","value",4,"ngIf"],["customError","Invalid first name","formControlName","firstName",3,"inputStyle","maxlength",4,"ngIf"],["customError","Invalid last name","formControlName","lastName",3,"inputStyle","maxlength",4,"ngIf"],["formControlName","phoneNumber",3,"style",4,"ngIf"],[3,"inputStyle","control",4,"ngIf"],["style","display: flex; margin-top: 15px",4,"ngIf"],["icon","edit",1,"secondary",3,"click","disabled"],[1,"value"],["customError","Invalid first name","formControlName","firstName",3,"inputStyle","maxlength"],["customError","Invalid last name","formControlName","lastName",3,"inputStyle","maxlength"],["formControlName","phoneNumber"],[3,"inputStyle","control"],[2,"display","flex","margin-top","15px"],["type","submit",2,"margin-right","10px","width","100px",3,"click","loading","disabled"],[1,"secondary",2,"width","100px",3,"click"],[1,"line","demo-line",3,"formGroup"],[1,"inputs-container"],["formControlName","findingId","placeholder","Enter finding ID",1,"demo-finding-input"],["formControlName","findingName","placeholder","Finding name (optional)",1,"demo-finding-input"],[3,"click","disabled"]],template:function(n,i){n&1&&(Zm$1(0,"settings-dashboard"),ls$1(1,"cye-card"),Om$1(2,Xp,26,17,"form",0),au(),vT(3,em,12,2,"cye-card",1)),n&2&&(VD(2),Qm$1("ngIf",i.personalInfoForm),VD(),IT(i.hasSolvoLicense?3:-1));},dependencies:[pn,Wn,nt,Hn,$n$1,Xt$1,Dn$1,Vn,u,rt,li,fe,Vi$1,Oa],styles:['[_nghost-%COMP%]{margin-bottom:25px;display:block}.disable[_nghost-%COMP%]{opacity:.5;pointer-events:none}[_nghost-%COMP%] form[_ngcontent-%COMP%] .line[_ngcontent-%COMP%]{flex-flow:column nowrap}.line[_ngcontent-%COMP%]{display:flex;padding:10px 0}.line[_ngcontent-%COMP%] .inputs-container[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:8px}.line[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:225px;height:22px}.line[_ngcontent-%COMP%] label.mandatory[_ngcontent-%COMP%]:after{display:inline-block;color:var(--text-color-error);content:"*";line-height:100%;vertical-align:text-top}.line[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px 0}.line[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{vertical-align:middle}header[_ngcontent-%COMP%]{display:flex;align-items:center}header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:var(--font-18);line-height:32px;font-weight:400}header[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{margin-left:15px}.demo-line[_ngcontent-%COMP%]{align-items:center}.demo-finding-input[_ngcontent-%COMP%]{width:300px;height:32px;padding:0 10px;border:1px solid rgba(166,181,211,.4);border-radius:3px;font:var(--font-14-500);color:var(--text-color-secondary);background:transparent;outline:none}.demo-finding-input[_ngcontent-%COMP%]::placeholder{color:var(--text-color-disabled)}.demo-finding-input[_ngcontent-%COMP%]:focus{border-color:#a6b5d3cc}'],changeDetection:1});}}return t})();function tm(t,l){if(t&1&&Zm$1(0,"cye-icon",2),t&2){LT();let e=qT(5);Qm$1("clickable",true)("size",14)("content-type","template")("tooltip",e);}}function nm(t,l){if(t&1&&(ls$1(0,"div",3),mC(1),au()),t&2){let e=LT();VD(),fu(" ",e.tooltipText," ");}}var xn=(()=>{class t{constructor(){this.text="",this.tooltipText="";}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["left-side"]],inputs:{text:"text",tooltipText:"tooltipText"},decls:6,vars:2,consts:[["hyverToken",""],[1,"hyver-token-text"],["icon","infoq","placement","right",3,"clickable","size","content-type","tooltip"],[2,"margin","15px"]],template:function(n,i){n&1&&(ls$1(0,"div",1)(1,"div"),mC(2),au(),vT(3,tm,1,4,"cye-icon",2),au(),Om$1(4,nm,2,1,"ng-template",null,0,GC)),n&2&&(VD(2),Mg(i.text),VD(),IT(i.tooltipText?3:-1));},dependencies:[Nn$1,xe,ut,he,ne$1],styles:["[_nghost-%COMP%] .hyver-token-text[_ngcontent-%COMP%]{display:flex;width:230px;gap:5px}"]});}}return t})();
9var Cs=(()=>{class t{constructor(){this.text="Cye token",this.tooltipText="This is the access token that Jira can use to authenticate to Cye.";}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["token-left-side-container"]],decls:1,vars:2,consts:[[3,"text","tooltipText"]],template:function(n,i){n&1&&Zm$1(0,"left-side",0),n&2&&Qm$1("text",i.text)("tooltipText",i.tooltipText);},dependencies:[Nn$1,xn],encapsulation:2});}}return t})();function im(t,l){if(t&1){let e=ST();uu(0),ls$1(1,"cye-icon",2),ig("click",function(){af(e);let i=LT();return cf(i.onCopyClick())}),au(),xs$1();}t&2&&(VD(),Qm$1("clickable",true));}function om(t,l){t&1&&mC(0,"Copied!");}var _s=(()=>{class t{constructor(){this.copied=new Xe,this.triggerSubject=new fr(true),this.showIcon$=this.triggerSubject.pipe(Id$1(true),Ed$1(e=>e?ye(0).pipe(ne(()=>true)):ye(2e3).pipe(ne(()=>true),rd$1(()=>this.copied.emit()),Id$1(false))));}onCopyClick(){this.triggerSubject.next(false);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["copy"]],outputs:{copied:"copied"},decls:4,vars:4,consts:[["showText",""],[4,"ngIf","ngIfElse"],["icon","copy",3,"click","clickable"]],template:function(n,i){if(n&1&&(Om$1(0,im,2,1,"ng-container",1),VC(1,"async"),Om$1(2,om,1,0,"ng-template",null,0,GC)),n&2){let s=qT(3);Qm$1("ngIf",BC(1,2,i.showIcon$))("ngIfElse",s);}},dependencies:[Nn$1,pn,xe,ut,An],styles:["[_nghost-%COMP%]{margin-left:5px}[_nghost-%COMP%] cye-icon[_ngcontent-%COMP%]{margin-left:10px}"]});}}return t})();var rm=()=>({display:"flex","justify-content":"center",padding:"0"}),am=()=>({display:"contents","min-width":"95px"}),sm=()=>({"flex-direction":"row-reverse",font:"var(--font-12)",padding:"10px",margin:"5px 0 5px 0"});function dm(t,l){if(t&1){let e=ST();ls$1(0,"cye-menu",3),ig("onselect",function(){af(e);let i=LT();return qT(1).hide(),cf(i.onSelectedActionClick())})("clickOutside",function(){af(e),LT();let i=qT(1);return cf(i.hide())}),au();}if(t&2){let e=LT();Qm$1("iconWidth",NC(4,rm))("ngStyle",NC(5,am))("items",e.items)("contentMenuStyle",NC(6,sm));}}var ys=(()=>{class t{constructor(){this.items=[],this.ondelete=new Xe;}onSelectedActionClick(){this.ondelete.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["token-kebab"]],inputs:{items:"items"},outputs:{ondelete:"ondelete"},decls:4,vars:4,consts:[["accessTokenKabab","tooltip"],["AccessTokenMenu",""],["trigger","click","icon","3 dots","trigger","click","placement","right",1,"kabab-menu",3,"clickable","size","content-type","tooltip"],[3,"onselect","clickOutside","iconWidth","ngStyle","items","contentMenuStyle"]],template:function(n,i){if(n&1&&(Zm$1(0,"cye-icon",2,0),Om$1(2,dm,1,7,"ng-template",null,1,GC)),n&2){let s=qT(3);Qm$1("clickable",true)("size",14)("content-type","template")("tooltip",s);}},dependencies:[Nn$1,yn,xe,ut,he,ne$1,c$1,ke$1],encapsulation:2});}}return t})();var vs=(()=>{class t{constructor(){this.tokenLength=64;}transform(e){return e?e.length==this.tokenLength?e:`${"\u2022".repeat(58)}${e}`:""}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"transformToken",type:t,pure:true});}}return t})();var xs=(()=>{class t{transform(e){if(!e)return new Date;let n=e*1e3,i=new Date;return new Date(i.getTime()+n)}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275pipe=Ew({name:"tokenDateExpired",type:t,pure:true});}}return t})();function cm(t,l){t&1&&(uu(0),ls$1(1,"div",2),mC(2,"Token expired"),au(),xs$1());}function lm(t,l){if(t&1&&(ls$1(0,"div",3),mC(1),VC(2,"tokenDateExpired"),VC(3,"date"),au()),t&2){let e=LT();VD(),fu("Valid until ",BC(3,3,BC(2,1,e.expiry))," ");}}var Ss=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["token-validity"]],inputs:{expiry:"expiry"},decls:3,vars:2,consts:[["validToken",""],[4,"ngIf","ngIfElse"],[1,"token-expired"],[1,"token-valid"]],template:function(n,i){if(n&1&&Om$1(0,cm,3,0,"ng-container",1)(1,lm,4,5,"ng-template",null,0,GC),n&2){let s=qT(2);Qm$1("ngIf",i.expiry<0)("ngIfElse",s);}},dependencies:[Nn$1,pn,Ln$1,xs],styles:[".token-valid[_ngcontent-%COMP%]{color:var(--text-color-disabled)!important;font:var(--font-12);font-style:italic}.token-expired[_ngcontent-%COMP%]{font:var(--font-12);color:var(--negative-500)!important}"]});}}return t})();function pm(t,l){if(t&1&&(uu(0),ls$1(1,"div",3),Zm$1(2,"cye-spinner",4),mC(3),au(),xs$1()),t&2){let e=LT();VD(3),fu(" ",e.loading.message,"... ");}}function mm(t,l){if(t&1){let e=ST();uu(0),ls$1(1,"a",5),ig("click",function(i){return af(e),LT(2).onCreateTokenClick(),cf(i.preventDefault())}),mC(2,"Create token"),au(),xs$1();}}function um(t,l){if(t&1&&Om$1(0,mm,3,0,"ng-container",2),t&2){let e=LT(),n=qT(4);Qm$1("ngIf",!e.token?.hint&&!e.token?.key)("ngIfElse",n);}}function gm(t,l){if(t&1&&(ls$1(0,"div",6)(1,"div"),mC(2),au(),Zm$1(3,"token-validity",7),au()),t&2){let e=LT();VD(2),fu(" ",e.token?.hint||e.token?.key," "),VD(),Qm$1("expiry",e.token?.expiry_time);}}var $s=(()=>{class t{constructor(){this.loading={isLoading:false,message:""},this.oncreateTokenClick=new Xe;}onCreateTokenClick(){this.oncreateTokenClick.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["token-display"]],inputs:{token:[2,"token","token",e=>e?.hint?.length?F$1(E({},e),{hint:new vs().transform(e.hint)}):e],loading:"loading"},outputs:{oncreateTokenClick:"oncreateTokenClick"},decls:5,vars:2,consts:[["createToken",""],["displayToken",""],[4,"ngIf","ngIfElse"],[1,"spinner"],["size","tiny"],["href","#","role","button",3,"click"],[1,"token-data-container"],[3,"expiry"]],template:function(n,i){if
9(n&1&&Om$1(0,pm,4,1,"ng-container",2)(1,um,1,2,"ng-template",null,0,GC)(3,gm,4,2,"ng-template",null,1,GC),n&2){let s=qT(2);Qm$1("ngIf",i.loading.isLoading)("ngIfElse",s);}},dependencies:[Nn$1,pn,a,P$1,Ss],styles:["[_nghost-%COMP%] a[role=button][_ngcontent-%COMP%]{text-decoration:none;display:contents}[_nghost-%COMP%] .spinner[_ngcontent-%COMP%]{color:var(--text-color-disabled);font:var(--font-12)}[_nghost-%COMP%] .token-data-container[_ngcontent-%COMP%]{display:flex;flex-direction:column}"]});}}return t})();var Sn=(()=>{class t{constructor(){this._displayToken$=new fr({hint:"",expiry_time:0}),this._plainToken$=new fr({key:"",expiry_time:0}),this._accessToken$=new fr({hint:"",expiry_time:0}),this._pageLoader$=new fr(true),this._loading$=new fr({isLoading:false,message:""});}set displayToken(e){this._displayToken$.next(E(E({},this._displayToken$.getValue()),e));}get displayToken$(){return this._displayToken$.asObservable()}get plainToken$(){return this._plainToken$.asObservable()}set plainToken(e){this._plainToken$.next(E(E({},this._plainToken$.getValue()),e));}set restPlainToken(e){this._plainToken$.next({key:e.key,expiry_time:e.expiry_time});}set resetAccessToken(e){this._accessToken$.next({key:e.key,expiry_time:e.expiry_time});}get accessToken$(){return this._accessToken$.asObservable()}set accessToken(e){this._accessToken$.next(E(E({},this._accessToken$.getValue()),e));}get pageLoader$(){return this._pageLoader$.asObservable()}set pageLoader(e){this._pageLoader$.next(e);}get loading$(){return this._loading$.asObservable()}set loading(e){this._loading$.next(e);}resetAll(){this._displayToken$.next({hint:"",expiry_time:0}),this._plainToken$.next({key:"",expiry_time:0}),this._accessToken$.next({hint:"",expiry_time:0});}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Ms=(()=>{class t{constructor(){this.restApiService=T(d$1),this.accessTokenUrl="auth/application_token";}getAccessToken(){return this.restApiService.get(this.accessTokenUrl).pipe(ne(([e])=>e))}deleteAccessToken(){return this.restApiService.delete(this.accessTokenUrl)}createAccessToken(){return this.restApiService.post(this.accessTokenUrl).pipe(ne(e=>e.token),ne(e=>({key:e.key,expiry_time:e.expiry_time})))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Ai=(()=>{class t{constructor(){this.apiService=T(Ms),this.storeService=T(Sn);}setDisplayToken(e){this.storeService.displayToken=e;}setPlainToken(e){this.storeService.plainToken=e;}resetPlainToken(e){this.storeService.restPlainToken=e;}resetAccessToken(e){this.storeService.resetAccessToken=e;}getAccessToken(){return this.apiService.getAccessToken()}createAccessToken(){return this.storeService.loading={isLoading:true,message:"Creating"},this.apiService.createAccessToken().pipe(rd$1(e=>this.storeService.accessToken=e),nd$1(()=>this.storeService.loading={isLoading:false,message:""}))}deleteAccessToken(){return this.storeService.loading={isLoading:true,message:"Deleting"},this.apiService.deleteAccessToken().pipe(rd$1(()=>this.storeService.resetAll()),nd$1(()=>this.storeService.loading={isLoading:false,message:""}))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var fm=["iconTooltip"];function hm(t,l){if(t&1){let e=ST();ls$1(0,"token-kebab",4),ig("ondelete",function(){af(e);let i=LT();return cf(i.onSelectedActionClick())}),au();}if(t&2){LT();let e=DC(0);Qm$1("items",e);}}function Cm(t,l){if(t&1){let e=ST();ls$1(0,"copy",5),ig("copied",function(){af(e);let i=LT();return cf(i.onCopyClick())}),au();}}function _m(t,l){t&1&&(ls$1(0,"div",6),mC(1," Delete the Cye access token so it is removed from the system and is no longer usable. "),Zm$1(2,"br")(3,"br"),mC(4," After deleting the token, you will be able to create a new one. "),au());}var bs=(()=>{class t{constructor(){this.cyeModalService=T(Ot),this.modalService=T(uo$1),this.clipboard=T(b$2),this.storeService=T(Sn),this.actionService=T(Ai),this.loading$=this.storeService.loading$,this.items=Ze([]);}ngAfterViewInit(){this.items.set([{label:"Delete token",value:"diei",icon:"infoq",iconToolTipTemplate:this.iconTooltip}]);}onSelectedActionClick(){this.cyeModalService.openConfirm({size:l.SMALL,title:"Delete token",confirmButtonName:"Delete",cancelButtonName:"C
9ancel",message:`By deleting this token, it will be deleted from the database and become unusable. 10 Are you sure you want to create the new token?`}).modalRef.result().pipe(Ed$1(()=>this.cyeModalService.openWithHeader(In,{icon:"status-applicable",title:"Delete token",headerIconSize:25,customStyle:{height:"200px",width:"340px"},context:{data:{action:"Delete",header:"your access token"}}}).modalRef.result().pipe(Ht$1(1),Ed$1(()=>this.onDeleteToken())))).subscribe();}onCopyClick(){this.clipboard.copy(this.token.key),this.actionService.resetPlainToken({key:"",expiry_time:0}),this.actionService.resetAccessToken({key:"",expiry_time:0}),this.actionService.setDisplayToken({hint:this.token.key.slice(-6),expiry_time:this.token.expiry_time});}onCreateTokenClick(){this.cyeModalService.openWithHeader(In,{icon:"status-applicable",title:"Create token",headerIconSize:25,customStyle:{height:"210px",width:"300px"},context:{data:{action:"Create",header:"your access token"}}}).modalRef.result().pipe(Ht$1(1),Ed$1(()=>this.onCreateToken())).subscribe();}onCreateToken(){return this.actionService.createAccessToken().pipe(Ys$1(()=>(this.modalService.openToast("An error occurred while creating the token. If this issue persists, please contact us.","error"),Oe$1)))}onDeleteToken(){return this.actionService.deleteAccessToken().pipe(Ys$1(()=>(this.modalService.openToast("An error occurred while deleting the token. If this issue persists, please contact us.","error"),Oe$1)))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["token-right-side-container"]],viewQuery:function(n,i){if(n&1&&lg(fm,5),n&2){let s;BT(s=$T())&&(i.iconTooltip=s.first);}},inputs:{token:"token"},decls:7,vars:7,consts:[["iconTooltip",""],[3,"oncreateTokenClick","token","loading"],[3,"items","ondelete",4,"ngIf"],[3,"copied",4,"ngIf"],[3,"ondelete","items"],[3,"copied"],[2,"margin","15px","width","320px","font","var(--font-12)"]],template:function(n,i){n&1&&(Og(0),ls$1(1,"token-display",1),VC(2,"async"),ig("oncreateTokenClick",function(){return i.onCreateTokenClick()}),au(),Om$1(3,hm,1,1,"token-kebab",2)(4,Cm,1,0,"copy",3)(5,_m,5,0,"ng-template",null,0,GC)),n&2&&(EC(i.items()),VD(),Qm$1("token",i.token)("loading",BC(2,5,i.loading$)),VD(2),Qm$1("ngIf",i.token?.key||i.token?.hint),VD(),Qm$1("ngIf",i.token?.key));},dependencies:[Nn$1,pn,_s,ys,$s,An],styles:["[_nghost-%COMP%]{display:flex}[_nghost-%COMP%] token-kebab[_ngcontent-%COMP%]{margin-left:40px}[_nghost-%COMP%] .delete-token-message-container[_ngcontent-%COMP%]{margin:15px;width:320px;font:var(--font-12)}"]});}}return t})();var ws=(()=>{class t{constructor(){this.text="Cye URL",this.tooltipText="Use this URL with the access token when you configure authentication to Cye in Jira.";}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["url-left-side-container"]],inputs:{text:"text",tooltipText:"tooltipText"},decls:1,vars:2,consts:[[3,"text","tooltipText"]],template:function(n,i){n&1&&Zm$1(0,"left-side",0),n&2&&Qm$1("text",i.text)("tooltipText",i.tooltipText);},dependencies:[Nn$1,xn],encapsulation:2});}}return t})();function ym(t,l){if(t&1&&Zm$1(0,"copy-to-clipboard",1),t&2){let e=LT();Qm$1("value",e.text());}}var Vi=(()=>{class t{constructor(){this.text=u$(""),this.copyToClipboard=u$(false);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["right-side"]],inputs:{text:[1,"text"],copyToClipboard:[1,"copyToClipboard"]},decls:3,vars:2,consts:[[1,"hyver-token-text"],[3,"value"]],template:function(n,i){n&1&&(ls$1(0,"span",0),mC(1),au(),vT(2,ym,1,1,"copy-to-clipboard",1)),n&2&&(VD(),fu(" ",i.text(),` 11`),VD(),IT(i.copyToClipboard()?2:-1));},dependencies:[Nn$1,xe,he,oe],styles:["[_nghost-%COMP%]{display:flex;word-break:break-all;min-width:100px}"]});}}return t})();var Ps=(()=>{class t{constructor(){this.router=T(F),this.type=u$(""),this.url=kt(()=>window.location.href.replace(this.router.url,`/api/v1/finding/${this.type()}/status`));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["url-right-side-container"]],inputs:{type:[1,"type"]},decls:1,vars:2,consts:[[3,"text","copyToClipboard"]],template:function(n,i){n&1&&Zm$1(0,"right-side",0),n&2&&Qm$1("text",i.url())("copyToClipboard",true);},dependencies:[Vi],encapsulation:2});}}return t})();function vm(t,l){if(t&1&&(Zm$1(0,"cye-page-loader",2),VC(1,"async")),t&2){let e=LT();Qm$1("loading",BC(1,1,e.loading$));}}function xm(t,l){t&1&&(ls$1(0,"div",4),Zm$1(1,"url-left-side-container",8)(2,"url-right-side-container",9),au(),ls$1(3,"div",4),Zm$1(4,"url-left-side-container",10)(5,"url-right-side-container",11),au());}function Sm(t,l){if(t&1&&(ls$1(0,"cye-card")(1,"header"),mC(2,"Access token"),au(),ls$1(3,"div",3),mC(4,"Copy the Cye token and the company ID to configure your Cye connector in Workflow Automations."),au(),ls$1(5,"div",4),Zm$1(6,"token-left-side-container")(7,"token-right-side-container",5),au(),ls$1(8,"div",4),Zm$1(9,"left-side",6)(10,"right-side",7),au(),vT(11,xm,6,0),au()),t&2){let e=l.ngIf,n=LT();VD(7),Qm$1("token",e),VD(3),Qm$1("text",n.companyId())("copyToClipboard",true),VD(),IT(n.workatoOverlapDeprecated()?-1:11);}}var Ts=(()=>{class t{constructor(){this.authService=T(v),this.profile=z$1(this.authService.profileResponse$),this.companyId=kt(()=>this.profile()?.company?.id??""),this.featureFlagsService=T(A$2),this.workatoOverlapDeprecated=this.featureFlagsService.getIsFeatureFlagEnabled("workato_overlap_deprecation"),this.storeService=T(Sn),this.loading$=this.storeService.pageLoader$.pipe(gd$1(1)),this.accessToken$=T(Ai).getAccessToken().pipe(rd$1(()=>this.storeService.pageLoader=false)),this.modalService=T(uo$1),this.token$=Py([Fy(this.storeService.accessToken$.pipe(yd$1(1)),this.accessToken$),this.storeService.displayToken$,this.storeService.plainToken$]).pipe(ne(([e,n,i])=>e?.hint||e?.key?F$1(E({},e),{expiry_time:e?.expiry_time||0}):F$1(E(E({},i),n),{expiry_time:n.expiry_time||i.expiry_time})),Ys$1(()=>(this.storeService.pageLoader=false,this.modalService.openToast("An error occurred. If this issue persists, please contact us.","error"),Oe$1)));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["access-token"]],decls:4,vars:6,consts:[[3,"loading",4,"ngIf"],[4,"ngIf"],[3,"loading"],[1,"header-text"],[1,"token-container"],[3,"token"],["text","Company ID","tooltipText","Your company ID will be used in the connector configuration"],[3,"text","copyToClipboard"],["text","Cye URL for Jira
11integration","tooltipText","Use this URL with the access token when you configure authentication to Cye in Jira."],["type","jira"],["text","Cye URL for ServiceNow integration","tooltipText","Use this URL with the access token when when you configure authentication to Cye in ServiceNow"],["type","service_now"]],template:function(n,i){n&1&&(Om$1(0,vm,2,3,"cye-page-loader",0),VC(1,"async"),Om$1(2,Sm,12,4,"cye-card",1),VC(3,"async")),n&2&&(Qm$1("ngIf",BC(1,2,i.loading$)),VD(2),Qm$1("ngIf",BC(3,4,i.token$)));},dependencies:[ws,Cs,Ps,bs,Nn$1,pn,x,u,Ye$2,Re$1,xn,Vi,An],styles:["[_nghost-%COMP%]{display:block;margin-top:15px;container-name:accsessTokenComponent;container-type:size}[_nghost-%COMP%] cye-card[_ngcontent-%COMP%]{border:none;display:flex;flex-direction:column;height:50%}[_nghost-%COMP%] cye-card[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{font:var(--font-18);margin-bottom:24px}[_nghost-%COMP%] cye-card[_ngcontent-%COMP%] .header-text[_ngcontent-%COMP%]{color:var(--secondary-300);font:var(--font-14);margin-bottom:24px}[_nghost-%COMP%] cye-card[_ngcontent-%COMP%] .token-container[_ngcontent-%COMP%]{display:flex;align-items:baseline;height:52px}@container accsessTokenComponent (width <= 570px){[_nghost-%COMP%] .token-container[_ngcontent-%COMP%]{flex-direction:column}}"]});}}return t})();var $m=(t,l)=>l.label;function Mm(t,l){if(t&1){let e=ST();ls$1(0,"div",1),ig("click",function(i){let s=af(e).$implicit,u=LT();return cf(u.onLinkClick(i,u.frameworkItem(),s.data))}),ls$1(1,"span"),mC(2),au(),Zm$1(3,"cye-icon",2),au();}if(t&2){let e=l.$implicit;VD(2),Mg(e?.label),VD(),Qm$1("icon","external-link");}}var ks=(()=>{class t{constructor(){this.environment=T(hr),this.serializer=T(ne$2),this.router=T(F),this.linksList=Ze([{label:"View unmapped findings",data:"findings"},{label:"View unmapped technologies & processes",data:"assetdiscovery"}]),this.frameworkItem=u$();}onLinkClick(e,n,i){e.stopPropagation();let s=null;switch(i){case "findings":s={"Unmapped framework":this.frameworkItem().label};break;case "assetdiscovery":s={maturity_mappings:this.frameworkItem().label};}this.drillDownAction(s,i);}drillDownAction(e,n){let i=this.router.serializeUrl(this.router.createUrlTree([`/${n}`],{queryParams:{drillFilters:JSON.stringify(e)}}));window.open(i,"_blank");}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["drilldown-links"]],inputs:{frameworkItem:[1,"frameworkItem"]},decls:2,vars:0,consts:[[1,"link"],[1,"link",3,"click"],[3,"icon"]],template:function(n,i){n&1&&bT(0,Mm,4,2,"div",0,$m),n&2&&wT(i.linksList());},dependencies:[Nn$1,xe,ut],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .link[_ngcontent-%COMP%]{color:var(--light-blue-500);font:var(--font-12);white-space:nowrap}[_nghost-%COMP%] .link[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{margin-left:5px}"]});}}return t})();var tn=(()=>{class t{constructor(){this._maturityFrameworks$=new fr([]),this._maturityFrameworksLoadingStatus$=new fr(I$2.INIT),this._maturityFrameworksUpdateStatus$=new fr(I$2.INIT),this._lastModifiedPrimaryFramework$=new fr(null);}set maturityFrameworksUpdateStatus(e){this._maturityFrameworksUpdateStatus$.next(e);}get maturityFrameworksUpdateStatus$(){return this._maturityFrameworksUpdateStatus$.asObservable()}set lastModifiedPrimaryFramework(e){this._lastModifiedPrimaryFramework$.next(e);}get lastModifiedPrimaryFramework$(){return this._lastModifiedPrimaryFramework$.asObservable()}set maturityFrameworks(e){this._maturityFrameworks$.next(e);}get maturityFrameworks$(){return this._maturityFrameworks$.asObservable()}set maturityFrameworksLoadingStatus(e){this._maturityFrameworksLoadingStatus$.next(e);}get maturityFrameworksLoadingStatus$(){return this._maturityFrameworksLoadingStatus$.asObservable()}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var Os="maturity/primary_framework",bm="maturity/frameworks",wm="audit_logs/{{company_id}}?page=0&limit=1&entity_type=primary_framework",Es=(()=>{class t{constructor(){this.restApiService=T(d$1),this.cancelPendingRequests$=new U$
111;}getMaturityFrameworks(){return this.cancelPendingRequests(),this.restApiService.get(Os).pipe(Dd$1(this.cancelPendingRequests$))}getFrameworksList(){return this.restApiService.get(bm).pipe(Dd$1(this.cancelPendingRequests$))}setPrimaryFramework(e$1){return this.restApiService.patch(Os,{primary_framework:e.get(e$1)??e$1})}getPrimaryFrameworkLastModified(e){return this.restApiService.get(wm.replace("{{company_id}}",e))}cancelPendingRequests(){this.cancelPendingRequests$.next(true);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var Nn=(()=>{class t{constructor(){this.storeService=T(tn),this.apiService=T(Es),this.authService=T(v),this.authActionService=T(Ue$2);}getMaturityFrameworks(){this.storeService.maturityFrameworksLoadingStatus=I$2.LOADING,this.fetchFrameworkRows().pipe(this.manageFrameworkList(We.GET)).subscribe();}updatePrimaryFramework(e){this.storeService.maturityFrameworksUpdateStatus=I$2.LOADING,this.apiService.setPrimaryFramework(e).pipe(Ed$1(()=>this.fetchFrameworkRows()),this.manageFrameworkList(We.UPDATE),rd$1(()=>this.getPrimaryFrameworkLastModified())).subscribe();}fetchFrameworkRows(){return Xy([this.apiService.getFrameworksList().pipe(Ys$1(()=>Uy({frameworks:[]}))),this.apiService.getMaturityFrameworks()]).pipe(ne(([e,n])=>this.buildFrameworkRows(e?.frameworks??[],n)))}buildFrameworkRows(e,n){let i=n?.primary_framework,s=e.length?e.filter(u=>!!u?.framework_key).map(u=>({key:u.framework_key,name:u.display_name??e$1.get(u.framework_key)??u.name,is_primary:u.framework_key===i})):this.buildLegacyRows(n);return i&&!s.some(u=>u.key===i)&&s.push({key:i,name:e$1.get(i)??i,is_primary:true}),s.sort(this.sortFrameworks)}buildLegacyRows(e){return Object.entries(e??{}).filter(([n])=>e$1.has(n)).map(([n,i])=>({key:n,name:e$1.get(n),is_primary:!!i}))}getPrimaryFrameworkLastModified(){this.getProfile().pipe(Ed$1(e=>this.apiService.getPrimaryFrameworkLastModified(e?.company?.id).pipe(pt(n=>!!n?.length),rd$1(n=>{let{actor_name:i,timestamp:s}=n[0];this.storeService.lastModifiedPrimaryFramework={actor_name:i,timestamp:s};}),Ys$1(()=>(this.storeService.lastModifiedPrimaryFramework={actor_name:"",timestamp:""},Oe$1))))).subscribe();}getProfile(){return this.authService?.profileLoadStatus$.getValue()==="loading"?this.authService.profileResponse$.pipe(this.filterEmpty):this.fetchProfileFromBackend()}fetchProfileFromBackend(){return this.authActionService.getUserProfile().subscribe(),this.authService.profileResponse$.pipe(this.filterEmpty)}filterEmpty(e){return e.pipe(pt(n=>!!n),pd$1((n,i)=>n?.id===i?.id))}sortFrameworks(e,n){return e?.is_primary?-1:n?.is_primary?1:0}manageFrameworkList(e){return n=>n.pipe(gr(null),rd$1(i=>{i&&(this.storeService.maturityFrameworks=i),this.handleSuccess(e);}),Ys$1(()=>(this.handleError(e),Oe$1)))}handleSuccess(e){switch(e){case We.GET:this.storeService.maturityFrameworksLoadingStatus=I$2.SUCCESS;break;case We.UPDATE:this.storeService.maturityFrameworksUpdateStatus=I$2.SUCCESS;break}}handleError(e){switch(e){case We.GET:this.storeService.maturityFrameworksLoadingStatus=I$2.ER
11ROR;break;case We.UPDATE:this.storeService.maturityFrameworksUpdateStatus=I$2.ERROR;break}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();function Pm(t,l){if(t&1&&(ls$1(0,"span"),mC(1),VC(2,"date"),au()),t&2){let e=LT();VD(),Sg("Last modified: ",$C(2,2,e.lastModified()?.timestamp,"MMM dd, yyyy")," by ",e.lastModified()?.actor_name);}}var Ls=(()=>{class t{constructor(){this.lastModified=u$(),this.editModeChange=l$(),this.actionButtons=[{name:"Edit",icon:"edit",text:"Edit",handler:()=>{this.editModeChange.emit(true);}}];}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["header-actions"]],inputs:{lastModified:[1,"lastModified"]},outputs:{editModeChange:"editModeChange"},decls:2,vars:2,consts:[[3,"actionButtons"]],template:function(n,i){n&1&&(Zm$1(0,"cye-action-buttons-set",0),vT(1,Pm,3,5,"span")),n&2&&(Qm$1("actionButtons",i.actionButtons),VD(),IT(i.lastModified()?.timestamp?1:-1));},dependencies:[Nn$1,ie,Xt$2,Ln$1],styles:["[_nghost-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-18)}[_nghost-%COMP%] cye-action-buttons-set[_ngcontent-%COMP%]{margin:0 30px 0 20px}[_nghost-%COMP%] span[_ngcontent-%COMP%]{color:var(--text-color-placeholder);white-space:nowrap}"]});}}return t})();var Fi=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["option-selection-error-message"]],decls:4,vars:0,template:function(n,i){n&1&&(cu(0,"p"),mC(1,"A system error has occurred. Please refresh the page."),lu(),cu(2,"p"),mC(3,"If the problem continues, please contact [email protected]"),lu());},dependencies:[Nn$1],styles:["[_nghost-%COMP%]{display:block;font:var(--font-11)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-color-error);margin:0}"]});}}return t})();function Tm(t,l){if(t&1&&(cu(0,"header",3)(1,"h3",6),mC(2),lu(),cu(3,"p",7),mC(4),lu()()),t&2){LT();let e=DC(4);VD(2),Mg(e?.title),VD(2),Mg(e?.text);}}function km(t,l){if(t&1&&(cu(0,"section",4)(1,"p",8),mC(2),lu(),cu(3,"p",9),mC(4),lu()()),t&2){let e=l.$implicit;VD(2),Mg(e?.title),VD(2),Mg(e?.text);}}function Om(t,l){if(t&1&&(cu(0,"a",12),mC(1),lu()),t&2){LT(2);let e=DC(5);ng("href",e?.linkUrl??"",gh),VD(),Mg(e?.linkText);}}function Em(t,l){if(t&1&&(cu(0,"footer",5)(1,"p",10),mC(2),lu(),cu(3,"p",11),mC(4),lu(),vT(5,Om,2,2,"a",12),lu()),t&2){LT();let e=DC(5);VD(2),Mg(e?.title),VD(2),Mg(e?.text),VD(),IT(e?.linkText?5:-1);}}var Is=(()=>{class t{constructor(){this.bannerText=u$(),this.callToActionMessageHeader=u$(),this.messageRows=u$(),this.callToActionHeader=u$(),this.callToActionParagraphs=u$(),this.callToActionFooter=u$();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["settings-page-call-to-action"]],inputs:{bannerText:[1,"bannerText"],callToActionMessageHeader:[1,"callToActionMessageHeader"],messageRows:[1,"messageRows"],callToActionHeader:[1,"callToActionHeader"],callToActionParagraphs:[1,"callToActionParagraphs"],callToActionFooter:[1,"callToActionFooter"]},decls:10,vars:5,consts:[[1,"call-to-action-banner"],[1,"icon-megaphone"],[1,"banner-text"],[1,"header"],[1,"paragraph"],[1,"footer"],[1,"header-title"],[1,"header-text"],[1,"paragraph-title"],[1,"paragraph-text"],[1,"footer-title"],[1,"footer-text"],[1,"footer-link",3,"href"]],template:function(n,i){if(n&1&&(cu(0,"section",0),Ym$1(1,"i",1),cu(2,"span",2),mC(3),lu()(),Og(4)(5),vT(6,Tm,5,2,"header",3),bT(7,km,5,2,"section",4,ET),vT(9,Em,6,3,"footer",5)),n&2){VD(3),Mg(i.bannerText()),VD();let s=EC(i.callToActionHeader());VD();let u=EC(i.callToActionFooter());VD(),IT(s?6:-1),VD(),wT(i.callToActionParagraphs()),VD(2),IT(u?9:-1);}},styles:['[_nghost-%COMP%]{display:flex;flex-direction:column;box-sizing:border-box;font-weight:600;gap:12px;max-width:500px;margin-left:50px;margin-bottom:50px;height:fit-content;position:relative;border:1.5px solid var(--primary-25)}[_nghost-%COMP%]:before{content:"";position:absolute;top:-50px;left:-100px;width:1px;height:calc(100vh - 140px);border-left-color:var(--primary-25);border-left-width:1px;border-left-style:solid}[_nghost-%COMP%] .call-to-action-banner[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center;padding:12px 24px;border-radius:4px;box-sizing:border-box;color:var(--text-color-secondary);font-size:32px;min-height:98px;background:var(--primary-25);gap:32px}[_nghost-%COMP%] .call-to-action-banner[_ngcontent-%COMP%] .banner-text[_ngcontent-%COMP%]{font-size:24px}[_nghost-%COMP%] .call-to-action-banner[_ngcontent-%COMP%] .icon-megaphone[_ngcontent-%COMP%]{font-size:32px}[_nghost-%COMP%] .call-to-action-banner[_ngcontent-%COMP%] .icon-megaphone[_ngcontent-%COMP%]:before{color:var(--text-color-secondary)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .header[_ngcontent-%COMP%]{padding:0 24px;margin-bottom:20px}[_nghost-%COMP%] .header-title[_ngcontent-%COMP%]{font:var(--font-18);font-weight:600;margin:12px 0 10px;color:var(--text-color-secondary)}[_nghost-%COMP%] .header-text[_ngcontent-%COMP%]{font:var(--font-14-500);line-height:20px;color:var(--text-color-secondary)}[_nghost-%COMP%] .paragraph[_ngcontent-%COMP%]{padding:0 24px;font:var(--font-14)}[_nghost-%COMP%] .paragraph-title[_ngcontent-%COMP%]{font-weight:500;color:var(--text-color-secondary);margin:0 0 5px}[_nghost-%COMP%] .paragraph-text[_ngcontent-%COMP%]{color:var(--text-color-primary);font:var(--font-14);color:inherit;white-space:pre;line-height:20px}[_nghost-%COMP%] .footer[_ngcontent-%COMP%]{padding:12px 24px;background:var(--bg-secondery-1);font:var(--font-14)}[_nghost-%COMP%] .footer-title[_ngcontent-%COMP%]{color:var(--text-color-secondary);font-weight:500;margin:0 0 5px;line-height:20px}[_nghost-%COMP%] .footer-text[_ngcontent-%COMP%]{color:var(--text-color-primary);margin-bottom:10px;line-height:20px}[_nghost-%COMP%] .footer-link[_ngcontent-%COMP%]{color:var(--severity-potential);font:inherit}']});}}return t})();var Ds=(()=>{class t{constructor(){this.headerText=u$(""),this.message=u$("");}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["attention-message"]],inputs:{headerText:[1,"headerText"],message:[1,"message"]},decls:4,vars:2,template:function(n,i){n&1&&(cu(0,"h3"),mC(1),lu(),cu(2,"p"),mC(3),lu()),n&2&&(VD(),Mg(i.headerText()),VD(2),Mg(i.message()));},dependencies:[Nn$1],styles:["[_nghost-%COMP%]{display:block;max-width:300px;border-radius:5px;background:var(--bg-secondery-1);padding:15px;max-height:min-content;min-width:250px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin:0}"]});}}return t})();var As=(()=>{class t{constructor(){this.form=u$.required(),this.labelTemplate=u$(),this.options=u$([]),this.controlName=kt(()=>this.form()?Object.keys(this.form()?.controls)[0]:""),this.mappedOptions=kt(()=>this.options().map(e=>F$1(E({},e),{labelTemplate:this.labelTemplate()})));}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["option-selection"]],inputs:{form:[1,"form"],labelTemplate:[1,"labelTemplate"],options:[1,"options"]},decls:2,vars:4,consts:[[3,"formGroup"],[3,"formControlName","items","withTemplateAsLabel"]],template:function(n,i){n&1&&(ls$1(0,"div",0),Zm$1(1,"cye-radio-group",1),Mb(),au()),n&2&&(Qm$1("formGroup",i.form()),VD(),Qm$1("formControlName",i.controlName())("items",i.mappedOptions())("withTemplateAsLabel",true),xb());},dependencies:[Nn$1,Be$1,De$1,Xn,Hn,$n$1,Dn$1,Vn],encapsulation:2});}}return t})();function Lm(t,l){if(t&1&&Zm$1(0,"attention-message",2),t&2){let e=LT();Qm$1("headerText",e.attentionMessageHeaderText())("message",l);}}var Vs=(()=>{class t{constructor(){this.showCallToAction=u$(),this.form=u$(),this.optionLabel=u$(),this.options=u$(),this.attentionMessageText=u$(),this.attentionMessageHeaderText=u$(),this.settingsChanged=u$(),this.saveChangesClicked=l$(),this.cancelClicked=l$();}
11onSaveChangesClick(){this.saveChangesClicked.emit();}onCancelChanges(){this.cancelClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["edit-mode"]],inputs:{showCallToAction:[1,"showCallToAction"],form:[1,"form"],optionLabel:[1,"optionLabel"],options:[1,"options"],attentionMessageText:[1,"attentionMessageText"],attentionMessageHeaderText:[1,"attentionMessageHeaderText"],settingsChanged:[1,"settingsChanged"]},outputs:{saveChangesClicked:"saveChangesClicked",cancelClicked:"cancelClicked"},decls:8,vars:7,consts:[[1,"option-flex-wrapper"],[3,"form","labelTemplate","options"],[3,"headerText","message"],[3,"click","disabled"],[1,"secondary",3,"click"]],template:function(n,i){if(n&1&&(ls$1(0,"div",0),Zm$1(1,"option-selection",1),vT(2,Lm,1,2,"attention-message",2),au(),ls$1(3,"footer")(4,"cye-button",3),ig("click",function(){return i.onSaveChangesClick()}),mC(5,"Save"),au(),ls$1(6,"cye-button",4),ig("click",function(){return i.onCancelChanges()}),mC(7,"Cancel"),au()()),n&2){let s;yg("with-call-to-action",i.showCallToAction()),VD(),Qm$1("form",i.form())("labelTemplate",i.optionLabel())("options",i.options()),VD(),IT((s=i.attentionMessageText())?2:-1,s),VD(2),Qm$1("disabled",!i.settingsChanged());}},dependencies:[Nn$1,Ds,a,rt,As],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column nowrap;container-name:editMode;container-type:inline-size}[_nghost-%COMP%] .option-flex-wrapper[_ngcontent-%COMP%]{display:grid;grid-template-columns:min-content minmax(250px,330px);gap:55px}[_nghost-%COMP%] .option-flex-wrapper[_ngcontent-%COMP%] attention-message[_ngcontent-%COMP%]{align-self:flex-start}@media all and (max-width:1600px){[_nghost-%COMP%] .with-call-to-action.option-flex-wrapper[_ngcontent-%COMP%]{flex-flow:column nowrap;gap:20px}}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;gap:5px;margin-top:35px}@container editMode (width <= 500px){[_nghost-%COMP%] .option-flex-wrapper[_ngcontent-%COMP%]{grid-template-columns:1fr;grid-template-rows:repeat(2,auto);gap:20px}}"]});}}return t})();function Im(t,l){if(t&1&&Zm$1(0,"cye-icon",4),t&2){let e=LT(2);Qm$1("icon","info")("tooltip",e.infoTooltipText());}}function Dm(t,l){if(t&1&&(ls$1(0,"p",1),mC(1),vT(2,Im,1,2,"cye-icon",4),au()),t&2){let e=LT(),n=DC(0),i=DC(1);VD(),fu(" ",i," "),VD(),IT(n&&e.infoTooltipText()?2:-1);}}function Am(t,l){if(t&1){let e=ST();ls$1(0,"div",2)(1,"edit-mode",5),ig("cancelClicked",function(){af(e);let i=LT();return cf(i.onCancelChanges())})("saveChangesClicked",function(){af(e);let i=LT();return cf(i.onSaveChangesClick())}),au()();}if(t&2){let e=LT();VD(),Qm$1("attentionMessageHeaderText",e.attentionMessageHeaderText())("attentionMessageText",e.attentionMessageText())("form",e.form())("optionLabel",e.optionLabel())("options",e.options())("settingsChanged",e.settingsChanged())("showCallToAction",e.showCallToAction());}}function Vm(t,l){t&1&&Zm$1(0,"option-selection-error-message");}function Fm(t,l){if(t&1&&(ls$1(0,"div",3)(1,"span",6),mC(2),au(),vT(3,Vm,1,0,"option-selection-error-message"),au()),t&2){let n=LT();VD(2),Mg(n.selectedOption()),VD(),IT((n.settingsUpdateStatus())===n.LoadingStateEnum.ERROR?3:-1);}}var Fs=(()=>{class t{constructor(){this.editMode=u$(),this.form=u$.required(),this.options=u$([]),this.selectedOption=u$(),this.explanationText=u$(""),this.infoTooltipText=u$(""),this.settingsLabel=u$(),this.attentionMessageHeaderText=u$(""),this.attentionMessageText=u$(""),this.optionLabel=u$(),this.settingsUpdateStatus=u$(),this.showCallToAction=u$(),this.saveClicked=l$(),this.cancelClicked=l$(),this.LoadingStateEnum=I$2,this.injector=T(fe$1),this.previousValue=kt(()=>this.editMode()?this.form().value:null),this.settingsChanged=kt(()=>{if(typeof this.currentValue()!="object"||typeof this.previousValue()!="object")return false;let[e]=Object.values(this.previousValue()),[n]=Object.values(this.currentValue());return e!==n});}ngOnInit(){gi(this.injector,()=>{this.currentValue=z$1(this.form().valueChanges);});}onSaveChangesClick(){this.saveClicked.emit();}
11onCancelChanges(){this.cancelClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["select-mode"]],inputs:{editMode:[1,"editMode"],form:[1,"form"],options:[1,"options"],selectedOption:[1,"selectedOption"],explanationText:[1,"explanationText"],infoTooltipText:[1,"infoTooltipText"],settingsLabel:[1,"settingsLabel"],attentionMessageHeaderText:[1,"attentionMessageHeaderText"],attentionMessageText:[1,"attentionMessageText"],optionLabel:[1,"optionLabel"],settingsUpdateStatus:[1,"settingsUpdateStatus"],showCallToAction:[1,"showCallToAction"]},outputs:{saveClicked:"saveClicked",cancelClicked:"cancelClicked"},decls:7,vars:7,consts:[[1,"select-label"],[1,"select-explanation"],[1,"edit-mode-container"],[1,"read-mode-flex-wrapper"],[3,"icon","tooltip"],[3,"cancelClicked","saveChangesClicked","attentionMessageHeaderText","attentionMessageText","form","optionLabel","options","settingsChanged","showCallToAction"],[1,"selected-text"]],template:function(n,i){if(n&1&&(Og(0)(1),ls$1(2,"label",0),mC(3),au(),vT(4,Dm,3,2,"p",1),vT(5,Am,2,7,"div",2)(6,Fm,4,2,"div",3)),n&2){let s=EC(i.editMode());VD();let u=EC(i.explanationText());VD(),yg("without-explanation-text",!u),VD(),Mg(i.settingsLabel()),VD(),IT(u?4:-1),VD(),IT(s?5:6);}},dependencies:[Nn$1,xe,ut,he,ne$1,Fi,a,Vs],styles:["[_nghost-%COMP%]{display:block;padding:0 65px 0 0;box-sizing:border-box}[_nghost-%COMP%] .select-label[_ngcontent-%COMP%]{font:var(--font-14);margin:10px 0;display:inline-block}[_nghost-%COMP%] .select-label.without-explanation-text[_ngcontent-%COMP%]{margin-bottom:40px}[_nghost-%COMP%] .select-explanation[_ngcontent-%COMP%]{color:var(--text-color-placeholder);white-space:wrap}[_nghost-%COMP%] .selected-text[_ngcontent-%COMP%]{font:var(--font-14);color:var(--text-color-secondary);margin:20px 0 0 30px}[_nghost-%COMP%] .read-mode-flex-wrapper[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;gap:30px;flex:0 0 auto;align-items:flex-end}[_nghost-%COMP%] .read-mode-flex-wrapper[_ngcontent-%COMP%] error-message[_ngcontent-%COMP%]{margin-bottom:-10px}"]});}}return t})();function Nm(t,l){if(t&1){let e=ST();ls$1(0,"header-actions",2),ig("editModeChange",function(i){af(e);let s=LT(2);return cf(s.onEditModeChange(i))}),au();}if(t&2){let e=LT(2);Qm$1("lastModified",e.lastModified());}}function Rm(t,l){if(t&1&&vT(0,Nm,1,1,"header-actions",1),t&2){let n=LT(),i=DC(1);IT((i)===n.LoadingStateEnum.SUCCESS?0:-1);}}function Bm(t,l){if(t&1&&Zm$1(0,"settings-page-call-to-action",5),t&2){let e=LT(2);Qm$1("callToActionHeader",e.callToActionHeader())("callToActionParagraphs",e.callToActionParagraphs())("callToActionFooter",e.callToActionFooter())("bannerText",e.callToActionBannerText());}}function Um(t,l){if(t&1){let e=ST();ls$1(0,"div",3)(1,"select-mode",4),ig("saveClicked",function(){af(e);let i=LT();return cf(i.onSaveChangesClick())})("cancelClicked",function(){af(e);let i=LT();return cf(i.onCancelChanges())}),au(),vT(2,Bm,1,4,"settings-page-call-to-action",5),au();}if(t&2){let e=LT(),n=DC(0);yg("with-call-to-action",e.showCallToAction()),VD(),Qm$1("editMode",n)("form",e.form())("options",e.options())("optionLabel",e.optionLabel())("settingsUpdateStatus",e.settingsUpdateStatus())("settingsLabel",e.settingsLabel())("attentionMessageHeaderText",e.attentionMessageHeaderText())("attentionMessageText",e.attentionMessageText())("explanationText",e.explanationText())("infoTooltipText",e.infoTooltipText())("selectedOption",e.selectedOption())("showCallToAction",e.showCallToAction()),VD(),IT(n&&e.showCallToAction()?2:-1);}}function jm(t,l){t&1&&Zm$1(0,"cye-spinner");}function Gm(t,l){t&1&&Zm$1(0,"option-selection-error-message");}var $n=(()=>{class t{constructor(){this.LoadingStateEnum=I$2,this.editMode=u$(),this.settingLoadingStatus=u$(),this.settingsUpdateStatus=u$(),this.lastModified=u$(),this.settingsChanged=u$(),this.attentionMessageHeaderText=u$(""),this.attentionMessageText=u$(""),this.explanationText=u$(""),this.infoTooltipText=u$(""),this.settingsLabel=u$(),this.form=u$.required(),this.options=u$([]),this.selectedOption=u$(""),this.optionLabel=u$(),this.headerLabel=u$(),this.callToActionBannerText=u$(),this.callToActionHeader=u$(),this.callToActionParagraphs=u$(),this.callToActionFooter=u$(),this.showCallToAction=u$(false),this.saveClicked=l$(),this.cancelClicked=l$(),this.editModeChange=l$();}ngOnInit(){this.openEditModeIfNavigatedFromCTA();}openEditModeIfNavigatedFromCTA(){let i=history.state,{fromCallToAction:e}=i,n=I$1(i,["fromCallToAction"]);this.editModeChange.emit(!!e),history.pushState(E({},n),"");}onEditModeChange(e){this.editModeChange.emit(e);}
11onSaveChangesClick(){this.saveClicked.emit();}onCancelChanges(){this.cancelClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["option-selection-setting"]],inputs:{editMode:[1,"editMode"],settingLoadingStatus:[1,"settingLoadingStatus"],settingsUpdateStatus:[1,"settingsUpdateStatus"],lastModified:[1,"lastModified"],settingsChanged:[1,"settingsChanged"],attentionMessageHeaderText:[1,"attentionMessageHeaderText"],attentionMessageText:[1,"attentionMessageText"],explanationText:[1,"explanationText"],infoTooltipText:[1,"infoTooltipText"],settingsLabel:[1,"settingsLabel"],form:[1,"form"],options:[1,"options"],selectedOption:[1,"selectedOption"],optionLabel:[1,"optionLabel"],headerLabel:[1,"headerLabel"],callToActionBannerText:[1,"callToActionBannerText"],callToActionHeader:[1,"callToActionHeader"],callToActionParagraphs:[1,"callToActionParagraphs"],callToActionFooter:[1,"callToActionFooter"],showCallToAction:[1,"showCallToAction"]},outputs:{saveClicked:"saveClicked",cancelClicked:"cancelClicked",editModeChange:"editModeChange"},decls:9,vars:5,consts:[[1,"grid-container",3,"with-call-to-action"],[3,"lastModified"],[3,"editModeChange","lastModified"],[1,"grid-container"],[3,"saveClicked","cancelClicked","editMode","form","options","optionLabel","settingsUpdateStatus","settingsLabel","attentionMessageHeaderText","attentionMessageText","explanationText","infoTooltipText","selectedOption","showCallToAction"],[3,"callToActionHeader","callToActionParagraphs","callToActionFooter","bannerText"]],template:function(n,i){if(n&1&&(Og(0)(1),ls$1(2,"header")(3,"label"),mC(4),au(),vT(5,Rm,1,1),au(),vT(6,Um,3,15,"div",0)(7,jm,1,0,"cye-spinner")(8,Gm,1,0,"option-selection-error-message")),n&2){let s,u=EC(i.editMode());VD();let D=EC(i.settingLoadingStatus());VD(3),Mg(i.headerLabel()),VD(),IT(u?-1:5),VD(),IT((s=D)===i.LoadingStateEnum.SUCCESS?6:s===i.LoadingStateEnum.LOADING?7:s===i.LoadingStateEnum.ERROR?8:-1);}},dependencies:[Is,Ls,a,P$1,Ye$2,Fi,Fs],styles:["[_nghost-%COMP%]{display:block;padding:35px 0;box-sizing:border-box;height:100%;width:100%;color:var(--text-color-primary);font:var(--font-12)}[_nghost-%COMP%] header[_ngcontent-%COMP%]{display:flex;flex-flow:row;align-items:center;margin-bottom:25px}[_nghost-%COMP%] header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-18)}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;gap:5px;margin-top:35px}[_nghost-%COMP%] .grid-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr;height:100%}[_nghost-%COMP%] .grid-container.with-call-to-action[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(500px,1fr))}"]});}}return t})();var Ni=(()=>{class t{constructor(){this.modalActiveViewService=T(d$2),this.saveSettingsInputText=Ze(""),this.modalText="";}set context(e){this._context=e,this.modalText=e?.data?.modalText;}onContinueClick(){this.modalActiveViewService.close(this._context.id||"",this.saveSettingsInputText());}onCancelClick(){this.modalActiveViewService.close(this._context.id||"","cancel");}onInputValueChanged(e){this.saveSettingsInputText.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["save-options-settings-modal"]],decls:8,vars:2,consts:[[3,"valueChanged"],[1,"secondary",3,"click"],[3,"click","disabled"]],template:function(n,i){n&1&&(ls$1(0,"p"),mC(1),au(),ls$1(2,"cye-input",0),ig("valueChanged",function(u){return i.onInputValueChanged(u)}),au(),ls$1(3,"footer")(4,"cye-button",1),ig("click",function(){return i.onCancelClick()}),mC(5,"Cancel"),au(),ls$1(6,"cye-button",2),ig("click",function(){return i.onContinueClick()}),mC(7,"Continue"),au()()),n&2&&(VD(),Mg(i.modalText),VD(5),Qm$1("disabled",i.saveSettingsInputText()?.toLowerCase()!=="save"));},dependencies:[Nn$1,Ii$1,fe,a,rt],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column nowrap}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;gap:10px;align-items:center;margin-top:30px;align-self:flex-end}[_nghost-%COMP%] footer[_ngcontent-%COMP%] cye-button[_ngcontent-%COMP%]{width:120px;height:40px}"]});}}return t})();var vo=t=>[...t].sort(Hm).map(l=>({label:l?.name,data:l?.is_primary,value:l?.key??l?.name})),Hm=(t,l)=>t?.is_primary&&!l?.is_primary?-1:l?.is_primary&&!t?.is_primary?1:t?.name?.toLowerCase()?.localeCompare(l?.name?.toLowerCase());var qm=["nist","nist2"],Ns=t=>{let l=t?.value;return typeof l=="string"&&l.length>0&&!qm.includes(l)&&l!==t?.label};function zm(t,l){t&1&&Zm$1(0,"cye-beta-tag",4);}function Qm(t,l){t&1&&(ls$1(0,"span",5),mC(1,"(current Primary)"),au());}function Wm(t,l){if(t&1&&(ls$1(0,"div",2)(1,"div",3)(2,"label"),mC(3),au(),vT(4,zm,1,0,"cye-beta-tag",4),vT(5,Qm,2,0,"span",5),au(),Zm$1(6,"drilldown-links",6),au()),t&2){let e=l.$implicit,n=LT();VD(3),Mg(e?.label),VD(),IT(n.isBetaFramework(e)?4:-1),VD(),IT(e?.data?5:-1),VD(),Qm$1("frameworkItem",e);}}var Rs=(()=>{class t{constructor(){this.frameworks=u$([]),this.fb=T(zn),this.modalHandlingService=T(jt),this.maturitySettingsActionService=T(Nn),this.storeService=T(tn),this.form=this.fb.group({primary_framework:this.fb.control("")}),this.selectedFramework=z$1(this.form.controls.primary_framework.valueChanges),this.frameworksLoadingStatus=z$1(this.storeService.maturityFrameworksLoadingStatus$),this.frameworksUpdateStatus=z$1(this.storeService.maturityFrameworksUpdateStatus$),this.editMode=Ze(false),this.previousFrameworkValue=Ze(""),this.settingsChanged=kt(()=>this.selectedFramework()!==this.previousFrameworkValue()),this.lastModified=z$1(this.storeService.lastModifiedPrimaryFramework$),this.explanationText=kt(()=>this.editMode()?"Select the primary framework to be used to calculate your organization\u2019s maturity:":"This framework will be used to calculate your organization\u2019s maturity."),this.frameworksList=kt(()=>this.frameworks()?vo(this.frameworks()):[]),this.selectedFrameworkLabel=kt(()=>{let e=this.selectedFramework();return this.frameworksList().find(n=>n?.value===e)?.label??e??""}),this.infoTooltipText=`The primary framework is the active framework that 12Cye uses to calculate your organization's maturity scores 13that are used when displaying information in views 14such as the risk dashboard. 15 16Unmapped findings are not linked to any subcategories, so 17they cannot be used in calculations.`,this.settingSaved=l$(),this.LoadingStateEnum=I$2,this.transformFrameworkList=vo,this.isBetaFramework=Ns,vc$1(()=>{let e=this.frameworks().find(i=>i?.is_primary),n=e?.key??e?.name;be$3(()=>{this.form.controls.primary_framework.setValue(n),this.previousFrameworkValue.set(n);});});}onSaveChangesClick(){this.modalHandlingService.saveMaturitySettings(Ni).pipe(rd$1(e=>e?.toLowerCase()==="save"?this.onSaveChanges():this.onCancelChanges())).subscribe();}onSaveChanges(){this.editMode.set(false),this.settingSaved.emit(this.selectedFramework()),this.previousFrameworkValue.set(this.selectedFramework());}onCancelChanges(){this.editMode.set(false),this.form.controls.primary_framework.setValue(this.previousFrameworkValue());}onEditModeChange(e){this.editMode.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["primary-framework-selection"]],inputs:{frameworks:[1,"frameworks"]},outputs:{settingSaved:"settingSaved"},decls:3,vars:11,consts:[["optionLabel",""],["settingsLabel","Primary maturity framework","attentionMessageText","The selected framework will be used for all Cye calculations related to maturity.","attentionMessageHeaderText","Attention!","headerLabel","Maturity",3,"editModeChange","saveClicked","cancelClicked","infoTooltipText","explanationText","editMode","form","settingLoadingStatus","settingsUpdateStatus","lastModified","optionLabel","options","selectedOption","settingsChanged"],[1,"option-label"],[1,"label-container"],["data-testid","framework-beta-tag",1,"beta-tag"],[1,"is-primary"],[3,"frameworkItem"]],template:function(n,i){if
17(n&1&&(Om$1(0,Wm,7,4,"ng-template",null,0,GC),ls$1(2,"option-selection-setting",1),ig("editModeChange",function(u){return i.onEditModeChange(u)})("saveClicked",function(){return i.onSaveChangesClick()})("cancelClicked",function(){return i.onCancelChanges()}),au()),n&2){let s=qT(1);VD(2),Qm$1("infoTooltipText",i.infoTooltipText)("explanationText",i.explanationText())("editMode",i.editMode())("form",i.form)("settingLoadingStatus",i.frameworksLoadingStatus())("settingsUpdateStatus",i.frameworksUpdateStatus())("lastModified",i.lastModified())("optionLabel",s)("options",i.frameworksList())("selectedOption",i.selectedFrameworkLabel())("settingsChanged",i.settingsChanged());}},dependencies:[Nn$1,$n,Xn,s,ks,a,xe,m$2],styles:[".option-label[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;margin:5px 0 20px;cursor:pointer}.option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center}.option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-14-500);white-space:nowrap}.option-label[_ngcontent-%COMP%] .beta-tag[_ngcontent-%COMP%]{margin-left:.5rem}.option-label[_ngcontent-%COMP%] .is-primary[_ngcontent-%COMP%]{margin-left:5px;color:var(--text-color-placeholder);white-space:nowrap}.option-label[_ngcontent-%COMP%] .drilldown-links-container[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0}.option-label[_ngcontent-%COMP%] .drilldown-links-container[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{color:var(--light-blue-500);font:var(--font-12);white-space:nowrap}.option-label[_ngcontent-%COMP%] .drilldown-links-container[_ngcontent-%COMP%] .link[_ngcontent-%COMP%] cye-icon[_ngcontent-%COMP%]{margin-left:5px}"]});}}return t})();var Bs=(()=>{class t{constructor(){this.text=`Your transition to NIST CSF 2.0 will be much easier if you migrate data from 18NIST CSF 1.1 to 2.0. 19 20Data that you migrate will overwrite any existing data in NIST CSF 2.0. 21 22Changes you make after the migration will apply only to the selected 23framework.`,this.activeViewService=T(d$2);}onMigrateClick(){this.activeViewService.dismiss(this.context.id,Ln.MIGRATE);}onCancelClick(){this.activeViewService.dismiss(this.context.id);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["migration-message-modal"]],decls:7,vars:1,consts:[[1,"secondary",3,"click"],[3,"click"]],template:function(n,i){n&1&&(ls$1(0,"p"),mC(1),au(),ls$1(2,"footer")(3,"cye-button",0),ig("click",function(){return i.onCancelClick()}),mC(4,"Not now"),au(),ls$1(5,"cye-button",1),ig("click",function(){return i.onMigrateClick()}),mC(6,"Migrate data"),au()()),n&2&&(VD(),Mg(i.text));},dependencies:[Nn$1,a,rt],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] p[_ngcontent-%COMP%]{white-space:pre;color:var(--text-color-secondary);font:var(--font-12);margin:0}[_nghost-%COMP%] footer[_ngcontent-%COMP%]{align-self:flex-end;display:flex;flex-flow:row;gap:10px;margin-top:55px}"]});}}return t})();var Us=(()=>{class t{constructor(){this.learnMoreClicked=l$();}onLearnMoreClick(){this.learnMoreClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["learn-more"]],outputs:{learnMoreClicked:"learnMoreClicked"},decls:4,vars:0,consts:[[1,"message-text"],[3,"click"]],template:function(n,i){n&1&&(ls$1(0,"span",0),mC(1,"Data migration is available!"),au(),ls$1(2,"cye-button",1),ig("click",function(){return i.onLearnMoreClick()}),mC(3,"Learn more"),au());},dependencies:[Nn$1,a,rt],styles:["[_nghost-%COMP%]{display:flex;flex-flow:row nowrap;gap:25px;align-items:center}"]});}}return t})();var js=(()=>{class t{constructor(){this.migrateClicked=l$();}onMigrateClick(){this.migrateClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["migrate"]],outputs:{migrateClicked:"migrateClicked"},decls:10,vars:0,consts:[[3,"click"]],template:function(n,i){n&1&&(ls$1(0,"p"),mC(1,"Your transition to NIST CSF 2.0 will be much easier if you migrate data from"),Zm$1(2,"br"),mC(3,"NIST CSF 1.1 to 2.0."),au(),ls$1(4,"p"),mC(5,"Data that you migrate will over
23write any existing data in NIST CSF 2.0."),au(),ls$1(6,"p"),mC(7,"Changes you make after the migration will apply only to the selected framework."),au(),ls$1(8,"cye-button",0),ig("click",function(){return i.onMigrateClick()}),mC(9,"Migrate data"),au());},dependencies:[Nn$1,a,rt],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;border-radius:5px;background:var(--bg-secondery-1);width:500px;padding:15px;box-sizing:border-box}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 10px}[_nghost-%COMP%] cye-button[_ngcontent-%COMP%]{align-self:flex-end}"]});}}return t})();function Km(t,l){if(t&1){let e=ST();ls$1(0,"learn-more",0),ig("learnMoreClicked",function(){af(e);let i=LT();return cf(i.onLearnMoreClick())}),au();}}function Ym(t,l){if(t&1){let e=ST();ls$1(0,"migrate",1),ig("migrateClicked",function(){af(e);let i=LT();return cf(i.onMigrateClick())}),au();}}var Gs=(()=>{class t{constructor(){this.learnMore=u$(),this.learnMoreClicked=l$(),this.migrateClicked=l$();}onLearnMoreClick(){this.learnMoreClicked.emit(false);}onMigrateClick(){this.migrateClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["migrate-section"]],inputs:{learnMore:[1,"learnMore"]},outputs:{learnMoreClicked:"learnMoreClicked",migrateClicked:"migrateClicked"},decls:2,vars:1,consts:[[3,"learnMoreClicked"],[3,"migrateClicked"]],template:function(n,i){n&1&&vT(0,Km,1,0,"learn-more")(1,Ym,1,0,"migrate"),n&2&&IT(i.learnMore()?0:1);},dependencies:[Nn$1,Us,js],styles:["[_nghost-%COMP%]{display:block}"]});}}return t})();function Zm(t,l){if(t&1){let e=ST();ls$1(0,"migrate-section",1),ig("learnMoreClicked",function(i){af(e);let s=LT();return cf(s.onLearnMoreClick(i))})("migrateClicked",function(){af(e);let i=LT();return cf(i.onMigrateClick())}),au();}if(t&2){let e=LT();Qm$1("learnMore",e.learnMore());}}function Jm(t,l){if(t&1&&(ls$1(0,"p",2),mC(1,"Data migration status"),au(),ls$1(2,"p",3),mC(3),VC(4,"date"),au()),t&2){let e=LT();VD(3),Sg("NIST CSF 1.1 data was migrated to version 2.0 on ",$C(4,2,e.migrationData()?.timestamp,"MMM dd, yyyy")," by ",e.migrationData()?.author);}}var Hs=(()=>{class t{constructor(){this.isMigrated=u$(),this.migrationData=u$(),this.learnMore=u$(true),this.onLearMoreClicked=l$(),this.onMigrateClicked=l$();}onLearnMoreClick(e){this.onLearMoreClicked.emit(e);}onMigrateClick(){this.onMigrateClicked.emit();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["migration-process"]],inputs:{isMigrated:[1,"isMigrated"],migrationData:[1,"migrationData"],learnMore:[1,"learnMore"]},outputs:{onLearMoreClicked:"onLearMoreClicked",onMigrateClicked:"onMigrateClicked"},decls:2,vars:1,consts:[[3,"learnMore"],[3,"learnMoreClicked","migrateClicked","learnMore"],[1,"message-text"],[1,"data-migrated-message"]],template:function(n,i){n&1&&vT(0,Zm,1,1,"migrate-section",0)(1,Jm,5,5),n&2&&IT(i.isMigrated()?1:0);},dependencies:[Nn$1,Gs,Ln$1],encapsulation:2});}}return t})();var qs=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["maturity-settings-error-message"]],decls:4,vars:0,template:function(n,i){n&1&&(cu(0,"p"),mC(1,"A system error has occurred. Please refresh the page."),lu(),cu(2,"p"),mC(3,"If the problem continues, please contact [email protected]"),lu());},dependencies:[Nn$1],styles:["[_nghost-%COMP%]{display:block;font:var(--font-11)}[_nghost-%COMP%] p[_ngcontent-%COMP%]{color:var(--text-color-error);margin:0}"]});}}return t})();function Xm(t,l){t&1&&Zm$1(0,"cye-spinner");}function e1(t,l){if(t&1){let e=ST();ls$1(0,"migration-process",1),ig("onMigrateClicked",function(){af(e);let i=LT();return cf(i.onMigrateClick())})("onLearMoreClicked",function(i){af(e);let s=LT();return cf(s.onLearnMoreClick(i))}),au();}if(t&2){let e=LT();Qm$1("learnMore",e.learnMore())("isMigrated",e.isMigrated())("migrationData",e.migrationData());}}function t1(t,l){t&1&&Zm$1(0,"maturity-settings-error-message");}var zs=(()=>{class t{constructor(){this.learnMore=Ze(true),this.modalHandlingService=T(jt),this.migrationActionService=T(_),this.migrationData=z$1(this.migrationActionService.migrationData$),this.isMigrated=kt(()=>!!this.migrationData()?.timestamp),this.loadingStatus=z$1(this.migrationActionService.currentMigratingStatus$),this.LoadingStateEnum=I$2;}ngOnInit(){this.migrationActionService.getMigrationData(e.get(S.NIST2));}onMigrateClick(){this.modalHandlingService.migrateFramework(S.NIST2,Bs).pipe(rd$1(()=>this.learnMore.set(true)),pt(e=>e===Ln.MIGRATE),rd$1(()=>this.migrationActionService.migrate(e.get(S.NIST2)))).subscribe();}onLearnMoreClick(e){this.learnMore.set(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["maturity-migration"]],decls:3,vars:1,consts:[[3,"learnMore","isMigrated","migrationData"],[3,"onMigrateClicked","onLearMoreClicked","learnMore","isMigrated","migrationData"]],template:function(n,i){if
23(n&1&&vT(0,Xm,1,0,"cye-spinner")(1,e1,1,3,"migration-process",0)(2,t1,1,0,"maturity-settings-error-message"),n&2){let s;IT((s=i.loadingStatus())===i.LoadingStateEnum.LOADING?0:s===i.LoadingStateEnum.SUCCESS?1:s===i.LoadingStateEnum.ERROR?2:-1);}},dependencies:[Nn$1,a,P$1,Ye$2,Hs,qs],styles:["[_nghost-%COMP%]{display:flex;flex-flow:column;color:var(--text-color-primary);font:var(--font-14);padding:15px 0 0}[_nghost-%COMP%] .message-text[_ngcontent-%COMP%] + .data-migrated-message[_ngcontent-%COMP%]{color:var(--text-color-primary);margin-left:30px}[_nghost-%COMP%] cye-spinner[_ngcontent-%COMP%]{align-self:center;margin-top:25px}"]});}}return t})();function n1(t,l){t&1&&Zm$1(0,"maturity-migration");}var Qs=(()=>{class t{constructor(){this.maturitySettingsActionService=T(Nn),this.storeService=T(tn),this.frameworks=z$1(this.storeService.maturityFrameworks$),this.nist2IsPrimary=kt(()=>!!this.frameworks().find(e=>e.key===n$1.NIST2&&e.is_primary));}ngOnInit(){this.maturitySettingsActionService.getMaturityFrameworks(),this.maturitySettingsActionService.getPrimaryFrameworkLastModified();}onSettingSaved(e){this.maturitySettingsActionService.updatePrimaryFramework(e);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["maturity-settings"]],features:[SC([Nn,tn])],decls:2,vars:2,consts:[[3,"settingSaved","frameworks"]],template:function(n,i){n&1&&(ls$1(0,"primary-framework-selection",0),ig("settingSaved",function(u){return i.onSettingSaved(u)}),au(),vT(1,n1,1,0,"maturity-migration")),n&2&&(Qm$1("frameworks",i.frameworks()),VD(),IT(i.nist2IsPrimary()?1:-1));},dependencies:[Nn$1,Rs,zs],styles:["[_nghost-%COMP%]{display:block;padding:0 15px;box-sizing:border-box}[_nghost-%COMP%] *[_ngcontent-%COMP%]:not(:last-child){border-bottom:1px solid var(--divider-primary)}"]});}}return t})();var Ri=(()=>{class t{constructor(){this.restApiService=T(d$1),this.cancelPendingRequests$=new U$
231;}getVersions(e,n){this.cancelPendingRequests();let i=new y().set("is_v3_metrics_enabled",String(n));return this.restApiService.get("{type}/versions".replace("{type}",e),i).pipe(Dd$1(this.cancelPendingRequests$))}setVersion(e,n){return this.restApiService.patch("{type}/versions".replace("{type}",n),{version:e})}getPrimaryFrameworkLastModified(e,n){return this.restApiService.get("audit_logs/{{company_id}}?page=0&limit=1&entity_type={type}_versions".replace("{{company_id}}",e).replace("{type}",n))}cancelPendingRequests(){this.cancelPendingRequests$.next(true);}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var Bi=(()=>{class t{constructor(){this._versions$=new fr([]),this._versionLoadingStatus$=new fr(I$2.INIT),this._versionUpdateStatus$=new fr(I$2.INIT),this._lastModified$=new fr(null);}set versionUpdateStatus(e){this._versionUpdateStatus$.next(e);}get versionUpdateStatus$(){return this._versionUpdateStatus$.asObservable()}set lastModified(e){this._lastModified$.next(e);}get lastModified$(){return this._lastModified$.asObservable()}set versions(e){this._versions$.next(e);}get versions$(){return this._versions$.asObservable()}set versionLoadingStatus(e){this._versionLoadingStatus$.next(e);}get versionLoadingStatus$(){return this._versionLoadingStatus$.asObservable()}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var Pe=(function(t){return t.V1="v1",t.V2="v2",t.V3="v3",t})(Pe||{});var xo=(()=>{class t{constructor(){this.storeService=T(Bi),this.apiService=T(Ri),this.authActionService=T(Ue$2),this.isV3MetricsEnabled=T(A$2).signal("is_v3_metrics_enabled");}get versions(){return this.storeService.versions$}get loadingStatus(){return this.storeService.versionLoadingStatus$}get updateStatus(){return this.storeService.versionUpdateStatus$}getVersions(e,n){this.storeService.versionLoadingStatus=I$2.LOADING,this.apiService.getVersions(e,this.isV3MetricsEnabled()).pipe(this.handleVersionsResponse(We.GET,n),rd$1(i=>this.storeService.versions=i)).subscribe();}setVersion(e,n,i){this.storeService.versionUpdateStatus=I$2.LOADING,this.apiService.setVersion(e,n).pipe(this.handleVersionsResponse(We.UPDATE,i),rd$1(s=>this.storeService.versions=s),Ed$1(()=>this.authActionService.getUserProfile())).subscribe();}handleVersionsResponse(e,n){return i=>i.pipe(ne(s=>Object.entries(s).map(([u,D])=>{let Me;return typeof D=="object"&&(Me=D.is_selected),{id:u,label:n.get(u),data:typeof D=="boolean"?D:Me,value:n.get(u),extraData:u===Pe.V3}})),rd$1(()=>this.handleSuccess(e)),Ys$1(()=>(this.handleError(e),Oe$1)))}handleSuccess(e){switch(e){case We.GET:this.storeService.versionLoadingStatus=I$2.SUCCESS;break;case We.UPDATE:this.storeService.versionUpdateStatus=I$2.SUCCESS;}}handleError(e){switch(e){case We.GET:this.storeService.versionLoadingStatus=I$2.ER
23ROR;break;case We.UPDATE:this.storeService.versionUpdateStatus=I$2.ERROR;}}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac});}}return t})();var Ws=new Map([[Pe.V1,"Cost of breach V1"],[Pe.V2,"Cost of breach V2"]]);new Map([["Cost of breach V1",Pe.V1],["Cost of breach V2",Pe.V2]]);var Ks=new Map([[Pe.V1,"Likelihood V1"],[Pe.V2,"Likelihood V2"],[Pe.V3,"Likelihood V3"]]),Ys=new Map([["Likelihood V1",Pe.V1],["Likelihood V2",Pe.V2],["Likelihood V3",Pe.V3]]);var So=new Map([["cob",Ws],["lob",Ks]]),Zs=new Map([["cob",xi],["lob",Ys]]);var $o=(()=>{class t{constructor(){this.activatedRoute=T(Y),this.vcRef=T(Ms$1),this.actionService=T(xo),this.activatedRouteData=z$1(this.activatedRoute.data),this.activatedRouteUrl=z$1(this.activatedRoute.url),this.versionList=z$1(this.actionService.versions),this.loadingStatus=z$1(this.actionService.loadingStatus),this.updateStatus=z$1(this.actionService.updateStatus),this.versionsComponent=kt(()=>{if("component"in this.activatedRouteData()){let e=this.activatedRouteData().component;return this.vcRef.createComponent(e)}return null}),this.versionsType=kt(()=>this.activatedRouteUrl()[0]?.path),vc$1(()=>{this.subscribeToOutput();}),vc$1(()=>{this.handleLoading(),this.handleError();}),vc$1(()=>{this.setVersionsDefault();}),vc$1(()=>{this.setVersionType();}),vc$1(()=>{this.handelUpdateError();});}ngOnInit(){this.setInput("loadingStatus",I$2.LOADING);let e=this.versionsType(),n=So.get(e);this.actionService.getVersions(e,n);}setInput(e,n){this.versionsComponent().setInput(e,n);}setVersionsDefault(){this.setInput("versionsList",[]);}handleLoading(){this.loadingStatus()===I$2.SUCCESS&&(this.setInput("versionsList",this.versionList()),this.setInput("loadingStatus",I$2.SUCCESS));}handleError(){this.loadingStatus()===I$2.ERROR&&this.setInput("loadingStatus",I$2.ERROR);}handelUpdateError(){this.updateStatus()===I$2.ERROR&&this.setInput("updateStatus",I$2.ERROR);}setVersionType(){let e=this.versionsType();e&&this.setInput("versionSelectionType",e);}subscribeToOutput(){let e=this.versionsComponent();if(e){let n=e?.instance?.versionSet;n instanceof yo$1&&(this.outputSubscription=n.subscribe(i=>{this.actionService.setVersion(Zs.get(this.versionsType()).get(i),this.versionsType(),So.get(this.versionsType()));}));}}ngOnDestroy(){this.outputSubscription&&this.outputSubscription.unsubscribe();}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["version-selection"]],features:[SC([Ri,Bi,xo])],decls:0,vars:0,template:function(n,i){},dependencies:[Nn$1],encapsulation:2});}}return t})();var Js={title:"Likelihood V2",text:`Upgrade to Likelihood v2 to increase the accuracy of your Likelihood 24and Exposure quantification, provide an exposure reduction value for all 25findings, and enable industry benchmarking for Exposure and 26Likelihood.`},Xs=[{title:"More accurate",text:`Likelihood v2 is more accurate because maturity, all findings, and 27potential attack routes that are common in the industry are incorporated 28in the calculation`},{title:"Accurate calculation of your company's exposure",text:`Exposure v2 uses Likelihood v2 with Cost of Breach v2 to calculate the 29Exposure v2 value that is the most accurate calculation of your 30company's exposure in Cye.`}],ed={title:"To upgrade, select Likelihood v2 and click Save",text:`You can switch back to Likelihood v1 if necessary, but we are confident 31that you will not want to when you experience the benefits of using 32Likelihood v2 in your exposure calculations.`,linkText:"Learn more about Likelihood v2",linkUrl:"https://help.app.cyesec.com/en/articles/365241-likelihood-of-breach"};var Ui=(()=>{class t{constructor(){this.versionsList=u$(),this.loadingStatus=u$(),this.updateStatus=u$(),this.lastModified=u$(),this.versionSelectionType=u$(),this.versionSet=l$(),this.profile=z$1(T(v).profileResponse$),this.currentVersion=kt(()=>this.versionSelectionType()&&this.profile()?this.profile()[`${this.versionSelectionType()}_version`]:null),this.showCallToAction=kt(()=>this.currentVersion()===Pe.V1&&this.versionsList()?.length>1),this.displayedVersionsList=kt(()=>{let e=this.versionsList();if(!e)return e;let n=this.profile(),i=this.versionSelectionType();return !n||!i?e:this.applyVersionConstraints(e,n,i)}),this.modalHandlingService=T(jt),this.VersionsEnum=Pe,this.editMode=Ze(false),this.previousVersion=Ze("");}applyVersionConstraints(e,n,i){return i==="cob"&&n.lob_version===Pe.V3?this.disableVersionsExcept(e,Pe.V2,so.COB_REQUIRES_V2):i==="lob"&&n.cob_version!==Pe.V2?this.disableVersion(e,Pe.V3,so.LOB_V3_REQUIRES_COB_V2):e}disableVersionsExcept(e,n,i){return e.map(s=>s.id!==n?F$1(E({},s),{disabled:true,toolTipText:i}):s)}disableVersion(e,n,i){return e.map(s=>s.id===n?F$1(E({},s),{disabled:true,toolTipText:i}):s)}onEditModeChange(e){this.editMode.set(e);}onSaveChangesClick(e,n,i="cob"){this.modalHandlingService.saveSettings(Ni,i).pipe(rd$1(s=>s?.toLowerCase()===ro.SAVE?this.onSaveChanges(e):this.onCancelChanges(n))).subscribe();}onSaveChanges(e){this.editMode.set(false),this.versionSet.emit(e),this.previousVersion.set(e);}onCancelChanges(e){this.editMode.set(false),e.setValue(this.previousVersion());}init(e){vc$1(()=>
32{if(!this.versionsList())return;let n=this.versionsList().find(i=>i?.data)?.label;be$3(()=>{e.setValue(n),this.previousVersion.set(n);});});}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["version-selection-base"]],inputs:{versionsList:[1,"versionsList"],loadingStatus:[1,"loadingStatus"],updateStatus:[1,"updateStatus"],lastModified:[1,"lastModified"],versionSelectionType:[1,"versionSelectionType"]},outputs:{versionSet:"versionSet"},decls:0,vars:0,template:function(n,i){},dependencies:[Nn$1],styles:["[_nghost-%COMP%]{display:flex;flex-flow:row nowrap;height:calc(100% - 55px);padding-bottom:40px}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;margin:5px 0 20px;cursor:pointer}[_nghost-%COMP%] .option-label.disabled[_ngcontent-%COMP%]{opacity:40%;cursor:not-allowed}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-14-500);white-space:nowrap}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] .is-new[_ngcontent-%COMP%]{color:var(--white);font:var(--font-12-500);background:var(--info-500);border-radius:20px;padding:2px 10px;margin-left:10px}[_nghost-%COMP%] .is-selected[_ngcontent-%COMP%]{margin-left:5px;color:var(--text-color-placeholder);white-space:nowrap}"]});}}return t})();function i1(t,l){t&1&&(ls$1(0,"span",4),mC(1,"New"),au());}function o1(t,l){if(t&1&&(ls$1(0,"div",2)(1,"div",3)(2,"label"),mC(3),au(),vT(4,i1,2,0,"span",4),au()()),t&2){let e=l.$implicit;yg("disabled",!!e?.disabled),Qm$1("canShowTooltip",!!e?.disabled)("tooltip",e?.toolTipText),VD(3),Mg(e?.label),VD(),IT(e?.extraData?4:-1);}}var td=(()=>{class t extends Ui{get versionControl(){return this.form.controls.exposure}constructor(){super(),this.fb=T(zn),this.form=this.fb.group({exposure:this.fb.control("exposure")}),this.selectedVersion=z$1(this.form.controls.exposure.valueChanges),this.settingsChanged=kt(()=>this.selectedVersion()!==this.previousVersion()),this.settingsLabel=kt(()=>this.editMode()?"Select the Likelihood version":"Selected version"),this.explanationText=kt(()=>this.editMode()?"":"Cye will use this version for all calculations related to exposure in Cye."),this.callToActionBannerText=Ze("New Likelihood Version"),this.callToActionHeader=Ze(Js),this.callToActionParagraphs=Ze(Xs),this.callToActionFooter=Ze(ed),this.init(this.versionControl);}onEditModeChange(e){super.onEditModeChange(e);}onCancelChanges(){super.onCancelChanges(this.versionControl);}onSaveChangesClick(){super.onSaveChangesClick(this.selectedVersion(),this.versionControl,"lob");}onSaveChanges(){this.editMode.set(false),this.versionSet.emit(this.selectedVersion()),this.previousVersion.set(this.selectedVersion());}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["exposure-settings"]],features:[Rm$1],decls:3,vars:16,consts:[["optionLabel",""],["attentionMessageText","The selected version will be used for all calculations related to Likelihood and Exposure in Cye.","attentionMessageHeaderText","Attention!","headerLabel","Likelihood",3,"editModeChange","saveClicked","cancelClicked","settingsLabel","explanationText","editMode","form","settingLoadingStatus","settingsUpdateStatus","lastModified","optionLabel","options","selectedOption","settingsChanged","callToActionBannerText","callToActionHeader","callToActionParagraphs","callToActionFooter","showCallToAction"],[1,"option-label",3,"canShowTooltip","tooltip"],[1,"label-container"],[1,"is-new"]],template:function(n,i){if(n&1&&(Om$1(0,o1,5,6,"ng-template",null,0,GC),ls$1(2,"option-selection-setting",1),ig("editModeChange",function(u){return i.onEditModeChange(u)})("saveClicked",function(){return i.onSaveChangesClick()})("cancelClicked",function(){return i.onCancelChanges()}),au()),n&2){let s=qT(1);VD(2),Qm$1("settingsLabel",i.settingsLabel())("explanationText",i.explanationText())("editMode",i.editMode())("form",i.form)("settingLoadingStatus",i.loadingStatus())("settingsUpdateStatus",i.updateStatus())("lastModified",i.lastModified())("optionLabel",s)("options",i.displayedVersionsList())("selectedOption",i.selectedVersion())("settingsChanged",i.settingsChanged())("callToActionBannerText",i.callToActionBannerText())("c
32allToActionHeader",i.callToActionHeader())("callToActionParagraphs",i.callToActionParagraphs())("callToActionFooter",i.callToActionFooter())("showCallToAction",i.showCallToAction());}},dependencies:[Nn$1,$n,he,ne$1],styles:["[_nghost-%COMP%]{display:flex;flex-flow:row nowrap;height:calc(100% - 55px);padding-bottom:40px}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;margin:5px 0 20px;cursor:pointer}[_nghost-%COMP%] .option-label.disabled[_ngcontent-%COMP%]{opacity:40%;cursor:not-allowed}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-14-500);white-space:nowrap}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] .is-new[_ngcontent-%COMP%]{color:var(--white);font:var(--font-12-500);background:var(--info-500);border-radius:20px;padding:2px 10px;margin-left:10px}[_nghost-%COMP%] .is-selected[_ngcontent-%COMP%]{margin-left:5px;color:var(--text-color-placeholder);white-space:nowrap}"]});}}return t})();var Mo=(()=>{class t{constructor(){this.authService=T(v),this.router=T(F);}canActivate(e,n){return this.authService.profileResponse$.pipe(pt(i=>!!i),ne(i=>{let s=i?.role,u=u$1.contains(i?.company?.views,e.data.roles)&&s===I.ADMIN;return u||this.router.navigate(["/settings"]),u}))}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275prov=$({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();var nd={title:"Cost of Breach V2",text:`Upgrade to Cost of Breach v2 to enhance the accuracy of your cost of 33breach and exposure quantification.`},id=[{title:"Greater precision",text:`This version offers greater precision by integrating your maturity 34assessment values and an expanded dataset of historical cybersecurity 35loss incidents.`},{title:"Relevant NIST CSF subcategories",text:`The CoB questionnaire now incorporates relevant NIST CSF 36subcategories, enabling maturity levels for specific subcategories to be 37included in the CoB calculation.`},{title:"Objective and accurate",text:`The security questionnaire for CoB was replaced by maturity data which 38is more objective and accurate.`},{title:"Extensive set of cyber loss data ",text:`Cye uses a significantly more extensive set of cyber loss data 39references to calculate and verify CoB accuracy.`}],od={title:"To upgrade, select Cost of breach V2 and click Save.",text:`You can always switch back to Cost of Breach V1 if needed, but we are 40confident that you won't want to go back once you experience the 41benefits of using Cost of Breach V2.`,linkText:"Learn more about Cost of Breach v2",linkUrl:"https://help.app.cyesec.com/en/collections/851693-cost-of-breach-v2"};function r1(t,l){t&1&&(ls$1(0,"span",4),mC(1,"New"),au());}function a1(t,l){if(t&1&&(ls$1(0,"div",2)(1,"div",3)(2,"label"),mC(3),au(),vT(4,r1,2,0,"span",4),au()()),t&2){let e=l.$implicit;yg("disabled",!!e?.disabled),Qm$1("canShowTooltip",!!e?.disabled)("tooltip",e?.toolTipText),VD(3),Mg(e?.label),VD(),IT(e?.extraData?4:-1);}}var rd=(()=>{class t extends Ui{get versionControl(){return this.form.controls.cob_version}constructor(){super(),this.fb=T(zn),this.form=this.fb.group({cob_version:this.fb.control("cob_version")}),this.selectedVersion=z$1(this.form.controls.cob_version.valueChanges),this.settingsChanged=kt(()=>this.selectedVersion()!==this.previousVersion()),this.settingsLabel=kt(()=>this.editMode()?"Select the cost of breach (CoB) version":"Selected version"),this.explanationText=kt(()=>this.editMode()?"":"Cye will use this version to calculate your organization's CoB and in exposure calculations."),this.callToActionBannerText=Ze("New Cost of Breach Version"),this.callToActionHeader=Ze(nd),this.callToActionParagraphs=Ze(id),this.callToActionFooter=Ze(od),this.init(this.versionControl);}onEditModeChange(e){super.onEditModeChange(e);}onCancelChanges(){super.onCancelChanges(this.versionControl);}onSaveChangesClick(){super.onSaveChangesClick(this.selectedVersion(),this.versionControl,"cob");}onSaveChanges(){this.editMode.set(false),this.versionSet.emit(this.selectedVersion()),this.previousVersion.set(this.selectedVersion());}static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275cmp=gw({type:t,selectors:[["cob-settings"]],features:[Rm$1],decls:3,vars:16,consts:[["optionLabel",""],["attentionMessageText","The selected version will be used for all Cye calculations related to cost of breach and exposure in Cye.","attentionMessageHeaderText","Attention!","headerLabel","Cost of breach",3,"editModeChange","saveClicked","cancelClicked","settingsLabel","explanationText","editMode","form","settingLoadingStatus","settingsUpdateStatus","lastModified","optionLabel","options","selectedOption","settingsChanged","callToActionBannerText","callToActionHeader","callToActionParagraphs","callToActionFooter","showCallToAction"],[1,"option-label",3,"canShowTooltip","tooltip"],[1,"label-container"],[1,"is-new"]],template:function(n,i){if
41(n&1&&(Om$1(0,a1,5,6,"ng-template",null,0,GC),ls$1(2,"option-selection-setting",1),ig("editModeChange",function(u){return i.onEditModeChange(u)})("saveClicked",function(){return i.onSaveChangesClick()})("cancelClicked",function(){return i.onCancelChanges()}),au()),n&2){let s=qT(1);VD(2),Qm$1("settingsLabel",i.settingsLabel())("explanationText",i.explanationText())("editMode",i.editMode())("form",i.form)("settingLoadingStatus",i.loadingStatus())("settingsUpdateStatus",i.updateStatus())("lastModified",i.lastModified())("optionLabel",s)("options",i.displayedVersionsList())("selectedOption",i.selectedVersion())("settingsChanged",i.settingsChanged())("callToActionBannerText",i.callToActionBannerText())("callToActionHeader",i.callToActionHeader())("callToActionParagraphs",i.callToActionParagraphs())("callToActionFooter",i.callToActionFooter())("showCallToAction",i.showCallToAction());}},dependencies:[$n,he,ne$1],styles:["[_nghost-%COMP%]{display:flex;flex-flow:row nowrap;height:calc(100% - 55px);padding-bottom:40px}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;margin:5px 0 20px;cursor:pointer}[_nghost-%COMP%] .option-label.disabled[_ngcontent-%COMP%]{opacity:40%;cursor:not-allowed}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;align-items:center}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font:var(--font-14-500);white-space:nowrap}[_nghost-%COMP%] .option-label[_ngcontent-%COMP%] .label-container[_ngcontent-%COMP%] .is-new[_ngcontent-%COMP%]{color:var(--white);font:var(--font-12-500);background:var(--info-500);border-radius:20px;padding:2px 10px;margin-left:10px}[_nghost-%COMP%] .is-selected[_ngcontent-%COMP%]{margin-left:5px;color:var(--text-color-placeholder);white-space:nowrap}"]});}}return t})();var s1=[{path:"",component:Ea,children:[{path:"",redirectTo:"profile",pathMatch:"full"},{path:"profile",component:hs,data:{pageTitle:"Settings",showHeader:true}},{path:"company",component:Pa,data:{pageTitle:"Settings",showHeader:true}},{path:"members",data:{pageTitle:"Settings",showHeader:true},loadChildren:()=>import('./chunk-S8-mQq24.js').then(function(n){return n.c}).then(t=>t.MembersGroupsModule),canActivate:[M1,lL],canDeactivate:[C$1]},{path:"account",component:pa,data:{pageTitle:"Settings",showHeader:true}},{path:"token",component:Ts,data:{pageTitle:"Settings",showHeader:true}},{path:"maturity",component:Qs,data:{pageTitle:"Settings",showHeader:true},canActivate:[lL]},{path:"cob",component:$o,data:{pageTitle:"Settings",showHeader:true,component:rd,roles:[A$1.ORGANIZATION_COB_V1,A$1.ORGANIZATION_COB_V2]},canActivate:[Mo,lL]},{path:"lob",component:$o,data:{pageTitle:"Settings",showHeader:true,component:td,roles:[A$1.ORGANIZATION_LOB_V1,A$1.ORGANIZATION_LOB_V2]},canActivate:[Mo,lL]},{path:"notifications",loadChildren:()=>Promise.resolve().then(function(){return chunkAIEW623Z}).then(t=>t.NotificationsPageModule),canMatch:[Vn$1("workato_overlap_deprecation","/settings")],canActivate:[qo]},{path:"licenses",component:Za,canActivate:[uL,lL],canDeactivate:[C$1],data:{pageTitle:"Customers manager",showHeader:true}},{path:"companies",component:es,canActivate:[uL,lL],data:{pageTitle:"Customers manager",showHeader:true}},{path:"licenses-v2",component:gs,canActivate:[uL,lL],data:{pageTitle:"License Packages",showHeader:true}},{path:"threats",data:{pageTitle:"Threat Sources",showHeader:true,view:A$1.THREATS_AND_BUSINESS_ASSETS},loadComponent:()=>Promise.resolve().then(function(){return chunkBRG65CB6}).then(t=>t.ThreatsPageComponent),canActivate:[M1,L1,lL]},{path:"businessassets",data:{pageTitle:"Business Assets",showHeader:true,view:A$1.THREATS_AND_BUSINESS_ASSETS},loadComponent:()=>Promise.resolve().then(function(){return chunkNOP4ZZ5X}).then(t=>t.BusinessAssetsPageComponent),canActivate:[M1,L1,lL]},{path:"media-library",data:{pageTitle:"Media Library",showHeader:true},loadComponent:()=>Promise.resolve().then(function(){return chunkVPQGYK2X}).then(t=>t.MediaLibraryPageComponent),canMatch:[o("media_library")],canActivate:[M1,lL]}]}],_y=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)};}static{this.\u0275mod=_m$1({type:t});}static{this.\u0275inj=_a$1({providers:[bn,ro$1,Ut,kc$1,jt,_,m,D],imports:[fs,oe,q,fm$1,Nn$1,Tt,Xn,Zn,x,be$1,nr,Ee$1,Be$1,a,xe,ep$1,Ii$1,Fe$1,Ye$2,Yr,we$1,Fe$2,ie,he,H,Ut$1,Zn,C,qe$1,Vi$1,Xn,Ut$1,ia$1.forChild(s1),Ei,Oi]});}}return t})(); 42var chunkAIEW623Z=/*#__PURE__*/Object.freeze({__proto__:null,NotificationConditionsTooltipComponent:ti,NotificationsApiService:Yt,NotificationsPageModule:go$2,NotificationsRecipientsTooltipComponent:ii,NotificationsService:O,NotificationsWizardActionsStepComponent:Ht$3,NotificationsWizardComponent:ei,NotificationsWizardConditionComponent:qt,NotificationsWizardConditionsStepComponent:Qt,NotificationsWizardEmailActionComponent:Bt,NotificationsWizardEventStepComponent:Jt,NotificationsWizardReviewStepComponent:Kt$1,NotificationsWizardSuccessComponent:Zt$2,SettingsNotificationsComponent:ni});var chunkBRG65CB6=/*#__PURE__*/Object.freeze({__proto__:null,ThreatsPageComponent:mt});var chunkNOP4ZZ5X=/*#__PURE__*/Object.freeze({__proto__:null,BusinessAssetsPageComponent:Lt});var chunkVPQGYK2X=/*#__PURE__*/Object.freeze({__proto__:null,MediaLibraryPageComponent:mr,MediaUploadHeaderButtonComponent:xr});export{Lt as BusinessAssetsPageComponent,Ne as BusinessAssetsService,ma as ForceCompanyTfaVerificationComponent,Ta as ProfileCompletePipe,Sa as SamlSettingsComponent,pa as SettingsAccountInfoComponent,da as SettingsChangePassComponent,Pa as SettingsCompanyInfoComponent,ka as SettingsCompletePieChartComponent,Ea as SettingsComponent,Oa as SettingsDashboardComponent,_y as SettingsModule,hs as SettingsPersonalInfoComponent,la as SettingsTfaInfoComponent,ca as SettingsTfaSettingComponent,mt as ThreatsPageComponent,Ca as UpdateCompanyLogoComponent};
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.