import{j as t,R as l,h as u}from"./vendor-ClLR6ncd.js";import{u as d}from"./model-BBaroEiB.js";import"./lodash-ZyeDnt0e.js";import{T as c}from"./index-OtVJl4GC.js";import"./configs-Cm_sEDXb.js";import"./pluralize-BF8NJH6e.js";import{A as f}from"./useDefaultMutationOptions-CUrzq21a.js";import"./highlightSearch-BTHB3jgf.js";import"./model-Dfrorm_S.js";import{L,F as g,f as y,b as R}from"./LoadOptions-2iH81lnL.js";import"./ui-DKzyPIqx.js";import{u as U}from"./useImportFileMutation-Cn0DFUwF.js";import{L as x}from"./Link-BLwKPJFF.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";import"./Messages-BRmQDxrZ.js";import"./index-BpKmttxq.js";import"./model-mC-LLJuv.js";import"./DialogContent-DR8Wx7Lo.js";import"./DialogTitle-i0lt2jWQ.js";import"./DialogContentText-5YOBSelz.js";import"./WithMeasure-BDk9QPMF.js";import"./TableRow-CGDSOtFZ.js";import"./TableSortLabel-BJFq2axQ.js";import"./Box-Co2WcNPC.js";import"./TypographyWithTooltip-BFAG3Va9.js";import"./SmallStandardSelect-7k6-Wr8Q.js";import"./MenuItem-CCerWMyq.js";import"./dividerClasses-DvO85-mA.js";import"./CheckboxWithLabel-D5KtBcIx.js";import"./RadioButtons-DZChRzLE.js";import"./useNamespaces-B-2wwTCG.js";import"./model-DgFcCvKB.js";import"./Autocomplete-Cjt7Q9VV.js";import"./Chip-DoCs8Smb.js";import"./AccordionDetails-Bqc4B-Ut.js";import"./usePrevious-BP64N3hu.js";const h=y.map(o=>o.value==="transactional"?{...o,disabled:!0}:o);function A(o){return t.jsx(g,{...o,items:h})}function b(o){return t.jsx(L,{...o,FileLoadingModeComponent:A})}const j=o=>o;function po(){const{url:o,setUrl:n,trackOption:p,options:i,invalid:r}=R(),s=d("agtool.html#s3-files"),m=l.useMemo(()=>[o],[o]),{mutation:e}=U({files:m,options:i,fileNameOption:"url",fileNameGetter:j,includeInData:!1}),a=e.isLoading;return t.jsx(f,{toIncludeVerify:!0,toConfirmLoadAgain:!0,description:t.jsxs(u,{children:["URL must point to an RDF file. Also, Amazon S3 URI are supported. If importing from Amazon S3, please make sure you've"," ",t.jsx(x,{target:"_blank",href:s,children:"set up access to S3 on the server"}),"."]}),action:t.jsx(c,{disabled:a,label:"URL or S3 URI",value:o,setter:n}),options:t.jsx(b,{readOnly:a,trackOption:p,options:i}),applyButtonLabel:"Verify & import URL",applyButtonDisabled:r,applyButtonTooltip:r?"URL is invalid or options are invalid":"",mutation:e,actionTitle:"Type URL to RDF file"})}export{po as default};
