1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{t}from"./react-C21x__mS.js";import{a as n,c as r}from"./react-intl-DlKP8ATg.js";import{t as i}from"./jsx-runtime-BdxMnOeJ.js";import{r as a}from"./environment-DPwoYpO1.js";import{t as o}from"./classnames-CfLRLWYq.js";import{t as s}from"./icon-DXRmLOy2.js";import{t as c}from"./html-BBhxjmJq.js";import{t as l}from"./group-CJZJ7KDg.js";import{t as u}from"./block-Dj44I8vY.js";import{t as d}from"./volume_off-D61wX6FU.js";var f=e(o());t();var p=i(),m=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,...e,children:[(0,p.jsx)(`path`,{fill:`url(#badgeGradient)`,d:`M8 .666c.301 0 .595.094.839.268l.101.079.006.005c1.092.956 2.603 1.649 3.721 1.649A1.333 1.333 0 0 1 14 4v4.667c0 1.842-.652 3.259-1.702 4.336-1.032 1.058-2.417 1.76-3.852 2.26l-.005.002a1.334 1.334 0 0 1-.879-.01c-1.437-.496-2.825-1.195-3.858-2.253C2.654 11.926 2 10.509 2 8.667V4a1.334 1.334 0 0 1 1.334-1.333c1.118 0 2.634-.7 3.72-1.65l.007-.004C7.322.789 7.656.666 8 .666Z`}),(0,p.jsx)(`path`,{stroke:`#fff`,fill:`none`,strokeLinecap:`round`,strokeLinejoin:`round`,d:`M5 10.998A3.053 3.053 0 0 1 6.173 9.57a3.333 3.333 0 0 1 1.828-.54m0 0c.653 0 1.29.189 1.826.54.537.353.946.852 1.173 1.43M8 9.03c1.179 0 2.133-.903 2.133-2.015C10.133 5.902 9.178 5 8 5c-1.179 0-2.134.902-2.134 2.015 0 1.112.956 2.015 2.135 2.015Z`}),(0,p.jsx)(`defs`,{children:(0,p.jsxs)(`linearGradient`,{id:`badgeGradient`,x1:.5,x2:14,y1:2.5,y2:15,gradientUnits:`userSpaceOnUse`,children:[(0,p.jsx)(`stop`,{stopColor:`#E17100`}),(0,p.jsx)(`stop`,{offset:1,stopColor:`#F0B100`})]})})]}),h=e=>(0,p.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`black`,...e,children:(0,p.jsx)(`path`,{d:`M13.2502 8.00029C13.2502 5.10089 10.8996 2.75044 8.00024 2.75029C5.10075 2.75029 2.75024 5.10079 2.75024 8.00029C2.7504 10.8997 5.10084 13.2503 8.00024 13.2503C10.8995 13.2501 13.2501 10.8996 13.2502 8.00029ZM7.41663 4.50029C7.41663 4.17812 7.67808 3.91667 8.00024 3.91667C8.32228 3.91683 8.58301 4.17822 8.58301 4.50029V7.63884L10.5945 8.64458C10.8825 8.78865 10.999 9.13922 10.8551 9.42729C10.711 9.71541 10.3605 9.83276 10.0724 9.68877L7.73877 8.52153C7.54143 8.4227 7.41673 8.221 7.41663 8.00029V4.50029ZM14.4166 8.00029C14.4165 11.5439 11.5438 14.4165 8.00024 14.4167C4.45651 14.4167 1.58316 11.544 1.58301 8.00029C1.58301 4.45646 4.45642 1.58305 8.00024 1.58305C11.5439 1.58321 14.4166 4.45656 14.4166 8.00029Z`})}),g=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,...e,children:(0,p.jsx)(`path`,{fill:`currentColor`,d:`M7.467 7.266 11.533 3.2a.586.586 0 0 1 .85-.001.585.585 0 0 1 0 .851L8.317 8.116zm1.416 1.417 3.5-3.5a.586.586 0 0 1 .85 0 .586.586 0 0 1 0 .85l-3.5 3.5zM3.35 12.267Q2 10.917 1.983 9.017q-.015-1.9 1.334-3.25L5.2 3.882l.883.9q.135.133.25.283.117.15.15.35l2.5-2.5a.586.586 0 0 1 .85 0 .586.586 0 0 1 0 .85L6.8 6.8l-.75.766.15.15q.65.65.642 1.55a2.15 2.15 0 0 1-.659 1.55l-.416.417-.85-.85.416-.417a.98.98 0 0 0 .292-.7.94.94 0 0 0-.276-.705l-.582-.578a.586.586 0 0 1 0-.85l.433-.417a.8.8 0 0 0 .233-.57.77.77 0 0 0-.233-.563L4.15 6.616a3.2 3.2 0 0 0-.975 2.409A3.37 3.37 0 0 0 4.2 11.433q1 1 2.387 1t2.38-1L12.68 7.72a.583.583 0 0 1 .853-.002.586.586 0 0 1 0 .85l-3.716 3.7q-1.342 1.35-3.23 1.35t-3.237-1.35M11.2 15.2V14a2.7 2.7 0 0 0 1.983-.817A2.7 2.7 0 0 0 14 11.2h1.2q0 1.66-1.17 2.83T11.2 15.2M.8 4.8q0-1.66 1.17-2.83T4.8.8V2a2.7 2.7 0 0 0-1.983.816A2.7 2.7 0 0 0 2 4.8z`})}),_=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,viewBox:`0 0 16 16`,...e,children:[(0,p.jsx)(`path`,{fill:`url(#VerifiedGradient)`,d:`M8 .837a3.168 3.168 0 0 1 2.47 1.187 3.166 3.166 0 0 1 2.601.906 3.168 3.168 0 0 1 .905 2.6A3.167 3.167 0 0 1 15.164 8a3.172 3.172 0 0 1-1.188 2.47 3.167 3.167 0 0 1-.903 2.597 3.168 3.168 0 0 1-2.596.909 3.167 3.167 0 0 1-4.95.001 3.166 3.166 0 0 1-3.397-2.258 3.169 3.169 0 0 1-.107-1.24A3.168 3.168 0 0 1 .826 8a3.17 3.17 0 0 1 1.197-2.479 3.168 3.168 0 0 1 .91-2.593 3.166 3.166 0 0 1 2.596-.905A3.169 3.169 0 0 1 8 .837Z`}),(0,p.jsx)(`path`,{stroke:`#fff`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.333,d:`m6 8 1.333 1.333L10 6.667`}),(0,p.jsx)(`defs`,{children:(0,p.jsxs)(`linearGradient`,{id:`VerifiedGradient`,x1:7.99512,y1:.836914,x2:7.99512,y2:15.1689,gradientUnits:`userSpaceOnUse`,children:[(0,p.jsx)(`stop`,{stopColor:`#00BC7D`}),(0,p.jsx)(`stop`,{offset:1,stopColor:`#00BBA7`})]})})]}),v=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,viewBox:`0 -960 960 960`,width:24,...e,children:(0,p.jsx)(`path`,{d:`M160-360q-50 0-85-35t-35-85q0-50 35-85t85-35v-80q0-33 23.5-56.5T240-760h120q0-50 35-85t85-35q50 0 85 35t35 85h120q33 0 56.5 23.5T800-680v80q50 0 85 35t35 85q0 50-35 85t-85 35v160q0 33-23.5 56.5T720-120H240q-33 0-56.5-23.5T160-200v-160Zm242.5-97.5Q420-475 420-500t-17.5-42.5Q385-560 360-560t-42.5 17.5Q300-525 300-500t17.5 42.5Q335-440 360-440t42.5-17.5Zm240 0Q660-475 660-500t-17.5-42.5Q625-560 600-560t-42.5 17.5Q540-525 540-500t17.5 42.5Q575-440 600-440t42.5-17.5ZM320-280h320v-80H320v80Zm-80 80h480v-480H240v480Zm240-240Z`})}),y={badge:`_comp_badge_redesign__badge`,badgeWithoutIcon:`_comp_badge_redesign__badgeWithoutIcon`},b={badge:`_comp_badge__badge`,badgeWithoutIcon:`_comp_badge__badgeWithoutIcon`,content:`_comp_badge__content`,domain:`_comp_badge__domain`,default:`_comp_badge__default`,subtle:`_comp_badge__subtle`,accent:`_comp_badge__accent`,feature:`_comp_badge__feature`,inverted:`_comp_badge__inverted`,success:`_comp_badge__success`,warning:`_comp_badge__warning`,danger:`_comp_badge__danger`},x=({icon:e,variant:t=`default`,label:n,className:r,domain:i,roleId:o,...s})=>(0,p.jsxs)(`div`,{...s,className:(0,f.default)(b.badge,a()&&y.badge,!e&&[b.badgeWithoutIcon,y.badgeWithoutIcon],b[t],r),"data-account-role-id":o,children:[e,(0,p.jsxs)(`span`,{className:b.content,children:[n,i&&(0,p.jsxs)(`span`,{className:b.domain,children:[` `,i]})]})]}),S=({label:e,...t})=>(0,p.jsx)(x,{icon:(0,p.jsx)(m,{}),label:e??(0,p.jsx)(n,{id:`account.badges.admin`,defaultMessage:`Admin`}),...t}),C=({label:e,...t})=>(0,p.jsx)(x,{icon:(0,p.jsx)(l,{}),label:e??(0,p.jsx)(n,{id:`account.badges.group`,defaultMessage:`Group`}),...t}),w=e=>(0,p.jsx)(x,{icon:(0,p.jsx)(v,{}),label:(0,p.jsx)(n,{id:`account.badges.bot`,defaultMessage:`Automated`}),...e}),T=e=>(0,p.jsx)(x,{icon:(0,p.jsx)(g,{}),label:(0,p.jsx)(n,{id:`account.follows_you`,defaultMessage:`Follows you`}),...e}),E=e=>(0,p.jsx)(x,{variant:`warning`,icon:(0,p.jsx)(h,{}
1),label:(0,p.jsx)(n,{id:`account.pending`,defaultMessage:`Pending`}),...e}),D=({expiresAt:e,label:t,...i})=>{let a=r(),o=null;if(e){let t=new Date(e),n=t.getFullYear()===new Date().getFullYear();o=a.formatDate(t,{month:`short`,day:`numeric`,...n?{}:{year:`numeric`}})}return(0,p.jsx)(x,{icon:(0,p.jsx)(d,{}),variant:`inverted`,label:t??(o?(0,p.jsx)(n,{id:`account.badges.muted_until`,defaultMessage:`Muted until {until}`,values:{until:o}}):(0,p.jsx)(n,{id:`account.badges.muted`,defaultMessage:`Muted`})),...i})},O=({label:e,...t})=>(0,p.jsx)(x,{icon:(0,p.jsx)(u,{}),variant:`danger`,label:e??(0,p.jsx)(n,{id:`account.badges.blocked`,defaultMessage:`Blocked`}),...t}),k=(e,t,n)=>{if(e===`rel`&&n===`a`)return t===`me`?null:[e,t.split(` `).filter(e=>e!==`me`).join(` `)]},A=({link:e,className:t})=>(0,p.jsx)(x,{variant:`success`,icon:(0,p.jsx)(s,{id:`verified`,icon:_,noFill:!0}),label:(0,p.jsx)(c,{as:`span`,htmlString:e,onAttribute:k}),className:t});export{T as a,E as c,O as i,A as l,w as n,C as o,x as r,D as s,S as t,_ as u}; 2//# sourceMappingURL=badge-BVrMM_XF.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.