1var h=(a,e,s)=>new Promise((g,n)=>{var r=t=>{try{o(s.next(t))}catch(u){n(u)}},l=t=>{try{o(s.throw(t))}catch(u){n(u)}},o=t=>t.done?g(t.value):Promise.resolve(t.value).then(r,l);o((s=s.apply(a,e)).next())});import{j as i}from"./react-vendor-QB-SHznt.js";import{ae as d,a9 as A,aa as E,b5 as f,ab as b,cx as L,c0 as _,al as C}from"./shared_packages-BXKKObPK.js";import{a as I,cb as T,cc as m}from"./app-DBDdmZqK.js";import{l as N,W as p}from"./shared_packages-gbR9ZUfs.js";import{u as O}from"./shared_hooks-DSjrHEHb.js";import{u as U}from"./shared_mixed-BenbauzD.js";import"./graphql-vendor-B33ouNNi.js";import"./shared_packages_portal-shared_src_contexts-BZxAX688.js";import"./index-CuvIegpc.js";(function(){try{var a=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};a.SENTRY_RELEASE={id:"nightly-2026.09.24"};var e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="b56698c6-9c8c-470c-8abb-ac5d9732844f",a._sentryDebugIdIdentifier="sentry-dbid-b56698c6-9c8c-470c-8abb-ac5d9732844f")}catch(s){}})();globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const c=N({CHANGE_BUTTON:{id:"FOREX_VPS.DETAILS.CHANGE_UI_LANGUAGE_MODAL.CHANGE_BUTTON",defaultMessage:"Change"},HEADER:{id:"FOREX_VPS.DETAILS.CHANGE_UI_LANGUAGE_MODAL.HEADER",defaultMessage:"Change UI language"},LABEL:{id:"FOREX_VPS.DETAILS.CHANGE_UI_LANGUAGE_MODAL.LABEL",defaultMessage:"New language"},NOTICE:{id:"FOREX_VPS.DETAILS.CHANGE_UI_LANGUAGE_MODAL.NOTICE",defaultMessage:"The VPS will be rebooted to set the new language"}});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const M=d.object({UILanguage:d.string()});globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(a,e){return this.cache.has(a)?this.cache.get(a):(this.cache.set(a,e),e)}};const V=({instance:a})=>{var o;const{onCancel:e}=O(),{languageOptions:s,languages:g}=U(),n=A({resolver:E(M),defaultValues:{UILanguage:((o=g[0])==null?void 0:o.id)||""},mode:"onBlur"}),r=I(T,f.UPDATE_SUCCESS,[m]),l=t=>h(null,null,function*(){yield r({languageId:t.UILanguage,id:a.id}),yield e()});return i.jsxs(b,{actions:i.jsx(_,{name:"cancel",onClick:e,title:C.CANCEL,type:"button"}),formHook:n,isOpen:!0,name:"change-ui-language",onCancel:e,onSubmit:l,submitLabel:c.CHANGE_BUTTON,title:c.HEADER,children:[i.jsx(p,{icon:"information",children:c.NOTICE}),i.jsx(L,{formHook:n,label:c.LABEL,name:"UILanguage",options:s})]})};export{V as default}; 2//# sourceMappingURL=section_forex-vps_list_details_change-language_views-CTNi6ar6.js.map
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.