PageSourceSearch

https://console.loginradius.com/assets/js/CIioKOrT.js

js loginradius.com collected 2026-10-02 02:17:13 UTC 4,907 bytes, 1 lines download raw bytes

1import{bM as e,bO as s,r as i,gw as t,gx as a,cu as r,bq as o,c_ as n,b4 as l,b3 as d,gy as c}from"./MZk2sk3Q.js";import{F as p,t as u,T as m,e as h,d as f,z as g,G as j,B as S,a as x,ar as y}from"./r_90E_HP.js";import{P as b}from"./BoE8QyMS.js";import{J as I}from"./BsjEILgs.js";import{F as C}from"./D6oVoAjQ.js";import{R as A}from"./CAiux6Ce.js";import{T as k}from"./D5_PwlkE.js";import"./BM-92CBZ.js";const E={BasicConfiguration:!1,EmailFlow:!1,EmailTemplates:!1,EmailProviderSettings:!1,EmailRequestControlSettings:!1,SmsTemplates:!1,SmsProviderSettings:!1,SmsRequestControlSettings:!1,CallbackUrl:!1,Features:!1,Integrations:!1,PasswordEncryptionSettings:!1,TraditionalFormSchema:!1,CustomObject:!1,SecurityQuestionAnswer:!1,SecondFactorAuthentication:!1,HostedPageSettings:!1},L=e(e=>({configurationList:e.platformConfiguration.getConfigurationList,deployConfigurationResp:e.platformConfiguration.transferConfigurations,yourSites:e.auth.yourSites}))(({i18n:e,configurationList:L,deployConfigurationResp:F,yourSites:v})=>{const w=s(),[O,P]=i.useState([]),[T,z]=i.useState([]),[N,R]=i.useState([]),[q,V]=i.useState(""),[_,D]=i.useState(""),[G,U]=i.useState(!1),[B,K]=i.useState(!1),[M,Y]=i.useState(E),[$]=p.useForm();p.useWatch("destAppId",$);const[H,J]=i.useState([]);i.useEffect(()=>{L.isSuccess?P(W(L.data)):w(t())},[]),i.useEffect(()=>{v.isSuccess?(z(Q()),R(Q())):w(a())},[]),u(()=>{F.isSuccess?(r("success",`Selected configurations have been successfully transferred from '${q}' to '${_}'.`),U(!1),J([]),$.resetFields()):F.isError&&r("error",F.error)},[F.isLoading]),u(()=>{v.isSuccess&&z(Q())},[v.isLoading]),u(()=>{L.isSuccess&&P(W(L.data))},[L.isLoading]);const Q=()=>[...v.response].sort((e,s)=>e.AppName.localeCompare(s.AppName)).map(e=>({label:e.AppName,value:e.AppId}));i.useEffect(()=>{const e={...M};Object.keys(M).forEach(s=>{e[s]=H.includes(s)}),Y(e);const s=L.data?.reduce((e,s)=>e+s.params.length,0);H.filter(e=>"number"!=typeof e).length<(s||1)?K(!1):K(!0)},[H]);const W=e=>e?e.map((e,s)=>({key:s,title:o.jsx(m,{placement:"right",title:e.description,children:e.name}),children:e.params.map(e=>({key:e,title:e}))})):[],{Title:Z}=h;return o.jsx(f,{vertical:!0,gap:n.singleSection.gap,children:o.jsx(C,{features:[],permissions:["API_ViewConfiguration"],children:o.jsxs(p,{onValuesChange:e=>{if(e.sourceAppId){$.setFieldsValue({destAppId:void 0});const s=T.filter(s=>s.value!==e.sourceAppId);R(s),V(T.find(s=>s.value===e.sourceAppId)?.label||"")}else e.destAppId&&D(N.find(s=>s.value===e.destAppId)?.label||"")},onFinish:e=>{const s=H.filter(e=>"number"!=typeof e),i={sourceAppId:e.sourceAppId,destAppId:e.destAppId,configurations:s};w(c(i))},form:$,requiredMark:!1,layout:"vertical",children:[o.jsxs(l,{gutter:[24,24],align:"middle",children:[o.jsx(d,{span:12,children:o.jsx(p.Item,{name:"sourceAppId",label:"Source Site",rules:[{required:!0}],children:o.jsx(g,{suffixIcon:o.jsx(j,{size:16,style:{display:"block"}}),showSearch:!0,filterOption:(e,s)=>(s?.label??"").toLowerCase().includes(e.toLowerCase()),loading:v.isLoading,options:T,placeholder:"Select a site",style:{width:"100%"},disabled:G})})}),o.jsx(d,{span:12,children:o.jsx(p.Item,{name:"destAppId",label:"Destination Site",rules:[{required:!0}],children:o.jsx(g,{suffixIcon:o.jsx(j,{size:16,style:{display:"block"}}),showSearch:!0,filterOption:(e,s)=>(s?.label??"").toLowerCase().includes(e.toLowerCase()),loading:v.isLoading,options:N,placeholder:"Select a site",style:{width:"100%"}})})})]}),!G&&o.jsx(l,{children:o.jsx(b,{permissions:["API_EditConfiguration"],children:o.jsxs(S,{onClick:()=>U(!0),disabled:!$.getFieldValue("sourceAppId")||!$.getFieldValue("destAppId"),type:"primary",htmlType:"submit",children:[o.jsx(A,{}),e.DEPLOY_CONFIGURATIONS]})})}
1),G?o.jsxs(x,{direction:"vertical",size:10,children:[o.jsxs(l,{gutter:[24,24],children:[o.jsx(d,{span:12,children:o.jsxs(x,{direction:"vertical",size:10,children:[o.jsx(Z,{level:3,children:"Select Configurations"}),o.jsx(y,{checked:B,onChange:e=>{let s=[];K(e.target.checked),e.target.checked?O.forEach(e=>{e.children.forEach(e=>{s.push(e.key)})}):s=[],J(s)},children:"Select All"}),o.jsx(k,{blockNode:!0,checkable:!0,autoExpandParent:!0,onCheck:e=>{J(e)},checkedKeys:H,treeData:O})]})}),o.jsx(d,{span:12,children:o.jsxs(x,{direction:"vertical",size:10,children:[o.jsx(Z,{level:3,children:"Configuration to be deployed"}),o.jsx(I,{style:{backgroundColor:"#fff",padding:0,fontSize:"12px"},object:M,isReadOnly:!0})]})})]}),o.jsx(p.Item,{style:{marginTop:"1em"},children:o.jsxs(x,{size:10,children:[o.jsx(b,{permissions:["API_EditConfiguration"],children:o.jsxs(S,{loading:F.isLoading,disabled:!$.getFieldValue("destAppId")||0===H.length,type:"primary",htmlType:"submit",children:[o.jsx(A,{}),e.DEPLOY_CONFIGURATIONS]})}),o.jsx(S,{type:"primary",onClick:()=>{$.resetFields(),U(!1),J([])},disabled:F.isLoading,children:"Cancel"})]})})]}):null]})})})});export{L as default};

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.