1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="718a47d0-833c-4091-ad18-84da8f71494a",e._sentryDebugIdIdentifier="sentry-dbid-718a47d0-833c-4091-ad18-84da8f71494a")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"b536d8afd6805652df2813ecb6ec0bc58faae7c4"}}catch(e){}}(),(globalThis.webpackChunkdxbx_fe=globalThis.webpackChunkdxbx_fe||[]).push([[9563],{13407(e,r,n){n.d(r,{o1:()=>l,SG:()=>s,r8:()=>o,vg:()=>a});var t=n(50200);const o=e=>{let{options:r,queryParams:n}=e;return(0,t.PX)({method:"GET",queryKey:["front-gateway","usdo-settings","v1","rules","invoice"],options:r,params:n})},a=e=>{let{options:r,invoicePublicId:n}=e;return(0,t.OQ)({method:"PATCH",queryKey:["front-gateway","usdo-settings","v1","rules","invoice",n],options:r})},s=e=>{let{options:r,invoiceRulePublicId:n}=e;return(0,t.PX)({method:"GET",queryKey:["front-gateway","usdo-settings","v1","rules","invoice",n],options:r})},l=e=>{let{options:r}=e;return(0,t.OQ)({method:"POST",queryKey:["front-gateway","usdo-settings","v1","rules","invoice"],options:r})}},44955(e,r,n){n.d(r,{L$:()=>l,dU:()=>s,eu:()=>o,jt:()=>a,vC:()=>t});let t=function(e){return e.IN_PROGRESS="IN_PROGRESS",e.WAITING_USER_ACTION="WAITING_USER_ACTION",e.COMPLETED="COMPLETED",e.CANCELLED="CANCELLED",e.FAILED="FAILED",e}({}),o=function(e){return e.NO_WRITE_OFF="NO_WRITE_OFF",e.AUTO_WRITE_OFF="AUTO_WRITE_OFF",e}({}),a=function(e){return e.INVOICE_CREATED="INVOICE_CREATED",e.INVOICE_CREATION_SKIPPED="INVOICE_CREATION_SKIPPED",e}({}),s=function(e){return e.INVOICE_CREATION="INVOICE_CREATION",e.REJECT="REJECT",e.USDO_DOCUMENT_REJECT="USDO_DOCUMENT_REJECT",e.USDO_DOCUMENT_CONFIRM="USDO_DOCUMENT_CONFIRM",e}({}),l=function(e){return e.SUPPLIER_BLACKLISTED="SUPPLIER_BLACKLISTED",e.CONTRACT_BLACKLISTED="CONTRACT_BLACKLISTED",e.UPD_ITEM_QUANTITY_IS_NULL="UPD_ITEM_QUANTITY_IS_NULL",e}({})},72178(e,r,n){n.d(r,{Zg:()=>s,rm:()=>i,AZ:()=>l,MI:()=>a,Sn:()=>d,c_:()=>c,pR:()=>g,Nx:()=>b,Q_:()=>E,Q0:()=>T,Yp:()=>I,GU:()=>y,ic:()=>w,n$:()=>O,oN:()=>_,to:()=>h,Dn:()=>f,wf:()=>m,h4:()=>P});var t=n(64467),o=n(50200);const a=[{keyPath:"company.name"},{value:", "},{keyPath:"legalPerson.name"},{value:" ("},{keyPath:"legalPerson.inn"},{prefix:" / ",keyPath:"legalPerson.kpp"},{prefix:" / ",keyPath:"legalPerson.additionalIdentifier"},{value:")"}],s="/front/legalperson/searchactive",l="/front/legalperson/supplier/search",i="/front/legalperson/buyer/search",c=e=>e.data.legalPersons.map((e=>({value:JSON.stringify(e),label:e.title}))),d=e=>["front","legalperson",e];function p(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function u(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){(0,t.A)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}const y=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","common","legalperson","search"],headers:{contentType:"application/x-www-form-urlencoded"},params:{query:e},options:r}),m=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","legalperson","supplier","search"],headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e},options:r}),f=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","legalperson","buyer","search"],headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e},options:r}),h=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","legalperson","searchactive"],headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e},options:r}),g=e=>(0,o.dm)({method:"GET",url:s,headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e}}),E=e=>(0,o.dm)({method:"GET",url:l,headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e}}),b=e=>(0,o.dm)({method:"GET",url:i,headers:{contentType:"application/x-www-form-urlencoded"},params:{searchString:e}}),P=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","legalperson","inn",e],headers:{contentType:"application/x-www-form-urlencoded"},options:r}),O=(e,r,n)=>(0,o.PX)({method:"GET",queryKey:["front","contacts","suppliers",e,"buyers",r],options:n}),T=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","contacts","buyers",e],options:r}),I=(e,r)=>(0,o.PX)({method:"GET",queryKey:["front","legalperson","company","search"],params:{searchString:e},options:r}),_=(e,r,n)=>(0,o.PX)({method:"GET",queryKey:["front","legalpersons","buyers","company",e,"search"],params:{searchString:r},options:u(u({},n),{},{enabled:!1})}),w=(e,r)=>(0,o.PX)({method:"GET",queryKey:d(e),options:u({enabled:!1},r)})},89563(e,r,n){n.r(r),n.d(r,{default:()=>I});var t=n(64467),o=n(32389),a=n(47767),s=n(92568),l=n(71511),i=n(14012),c=n(80489),d=n(13407),p=n(44955),u=n(72178),y=n(36272),m=n(90040),f=n(68678),h=n(58677),g=n(76489),E=n(66570),b=n(26543),P=n(74848);function O(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function T(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};
1r%2?O(Object(n),!0).forEach((function(r){(0,t.A)(e,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))}))}return e}const I=()=>{const{t:e}=(0,o.Bd)("document-processing-rules",{keyPrefix:"create"}),r=(0,a.Zp)(),{form:n,onFormFinish:t,isCreateDocumentProcessingRuleLoading:s,supplierSearchRequestApiReturnProps:c,buyerSearchRequestApiReturnProps:d}=_();return(0,P.jsxs)(w,{children:[(0,P.jsx)(i.$t,{title:e("pageTitle"),onBack:()=>r((0,b.G3)())}),(0,P.jsxs)(f.tW,{form:n,layout:"vertical",onFinish:t,initialValues:R,children:[(0,P.jsx)(g.rF,{justify:"center",children:(0,P.jsx)(C,{span:24,children:(0,P.jsxs)(l.mh,{cardTitle:e("formTitle"),children:[(0,P.jsx)(f.tW.Item,{name:"supplierLegalPersonInn",rules:[{required:!0}],label:e("supplierLegalPersonInnField.label"),children:(0,P.jsx)(S,T(T({},c),{},{placeholder:e("supplierLegalPersonInnField.placeholder"),allowClear:!0}))}),(0,P.jsx)(f.tW.Item,{name:"buyerLegalPersonPublicId",rules:[{required:!0}],label:e("buyerLegalPersonPublicIdField.label"),children:(0,P.jsx)(S,T(T({},d),{},{placeholder:e("buyerLegalPersonPublicIdField.placeholder"),allowClear:!0}))}),(0,P.jsx)(f.tW.Item,{name:"updProcessingEnabled",label:e("updProcessingEnabledField.label"),valuePropName:"checked",children:(0,P.jsx)(E.z,{})}),(0,P.jsx)(f.tW.Item,{name:"markWriteOffMode",label:e("markWriteOffModeField.label"),valuePropName:"checked",children:(0,P.jsx)(E.z,{})}),(0,P.jsx)(f.tW.Item,{name:"comment",label:e("commentField.label"),children:(0,P.jsx)(h.$L.TextArea,{rows:4,autoSize:!0})})]})})}),(0,P.jsx)(g.rF,{justify:"center",children:(0,P.jsx)(C,{span:24,children:(0,P.jsx)(y.FJ,{mode:"primary",loading:s,htmlType:"submit",children:e("submitButton.label")})})})]})]})},_=()=>{const e=(0,a.Zp)(),[r]=f.tW.useForm(),n=(0,c.hB)({requestFn:e=>(0,u.Q_)(e),queryConfig:{queryKey:[u.AZ,"supplier"],select:e=>e.data.legalPersons.map((e=>({label:e.title,value:e.inn})))}}),t=(0,c.hB)({requestFn:e=>(0,u.pR)(e),queryConfig:{queryKey:[u.Zg,"buyer"],select:e=>e.data.legalPersons.map((e=>({label:e.title,value:e.publicId})))}}),{mutate:o,isLoading:s}=(0,d.o1)({options:{onSuccess:r=>{e((0,b.Pu)(r.data.publicId))}}});return{form:r,onFormFinish:e=>{let{buyerLegalPersonPublicId:r,comment:n,markWriteOffMode:t,supplierLegalPersonInn:a,updProcessingEnabled:s}=e;o({buyerLegalPersonPublicId:r,comment:n,markWriteOffMode:t?p.eu.AUTO_WRITE_OFF:p.eu.NO_WRITE_OFF,supplierLegalPersonInn:a,updProcessingEnabled:s})},isCreateDocumentProcessingRuleLoading:s,supplierSearchRequestApiReturnProps:n,buyerSearchRequestApiReturnProps:t}},w=s.Ay.div.withConfig({displayName:"document-processing-rules-createcomponent__StyledPageWrapper",componentId:"sc-1wj0r41-0"})(["margin-bottom:var(--base-indent-50);"]),C=(0,s.Ay)(m.QH).withConfig({displayName:"document-processing-rules-createcomponent__StyledCol",componentId:"sc-1wj0r41-1"})(["max-width:600px;"]),S=(0,s.Ay)(c.p2).withConfig({displayName:"document-processing-rules-createcomponent__StyledSearchSelect",componentId:"sc-1wj0r41-2"})(["width:100%;"]),R={buyerLegalPersonPublicId:void 0,comment:"",markWriteOffMode:!1,supplierLegalPersonInn:void 0,updProcessingEnabled:!1}},26543(e,r,n){n.d(r,{G3:()=>o,Pu:()=>a,gQ:()=>s});var t=n(62041);const o=()=>`/${t.JE.DOCUMENT_PROCESSING_RULES}`,a=e=>`/${t.JE.DOCUMENT_PROCESSING_RULES}/${e}`,s=()=>`/${t.JE.DOCUMENT_PROCESSING_RULES}/${t.JE.CREATE}`},66570(e,r,n){n.d(r,{z:()=>t});const t=n(11134).dO}}]);
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.