PageSourceSearch

https://dashboard.cohere.com/_next/static/chunks/pages/datasets-f93c428d06644a91.js

js cohere.com collected 2026-10-01 09:20:16 UTC 4,625 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="221ad783-317f-4a69-8ebd-0ececa2d8c4e",e._sentryDebugIdIdentifier="sentry-dbid-221ad783-317f-4a69-8ebd-0ececa2d8c4e")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6275],{44454:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/datasets",function(){return a(56552)}])},56552:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>f,default:()=>m});var s=a(41695),n=a(5254),d=a(64154),l=a(59011),o=a(84772),r=a(72512),i=a(53546),c=a(71712),u=a(64255),x=function(e){var t=e.datasetId,a=(0,s.useContext)(c.V),l=a.open,o=a.close;return(0,u.jsx)(d.$n,{kind:"secondary",endIcon:(0,u.jsx)(n.In,{name:"trash",size:"sm",kind:"outline",className:"text-danger-600"}),onClick:function(){l({title:"Delete dataset",content:(0,u.jsx)(r.A,{datasetId:t,onClose:o})})},stopPropagation:!0,"data-element":"Button","data-component":"DeleteDatasetButton","data-source-file":"index.tsx",children:(0,u.jsx)(d.EY,{as:"span",className:"mr-2 text-danger-600","data-element":"Text","data-source-file":"index.tsx",children:"Delete"})})},f=!0;let m=function(){return(0,u.jsxs)(i.Ay,{title:"Datasets","data-element":"Page","data-component":"DatasetsPage","data-source-file":"index.tsx",children:[(0,u.jsx)(i.zY,{"data-element":"PageHeader","data-source-file":"index.tsx",children:(0,u.jsxs)("div",{className:"flex flex-col gap-y-6 md:flex-row md:justify-between",children:[(0,u.jsxs)("div",{className:"flex flex-col gap-y-4 md:w-2/3 md:gap-y-8",children:[(0,u.jsx)(d.EY,{as:"h3",className:"text-volcanic-700","data-element":"Text","data-source-file":"index.tsx",children:"Datasets"}),(0,u.jsxs)(d.EY,{"data-element":"Text","data-source-file":"index.tsx",children:["Datasets allows you to upload, download, manage and interface with your data on Cohere's platform for a variety of downstream tasks. Learn more about our"," ",(0,u.jsx)(d.gH,{href:l.sH.datasetRetention,label:"data controls policies.",target:"_blank","data-element":"InlineLink","data-source-file":"index.tsx"})]})]}),(0,u.jsxs)("div",{className:"flex w-full flex-col gap-y-6 md:w-fit md:justify-end md:gap-y-3",children:[(0,u.jsx)(d.$n,{label:"Upload a dataset",kind:"primary",splitIcon:"upload",href:"/datasets/create",className:"flex w-full md:w-auto","data-element":"Button","data-source-file":"index.tsx"}),(0,u.jsx)(d.$n,{label:"Documentation",kind:"secondary",endIcon:"arrow-up-right",className:"mx-auto md:mx-0",href:l.sH.datasets,target:"_blank","data-element":"Button","data-source-file":"index.tsx"})]})]})}),(0,u.jsx)(i.PE,{"data-element":"PageMain","data-source-file":"index.tsx",children:(0,u.jsx)(o.A,{type:"datasets",renderRowActionComponent:function(e){return(0,u.jsx)(x,{datasetId:e.id})},"data-element":"DatasetsTable","data-source-file":"index.tsx"})})]})}},72512:(e,t,a)=>{"use strict";a.d(t,{A:()=>c});var s=a(29408),n=a(16743),d=a.n(n),l=a(22868);a(41695);var o=a(64154),r=a(493),i=a(64255);let c=function(e){var t,a=e.onClose,n=e.datasetId,c=(0,r.f7)(),u=c.mutateAsync,x=c.isPending,f=c.error,m=(0,l.useRouter)(),p=(0,o.lk)(),h=(t=(0,s.A)(d().mark(function e(){return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,u({id:n});case 3:m.push({pathname:"/datasets"}),a(),p.success("Your dataset (".concat(n,") has been deleted.")),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),f&&(p.error("There was an issue deleting your dataset. ".concat(f.message)),a());case 11:case"end":return e.stop()}},e,null,[[0,8]])})),function(){return t.apply(this,arguments)});return(0,i.jsxs)("div",{className:"flex flex-col gap-y-8","data-component":"DeleteDatasetModal","data-source-file":"DeleteDatasetModal.tsx",children:[(0,i.jsx)(o.EY,{"data-element":"Text","data-source-file":"DeleteDatasetModal.tsx",children:"This dataset will not be accessible to any applications or scripts using it. Models that use this dataset will continue to be trained on this data. You cannot undo this action."}),(0,i.jsxs)("div",{className:"flex w-full flex-col-reverse justify-between md:flex-row",children:[(0,i.jsx)(o.$n,{kind:"secondary",label:"Cancel",onClick:a,className:"mt-4 md:mt-0","data-element":"Button","data-source-file":"DeleteDatasetModal.tsx"}
1),(0,i.jsx)(o.$n,{label:x?"Deleting...":"I understand, delete this dataset",type:"button",splitIcon:"arrow-right",kind:"danger",onClick:h,disabled:x,"data-element":"Button","data-source-file":"DeleteDatasetModal.tsx"})]})]})}}},e=>{e.O(0,[1180,5133,4772,636,6593,8792],()=>e(e.s=44454)),_N_E=e.O()}]);

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.