test-stpr-ui-kit 0.4.26 → 0.4.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/test-stpr-ui-kit.js
CHANGED
|
@@ -4317,7 +4317,7 @@ const Rr = (e) => `not ${e}`, Ar = (e, t) => {
|
|
|
4317
4317
|
...i
|
|
4318
4318
|
};
|
|
4319
4319
|
return /* @__PURE__ */ l("div", { style: r, className: _(a, as.skeleton) });
|
|
4320
|
-
}, is = "_spTable_1vuaj_43", rs = "_spTable__tdContentCopyIcon_1vuaj_62", ss = "_spTable__tdContent_1vuaj_62", ps = "_spTable__tdColorContent_1vuaj_72", cs = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ls = "_spTable__emptyPage_1vuaj_89", ds = "_spStringsGroup_1vuaj_105", us = "_spStringsGroup__groupItem_1vuaj_119", ms = "_spStringsGroup__groupItemHeader_1vuaj_134", fs = "_spStringsGroup__groupItemContent_1vuaj_138", _s = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", vs = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", he = {
|
|
4320
|
+
}, pn = (e) => e == null || e === "" ? !0 : typeof e != "string" && typeof e.toString != "function" ? !1 : e.toString().replace(/\s/g, "").length < 1, is = "_spTable_1vuaj_43", rs = "_spTable__tdContentCopyIcon_1vuaj_62", ss = "_spTable__tdContent_1vuaj_62", ps = "_spTable__tdColorContent_1vuaj_72", cs = "_spTable__tdContentCopyIcon_copied_1vuaj_85", ls = "_spTable__emptyPage_1vuaj_89", ds = "_spStringsGroup_1vuaj_105", us = "_spStringsGroup__groupItem_1vuaj_119", ms = "_spStringsGroup__groupItemHeader_1vuaj_134", fs = "_spStringsGroup__groupItemContent_1vuaj_138", _s = "_spStringsGroup__groupItemContentCopyIcon_1vuaj_144", vs = "_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151", he = {
|
|
4321
4321
|
spTable: is,
|
|
4322
4322
|
spTable__tdContentCopyIcon: rs,
|
|
4323
4323
|
spTable__tdContent: ss,
|
|
@@ -4330,16 +4330,16 @@ const Rr = (e) => `not ${e}`, Ar = (e, t) => {
|
|
|
4330
4330
|
spStringsGroup__groupItemContent: fs,
|
|
4331
4331
|
spStringsGroup__groupItemContentCopyIcon: _s,
|
|
4332
4332
|
spStringsGroup__groupItemContentCopyIcon_copied: vs
|
|
4333
|
-
},
|
|
4333
|
+
}, Bs = (e) => {
|
|
4334
4334
|
const {
|
|
4335
4335
|
columns: t,
|
|
4336
4336
|
data: n,
|
|
4337
4337
|
isNotTableOnNotDesktop: o = !1,
|
|
4338
4338
|
classNameRoot: a
|
|
4339
|
-
} = e, i = t.map((y) =>
|
|
4339
|
+
} = e, i = t.map((y) => n ? {
|
|
4340
4340
|
...y,
|
|
4341
4341
|
isVisible: n.some((p) => !!p[y.key])
|
|
4342
|
-
})
|
|
4342
|
+
} : y).filter((y) => y.isVisible), r = _({
|
|
4343
4343
|
[he.spTable]: !0,
|
|
4344
4344
|
...a && { [a]: !0 }
|
|
4345
4345
|
}), s = _({
|
|
@@ -22,4 +22,4 @@ Valid keys: `+JSON.stringify(Object.keys(f),null," "));var g=ot(O,W,I,q,B+"."+W
|
|
|
22
22
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function An(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Cn(t){if(Array.isArray(t))return fe(t)}function no(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function ao(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?no(Object(o),!0).forEach(function(n){io(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):no(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function io(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Nt(t,e){return zn(t)||Ln(t,e)||ro(t,e)||Tn()}function Tn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
23
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(t,e){if(t){if(typeof t=="string")return fe(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return fe(t,e)}}function fe(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function Ln(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],a=!0,i=!1,r,p;try{for(o=o.call(t);!(a=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));a=!0);}catch(u){i=!0,p=u}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw p}}return n}}function zn(t){if(Array.isArray(t))return t}var In=typeof _e=="function"?_e:_e.default,En="file-invalid-type",Bn="file-too-large",jn="file-too-small",Nn="too-many-files",Dn=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o=e.split(","),n=o.length>1?"one of ".concat(o.join(", ")):o[0];return{code:En,message:"File type must be ".concat(n)}},so=function(e){return{code:Bn,message:"File is larger than ".concat(e," ").concat(e===1?"byte":"bytes")}},po=function(e){return{code:jn,message:"File is smaller than ".concat(e," ").concat(e===1?"byte":"bytes")}},Fn={code:Nn,message:"Too many files"};function lo(t,e){var o=t.type==="application/x-moz-file"||In(t,e);return[o,o?null:Dn(e)]}function co(t,e,o){if(Ct(t.size))if(Ct(e)&&Ct(o)){if(t.size>o)return[!1,so(o)];if(t.size<e)return[!1,po(e)]}else{if(Ct(e)&&t.size<e)return[!1,po(e)];if(Ct(o)&&t.size>o)return[!1,so(o)]}return[!0,null]}function Ct(t){return t!=null}function Mn(t){var e=t.files,o=t.accept,n=t.minSize,a=t.maxSize,i=t.multiple,r=t.maxFiles,p=t.validator;return!i&&e.length>1||i&&r>=1&&e.length>r?!1:e.every(function(u){var c=lo(u,o),d=Nt(c,1),_=d[0],b=co(u,n,a),k=Nt(b,1),T=k[0],y=p?p(u):null;return _&&T&&!y})}function qt(t){return typeof t.isPropagationStopped=="function"?t.isPropagationStopped():typeof t.cancelBubble<"u"?t.cancelBubble:!1}function $t(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!t.target&&!!t.target.files}function _o(t){t.preventDefault()}function On(t){return t.indexOf("MSIE")!==-1||t.indexOf("Trident/")!==-1}function Hn(t){return t.indexOf("Edge/")!==-1}function Pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return On(t)||Hn(t)}function bt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(n){for(var a=arguments.length,i=new Array(a>1?a-1:0),r=1;r<a;r++)i[r-1]=arguments[r];return e.some(function(p){return!qt(n)&&p&&p.apply(void 0,[n].concat(i)),qt(n)})}}function Wn(){return"showOpenFilePicker"in window}function Gn(t){if(Ct(t)){var e=Object.entries(t).filter(function(o){var n=Nt(o,2),a=n[0],i=n[1],r=!0;return fo(a)||(console.warn('Skipped "'.concat(a,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),r=!1),(!Array.isArray(i)||!i.every(uo))&&(console.warn('Skipped "'.concat(a,'" because an invalid file extension was provided.')),r=!1),r}).reduce(function(o,n){var a=Nt(n,2),i=a[0],r=a[1];return ao(ao({},o),{},io({},i,r))},{});return[{description:"Files",accept:e}]}return t}function qn(t){if(Ct(t))return Object.entries(t).reduce(function(e,o){var n=Nt(o,2),a=n[0],i=n[1];return[].concat(oo(e),[a],oo(i))},[]).filter(function(e){return fo(e)||uo(e)}).join(",")}function $n(t){return t instanceof DOMException&&(t.name==="AbortError"||t.code===t.ABORT_ERR)}function Rn(t){return t instanceof DOMException&&(t.name==="SecurityError"||t.code===t.SECURITY_ERR)}function fo(t){return t==="audio/*"||t==="video/*"||t==="image/*"||t==="text/*"||t==="application/*"||/\w+\/[-+.\w]+/g.test(t)}function uo(t){return/^.*\.[\w]+$/.test(t)}var Vn=["children"],Yn=["open"],Un=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Kn=["refKey","onChange","onClick"];function Xn(t){return Jn(t)||Qn(t)||mo(t)||Zn()}function Zn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
24
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qn(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jn(t){if(Array.isArray(t))return me(t)}function ue(t,e){return oa(t)||ea(t,e)||mo(t,e)||ta()}function ta(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
25
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(t,e){if(t){if(typeof t=="string")return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function ea(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],a=!0,i=!1,r,p;try{for(o=o.call(t);!(a=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));a=!0);}catch(u){i=!0,p=u}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw p}}return n}}function oa(t){if(Array.isArray(t))return t}function xo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function J(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?xo(Object(o),!0).forEach(function(n){xe(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):xo(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rt(t,e){if(t==null)return{};var o=na(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function na(t,e){if(t==null)return{};var o={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(o[a]=t[a]);return o}var Vt=x.forwardRef(function(t,e){var o=t.children,n=Rt(t,Vn),a=aa(n),i=a.open,r=Rt(a,Yn);return x.useImperativeHandle(e,function(){return{open:i}},[i]),x.createElement(x.Fragment,null,o(J(J({},r),{},{open:i})))});Vt.displayName="Dropzone";var go={disabled:!1,getFilesFromEvent:mn,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Vt.defaultProps=go,Vt.propTypes={children:C.func,accept:C.objectOf(C.arrayOf(C.string)),multiple:C.bool,preventDropOnDocument:C.bool,noClick:C.bool,noKeyboard:C.bool,noDrag:C.bool,noDragEventsBubbling:C.bool,minSize:C.number,maxSize:C.number,maxFiles:C.number,disabled:C.bool,getFilesFromEvent:C.func,onFileDialogCancel:C.func,onFileDialogOpen:C.func,useFsAccessApi:C.bool,autoFocus:C.bool,onDragEnter:C.func,onDragLeave:C.func,onDragOver:C.func,onDrop:C.func,onDropAccepted:C.func,onDropRejected:C.func,onError:C.func,validator:C.func};var ge={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function aa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=J(J({},go),t),o=e.accept,n=e.disabled,a=e.getFilesFromEvent,i=e.maxSize,r=e.minSize,p=e.multiple,u=e.maxFiles,c=e.onDragEnter,d=e.onDragLeave,_=e.onDragOver,b=e.onDrop,k=e.onDropAccepted,T=e.onDropRejected,y=e.onFileDialogCancel,E=e.onFileDialogOpen,F=e.useFsAccessApi,Y=e.autoFocus,j=e.preventDropOnDocument,w=e.noClick,l=e.noKeyboard,A=e.noDrag,P=e.noDragEventsBubbling,R=e.onError,tt=e.validator,nt=x.useMemo(function(){return qn(o)},[o]),ft=x.useMemo(function(){return Gn(o)},[o]),ut=x.useMemo(function(){return typeof E=="function"?E:vo},[E]),ct=x.useMemo(function(){return typeof y=="function"?y:vo},[y]),Z=x.useRef(null),Q=x.useRef(null),S=x.useReducer(ia,ge),G=ue(S,2),X=G[0],H=G[1],f=X.isFocused,h=X.isFileDialogActive,N=x.useRef(typeof window<"u"&&window.isSecureContext&&F&&Wn()),M=function(){!N.current&&h&&setTimeout(function(){if(Q.current){var L=Q.current.files;L.length||(H({type:"closeDialog"}),ct())}},300)};x.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,h,ct,N]);var I=x.useRef([]),q=function(L){Z.current&&Z.current.contains(L.target)||(L.preventDefault(),I.current=[])};x.useEffect(function(){return j&&(document.addEventListener("dragover",_o,!1),document.addEventListener("drop",q,!1)),function(){j&&(document.removeEventListener("dragover",_o),document.removeEventListener("drop",q))}},[Z,j]),x.useEffect(function(){return!n&&Y&&Z.current&&Z.current.focus(),function(){}},[Z,Y,n]);var B=x.useCallback(function(v){R?R(v):console.error(v)},[R]),O=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v),I.current=[].concat(Xn(I.current),[v.target]),$t(v)&&Promise.resolve(a(v)).then(function(L){if(!(qt(v)&&!P)){var et=L.length,at=et>0&&Mn({files:L,accept:nt,minSize:r,maxSize:i,multiple:p,maxFiles:u,validator:tt}),xt=et>0&&!at;H({isDragAccept:at,isDragReject:xt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(v)}}).catch(function(L){return B(L)})},[a,c,B,P,nt,r,i,p,u,tt]),$=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v);var L=$t(v);if(L&&v.dataTransfer)try{v.dataTransfer.dropEffect="copy"}catch{}return L&&_&&_(v),!1},[_,P]),V=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v);var L=I.current.filter(function(at){return Z.current&&Z.current.contains(at)}),et=L.indexOf(v.target);et!==-1&&L.splice(et,1),I.current=L,!(L.length>0)&&(H({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$t(v)&&d&&d(v))},[Z,d,P]),W=x.useCallback(function(v,L){var et=[],at=[];v.forEach(function(xt){var Mt=lo(xt,nt),Et=ue(Mt,2),ke=Et[0],Se=Et[1],Ae=co(xt,r,i),Zt=ue(Ae,2),Ce=Zt[0],Te=Zt[1],Le=tt?tt(xt):null;if(ke&&Ce&&!Le)et.push(xt);else{var ze=[Se,Te];Le&&(ze=ze.concat(Le)),at.push({file:xt,errors:ze.filter(function(Za){return Za})})}}),(!p&&et.length>1||p&&u>=1&&et.length>u)&&(et.forEach(function(xt){at.push({file:xt,errors:[Fn]})}),et.splice(0)),H({acceptedFiles:et,fileRejections:at,isDragReject:at.length>0,type:"setFiles"}),b&&b(et,at,L),at.length>0&&T&&T(at,L),et.length>0&&k&&k(et,L)},[H,p,nt,r,i,u,b,k,T,tt]),ot=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v),I.current=[],$t(v)&&Promise.resolve(a(v)).then(function(L){qt(v)&&!P||W(L,v)}).catch(function(L){return B(L)}),H({type:"reset"})},[a,W,B,P]),g=x.useCallback(function(){if(N.current){H({type:"openDialog"}),ut();var v={multiple:p,types:ft};window.showOpenFilePicker(v).then(function(L){return a(L)}).then(function(L){W(L,null),H({type:"closeDialog"})}).catch(function(L){$n(L)?(ct(L),H({type:"closeDialog"})):Rn(L)?(N.current=!1,Q.current?(Q.current.value=null,Q.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(L)});return}Q.current&&(H({type:"openDialog"}),ut(),Q.current.value=null,Q.current.click())},[H,ut,ct,F,W,B,ft,p]),mt=x.useCallback(function(v){!Z.current||!Z.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),g())},[Z,g]),Lt=x.useCallback(function(){H({type:"focus"})},[]),Ft=x.useCallback(function(){H({type:"blur"})},[]),jo=x.useCallback(function(){w||(Pn()?setTimeout(g,0):g())},[w,g]),It=function(L){return n?null:L},we=function(L){return l?null:It(L)},Kt=function(L){return A?null:It(L)},Xt=function(L){P&&L.stopPropagation()},Ua=x.useMemo(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=v.refKey,et=L===void 0?"ref":L,at=v.role,xt=v.onKeyDown,Mt=v.onFocus,Et=v.onBlur,ke=v.onClick,Se=v.onDragEnter,Ae=v.onDragOver,Zt=v.onDragLeave,Ce=v.onDrop,Te=Rt(v,Un);return J(J(xe({onKeyDown:we(bt(xt,mt)),onFocus:we(bt(Mt,Lt)),onBlur:we(bt(Et,Ft)),onClick:It(bt(ke,jo)),onDragEnter:Kt(bt(Se,O)),onDragOver:Kt(bt(Ae,$)),onDragLeave:Kt(bt(Zt,V)),onDrop:Kt(bt(Ce,ot)),role:typeof at=="string"&&at!==""?at:"presentation"},et,Z),!n&&!l?{tabIndex:0}:{}),Te)}},[Z,mt,Lt,Ft,jo,O,$,V,ot,l,A,n]),Ka=x.useCallback(function(v){v.stopPropagation()},[]),Xa=x.useMemo(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=v.refKey,et=L===void 0?"ref":L,at=v.onChange,xt=v.onClick,Mt=Rt(v,Kn),Et=xe({accept:nt,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:It(bt(at,ot)),onClick:It(bt(xt,Ka)),tabIndex:-1},et,Q);return J(J({},Et),Mt)}},[Q,o,p,ot,n]);return J(J({},X),{},{isFocused:f&&!n,getRootProps:Ua,getInputProps:Xa,rootRef:Z,inputRef:Q,open:It(g)})}function ia(t,e){switch(e.type){case"focus":return J(J({},t),{},{isFocused:!0});case"blur":return J(J({},t),{},{isFocused:!1});case"openDialog":return J(J({},ge),{},{isFileDialogActive:!0});case"closeDialog":return J(J({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return J(J({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return J(J({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return J({},ge);default:return t}}function vo(){}const ho=t=>{const{onDropFiles:e,children:o,maxSize:n,accept:a,disabled:i,name:r,multiple:p,maxFiles:u,files:c=[]}=t,d=x.useCallback(_=>{if(!p){e(_,r);return}const b=[...c,..._];if(u&&b.length>u){console.log(`Максимальное возможное количество файлов для загрузки - ${u}`),e(b.slice(0,u),r);return}e(b,r)},[c,u,p,r,e]);return s.jsx(Vt,{multiple:p,onDrop:d,maxSize:n,accept:a,children:({getRootProps:_,getInputProps:b})=>s.jsxs("div",{..._({}),children:[s.jsx("input",{...b({}),disabled:i,name:r}),o]})})},St={spDropdown:"_spDropdown_1f4lf_43",spDropdown__labelText:"_spDropdown__labelText_1f4lf_54",spDropdown__tooltipContainer:"_spDropdown__tooltipContainer_1f4lf_62",spDropdown__dropdownList:"_spDropdown__dropdownList_1f4lf_67",spDropdown__dropdownListHeader:"_spDropdown__dropdownListHeader_1f4lf_73",spDropdown__dopdownListItem:"_spDropdown__dopdownListItem_1f4lf_80",spDropdown__dopdownListItem_textCenter:"_spDropdown__dopdownListItem_textCenter_1f4lf_91",spDropdown__downloadListItemDescription:"_spDropdown__downloadListItemDescription_1f4lf_94"},ra=t=>{const{labelText:e="Выпадающий список",listName:o,dropdownList:n=[],dropdownPosition:a=rt.BottomRight,classNameRoot:i}=t,r=m({[St.spDropdown]:!0,...i&&{[i]:!0}}),p=m({[St.spDropdown__labelText]:!0}),u=m({[St.spDropdown__tooltipContainer]:!0}),c=m({[St.spDropdown__dropdownList]:!0}),d=m({[St.spDropdown__dropdownListHeader]:!0}),_=m({[St.spDropdown__downloadListItemDescription]:!0}),[b,k]=x.useState(!1),T=()=>s.jsxs("div",{className:c,children:[o&&s.jsx("div",{className:d,children:o}),n.map((y,E)=>s.jsxs("div",{className:m({[St.spDropdown__dopdownListItem]:!0,[St.spDropdown__dopdownListItem_textCenter]:y.textCenter}),onClick:y.onClick,children:[y.name,y.description&&s.jsx("span",{className:_,children:y.description})]},E))]});return s.jsx(Ht,{hover:!1,triggerAction:()=>k(!0),actionOnClose:()=>k(!1),text:T(),position:a,noPadding:!0,isToggleClick:!0,isStopPropagationClickOnTrigger:!0,trigger:s.jsxs("div",{className:r,children:[s.jsx("div",{className:p,children:e}),s.jsx("div",{className:u,children:s.jsx(lt,{name:it.SelectChevronDown,rotate:b?180:void 0})})]})})},bo={ellipsisTextWithTooltip:"_ellipsisTextWithTooltip_1nhiw_43",ellipsisTextWithTooltip__tooltip:"_ellipsisTextWithTooltip__tooltip_1nhiw_46"},yo=t=>{const{text:e,classNameRoot:o,classNameTooltipRoot:n,classNameTriggerTooltipRoot:a,classNameBaseTooltipContentRoot:i,classNameBaseTooltipRoot:r,...p}=t,u=x.useRef(null),[c,d]=x.useState(!1);x.useEffect(()=>{u.current&&d(u.current.scrollWidth>u.current.clientWidth)},[e]);const _=m({[bo.ellipsisTextWithTooltip]:!0,...o&&{[o]:!0}}),b=m({[bo.ellipsisTextWithTooltip__tooltip]:!0,...n&&{[n]:!0}}),k=m({...a&&{[a]:!0}});return s.jsx(Ht,{classNameTooltip:b,classNameTriggerTooltip:k,classNameBaseTooltipContentRoot:i,classNameBaseTooltipRoot:r,isVisibleTooltip:c,text:e,trigger:s.jsx(yt,{...p,classNameRoot:_,isEllipsis:!0,ref:u,children:e})})},Dt={spForm:"_spForm_zefbj_43",spForm_fullWidth:"_spForm_fullWidth_zefbj_46",spForm_withSeparator:"_spForm_withSeparator_zefbj_49","spForm_addMargin--size-lg":"_spForm_addMargin--size-lg_zefbj_67","spForm_addMargin--size-md":"_spForm_addMargin--size-md_zefbj_75"},sa=t=>{const{size:e="lg",children:o,onSubmit:n,addMargin:a=!1,withSeparator:i=!1,fullWidth:r=!0,classNameRoot:p,...u}=t,c=m({[Dt.spForm]:!0,[Dt.spForm_fullWidth]:r,[Dt.spForm_addMargin]:a,[Dt[`spForm_addMargin--size-${e}`]]:a&&e,[Dt.spForm_withSeparator]:i,...p&&{[p]:!0}}),d=_=>{_.preventDefault(),n&&n()};return s.jsx("form",{...u,onSubmit:d,className:c,children:o})},Yt={spLabel:"_spLabel_g0hfy_43",spLabel__text:"_spLabel__text_g0hfy_52",spLabel__tooltip:"_spLabel__tooltip_g0hfy_62",spLabel__required:"_spLabel__required_g0hfy_67"},Ut=t=>{const{required:e,label:o,infoTooltipText:n,tooltipPosition:a,classNameRoot:i,classNameBaseTooltipRoot:r}=t,p=m({[Yt.spLabel]:!0,...i&&{[i]:!0}}),u=m({[Yt.spLabel__text]:!0}),c=m({[Yt.spLabel__required]:e}),d=m({[Yt.spLabel__tooltip]:!0});return s.jsxs("div",{className:p,children:[s.jsx("label",{className:u,children:o}),e&&s.jsx("div",{className:c,children:"*"}),n&&s.jsx("div",{className:d,children:s.jsx(jt,{position:a,text:n,classNameBaseTooltipRoot:r})})]})},kt={spInput:"_spInput_etrn0_43",spInput_error:"_spInput_error_etrn0_48",spInput__control:"_spInput__control_etrn0_48",spInput__container:"_spInput__container_etrn0_55",spInput__control_filled:"_spInput__control_filled_etrn0_74",spInput__control_outlined:"_spInput__control_outlined_etrn0_78",spInput__control_disabled:"_spInput__control_disabled_etrn0_82",spInput__control_clearable:"_spInput__control_clearable_etrn0_86",spInput__clear:"_spInput__clear_etrn0_113",spInput__error:"_spInput__error_etrn0_122"},wo=x.forwardRef((t,e)=>{const{value:o,onChange:n,label:a,variant:i="outlined",disabled:r=!1,error:p,required:u,name:c,isClearable:d,pattern:_,onMouseEnter:b,infoTooltipText:k,tooltipPosition:T,isVisibleDefaultTitle:y=!0,placeholder:E="Введите...",classNameRoot:F,classNameError:Y,classNameLabel:j,classNameBaseTooltipRoot:w,...l}=t,A=m({[kt.spInput]:!0,[kt.spInput_error]:!!p,...F&&{[F]:!0}}),P=m({[kt.spInput__container]:!0}),R=m({[kt.spInput__control]:!0,[kt.spInput__control_disabled]:r,[kt[`spInput__control_${i}`]]:i,[kt.spInput__control_clearable]:d}),tt=m({[kt.spInput__clear]:!0}),nt=m({[kt.spInput__error]:!0,...Y&&{[Y]:!0}}),ft=m({...j&&{[j]:!0}}),ut=Q=>{n(Q,{name:c,value:""})},ct=Q=>{const{value:S,name:G}=Q.target;_&&S&&!new RegExp(_).test(S)||n(Q,{value:S,name:G})},Z=()=>s.jsx("input",{...l,placeholder:E,disabled:r,onChange:ct,title:y?o:void 0,value:o,name:c,className:R,ref:e});return s.jsxs("div",{className:A,children:[a&&s.jsx(Ut,{classNameRoot:ft,tooltipPosition:T,required:u,label:a,infoTooltipText:k,classNameBaseTooltipRoot:w}),s.jsxs("div",{className:P,onMouseEnter:b,children:[Z(),d&&o&&!r&&s.jsx(lt,{onClick:ut,className:tt,name:it.Trash})]}),p&&s.jsx("div",{className:nt,children:p})]})});wo.displayName="Input";const dt={spInputFiles:"_spInputFiles_1ukpx_43",spInputFiles_error:"_spInputFiles_error_1ukpx_48",spInputFiles__control:"_spInputFiles__control_1ukpx_48",spInputFiles_disabled:"_spInputFiles_disabled_1ukpx_77",spInputFiles_fileUploaded:"_spInputFiles_fileUploaded_1ukpx_81",spInputFiles__fileNamesList:"_spInputFiles__fileNamesList_1ukpx_85",spInputFiles__fileNamesListItem:"_spInputFiles__fileNamesListItem_1ukpx_94",spInputFiles__fileNamesListItem__triggerTooltip:"_spInputFiles__fileNamesListItem__triggerTooltip_1ukpx_113",spInputFiles__fileNamesListItemDelete:"_spInputFiles__fileNamesListItemDelete_1ukpx_116",spInputFiles__tooltipWrapper:"_spInputFiles__tooltipWrapper_1ukpx_131",spInputFiles__tooltip:"_spInputFiles__tooltip_1ukpx_131",spInputFiles__delete:"_spInputFiles__delete_1ukpx_137",spInputFiles__error:"_spInputFiles__error_1ukpx_145"},pa=t=>{const{placeholder:e="Загрузите файл",name:o,onDropFiles:n,maxSize:a,accept:i,disabled:r,multiple:p,maxFiles:u,files:c=[],infoTooltipText:d,tooltipPosition:_=rt.TopRight,classNameRoot:b,error:k}=t,T=c.map(l=>l.name),y=(T==null?void 0:T.length)>0,E=m({[dt.spInputFiles]:!0,[dt.spInputFiles_error]:!!k,[dt.spInputFiles_disabled]:r,[dt.spInputFiles_fileUploaded]:y,...b&&{[b]:!0}}),F=l=>{const A=[...c],P=A.findIndex(R=>R.name===l);A.splice(P,1),n(A,o)},Y=l=>{l.stopPropagation(),n([],o)},j=()=>p?s.jsx("ul",{className:dt.spInputFiles__fileNamesList,children:T.map((l,A)=>s.jsxs("li",{className:dt.spInputFiles__fileNamesListItem,onClick:P=>{P.stopPropagation(),F(l)},children:[s.jsx(yo,{type:"p2",text:l,classNameTriggerTooltipRoot:dt.spInputFiles__fileNamesListItem__triggerTooltip}),s.jsx("div",{className:dt.spInputFiles__fileNamesListItemDelete,children:s.jsx(lt,{name:it.Trash})})]},A))}):s.jsx(yt,{isEllipsis:!0,children:T[0]}),w=()=>s.jsxs(s.Fragment,{children:[y?j():s.jsx(yt,{children:e}),y?s.jsx("div",{className:dt.spInputFiles__delete,onClick:Y,children:s.jsx(lt,{name:it.Close})}):d&&s.jsx(jt,{classNameTooltip:dt.spInputFiles__tooltipWrapper,position:_,text:d,classNameTriggerTooltip:dt.spInputFiles__tooltip})]});return s.jsx(ho,{name:o,files:c,multiple:p,maxSize:a,maxFiles:u,accept:i,onDropFiles:n,disabled:r||y,children:s.jsxs("div",{className:E,children:[s.jsxs("div",{className:dt.spInputFiles__control,children:[s.jsx(lt,{name:y?it.Check:it.Upload}),w()]}),k&&s.jsx("div",{className:dt.spInputFiles__error,children:k})]})})},ve=x.createContext({device:{isDesktop:!1,isMobile:!1,isTablet:!1}});var he={};he.match=ua,he.parse=ko;var la=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,ca=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,da=/^(?:(min|max)-)?(.+)/,_a=/(em|rem|px|cm|mm|in|pt|pc)?$/,fa=/(dpi|dpcm|dppx)?$/;function ua(t,e){return ko(t).some(function(o){var n=o.inverse,a=o.type==="all"||e.type===o.type;if(a&&n||!(a||n))return!1;var i=o.expressions.every(function(r){var p=r.feature,u=r.modifier,c=r.value,d=e[p];if(!d)return!1;switch(p){case"orientation":case"scan":return d.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Co(c),d=Co(d);break;case"resolution":c=Ao(c),d=Ao(d);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=So(c),d=So(d);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,d=parseInt(d,10)||0;break}switch(u){case"min":return d>=c;case"max":return d<=c;default:return d===c}});return i&&!n||!i&&n})}function ko(t){return t.split(",").map(function(e){e=e.trim();var o=e.match(la),n=o[1],a=o[2],i=o[3]||"",r={};return r.inverse=!!n&&n.toLowerCase()==="not",r.type=a?a.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],r.expressions=i.map(function(p){var u=p.match(ca),c=u[1].toLowerCase().match(da);return{modifier:c[1],feature:c[2],value:u[2]}}),r})}function So(t){var e=Number(t),o;return e||(o=t.match(/^(\d+)\s*\/\s*(\d+)$/),e=o[1]/o[2]),e}function Ao(t){var e=parseFloat(t),o=String(t).match(fa)[1];switch(o){case"dpcm":return e/2.54;case"dppx":return e*96;default:return e}}function Co(t){var e=parseFloat(t),o=String(t).match(_a)[1];switch(o){case"em":return e*16;case"rem":return e*16;case"cm":return e*96/2.54;case"mm":return e*96/2.54/10;case"in":return e*96;case"pt":return e*72;case"pc":return e*72/12;default:return e}}var ma=he.match,To=typeof window<"u"?window.matchMedia:null;function xa(t,e,o){var n=this,a;To&&!o&&(a=To.call(window,t)),a?(this.matches=a.matches,this.media=a.media,a.addListener(p)):(this.matches=ma(t,e),this.media=t),this.addListener=i,this.removeListener=r,this.dispose=u;function i(c){a&&a.addListener(c)}function r(c){a&&a.removeListener(c)}function p(c){n.matches=c.matches,n.media=c.media}function u(){a&&a.removeListener(p)}}function ga(t,e,o){return new xa(t,e,o)}var va=ga;const ha=He(va);var ba=/[A-Z]/g,ya=/^ms-/,be={};function wa(t){return"-"+t.toLowerCase()}function Lo(t){if(be.hasOwnProperty(t))return be[t];var e=t.replace(ba,wa);return be[t]=ya.test(e)?"-"+e:e}function ka(t,e){if(t===e)return!0;if(!t||!e)return!1;const o=Object.keys(t),n=Object.keys(e),a=o.length;if(n.length!==a)return!1;for(let i=0;i<a;i++){const r=o[i];if(t[r]!==e[r]||!Object.prototype.hasOwnProperty.call(e,r))return!1}return!0}const pt=C.oneOfType([C.string,C.number]),zo={all:C.bool,grid:C.bool,aural:C.bool,braille:C.bool,handheld:C.bool,print:C.bool,projection:C.bool,screen:C.bool,tty:C.bool,tv:C.bool,embossed:C.bool},Sa={orientation:C.oneOf(["portrait","landscape"]),scan:C.oneOf(["progressive","interlace"]),aspectRatio:C.string,deviceAspectRatio:C.string,height:pt,deviceHeight:pt,width:pt,deviceWidth:pt,color:C.bool,colorIndex:C.bool,monochrome:C.bool,resolution:pt,type:Object.keys(zo)},{type:Ur,...Aa}=Sa,Ca={minAspectRatio:C.string,maxAspectRatio:C.string,minDeviceAspectRatio:C.string,maxDeviceAspectRatio:C.string,minHeight:pt,maxHeight:pt,minDeviceHeight:pt,maxDeviceHeight:pt,minWidth:pt,maxWidth:pt,minDeviceWidth:pt,maxDeviceWidth:pt,minColor:C.number,maxColor:C.number,minColorIndex:C.number,maxColorIndex:C.number,minMonochrome:C.number,maxMonochrome:C.number,minResolution:pt,maxResolution:pt,...Aa};var Ta={all:{...zo,...Ca}};const La=t=>`not ${t}`,za=(t,e)=>{const o=Lo(t);return typeof e=="number"&&(e=`${e}px`),e===!0?o:e===!1?La(o):`(${o}: ${e})`},Ia=t=>t.join(" and "),Ea=t=>{const e=[];return Object.keys(Ta.all).forEach(o=>{const n=t[o];n!=null&&e.push(za(o,n))}),Ia(e)},Ba=x.createContext(void 0),ja=t=>t.query||Ea(t),Io=t=>t?Object.keys(t).reduce((o,n)=>(o[Lo(n)]=t[n],o),{}):void 0,Eo=()=>{const t=x.useRef(!1);return x.useEffect(()=>{t.current=!0},[]),t.current},Na=t=>{const e=x.useContext(Ba),o=()=>Io(t)||Io(e),[n,a]=x.useState(o);return x.useEffect(()=>{const i=o();ka(n,i)||a(i)},[t,e]),n},Da=t=>{const e=()=>ja(t),[o,n]=x.useState(e);return x.useEffect(()=>{const a=e();o!==a&&n(a)},[t]),o},Fa=(t,e)=>{const o=()=>ha(t,e||{},!!e),[n,a]=x.useState(o),i=Eo();return x.useEffect(()=>{if(i){const r=o();return a(r),()=>{r&&r.dispose()}}},[t,e]),n},Ma=t=>{const[e,o]=x.useState(t.matches);return x.useEffect(()=>{const n=a=>{o(a.matches)};return t.addListener(n),o(t.matches),()=>{t.removeListener(n)}},[t]),e},ye=(t,e,o)=>{const n=Na(e),a=Da(t);if(!a)throw new Error("Invalid or missing MediaQuery!");const i=Fa(a,n),r=Ma(i);return Eo(),x.useEffect(()=>{},[r]),x.useEffect(()=>()=>{i&&i.dispose()},[]),r},Oa=t=>{const{desktop:e,tablet:o,mobile:n}=t,a=ye(e),i=ye(o),r=ye(n);return{device:{isDesktop:a,isTablet:i,isMobile:r}}},Ha=t=>{const{breakpoints:e,children:o}=t,{device:n}=Oa(e);return s.jsx(ve.Provider,{value:{device:n},children:o})},Pa=180,_t={spSelect:"_spSelect_140u6_43",spSelect_error:"_spSelect_error_140u6_48",spSelect__control:"_spSelect__control_140u6_48",spSelect__value_empty:"_spSelect__value_empty_140u6_52",spSelect__icon:"_spSelect__icon_140u6_55",spSelect__container:"_spSelect__container_140u6_58",spSelect__control_filled:"_spSelect__control_filled_140u6_78",spSelect__control_outlined:"_spSelect__control_outlined_140u6_82",spSelect__control_disabled:"_spSelect__control_disabled_140u6_107",spSelect__value:"_spSelect__value_140u6_52",spSelect__list:"_spSelect__list_140u6_138",spSelect__list_scrollable:"_spSelect__list_scrollable_140u6_145",spSelect__option:"_spSelect__option_140u6_161",spSelect__error:"_spSelect__error_140u6_179"},Wa=t=>{const{options:e,placeholder:o="Выберите из списка...",value:n,name:a,variant:i="outlined",onChange:r,onMouseEnter:p,error:u,label:c,infoTooltipText:d,tooltipPosition:_,disabled:b,required:k,maxHeightList:T=Pa,isVisibleDefaultTitle:y=!0,isScrollableList:E=!1,classNameRoot:F,classNameError:Y,classNameLabel:j,classNameBaseTooltipRoot:w}=t,[l,A]=x.useState(!1),P=x.useRef(null);Ne([P],()=>{A(!1)},l);const R=e.find(f=>f.value===n),tt=(f,h)=>{r(f,{value:h,name:a}),A(!1)},nt=()=>{b||A(!l)},ft=m({[_t.spSelect]:!0,[_t.spSelect_error]:!!u,...F&&{[F]:!0}}),ut=m({[_t.spSelect__container]:!0}),ct=m({[_t.spSelect__control]:!0,[_t[`spSelect__control_${i}`]]:i,[_t.spSelect__control_disabled]:b}),Z=m({[_t.spSelect__value]:!0,[_t.spSelect__value_empty]:!R}),Q=m({[_t.spSelect__icon]:!0}),S=m({[_t.spSelect__list]:!0,[_t.spSelect__list_scrollable]:E}),G=m({...j&&{[j]:!0}}),X=m({[_t.spSelect__error]:!0,...Y&&{[Y]:!0}}),H=()=>s.jsxs("div",{tabIndex:b?-1:0,title:y?n:void 0,className:ct,onClick:nt,children:[s.jsx("div",{className:Z,children:(R==null?void 0:R.label)||o}),s.jsx(lt,{name:it.SelectChevronDown,rotate:l?180:void 0,className:Q})]});return s.jsxs("div",{className:ft,ref:P,children:[c&&s.jsx(Ut,{classNameRoot:G,tooltipPosition:_,required:k,label:c,infoTooltipText:d,classNameBaseTooltipRoot:w}),s.jsxs("div",{className:ut,onMouseEnter:p,children:[H(),l&&s.jsx("div",{className:S,style:E?{maxHeight:`${T}px`}:{},children:e.map(f=>{const h=f.value===n;return s.jsxs("div",{className:m({[_t.spSelect__option]:!0}),onClick:N=>tt(N,f.value),children:[f.label,h&&s.jsx(lt,{name:it.Check,className:Q})]},f.value)})})]}),u&&s.jsx("div",{className:X,children:u})]})},Ga={skeleton:"_skeleton_c18an_44"},qa=t=>{const{width:e="100%",height:o="1rem",circle:n=!1,classNameRoot:a="",style:i={}}=t,r={width:e,height:o,borderRadius:n?"50%":"0",...i};return s.jsx("div",{style:r,className:m(a,Ga.skeleton)})},gt={spTable:"_spTable_1vuaj_43",spTable__tdContentCopyIcon:"_spTable__tdContentCopyIcon_1vuaj_62",spTable__tdContent:"_spTable__tdContent_1vuaj_62",spTable__tdColorContent:"_spTable__tdColorContent_1vuaj_72",spTable__tdContentCopyIcon_copied:"_spTable__tdContentCopyIcon_copied_1vuaj_85",spTable__emptyPage:"_spTable__emptyPage_1vuaj_89",spStringsGroup:"_spStringsGroup_1vuaj_105",spStringsGroup__groupItem:"_spStringsGroup__groupItem_1vuaj_119",spStringsGroup__groupItemHeader:"_spStringsGroup__groupItemHeader_1vuaj_134",spStringsGroup__groupItemContent:"_spStringsGroup__groupItemContent_1vuaj_138",spStringsGroup__groupItemContentCopyIcon:"_spStringsGroup__groupItemContentCopyIcon_1vuaj_144",spStringsGroup__groupItemContentCopyIcon_copied:"_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151"},Bo=t=>t==null||t===""?!0:typeof t!="string"&&typeof t.toString!="function"?!1:t.toString().replace(/\s/g,"").length<1,$a=t=>{const{columns:e,data:o,isNotTableOnNotDesktop:n=!1,classNameRoot:a}=t,i=e.map(w=>({...w,isVisible:o.some(l=>!!l[w.key])})).filter(w=>w.isVisible),r=m({[gt.spTable]:!0,...a&&{[a]:!0}}),p=m({[gt.spTable__tdContent]:!0}),u=m({[gt.spTable__tdColorContent]:!0}),c=m({[gt.spTable__emptyPage]:!0}),{device:{isDesktop:d}}=x.useContext(ve),[_,b]=x.useState(null),k=w=>{const{text:l,rowIndex:A,colIndex:P}=w;(_==null?void 0:_.rowIndex)===A&&(_==null?void 0:_.colIndex)===P||navigator.clipboard.writeText(l).then(()=>{b({rowIndex:A,colIndex:P})}).catch(R=>{console.error("Ошибка при копировании:",R)})},T=()=>{b(null)},y=()=>s.jsx("div",{className:c,children:"Данные отсутствуют"}),E=({row:w,col:l})=>{const A=w[l.key];if(!A)return null;const[P,R]=A.split(/\s*\{\{|}}\s*/).filter(Boolean);return s.jsxs("span",{children:[P,R&&s.jsx("span",{className:u,children:` ${R}`})]})},F=()=>o&&Array.isArray(o)&&o.length>0?s.jsxs("table",{className:r,children:[s.jsx("colgroup",{children:i.map((w,l,A)=>s.jsx("col",{style:{width:`calc(100%/${A.length})`}},l))}),s.jsx("thead",{children:s.jsx("tr",{children:i.map((w,l)=>s.jsx("th",{children:w.title},l))})}),s.jsx("tbody",{children:o.map((w,l)=>w?s.jsx("tr",{children:i.map((A,P)=>{const R=(_==null?void 0:_.rowIndex)===l&&(_==null?void 0:_.colIndex)===P;return s.jsx("td",{onMouseLeave:R?T:void 0,children:s.jsxs("div",{className:p,children:[s.jsx("span",{children:A.isColorContentsCurlyBrackets?E({row:w,col:A}):w[A.key]}),!Bo(w[A.key])&&A.isBeCopiedValue&&s.jsx(lt,{className:m({[gt.spTable__tdContentCopyIcon]:!0,[gt.spTable__tdContentCopyIcon_copied]:R}),name:R?it.Check:it.Copy,onClick:()=>{const tt=w[A.key];if(!tt)return null;k({text:tt,rowIndex:l,colIndex:P})}})]})},`${l}:${P}`)})},l):null)})]}):y(),Y=()=>o&&Array.isArray(o)&&o.length>0?s.jsx("div",{className:m({[gt.spStringsGroup]:!0}),children:o.map((w,l)=>w?s.jsx("div",{children:i.map((A,P)=>{if(Bo(w[A.key]))return null;const R=(_==null?void 0:_.rowIndex)===l&&(_==null?void 0:_.colIndex)===P;return s.jsxs("div",{className:m({[gt.spStringsGroup__groupItem]:!0}),onMouseLeave:R?T:void 0,children:[s.jsx("div",{className:m({[gt.spStringsGroup__groupItemHeader]:!0}),children:A.title}),s.jsxs("div",{className:m({[gt.spStringsGroup__groupItemContent]:!0}),children:[s.jsx("span",{children:w[A.key]}),A.isBeCopiedValue&&s.jsx(lt,{className:m({[gt.spStringsGroup__groupItemContentCopyIcon]:!0,[gt.spStringsGroup__groupItemContentCopyIcon_copied]:R}),name:R?it.Check:it.Copy,onClick:()=>{const tt=w[A.key];if(!tt)return null;k({text:tt,rowIndex:l,colIndex:P})}})]})]},P)})},l):null)}):y();return n?d?F():Y():F()},Tt={spTabs:"_spTabs_1citb_43",spTabs_separated:"_spTabs_separated_1citb_48","spTabs--size-md":"_spTabs--size-md_1citb_48",spTabs__tabElement:"_spTabs__tabElement_1citb_48","spTabs--size-lg":"_spTabs--size-lg_1citb_51","spTabs--variant-contained":"_spTabs--variant-contained_1citb_54",spTabs__tabElement_active:"_spTabs__tabElement_active_1citb_83",spTabs__triggerTooltip:"_spTabs__triggerTooltip_1citb_90","spTabs--variant-filled":"_spTabs--variant-filled_1citb_93"},Ra=t=>{const{panes:e,isSeparated:o=!1,classNameRoot:n,classNameBaseTooltipRoot:a,variant:i="contained",size:r="md"}=t,p=m({[Tt.spTabs]:!0,[Tt.spTabs_separated]:o,[Tt[`spTabs--variant-${i}`]]:i,[Tt[`spTabs--size-${r}`]]:r,...n&&{[n]:!0}}),u=m({[Tt.spTabs__triggerTooltip]:!0}),c=()=>{switch(r){case"md":return"p2";case"lg":return"p1"}};return s.jsx("div",{className:p,children:e.map((d,_)=>{const{name:b,active:k,onClick:T,infoTooltipText:y}=d;return s.jsxs("div",{className:m({[Tt.spTabs__tabElement]:!0,[Tt.spTabs__tabElement_active]:k}),onClick:T,children:[s.jsx(yt,{type:c(),children:b}),!!y&&s.jsx(jt,{classNameTriggerTooltip:u,text:y,classNameBaseTooltipRoot:a})]},d.key||_)})})},Va={spTextWithLabel:"_spTextWithLabel_1dr7p_1"},Ya=t=>{const{children:e,label:o,style:n,...a}=t;return s.jsxs("div",{className:Va.spTextWithLabel,style:{...n},children:[s.jsx(Ut,{label:o}),s.jsx(yt,{...a,children:e})]})};D.Accordion=Zo,D.ApplyButtons=je,D.BaseTooltip=te,D.Button=Ot,D.Checkbox=Qo,D.Confirm=tn,D.ContextMenu=en,D.DefaultDropzone=ho,D.Dropdown=ra,D.EIconName=it,D.ETooltipPosition=rt,D.EllipsisTextWithTooltip=yo,D.Form=sa,D.Icon=lt,D.InfoTooltip=jt,D.Input=wo,D.InputFiles=pa,D.Label=Ut,D.Layer=Me,D.MediaContext=ve,D.MediaContextProvider=Ha,D.Modal=Oe,D.Portal=ee,D.Select=Wa,D.Skeleton=qa,D.Spinner=Be,D.Table=$a,D.Tabs=Ra,D.Text=yt,D.TextWithLabel=Ya,D.Tooltip=Ht,D.useModal=Jo,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mo(t,e){if(t){if(typeof t=="string")return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return me(t,e)}}function me(t,e){(e==null||e>t.length)&&(e=t.length);for(var o=0,n=new Array(e);o<e;o++)n[o]=t[o];return n}function ea(t,e){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var n=[],a=!0,i=!1,r,p;try{for(o=o.call(t);!(a=(r=o.next()).done)&&(n.push(r.value),!(e&&n.length===e));a=!0);}catch(u){i=!0,p=u}finally{try{!a&&o.return!=null&&o.return()}finally{if(i)throw p}}return n}}function oa(t){if(Array.isArray(t))return t}function xo(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),o.push.apply(o,n)}return o}function J(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?xo(Object(o),!0).forEach(function(n){xe(t,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):xo(Object(o)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(o,n))})}return t}function xe(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Rt(t,e){if(t==null)return{};var o=na(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function na(t,e){if(t==null)return{};var o={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(o[a]=t[a]);return o}var Vt=x.forwardRef(function(t,e){var o=t.children,n=Rt(t,Vn),a=aa(n),i=a.open,r=Rt(a,Yn);return x.useImperativeHandle(e,function(){return{open:i}},[i]),x.createElement(x.Fragment,null,o(J(J({},r),{},{open:i})))});Vt.displayName="Dropzone";var go={disabled:!1,getFilesFromEvent:mn,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Vt.defaultProps=go,Vt.propTypes={children:C.func,accept:C.objectOf(C.arrayOf(C.string)),multiple:C.bool,preventDropOnDocument:C.bool,noClick:C.bool,noKeyboard:C.bool,noDrag:C.bool,noDragEventsBubbling:C.bool,minSize:C.number,maxSize:C.number,maxFiles:C.number,disabled:C.bool,getFilesFromEvent:C.func,onFileDialogCancel:C.func,onFileDialogOpen:C.func,useFsAccessApi:C.bool,autoFocus:C.bool,onDragEnter:C.func,onDragLeave:C.func,onDragOver:C.func,onDrop:C.func,onDropAccepted:C.func,onDropRejected:C.func,onError:C.func,validator:C.func};var ge={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function aa(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=J(J({},go),t),o=e.accept,n=e.disabled,a=e.getFilesFromEvent,i=e.maxSize,r=e.minSize,p=e.multiple,u=e.maxFiles,c=e.onDragEnter,d=e.onDragLeave,_=e.onDragOver,b=e.onDrop,k=e.onDropAccepted,T=e.onDropRejected,y=e.onFileDialogCancel,E=e.onFileDialogOpen,F=e.useFsAccessApi,Y=e.autoFocus,j=e.preventDropOnDocument,w=e.noClick,l=e.noKeyboard,A=e.noDrag,P=e.noDragEventsBubbling,R=e.onError,tt=e.validator,nt=x.useMemo(function(){return qn(o)},[o]),ft=x.useMemo(function(){return Gn(o)},[o]),ut=x.useMemo(function(){return typeof E=="function"?E:vo},[E]),ct=x.useMemo(function(){return typeof y=="function"?y:vo},[y]),Z=x.useRef(null),Q=x.useRef(null),S=x.useReducer(ia,ge),G=ue(S,2),X=G[0],H=G[1],f=X.isFocused,h=X.isFileDialogActive,N=x.useRef(typeof window<"u"&&window.isSecureContext&&F&&Wn()),M=function(){!N.current&&h&&setTimeout(function(){if(Q.current){var L=Q.current.files;L.length||(H({type:"closeDialog"}),ct())}},300)};x.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[Q,h,ct,N]);var I=x.useRef([]),q=function(L){Z.current&&Z.current.contains(L.target)||(L.preventDefault(),I.current=[])};x.useEffect(function(){return j&&(document.addEventListener("dragover",_o,!1),document.addEventListener("drop",q,!1)),function(){j&&(document.removeEventListener("dragover",_o),document.removeEventListener("drop",q))}},[Z,j]),x.useEffect(function(){return!n&&Y&&Z.current&&Z.current.focus(),function(){}},[Z,Y,n]);var B=x.useCallback(function(v){R?R(v):console.error(v)},[R]),O=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v),I.current=[].concat(Xn(I.current),[v.target]),$t(v)&&Promise.resolve(a(v)).then(function(L){if(!(qt(v)&&!P)){var et=L.length,at=et>0&&Mn({files:L,accept:nt,minSize:r,maxSize:i,multiple:p,maxFiles:u,validator:tt}),xt=et>0&&!at;H({isDragAccept:at,isDragReject:xt,isDragActive:!0,type:"setDraggedFiles"}),c&&c(v)}}).catch(function(L){return B(L)})},[a,c,B,P,nt,r,i,p,u,tt]),$=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v);var L=$t(v);if(L&&v.dataTransfer)try{v.dataTransfer.dropEffect="copy"}catch{}return L&&_&&_(v),!1},[_,P]),V=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v);var L=I.current.filter(function(at){return Z.current&&Z.current.contains(at)}),et=L.indexOf(v.target);et!==-1&&L.splice(et,1),I.current=L,!(L.length>0)&&(H({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),$t(v)&&d&&d(v))},[Z,d,P]),W=x.useCallback(function(v,L){var et=[],at=[];v.forEach(function(xt){var Mt=lo(xt,nt),Et=ue(Mt,2),ke=Et[0],Se=Et[1],Ae=co(xt,r,i),Zt=ue(Ae,2),Ce=Zt[0],Te=Zt[1],Le=tt?tt(xt):null;if(ke&&Ce&&!Le)et.push(xt);else{var ze=[Se,Te];Le&&(ze=ze.concat(Le)),at.push({file:xt,errors:ze.filter(function(Za){return Za})})}}),(!p&&et.length>1||p&&u>=1&&et.length>u)&&(et.forEach(function(xt){at.push({file:xt,errors:[Fn]})}),et.splice(0)),H({acceptedFiles:et,fileRejections:at,isDragReject:at.length>0,type:"setFiles"}),b&&b(et,at,L),at.length>0&&T&&T(at,L),et.length>0&&k&&k(et,L)},[H,p,nt,r,i,u,b,k,T,tt]),ot=x.useCallback(function(v){v.preventDefault(),v.persist(),Xt(v),I.current=[],$t(v)&&Promise.resolve(a(v)).then(function(L){qt(v)&&!P||W(L,v)}).catch(function(L){return B(L)}),H({type:"reset"})},[a,W,B,P]),g=x.useCallback(function(){if(N.current){H({type:"openDialog"}),ut();var v={multiple:p,types:ft};window.showOpenFilePicker(v).then(function(L){return a(L)}).then(function(L){W(L,null),H({type:"closeDialog"})}).catch(function(L){$n(L)?(ct(L),H({type:"closeDialog"})):Rn(L)?(N.current=!1,Q.current?(Q.current.value=null,Q.current.click()):B(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):B(L)});return}Q.current&&(H({type:"openDialog"}),ut(),Q.current.value=null,Q.current.click())},[H,ut,ct,F,W,B,ft,p]),mt=x.useCallback(function(v){!Z.current||!Z.current.isEqualNode(v.target)||(v.key===" "||v.key==="Enter"||v.keyCode===32||v.keyCode===13)&&(v.preventDefault(),g())},[Z,g]),Lt=x.useCallback(function(){H({type:"focus"})},[]),Ft=x.useCallback(function(){H({type:"blur"})},[]),jo=x.useCallback(function(){w||(Pn()?setTimeout(g,0):g())},[w,g]),It=function(L){return n?null:L},we=function(L){return l?null:It(L)},Kt=function(L){return A?null:It(L)},Xt=function(L){P&&L.stopPropagation()},Ua=x.useMemo(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=v.refKey,et=L===void 0?"ref":L,at=v.role,xt=v.onKeyDown,Mt=v.onFocus,Et=v.onBlur,ke=v.onClick,Se=v.onDragEnter,Ae=v.onDragOver,Zt=v.onDragLeave,Ce=v.onDrop,Te=Rt(v,Un);return J(J(xe({onKeyDown:we(bt(xt,mt)),onFocus:we(bt(Mt,Lt)),onBlur:we(bt(Et,Ft)),onClick:It(bt(ke,jo)),onDragEnter:Kt(bt(Se,O)),onDragOver:Kt(bt(Ae,$)),onDragLeave:Kt(bt(Zt,V)),onDrop:Kt(bt(Ce,ot)),role:typeof at=="string"&&at!==""?at:"presentation"},et,Z),!n&&!l?{tabIndex:0}:{}),Te)}},[Z,mt,Lt,Ft,jo,O,$,V,ot,l,A,n]),Ka=x.useCallback(function(v){v.stopPropagation()},[]),Xa=x.useMemo(function(){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=v.refKey,et=L===void 0?"ref":L,at=v.onChange,xt=v.onClick,Mt=Rt(v,Kn),Et=xe({accept:nt,multiple:p,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:It(bt(at,ot)),onClick:It(bt(xt,Ka)),tabIndex:-1},et,Q);return J(J({},Et),Mt)}},[Q,o,p,ot,n]);return J(J({},X),{},{isFocused:f&&!n,getRootProps:Ua,getInputProps:Xa,rootRef:Z,inputRef:Q,open:It(g)})}function ia(t,e){switch(e.type){case"focus":return J(J({},t),{},{isFocused:!0});case"blur":return J(J({},t),{},{isFocused:!1});case"openDialog":return J(J({},ge),{},{isFileDialogActive:!0});case"closeDialog":return J(J({},t),{},{isFileDialogActive:!1});case"setDraggedFiles":return J(J({},t),{},{isDragActive:e.isDragActive,isDragAccept:e.isDragAccept,isDragReject:e.isDragReject});case"setFiles":return J(J({},t),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections,isDragReject:e.isDragReject});case"reset":return J({},ge);default:return t}}function vo(){}const ho=t=>{const{onDropFiles:e,children:o,maxSize:n,accept:a,disabled:i,name:r,multiple:p,maxFiles:u,files:c=[]}=t,d=x.useCallback(_=>{if(!p){e(_,r);return}const b=[...c,..._];if(u&&b.length>u){console.log(`Максимальное возможное количество файлов для загрузки - ${u}`),e(b.slice(0,u),r);return}e(b,r)},[c,u,p,r,e]);return s.jsx(Vt,{multiple:p,onDrop:d,maxSize:n,accept:a,children:({getRootProps:_,getInputProps:b})=>s.jsxs("div",{..._({}),children:[s.jsx("input",{...b({}),disabled:i,name:r}),o]})})},St={spDropdown:"_spDropdown_1f4lf_43",spDropdown__labelText:"_spDropdown__labelText_1f4lf_54",spDropdown__tooltipContainer:"_spDropdown__tooltipContainer_1f4lf_62",spDropdown__dropdownList:"_spDropdown__dropdownList_1f4lf_67",spDropdown__dropdownListHeader:"_spDropdown__dropdownListHeader_1f4lf_73",spDropdown__dopdownListItem:"_spDropdown__dopdownListItem_1f4lf_80",spDropdown__dopdownListItem_textCenter:"_spDropdown__dopdownListItem_textCenter_1f4lf_91",spDropdown__downloadListItemDescription:"_spDropdown__downloadListItemDescription_1f4lf_94"},ra=t=>{const{labelText:e="Выпадающий список",listName:o,dropdownList:n=[],dropdownPosition:a=rt.BottomRight,classNameRoot:i}=t,r=m({[St.spDropdown]:!0,...i&&{[i]:!0}}),p=m({[St.spDropdown__labelText]:!0}),u=m({[St.spDropdown__tooltipContainer]:!0}),c=m({[St.spDropdown__dropdownList]:!0}),d=m({[St.spDropdown__dropdownListHeader]:!0}),_=m({[St.spDropdown__downloadListItemDescription]:!0}),[b,k]=x.useState(!1),T=()=>s.jsxs("div",{className:c,children:[o&&s.jsx("div",{className:d,children:o}),n.map((y,E)=>s.jsxs("div",{className:m({[St.spDropdown__dopdownListItem]:!0,[St.spDropdown__dopdownListItem_textCenter]:y.textCenter}),onClick:y.onClick,children:[y.name,y.description&&s.jsx("span",{className:_,children:y.description})]},E))]});return s.jsx(Ht,{hover:!1,triggerAction:()=>k(!0),actionOnClose:()=>k(!1),text:T(),position:a,noPadding:!0,isToggleClick:!0,isStopPropagationClickOnTrigger:!0,trigger:s.jsxs("div",{className:r,children:[s.jsx("div",{className:p,children:e}),s.jsx("div",{className:u,children:s.jsx(lt,{name:it.SelectChevronDown,rotate:b?180:void 0})})]})})},bo={ellipsisTextWithTooltip:"_ellipsisTextWithTooltip_1nhiw_43",ellipsisTextWithTooltip__tooltip:"_ellipsisTextWithTooltip__tooltip_1nhiw_46"},yo=t=>{const{text:e,classNameRoot:o,classNameTooltipRoot:n,classNameTriggerTooltipRoot:a,classNameBaseTooltipContentRoot:i,classNameBaseTooltipRoot:r,...p}=t,u=x.useRef(null),[c,d]=x.useState(!1);x.useEffect(()=>{u.current&&d(u.current.scrollWidth>u.current.clientWidth)},[e]);const _=m({[bo.ellipsisTextWithTooltip]:!0,...o&&{[o]:!0}}),b=m({[bo.ellipsisTextWithTooltip__tooltip]:!0,...n&&{[n]:!0}}),k=m({...a&&{[a]:!0}});return s.jsx(Ht,{classNameTooltip:b,classNameTriggerTooltip:k,classNameBaseTooltipContentRoot:i,classNameBaseTooltipRoot:r,isVisibleTooltip:c,text:e,trigger:s.jsx(yt,{...p,classNameRoot:_,isEllipsis:!0,ref:u,children:e})})},Dt={spForm:"_spForm_zefbj_43",spForm_fullWidth:"_spForm_fullWidth_zefbj_46",spForm_withSeparator:"_spForm_withSeparator_zefbj_49","spForm_addMargin--size-lg":"_spForm_addMargin--size-lg_zefbj_67","spForm_addMargin--size-md":"_spForm_addMargin--size-md_zefbj_75"},sa=t=>{const{size:e="lg",children:o,onSubmit:n,addMargin:a=!1,withSeparator:i=!1,fullWidth:r=!0,classNameRoot:p,...u}=t,c=m({[Dt.spForm]:!0,[Dt.spForm_fullWidth]:r,[Dt.spForm_addMargin]:a,[Dt[`spForm_addMargin--size-${e}`]]:a&&e,[Dt.spForm_withSeparator]:i,...p&&{[p]:!0}}),d=_=>{_.preventDefault(),n&&n()};return s.jsx("form",{...u,onSubmit:d,className:c,children:o})},Yt={spLabel:"_spLabel_g0hfy_43",spLabel__text:"_spLabel__text_g0hfy_52",spLabel__tooltip:"_spLabel__tooltip_g0hfy_62",spLabel__required:"_spLabel__required_g0hfy_67"},Ut=t=>{const{required:e,label:o,infoTooltipText:n,tooltipPosition:a,classNameRoot:i,classNameBaseTooltipRoot:r}=t,p=m({[Yt.spLabel]:!0,...i&&{[i]:!0}}),u=m({[Yt.spLabel__text]:!0}),c=m({[Yt.spLabel__required]:e}),d=m({[Yt.spLabel__tooltip]:!0});return s.jsxs("div",{className:p,children:[s.jsx("label",{className:u,children:o}),e&&s.jsx("div",{className:c,children:"*"}),n&&s.jsx("div",{className:d,children:s.jsx(jt,{position:a,text:n,classNameBaseTooltipRoot:r})})]})},kt={spInput:"_spInput_etrn0_43",spInput_error:"_spInput_error_etrn0_48",spInput__control:"_spInput__control_etrn0_48",spInput__container:"_spInput__container_etrn0_55",spInput__control_filled:"_spInput__control_filled_etrn0_74",spInput__control_outlined:"_spInput__control_outlined_etrn0_78",spInput__control_disabled:"_spInput__control_disabled_etrn0_82",spInput__control_clearable:"_spInput__control_clearable_etrn0_86",spInput__clear:"_spInput__clear_etrn0_113",spInput__error:"_spInput__error_etrn0_122"},wo=x.forwardRef((t,e)=>{const{value:o,onChange:n,label:a,variant:i="outlined",disabled:r=!1,error:p,required:u,name:c,isClearable:d,pattern:_,onMouseEnter:b,infoTooltipText:k,tooltipPosition:T,isVisibleDefaultTitle:y=!0,placeholder:E="Введите...",classNameRoot:F,classNameError:Y,classNameLabel:j,classNameBaseTooltipRoot:w,...l}=t,A=m({[kt.spInput]:!0,[kt.spInput_error]:!!p,...F&&{[F]:!0}}),P=m({[kt.spInput__container]:!0}),R=m({[kt.spInput__control]:!0,[kt.spInput__control_disabled]:r,[kt[`spInput__control_${i}`]]:i,[kt.spInput__control_clearable]:d}),tt=m({[kt.spInput__clear]:!0}),nt=m({[kt.spInput__error]:!0,...Y&&{[Y]:!0}}),ft=m({...j&&{[j]:!0}}),ut=Q=>{n(Q,{name:c,value:""})},ct=Q=>{const{value:S,name:G}=Q.target;_&&S&&!new RegExp(_).test(S)||n(Q,{value:S,name:G})},Z=()=>s.jsx("input",{...l,placeholder:E,disabled:r,onChange:ct,title:y?o:void 0,value:o,name:c,className:R,ref:e});return s.jsxs("div",{className:A,children:[a&&s.jsx(Ut,{classNameRoot:ft,tooltipPosition:T,required:u,label:a,infoTooltipText:k,classNameBaseTooltipRoot:w}),s.jsxs("div",{className:P,onMouseEnter:b,children:[Z(),d&&o&&!r&&s.jsx(lt,{onClick:ut,className:tt,name:it.Trash})]}),p&&s.jsx("div",{className:nt,children:p})]})});wo.displayName="Input";const dt={spInputFiles:"_spInputFiles_1ukpx_43",spInputFiles_error:"_spInputFiles_error_1ukpx_48",spInputFiles__control:"_spInputFiles__control_1ukpx_48",spInputFiles_disabled:"_spInputFiles_disabled_1ukpx_77",spInputFiles_fileUploaded:"_spInputFiles_fileUploaded_1ukpx_81",spInputFiles__fileNamesList:"_spInputFiles__fileNamesList_1ukpx_85",spInputFiles__fileNamesListItem:"_spInputFiles__fileNamesListItem_1ukpx_94",spInputFiles__fileNamesListItem__triggerTooltip:"_spInputFiles__fileNamesListItem__triggerTooltip_1ukpx_113",spInputFiles__fileNamesListItemDelete:"_spInputFiles__fileNamesListItemDelete_1ukpx_116",spInputFiles__tooltipWrapper:"_spInputFiles__tooltipWrapper_1ukpx_131",spInputFiles__tooltip:"_spInputFiles__tooltip_1ukpx_131",spInputFiles__delete:"_spInputFiles__delete_1ukpx_137",spInputFiles__error:"_spInputFiles__error_1ukpx_145"},pa=t=>{const{placeholder:e="Загрузите файл",name:o,onDropFiles:n,maxSize:a,accept:i,disabled:r,multiple:p,maxFiles:u,files:c=[],infoTooltipText:d,tooltipPosition:_=rt.TopRight,classNameRoot:b,error:k}=t,T=c.map(l=>l.name),y=(T==null?void 0:T.length)>0,E=m({[dt.spInputFiles]:!0,[dt.spInputFiles_error]:!!k,[dt.spInputFiles_disabled]:r,[dt.spInputFiles_fileUploaded]:y,...b&&{[b]:!0}}),F=l=>{const A=[...c],P=A.findIndex(R=>R.name===l);A.splice(P,1),n(A,o)},Y=l=>{l.stopPropagation(),n([],o)},j=()=>p?s.jsx("ul",{className:dt.spInputFiles__fileNamesList,children:T.map((l,A)=>s.jsxs("li",{className:dt.spInputFiles__fileNamesListItem,onClick:P=>{P.stopPropagation(),F(l)},children:[s.jsx(yo,{type:"p2",text:l,classNameTriggerTooltipRoot:dt.spInputFiles__fileNamesListItem__triggerTooltip}),s.jsx("div",{className:dt.spInputFiles__fileNamesListItemDelete,children:s.jsx(lt,{name:it.Trash})})]},A))}):s.jsx(yt,{isEllipsis:!0,children:T[0]}),w=()=>s.jsxs(s.Fragment,{children:[y?j():s.jsx(yt,{children:e}),y?s.jsx("div",{className:dt.spInputFiles__delete,onClick:Y,children:s.jsx(lt,{name:it.Close})}):d&&s.jsx(jt,{classNameTooltip:dt.spInputFiles__tooltipWrapper,position:_,text:d,classNameTriggerTooltip:dt.spInputFiles__tooltip})]});return s.jsx(ho,{name:o,files:c,multiple:p,maxSize:a,maxFiles:u,accept:i,onDropFiles:n,disabled:r||y,children:s.jsxs("div",{className:E,children:[s.jsxs("div",{className:dt.spInputFiles__control,children:[s.jsx(lt,{name:y?it.Check:it.Upload}),w()]}),k&&s.jsx("div",{className:dt.spInputFiles__error,children:k})]})})},ve=x.createContext({device:{isDesktop:!1,isMobile:!1,isTablet:!1}});var he={};he.match=ua,he.parse=ko;var la=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,ca=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,da=/^(?:(min|max)-)?(.+)/,_a=/(em|rem|px|cm|mm|in|pt|pc)?$/,fa=/(dpi|dpcm|dppx)?$/;function ua(t,e){return ko(t).some(function(o){var n=o.inverse,a=o.type==="all"||e.type===o.type;if(a&&n||!(a||n))return!1;var i=o.expressions.every(function(r){var p=r.feature,u=r.modifier,c=r.value,d=e[p];if(!d)return!1;switch(p){case"orientation":case"scan":return d.toLowerCase()===c.toLowerCase();case"width":case"height":case"device-width":case"device-height":c=Co(c),d=Co(d);break;case"resolution":c=Ao(c),d=Ao(d);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":c=So(c),d=So(d);break;case"grid":case"color":case"color-index":case"monochrome":c=parseInt(c,10)||1,d=parseInt(d,10)||0;break}switch(u){case"min":return d>=c;case"max":return d<=c;default:return d===c}});return i&&!n||!i&&n})}function ko(t){return t.split(",").map(function(e){e=e.trim();var o=e.match(la),n=o[1],a=o[2],i=o[3]||"",r={};return r.inverse=!!n&&n.toLowerCase()==="not",r.type=a?a.toLowerCase():"all",i=i.match(/\([^\)]+\)/g)||[],r.expressions=i.map(function(p){var u=p.match(ca),c=u[1].toLowerCase().match(da);return{modifier:c[1],feature:c[2],value:u[2]}}),r})}function So(t){var e=Number(t),o;return e||(o=t.match(/^(\d+)\s*\/\s*(\d+)$/),e=o[1]/o[2]),e}function Ao(t){var e=parseFloat(t),o=String(t).match(fa)[1];switch(o){case"dpcm":return e/2.54;case"dppx":return e*96;default:return e}}function Co(t){var e=parseFloat(t),o=String(t).match(_a)[1];switch(o){case"em":return e*16;case"rem":return e*16;case"cm":return e*96/2.54;case"mm":return e*96/2.54/10;case"in":return e*96;case"pt":return e*72;case"pc":return e*72/12;default:return e}}var ma=he.match,To=typeof window<"u"?window.matchMedia:null;function xa(t,e,o){var n=this,a;To&&!o&&(a=To.call(window,t)),a?(this.matches=a.matches,this.media=a.media,a.addListener(p)):(this.matches=ma(t,e),this.media=t),this.addListener=i,this.removeListener=r,this.dispose=u;function i(c){a&&a.addListener(c)}function r(c){a&&a.removeListener(c)}function p(c){n.matches=c.matches,n.media=c.media}function u(){a&&a.removeListener(p)}}function ga(t,e,o){return new xa(t,e,o)}var va=ga;const ha=He(va);var ba=/[A-Z]/g,ya=/^ms-/,be={};function wa(t){return"-"+t.toLowerCase()}function Lo(t){if(be.hasOwnProperty(t))return be[t];var e=t.replace(ba,wa);return be[t]=ya.test(e)?"-"+e:e}function ka(t,e){if(t===e)return!0;if(!t||!e)return!1;const o=Object.keys(t),n=Object.keys(e),a=o.length;if(n.length!==a)return!1;for(let i=0;i<a;i++){const r=o[i];if(t[r]!==e[r]||!Object.prototype.hasOwnProperty.call(e,r))return!1}return!0}const pt=C.oneOfType([C.string,C.number]),zo={all:C.bool,grid:C.bool,aural:C.bool,braille:C.bool,handheld:C.bool,print:C.bool,projection:C.bool,screen:C.bool,tty:C.bool,tv:C.bool,embossed:C.bool},Sa={orientation:C.oneOf(["portrait","landscape"]),scan:C.oneOf(["progressive","interlace"]),aspectRatio:C.string,deviceAspectRatio:C.string,height:pt,deviceHeight:pt,width:pt,deviceWidth:pt,color:C.bool,colorIndex:C.bool,monochrome:C.bool,resolution:pt,type:Object.keys(zo)},{type:Ur,...Aa}=Sa,Ca={minAspectRatio:C.string,maxAspectRatio:C.string,minDeviceAspectRatio:C.string,maxDeviceAspectRatio:C.string,minHeight:pt,maxHeight:pt,minDeviceHeight:pt,maxDeviceHeight:pt,minWidth:pt,maxWidth:pt,minDeviceWidth:pt,maxDeviceWidth:pt,minColor:C.number,maxColor:C.number,minColorIndex:C.number,maxColorIndex:C.number,minMonochrome:C.number,maxMonochrome:C.number,minResolution:pt,maxResolution:pt,...Aa};var Ta={all:{...zo,...Ca}};const La=t=>`not ${t}`,za=(t,e)=>{const o=Lo(t);return typeof e=="number"&&(e=`${e}px`),e===!0?o:e===!1?La(o):`(${o}: ${e})`},Ia=t=>t.join(" and "),Ea=t=>{const e=[];return Object.keys(Ta.all).forEach(o=>{const n=t[o];n!=null&&e.push(za(o,n))}),Ia(e)},Ba=x.createContext(void 0),ja=t=>t.query||Ea(t),Io=t=>t?Object.keys(t).reduce((o,n)=>(o[Lo(n)]=t[n],o),{}):void 0,Eo=()=>{const t=x.useRef(!1);return x.useEffect(()=>{t.current=!0},[]),t.current},Na=t=>{const e=x.useContext(Ba),o=()=>Io(t)||Io(e),[n,a]=x.useState(o);return x.useEffect(()=>{const i=o();ka(n,i)||a(i)},[t,e]),n},Da=t=>{const e=()=>ja(t),[o,n]=x.useState(e);return x.useEffect(()=>{const a=e();o!==a&&n(a)},[t]),o},Fa=(t,e)=>{const o=()=>ha(t,e||{},!!e),[n,a]=x.useState(o),i=Eo();return x.useEffect(()=>{if(i){const r=o();return a(r),()=>{r&&r.dispose()}}},[t,e]),n},Ma=t=>{const[e,o]=x.useState(t.matches);return x.useEffect(()=>{const n=a=>{o(a.matches)};return t.addListener(n),o(t.matches),()=>{t.removeListener(n)}},[t]),e},ye=(t,e,o)=>{const n=Na(e),a=Da(t);if(!a)throw new Error("Invalid or missing MediaQuery!");const i=Fa(a,n),r=Ma(i);return Eo(),x.useEffect(()=>{},[r]),x.useEffect(()=>()=>{i&&i.dispose()},[]),r},Oa=t=>{const{desktop:e,tablet:o,mobile:n}=t,a=ye(e),i=ye(o),r=ye(n);return{device:{isDesktop:a,isTablet:i,isMobile:r}}},Ha=t=>{const{breakpoints:e,children:o}=t,{device:n}=Oa(e);return s.jsx(ve.Provider,{value:{device:n},children:o})},Pa=180,_t={spSelect:"_spSelect_140u6_43",spSelect_error:"_spSelect_error_140u6_48",spSelect__control:"_spSelect__control_140u6_48",spSelect__value_empty:"_spSelect__value_empty_140u6_52",spSelect__icon:"_spSelect__icon_140u6_55",spSelect__container:"_spSelect__container_140u6_58",spSelect__control_filled:"_spSelect__control_filled_140u6_78",spSelect__control_outlined:"_spSelect__control_outlined_140u6_82",spSelect__control_disabled:"_spSelect__control_disabled_140u6_107",spSelect__value:"_spSelect__value_140u6_52",spSelect__list:"_spSelect__list_140u6_138",spSelect__list_scrollable:"_spSelect__list_scrollable_140u6_145",spSelect__option:"_spSelect__option_140u6_161",spSelect__error:"_spSelect__error_140u6_179"},Wa=t=>{const{options:e,placeholder:o="Выберите из списка...",value:n,name:a,variant:i="outlined",onChange:r,onMouseEnter:p,error:u,label:c,infoTooltipText:d,tooltipPosition:_,disabled:b,required:k,maxHeightList:T=Pa,isVisibleDefaultTitle:y=!0,isScrollableList:E=!1,classNameRoot:F,classNameError:Y,classNameLabel:j,classNameBaseTooltipRoot:w}=t,[l,A]=x.useState(!1),P=x.useRef(null);Ne([P],()=>{A(!1)},l);const R=e.find(f=>f.value===n),tt=(f,h)=>{r(f,{value:h,name:a}),A(!1)},nt=()=>{b||A(!l)},ft=m({[_t.spSelect]:!0,[_t.spSelect_error]:!!u,...F&&{[F]:!0}}),ut=m({[_t.spSelect__container]:!0}),ct=m({[_t.spSelect__control]:!0,[_t[`spSelect__control_${i}`]]:i,[_t.spSelect__control_disabled]:b}),Z=m({[_t.spSelect__value]:!0,[_t.spSelect__value_empty]:!R}),Q=m({[_t.spSelect__icon]:!0}),S=m({[_t.spSelect__list]:!0,[_t.spSelect__list_scrollable]:E}),G=m({...j&&{[j]:!0}}),X=m({[_t.spSelect__error]:!0,...Y&&{[Y]:!0}}),H=()=>s.jsxs("div",{tabIndex:b?-1:0,title:y?n:void 0,className:ct,onClick:nt,children:[s.jsx("div",{className:Z,children:(R==null?void 0:R.label)||o}),s.jsx(lt,{name:it.SelectChevronDown,rotate:l?180:void 0,className:Q})]});return s.jsxs("div",{className:ft,ref:P,children:[c&&s.jsx(Ut,{classNameRoot:G,tooltipPosition:_,required:k,label:c,infoTooltipText:d,classNameBaseTooltipRoot:w}),s.jsxs("div",{className:ut,onMouseEnter:p,children:[H(),l&&s.jsx("div",{className:S,style:E?{maxHeight:`${T}px`}:{},children:e.map(f=>{const h=f.value===n;return s.jsxs("div",{className:m({[_t.spSelect__option]:!0}),onClick:N=>tt(N,f.value),children:[f.label,h&&s.jsx(lt,{name:it.Check,className:Q})]},f.value)})})]}),u&&s.jsx("div",{className:X,children:u})]})},Ga={skeleton:"_skeleton_c18an_44"},qa=t=>{const{width:e="100%",height:o="1rem",circle:n=!1,classNameRoot:a="",style:i={}}=t,r={width:e,height:o,borderRadius:n?"50%":"0",...i};return s.jsx("div",{style:r,className:m(a,Ga.skeleton)})},Bo=t=>t==null||t===""?!0:typeof t!="string"&&typeof t.toString!="function"?!1:t.toString().replace(/\s/g,"").length<1,gt={spTable:"_spTable_1vuaj_43",spTable__tdContentCopyIcon:"_spTable__tdContentCopyIcon_1vuaj_62",spTable__tdContent:"_spTable__tdContent_1vuaj_62",spTable__tdColorContent:"_spTable__tdColorContent_1vuaj_72",spTable__tdContentCopyIcon_copied:"_spTable__tdContentCopyIcon_copied_1vuaj_85",spTable__emptyPage:"_spTable__emptyPage_1vuaj_89",spStringsGroup:"_spStringsGroup_1vuaj_105",spStringsGroup__groupItem:"_spStringsGroup__groupItem_1vuaj_119",spStringsGroup__groupItemHeader:"_spStringsGroup__groupItemHeader_1vuaj_134",spStringsGroup__groupItemContent:"_spStringsGroup__groupItemContent_1vuaj_138",spStringsGroup__groupItemContentCopyIcon:"_spStringsGroup__groupItemContentCopyIcon_1vuaj_144",spStringsGroup__groupItemContentCopyIcon_copied:"_spStringsGroup__groupItemContentCopyIcon_copied_1vuaj_151"},$a=t=>{const{columns:e,data:o,isNotTableOnNotDesktop:n=!1,classNameRoot:a}=t,i=e.map(w=>o?{...w,isVisible:o.some(l=>!!l[w.key])}:w).filter(w=>w.isVisible),r=m({[gt.spTable]:!0,...a&&{[a]:!0}}),p=m({[gt.spTable__tdContent]:!0}),u=m({[gt.spTable__tdColorContent]:!0}),c=m({[gt.spTable__emptyPage]:!0}),{device:{isDesktop:d}}=x.useContext(ve),[_,b]=x.useState(null),k=w=>{const{text:l,rowIndex:A,colIndex:P}=w;(_==null?void 0:_.rowIndex)===A&&(_==null?void 0:_.colIndex)===P||navigator.clipboard.writeText(l).then(()=>{b({rowIndex:A,colIndex:P})}).catch(R=>{console.error("Ошибка при копировании:",R)})},T=()=>{b(null)},y=()=>s.jsx("div",{className:c,children:"Данные отсутствуют"}),E=({row:w,col:l})=>{const A=w[l.key];if(!A)return null;const[P,R]=A.split(/\s*\{\{|}}\s*/).filter(Boolean);return s.jsxs("span",{children:[P,R&&s.jsx("span",{className:u,children:` ${R}`})]})},F=()=>o&&Array.isArray(o)&&o.length>0?s.jsxs("table",{className:r,children:[s.jsx("colgroup",{children:i.map((w,l,A)=>s.jsx("col",{style:{width:`calc(100%/${A.length})`}},l))}),s.jsx("thead",{children:s.jsx("tr",{children:i.map((w,l)=>s.jsx("th",{children:w.title},l))})}),s.jsx("tbody",{children:o.map((w,l)=>w?s.jsx("tr",{children:i.map((A,P)=>{const R=(_==null?void 0:_.rowIndex)===l&&(_==null?void 0:_.colIndex)===P;return s.jsx("td",{onMouseLeave:R?T:void 0,children:s.jsxs("div",{className:p,children:[s.jsx("span",{children:A.isColorContentsCurlyBrackets?E({row:w,col:A}):w[A.key]}),!Bo(w[A.key])&&A.isBeCopiedValue&&s.jsx(lt,{className:m({[gt.spTable__tdContentCopyIcon]:!0,[gt.spTable__tdContentCopyIcon_copied]:R}),name:R?it.Check:it.Copy,onClick:()=>{const tt=w[A.key];if(!tt)return null;k({text:tt,rowIndex:l,colIndex:P})}})]})},`${l}:${P}`)})},l):null)})]}):y(),Y=()=>o&&Array.isArray(o)&&o.length>0?s.jsx("div",{className:m({[gt.spStringsGroup]:!0}),children:o.map((w,l)=>w?s.jsx("div",{children:i.map((A,P)=>{if(Bo(w[A.key]))return null;const R=(_==null?void 0:_.rowIndex)===l&&(_==null?void 0:_.colIndex)===P;return s.jsxs("div",{className:m({[gt.spStringsGroup__groupItem]:!0}),onMouseLeave:R?T:void 0,children:[s.jsx("div",{className:m({[gt.spStringsGroup__groupItemHeader]:!0}),children:A.title}),s.jsxs("div",{className:m({[gt.spStringsGroup__groupItemContent]:!0}),children:[s.jsx("span",{children:w[A.key]}),A.isBeCopiedValue&&s.jsx(lt,{className:m({[gt.spStringsGroup__groupItemContentCopyIcon]:!0,[gt.spStringsGroup__groupItemContentCopyIcon_copied]:R}),name:R?it.Check:it.Copy,onClick:()=>{const tt=w[A.key];if(!tt)return null;k({text:tt,rowIndex:l,colIndex:P})}})]})]},P)})},l):null)}):y();return n?d?F():Y():F()},Tt={spTabs:"_spTabs_1citb_43",spTabs_separated:"_spTabs_separated_1citb_48","spTabs--size-md":"_spTabs--size-md_1citb_48",spTabs__tabElement:"_spTabs__tabElement_1citb_48","spTabs--size-lg":"_spTabs--size-lg_1citb_51","spTabs--variant-contained":"_spTabs--variant-contained_1citb_54",spTabs__tabElement_active:"_spTabs__tabElement_active_1citb_83",spTabs__triggerTooltip:"_spTabs__triggerTooltip_1citb_90","spTabs--variant-filled":"_spTabs--variant-filled_1citb_93"},Ra=t=>{const{panes:e,isSeparated:o=!1,classNameRoot:n,classNameBaseTooltipRoot:a,variant:i="contained",size:r="md"}=t,p=m({[Tt.spTabs]:!0,[Tt.spTabs_separated]:o,[Tt[`spTabs--variant-${i}`]]:i,[Tt[`spTabs--size-${r}`]]:r,...n&&{[n]:!0}}),u=m({[Tt.spTabs__triggerTooltip]:!0}),c=()=>{switch(r){case"md":return"p2";case"lg":return"p1"}};return s.jsx("div",{className:p,children:e.map((d,_)=>{const{name:b,active:k,onClick:T,infoTooltipText:y}=d;return s.jsxs("div",{className:m({[Tt.spTabs__tabElement]:!0,[Tt.spTabs__tabElement_active]:k}),onClick:T,children:[s.jsx(yt,{type:c(),children:b}),!!y&&s.jsx(jt,{classNameTriggerTooltip:u,text:y,classNameBaseTooltipRoot:a})]},d.key||_)})})},Va={spTextWithLabel:"_spTextWithLabel_1dr7p_1"},Ya=t=>{const{children:e,label:o,style:n,...a}=t;return s.jsxs("div",{className:Va.spTextWithLabel,style:{...n},children:[s.jsx(Ut,{label:o}),s.jsx(yt,{...a,children:e})]})};D.Accordion=Zo,D.ApplyButtons=je,D.BaseTooltip=te,D.Button=Ot,D.Checkbox=Qo,D.Confirm=tn,D.ContextMenu=en,D.DefaultDropzone=ho,D.Dropdown=ra,D.EIconName=it,D.ETooltipPosition=rt,D.EllipsisTextWithTooltip=yo,D.Form=sa,D.Icon=lt,D.InfoTooltip=jt,D.Input=wo,D.InputFiles=pa,D.Label=Ut,D.Layer=Me,D.MediaContext=ve,D.MediaContextProvider=Ha,D.Modal=Oe,D.Portal=ee,D.Select=Wa,D.Skeleton=qa,D.Spinner=Be,D.Table=$a,D.Tabs=Ra,D.Text=yt,D.TextWithLabel=Ya,D.Tooltip=Ht,D.useModal=Jo,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})});
|