PageSourceSearch

https://app.platformabg.ru/assets/PageBrokerProfile-ff14e443.js

js platformabg.ru collected 2026-10-07 18:17:33 UTC 4,382 bytes, 1 lines download raw bytes

1import{g as w,e as v,j as r,a8 as y,a9 as C,T as _,af as n}from"./index-0baa37ae.js";import{u as F}from"./useCompanyQuery-e32ab6cc.js";import{C as B,a as N}from"./CompanyMainInfoCard-f6b27ca5.js";import{C as T}from"./ContactPersonInfo-e6c971ae.js";import{D as V,V as I}from"./VerificationStatusField-41628327.js";import{T as A,a as E,s as D}from"./PageCustomerProfile.texts-3194e173.js";import{a as S}from"./FallbackScreen-5ec4b491.js";import{F as R}from"./Form-f16dc236.js";import"./FormConfigContext-148379d9.js";import"./index-16c44a48.js";import"./TextField-9eae1394.js";import{F as q}from"./FormButton-618109e9.js";import{C as G}from"./CheckBoxField-3e14fe2a.js";import{P as M}from"./PageProgress-4ec9843c.js";import{u as X}from"./useParam-aed05297.js";import"./registryCodesFieldValidation-8be218c2.js";import"./index-ad34db1f.js";import"./isNotFoundError-d75bcbd4.js";import"./setMutationErrorsToForm-d13fdc05.js";import"./index.esm-c450a491.js";import"./useSupportChat-44814aad.js";import"./ProfileSectionPaper-6f08ef6f.js";import"./verificationStatus-4cc1d96d.js";import"./useReverificationConfirm-5f5b0e99.js";import"./ProfileSectionHeader-3b9a6fd2.js";import"./profileDeepLink-05d6ed47.js";import"./isEditUrl-3acbde09.js";import"./zodTin-2af8bdff.js";import"./Autocomplete-1069d133.js";import"./TextField-ab5088a8.js";import"./Menu-6be3b995.js";import"./Popper-ba48fc97.js";import"./usePreviousProps-d377d434.js";import"./Chip-4834a476.js";import"./SectionHeading-49da9f7d.js";import"./react-svg.esm-e59e7d72.js";import"./tslib.es6-5cbfd40c.js";import"./index-359c538c.js";import"./Dialog-e712d25c.js";import"./index-a0441125.js";import"./plus-9a406d1a.js";import"./theme-e461ec3b.js";import"./RadioGroup-3d2883f8.js";import"./TextAreaField-12422374.js";import"./x-0c2b4b56.js";import"./Delete-860170db.js";import"./RadioGroupField-c61f6cc0.js";import"./RadioGroup-4248da40.js";import"./FormGroup-3dd9b03d.js";import"./Checkbox-0469bdc4.js";const t={auctionsEnabled:A.auctionsEnabled,auctionsAfterVerification:"Включите после верификации",auctionsConsequences:"Без флага брокер не видит раздел «Аукционы», не получает приглашений и его заявки идут через менеджера; аукционы, где он уже участвует, он доводит до конца"},qr=()=>{const l=X("id"),e=Number.parseInt(l),s={params:{id:e}},{data:a,isLoading:p,key:c}=w.useGetApiv1brokersId(s),f=v(),{card:d}=F({role:"broker",id:e});if(p)return r.jsx(M,{});if(!a)return r.jsx(S,{});const{last_name:u,first_name:x,middle_name:b,phone:g,email:j,verification_status:k,auctions_enabled:h}=a;return r.jsxs("main",{className:"max-w-full min-w-0 px-4 sm:px-6 md:px-8",children:[r.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between sm:gap-5",children:[r.jsxs("div",{className:"min-w-0",children:[r.jsx("h1",{className:"mt-4 text-2xl sm:mt-6 sm:text-3xl md:text-4xl",children:"Профиль Брокера"}),r.jsx("span",{className:"mt-2 block break-words color-blueGray-400",children:d.name})]}),r.jsx("div",{className:"flex w-full flex-col gap-3 sm:w-auto sm:flex-row sm:flex-wrap sm:gap-5",children:r.jsx(V,{id:e,onDelete:()=>f(y.brokers.absolute()),filterByAccountRole:"broker",trigger:"Удалить брокера"})})]}),r.jsxs(C,{spacing:2,sx:{mt:3},children:[r.jsx(B,{owner:{role:"broker",id:e}}),r.jsx(N,{owner:{role:"broker",id:e}})]}),r.jsx("div",{className:"w-full min-w-0 max-w-128",children:r.jsx(R,{config:{readonly:!1},defaultValues:{last_name:u,first_name:x,middle_name:b,phone:g,email:j,verification_status:k,auctions_enabled:h},schema:E,onSubmit:(m,o)=>D({profileKey:c,getProfile:()=>n.getApiv1brokersId(s),putProfile:i=>n.putApiv1brokersId(i,s),savedMessage:"Данные брокера успешно обновлены"})(o),children:({formState:m,watch:o})=>{const i=o("verification_status")==="verified",P=o("auctions_enabled")===!0;return r.jsxs(r.Fragment,{children:[r.jsx(T,{}),r.jsx(I,{}),r.jsx(G,{name:"auctions_enabled",label:t.auctionsEnabled,disabled:!i&&!P,sx:{mt:2}}),r.jsx(_,{variant:"caption",color:"text.secondary",children:i?t.auctionsConsequences:t.auctionsAfterVerification}),r.jsx("div",{children:r.jsx(q,{disabled:!m.isDirty,noValidate:!0})})]})}})})]},e)};export{qr as PageBrokerProfile};

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.