import{n as e}from"./rolldown-runtime-Czos8NxU.js";import{$h as t,Gd as n,df as r,ff as i,gf as a,hf as o,lf as s,mf as c,pf as l,qd as u,uf as d}from"./app-initial~app-main~new-thread-panel-page-BZHGOlMi.js";function f(e,t,{annotationModeEnabled:n,startSource:i}){u(e,r,{...g(t),annotationModeEnabled:n,startSource:v(i)})}function p(e,t){u(e,a,{...g(t)})}function m(e,t){u(e,s,{...g(t)})}function h(e,t,{annotationModeEnabled:n,annotationTargetKind:r,submitMode:i,submitSource:a}){u(e,c,{...g(t),annotationModeEnabled:n,annotationTargetKind:r,submitMode:y(i),submitSource:b(a)})}function g({artifactTabId:e,artifactType:t,importKind:n,threadId:r}){return{artifactKind:_(t),artifactImportKind:n,artifactTabId:e??void 0,threadId:r??void 0}}function _(e){switch(e){case`document`:return o.CODEX_ARTIFACT_KIND_DOCUMENT;case`notebook`:return o.CODEX_ARTIFACT_KIND_NOTEBOOK;case`pdf`:return o.CODEX_ARTIFACT_KIND_PDF;case`slides`:return o.CODEX_ARTIFACT_KIND_PRESENTATION;case`spreadsheet`:return o.CODEX_ARTIFACT_KIND_SPREADSHEET}}function v(e){switch(e){case`annotation_mode_pointer`:return d.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ANNOTATION_MODE_POINTER;case`ask_codex_button`:return d.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ASK_CODEX_BUTTON;case`ask_codex_shortcut`:return d.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ASK_CODEX_SHORTCUT}}function y(e){switch(e){case`direct`:return i.CODEX_ARTIFACT_ANNOTATION_SUBMIT_MODE_DIRECT;case`saved`:return i.CODEX_ARTIFACT_ANNOTATION_SUBMIT_MODE_SAVED}}function b(e){switch(e){case`button`:return l.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_BUTTON;case`dictation`:return l.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_DICTATION;case`keyboard`:return l.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_KEYBOARD}}var x=e((()=>{t(),n()}));export{p as a,h as i,m as n,f as r,x as t};
//# sourceMappingURL=artifact-analytics-AmTeU-ti.js.map