performance.mark("js-parse-end:47504-8e61ced25e654101.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["47504"],{69538(e,a,l){l.d(a,{A:()=>t});let t={"marketplace-list-grid":"marketplace-common-module__marketplace-list-grid__XsXII","marketplace-item":"marketplace-common-module__marketplace-item__b3MER","marketplace-item-link":"marketplace-common-module__marketplace-item-link__arvWs","marketplace-logo":"marketplace-common-module__marketplace-logo__K_mTs","marketplace-model-avatar-icon":"marketplace-common-module__marketplace-model-avatar-icon__ukj9h","marketplace-logo--jamba-div":"marketplace-common-module__marketplace-logo--jamba-div__ifp2G","marketplace-logo--jamba-logo":"marketplace-common-module__marketplace-logo--jamba-logo__VHD9d","marketplace-logo--dialog":"marketplace-common-module__marketplace-logo--dialog__ToLnl","marketplace-logo-img":"marketplace-common-module__marketplace-logo-img__Iw1Vy","marketplace-logo-svg":"marketplace-common-module__marketplace-logo-svg__rGJ6G","marketplace-featured-grid":"marketplace-common-module__marketplace-featured-grid__Ta9H2"}},45360(e,a,l){l.d(a,{T:()=>_});var t=l(74848),r=l(16522),i=l(19129),m=l(38621),o=l(26108),s=l(80117),c=l(60625),n=l(96540),d=l(34164),u=l(15582),p=l(933);function _(e){let a,l,_,h,g,f,x,k,b,v,j,y,N,A,C=(0,r.c)(33);C[0]!==e?({icon:f,size:x,onCopy:g,textToCopy:b,tooltipProps:v,variant:k,ariaLabel:a,className:l,disabled:_,...h}=e,C[0]=e,C[1]=a,C[2]=l,C[3]=_,C[4]=h,C[5]=g,C[6]=f,C[7]=x,C[8]=k,C[9]=b,C[10]=v):(a=C[1],l=C[2],_=C[3],h=C[4],g=C[5],f=C[6],x=C[7],k=C[8],b=C[9],v=C[10]);let w=void 0===f?m.CopyIcon:f,I=void 0===x?"medium":x,S=void 0===k?"invisible":k,[$,T]=n.useState(!1),G=(0,i.A)();C[11]!==G||C[12]!==g||C[13]!==b?(j=()=>{T(!0),(0,u.D)(b),g?.(),setTimeout(()=>G()&&T(!1),2e3)},C[11]=G,C[12]=g,C[13]=b,C[14]=j):j=C[14];let B=j,H=a??`Copy "${b}" to clipboard`,L=$?"Copied!":H,M=$?m.CheckIcon:w,z=$?"color-fg-success":void 0;C[15]!==l||C[16]!==z?(y=(0,d.$)(z,l),C[15]=l,C[16]=z,C[17]=y):y=C[17],C[18]!==h||C[19]!==B||C[20]!==I||C[21]!==M||C[22]!==y||C[23]!==S?(N={size:I,variant:S,onClick:B,icon:M,className:y,...h},C[18]=h,C[19]=B,C[20]=I,C[21]=M,C[22]=y,C[23]=S,C[24]=N):N=C[24];let E=N,D=(0,n.useId)();return C[25]!==$||C[26]!==_||C[27]!==H||C[28]!==E||C[29]!==D||C[30]!==v||C[31]!==L?(A=_?(0,t.jsx)(o.K,{...E,"aria-label":H,disabled:!0}):(0,t.jsxs)(t.Fragment,{children:[$&&(0,t.jsx)(s.s,{children:(0,t.jsx)(p.e,{children:"Copied!"})}),(0,t.jsx)(c.m,{text:L,"aria-label":H,type:"label",id:D,"aria-hidden":!0,...v,className:(0,d.$)("CopyToClipboardButton-module__tooltip__BhMvU",v?.className),children:(0,t.jsx)(o.K,{...E,"aria-labelledby":D})})]}),C[25]=$,C[26]=_,C[27]=H,C[28]=E,C[29]=D,C[30]=v,C[31]=L,C[32]=A):A=C[32],A}_.displayName="CopyToClipboardButton"},206(e,a,l){l.d(a,{r:()=>o});var t=l(74848),r=l(16522),i=l(26316),m=l(35490);function o(e){let a,l,o,s,c,n,d=(0,r.c)(13);d[0]!==e?({ref:l,src:o,size:s,...a}=e,d[0]=e,d[1]=a,d[2]=l,d[3]=o,d[4]=s):(a=d[1],l=d[2],o=d[3],s=d[4]);let u=void 0===s?20:s;if(d[5]!==u||d[6]!==o){let e=new URL(o,i.fV.origin);e.searchParams.has("size")||e.searchParams.has("s")||e.searchParams.set("size",String(2*Number(u))),c=e.toString(),d[5]=u,d[6]=o,d[7]=c}else c=d[7];let p=c;return d[8]!==p||d[9]!==a||d[10]!==l||d[11]!==u?(n=(0,t.jsx)(m.A,{src:p,size:u,"data-testid":"github-avatar",...a,ref:l}),d[8]=p,d[9]=a,d[10]=l,d[11]=u,d[12]=n):n=d[12],n}o.displayName="GitHubAvatar"},69464(e,a,l){l.d(a,{A:()=>n});var t=l(74848),r=l(69538),i=l(33542),m=l(46249),o=l(4925),s=l(53181),c=l(74073);function n({model:e,isFeatured:a,href:l}){let d=l||(0,s.LH)(e),u="AI21 Labs"===e.publisher,p=e.publisherDisplayName??e.publisher,_=u?r.A["marketplace-logo--jamba-div"]:"",h=u?r.A["marketplace-logo--jamba-logo"]:"";return(0,t.jsxs)("div",{className:`position-relative border rounded-2 d-flex flex-1 ${r.A["marketplace-item"]} ${a?"flex-column flex-items-center tmp-p-4":"gap-3 tmp-p-3"}`,...(0,i.G)("marketplace-item"),children:[(0,t.jsx)("div",{className:`flex-shrink-0 rounded-3 overflow-hidden ${r.A["marketplace-logo"]} ${_}`,...(0,i.G)("logo"),children:(0,t.jsx)(c.K,{logoUrl:e.logo_url,darkModeIcon:e.dark_mode_icon,publisher:e.publisher,size:36,className:`${r.A["marketplace-model-avatar-icon"]} ${h} box-shadow-none color-fg-default`,...(0,i.G)("logo-image")})}),a?(0,t.jsxs)("div",{className:"d-flex flex-column flex-items-center height-full width-full text-center",...(0,i.G)("featured-item"),children:[(0,t.jsx)(m.A,{as:"h3",className:"tmp-mt-3 d-flex f4 lh-condensed",children:(0,t.jsx)("a",{href:d,className:`fgColor-default line-clamp-1 ${r.A["marketplace-item-link"]}`,tabIndex:0,children:e.friendly_name})}),(0,t.jsxs)("p",{className:"mt-2 mb-auto text-small fgColor-muted line-clamp-2",children:["by ",p]}),e.summary&&(0,t.jsx)("p",{className:"mt-2 text-small fgColor-muted line-clamp-2",children:e.summary}),(0,t.jsx)(o.A,{variant:"secondary",size:"large",className:"ModelItem-module__modelItemLabel__wcvYm",...(0,i.G)("listing-type-label"),children:"Model"})]}):(0,t.jsxs)("div",{className:"flex-1",...(0,i.G)("non-featured-item"),children:[(0,t.jsxs)("div",{className:"d-flex flex-justify-between flex-items-start gap-3",children:[(0,t.jsx)("h3",{className:"d-flex f4 lh-condensed",children:(0,t.jsx)("a",{href:d,className:`${r.A["marketplace-item-link"]} line-clamp-1`,children:e.friendly_name})}),(0,t.jsx)(o.A,{variant:"secondary",children:"Model"})]}),e.summary&&(0,t.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:e.summary}),!e.summary&&(0,t.jsx)("p",{className:"mt-1 mb-0 text-small fgColor-muted line-clamp-2",children:p})]})]})}n.displayName="ModelItem"},37624(e,a,l){l.d(a,{A:()=>n});var t=l(74848),r=l(16522),i=l(36007),m=l(56133),o=l(7771),s=l(46251);let c="SidebarHeading-module__Heading__qBx7v";function n(e){let a,l=(0,r.c)(5),{title:n,count:d,link:u,htmlTag:p}=e,_=void 0===p?"h3":p;return l[0]!==d||l[1]!==_||l[2]!==u||l[3]!==n?(a=(0,t.jsx)(t.Fragment,{children:u?(0,t.jsx)(i.A,{as:_,weight:"semibold",className:c,children:(0,t.jsxs)(m.A,{href:u,className:"Link--primary no-underline d-flex flex-items-center",children:[n,d?(0,t.jsx)(o.A,{className:"ml-1",children:d}):null]})}):(0,t.jsxs)(s.B,{gap:"none",align:"center",direction:"horizontal",children:[(0,t.jsx)(i.A,{as:_,weight:"semibold",className:c,children:n}),d?(0,t.jsx)(o.A,{className:"ml-1",children:d}):null]})}),l[0]=d,l[1]=_,l[2]=u,l[3]=n,l[4]=a):a=l[4],a}n.displayName="SidebarHeading"},16497(e,a,l){l.d(a,{$6:()=>o,JR:()=>i,Jg:()=>c});var t=l(74848),r=l(16522);let i=n(l(36007).A),m=e=>{let a,l,i,m=(0,r.c)(6);return m[0]!==e?({ref:l,...a}=e,m[0]=e,m[1]=a,m[2]=l):(a=m[1],l=m[2]),m[3]!==a||m[4]!==l?(i=(0,t.jsx)("div",{...a,ref:l}),m[3]=a,m[4]=l,m[5]=i):i=m[5],i};m.displayName="Div";let o=n(m),s=e=>{let a,l,i,m=(0,r.c)(6);return m[0]!==e?({ref:l,...a}=e,m[0]=e,m[1]=a,m[2]=l):(a=m[1],l=m[2]),m[3]!==a||m[4]!==l?(i=(0,t.jsx)("bdi",{...a,ref:l}),m[3]=a,m[4]=l,m[5]=i):i=m[5],i};s.displayName="Bdi";let c=n(s);function n(e){let a=a=>{let l,i,m,o,s=(0,r.c)(8);s[0]!==a?({html:l,...i}=a,s[0]=a,s[1]=l,s[2]=i):(l=s[1],i=s[2]);let c=i;return s[3]!==l?(m=l?{__html:l}:void 0,s[3]=l,s[4]=m):m=s[4],s[5]!==c||s[6]!==m?(o=(0,t.jsx)(e,{...c,dangerouslySetInnerHTML:m}),s[5]=c,s[6]=m,s[7]=o):o=s[7],o};return a.displayName=`SafeHTML${e.displayName||e.name}`,a}},19519(e,a,l){l.d(a,{V:()=>c});var t=l(96540);let r={type:"browser",isBrowser:!0,isServer:!1},i={type:"server",isBrowser:!1,isServer:!0};function m(){return()=>{}}function o(){return r}function s(){return i}function c(){return(0,t.useSyncExternalStore)(m,o,s)}},51581(e,a,l){l.d(a,{S:()=>s,s:()=>o});var t=l(16522),r=l(96540),i=l(66743),m=l(8470);function o(){let e,a,l=(0,t.c)(6),o=(0,r.use)(m.I);if(!o)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:s,category:c,metadata:n}=o;l[0]!==s||l[1]!==c||l[2]!==n?(e=(e,a,l)=>{let t={react:!0,app_name:s,category:c,...n};(0,i.BI)(e,{...t,...void 0===l?{}:l,target:a})},l[0]=s,l[1]=c,l[2]=n,l[3]=e):e=l[3];let d=e;return l[4]!==d?(a={sendAnalyticsEvent:d},l[4]=d,l[5]=a):a=l[5],a}function s(){let e,a,l=(0,t.c)(4),{sendAnalyticsEvent:r}=o();l[0]!==r?(e=e=>{r("analytics.click",void 0,void 0===e?{}:e)},l[0]=r,l[1]=e):e=l[1];let i=e;return l[2]!==i?(a={sendClickAnalyticsEvent:i},l[2]=i,l[3]=a):a=l[3],a}},19129(e,a,l){l.d(a,{A:()=>i});var t=l(16522),r=l(96540);function i(){let e,a,l,i=(0,t.c)(3),m=(0,r.useRef)(!1);i[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>m.current,i[0]=e):e=i[0];let o=e;return i[1]===Symbol.for("react.memo_cache_sentinel")?(a=()=>(m.current=!0,()=>{m.current=!1}),l=[],i[1]=a,i[2]=l):(a=i[1],l=i[2]),(0,r.useLayoutEffect)(a,l),o}}}]); //# sourceMappingURL=47504-8e61ced25e654101-93412c9052c16bc0.js.map