PageSourceSearch

https://www.governa.ai/_next/static/chunks/2542.8d4ede9c80d5c358.js

js governa.ai collected 2026-10-05 12:02:41 UTC 13,002 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2542],{38318:(e,t,n)=>{n.d(t,{t:()=>o});var l=n(12115),r=n(19749),i=n(80825);function o(){let e=(0,r.c)(1),t=(0,l.useContext)(i.F8);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:h,handleClose:p,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:m,dialogPrimaryClicked:u,panelViewed:c,panelDismissed:d,panelPrimaryClicked:s,panelSecondaryClicked:a}},e[0]=t):t=e[0],t}return t}function a(){return null}function s(){return null}function d(){return null}function c(){return null}function u(){return null}function m(){return null}function p(){return null}function h(){return null}},52542:(e,t,n)=>{n.r(t),n.d(t,{CommentsInspector:()=>H});var l=n(37846),r=n(62858),i=n(34590),o=n(19250),a=n(31017),s=n(2277),d=n(35216),c=n(70568),u=n(55786),m=n(39115),p=n(4127),h=n(38318),f=n(12115),g=n(19749),x=n(95155),C=n(80825),y=n(55809),j=n(40220),k=n(43076),I=n(34524),b=n(21565),w=n(8395),v=n(41894),S=n(97931),P=n(71136),_=n(55684),R=n(94163),z=n(24035),D=n(68949);let E=(0,w.I4)(v.az).withConfig({displayName:"Root",componentId:"sc-1god8x-0"})`max-width:280px;`,L=(0,w.i7)`from{opacity:0;}to{opacity:1;}`,N=(0,w.I4)(o.r).withConfig({displayName:"StyledPopover",componentId:"sc-1god8x-1"})`opacity:0;animation:${L} 200ms 500ms forwards;`;function V(e){let t,n,i,o,s,d,c,u=(0,g.c)(23),m,p;u[0]===e?(m=u[1],p=u[2]):({onDismiss:m,...p}=e,u[0]=e,u[1]=m,u[2]=p);let{t:h}=(0,l.t)(a.b),f;return u[3]===h?f=u[4]:(f=h("onboarding.header"),u[3]=h,u[4]=f),u[5]===f?t=u[6]:(t=(0,x.jsx)(y.n,{weight:"medium",size:1,children:f}),u[5]=f,u[6]=t),u[7]===h?n=u[8]:(n=h("onboarding.body"),u[7]=h,u[8]=n),u[9]===n?i=u[10]:(i=(0,x.jsx)(y.n,{size:1,children:n}),u[9]=n,u[10]=i),u[11]===h?o=u[12]:(o=h("onboarding.dismiss"),u[11]=h,u[12]=o),u[13]!==m||u[14]!==o?(s=(0,x.jsx)(v.so,{justifyContent:"flex-end",marginTop:2,children:(0,x.jsx)(r.o,{text:o,tone:"primary",onClick:m})}),u[13]=m,u[14]=o,u[15]=s):s=u[15],u[16]!==t||u[17]!==i||u[18]!==s?(d=(0,x.jsx)(E,{padding:4,children:(0,x.jsxs)(y.t,{gap:3,children:[t,i,s]})}),u[16]=t,u[17]=i,u[18]=s,u[19]=d):d=u[19],u[20]!==p||u[21]!==d?(c=(0,x.jsx)(N,{content:d,open:!0,portal:!0,...p}),u[20]=p,u[21]=d,u[22]=c):c=u[22],c}function B(e){let t=(0,g.c)(4),{data:n,onPrimaryClick:l,onSecondaryClick:r}=e,i;return t[0]!==n||t[1]!==l||t[2]!==r?(i=(0,x.jsx)(j.mc,{width:1,children:(0,x.jsx)(v.az,{marginBottom:6,children:(0,x.jsx)(p.t,{data:n,onPrimaryClick:l,onSecondaryClick:r})})}),t[0]=n,t[1]=l,t[2]=r,t[3]=i):i=t[3],i}function F(e){let t,n,r,i=(0,g.c)(9),{error:o}=e,{t:s}=(0,l.t)(a.b),d;return i[0]===s?d=i[1]:(d=s("inspector-error.title"),i[0]=s,i[1]=d),i[2]===d?t=i[3]:(t=(0,x.jsx)(y.n,{size:1,weight:"medium",children:d}),i[2]=d,i[3]=t),i[4]===o.message?n=i[5]:(n=(0,x.jsx)(y.n,{size:1,muted:!0,children:o.message}),i[4]=o.message,i[5]=n),i[6]!==t||i[7]!==n?(r=(0,x.jsx)(v.az,{padding:2,children:(0,x.jsx)(k.s,{paddingX:2,paddingY:3,tone:"critical",border:!0,radius:3,children:(0,x.jsxs)(y.t,{gap:3,children:[t,n]})})}),i[6]=t,i[7]=n,i[8]=r):r=i[8],r}let G=(0,w.I4)(k.s).withConfig({displayName:"Root",componentId:"sc-fyfx0r-0"})({position:"relative",zIndex:"1",lineHeight:"0"});function O(e){let t,n,i,o,s,d,c,u,m,p,h,f,C,j,k,I,b=(0,g.c)(57),{t:w}=(0,l.t)(a.b),{ref:S,onClose:P,onViewChange:E,view:L,mode:N}=e,V;b[0]===E?V=b[1]:(V=()=>E("open"),b[0]=E,b[1]=V);let B=V,F;b[2]===E?F=b[3]:(F=()=>E("resolved"),b[2]=E,b[3]=F);let O=F,T;b[4]===w?T=b[5]:(T=w("feature-name"),b[4]=w,b[5]=T),b[6]===T?t=b[7]:(t=(0,x.jsx)(v.so,{alignItems:"center",flexBasis:"0%",flexGrow:1,gap:2,paddingY:2,padding:3,children:(0,x.jsx)(y.n,{as:"h1",size:1,weight:"medium",children:T})}),b[6]=T,b[7]=t),b[8]!==w||b[9]!==L?(n=w("open"===L?"status-filter.status-open":"status-filter.status-resolved"),b[8]=w,b[9]=L,b[10]=n):n=b[10],b[11]===n?i=b[12]:(i=(0,x.jsx)(r.o,{text:n,mode:"bleed",iconRight:R.ChevronDownIcon}),b[11]=n,b[12]=i),b[13]===Symbol.for("react.memo_cache_sentinel")?(o={width:"180px"},b[13]=o):o=b[13];let H="open"===L?D.CheckmarkIcon:void 0,A;b[14]===w?A=b[15]:(A=w("status-filter.status-open-full"),b[14]=w,b[15]=A),b[16]!==B||b[17]!==H||b[18]!==A?(s=(0,x.jsx)(r.r,{iconRight:H,onClick:B,text:A}),b[16]=B,b[17]=H,b[18]=A,b[19]=s):s=b[19];let Y="resolved"===L?D.CheckmarkIcon:void 0,q;b[20]===w?q=b[21]:(q=w("status-filter.status-resolved-full"),b[20]=w,b[21]=q),b[22]!==N||b[23]!==w?(d="upsell"===N?{content:w("status-filter.status-resolved-full-upsell")}:void 0,b[22]=N,b[23]=w,b[24]=d):d=b[24];let M="upsell"===N,W;return b[25]!==O||b[26]!==Y||b[27]!==q||b[28]!==d||b[29]!==M?(W=(0,x.jsx)(r.r,{iconRight:Y,onClick:O,text:q,tooltipProps:d,disabled:M}),b[25]=O,b[26]=Y,b[27]=q,b[28]=d,b[29]=M,b[30]=W):W=b[30],b[31]!==W||b[32]!==s?(c=(0,x.jsxs)(z.W1,{style:o,children:[s,W]}),b[31]=W,b[32]=s,b[33]=c):c=b[33],b[34]===Symbol.for("react.memo_cache_sentinel")?(u={placement:"bottom-end"},b[34]=u):u=b[34],b[35]!==c||b[36]!==i?(m=(0,x.jsx)(r.i,{id:"comment-status-menu-button",button:i,menu:c,popover:u}),b[35]=c,b[36]=i,b[37]=m):m=b[37],b[38]===w?p=b[39]:(p=w("close-pane-button-text-aria-label"),b[38]=w,b[39]=p),b[40]===w?h=b[41]:(h=w("close-pane-button-text"),b[40]=w,b[41]=h),b[42]===h?f=b[43]:(f={content:h},b[42]=h,b[43]=f),b[44]!==P||b[45]!==p||b[46]!==f?(C=(0,x.jsx)(r.o,{"aria-label":p,icon:_.CloseIcon,mode:"bleed",onClick:P,tooltipProps:f}),b[44]=P,b[45]=p,b[46]=f,b[47]=C):C=b[47],b[48]!==m||b[49]!==C?(j=(0,x.jsxs)(v.so,{flexBasis:"auto",flexGrow:0,flexShrink:0,padding:1,gap:2,children:[m,C]}),b[48]=m,b[49]=C,b[50]=j):j=b[50],b[51]!==j||b[52]!==t?(k=(0,x.jsxs)(v.so,{padding:2,children:[t,j]}),b[51]=j,b[52]=t,b[53]=k):k=b[53],b[54]!==S||b[55]!==k?(I=(0,x.jsx)(G,{ref:S,children:k}),b[54]=S,b[55]=k,b[56]=I):I=b[56],I}let T=(0,w.I4)(I.t).withConfig({displayName:"RootLayer",componentId:"sc-6atkmk-0"})`display:flex;flex-direction:column;height:100%;overflow:hidden;`;function H(e){let t,n=(0,g.c)(3),{enabled:l,mode:r}=(0,u.t)();return l?(n[0]!==r||n[1]!==e?(t=(0,x.jsx)(T,{children:(0,x.jsx)(A,{...e,mode:r})}),n[0]=r,n[1]=e,n[2]=t):t=n[2],t):null}function A(e){let t,n,r,o,u,p,y,j,I,w=(0,g.c)(122),{t:_}=(0,l.t)(a.b),{onClose:R,mode:z}=e,[D,E]=(0,f.useState)(!1),[L,N]=(0,f.useState)(null),[G,T]=(0,f.useState)(!1),[H,A]=(0,f.useState)(null),q=(0,f.useRef)(null),[M,W]=(0,f.useState)(null),X=(0,i.n)(),{comments:$,getComment:J,isCreatingDataset:K,mentionOptions:Q,setStatus:U,status:Z,operation:ee,selectedCommentId:et,getCommentLink:en,onClearSelectedComment:el,onPathOpen:er}=(0,a.t)(),ei=(0,f.useRef)(et),{error:eo}=(0,c.t)(),ea=(0,f.useRef)(!1),es=(0,P.dj)().push,{isTopLayer:ed}=(0,k.t)(),ec;w[0]===M?ec=w[1]:(ec={boundaryElement:M},w[0]=M,w[1]=ec);let{scrollToComment:eu,scrollToField:em,scrollToInlineComment:ep}=(0,a.y)(ec),{selectedPath:eh,setSelectedPath:ef}=(0,m.t)(),{isDismissed:eg,setDismissed:ex}=function(){let e=(0,f.useContext)(C.lG);if(!e)throw Error("useCommentsOnboarding: missing context value");return e}(),eC=(0,d.t)(),{upsellData:ey,telemetryLogs:ej}=(0,h.t)(),ek=$.data[Z],{loading:eI}=$,eb;w[2]!==ef||w[3]!==U||w[4]!==eC?(eb=e=>{U(e),ef(null),eC.commentListViewChanged(e)},w[2]=ef,w[3]=U,w[4]=eC,w[5]=eb):eb=w[5];let ew=eb,ev;w[6]!==R||w[7]!==ef?(ev=()=>{R(),ef(null)},w[6]=R,w[7]=ef,w[8]=ev):ev=w[8];let eS=ev,eP;e:{let e;if(!en){eP=void 0;break e}
1w[9]!==en||w[10]!==es||w[11]!==_||w[12]!==eC?(e=e=>{navigator.clipboard.writeText(en(e)).catch(()=>{es({closable:!0,status:"error",title:_("copy-link-error-message")})}),eC.commentLinkCopied()},w[9]=en,w[10]=es,w[11]=_,w[12]=eC,w[13]=e):e=w[13],eP=e}let e_=eP,eR;w[14]!==J||w[15]!==ee?(eR=e=>{let t=J(e);t&&ee.create({type:"field",fieldPath:t.target.path?.field||"",id:t._id,message:t.message,parentCommentId:t.parentCommentId,reactions:t.reactions||[],status:t.status,threadId:t.threadId})},w[14]=J,w[15]=ee,w[16]=eR):eR=w[16];let ez=eR,eD;w[17]===G?eD=w[18]:(eD=()=>{G||(E(!1),N(null))},w[17]=G,w[18]=eD);let eE=eD,eL;w[19]!==$.data.open||w[20]!==er||w[21]!==em||w[22]!==ep||w[23]!==ef?(eL=e=>{if(ef(e),e?.fieldPath){let t=S.sH(e.fieldPath);er?.(t),em(e.fieldPath),$.data.open.filter(t=>t.threadId===e?.threadId).some(Y)&&e.threadId&&ep(e.threadId)}},w[19]=$.data.open,w[20]=er,w[21]=em,w[22]=ep,w[23]=ef,w[24]=eL):eL=w[24];let eN=eL,eV;w[25]!==ee||w[26]!==ef?(eV=e=>{let t=e?.payload?.fieldPath||"";ee.create({type:"field",fieldPath:t,message:e.message,parentCommentId:e.parentCommentId,reactions:e.reactions,status:e.status,threadId:e.threadId}),ef({fieldPath:t,origin:"inspector",threadId:e.threadId})},w[25]=ee,w[26]=ef,w[27]=eV):eV=w[27];let eB=eV,eF;w[28]===ee?eF=w[29]:(eF=e=>{ee.create({...e,type:"field",fieldPath:e?.payload?.fieldPath||""})},w[28]=ee,w[29]=eF);let eG=eF,eO;w[30]===ee?eO=w[31]:(eO=(e,t)=>{ee.update(e,t)},w[30]=ee,w[31]=eO);let eT=eO,eH;w[32]===ek?eH=w[33]:(eH=e=>{let t=ek.find(t=>t.parentComment?._id===e),n=!!(t&&t?.replies?.length>0);E(!0),N({commentId:e,isParent:n})},w[32]=ek,w[33]=eH);let eA=eH,eY;w[34]!==eE||w[35]!==ee?(eY=async e=>{try{T(!0),await ee.remove(e),eE()}catch(e){A(e)}T(!1)},w[34]=eE,w[35]=ee,w[36]=eY):eY=w[36];let eq=eY,eM;w[37]!==J||w[38]!==ee||w[39]!==eu||w[40]!==ef||w[41]!==U?(eM=(e,t)=>{if(ee.update(e,{status:t}),"open"===t){U("open");let t=J(e);t&&(ef({fieldPath:t.target.path?.field||null,origin:"inspector",threadId:t.threadId||null}),eu(e))}},w[37]=J,w[38]=ee,w[39]=eu,w[40]=ef,w[41]=U,w[42]=eM):eM=w[42];let eW=eM,eX;w[43]===ee?eX=w[44]:(eX=(e,t)=>{ee.react(e,t)},w[43]=ee,w[44]=eX);let e$=eX,eJ;w[45]!==ed||w[46]!==eh||w[47]!==ef?(eJ=()=>{eh&&ed&&ef(null)},w[45]=ed,w[46]=eh,w[47]=ef,w[48]=eJ):eJ=w[48];let eK=eJ,eQ;w[49]===Symbol.for("react.memo_cache_sentinel")?(eQ=e=>{q.current=e,W(e)},w[49]=eQ):eQ=w[49];let eU=eQ,eZ;w[50]===eK?eZ=w[51]:(eZ=e=>{e.target instanceof HTMLElement&&e.target?.hasAttribute("data-pt-text")||eK()},w[50]=eK,w[51]=eZ),w[52]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[q.current],w[52]=t):t=w[52],(0,b.t)(eZ,t);let[e1,e0]=(0,f.useState)(!1),e2;w[53]!==e1||w[54]!==z||w[55]!==eh?.origin||w[56]!==ej?(e2=()=>{if(!(e1||"upsell"!==z))return e0(!0),eh?.origin==="form"?ej.panelViewed("field_action"):ei.current?ej.panelViewed("link"):ej.panelViewed("document_action"),()=>{ej.panelDismissed()}},w[53]=e1,w[54]=z,w[55]=eh?.origin,w[56]=ej,w[57]=e2):e2=w[57];let e3=eh?.origin,e4;w[58]!==e1||w[59]!==z||w[60]!==e3||w[61]!==ej?(e4=[e1,z,e3,ej],w[58]=e1,w[59]=z,w[60]=e3,w[61]=ej,w[62]=e4):e4=w[62],(0,f.useEffect)(e2,e4),w[63]!==J||w[64]!==eN||w[65]!==eI||w[66]!==el||w[67]!==eu||w[68]!==U||w[69]!==eC?(n=()=>{let e=J(ei.current||"");eI||!e||ea.current||(U(e.status||"open"),eN({fieldPath:e.target.path?.field||null,origin:"url",threadId:e.threadId||null}),requestAnimationFrame(()=>{eu(e._id)}),ea.current=!0,ei.current=void 0,el?.(),eC.commentViewedFromLink())}
1,r=[J,eN,eI,el,eu,U,eC],w[63]=J,w[64]=eN,w[65]=eI,w[66]=el,w[67]=eu,w[68]=U,w[69]=eC,w[70]=n,w[71]=r):(n=w[70],r=w[71]),(0,f.useEffect)(n,r);t:{if("upsell"===z&&ey){let e;w[72]!==ey||w[73]!==ej.panelPrimaryClicked||w[74]!==ej.panelSecondaryClicked?(e=(0,x.jsx)(B,{data:ey,onPrimaryClick:ej.panelPrimaryClicked,onSecondaryClick:ej.panelSecondaryClicked}),w[72]=ey,w[73]=ej.panelPrimaryClicked,w[74]=ej.panelSecondaryClicked,w[75]=e):e=w[75],o=e;break t}o=null}let e5=o,e8;w[76]!==eE||w[77]!==L||w[78]!==H||w[79]!==G||w[80]!==eq||w[81]!==D?(e8=L&&D&&(0,x.jsx)(s.r,{...L,error:H,loading:G,onClose:eE,onConfirm:eq}),w[76]=eE,w[77]=L,w[78]=H,w[79]=G,w[80]=eq,w[81]=D,w[82]=e8):e8=w[82];let e9=!eg,e6;return w[83]!==ew||w[84]!==eS||w[85]!==z||w[86]!==Z?(e6=(0,x.jsx)(O,{onClose:eS,onViewChange:ew,view:Z,mode:z}),w[83]=ew,w[84]=eS,w[85]=z,w[86]=Z,w[87]=e6):e6=w[87],w[88]!==ex||w[89]!==e9||w[90]!==e6?(u=(0,x.jsx)(V,{onDismiss:ex,open:e9,placement:"left-start",children:e6}),w[88]=ex,w[89]=e9,w[90]=e6,w[91]=u):u=w[91],w[92]===eo?p=w[93]:(p=eo&&(0,x.jsx)(F,{error:eo}),w[92]=eo,w[93]=p),w[94]!==e5||w[95]!==$.error||w[96]!==ek||w[97]!==X||w[98]!==e_||w[99]!==ez||w[100]!==eT||w[101]!==eB||w[102]!==eN||w[103]!==e$||w[104]!==eG||w[105]!==eW||w[106]!==K||w[107]!==eI||w[108]!==Q||w[109]!==z||w[110]!==eA||w[111]!==eh||w[112]!==Z?(y=X&&(0,x.jsx)(d.n,{beforeListNode:e5,comments:ek,currentUser:X,error:$.error,loading:eI,mentionOptions:Q,mode:z,onCopyLink:e_,onCreateRetry:ez,onDelete:eA,onEdit:eT,onNewThreadCreate:eB,onPathSelect:eN,onReactionSelect:e$,onReply:eG,onStatusChange:eW,readOnly:K,selectedPath:eh,status:Z}),w[94]=e5,w[95]=$.error,w[96]=ek,w[97]=X,w[98]=e_,w[99]=ez,w[100]=eT,w[101]=eB,w[102]=eN,w[103]=e$,w[104]=eG,w[105]=eW,w[106]=K,w[107]=eI,w[108]=Q,w[109]=z,w[110]=eA,w[111]=eh,w[112]=Z,w[113]=y):y=w[113],w[114]!==eK||w[115]!==u||w[116]!==p||w[117]!==y?(j=(0,x.jsxs)(v.so,{flexDirection:"column",flexBasis:"0%",flexGrow:1,height:"100%",onClick:eK,overflow:"hidden",ref:eU,children:[u,p,y]}),w[114]=eK,w[115]=u,w[116]=p,w[117]=y,w[118]=j):j=w[118],w[119]!==e8||w[120]!==j?(I=(0,x.jsxs)(f.Fragment,{children:[e8,j]}),w[119]=e8,w[120]=j,w[121]=I):I=w[121],I}function Y(e){return(0,a.f)(e.parentComment)}}}]);

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.