import{__rest as e,__assign as t}from"../../node_modules/tslib/tslib.es6.js";import n from"react";import{ModalOverlay as l,ModalHeader as o,ModalCloseButton as i,ModalBody as r,ModalFooter as a}from"../../node_modules/@chakra-ui/modal/dist/esm/modal.js";import{AlertDialog as s,AlertDialogContent as c}from"../../node_modules/@chakra-ui/modal/dist/esm/alert-dialog.js";import{Stack as d}from"../../node_modules/@chakra-ui/layout/dist/esm/stack.js";import{Button as m}from"../../node_modules/@chakra-ui/button/dist/esm/button.js";var u=function(u){var p=u.onClose,f=u.onSave,E=u.onUpload,g=u.buttonLabel,b=u.open,h=u.children,v=u.onFinishMultiSelect,C=u.title,k=u.errorMessages,j=e(u,["onClose","onSave","onUpload","buttonLabel","open","children","onFinishMultiSelect","title","errorMessages"]),S=n.useRef();return n.createElement(s,t({size:"7xl",isOpen:b,leastDestructiveRef:S,onClose:p,isCentered:!0},j,{preserveScrollBarGap:!0}),n.createElement(l,null,n.createElement(c,null,n.createElement(o,{fontSize:"lg",fontWeight:"bold",id:"confirmation-dialog-title"},C,n.createElement(i,null)),n.createElement(r,null,h),n.createElement(a,null,n.createElement(d,{justifyContent:"flex-end",spacing:4,direction:"row",align:"left"},n.createElement(m,{autoFocus:!0,onClick:E,variant:"solid"},"Upload")),n.createElement(d,{justifyContent:"space-between",direction:"row",align:"center",width:"100%"},n.createElement(d,{spacing:4,direction:"row",align:"center"},n.createElement("div",{style:{color:"red"}},k)),n.createElement(d,{spacing:4,direction:"row",align:"center"},n.createElement(m,{disabled:!!k,onClick:f},g),v?n.createElement(m,{disabled:!!k,onClick:v,variant:"outline"},"Finish Selecting"):null))))))};export{u as LibraryDialog};
//# sourceMappingURL=LibraryDialog.js.map
