import{Xc as a}from"./shared-0-C4kdVF7Y.js";import{ki as e}from"./vendor-frame-CwiylG4Y.js";import{As as s}from"./shared-1-3-6x7RKF.js";import{nn as t,rn as i}from"./vendor-all-2-BJdkbLSj.js";import{ls as d}from"./shared-5-UQAFGbWu.js";import{Xd as l}from"./shared-2-CMUBhYOn.js";import{u as n}from"./shared-12-kUZ_jZyi.js";import{l as r}from"./c5a2ad2ba-h2VYAi4u.js";var o=e();function c(e){const t=i(),d=s("push"),n=a(),o=l(),c=!(e||!o&&n.isAvailable);return{blocked:c,disabledReason:c&&o?r(o,t):"",onClick:e??(()=>d({createMode:"default"}))}}function u({onCtaClick:a}={}){const e=c(a);return(0,o.jsx)(n,{headline:(0,o.jsx)(t,{defaultMessage:"What will you build with artifacts?",id:"HZayj4eDPi"}),description:(0,o.jsx)(t,{defaultMessage:"If you can dream it, you can build it. Take apps, games, templates, and tools from thought to reality.",id:"nDSv05eqfT"}),variant:"artifacts",ctaLabel:(0,o.jsx)(t,{defaultMessage:"New artifact",id:"YRNJssxSp5"}),ctaDisabled:e.blocked,ctaDisabledReason:e.disabledReason,onCtaClick:e.onClick})}function f({onCtaClick:a}={}){const e=c(a);return(0,o.jsx)(n,{hideIllustration:!0,headline:(0,o.jsx)(t,{defaultMessage:"Create your first artifact",id:"1+8tjvOuk5"}),description:(0,o.jsx)(t,{defaultMessage:"Artifacts you build with Claude appear here.",id:"e8w7LWOC8I"}),ctaLabel:(0,o.jsx)(t,{defaultMessage:"New artifact",id:"YRNJssxSp5"}),ctaDisabled:e.blocked,ctaDisabledReason:e.disabledReason,onCtaClick:e.onClick})}function h(){return(0,o.jsx)(n,{hideIllustration:!0,headline:(0,o.jsx)(t,{defaultMessage:"No shared artifacts yet",id:"1UCcsG9Ua+"}),description:(0,o.jsx)(t,{defaultMessage:"When someone shares an artifact with you, it appears here.",id:"eLpyZM0UXF"})})}function j({value:a,onChange:e,enabled:s,pinnedEnabled:l=!1}){const n=i();if(!s&&!l)return null;const r=s?a:"pinned"===a?"pinned":"all";return(0,o.jsx)("div",{className:"-mx-4 -mb-5 mt-5 overflow-x-auto px-4 py-2 md:-mx-2 md:px-2",children:(0,o.jsx)(d.Root,{value:r,onValueChange:a=>e(a),children:(0,o.jsxs)(d.List,{activateOnFocus:!1,"aria-label":n.formatMessage({defaultMessage:"Artifacts",id:"eW5eoWkxy3"}),children:[(0,o.jsx)(d.Tab,{value:"all",children:(0,o.jsx)(t,{defaultMessage:"All",id:"zQvVDJ+j59"})}),l&&(0,o.jsx)(d.Tab,{value:"pinned",children:(0,o.jsx)(t,{defaultMessage:"Pinned",id:"fWZYP5U4xZ"})}),s&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d.Tab,{value:"mine",children:(0,o.jsx)(t,{defaultMessage:"Yours",id:"PeLLG7+T77"})}),(0,o.jsx)(d.Tab,{value:"shared",children:(0,o.jsx)(t,{defaultMessage:"Shared with you",id:"7fx3MwRt4t"})})]})]})})})}export{f as i,u as n,h as r,j as t};