PageSourceSearch

https://textilevaluechain.in/_next/static/chunks/7233.7f1354cc1cc051f1.js

js textilevaluechain.in collected 2026-10-02 06:19:46 UTC 2,234 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7233],{27233:(e,a,l)=>{l.r(a),l.d(a,{RelationshipComponent:()=>m});var o=l(46383),t=l(28951),n=l(95155),s=l(94271),c=l(58647),i=l(84365),r=l(94537),u=l(12705),d=l(92825),p=l(32532),v=l(12115),h={depth:0},m=e=>{var a,l,m;let{className:b,data:{relationTo:_,value:g},nodeKey:f}=e;if("object"==typeof g)throw Error("Relationship value should be a string or number. The Lexical Relationship component should not receive the populated value object.");let j=(0,v.useRef)(null),[w]=(0,s.DF)(),x=(0,c.a)(),{config:{routes:{api:N},serverURL:C},getEntityConfig:R}=(0,r.b)(),[k]=(0,v.useState)(()=>R({collectionSlug:_})),{i18n:D,t:y}=(0,u.d)(),[S,B]=(0,v.useReducer)(e=>e+1,0),[{data:E},{setParams:P}]=(0,d.usePayloadAPI)("".concat(C).concat(N,"/").concat(k.slug,"/").concat(g),{initialParams:h}),{closeDocumentDrawer:T,DocumentDrawer:A,DocumentDrawerToggler:K}=(0,t.a)({id:g,collectionSlug:k.slug}),L=(0,v.useCallback)(()=>{w.update(()=>{var e;null===(e=(0,p.nsf)(f))||void 0===e||e.remove()})},[w,f]),F=v.useCallback(()=>{P({...h,cacheBust:S}),T(),B()},[S,P,T]);return(0,n.jsxs)("div",{className:"".concat(b,"__contents"),contentEditable:!1,ref:j,children:[(0,n.jsxs)("div",{className:"".concat(b,"__wrap"),children:[(0,n.jsx)("p",{className:"".concat(b,"__label"),children:y("fields:labelRelationship",{label:(null===(a=k.labels)||void 0===a?void 0:a.singular)?(0,i.s)(null===(l=k.labels)||void 0===l?void 0:l.singular,D):k.slug})}),(0,n.jsx)(K,{className:"".concat(b,"__doc-drawer-toggler"),children:(0,n.jsx)("p",{className:"".concat(b,"__title"),children:E?E[(null==k?void 0:null===(m=k.admin)||void 0===m?void 0:m.useAsTitle)||"id"]:g})})]}),x&&(0,n.jsxs)("div",{className:"".concat(b,"__actions"),children:[(0,n.jsx)(d.Button,{buttonStyle:"icon-label",className:"".concat(b,"__swapButton"),disabled:!x,el:"button",icon:"swap",onClick:()=>{f&&w.dispatchCommand(o.a,{replace:{nodeKey:f}})},round:!0,tooltip:y("fields:swapRelationship")}),(0,n.jsx)(d.Button,{buttonStyle:"icon-label",className:"".concat(b,"__removeButton"),disabled:!x,icon:"x",onClick:e=>{e.preventDefault(),L()},round:!0,tooltip:y("fields:removeRelationship")})]}),!!g&&(0,n.jsx)(A,{onSave:F})]})}}}]);

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.