import{n as e}from"./rolldown-runtime-Czos8NxU.js";import{Bt as t,Rt as n,Tl as r,Xs as i,tc as a,un as o,zt as s}from"./app-initial~app-main~worktree-init-v2-page~appgen-settings-page~page~appgen-publication-ter~fzo5ij6p-BKVLyD1q.js";import{dt as c,gt as l,mt as u}from"./app-initial~app-main~worktree-init-v2-page~remote-conversation-page~pull-requests-page~new-~djgpfzje-C7Uyb8hp.js";function d(e){return e==null||e.length===0?f:[...f,...e.map(e=>({assetRef:`codex`,description:e.description,displayName:e.displayName,id:e.id,spritesheetUrl:e.spritesheetDataUrl}))]}var f,p=e((()=>{f=[{assetRef:`codex`,description:`The original Codex companion.`,displayName:`Codex`,id:`codex`},{assetRef:`dewey`,description:`A tidy duck for calm workspace days.`,displayName:`Dewey`,id:`dewey`},{assetRef:`fireball`,description:`Hot path energy for fast iteration.`,displayName:`Fireball`,id:`fireball`},{assetRef:`hoots`,description:`A sharp-eyed owl for polished work in a blink.`,displayName:`Hoots`,id:`hoots`},{assetRef:`rocky`,description:`A steady rock when the diff gets large.`,displayName:`Rocky`,id:`rocky`},{assetRef:`seedy`,description:`Small green shoots for new ideas.`,displayName:`Seedy`,id:`seedy`},{assetRef:`stacky`,description:`A balanced stack for deep work.`,displayName:`Stacky`,id:`stacky`},{assetRef:`bsod`,description:`A tiny blue-screen gremlin.`,displayName:`BSOD`,id:`bsod`},{assetRef:`null-signal`,description:`Quiet signal from the void.`,displayName:`Null Signal`,id:`null-signal`}]}));function m(e,t=f){return t.find(t=>t.id===e)??t.find(e=>e.id===v)??t[0]??f[0]}function h(e,t){return t?.startsWith(`custom:`)===!0&&e.id!==t}function g(e){let t=(0,_.c)(9),r=a(n),i=l(o.selectedAvatarId),s;t[0]!==e||t[1]!==i?(s=m(i,e),t[0]=e,t[1]=i,t[2]=s):s=t[2];let c;t[3]===r?c=t[4]:(c=e=>{u(r,o.selectedAvatarId,e)},t[3]=r,t[4]=c);let d;return t[5]!==i||t[6]!==s||t[7]!==c?(d={selectedAvatar:s,selectedAvatarId:i,setSelectedAvatarId:c},t[5]=i,t[6]=s,t[7]=c,t[8]=d):d=t[8],d}var _,v,y=e((()=>{_=r(),i(),t(),s(),c(),p(),v=`codex`}));export{d as a,f as i,h as n,p as o,g as r,y as t};
//# sourceMappingURL=app-initial~app-main~pet-install-modal-host~avatar-overlay-page~avatar-overlay-native-page~~s9e72i2g-C34gP1As.js.map