PageSourceSearch

https://www.vrcarena.com/chunk-T6TA46NB.js

js vrcarena.com collected 2026-09-25 18:44:31 UTC 19,699 bytes, 2 lines download raw bytes

1import{a as fe,c as ye}from"/chunk-EVPAYQCJ.js";import{a as ke}from"/chunk-VIYYDAOQ.js";import{a as Le}from"/chunk-44FGF7YE.js";import{a as w}from"/chunk-KUHXCVZF.js";import{a as Oe}from"/chunk-2JRPE7OL.js";import{D as Ie,R as Te,aa as Fe,l as Ce,o as Ee}from"/chunk-3YWFZMXZ.js";import{a as K}from"/chunk-L7PXYIII.js";import{a as ce}from"/chunk-TM6DYFS6.js";import{a as Ne}from"/chunk-ACS4HWJL.js";import{a as Pe}from"/chunk-DX5F4XHS.js";import{a as ve}from"/chunk-Z3F5ECKJ.js";import{a as Ae}from"/chunk-EHHVT2MU.js";import{a as pr}from"/chunk-XQ76VHWZ.js";import{a as cr}from"/chunk-XPTQTQ2F.js";import{a as Re}from"/chunk-YMQIITMO.js";import{c as Se,f as xe}from"/chunk-VVA3CKV3.js";import{a as $}from"/chunk-QTEQ3FHQ.js";import{a as be}from"/chunk-XVQ3NSRE.js";import{g as le,r as me,s as G,t as A,u as de}from"/chunk-LINUBNHF.js";import{a as se}from"/chunk-5AGQLMAL.js";import{a as we}from"/chunk-7KU44OLK.js";import{a as ue}from"/chunk-LUDSDHAJ.js";import{fa as ge}from"/chunk-L7SHSVHB.js";import{I as pe}from"/chunk-3LLBLOCC.js";import{a as C,b as N}from"/chunk-SYG5O24C.js";import{a as he}from"/chunk-5GD3LVE2.js";import{g as ne}from"/chunk-BSZCSHZH.js";import{c as Y}from"/chunk-H23NAM2G.js";import{a as R}from"/chunk-I5ZZMLX4.js";import{n as fr,v as E}from"/chunk-564LLHND.js";import{Ca as h,Ce as W,De as ee,Ke as re,Mg as ur,Na as M,Oe as V,Pe as te,Td as J,Wd as U,Xd as z,Yf as _,_d as j,ef as oe,kf as X,qg as ae,xg as ie}from"/chunk-4G6JPET5.js";import{a as dr}from"/chunk-HGNHJIRX.js";import{a as nr}from"/chunk-4BU5B7HZ.js";import{a as lr}from"/chunk-A5ITXTPT.js";import{a as mr}from"/chunk-XV4HHT5U.js";import{S as sr,a as ir}from"/chunk-RGYMHTZY.js";import{a as f}from"/chunk-PSDBGZLN.js";import{a as L}from"/chunk-P4BZ4TJK.js";import{c as ar,f as n}from"/chunk-EMJN6GDS.js";var $e=ar(D=>{"use strict";"use client";var br=ir();Object.defineProperty(D,"__esModule",{value:!0});D.default=void 0;var gr=br(sr()),yr=f(),rt=D.default=(0,gr.default)((0,yr.jsx)("path",{d:"M14 10H3v2h11zm0-4H3v2h11zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2zM3 16h7v-2H3z"}),"PlaylistAdd")});var k=n(L());var We=n(fr()),er=n(cr());var Ve=n(ur()),H=n(f()),vr=h({root:{perspective:"1000px","& img":{width:"100%",height:"100%"}},spin:{animation:"20s $spinThumbnail infinite linear",transition:"all 100ms"},pauseOnHover:{"&:hover":{animation:"none"}},"@keyframes spinThumbnail":{from:{transform:"rotateY(0deg)"},to:{transform:"rotateY(360deg)"}},full:{width:"300px",height:"300px"},small:{width:"200px",height:"200px"},tiny:{width:"100px",height:"100px"},micro:{width:"75px",height:"75px"}}),hr=({url:e,className:t="",spin:o=!1,pauseOnHover:i=!0,size:s="full",alt:u=void 0})=>{let d=vr();return(0,H.jsx)("div",{className:`${d.root} ${d[s]} ${t}`,children:(0,H.jsx)("img",{src:e||Oe,width:W,height:ee,alt:u!==void 0?u:"Thumbnail for asset",className:(0,Ve.default)({[d.spin]:o,[d.pauseOnHover]:i})})})},_e=hr;var Ge=n(f()),Ye=({url:e,className:t=""})=>(0,Ge.jsx)("iframe",{allow:"autoplay; fullscreen; vr",src:e,className:t,title:"Sketchfab embed"});var Q=n(L());var Ke=n($e());var F=n(L());var Qe=n(dr());var De="/screenshot-Z22OXEKR.webp";var l=n(f()),Ze=h({controls:{width:"100%",margin:"0.5rem 0",display:"flex"},input:{width:"100%",marginRight:"0.25rem"},message:{fontSize:"125%",textAlign:"center",marginBottom:"0.5rem"}}),Sr=["avtr_c38a1615-5bf5-42b4-84eb-a8b6c37cbd11"],xr=({assetId:e})=>{if(!e)throw new Error("Asset ID not provided");let[t,o,i,s]=ve("publicavatarsubmissions"),[u,d]=(0,F.useState)(""),[p,x]=(0,F.useState)(!1),[y,a]=(0,F.useState)(!1),v=Ze(),g=Pe(()=>{x(!1),a(!1)},re),tr=async()=>{try{let P=J(u);if(!P){x(!0),g();return}if(Sr.includes(P)){await new Promise(or=>setTimeout(()=>or(void 0),1e3)),a(!0),g();return}await s({asset:e,vrchatavatarid:P}),d(""),x(!1)}catch(P){console.error(P),Y(P)}};return(0,l.jsxs)(l.Fragment,{children:[p?(0,l.jsx)(C,{children:"That avatar URL or ID looks invalid. Please make sure it is correct"}):null,t?(0,l.jsx)(N,{message:"Sending..."}):o||y?(0,l.jsx)(he,{children:"The avatar has been sent to our team! Would you like to add another?"}):i!==null?(0,l.jsx)(C,{errorCode:i,children:"Failed to send. This shouldn't happen. Please come back later to try again."}):null,(0,l.jsxs)("div",{className:v.controls,children:[(0,l.jsx)(ge,{label:"Enter the URL of the avatar or the avatar ID",placeholder:"eg. avtr_69f1893b-2d7c-4d19-beb4-45a3c17ddd0f",value:u,onChange:P=>d(P.target.value),isDisabled:t,size:"small",className:v.input,fullWidth:!0})," ",(0,l.jsx)(E,{isDisabled:t,onClick:()=>tr(),children:"Send"})]}),(0,l.jsx)("img",{src:De,width:"25%"})]})},ze=({assetId:e,isExpanded:t=!1})=>{let[o,i]=(0,F.useState)(t),s=Ze();return(0,l.jsx)(l.Fragment,{children:o?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("br",{}),(0,l.jsx)("br",{}),(0,l.jsx)(xr,{assetId:e})]}):(0,l.jsx)(ue,{children:(0,l.jsxs)("span",{children:[(0,l.jsx)(E,{icon:(0,l.jsx)(Qe.default,{}),switchIconSide:!0,onClick:()=>i(!0),size:"large",children:"Add Your Avatar"}),(0,l.jsx)("br",{}),(0,l.jsx)(we,{children:"No login required!"})]})})})};var I=n(f()),wr=h({root:{margin:"1rem 0.5rem 0.5rem",minHeight:"200px"},cardActionArea:{height:"100%","& a":{display:"flex",alignItems:"center",justifyContent:"center",padding:"0 3rem",height:"100%",color:"inherit"}},text:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",fontSize:"125%"},subtext:{marginTop:"1rem"}}),Cr=({icon:e,label:t,onClick:o=void 0,url:i=void 0})=>{let s=wr();return(0,I.jsx)(Se,{className:s.root,children:(0,I.jsx)(xe,{onClick:o,className:s.cardActionArea,children:(0,I.jsx)(_,{to:i,children:(0,I.jsxs)("span",{className:s.text,children:[e,(0,I.jsx)("span",{className:s.subtext,children:t})]})})})})},Xe=Cr;
1var S=n(f()),Pr=h({avatars:{marginTop:"0.5rem",display:"flex",flexWrap:"wrap"}}),He=({avatarIds:e,assetId:t,showAddButton:o})=>{let i=(0,Q.useCallback)(a=>e.length===0?null:a.from("vrchatavatars").select("*").or(e.map(v=>`id.eq.${v}`).join(",")),[e.join(",")]),[s,u,d]=be(i,"vrchat-avatars"),p=Pr(),[x,y]=(0,Q.useState)(!1);return e?s||!d?(0,S.jsx)(N,{}):u!==null?(0,S.jsx)(C,{errorCode:u,children:"Failed to get avatars"}):(0,S.jsxs)("div",{children:[(0,S.jsxs)("div",{className:p.avatars,children:[e.map(a=>{let v=d.find(g=>g.id===a);return(0,S.jsx)(Te,{avatarId:a,avatarData:v?v.avatar:void 0,thumbnailUrl:v?v.thumbnailurl:void 0},a)}),o&&t?(0,S.jsx)(Xe,{icon:(0,S.jsx)(Ke.default,{}),label:"Add Avatar",onClick:()=>y(a=>!a)}):null]}),x&&t?(0,S.jsx)(ze,{assetId:t,isExpanded:!0}):null]}):(0,S.jsx)(C,{children:"No VRChat avatars have been set"})};var q=n(L());var Me=n(mr()),Je=n(lr()),Ue=n(pr());var qe=n(nr());var O=n(f()),Er=h(e=>({root:{outline:t=>`1px solid ${t.color||e.palette.background.paper}`,borderRadius:e.shape.borderRadius,overflow:"hidden",display:"flex",alignItems:"normal"},edge:{padding:"0.5rem",background:t=>t.color||e.palette.background.paper,display:"flex",alignItems:"center","& svg":{width:"2rem",height:"2rem",fill:e.palette.common.white}},content:{overflow:"hidden",padding:"0.5rem"}})),Ir=e=>{let t=Er(e);return(0,O.jsxs)("div",{className:`${t.root} ${e.className}`,children:[(0,O.jsx)("div",{className:t.edge,children:e.icon}),(0,O.jsx)("div",{className:t.content,children:e.children})]})},Z=Ir;var b=n(f()),Rr=h({title:{fontWeight:"bold",display:"flex",alignItems:"center","& svg":{marginRight:"0.25rem"}},desc:{padding:"0.25rem"},buttonWrapper:{marginTop:"0.25rem","& > div:first-child":{marginBottom:"0.25rem",fontWeight:"bold"}}}),Nr=({discordServerId:e,discordServerData:t,analyticsCategoryName:o=void 0,className:i=void 0})=>{let s=Rr();return(0,b.jsxs)(Z,{icon:(0,b.jsx)(oe,{}),color:te,className:i,children:[(0,b.jsxs)("div",{className:s.title,children:[(0,b.jsx)(qe.default,{})," Discord Server Required"]}),(0,b.jsxs)("div",{className:s.desc,children:['To visit this URL you must be a member of the Discord server "',t?.name||"(unnamed)",'"',(0,b.jsx)("br",{}),t?.requirespatreon&&t.patreonurl?(0,b.jsxs)("div",{className:s.buttonWrapper,children:[(0,b.jsx)("div",{children:"You must be a Patreon: "}),(0,b.jsx)("a",{href:t.patreonurl,target:"_blank",rel:"noopener noreferrer",onClick:()=>o&&R(o,"Click join Patreon link for Discord server",e),children:"Join Here"})]}):t?.inviteurl?(0,b.jsxs)("div",{className:s.buttonWrapper,children:[(0,b.jsx)("div",{children:"You must accept this invite: "}),(0,b.jsx)(E,{size:"small",color:"secondary",url:t.inviteurl,onClick:o?()=>R(o,"Click join Discord server link",e):void 0,children:"Join Server"})]}):null]})]})},Be=Nr;var m=n(f()),Tr=h({root:{height:"100%",display:"flex",alignItems:"center",flexWrap:"wrap"},title:{width:"100%",display:"flex",alignItems:"center",color:V,"& svg":{fill:V,width:"1rem",he
1ight:"1rem",marginRight:"0.5rem"},paddingLeft:"0.25rem",userSelect:"none"},prefabs:{marginTop:"0.5rem"},discordNotice:{marginTop:"0.5rem"},vrcFuryReadyIcon:{fontSize:"50%",marginLeft:"0.25rem"},clickable:{cursor:"pointer"}}),Fr="21def-vrcfury",Or=({prefabs:e,analyticsCategory:t=void 0,isVrcFuryReady:o=null})=>{let[i,s]=(0,q.useState)(!1),[u,d]=(0,q.useState)(null),p=Tr(),x=pe(),y=async()=>{try{if(!e)return;let a=e.filter(g=>g.discordServerId!==void 0).map(g=>g.discordServerId||"");if(!a.length)return console.warn("Could not populate Discord server data: IDs empty",{prefabs:e,ids:a}),null;let v=await ie(x,"discordservers",a);d(v)}catch(a){console.error(a),Y(a)}};return(0,m.jsx)(Z,{color:V,icon:(0,m.jsx)(X,{}),children:(0,m.jsxs)("div",{className:p.root,children:[o?(0,m.jsxs)("div",{className:p.title,children:["VRCFury Ready"," ",(0,m.jsx)(ae,{title:"The asset (hopefully) has a Unity prefab with VRCFury components.",children:(0,m.jsx)(Ue.default,{className:p.vrcFuryReadyIcon})})]}):null,e?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)("div",{className:`${p.title} ${p.clickable}`,onClick:()=>{u===null&&y(),s(a=>!a),t&&i===!1&&R(t,"Expand VRCFury prefabs box")},children:[e.length," third-party VRCFury prefab",e.length>1?"s":""," ",i?(0,m.jsx)(Je.default,{}):(0,m.jsx)(Me.default,{})]}),i?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(_,{to:M.replace(":assetId",Fr),children:"Click here to learn about VRCFury"}),(0,m.jsx)("br",{}),(0,m.jsx)("div",{className:p.prefabs,children:e.map(a=>(0,m.jsxs)("div",{children:[(0,m.jsxs)(E,{url:a.url,icon:(0,m.jsx)(X,{}),color:"secondary",onClick:t?()=>{R(t,"Click view VRCFury prefab button",{url:a.url})}:void 0,children:["View"," ",U(a.url)?"Discord":"website"," ","prefab"]}),a.discordServerId&&(0,m.jsx)(Be,{discordServerId:a.discordServerId,discordServerData:u?.find(v=>v.id===a.discordServerId),className:p.discordNotice})]},a.url))})]}):null]}):null]})})},je=Or;var r=n(f()),B=h({output:{width:"100%"},cols:{display:"flex",marginBottom:"2rem"},title:{fontSize:"200%",marginBottom:"1rem"},thumbnail:{textAlign:"center"},label:{fontWeight:"bold",fontSize:"125%"},field:{display:"flex",alignItems:"center",justifyContent:"center","& > *":{padding:"0.5rem"},marginBottom:"0.5rem","&:nth-child(odd)":{background:"rgba(0, 0, 0, 0.1)"}},controls:{textAlign:"center"},commentsField:{width:"100%"},pedestalVideo:{width:"100%"},explanation:{display:"flex","& > *":{width:"50%"}},files:{display:"flex","& img":{maxHeight:"150px"}},linkedAssets:{display:"flex",flexWrap:"wrap","& > *":{marginRight:"0.5rem"}},changed:{"&&":{backgroundColor:"rgba(255, 255, 0, 0.2)"}},divider:{display:"flex",alignItems:"center",justifyContent:"center"}});var rr=e=>Array.isArray(e)?e.map(rr).join(", "):e===!0?"Yes":e===!1?"No":e===null?T:e instanceof Date?(0,er.default)(e).toString():e&&typeof e=="string"?e:e&&!isNaN(e)?e.toString():k.default.isValidElement(e)?e:T;function c({value:e}){let t=rr(e);return(0,r.jsx)("div",{children:t===T?(0,r.jsx)(w,{children:t}):t})}var kr=100,T="(no value)";function Lr({fields:e}){let t=B();return(0,r.jsx)("div",{children:e.thumbnailurl?(0,r.jsx)("div",{className:t.thumbnail,children:(0,r.jsx)(_e,{url:e.thumbnailurl})}):(0,r.jsx)(w,{children:"(no thumbnail)"})})}function Vr({fields:e,isDescriptionExpanded:t}){return(0,r.jsx)("div",{children:(0,r.jsx)(c,{value:e.description?(0,r.jsx)(ce,{source:t?e.description:e.description.slice(0,kr)}):T})})}function _r({oldFields:e,newFields:t}){return(0,r.jsx)("div",{children:(0,r.jsx)(ke,{oldTags:e.tags,newTags:t.tags})})}var Yr=({id:e})=>{let[t,o,i]=K("getauthorsforlist",e||!1,{queryName:"short-asset-diff-author"});return t||!i?(0,r.jsx)(r.Fragment,{children:"Loading..."}):o!==null?(0,r.jsxs)(r.Fragment,{children:["Failed to load author ",e," (code ",o,")"]}):(0,r.jsx)(Re,{author:i})};function Gr({fields:e}){return(0,r.jsx)("div",{children:e.author?(0,r.jsx)(Yr,{id:e.author}):(0,r.jsx)(w,{children:"(no author)"})})}var $r=({id:e,idx:t})=>{let[o,i,s]=K("species",e||!1,{queryName:"short-asset-diff-species"});return o||!s?(0,r.jsx)(r.Fragment,{children:"Loading..."}):i!==null?(0,r.jsxs)(r.Fragment,{children:["Failed to load species ",e," (code ",i,")"]}):(0,r.jsxs)(r.Fragment,{children:[t!==0?", ":"",s.singularname]})};function Dr({fields:e}){return(0,r.jsx)(c,{value:(0,r.jsx)(r.Fragment,{children:e.species&&e.species.length?e.species.map((t,o)=>(0,r.jsx)($r,{id:t,idx:o},t)):T})})}function Qr({fields:e}){return(0,r.jsx)("div",{children:e.relations&&e.relations.length?(0,r.jsx)(Ee,{relations:e.relations}):(0,r.jsx)(w,{children:"(no relations)"})})}function Zr({fields:e}){return(0,r.jsx)("div",{children:e.discordserver?e.discordserverdata?(0,r.jsx)(Ne,{discordServer:e.discordserverdata}):e.discordserver:(0,r.jsx)(w,{children:"(no Discord Server)"})})}function zr({fields:e}){return(0,r.jsxs)("div",{children:[(0,r.jsx)(c,{value:e.sketchfabembedurl}),e.sketchfabembedurl&&(0,r.jsx)(Ye,{url:e.sketchfabembedurl})]})}function Xr({fields:e}){if(!e.attachmentids)throw new Error("IDs is not even an array");
1let[t,o,i]=Ae("attachments",e.attachmentids.length?e.attachmentids:!1,{queryName:"get-attachments-output"});if(!e.attachmentids.length)return(0,r.jsx)($,{children:"No attachment IDs"});if(t)return(0,r.jsx)(N,{message:"Loading attachments..."});if(o!==null)return(0,r.jsx)(C,{errorCode:o,children:"Failed to load attachments"});if(i===null)return null;let s=e.attachmentids;return s.length?(0,r.jsx)("div",{children:s.map(u=>{let d=i.find(p=>p.id===u);return d?(0,r.jsxs)("div",{children:[(0,r.jsx)(fe,{image:{url:d.url}}),(0,r.jsx)(ye,{attachment:d,includeMeta:!0,includeParents:!1})]},u):(0,r.jsxs)(C,{children:["No attachment found with ID ",u]})})}):(0,r.jsx)($,{children:"No attachments"})}var Kr=({extraSources:e})=>(0,r.jsx)(r.Fragment,{children:e&&e.length?e.map(t=>(0,r.jsxs)("div",{children:[t.url,(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),(0,r.jsx)(Ce,{sourceInfo:t}),(0,r.jsx)("br",{}),(0,r.jsx)("br",{})]})):(0,r.jsx)(w,{children:"(no extra sources)"})});function Hr({fields:e}){return(0,r.jsx)("div",{children:e.vrchatclonableavatarids&&e.vrchatclonableavatarids.length?(0,r.jsx)(He,{avatarIds:e.vrchatclonableavatarids}):(0,r.jsx)(w,{children:"(no clonable avatars)"})})}var qr={assets:{thumbnailurl:{label:"Thumbnail",renderer:({fields:e})=>(0,r.jsx)(Lr,{fields:e})},title:{label:"Title",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.title})},author:{label:"Author",renderer:({fields:e})=>(0,r.jsx)(Gr,{fields:e})},category:{label:"Category",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.category&&se(e.category).nameSingular})},species:{label:"Species",renderer:({fields:e})=>(0,r.jsx)(Dr,{fields:e})},price:{label:"Price",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.price})},pricecurrency:{label:"Price Currency",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.pricecurrency})},sourceurl:{label:"Source URL",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.sourceurl})},discordserver:{label:"Discord Server",renderer:({fields:e})=>(0,r.jsx)(Zr,{fields:e})},tags:{label:"Tags",renderers:({oldFields:e,newFields:t})=>(0,r.jsx)(_r,{oldFields:e,newFields:t})},isadult:{label:"Adult (NSFW)",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.isadult})},description:{label:"Description",renderer:({fields:e})=>(0,r.jsx)(Vr,{fields:e,isDescriptionExpanded:!0})},vrchatclonableavatarids:{label:"VRChat Clonable Avatar IDs",renderer:({fields:e})=>(0,r.jsx)(Hr,{fields:e})},relations:{label:"Relations",renderer:({fields:e})=>(0,r.jsx)(Qr,{fields:e})},sketchfabembedurl:{label:"Sketchfab",renderer:({fields:e})=>(0,r.jsx)(zr,{fields:e})},shortdescription:{label:"Short Description (for featured assets)",renderer:({fields:e})=>(0,r.jsx)(c,{value:e.shortdescription})},extradata:{label:"Extra Data",renderer:({fields:e})=>(0,r.jsx)("div",{children:e.extradata&&e.extradata.vrcfury&&e.extradata.vrcfury.prefabs&&e.extradata.vrcfury.prefabs.length?(0,r.jsx)(je,{prefabs:e.extradata.vrcfury.prefabs}):(0,r.jsx)(w,{children:T})})},attachmentids:{label:"Attachments",renderer:({fields:e})=>(0,r.jsx)(Xr,{fields:e})},extrasources:{label:"Extra Sources",renderer:({fields:e})=>(0,r.jsx)(Kr,{extraSources:e.extrasources})},vccurl:{label:"VCC URL",type:"url"},translations:{label:"Translations",renderer:({fields:e})=>e?.translations!==null&&Object.keys(e.translations).length>0?(0,r.jsx)("div",{children:Object.entries(e.translations).map(([t,o])=>(0,r.jsx)(Fe,{locale:t,fields:o},t))}):(0,r.jsx)($,{children:"No translations"})}},authors:Ie},Br=(e,t)=>{switch(t){case"text":return({fields:o})=>(0,r.jsx)(c,{value:o[e]});case"textMarkdown":return({fields:o})=>(0,r.jsx)(c,{value:o[e]});case"multichoice":return({fields:o,rendererInfo:i})=>(0,r.jsx)(c,{value:o[e]?o[e].map(s=>{let u=i.options.find(({value:d})=>d===s);return u?u.label:(console.warn(`No match for field ${e} with ${s}`),"(no label found)")}):"(no options)"});case"checkbox":return({fields:o})=>(0,r.jsx)(c,{value:`${o[e]?"True":"False"}`});case"date":return({fields:o})=>(0,r.jsx)(c,{value:o[e]?j(o[e]):null});case"imageUpload":return({fields:o})=>(0,r.jsx)(c,{value:(0,r.jsx)("img",{src:o[e]})});case"singlechoice":return({fields:o,rendererInfo:i})=>(0,r.jsx)(c,{value:o[e]&&i.options?i.options.find(({value:s})=>s===o[e]).label:null});case"url":return({fields:o})=>(0,r.jsx)(c,{value:o[e]?`URL: ${o[e]}`:(0,r.jsx)(w,{children:"(no URL)"})});case"email":return({fields:o})=>(0,r.jsx)(c,{value:`Email: ${o[e]}`});case"item":return({fields:o})=>(0,r.jsx)(c,{value:`ID: ${o[e]}`});default:return({fields:o})=>(0,r.jsx)(Le,{children:o[e]})}},Mr=()=>{let e=B();return(0,r.jsx)("div",{className:e.divider,children:(0,r.jsx)(We.default,{})})},aa=({type:e,oldFields:t={},newFields:o,onlyNewFields:i,extraData:s={}})=>{let u=B(),d=Object.keys(o);
1if(!d.length)return(0,r.jsx)(ne,{children:"This diff contains no fields"});let p=qr[e];if(!p)throw new Error(`Cannot use type "${e}" for renderers - not supported`);return(0,r.jsxs)(de,{noMinWidth:!0,children:[(0,r.jsx)(me,{children:(0,r.jsxs)(G,{children:[(0,r.jsx)(A,{width:"15%",children:"Field"}),(0,r.jsx)(A,{width:"40%",children:"Before"}),(0,r.jsx)(A,{width:"5%"}),(0,r.jsx)(A,{width:"40%",children:"After"})]})}),(0,r.jsx)(le,{children:d.map(x=>{let y=x.toLowerCase(),a=Array.isArray(p)?p.find(g=>g.name===y):p[y];if(x==="id")throw new Error("Cannot show diff for ID");if(a?.renderers){let g=a?.renderers;return(0,r.jsxs)(G,{children:[(0,r.jsx)(A,{label:"Field",children:a?.label||z(y)}),(0,r.jsx)(A,{label:"Diff",colSpan:2,children:k.default.cloneElement(g({oldFields:t,newFields:o,rendererInfo:a}))})]})}let v=a?.renderer||Br(y,a?.type);return(0,r.jsxs)(G,{children:[(0,r.jsx)(A,{label:"Field",children:a?.label||z(y)}),(0,r.jsx)(A,{label:"Before",children:k.default.cloneElement(v({fields:{...t},rendererInfo:a}))}),(0,r.jsx)(A,{children:(0,r.jsx)(Mr,{})}),(0,r.jsx)(A,{label:"After",children:k.default.cloneElement(v({fields:{...o,...s},rendererInfo:a}))})]})})})]})};export{$e as a,Z as b,Be as c,je as d,ze as e,He as f,aa as g};
2//# sourceMappingURL=/chunk-T6TA46NB.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.