PageSourceSearch

https://id.metunic.com.tr/resources/h5qjc/login/metunic/dist/assets/NewPolicyDialog.js

js metunic.com.tr collected 2026-10-02 17:36:26 UTC 35,781 bytes, 1 lines download raw bytes

1import{r as g,j as e}from"./index.js";import{j as ze,U as q,bl as xe,_ as rt,e as lt,a6 as ct,a7 as dt,a8 as pt,a9 as ut,V as mt,c as fe,Z as ht,$ as xt,d as ft,o as P,aA as te,a4 as re,q as V,Y as gt,aZ as Be,X as ne,aY as We,aT as Ye,aU as Je,ab as ge,ad as je,a0 as Me,af as ve,al as Pe,aS as jt,H as Ct,E as St,aV as Ae,T as yt,G as Ee,bC as Tt}from"./index2.js";import{b as B,C as _,u as It,F as vt}from"./index.esm.js";import{u as se,g as le,a as bt,ad as Ot,_ as Ze,a4 as Pt,e as kt,f as Fe,ah as we,a9 as Ve,ae as Dt}from"./KcAdminUi.js";import{u as Xe}from"./ConfirmDialog.js";import{F as $t}from"./FormAccess.js";import{V as Rt}from"./ViewHeader.js";import{u as ce}from"./useParams.js";import{u as ke}from"./useIsAdminPermissionsClient.js";import{H as L}from"./HelpItem.js";import{a as U,A as Mt}from"./FormGroup.js";import{R as de}from"./ScrollForm.js";import{a as Ce}from"./SelectControl.js";import{K as Qe}from"./KeycloakSelect.js";import{u as et,m as tt}from"./useLocaleSort.js";import{L as At,a as ue,c as me,d as Q,e as K,f as he,g as z}from"./PaginatingTableToolbar.js";import{a as Et,b as Ft,S as ie}from"./SelectOption.js";import{C as st,a as nt}from"./ChipGroup.js";import{C as wt}from"./ClientSelect.js";import{K as Vt}from"./KeycloakDataTable.js";import{h as _t}from"./ClientScopeTypes.js";import{g as Nt}from"./utils.js";import{F as _e}from"./filter-icon.js";import{M as De}from"./minus-circle-icon.js";import{T as pe}from"./TextControl.js";import{G as Ht,A as Lt,S as Ut}from"./AddRoleMappingModal.js";import{C as Gt}from"./CodeEditor.js";import{T as qt}from"./TextAreaControl.js";import{S as Kt}from"./SwitchControl.js";import{D as zt}from"./SwitchControl2.js";import{H as Bt,c as Wt,F as be}from"./FormLabel.js";import{d as Se,D as Yt}from"./DatePicker.js";import{S as it,a as oe}from"./SplitItem.js";import{N as Jt}from"./NumberInput.js";import{d as Zt}from"./debounce.js";import{T as Xt,a as Qt,b as es}from"./TextInputGroupUtilities.js";const Z=" AM",X=" PM",ts=(s,n,o,c,d,l)=>{const a=[],u=new Date(new Date().setHours(0,0,0,0)),m=u.getDay();for(;u.getDay()===m;){let h=u.getHours(),t=Z;n&&(h===0?h=12:h>=12&&(t=X),h>12&&(h%=12)),h=n?h.toString():h.toString().padStart(2,"0");const i=u.getMinutes().toString().padStart(2,"0"),r=`${h}${o}${i}${n?t:""}`;at(c,d,r,o,l)&&a.push(r),u.setMinutes(u.getMinutes()+s)}return a},J=(s,n,o,c,d)=>{const l=new Date(s);
1if(!isNaN(l.getDate())&&(s instanceof Date||s.includes("T"))){const a=c?`${l.getHours()>12?l.getHours()-12:l.getHours()}`:`${l.getHours()}`.padStart(2,"0"),u=`${l.getMinutes()}`.padStart(2,"0"),m=d?`${l.getSeconds()}`.padStart(2,"0"):"",h=m?`${o}${m}`:"";let t="";return c&&l.getHours()>11?t=X:c&&(t=Z),`${a}${o}${u}${h}${t}`}else if(typeof s=="string"&&(s=s.trim(),s!==""&&ot(s,n,o,c))){const[,a,u,m,h=""]=n.exec(s),t=d?`${o}${m??"00"}`:"";let i="";if(c){const r=h.toUpperCase();r===Z.toUpperCase().trim()?i=Z:r===X.toUpperCase().trim()?i=X:i=new Date().getHours()>11?X:Z}return`${a}${o}${u}${t}${i}`}return s.toString()},ot=(s,n,o,c)=>{const d=new Date(s);if(!isNaN(d.getDate())&&s.includes("T"))return!0;const l=parseInt(s.split(o)[0]),a=l>=(c?1:0)&&l<=(c?12:23);return s===""||n.test(s)&&a},Ne=(s,n)=>{const o=s.match(n);return o&&o.length?/pm/i.test(o[4])?parseInt(o[1])===12?parseInt(o[1]):parseInt(o[1])+12:/am/i.test(o[4])&&parseInt(o[1])===12?0:parseInt(o[1]):null},He=(s,n)=>{const o=s.match(n);return o&&o.length?parseInt(o[2]):null},Le=(s,n)=>{var o;const c=(o=s.match(n))===null||o===void 0?void 0:o[3];return c?parseInt(c):null},at=(s,n,o,c,d)=>{if(o.trim()==="")return!0;const l=ye(s,c,d),a=ye(o,c,d),u=ye(n,c,d);return l<=a&&a<=u},ye=(s,n,o)=>{const d=new RegExp(`^\\s*(\\d\\d?)${n}([0-5]\\d)${n}?([0-5]\\d)?\\s*([AaPp][Mm])?\\s*$`).exec(s);if(!d||!d.length)return;let l=d[1].padStart(2,"0");const a=d[2];let u=d[3]?`${n}${d[3]}`:"";!u&&o&&(u=`${n}00`);const m=d[4]||"";return m.toUpperCase()==="PM"&&l!=="12"?l=`${parseInt(l)+12}`:m.toUpperCase()==="AM"&&l==="12"&&(l="00"),`${l}${n}${a}${u}`},ss={name:"OutlinedClockIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm0 448c-110.5 0-200-89.5-200-200S145.5 56 256 56s200 89.5 200 200-89.5 200-200 200zm61.8-104.4l-84.9-61.7c-3.1-2.3-4.9-5.9-4.9-9.7V116c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v141.7l66.8 48.6c5.4 3.9 6.5 11.4 2.6 16.8L334.6 349c-3.9 5.3-11.4 6.5-16.8 2.6z",yOffset:0,xOffset:0},ns=ze(ss),is={name:"--pf-v5-c-date-picker__input--c-form-control--Width",value:"calc(10 * 1ch + calc(2rem + 0.5rem))",var:"var(--pf-v5-c-date-picker__input--c-form-control--Width)"};class $e extends g.Component{constructor(n){super(n),this.baseComponentRef=g.createRef(),this.toggleRef=g.createRef(),this.inputRef=g.createRef(),this.menuRef=g.createRef(),this.onDocClick=t=>{var i,r,p,x;const S=(r=(i=this.toggleRef)===null||i===void 0?void 0:i.current)===null||r===void 0?void 0:r.contains(t.target),C=(x=(p=this.menuRef)===null||p===void 0?void 0:p.current)===null||x===void 0?void 0:x.contains(t.target);this.state.isTimeOptionsOpen&&!(S||C)&&this.onToggle(!1)},this.handleGlobalKeys=t=>{var i,r,p,x;const{isTimeOptionsOpen:S,focusedIndex:C,scrollIndex:b}=this.state;!((r=(i=this.inputRef)===null||i===void 0?void 0:i.current)===null||r===void 0)&&r.contains(t.target)?!S&&t.key!==q.Tab&&t.key!==q.Escape?this.onToggle(!0):S&&(t.key===q.Escape||t.key===q.Tab?this.onToggle(!1):t.key===q.Enter?C!==null?(this.focusSelection(C),t.stopPropagation()):this.onToggle(!1):(t.key===q.ArrowDown||t.key===q.ArrowUp)&&(this.focusSelection(b),this.updateFocusedIndex(0),t.preventDefault())):!((x=(p=this.menuRef)===null||p===void 0?void 0:p.current)===null||x===void 0)&&x.contains(t.target)&&(t.key===q.ArrowDown?(this.updateFocusedIndex(1),t.preventDefault()):t.key===q.ArrowUp?(this.updateFocusedIndex(-1),t.preventDefault()):(t.key===q.Escape||t.key===q.Tab)&&(this.inputRef.current.focus(),this.onToggle(!1)))},this.updateFocusedIndex=t=>{this.setState(i=>{const r=this.getOptions().length-1;let p=i.focusedIndex!==null?i.focusedIndex+t:i.scrollIndex+t;return p<0?p=r:p>r&&(p=0),this.scrollToIndex(p),{focusedIndex:p}})},this.getIndexToScroll=t=>this.props.menuAppendTo==="inline"?t>0?t-1:0:t,this.scrollToIndex=t=>{this.getOptions()[t].closest(`.${xe.menuContent}`).scrollTop=this.getOptions()[this.getIndexToScroll(t)].offsetTop},this.focusSelection=t=>{var i;const r=t!==-1?t:0;!((i=this.menuRef)===null||i===void 0)&&i.current&&this.getOptions()[r].querySelector(`.${xe.menuItem}`).focus()},this.scrollToSelection=t=>{const{delimiter:i,is24Hour:r}=this.props;let p=t.split(this.props.delimiter),x=null;if(p.length<2?(t=`${t}${i}00`,p=t.split(i)):p.length>2&&(t=J(t,this.state.timeRegex,i,!r,!1),p=t.split(i)),!r&&p.length>1&&p[1].length<2){const C=p[1].length===0?"00":p[1]+"0";t=`${p[0]}${i}${C}${new Date().getHours()>11?X:Z}`}else!r&&p.length>1&&p[1].length===2&&!t.toUpperCase().includes(Z.toUpperCase().trim())&&!t.toUpperCase().includes(X.toUpperCase().trim())&&(t=`${t}${new Date().getHours()>11?X:Z}`);let S=this.getOptions().findIndex(C=>C.textContent===t);if(S!==-1)this.scrollToIndex(S),x=S;else if(p.length===2){let C="";r||(p[1].toUpperCase().includes("P")?C=X:p[1].toUpperCase().includes("A")&&(C=Z)),t=`${p[0]}${i}00${C}`,S=this.getOptions().findIndex(b=>b.textContent===t),S!==-1&&this.scrollToIndex(S)}this.setState({focusedIndex:x,scrollIndex:S})},this.getRegExp=(t=!0)=>{const{is24Hour:i,delimiter:r}=this.props;let p=`\\s*(\\d\\d?)${r}([0-5]\\d)`;return t&&(p+=`${r}?([0-5]\\d)?`),new RegExp(`^${p}${i?"":"\\s*([AaPp][Mm])?"}\\s*$`)},this.getOptions=()=>{var t;return!((t=this.menuRef)===null||t===void 0)&&t.current?Array.from(this.menuRef.current.querySelectorAll(`.${xe.menuListItem}`)):[]},this.isValidFormat=t=>{if(this.props.validateTime)return this.props.validateTime(t);const{delimiter:i,is24Hour:r,includeSeconds:p}=this.props;return ot(t,this.getRegExp(p),i,!r)},this.isValidTime=t=>{const{delimiter:i,includeSeconds:r}=this.props,{minTimeState:p,maxTimeState:x}=this.state;return at(p,x,t,i,r)},this.isValid=t=>this.isValidFormat(t)&&this.isValidTime(t),this.onToggle=t=>{this.setState(i=>{const{timeRegex:r,isInvalid:p,timeState:x}=i,{delimiter:S,is24Hour:C,includeSeconds:b,onChange:F}
1=this.props,k=J(x,r,S,!C,b);return F&&!t&&k!==x&&F(null,k,Ne(k,r),He(k,r),Le(k,r),this.isValid(k)),{isTimeOptionsOpen:t,timeState:k,isInvalid:t?p:!this.isValid(k)}}),this.props.setIsOpen(t),t||this.inputRef.current.focus()},this.onSelect=t=>{const{timeRegex:i,timeState:r}=this.state,{delimiter:p,is24Hour:x,includeSeconds:S,setIsOpen:C}=this.props,b=J(t.target.textContent,i,p,!x,S);b!==r&&this.onInputChange(t,b),this.inputRef.current.focus(),this.setState({isTimeOptionsOpen:!1,isInvalid:!1}),C(!1)},this.onInputClick=t=>{this.state.isTimeOptionsOpen||this.onToggle(!0),t.stopPropagation()},this.onInputChange=(t,i)=>{const{onChange:r}=this.props,{timeRegex:p}=this.state;r&&r(t,i,Ne(i,p),He(i,p),Le(i,p),this.isValid(i)),this.scrollToSelection(i),this.setState({timeState:i})};const{is24Hour:o,delimiter:c,time:d,includeSeconds:l,isOpen:a}=this.props;let{minTime:u,maxTime:m}=this.props;if(u===""){const t=l?`${c}00`:"";u=o?`00${c}00${t}`:`12${c}00${t} AM`}if(m===""){const t=l?`${c}59`:"";m=o?`23${c}59${t}`:`11${c}59${t} PM`}const h=this.getRegExp();this.state={isInvalid:!1,isTimeOptionsOpen:a,timeState:J(d,h,c,!o,l),focusedIndex:null,scrollIndex:0,timeRegex:h,minTimeState:J(u,h,c,!o,l),maxTimeState:J(m,h,c,!o,l)}}componentDidMount(){document.addEventListener("mousedown",this.onDocClick),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys),this.setState({isInvalid:!this.isValid(this.state.timeState)})}componentWillUnmount(){document.removeEventListener("mousedown",this.onDocClick),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}componentDidUpdate(n,o){const{timeState:c,isTimeOptionsOpen:d,isInvalid:l,timeRegex:a}=this.state,{time:u,is24Hour:m,delimiter:h,includeSeconds:t,isOpen:i,minTime:r,maxTime:p}=this.props;if(n.isOpen!==i&&this.onToggle(i),d&&!o.isTimeOptionsOpen&&c&&!l&&this.scrollToSelection(c),h!==n.delimiter&&this.setState({timeRegex:this.getRegExp()}),u!==""&&u!==n.time){const x=J(u,a,h,!m,t);this.setState({timeState:x,isInvalid:!this.isValid(x)})}r!==""&&r!==n.minTime&&this.setState({minTimeState:J(r,a,h,!m,t)}),p!==""&&p!==n.maxTime&&this.setState({maxTimeState:J(p,a,h,!m,t)})}
1render(){const n=this.props,{"aria-label":o,isDisabled:c,className:d,placeholder:l,id:a,menuAppendTo:u,is24Hour:m,invalidFormatErrorMessage:h,invalidMinMaxErrorMessage:t,stepMinutes:i,width:r,delimiter:p,inputProps:x,onChange:S,setIsOpen:C,isOpen:b,time:F,validateTime:k,minTime:R,maxTime:G,includeSeconds:I,zIndex:v}=n,j=rt(n,["aria-label","isDisabled","className","placeholder","id","menuAppendTo","is24Hour","invalidFormatErrorMessage","invalidMinMaxErrorMessage","stepMinutes","width","delimiter","inputProps","onChange","setIsOpen","isOpen","time","validateTime","minTime","maxTime","includeSeconds","zIndex"]),{timeState:M,isTimeOptionsOpen:N,isInvalid:T,minTimeState:y,maxTimeState:A}=this.state,$={[is.name]:r},W=ts(i,!m,p,y,A,I),E=this.isValidFormat(M),f=a||lt("time-picker"),Y=()=>this.baseComponentRef&&this.baseComponentRef.current?this.baseComponentRef.current.parentElement:null,O=g.createElement(ct,{ref:this.menuRef,isScrollable:!0},g.createElement(dt,{maxMenuHeight:"200px"},g.createElement(pt,{"aria-label":o},W.map((w,ee)=>g.createElement(ut,{onClick:this.onSelect,key:w,id:`${f}-option-${ee}`},w))))),D=g.createElement(mt,Object.assign({"aria-haspopup":"menu",id:`${f}-input`,"aria-label":o,validated:T?"error":"default",placeholder:l,value:M||"",type:"text",customIcon:g.createElement(ns,null),onClick:this.onInputClick,onChange:this.onInputChange,autoComplete:"off",isDisabled:c,isExpanded:N,ref:this.inputRef},x));let H;switch(u){case"inline":H=()=>this.toggleRef.current;break;case"parent":H=Y;break;default:H=u}return g.createElement("div",{ref:this.baseComponentRef,className:fe(Se.datePicker,d)},g.createElement("div",Object.assign({className:fe(Se.datePickerInput),style:$},j),g.createElement(ht,null,g.createElement(xt,null,g.createElement("div",{id:f},g.createElement("div",{ref:this.toggleRef,style:{paddingLeft:"0"}},g.createElement(ft,{appendTo:H,trigger:D,triggerRef:this.toggleRef,popper:O,popperRef:this.menuRef,isVisible:N,zIndex:v}))))),T&&g.createElement("div",{className:fe(Se.datePickerHelperText)},g.createElement(Bt,null,g.createElement(Wt,{variant:"error"},E?t:h)))))}}$e.displayName="TimePicker";$e.defaultProps={className:"",isDisabled:!1,time:"",is24Hour:!1,invalidFormatErrorMessage:"Invalid time format",invalidMinMaxErrorMessage:"Invalid time entered",placeholder:"hh:mm",delimiter:":","aria-label":"Time picker",width:"150px",menuAppendTo:"inline",stepMinutes:30,inputProps:{},minTime:"",maxTime:"",isOpen:!1,setIsOpen:()=>{},zIndex:9999};const os={name:"CaretUpIcon",height:512,width:320,svgPath:"M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z",yOffset:0,xOffset:0},as=ze(os),rs=({name:s,label:n,helpText:o,defaultValue:c,isRequired:d,variant:l="typeaheadMulti"})=>{const{adminClient:a}=se(),{t:u}=P(),{control:m,getValues:h,formState:{errors:t}}=B(),i=h(s),[r,p,x]=le(),[S,C]=g.useState([]),[b,F]=g.useState([]),[k,R]=g.useState(""),[G,I]=g.useState(""),v=g.useRef(),j=g.useCallback(Zt(I,500),[]);te(async()=>i?(await Promise.all(i.map(y=>a.users.findOne({id:y})))).filter(y=>y!==void 0):[],T=>{var y;C(T),l!=="typeaheadMulti"&&R(((y=T[0])==null?void 0:y.username)||"")},[i]),te(async()=>a.users.find({username:G,max:20}),F,[G]),g.useEffect(()=>{(!i||i.length===0)&&(C([]),R(""))},[i]);const M=g.useMemo(()=>[...S,...b],[S,b]),N=T=>T.map(y=>e.jsx(ie,{value:y.id,selected:i==null?void 0:i.includes(y.id),children:y.username},y.id));return e.jsxs(U,{label:u(n),isRequired:d,labelIcon:e.jsx(L,{helpText:o,fieldLabelId:u(n)}),fieldId:s,children:[e.jsx(_,{name:s,defaultValue:c,control:m,rules:d&&l==="typeaheadMulti"?{validate:T=>T.length>0}:{required:d},render:({field:T})=>e.jsx(Et,{id:s,onOpenChange:p,toggle:y=>e.jsx(re,{"data-testid":s,ref:y,variant:"typeahead",onClick:p,isExpanded:r,isFullWidth:!0,status:t[s]?"danger":void 0,children:e.jsxs(Xt,{isPlain:!0,children:[e.jsx(Qt,{value:k,onClick:p,onChange:(A,$)=>{x(!0),R($),j($)},autoComplete:"off",innerRef:v,placeholderText:u("selectAUser"),...T.value&&{"aria-activedescendant":T.value},role:"combobox",isExpanded:r,"aria-controls":"select-create-typeahead-listbox",children:l==="typeaheadMulti"&&Array.isArray(T.value)&&e.jsx(st,{"aria-label":"Current selections",children:T.value.map((A,$)=>{var W;return e.jsx(nt,{onClick:E=>{E.stopPropagation(),T.onChange(T.value.filter(f=>f!==A))},children:(W=M.find(E=>(E==null?void 0:E.id)===A))==null?void 0:W.username},$)})})}),e.jsx(es,{children:!!G&&e.jsx(V,{variant:"plain",onClick:()=>{var A;R(""),I(""),T.onChange([]),(A=v==null?void 0:v.current)==null||A.focus()},"aria-label":"Clear input value",children:e.jsx(gt,{"aria-hidden":!0})})})]})}),isOpen:r,selected:T.value,onSelect:(y,A)=>{var W;const $=A==null?void 0:A.toString();if(l!=="typeaheadMulti"){const E=T.value.includes($);E?T.onChange([]):T.onChange([$]),R(E?"":((W=M.find(f=>(f==null?void 0:f.id)===$))==null?void 0:W.username)||""),x(!1)}else{const E=T.value.find(f=>f===$)?T.value.filter(f=>f!==$):[...T.value,$];T.onChange(E)}},"aria-label":u(s),children:e.jsx(Ft,{children:N(b)})})}),t[s]&&e.jsx(be,{message:u("required")})]})},Te=["UNANIMOUS","AFFIRMATIVE","CONSENSUS"],ls=({helpLabel:s,isDisabled:n=!1,isLimited:o=!1})=>{const{t:c}=P(),{control:d}=B();return e.jsx(U,{label:c("decisionStrategy"),labelIcon:e.jsx(L,{helpText:c(s||"decisionStrategyHelp"),fieldLabelId:"decisionStrategy"}),fieldId:"decisionStrategy",hasNoPaddingTop:!0,children:e.jsx(_,{name:"decisionStrategy","data-testid":"decisionStrategy",defaultValue:Te[0],control:d,render:({field:l})=>e.jsx(e.Fragment,{children:(o?Te.slice(0,2):Te).map(a=>e.jsx(de,{id:a,"data-testid":a,isChecked:l.value===a,isDisabled:n,name:"decisionStrategy",onChange:()=>l.onChange(a),label:c(`decisionStrategies.${a}`),className:"pf-v5-u-mb-md"},a))})})})},cs={resources:{searchFunction:"listResources",fetchFunction:"getAssociatedResources"},policies:{searchFunction:"listPolicies",fetchFunction:"getAssociatedPolicies"}},ds=({name:s,clientId:n,permissionId:o,variant:c=Ce.typeaheadMulti,preSelected:d,isRequired:l=!1})=>{const{adminClient:a}=se(),{realm:u}=bt(),{t:m}=P(),h=Be(),{control:t,formState:{errors:i,isDirty:r}}=B(),[p,x]=g.useState([]),[S,C]=g.useState(""),[b,F]=g.useState(!1),[k,R]=le(),[G,I]=g.useState(),[v,j]=g.useState(),M=ke(n),N=cs[s],T=f=>({id:"_id"in f?f._id:"id"in f?f.id:void 0,name:f.name,type:f.type});
1te(async()=>{const f=Object.assign({id:n,first:0,max:10,permission:"false"},S===""?null:{name:S});return await Promise.all([a.clients.listPolicyProviders({id:n}),a.clients[N.searchFunction](f),o?a.clients[N.fetchFunction]({id:n,permissionId:o}):Promise.resolve([]),d&&s==="resources"?a.clients.getResource({id:n,resourceId:d}):Promise.resolve([])])},([f,...Y])=>{I(f.filter(O=>O.type!=="resource"&&O.type!=="scope")),x(Y.flat().filter(O=>typeof O!="string").map(T).filter(({id:O},D,H)=>D===H.findIndex(({id:w})=>O===w)))},[S]);const[y,A]=Xe({titleKey:m("unsavedChangesTitle"),messageKey:m("unsavedChangesConfirm"),continueButtonLabel:m("continue"),continueButtonVariant:ne.danger,onConfirm:()=>v==null?void 0:v()}),$=f=>s==="policies"?Ze({realm:u,id:n,policyId:f.id,policyType:f.type}):Pt({realm:u,id:n,resourceId:f.id}),W=()=>p.map(f=>e.jsx(ie,{value:f.id,children:f.name},f.id)),E=f=>{var Y;return e.jsx(st,{children:(Y=f.value)==null?void 0:Y.map(O=>{const D=p.find(w=>w.id===O);if(!D)return;const H=$(D);return e.jsx(nt,{onClick:()=>{var w;f.onChange((w=f.value)==null?void 0:w.filter(ee=>ee!==D.id))},children:e.jsx(We,{to:H,onClick:w=>{r&&(w.preventDefault(),j(()=>()=>h(H)),y())},children:D.name})},D.id)})})};return e.jsxs(e.Fragment,{children:[e.jsx(A,{}),k&&e.jsx(vs,{policyProviders:G,onSelect:f=>{h(Ot({id:n,realm:u,policyType:f.type}))},toggleDialog:R}),e.jsx(_,{name:s,defaultValue:d?[d]:[],control:t,rules:{validate:f=>!l||f.length>0},render:({field:f})=>{var Y;return e.jsx(Qe,{toggleId:s,variant:c,onToggle:O=>F(O),onFilter:O=>(C(O),W()),onClear:()=>{f.onChange([]),C("")},selections:c===Ce.typeaheadMulti?f.value:(Y=p.find(O=>{var D;return O.id===((D=f.value)==null?void 0:D[0])}))==null?void 0:Y.name,onSelect:O=>{var H;const D=O.toString();if(c===Ce.typeaheadMulti){const w=(H=f.value)!=null&&H.find(ee=>ee===D)?f.value.filter(ee=>ee!==D):[...f.value,D];f.onChange(w)}else f.onChange([D]);C("")},isOpen:b,"aria-label":m(s),validated:i[s]?"error":"default",typeAheadAriaLabel:m(s),chipGroupComponent:E(f),footer:s==="policies"&&!M?e.jsx(V,{variant:"link",isInline:!0,onClick:()=>{r?(F(!1),j(()=>R),y()):R()},children:m("createPolicy")}):void 0,children:W()})}})]})},ps=()=>{const{t:s}=P(),{id:n}=ce(),{permissionClientId:o}=ce();return e.jsxs(e.Fragment,{children:[e.jsx(U,{label:s("applyPolicy"),fieldId:"policies",labelIcon:e.jsx(L,{helpText:s("applyPolicyHelp"),fieldLabelId:"policies"}),children:e.jsx(ds,{name:"policies",clientId:o||n})}),e.jsx(ls,{helpLabel:"policyDecisionStagey"})]})},us=()=>{const{t:s}=P();return e.jsx(wt,{name:"clients",label:s("clients"),helpText:s("policyClientHelp"),required:!0,defaultValue:[],variant:"typeaheadMulti",clientKey:"id"})},ms=({clientScopes:s,clientName:n,open:o,toggleDialog:c,onAdd:d,isClientScopesConditionType:l})=>{const{t:a}=P(),[u,m]=g.useState(!1),[h,t]=g.useState([]),[i,r]=g.useState("Name"),[p,x]=g.useState("All"),[S,C]=le(),[b,F]=le(!1),k=g.useMemo(()=>p==="OpenID Connect"?s.filter(j=>j.protocol==="openid-connect"):p==="SAML"?s.filter(j=>j.protocol==="saml"):s,[s,i,p]),R=j=>{const M=h.map(N=>({scope:N,type:j}));d(M),m(!1),c()},G=j=>{j==="Name"?r("Protocol"):j==="Protocol"&&(r("Name"),x("All")),C()},I=j=>{j==="SAML"?x("SAML"):j==="OpenID Connect"?x("OpenID Connect"):j==="All"&&x("All"),F()},v=[e.jsx(ie,{value:"SAML",children:a("protocolTypes.saml")},1),e.jsx(ie,{value:"OpenID Connect",children:a("protocolTypes.openid-connect")},2),e.jsx(ie,{value:"All",children:a("protocolTypes.all")},3)];return e.jsx(Ye,{variant:Je.medium,title:l?a("addClientScope"):a("addClientScopesTo",{clientName:n}),isOpen:o,onClose:c,actions:l?[e.jsx(V,{id:"modal-add","data-testid":"confirm",variant:ne.primary,onClick:()=>{const j=h.map(M=>({scope:M}));d(j),c()},isDisabled:h.length===0,children:a("add")},"add"),e.jsx(V,{id:"modal-cancel","data-testid":"cancel",variant:ne.link,onClick:()=>{t([]),c()},children:a("cancel")},"cancel")]:[e.jsx(ge,{popperProps:{direction:"up"},onOpenChange:j=>m(j),className:"keycloak__client-scopes-add__add-dropdown",isOpen:u,toggle:j=>e.jsx(re,{ref:j,isDisabled:h.length===0,onClick:()=>m(!u),variant:"primary",id:"add-dropdown","data-testid":"add-dropdown",statusIcon:e.jsx(as,{}),children:a("add")}),children:e.jsx(je,{children:_t(a,R)})},"add-dropdown"),e.jsx(V,{id:"modal-cancel",variant:ne.link,onClick:()=>{t([]),c()},children:a("cancel")},"cancel")],children:e.jsx(Vt,{loader:k,ariaLabelKey:"chooseAMapperType",searchPlaceholderKey:i==="Name"?"searchForClientScope":void 0,isSearching:i!=="Name",searchTypeComponent:e.jsx(ge,{onSelect:()=>{G(i)},onOpenChange:C,toggle:j=>e.jsx(re,{ref:j,"data-testid":"filter-type-dropdown",id:"toggle-id-9",onClick:C,icon:e.jsx(_e,{}),statusIcon:e.jsx(Me,{}),children:i}),isOpen:S,children:e.jsx(je,{children:e.jsx(ve,{"data-testid":"filter-type-dropdown-item",children:a(i==="Name"?"protocol":"name")},"filter-type")})}),toolbarItem:i==="Protocol"&&e.jsxs(e.Fragment,{children:[e.jsx(ge,{onSelect:()=>{G(i)},onOpenChange:C,"data-testid":"filter-type-dropdown",toggle:j=>e.jsx(re,{ref:j,id:"toggle-id-9",onClick:C,statusIcon:e.jsx(Me,{}),icon:e.jsx(_e,{}),children:i}),isOpen:S,children:e.jsx(je,{children:e.jsx(ve,{"data-testid":"filter-type-dropdown-item",children:a("name")},"filter-type")})}),e.jsx(Qe,{className:"kc-protocolType-select","aria-label":a("selectOne"),onToggle:F,onSelect:j=>I(j.toString()),selections:p,isOpen:b,children:v})]}),canSelectAll:!0,onSelect:j=>t(j),columns:[{name:"name"},{name:"protocol",displayKey:"protocol",cellRenderer:j=>Nt(a,j.protocol??"openid-connect")},{name:"description"}],emptyState:e.jsx(At,{message:a("emptyAddClientScopes"),instructions:a("emptyAddClientScopesInstructions")})})})},hs=()=>{const{adminClient:s}=se(),{t:n}=P(),{control:o,getValues:c,setValue:d}=B(),[l,a]=g.useState(!1),[u,m]=g.useState([]),[h,t]=g.useState([]),i=et();return te(()=>s.clientScopes.find(),(r=[])=>{const p=c("clientScopes")||[];t(p.map(x=>r.find(S=>S.id===x.id))),m(i(r,tt("name")))},[]),e.jsxs(U,{label:n("clientScopes"),labelIcon:e.jsx(L,{helpText:n("clientsClientScopesHelp"),fieldLabelId:"clientScopes"}),fieldId:"clientScopes",children:[e.jsx(_,{name:"clientScopes",control:o,defaultValue:[],render:({field:r})=>e.jsxs(e.Fragment,{children:[l&&e.jsx(ms,{clientScopes:u.filter(p=>!r.value.map(x=>
1x.id).includes(p.id)),isClientScopesConditionType:!0,open:l,toggleDialog:()=>a(!l),onAdd:p=>{t([...h,...p.map(x=>x.scope)]),r.onChange([...r.value,...p.map(x=>x.scope).map(x=>({id:x.id,required:!1}))])}}),e.jsx(V,{"data-testid":"select-scope-button",variant:"secondary",onClick:()=>{a(!0)},children:n("addClientScopes")})]})}),h.length>0&&e.jsxs(ue,{variant:"compact",children:[e.jsx(me,{children:e.jsxs(Q,{children:[e.jsx(K,{children:n("clientScopeTitle")}),e.jsx(K,{children:n("required")}),e.jsx(K,{"aria-hidden":"true"})]})}),e.jsx(he,{children:h.map((r,p)=>e.jsxs(Q,{children:[e.jsx(z,{children:r.name}),e.jsx(z,{children:e.jsx(_,{name:`clientScopes.${p}.required`,defaultValue:!1,control:o,render:({field:x})=>e.jsx(Pe,{id:"required","data-testid":"standard",name:"required",isChecked:x.value,onChange:x.onChange})})}),e.jsx(z,{children:e.jsx(V,{variant:"link",className:"keycloak__client-authorization__policy-row-remove",icon:e.jsx(De,{}),onClick:()=>{d("clientScopes",[...c("clientScopes").filter(x=>x.id!==r.id)]),t([...h.filter(x=>x.id!==r.id)])}})})]},r.id))})]})]})},xs=()=>{const{adminClient:s}=se(),{t:n}=P(),{control:o,getValues:c,setValue:d}=B(),l=c("groups"),[a,u]=g.useState(!1),[m,h]=g.useState([]);return te(()=>l&&l.length>0?Promise.all(l.map(t=>s.groups.findOne({id:t.id}))):Promise.resolve([]),t=>{const i=t.filter(r=>r);h(i)},[]),e.jsxs(e.Fragment,{children:[e.jsx(pe,{name:"groupsClaim",label:n("groupsClaim"),labelIcon:n("groupsClaimHelp")}),e.jsxs(U,{label:n("groups"),labelIcon:e.jsx(L,{helpText:n("policyGroupsHelp"),fieldLabelId:"groups"}),fieldId:"groups",children:[e.jsx(_,{name:"groups",control:o,defaultValue:[],render:({field:t})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(Ht,{type:"selectMany",text:{title:"addGroupsToGroupPolicy",ok:"add"},onConfirm:i=>{t.onChange([...t.value||[],...(i||[]).map(({id:r})=>({id:r}))]),h([...m,...i||[]]),u(!1)},onClose:()=>{u(!1)},filterGroups:m}),e.jsx(V,{"data-testid":"select-group-button",variant:"secondary",onClick:()=>{u(!0)},children:n("addGroups")})]})}),m.length>0&&e.jsxs(ue,{variant:"compact",children:[e.jsx(me,{children:e.jsxs(Q,{children:[e.jsx(K,{children:n("groups")}),e.jsx(K,{children:n("extendToChildren")}),e.jsx(K,{"aria-hidden":"true"})]})}),e.jsx(he,{children:m.map((t,i)=>e.jsxs(Q,{children:[e.jsx(z,{children:t.path}),e.jsx(z,{children:e.jsx(_,{name:`groups.${i}.extendChildren`,defaultValue:!1,control:o,render:({field:r})=>e.jsx(Pe,{id:"extendChildren","data-testid":"standard",name:"extendChildren",isChecked:r.value,onChange:r.onChange,isDisabled:t.subGroupCount===0})})}),e.jsx(z,{children:e.jsx(V,{variant:"link",className:"keycloak__client-authorization__policy-row-remove",icon:e.jsx(De,{}),onClick:()=>{d("groups",[...(l||[]).filter(({id:r})=>r!==t.id)]),h([...m.filter(({id:r})=>r!==t.id)])}})})]},t.id))})]})]})]})},fs=()=>{const{t:s}=P(),{control:n}=B();return e.jsx(U,{label:s("code"),labelIcon:e.jsx(L,{helpText:s("policyCodeHelp"),fieldLabelId:"code"}),fieldId:"code",isRequired:!0,children:e.jsx(_,{name:"code",defaultValue:"",control:n,render:({field:o})=>e.jsx(Gt,{id:"code","data-testid":"code",readOnly:!0,value:o.value,language:"js",height:600})})})},Ue=["POSITIVE","NEGATIVE"],gs=({isDisabled:s})=>{const{t:n}=P(),{control:o}=B();return e.jsx(U,{label:n("logic"),labelIcon:e.jsx(L,{helpText:n("logicHelp"),fieldLabelId:"logic"}),fieldId:"logic",hasNoPaddingTop:!0,children:e.jsx(_,{name:"logic","data-testid":"logic",defaultValue:Ue[0],control:o,render:({field:c})=>e.jsx(e.Fragment,{children:Ue.map(d=>e.jsx(de,{id:d,"data-testid":d,isChecked:c.value===d,name:"logic",onChange:()=>c.onChange(d),label:n(`logicType.${d.toLowerCase()}`),className:"pf-v5-u-mb-md",isDisabled:s},d))})})})},js=({isDisabled:s,clientId:n})=>{const{t:o}=P(),c=ke(n);return e.jsxs(e.Fragment,{children:[e.jsx(pe,{name:"name",label:o("name"),labelIcon:c?o("permissionNameHelpText"):"",rules:{required:o("required")},isDisabled:s}),e.jsx(qt,{name:"description",label:o("description"),rules:{maxLength:{message:o("maxLength",{length:255}),value:255}},isDisabled:s})]})},Cs=()=>{const{t:s}=P();return e.jsxs(e.Fragment,{children:[e.jsx(pe,{name:"targetClaim",label:s("targetClaim"),labelIcon:s("targetClaimHelp"),rules:{required:s("required")}}),e.jsx(pe,{name:"pattern",label:s("regexPattern"),labelIcon:s("regexPatternHelp"),rules:{required:s("required")}}),e.jsx(Kt,{name:"targetContextAttributes",label:s("targetContextAttributes"),labelIcon:s("targetContextAttributesHelp"),labelOn:s("yes"),labelOff:s("no")})]})},Ss=()=>{const{adminClient:s}=se(),{t:n}=P(),{control:o,getValues:c,setValue:d}=B(),l=c("roles"),[a,u]=g.useState(!1),[m,h]=g.useState([]);return te(async()=>
1{if(l&&l.length>0){const t=await Promise.all(l.map(i=>s.roles.findOneById({id:i.id})));return Promise.all(t.map(async i=>({role:i,client:i.clientRole?await s.clients.findOne({id:i==null?void 0:i.containerId}):void 0})))}return Promise.resolve([])},h,[]),e.jsxs(e.Fragment,{children:[e.jsxs(U,{label:n("roles"),labelIcon:e.jsx(L,{helpText:n("policyRolesHelp"),fieldLabelId:"roles"}),fieldId:"roles",children:[e.jsx(_,{name:"roles",control:o,defaultValue:[],render:({field:t})=>e.jsxs(e.Fragment,{children:[a&&e.jsx(Lt,{id:"role",type:"roles",onAssign:i=>{t.onChange([...t.value||[],...i.map(r=>({id:r.role.id}))]),h([...m,...i]),u(!1)},onClose:()=>{u(!1)},isLDAPmapper:!0}),e.jsx(V,{"data-testid":"select-role-button",variant:"secondary",onClick:()=>{u(!0)},children:n("addRoles")})]})}),m.length>0&&e.jsxs(ue,{variant:"compact",children:[e.jsx(me,{children:e.jsxs(Q,{children:[e.jsx(K,{children:n("roles")}),e.jsx(K,{children:n("required")}),e.jsx(K,{"aria-hidden":"true"})]})}),e.jsx(he,{children:m.map((t,i)=>e.jsxs(Q,{children:[e.jsx(z,{children:e.jsx(Ut,{role:t.role,client:t.client})}),e.jsx(z,{children:e.jsx(_,{name:`roles.${i}.required`,defaultValue:!1,control:o,render:({field:r})=>e.jsx(Pe,{id:"required","data-testid":"standard",name:"required",isChecked:r.value,onChange:r.onChange})})}),e.jsx(z,{children:e.jsx(V,{variant:"link",className:"keycloak__client-authorization__policy-row-remove",icon:e.jsx(De,{}),onClick:()=>{d("roles",[...(l||[]).filter(r=>r.id!==t.role.id)]),h([...m.filter(r=>r.role.id!==t.role.id)])}})})]},t.role.id))})]})]}),e.jsx(zt,{name:"fetchRoles",label:n("fetchRoles"),labelIcon:n("fetchRolesHelp")})]})},Ie=/(\d\d\d\d-\d\d-\d\d)? (\d\d?):(\d\d?)/,Ge=s=>s.toString().padStart(2,"0"),qe=({name:s})=>{const{control:n}=B(),o=(d,l)=>{if(!l)return d;const a=Ie.exec(d);return`${[l.getFullYear(),Ge(l.getMonth()+1),Ge(l.getDate())].join("-")} ${a?a[2]:"00"}:${a?a[3]:"00"}:00`},c=(d,l,a)=>{const u=Ie.exec(d);return a!=null?`${u?u[1]:""} ${l}:${a<10?`0${a}`:a}:00`:d};return e.jsx(_,{name:s,defaultValue:"",control:n,rules:{required:!0},render:({field:d})=>{const l=d.value.match(Ie)||["","","0","00"];return e.jsxs(it,{hasGutter:!0,id:s,children:[e.jsx(oe,{children:e.jsx(Yt,{value:l[1],onChange:(a,u,m)=>{d.onChange(o(d.value,m))}})}),e.jsx(oe,{children:e.jsx($e,{time:`${l[2]}:${l[3]}`,onChange:(a,u,m,h)=>d.onChange(c(d.value,m,h)),is24Hour:!0})})]})}})},Ke=({name:s,min:n,max:o})=>{const{control:c}=B(),d=l=>Math.min(l,o);return e.jsx(_,{name:s,defaultValue:"",control:c,render:({field:l})=>e.jsx(Jt,{id:s,value:l.value,min:n,max:o,onPlus:()=>l.onChange(Number(l.value)+1),onMinus:()=>l.onChange(Number(l.value)-1),onChange:a=>{const u=Number(a.currentTarget.value);l.onChange(d(isNaN(u)?0:u))}})})},ae=({name:s,...n})=>{const{t:o}=P();return e.jsx(U,{label:o(s),fieldId:s,labelIcon:e.jsx(L,{helpText:o(`${s}Help`),fieldLabelId:s}),children:e.jsxs(it,{hasGutter:!0,children:[e.jsx(oe,{children:e.jsx(Ke,{name:s,...n})}),e.jsx(oe,{children:o("to")}),e.jsx(oe,{children:e.jsx(Ke,{name:`${s}End`,...n})})]})})},ys=()=>{const{t:s}=P(),{getValues:n,formState:{errors:o}}=B(),[c,d]=g.useState(n("month"));return e.jsxs(e.Fragment,{children:[e.jsx(U,{label:s("repeat"),fieldId:"repeat",labelIcon:e.jsx(L,{helpText:s("repeatHelp"),fieldLabelId:"repeat"}),children:e.jsxs(kt,{children:[e.jsx(Fe,{children:e.jsx(de,{id:"notRepeat","data-testid":"notRepeat",isChecked:!c,name:"repeat",onChange:()=>d(!1),label:s("notRepeat"),className:"pf-v5-u-mb-md"})}),e.jsx(Fe,{children:e.jsx(de,{id:"repeat","data-testid":"repeat",isChecked:c,name:"repeat",onChange:()=>d(!0),label:s("repeat"),className:"pf-v5-u-mb-md"})})]})}),c&&e.jsxs(e.Fragment,{children:[e.jsx(ae,{name:"month",min:1,max:12}),e.jsx(ae,{name:"dayMonth",min:1,max:31}),e.jsx(ae,{name:"hour",min:0,max:23}),e.jsx(ae,{name:"minute",min:0,max:59})]}),e.jsxs(U,{label:s("startTime"),fieldId:"notBefore",labelIcon:e.jsx(L,{helpText:s("startTimeHelp"),fieldLabelId:"startTime"}),isRequired:!0,children:[e.jsx(qe,{name:"notBefore"}),o.notBefore&&e.jsx(be,{message:s("required")})]}),e.jsxs(U,{label:s("expireTime"),fieldId:"notOnOrAfter",labelIcon:e.jsx(L,{helpText:s("expireTimeHelp"),fieldLabelId:"expireTime"}),isRequired:!0,children:[e.jsx(qe,{name:"notOnOrAfter"}),o.notOnOrAfter&&e.jsx(be,{message:s("required")})]})]})},Ts=()=>{const{t:s}=P();return e.jsx(rs,{name:"users",label:"users",helpText:s("policyUsers"),defaultValue:[],variant:"typeaheadMulti"})},Oe={aggregate:ps,client:us,user:Ts,"client-scope":hs,group:xs,regex:Cs,role:Ss,time:ys,js:fs},Re=s=>s in Oe;function Is(){const{adminClient:s}=se(),{t:n}=P(),{id:o,realm:c,policyId:d,policyType:l}=ce(),{permissionClientId:a}
1=ce(),u=Be(),m=It(),{reset:h,handleSubmit:t}=m,{addAlert:i,addError:r}=jt(),[p,x]=g.useState(),S=l==="js",C=ke(a);te(async()=>{if(d){const I=await Promise.all([s.clients.findOnePolicy({id:a??o,type:l,policyId:d}),s.clients.getAssociatedPolicies({id:a??o,permissionId:d})]);if(!I[0])throw new Error(n("notFound"));return{policy:I[0],policies:I[1].map(v=>v.id)}}return{}},({policy:I,policies:v})=>{h({...I,policies:v}),x(I)},[a,o,l,d]);const b=async I=>{var M,N,T;I.groups=(M=I.groups)==null?void 0:M.filter(y=>y.id),I.clientScopes=(N=I.clientScopes)==null?void 0:N.filter(y=>y.id),I.roles=(T=I.roles)==null?void 0:T.filter(y=>y.id).map(y=>({...y,required:y.required||!1}));const v=C?a:o,j=C?Dt:Ze;try{if(d)await s.clients.updatePolicy({id:v,type:l,policyId:d},I);else{const y=await s.clients.createPolicy({id:v,type:l},I);u(j({realm:c,id:v,permissionClientId:v,policyId:y.id,policyType:y.type}))}i(n((d?"update":"create")+"PolicySuccess"),Ae.success)}catch(y){r("policySaveError",y)}},[F,k]=Xe({titleKey:"deletePolicy",messageKey:"deletePolicyConfirm",continueButtonLabel:"confirm",onConfirm:async()=>{try{await s.clients.delPolicy({id:C?a:o,policyId:d}),i(n("policyDeletedSuccess"),Ae.success),u(C?we({realm:c,permissionClientId:a,tab:"policies"}):Ve({realm:c,clientId:o,tab:"policies"}))}catch(I){r("policyDeletedError",I)}}});if(d&&!p)return e.jsx(Ct,{});function R(){return Re(l)?Oe[l]:Oe.js}const G=R();return e.jsxs(e.Fragment,{children:[e.jsx(k,{}),e.jsx(Rt,{titleKey:d?p==null?void 0:p.name:n("createPolicyOfType",{policyType:l}),dropdownItems:d?[e.jsx(ve,{"data-testid":"delete-policy",onClick:()=>F(),children:n("delete")},"delete")]:void 0}),e.jsx(St,{variant:"light",children:e.jsxs($t,{isHorizontal:!0,onSubmit:t(I=>b(I)),role:"anyone",children:[e.jsxs(vt,{...m,children:[e.jsx(js,{isDisabled:S}),e.jsx(G,{}),e.jsx(gs,{isDisabled:S})]}),e.jsx(Mt,{children:e.jsxs("div",{className:"pf-v5-u-mt-md",children:[e.jsx(V,{isDisabled:S,variant:ne.primary,className:"pf-v5-u-mr-md",type:"submit","data-testid":"save",children:n("save")}),e.jsx(V,{variant:"link","data-testid":"cancel",component:I=>e.jsx(We,{...I,to:C?we({realm:c,permissionClientId:a,tab:"policies"}):Ve({realm:c,clientId:o,tab:"policies"})}),children:n("cancel")})]})})]})})]})}const ln=Object.freeze(Object.defineProperty({__proto__:null,default:Is,isValidComponentType:Re},Symbol.toStringTag,{value:"Module"})),vs=({policyProviders:s,onSelect:n,toggleDialog:o})=>{const{t:c}=P(),d=et(),l=g.useMemo(()=>s?d(s,tt("name")):[],[s]);return e.jsx(Ye,{"aria-label":c("createPolicy"),variant:Je.medium,header:e.jsxs(yt,{children:[e.jsx(Ee,{component:Tt.h1,children:c("chooseAPolicyType")}),e.jsx(Ee,{children:c("chooseAPolicyTypeInstructions")})]}),isOpen:!0,onClose:o,children:e.jsxs(ue,{"aria-label":c("policies"),variant:"compact",children:[e.jsx(me,{children:e.jsxs(Q,{children:[e.jsx(K,{children:c("name")}),e.jsx(K,{children:c("description")})]})}),e.jsx(he,{children:l.map(a=>e.jsxs(Q,{"data-testid":a.type,onRowClick:()=>n(a),isClickable:!0,children:[e.jsx(z,{children:a.name}),e.jsx(z,{style:{textWrap:"wrap"},children:Re(a.type)&&c(`policyProvider.${a.type}`)})]},a.type))})]})})};export{ms as A,us as C,ls as D,xs as G,fs as J,gs as L,vs as N,ln as P,ds as R,ys as T,rs as U,ps as a,Ts as b,hs as c,Cs as d,Ss as e,js as f};

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.