import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{$9 as t,H9 as n,Q9 as r,W9 as i,X9 as a,Z9 as o,eet as s,net as c,ret as l,tet as u,ztt as d}from"./app-initial-BHB6SClA.js";function f(e,t,{annotationModeEnabled:n,startSource:a}){i(e,r,{...g(t),annotationModeEnabled:n,startSource:v(a)})}function p(e,t){i(e,l,{...g(t)})}function m(e,t){i(e,a,{...g(t)})}function h(e,t,{annotationModeEnabled:n,annotationTargetKind:r,submitMode:a,submitSource:o}){i(e,u,{...g(t),annotationModeEnabled:n,annotationTargetKind:r,submitMode:y(a),submitSource:b(o)})}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 c.CODEX_ARTIFACT_KIND_DOCUMENT;case`notebook`:return c.CODEX_ARTIFACT_KIND_NOTEBOOK;case`pdf`:return c.CODEX_ARTIFACT_KIND_PDF;case`slides`:return c.CODEX_ARTIFACT_KIND_PRESENTATION;case`spreadsheet`:return c.CODEX_ARTIFACT_KIND_SPREADSHEET}}function v(e){switch(e){case`annotation_mode_pointer`:return o.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ANNOTATION_MODE_POINTER;case`ask_codex_button`:return o.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ASK_CODEX_BUTTON;case`ask_codex_shortcut`:return o.CODEX_ARTIFACT_ANNOTATION_START_SOURCE_ASK_CODEX_SHORTCUT}}function y(e){switch(e){case`direct`:return t.CODEX_ARTIFACT_ANNOTATION_SUBMIT_MODE_DIRECT;case`saved`:return t.CODEX_ARTIFACT_ANNOTATION_SUBMIT_MODE_SAVED}}function b(e){switch(e){case`button`:return s.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_BUTTON;case`dictation`:return s.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_DICTATION;case`keyboard`:return s.CODEX_ARTIFACT_ANNOTATION_SUBMIT_SOURCE_KEYBOARD}}var x=e((()=>{d(),n()}));export{p as a,h as i,m as n,f as r,x as t};
//# sourceMappingURL=artifact-analytics-DHJoQ0CH.js.map