PageSourceSearch

https://bithomp.com/_next/static/chunks/pages/services/toml-generator-e3d3ad69310d10ea.js

js bithomp.com collected 2026-10-03 22:00:32 UTC 33,226 bytes, 7 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2208,6279],{29402:e=>{e.exports={page:"toml-generator_page__exRjL",layout:"toml-generator_layout__O_xs7",embeddedLayout:"toml-generator_embeddedLayout__2UpuS",previewPanel:"toml-generator_previewPanel__bGxiP",preview:"toml-generator_preview__iaoJc",metadataPreview:"toml-generator_metadataPreview__QTKI4",hexPreview:"toml-generator_hexPreview__ZKYaI",formPanel:"toml-generator_formPanel__SvJXz",sectionBlock:"toml-generator_sectionBlock__V4plp",principalSection:"toml-generator_principalSection__gK042",accountSection:"toml-generator_accountSection__04SN3",tokenSection:"toml-generator_tokenSection__G77hG",serverSection:"toml-generator_serverSection__rUD9V",validatorSection:"toml-generator_validatorSection__scuvy",modeHeader:"toml-generator_modeHeader__8W_VG",sectionChecks:"toml-generator_sectionChecks__gE44k",sectionCheck:"toml-generator_sectionCheck__C2Vy1",checkMark:"toml-generator_checkMark__iSgbv",sectionCheckText:"toml-generator_sectionCheckText__ubFeR",sectionCheckTitle:"toml-generator_sectionCheckTitle__kMFwc",sectionCheckDescription:"toml-generator_sectionCheckDescription__rQf2X",recommendation:"toml-generator_recommendation__z_BK2",keyFormatTitle:"toml-generator_keyFormatTitle__pl1MP",keyFormatOption:"toml-generator_keyFormatOption__WiiQ_",notice:"toml-generator_notice__9qYhW",corsGuide:"toml-generator_corsGuide__BBG7H",grid:"toml-generator_grid__2pehB",field:"toml-generator_field__0PpB_",fieldError:"toml-generator_fieldError__kFvaQ",byteMeter:"toml-generator_byteMeter__2i7j0",byteMeterOver:"toml-generator_byteMeterOver__5sS7F",editablePreview:"toml-generator_editablePreview__wXKXy",wideField:"toml-generator_wideField__NYQ2Z",formDropdown:"toml-generator_formDropdown__6FlhB",iconPreview:"toml-generator_iconPreview__xnYsv",describedOption:"toml-generator_describedOption__Wbjwv",switches:"toml-generator_switches__zk8iD",checkbox:"toml-generator_checkbox__EWfSS",repeatHeader:"toml-generator_repeatHeader__q2R8q",repeatCard:"toml-generator_repeatCard__mAEps",repeatCardTop:"toml-generator_repeatCardTop__R2gih",repeatRow:"toml-generator_repeatRow__gcGBB",repeatRowWithAction:"toml-generator_repeatRowWithAction__unqDk",previewTop:"toml-generator_previewTop__0UBTc",actions:"toml-generator_actions__YXE3A",warnings:"toml-generator_warnings__5AXbM"}},40998:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/toml-generator",function(){return a(99e3)}])},48954:(e,s,a)=>{"use strict";let t;a.d(s,{A:()=>h});var l=a(37876),r=a(20734),n=a(14232),i=a(753),o=a(85825),c=a(78028),d=a(87320),u=a(90035),m=a(50087),p=a(34239);let h=(0,n.forwardRef)(function({placeholder:e,title:s,setValue:a,rawData:h,type:x,disabled:v,hideButton:g,setInnerValue:j,onResolved:b,skipUsernameResolveOnEnter:k,preferUsernameOnSelect:_},f){let{t:w,i18n:y}=(0,o.Bd)(),C=(0,d.uc)(),N=(0,n.useRef)(!1),S=(0,n.useRef)(h),$=(0,n.useRef)(null),A=(0,n.useRef)(null),D=(0,n.useRef)(!1);(0,n.useImperativeHandle)(f,()=>({focus:()=>{$.current?.focus?$.current.focus():A.current?.focus?.()}}),[]);let[I,R]=(0,n.useState)(""),[L,E]=(0,n.useState)(""),[T,F]=(0,n.useState)(!1),[P,O]=(0,n.useState)([]),[K,M]=(0,n.useState)(!1),[B,U]=(0,n.useState)(""),[G,H]=(0,n.useState)(!1);(0,n.useEffect)(()=>F(!0),[]),(0,n.useEffect)(()=>{j&&j(I),(0,d.pL)(I)||U("")},[I]);let q=h?.[x]||"";(0,n.useEffect)(()=>{if(E(""),D.current)return;let e=async e=>{let s="v2/username/"+e;(0,d.pL)(e)&&(s="v2/address/"+e);let a=await (0,c.A)(s+"?username=true&service=true").catch(e=>{console.log(e.message),E(w("error."+e.message))}),t=a?.data;t?.address&&(b?.(t),U((0,u.o)({address:t.address,addressDetails:{username:t.username,service:t.service?.
1name}},"address")))};q&&(H(!0),R(q),!N.current&&h!==S.current&&(N.current=!0,h?.[x+"Details"]?.service||h[x+"Details"]?.username?(h[x+"Details"]?.service||h[x+"Details"]?.username)&&U((0,u.o)(h,x)):e(q)),v&&Q()),(!h||h?.error)&&(R(""),U(""),H(!1),M(!1),O([]))},[q,h?.error]);let V=async e=>{E("");let s=e.target.value;if(s.length>0?H(!0):Q(),"Enter"===e.key&&(0,d.Y4)(s)){if(clearTimeout(t),M(!1),O([]),k){a&&a(s),R(s);return}let e="v2/username/"+s;(0,d.pL)(s)&&(e="v2/address/"+s);let l=await (0,c.A)(e+"?username=true&service=true").catch(e=>{console.log(e.message),E(w("error."+e.message))}),r=l?.data;r?.address?(b?.(r),U((0,u.o)({address:r.address,addressDetails:{username:r.username,service:r.service?.name}},"address")),a&&a(r.address),R(r.address)):E("No address found");return}s&&s.length>0&&(clearTimeout(t),O([]),t=setTimeout(async()=>{if(s&&s.length>2){M(!0);let e="v2/address/search/"+s,a=await (0,c.A)(e).catch(e=>{M(!1),console.log(e.message)});if(a){let e=a.data;e?.addresses?.length>0&&O(e.addresses)}M(!1)}},500))},W=()=>{a&&a(I),R(I)},Q=()=>{D.current=!0,a&&a(""),R(""),U(""),H(!1),O([]),E("")};return(0,l.jsxs)("div",{className:"center",children:[(s||B)&&(0,l.jsxs)("span",{className:"input-title",children:[s," ",B]}),(0,l.jsxs)("div",{className:`form-input${v?" disabled":""}`,children:[T?(0,l.jsxs)("div",{className:"form-input__wrap",onKeyUp:V,children:[(0,l.jsx)(i.Ay,{isRtl:"rtl"===(0,p.localeDirection)(y.language),ref:$,className:`address-input ${G?" not-empty":""}`,placeholder:e,onChange:e=>{if(D.current=!0,!e){a&&a(""),R(""),U(""),E("");return}a&&a(_&&e.username?e.username:e.address),b?.(e),R(e.address),U((0,u.o)({address:e.address||e.issuer,addressDetails:{username:e.username,service:e.service}},"address")),O([])},onInputChange:(e,s)=>{"input-blur"!==s.action&&"menu-close"!==s.action&&(D.current=!0,H(!0),R(e))},spellCheck:"false",inputValue:I,options:P,isClearable:!0,value:I||"",getOptionLabel:e=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{style:C<400?{fontSize:"14px"}:{},children:e.address||e.issuer}),e.username||e.service||e.xaman?C>400?" - ":" ":"",(0,l.jsx)("b",{className:"blue",children:e.username}),e.service&&(0,l.jsxs)(l.Fragment,{children:[e.username?" (":"",(0,l.jsx)("b",{className:"green",children:e.service}),e.username?")":""]}),(e.username||e.service)&&(e.verifiedDomain||e.serviceDomain)&&(0,l.jsx)(l.Fragment,{children:", "}),e.verifiedDomain?(0,l.jsxs)("span",{className:"green bold",children:[" ",e.verifiedDomain]}):e.serviceDomain&&(0,l.jsxs)("span",{className:"green",children:[" ",e.serviceDomain]}),(e.username||e.service||e.verifiedDomain||e.serviceDomain)&&e.xaman&&(0,l.jsx)(l.Fragment,{children:", "}),e.xaman&&(0,l.jsxs)(l.Fragment,{children:["Xaman"," ",(0,l.jsx)("span",{className:"orange",children:e.xaman.includes("+")?e.xaman.replace(/\+/g," (")+")":e.xaman}),e.xamanVerified&&(0,l.jsx)(l.Fragment,{children:" ✅"})]}),(e.username||e.service||e.verifiedDomain||e.serviceDomain||e.xaman)&&(0,l.jsx)(l.Fragment,{children:", "}),e.balance&&(0,l.jsxs)(l.Fragment,{children:[" ","[",(0,l.jsx)("b",{children:(0,u.Cj)(e.balance,{maxFractionDigits:2,noSpace:!0})}),"]"]})]}),getOptionValue:e=>e.address+e.username+e.service+e.xaman+e.verifiedDomain+e.serviceDomain,components:{DropdownIndicator:()=>null,IndicatorSeparator:()=>null},classNamePrefix:"react-select",instanceId:"address-input",noOptionsMessage:()=>K?w("explorer.searching-for-addresses"):null}),(0,l.jsxs)("div",{className:"form-input__btns",children:[(0,l.jsx)("button",{type:"button",className:"form-input__clear",onClick:Q,children:(0,l.jsx)(r.WQq,{})}),!g&&(0,l.jsx)("div",{className:"search-button",onClick:W,children:(0,l.jsx)(m.zfp,{})})]})]}):(0,l.jsxs)("div",{className:"form-input__wrap",children:[(0,l.jsx)("input",{dir:"auto",placeholder:e,value:I,onChange:e=>R(e.target.value),className:"input-text input-text-no-border",spellCheck:"false",disabled:v,ref:A}),(0,l.jsxs)("div",{className:"form-input__btns",children:[(0,l.jsx)("button",{type:"button",className:"form-input__clear",onClick:Q,children:(0,l.jsx)(r.WQq,{})}),!g&&(0,l.jsx)("div",{className:"search-button",onClick:W,children:(0,l.jsx)(m.zfp,{})})]})]}),L&&(0,l.jsx)("div",{className:"orange",style:{position:"absolute",bottom:"-40px",minHeight:"42px",textAlign:"right",right:0},children:L})]})]})})},50480:(e,s,a)=>{"use strict";a.d(s,{A:()=>n});var t=a(37876),l=a(14232),r=a(753);function n({value:e,setValue:s,optionsList:a,className:i,instanceId:o="dropdown",inputId:c,formatOptionLabel:d,menuPortal:u=!1}){let[m,p]=(0,l.useState)(!1),[h,x]=(0,l.useState)(void 0);return((0,l.useEffect)(()=>{p(!0)},[]),(0,l.useEffect)(()=>
1{if(!m)return;if(!Array.isArray(a)||0===a.length)return void x(void 0);let t=e??a[0].value,l=a.find(e=>String(e.value).toLowerCase()===String(t).toLowerCase())||a[0];x(l),e!==l.value&&s(l.value)},[m,e,a,s]),m)?(0,t.jsx)(r.Ay,{instanceId:o,inputId:c,value:h,options:a,formatOptionLabel:d,onChange:e=>{s(e.value),x(e)},isSearchable:!1,className:`dropdown ${i||""}`,classNamePrefix:"react-select",menuPortalTarget:u?document.body:void 0,menuPosition:u?"fixed":"absolute",styles:{menuList:e=>({...e,maxHeight:200,overflowY:"auto"}),menuPortal:e=>({...e,zIndex:1e3})}}):null}},72208:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>c});var t=a(37876),l=a(753),r=a(14232),n=a(85825),i=a(78028),o=a(87320);function c({countryCode:e,setCountryCode:s,type:a,menuPortalTarget:d,menuPosition:u,styles:m,disableAutoDetect:p,instanceId:h="country-select"}){let{i18n:x}=(0,n.Bd)(),[v,g]=(0,r.useState)(null),[j,b]=(0,r.useState)({value:"",label:""}),k=(0,r.useRef)(!1);async function _(){let e;try{e=await (0,i.A)("client/info")}catch(e){return}let t=e.data;if(t&&t.country){let e=t.country.toUpperCase();b({value:e,label:v.getNameTranslated?.(e)}),s(e),"onlySelect"!==a&&localStorage.setItem("country",e)}}return(0,r.useEffect)(()=>{(async()=>{g(await (0,o.ri)(x.language))})()},[x.language]),(0,r.useEffect)(()=>{let t=localStorage.getItem("country");t&&(t=t.replace(/"/g,"")),k.current||null==v||("onlySelect"===a?e?(b({value:e,label:v.getNameTranslated(e)}),s(e)):p?b({value:"",label:""}):_():t?(b({value:t,label:v.getNameTranslated(t)}),s(t)):_(),k.current=!0),v&&j.value&&k.current&&b({value:j.value,label:v.getNameTranslated(j.value)})},[v]),(0,t.jsx)(l.Ay,{options:v?.countryArr||[],value:j,onChange:e=>{b(e),"onlySelect"!==a&&localStorage.setItem("country",e.value),s(e.value)},isSearchable:!0,menuPortalTarget:d,menuPosition:u,styles:m,className:"country-select",classNamePrefix:"react-select",instanceId:h})}},99e3:(e,s,a)=>{"use strict";a.r(s),a.d(s,{__N_SSP:()=>V,default:()=>W});var t=a(37876),l=a(14232),r=a(48230),n=a.n(r),i=a(85825),o=a(89099),c=a(60543),d=a(64992),u=a(6336),m=a(48954),p=a(72208),h=a(50480),x=a(87320),v=a(29402),g=a.n(v);let j=["","rwa","memes","wrapped","gaming","defi","other"],b=["","stablecoin","commodity","real_estate","private_credit","equity","treasury","other"],k=["","website","social","document"],_=["","true","false"],f=["principal","account","token","server","validator"],w=[{value:"main",labelKey:"main"},{value:"testnet",labelKey:"testnet"},{value:"devnet",labelKey:"devnet"},{value:"xahau",labelKey:"xahau"},{value:"alphanet",labelKey:"alphanet"},{value:"xahau-testnet",labelKey:"xahau-testnet"},{value:"xahau-jshooks",labelKey:"xahau-jshooks"}],y={mainnet:"main",staging:"devnet",testnet:"testnet",devnet:"devnet",alphanet:"alphanet",xahau:"xahau","xahau-testnet":"xahau-testnet","xahau-jshooks":"xahau-jshooks"}[x.Nm]||(x.QG?"xahau":"main"),C=Object.fromEntries(Object.entries({main:["https://unl.xrplf.org","https://vl.ripple.com"],testnet:["https://vl.altnet.rippletest.net"],devnet:["http://vl.devnet.rippletest.net"],alphanet:[],xahau:["https://vl.xahau.org"],"xahau-testnet":["https://vl.test.xahauexplorer.com"],"xahau-jshooks":["https://vl.jshooks.xahauexplorer.com"]}).map(([e,s])=>[e,s.map(e=>({value:e,label:e}))])),N={main:"https://vl.xrplf.org",testnet:"https://vl.altnet.rippletest.net",devnet:"http://vl.devnet.rippletest.net",xahau:"https://vl.xahau.org","xahau-testnet":"https://vl.test.xahauexplorer.com","xahau-jshooks":"https://vl.jshooks.xahauexplorer.com"},S=()=>({address:"",network:y,desc:""}),$=()=>({name:"",email:"",profileImage:"",website:"",x:"",linkedin:"",telegram:"",github:""}),A=()=>({publicKey:"",attestation:"",network:y,ownerCountry:"",serverCountry:"",networkAsn:"",serverLocation:"",serverCloud:"",unl:N[y]||""}),D=()=>({jsonRpc:"",ws:"",peer:"",network:y,desc:""}),I=()=>({issuerAddress:"",issuerName:"",issuerDesc:"",issuerIcon:"",tokenCurrency:"",tokenName:"",tokenDesc:"",tokenIcon:"",tokenAssetClass:"",tokenAssetSubclass:"",network:y,displayDecimals:"",currencySymbol:"",urls:[{url:"",type:"website",title:""}]}),R={url:"",type:"website",title:""},L={principal:!0,account:!1,token:!1,server:!1,validator:!1},E=e=>String(e||"").trim(),T=(e,s,a)=>{let t=E(a);t&&e.push(`${s} = "${String(t).replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`)},F=(e,s,a)=>{let t=E(a);/^\d+$/.test(t)&&e.push(`${s} = ${t}`)},P=(e,s)=>{e.length&&e.push(""),e.push(s)},O=(e,s,a)=>e.map((e,t)=>t===s?{...e,...a}:e),K=(e,s,a,t)=>{e(e=>O(e,s,{[a]:t}))},M=(e,s)=>{e(e=>e.filter((e,a)=>a!==s))},B=({title:e,addLabel:s,onAdd:a})=>(0,t.jsxs)("div",{className:g().repeatHeader,children:[(0,t.jsx)("h4",{children:e}),(0,t.jsx)("button",{type:"button",className:"button-action secondary",onClick:a,children:s})]}),U=({title:e,removeLabel:s,canRemove:a,onRemove:l,children:r})=>(0,t.jsxs)("div",{className:g().repeatCard,children:[(0,t.jsxs)("div",{className:g().repeatCardTop,children:[(0,t.jsx)("h5",{children:e}),a&&(0,t.jsx)("button",{type:"button",className:"button-action secondary",onClick:l,children:s})]}),r]}
1),G=({label:e,hint:s,children:a,required:l,className:r})=>(0,t.jsxs)("label",{className:`${g().field} ${r||""}`,children:[(0,t.jsxs)("span",{children:[e,l&&(0,t.jsx)("b",{children:" *"})]}),a,s&&(0,t.jsx)("small",{children:s})]}),H=({label:e,hint:s,value:a,onChange:l,placeholder:r,type:n,required:i})=>(0,t.jsxs)("div",{className:`${g().field} ${g().addressField}`,children:[(0,t.jsx)(m.A,{title:(0,t.jsxs)(t.Fragment,{children:[e,i&&(0,t.jsx)("b",{children:" *"})]}),placeholder:r,hideButton:!0,setValue:l,setInnerValue:l,rawData:(0,x.pL)(a)?{[n]:a}:{},type:n}),s&&(0,t.jsx)("small",{children:s})]}),q=({value:e,options:s,onChange:a,instanceId:l})=>(0,t.jsx)(h.A,{value:e,setValue:a,optionsList:s,className:g().formDropdown,instanceId:l});var V=!0;function W({modifiedAt:e}){let s=(0,o.useRouter)(),{t:a}=(0,i.Bd)(["common","services"]),r=a("menu.services.toml-generator"),m=(0,l.useCallback)((e,s)=>a(`toml-generator.${e}`,{ns:"services",...s}),[a]),h=x.QG?"xahau.toml":"xrp-ledger.toml",[v,y]=(0,l.useState)(L),[N,V]=(0,l.useState)([S()]),[Q,X]=(0,l.useState)([$()]),[z,Y]=(0,l.useState)([A()]),[J,Z]=(0,l.useState)([D()]),[ee,es]=(0,l.useState)([I()]),[ea,et]=(0,l.useState)(!1),el=(e,s,a,t)=>{es(l=>l.map((l,r)=>r===e?{...l,urls:O(l.urls,s,{[a]:t})}:l))},er=(0,l.useMemo)(()=>(({accounts:e,principals:s,validators:a,servers:t,tokens:l,enabledSections:r,modifiedAt:n})=>{let i=["[METADATA]",`modified = ${n}`];return r.account&&e.forEach(e=>{P(i,"[[ACCOUNTS]]"),T(i,"address",e.address),T(i,"network",e.network),T(i,"desc",e.desc)}),r.token&&l.forEach(e=>{E(e.issuerAddress)&&(P(i,"[[ACCOUNTS]]"),T(i,"address",e.issuerAddress),T(i,"network",e.network)),P(i,"[[ISSUERS]]"),T(i,"address",e.issuerAddress),T(i,"name",e.issuerName),T(i,"desc",e.issuerDesc),T(i,"icon",e.issuerIcon),P(i,"[[TOKENS]]"),T(i,"issuer",e.issuerAddress),T(i,"currency",e.tokenCurrency),T(i,"name",e.tokenName),T(i,"desc",e.tokenDesc),T(i,"icon",e.tokenIcon),T(i,"asset_class",e.tokenAssetClass),T(i,"asset_subclass",e.tokenAssetSubclass),e.urls.filter(e=>E(e.url)).forEach(e=>{P(i,"[[TOKENS.URLS]]"),T(i,"url",e.url),T(i,"type",e.type),T(i,"title",e.title)}),P(i,"[[CURRENCIES]]"),T(i,"code",e.tokenCurrency),T(i,"issuer",e.issuerAddress),T(i,"network",e.network),F(i,"display_decimals",e.displayDecimals),T(i,"symbol",e.currencySymbol)}),r.server&&t.forEach(e=>{P(i,"[[SERVERS]]"),T(i,"json_rpc",e.jsonRpc),T(i,"ws",e.ws),T(i,"peer",e.peer),T(i,"network",e.network),T(i,"desc",e.desc)}),r.principal&&s.filter(e=>E(e.name)||E(e.email)||E(e.profileImage)||E(e.website)||E(e.x)||E(e.linkedin)||E(e.telegram)||E(e.github)).forEach(e=>{P(i,"[[PRINCIPALS]]"),T(i,"name",e.name),T(i,"email",e.email),T(i,"profile_image",e.profileImage),T(i,"website",e.website),T(i,"x",e.x),T(i,"linkedin",e.linkedin),T(i,"telegram",e.telegram),T(i,"github",e.github)}),r.validator&&a.forEach(e=>{let s;P(i,"[[VALIDATORS]]"),T(i,"public_key",e.publicKey),T(i,"attestation",e.attestation),T(i,"network",e.network),T(i,"owner_country",e.ownerCountry.toLowerCase()),T(i,"server_country",e.serverCountry.toLowerCase()),F(i,"network_asn",e.networkAsn),T(i,"server_location",e.serverLocation),("true"===(s=E(e.serverCloud))||"false"===s)&&i.push(`server_cloud = ${s}`),T(i,"unl",e.unl)}),i.join("\n")+"\n"})({accounts:N,principals:Q,validators:z,servers:J,tokens:ee,enabledSections:v,modifiedAt:e}),[N,Q,z,J,ee,v,e]),en=(0,l.useMemo)(()=>f.map(e=>({value:e,label:m(`modes.${e}`),description:m(`mode-descriptions.${e}`)})),[m]),ei=(0,l.useMemo)(()=>j.map(e=>({value:e,label:m(`asset-classes.${e||"select"}`)})),[m]),eo=(0,l.useMemo)(()=>b.map(e=>({value:e,label:m(`asset-subclasses.${e||"select"}`)})),[m]),ec=(0,l.useMemo)(()=>k.map(e=>({value:e,label:m(`url-types.${e||"select"}`)})),[m]),ed=(0,l.useMemo)(()=>_.map(e=>({value:e,label:m(`boolean-options.${e||"select"}`)})),[m]),eu=(0,l.useMemo)(()=>w.map(e=>({value:e.value,label:m(`networks.${e.labelKey}`)})),[m]),em=(0,l.useMemo)(()=>{let e=[];return N.forEach(s=>{v.account&&E(s.address)&&!(0,x.pL)(E(s.address))&&e.push(m("warnings.account-address"))}),v.token&&ee.forEach(s=>{E(s.issuerAddress)&&!(0,x.pL)(E(s.issuerAddress))&&e.push(m("warnings.issuer-address")),"rwa"!==s.tokenAssetClass||s.tokenAssetSubclass||e.push(m("warnings.rwa-subclass")),E(s.displayDecimals)&&!/^\d+$/.test(E(s.displayDecimals))&&e.push(m("warnings.display-decimals"))}),z.forEach(s=>{v.validator&&E(s.publicKey)&&!E(s.publicKey).startsWith("n")&&e.push(m("warnings.validator-key")),v.validator&&E(s.networkAsn)&&!/^\d+$/.test(E(s.networkAsn))&&e.push(m("warnings.network-asn"))}),e},[N,v,ee,z,m]),ep=async()=>{await navigator.clipboard.writeText(er),et(!0),setTimeout(()=>et(!1),1800)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.A,{title:`${r} | ${x.$9}`,description:m("seo-description",{tomlName:h,ledgerName:x.bo})}),(0,t.jsxs)("div",{className:`content-text ${g().page}`,children:[(0,t.jsx)(u.A,{category:"issuance"===s.query.category?"issuance":"identity",tab:"toml-generator"}),(0,t.jsx)("h1",{className:"center",children:r}),(0,t.jsxs)("p",{className:"center",children:[m("intro",{tomlName:h})," ",(0,t.jsxs)("code",{children:["https://yourdomain.com/.well-known/",h]}),"."]}),(0,t.jsxs)("div",{className:g().layout,children:[(0,t.jsxs)("section",{className:g().formPanel,children:[(0,t.jsxs)("div",{className:g().modeHeader,children:[(0,t.jsx)("h4",{children:m("mode-title")}),(0,t.jsx)("div",{className:g().sectionChecks,children:en.map(e=>(0,t.jsxs)("label",{className:g().sectionCheck,children:[(0,t.jsx)("input",{type:"checkbox",checked:!!v[e.value],onChange:()=>{var s;
1return s=e.value,void y(e=>({...e,[s]:!e[s]}))}}),(0,t.jsx)("span",{className:g().checkMark,"aria-hidden":"true"}),(0,t.jsxs)("span",{className:g().sectionCheckText,children:[(0,t.jsx)("span",{className:g().sectionCheckTitle,children:e.label}),(0,t.jsx)("span",{className:g().sectionCheckDescription,children:e.description})]})]},e.value))})]}),(0,t.jsxs)("div",{className:g().notice,children:[m("notice.before")," ",(0,t.jsx)("b",{children:"application/toml"})," ",m("notice.middle")," ",(0,t.jsx)("b",{children:"Access-Control-Allow-Origin: *"})," ",m("notice.after")]}),(0,t.jsxs)("details",{className:g().corsGuide,children:[(0,t.jsx)("summary",{children:m("cors-guide.title")}),(0,t.jsx)("p",{children:m("cors-guide.intro",{tomlName:h})}),(0,t.jsx)("h5",{children:m("cors-guide.apache-title")}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:`<Location "/.well-known/${h}">
2  Header set Access-Control-Allow-Origin "*"
3</Location>`})}),(0,t.jsx)("h5",{children:m("cors-guide.htaccess-title")}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:`<Files "${h}">
4  Header set Access-Control-Allow-Origin "*"
5</Files>`})}),(0,t.jsx)("h5",{children:m("cors-guide.nginx-title")}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:`location /.well-known/${h} {
6  add_header 'Access-Control-Allow-Origin' '*';
7}`})}),(0,t.jsx)("h5",{children:m("cors-guide.managed-title")}),(0,t.jsx)("p",{children:m("cors-guide.managed-text")})]}),v.account&&(0,t.jsxs)("div",{className:`${g().sectionBlock} ${g().accountSection}`,children:[(0,t.jsx)(B,{title:m("modes.account"),addLabel:`${m("actions.add")} ${m("modes.account")}`,onAdd:()=>V(e=>[...e,S()])}),N.map((e,s)=>(0,t.jsx)(U,{title:`${m("modes.account")} ${s+1}`,removeLabel:m("actions.remove"),canRemove:N.length>1,onRemove:()=>M(V,s),children:(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(H,{label:m("fields.account-address"),required:!0,hint:(0,t.jsxs)(t.Fragment,{children:[m("hints.account-address-before")," ",(0,t.jsx)(n(),{href:"/domains",children:m("hints.account-address-link")}),"."]}),value:e.address,onChange:e=>K(V,s,"address",e),placeholder:m("placeholders.address"),type:`accountAddress${s}`}),(0,t.jsx)(G,{label:m("fields.network"),children:(0,t.jsx)(q,{value:e.network,options:eu,instanceId:`toml-account-network-${s}`,onChange:e=>K(V,s,"network",e)})}),(0,t.jsx)(G,{label:m("fields.description"),className:g().wideField,children:(0,t.jsx)("input",{className:"input-text",value:e.desc,onChange:e=>K(V,s,"desc",e.target.value),placeholder:m("placeholders.account-desc")})})]})},s))]}),v.principal&&(0,t.jsxs)("div",{className:`${g().sectionBlock} ${g().principalSection}`,children:[(0,t.jsx)(B,{title:m("modes.principal"),addLabel:`${m("actions.add")} ${m("modes.principal")}`,onAdd:()=>X(e=>[...e,$()])}),Q.map((e,s)=>(0,t.jsx)(U,{title:`${m("modes.principal")} ${s+1}`,removeLabel:m("actions.remove"),canRemove:Q.length>1,onRemove:()=>M(X,s),children:(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(G,{label:m("fields.name"),children:(0,t.jsx)("input",{className:"input-text",value:e.name,onChange:e=>K(X,s,"name",e.target.value),placeholder:m("placeholders.principal-name")})}),(0,t.jsx)(G,{label:m("fields.email"),children:(0,t.jsx)("input",{className:"input-text",type:"email",value:e.email,onChange:e=>K(X,s,"email",e.target.value),placeholder:m("placeholders.email")})}),(0,t.jsx)(G,{label:m("fields.profile-image"),children:(0,t.jsx)("input",{className:"input-text",value:e.profileImage,onChange:e=>K(X,s,"profileImage",e.target.value),placeholder:m("placeholders.profile-image")})}),(0,t.jsx)(G,{label:m("fields.website"),children:(0,t.jsx)("input",{className:"input-text",value:e.website,onChange:e=>K(X,s,"website",e.target.value),placeholder:m("placeholders.website")})}),(0,t.jsx)(G,{label:m("fields.x-handle"),children:(0,t.jsx)("input",{className:"input-text",value:e.x,onChange:e=>K(X,s,"x",e.target.value),placeholder:m("placeholders.x-handle")})}),(0,t.jsx)(G,{label:m("fields.linkedin"),children:(0,t.jsx)("input",{className:"input-text",value:e.linkedin,onChange:e=>K(X,s,"linkedin",e.target.value),placeholder:m("placeholders.linkedin")})}),(0,t.jsx)(G,{label:m("fields.telegram"),children:(0,t.jsx)("input",{className:"input-text",value:e.telegram,onChange:e=>K(X,s,"telegram",e.target.value),placeholder:m("placeholders.telegram")})}),(0,t.jsx)(G,{label:m("fields.github"),children:(0,t.jsx)("input",{className:"input-text",value:e.github,onChange:e=>K(X,s,"github",e.target.value),placeholder:m("placeholders.github")})})]})},s))]}),v.validator&&(0,t.jsxs)("div",{className:`${g().sectionBlock} ${g().validatorSection}`,children:[(0,t.jsx)(B,{title:m("modes.validator"),addLabel:`${m("actions.add")} ${m("modes.validator")}`,onAdd:()=>Y(e=>[...e,A()])}),(0,t.jsxs)("details",{className:g().corsGuide,children:[(0,t.jsx)("summary",{children:m("validator-guide.title")}),(0,t.jsx)("p",{children:m("validator-guide.intro")}),(0,t.jsx)("h5",{children:m("validator-guide.validator-title")}),(0,t.jsx)("p",{children:m("validator-guide.validator-text")}),(0,t.jsx)("pre",{children:(0,t.jsx)("code",{children:"./validator-keys set_domain example.com"})}),(0,t.jsx)("p",{children:m("validator-guide.after-command")}),(0,t.jsx)("h5",{children:m("validator-guide.xrpld-title")}),(0,t.jsx)("p",{children:m("validator-guide.xrpld-text")}),(0,t.jsx)("h5",{children:m("validator-guide.domain-title")}),(0,t.jsx)("p",{children:m("validator-guide.domain-text",{tomlName:h})}),(0,t.jsx)("p",{children:(0,t.jsx)("b",{children:m("validator-guide.warning")})})]}),z.map((e,s)=>(0,t.jsx)(U,{title:`${m("modes.validator")} ${s+1}`,removeLabel:m("actions.remove"),canRemove:z.length>1,onRemove:()=>M(Y,s),children:(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(G,{label:m("fields.validator-public-key"),required:!0,children:(0,t.jsx)("input",{className:"input-text",value:e.publicKey,onChange:e=>K(Y,s,"publicKey",e.target.value),placeholder:m("placeholders.validator-key"),spellCheck:"false"})}),(0,t.jsx)(G,{label:m("fields.attestation"),hint:m("hints.attestation"),children:(0,t.jsx)("input",{className:"input-text",value:e.attestation,onChange:e=>K(Y,s,"attestation",e.target.value),placeholder:m("placeholders.attestation"),spellCheck:"false"})}),(0,t.jsx)(G,{label:m("fields.network"),children:(0,t.jsx)(q,{value:e.network,options:eu,instanceId:`toml-validator-network-${s}
7`,onChange:e=>K(Y,s,"network",e)})}),(0,t.jsx)(G,{label:m("fields.unl"),children:(0,t.jsx)(q,{value:e.unl,options:C[e.network]||[],instanceId:`toml-validator-unl-${s}`,onChange:e=>K(Y,s,"unl",e)})}),(0,t.jsx)(G,{label:m("fields.owner-country"),children:(0,t.jsx)(p.default,{countryCode:e.ownerCountry,instanceId:`toml-validator-owner-country-${s}`,setCountryCode:e=>K(Y,s,"ownerCountry",e),type:"onlySelect"})}),(0,t.jsx)(G,{label:m("fields.server-country"),children:(0,t.jsx)(p.default,{countryCode:e.serverCountry,instanceId:`toml-validator-server-country-${s}`,setCountryCode:e=>K(Y,s,"serverCountry",e),type:"onlySelect"})}),(0,t.jsx)(G,{label:m("fields.network-asn"),children:(0,t.jsx)("input",{className:"input-text",inputMode:"numeric",value:e.networkAsn,onChange:e=>K(Y,s,"networkAsn",e.target.value.replace(/\D/g,"")),placeholder:m("placeholders.network-asn")})}),(0,t.jsx)(G,{label:m("fields.server-location"),children:(0,t.jsx)("input",{className:"input-text",value:e.serverLocation,onChange:e=>K(Y,s,"serverLocation",e.target.value),placeholder:m("placeholders.server-location")})}),(0,t.jsx)(G,{label:m("fields.server-cloud"),children:(0,t.jsx)(q,{value:e.serverCloud,options:ed,instanceId:`toml-validator-server-cloud-${s}`,onChange:e=>K(Y,s,"serverCloud",e)})})]})},s))]}),v.server&&(0,t.jsxs)("div",{className:`${g().sectionBlock} ${g().serverSection}`,children:[(0,t.jsx)(B,{title:m("modes.server"),addLabel:`${m("actions.add")} ${m("modes.server")}`,onAdd:()=>Z(e=>[...e,D()])}),J.map((e,s)=>(0,t.jsx)(U,{title:`${m("modes.server")} ${s+1}`,removeLabel:m("actions.remove"),canRemove:J.length>1,onRemove:()=>M(Z,s),children:(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(G,{label:m("fields.json-rpc"),children:(0,t.jsx)("input",{className:"input-text",value:e.jsonRpc,onChange:e=>K(Z,s,"jsonRpc",e.target.value),placeholder:"https://s1.ripple.com:51234/"})}),(0,t.jsx)(G,{label:m("fields.websocket"),children:(0,t.jsx)("input",{className:"input-text",value:e.ws,onChange:e=>K(Z,s,"ws",e.target.value),placeholder:"wss://s1.ripple.com/"})}),(0,t.jsx)(G,{label:m("fields.peer"),children:(0,t.jsx)("input",{className:"input-text",value:e.peer,onChange:e=>K(Z,s,"peer",e.target.value),placeholder:"https://s1.ripple.com:51235/"})}),(0,t.jsx)(G,{label:m("fields.network"),children:(0,t.jsx)(q,{value:e.network,options:eu,instanceId:`toml-server-network-${s}`,onChange:e=>K(Z,s,"network",e)})}),(0,t.jsx)(G,{label:m("fields.description"),className:g().wideField,children:(0,t.jsx)("input",{className:"input-text",value:e.desc,onChange:e=>K(Z,s,"desc",e.target.value),placeholder:m("placeholders.server-desc")})})]})},s))]}),v.token&&(0,t.jsxs)("div",{className:`${g().sectionBlock} ${g().tokenSection}`,children:[(0,t.jsx)(B,{title:m("modes.token"),addLabel:`${m("actions.add")} ${m("modes.token")}`,onAdd:()=>es(e=>[...e,I()])}),ee.map((e,s)=>(0,t.jsxs)(U,{title:`${m("modes.token")} ${s+1}`,removeLabel:m("actions.remove"),canRemove:ee.length>1,onRemove:()=>M(es,s),children:[(0,t.jsx)("h4",{children:m("sections.issuer")}),(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(H,{label:m("fields.issuer-address"),required:!0,value:e.issuerAddress,onChange:e=>K(es,s,"issuerAddress",e),placeholder:m("placeholders.address"),type:`issuerAddress${s}`}),(0,t.jsx)(G,{label:m("fields.network"),children:(0,t.jsx)(q,{value:e.network,options:eu,instanceId:`toml-currency-network-${s}`,onChange:e=>K(es,s,"network",e)})}),(0,t.jsx)(G,{label:m("fields.issuer-name"),children:(0,t.jsx)("input",{className:"input-text",value:e.issuerName,onChange:e=>K(es,s,"issuerName",e.target.value),placeholder:m("placeholders.issuer-name")})}),(0,t.jsx)(G,{label:m("fields.issuer-icon"),children:(0,t.jsx)("input",{className:"input-text",value:e.issuerIcon,onChange:e=>K(es,s,"issuerIcon",e.target.value),placeholder:"https://example.com/icon.png"})}),(0,t.jsx)(G,{label:m("fields.issuer-description"),className:g().wideField,children:(0,t.jsx)("input",{className:"input-text",value:e.issuerDesc,onChange:e=>K(es,s,"issuerDesc",e.target.value),placeholder:m("placeholders.issuer-desc")})})]}),(0,t.jsx)("h4",{children:m("sections.token-metadata")}),(0,t.jsxs)("div",{className:g().grid,children:[(0,t.jsx)(G,{label:m("fields.currency-code"),required:!0,children:(0,t.jsx)("input",{className:"input-text",value:e.tokenCurrency,onChange:e=>K(es,s,"tokenCurrency",e.target.value),placeholder:"RLUSD",spell
7Check:"false"})}),(0,t.jsx)(G,{label:m("fields.token-name"),children:(0,t.jsx)("input",{className:"input-text",value:e.tokenName,onChange:e=>K(es,s,"tokenName",e.target.value),placeholder:m("placeholders.token-name")})}),(0,t.jsx)(G,{label:m("fields.token-icon"),children:(0,t.jsx)("input",{className:"input-text",value:e.tokenIcon,onChange:e=>K(es,s,"tokenIcon",e.target.value),placeholder:"https://example.com/token.png"})}),(0,t.jsx)(G,{label:m("fields.asset-class"),children:(0,t.jsx)(q,{value:e.tokenAssetClass,options:ei,instanceId:`toml-token-asset-class-${s}`,onChange:e=>{es(a=>O(a,s,{tokenAssetClass:e,tokenAssetSubclass:"rwa"===e?a[s].tokenAssetSubclass:""}))}})}),"rwa"===e.tokenAssetClass&&(0,t.jsx)(G,{label:m("fields.asset-subclass"),children:(0,t.jsx)(q,{value:e.tokenAssetSubclass,options:eo,instanceId:`toml-token-asset-subclass-${s}`,onChange:e=>K(es,s,"tokenAssetSubclass",e)})}),(0,t.jsx)(G,{label:m("fields.display-decimals"),children:(0,t.jsx)("input",{className:"input-text",inputMode:"numeric",value:e.displayDecimals,onChange:e=>K(es,s,"displayDecimals",e.target.value.replace(/\D/g,"")),placeholder:"2"})}),(0,t.jsx)(G,{label:m("fields.currency-symbol"),children:(0,t.jsx)("input",{className:"input-text",value:e.currencySymbol,onChange:e=>K(es,s,"currencySymbol",e.target.value),placeholder:"$"})}),(0,t.jsx)(G,{label:m("fields.token-description"),className:g().wideField,children:(0,t.jsx)("input",{className:"input-text",value:e.tokenDesc,onChange:e=>K(es,s,"tokenDesc",e.target.value),placeholder:m("placeholders.token-desc")})})]}),(0,t.jsxs)("div",{className:g().repeatHeader,children:[(0,t.jsx)("h4",{children:m("sections.token-links")}),(0,t.jsx)("button",{type:"button",className:"button-action secondary",onClick:()=>{es(e=>e.map((e,a)=>a===s?{...e,urls:[...e.urls,R]}:e))},children:m("actions.add-link")})]}),e.urls.map((a,l)=>(0,t.jsxs)("div",{className:g().repeatRow,children:[(0,t.jsx)("input",{className:"input-text",value:a.url,onChange:e=>el(s,l,"url",e.target.value),placeholder:m("placeholders.website")}),(0,t.jsx)(q,{value:a.type,options:ec,instanceId:`toml-token-url-type-${s}-${l}`,onChange:e=>el(s,l,"type",e)}),(0,t.jsx)("input",{className:"input-text",value:a.title,onChange:e=>el(s,l,"title",e.target.value),placeholder:m("placeholders.link-title")}),e.urls.length>1&&(0,t.jsx)("button",{type:"button",className:"button-action secondary",onClick:()=>{es(e=>e.map((e,a)=>a===s?{...e,urls:e.urls.filter((e,s)=>s!==l)}:e))},children:m("actions.remove")})]},l))]},s))]})]}),(0,t.jsxs)("aside",{className:g().previewPanel,children:[(0,t.jsxs)("div",{className:g().previewTop,children:[(0,t.jsx)("h4",{children:m("generated-title",{tomlName:h})}),(0,t.jsxs)("div",{className:g().actions,children:[(0,t.jsxs)("button",{type:"button",className:"button-action secondary",onClick:ep,children:[(0,t.jsx)(c.$G0,{"aria-hidden":"true"}),ea?m("actions.copied"):m("actions.copy")]}),(0,t.jsxs)("button",{type:"button",className:"button-action",onClick:()=>{let e=new Blob([er],{type:"application/toml"}),s=URL.createObjectURL(e),a=document.createElement("a");a.href=s,a.download=h,a.click(),URL.revokeObjectURL(s)},children:[(0,t.jsx)(c.Oz0,{"aria-hidden":"true"}),m("actions.download")]})]})]}),em.length>0&&(0,t.jsx)("div",{className:g().warnings,children:em.map(e=>(0,t.jsx)("div",{children:e},e))}),(0,t.jsx)("pre",{className:g().preview,children:er})]})]})]})]})}}},e=>{e.O(0,[2867,2663,636,6593,8792],()=>e(e.s=40998)),_N_E=e.O()}]);

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.