1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1224],{63102:(e,t,n)=>{n.d(t,{n:()=>o,t:()=>a});var l=n(76430),i=n(13470),r=n(31403);function o(){let e=(0,l.useContext)(r.IZ);if(!e)throw Error("useCommentsSelectedPath: missing context value");return e}function a(){let e=(0,i.c)(1),t=(0,l.useContext)(r.ho);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:f,handleClose:h,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:p,dialogPrimaryClicked:u,panelViewed:m,panelDismissed:c,panelPrimaryClicked:d,panelSecondaryClicked:s}},e[0]=t):t=e[0],t}return t}function s(){return null}function d(){return null}function c(){return null}function m(){return null}function u(){return null}function p(){return null}function h(){return null}function f(){return null}},71224:(e,t,n)=>{n.r(t),n.d(t,{CommentsInspector:()=>el});var l=n(71929),i=n(12915),r=n(59449),o=n(41634),a=n(906),s=n(48902),d=n(77227),c=n(87616),m=n(90576),u=n(63102),p=n(332),h=n(76430),f=n(13470),g=n(75038),x=n(31403),C=n(77615),j=n(37890),y=n(79863),I=n(74324),w=n(45591),k=n(12816),v=n(71576),b=n(3180),S=n(82979),_=n(92958),P=n(15477),D=n(63394),E=n(83309),R=n(98485),z=n(57886),T=n(88117),B=n(88063);function L(e){let t=(0,f.c)(17),{status:n,error:i,loading:r,hasNoComments:a}=e,{t:s}=(0,l.t)(d.a),c;t[0]===s?c=t[1]:(c={open:{title:s("list-status.empty-state-open-title"),message:s("list-status.empty-state-open-text")},resolved:{title:s("list-status.empty-state-resolved-title"),message:s("list-status.empty-state-resolved-text")}},t[0]=s,t[1]=c);let m=c;if(i){let e,n;return t[2]===s?e=t[3]:(e=s("list-status.error"),t[2]=s,t[3]=e),t[4]===e?n=t[5]:(n=(0,g.jsx)(v.so,{alignItems:"center",justifyContent:"center",flexBasis:"0%",flexGrow:1,padding:4,children:(0,g.jsx)(v.so,{alignItems:"center",children:(0,g.jsx)(v.EY,{size:1,muted:!0,as:"div",trim:!0,children:e})})}),t[4]=e,t[5]=n),n}if(r){let e,n;return t[6]===s?e=t[7]:(e=s("list-status.loading"),t[6]=s,t[7]=e),t[8]===e?n=t[9]:(n=(0,g.jsx)(o.t,{showText:!0,title:e}),t[8]=e,t[9]=n),n}if(a){let e,l=m[n],i;t[10]===l.title?i=t[11]:(i=(0,g.jsx)(v.EY,{align:"center",size:1,muted:!0,weight:"medium",as:"div",trim:!0,children:l.title}),t[10]=l.title,t[11]=i);let r=m[n],o;return t[12]===r.message?o=t[13]:(o=(0,g.jsx)(v.EY,{align:"center",size:1,muted:!0,as:"div",trim:!0,children:r.message}),t[12]=r.message,t[13]=o),t[14]!==i||t[15]!==o?(e=(0,g.jsx)(v.so,{alignItems:"center",justifyContent:"center",flexBasis:"0%",flexGrow:1,children:(0,g.jsx)(v.mc,{size:0,padding:4,children:(0,g.jsxs)(v.Tk,{gap:3,children:[i,o]})})}),t[14]=i,t[15]=o,t[16]=e):e=t[16],e}return null}let N=(0,g.jsx)(v.In,{muted:!0,icon:E.ChevronRightIcon,style:{margin:"-0.4375rem"}}),V=(e,t)=>(0,g.jsx)(v.az,{as:"li",children:(0,g.jsx)(v.EY,{truncate:1,size:1,weight:"medium",as:"div",trim:!0,children:e})},`${e}-${t}`);function Y(e){let t=(0,f.c)(11),{titlePath:n,maxLength:l}=e,r;e:{let e=n.length,i=Math.ceil(l/2),o=Math.floor(l/2);if(l&&e>l){let l;t[0]!==o||t[1]!==i||t[2]!==e||t[3]!==n?(l=[...n.slice(0,i-1),n.slice(i-1,e-o),...n.slice(e-o)],t[0]=o,t[1]=i,t[2]=e,t[3]=n,t[4]=l):l=t[4],r=l;break e}r=n}let o=r,a;if(t[5]!==o){let e;t[7]===o.length?e=t[8]:(e=(e,t)=>{let n=`${e}-${t}`,l=t<o.length-1;return Array.isArray(e)?(0,g.jsxs)(h.Fragment,{children:[(0,g.jsx)(i.s,{content:(0,g.jsx)(v.so,{gap:2,padding:2,flexDirection:"column",children:e.map(V)}),children:(0,g.jsx)(v.az,{children:V("...",t)})}),l&&N]},n):(0,g.jsxs)(h.Fragment,{children:[V(e,t),l&&N]},n)},t[7]=o.length,t[8]=e),a=o.map(e),t[5]=o,t[6]=a}else a=t[6];let s=a,d;return t[9]===s?d=t[10]:(d=(0,g.jsx)(v.so,{alignItems:"center",as:"ol",gap:2,children:s}),t[9]=s,t[10]=d),d}let F=[];function G(e){let t=(0,f.c)(25),{currentUser:n,fieldTitle:i,mentionOptions:o,mode:a,onBlur:s,onFocus:c,onKeyDown:u,onNewThreadCreate:p,readOnly:x}=e,{t:C}=(0,l.t)(d.a),[j,y]=(0,h.useState)(F),I=(0,h.useRef)(null),w;t[0]===p?w=t[1]:(w=e=>{p?.(e),y(F)},t[0]=p,t[1]=w);let k=w,v;t[2]===j?v=t[3]:(v=(0,d.c)(j),t[2]=j,t[3]=v);let b=v,S;t[4]===b?S=t[5]:(S=()=>{b&&I.current?.discardDialogController.open()},t[4]=b,t[5]=S);let _=S,P;t[6]!==u||t[7]!==_?(P=e=>{e.isDefaultPrevented()||("Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),_()),u&&u(e))},t[6]=u,t[7]=_,t[8]=P):P=t[8];let D=P,E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{y(F),I.current?.discardDialogController.close(),I.current?.focus()},t[9]=E):E=t[9];let R=E,z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{I.current?.discardDialogController.close()},t[10]=z):z=t[10];let T=z,B;t[11]!==i||t[12]!==a||t[13]!==C?(B="upsell"===a?C("compose.add-comment-input-placeholder-upsell"):(0,g.jsx)(r.t,{t:C,i18nKey:"compose.add-comment-input-placeholder",values:{field:i}}),t[11]=i,t[12]=a,t[13]=C,t[14]=B):B=t[14];let L=B,N=x||"upsell"===a,V;return t[15]!==n||t[16]!==D||t[17]!==k||t[18]!==o||t[19]!==s||t[20]!==c||t[21]!==L||t[22]!==N||t[23]!==j?(V=(0,g.jsx)(m.t,{currentUser:n,expandOnFocus:!0,mentionOptions:o,onBlur:s,onChange:y,onDiscardCancel:T,onDiscardConfirm:R,onKeyDown:D,onFocus:c,onSubmit:k,placeholder:L,readOnly:N,ref:I,value:j}),t[15]=n,t[16]=D,t[17]=k,t[18]=o,t[19]=s,t[20]=c,t[21]=L,t[22]=N,t[23]=j,t[24]=V):V=t[24],V}let A=(0,k.I4)(v.so).withConfig({displayName:"HeaderFlex",componentId:"sc-u3p3r5-0"})`min-height:25px;`,O=(0,k.I4)(C.t).withConfig({displayName:"BreadcrumbsButton",componentId:"sc-u3p3r5-1"})(({theme:e})=>{let t=e.sanity.color.base.fg;return(0,k.AH)`--card-fg-color:${t};max-width:100%;`});function $(e){let t,n,i,r,o,a=(0,f.c)(36),{breadcrumbs:s,canCreateNewThread:c,children:m,currentUser:u,f
1ieldPath:h,isSelected:x,mentionOptions:C,mode:j,onNewThreadCreate:y,onPathSelect:I,readOnly:w}=e,{t:k}=(0,l.t)(d.a),b;a[0]!==h||a[1]!==y?(b=e=>{let t={message:e,parentCommentId:void 0,status:"open",threadId:(0,z.A)(),reactions:[],payload:{fieldPath:h}};y?.(t)},a[0]=h,a[1]=y,a[2]=b):b=a[2];let S=b,_;a[3]!==h||a[4]!==I?(_=e=>{e.stopPropagation(),I?.({fieldPath:h,origin:"inspector",threadId:null})},a[3]=h,a[4]=I,a[5]=_):_=a[5];let P=_,D;a[6]!==h||a[7]!==I?(D=e=>{e.stopPropagation(),0!==e.detail&&I?.({fieldPath:h,origin:"inspector",threadId:null})},a[6]=h,a[7]=I,a[8]=D):D=a[8];let E=D,R;a[9]===s?R=a[10]:(R=s?.map(H)||[],a[9]=s,a[10]=R);let T=R,B=T[T.length-1],L;return a[11]!==B||a[12]!==k?(L=k("list-item.breadcrumb-button-go-to-field-aria-label",{field:B}),a[11]=B,a[12]=k,a[13]=L):L=a[13],a[14]===T?t=a[15]:(t=(0,g.jsx)(Y,{maxLength:3,titlePath:T}),a[14]=T,a[15]=t),a[16]!==P||a[17]!==L||a[18]!==t?(n=(0,g.jsx)(A,{alignItems:"center",gap:2,paddingRight:1,children:(0,g.jsx)(v.so,{flexBasis:"0%",flexGrow:1,flexDirection:"column",children:(0,g.jsx)(v.so,{alignItems:"center",children:(0,g.jsx)(O,{"aria-label":L,mode:"bleed",onClick:P,padding:2,gap:2,children:t})})})}),a[16]=P,a[17]=L,a[18]=t,a[19]=n):n=a[19],a[20]!==c||a[21]!==u||a[22]!==E||a[23]!==S||a[24]!==x||a[25]!==B||a[26]!==C||a[27]!==j||a[28]!==w?(i=c&&(0,g.jsx)(p.n,{onClick:E,"data-active":x,children:(0,g.jsx)(G,{currentUser:u,fieldTitle:B,mentionOptions:C,mode:j,onNewThreadCreate:S,readOnly:w})}),a[20]=c,a[21]=u,a[22]=E,a[23]=S,a[24]=x,a[25]=B,a[26]=C,a[27]=j,a[28]=w,a[29]=i):i=a[29],a[30]===m?r=a[31]:(r=(0,g.jsx)(v.Tk,{gap:2,children:m}),a[30]=m,a[31]=r),a[32]!==n||a[33]!==i||a[34]!==r?(o=(0,g.jsxs)(v.Tk,{gap:2,children:[n,i,r]}),a[32]=n,a[33]=i,a[34]=r,a[35]=o):o=a[35],o}function H(e){return e.title}let q=(0,h.memo)(function(e){let t,n,l=(0,f.c)(32),{ref:i,beforeListNode:r,comments:o,currentUser:a,error:s,loading:d,mentionOptions:c,mode:u,onCopyLink:x,onCreateRetry:C,onDelete:y,onEdit:I,onNewThreadCreate:w,onPathSelect:k,onReactionSelect:b,onReply:S,onStatusChange:_,readOnly:P,selectedPath:D,status:E}=e,[R,z]=(0,h.useState)(null),T;l[0]===o?T=l[1]:(T=Object.entries(o.reduce((e,t)=>{let n=t.fieldPath;return e[n]||(e[n]=[]),e[n].push(t),e},{})),l[0]=o,l[1]=T);let B=T,N=!d&&!s&&B.length>0,V;return l[2]!==s||l[3]!==B||l[4]!==d||l[5]!==u||l[6]!==E?(V="upsell"!==u&&(0,g.jsx)(L,{error:s,hasNoComments:0===B.length,loading:d,status:E}),l[2]=s,l[3]=B,l[4]=d,l[5]=u,l[6]=E,l[7]=V):V=l[7],l[8]!==r||l[9]!==R||l[10]!==a||l[11]!==B||l[12]!==c||l[13]!==u||l[14]!==x||l[15]!==C||l[16]!==y||l[17]!==I||l[18]!==w||l[19]!==k||l[20]!==b||l[21]!==S||l[22]!==_||l[23]!==P||l[24]!==i||l[25]!==D||l[26]!==N||l[27]!==E?(t=(N||r)&&(0,g.jsxs)(v.so,{as:"ul",flexBasis:"0%",flexGrow:1,overflow:"auto",padding:3,paddingTop:1,paddingBottom:6,gap:1,ref:i,flexDirection:"column",children:[r,(0,g.jsx)(j.EZ,{element:R,children:B?.map(e=>{let[t,n]=e,l=n[0].breadcrumbs,i=n[0].threadId,r=D?.fieldPath===t&&!D.threadId;return(0,g.jsx)(v.so,{as:"li",paddingTop:3,...(0,m.s)(i),flexDirection:"column",flexShrink:0,children:(0,g.jsx)($,{breadcrumbs:l,canCreateNewThread:"open"===E,currentUser:a,fieldPath:t,isSelected:r,mentionOptions:c,mode:u,onNewThreadCreate:w,onPathSelect:k,readOnly:P,children:n.map(e=>{let t=e.replies.slice().reverse(),n="open"===E&&e.parentComment._state?.type!=="createError"&&e.parentComment._state?.type!=="createRetrying",l=D?.threadId===e.parentComment.threadId&&D?.fieldPath===e.parentComment.target.path?.field;return(0,g.jsx)(p.t,{canReply:n,currentUser:a,hasReferencedValue:e.hasReferencedValue,isSelected:l,mentionOptions:c,mode:u,onCopyLink:x,onCreateRetry:C,onDelete:y,onEdit:I,onPathSelect:k,onReactionSelect:b,onReply:S,onStatusChange:_,parentComment:e.parentComment,readOnly:P,replies:t},e.parentComment._id)})},t)},t)})})]}),l[8]=r,l[9]=R,l[10]=a,l[11]=B,l[12]=c,l[13]=u,l[14]=x,l[15]=C,l[16]=y,l[17]=I,l[18]=w,l[19]=k,l[20]=b,l[21]=S,l[22]=_,l[23]=P,l[24]=i,l[25]=D,l[26]=N,l[27]=E,l[28]=t):t=l[28],l[29]!==V||l[30]!==t?(n=(0,g.jsxs)(v.so,{"data-testid":"comments-list",flexDirection:"column",flexBasis:"0%",flexGrow:1,height:"100%",overflow:"hidden",ref:z,children:[V,t]}),l[29]=V,l[30]=t,l[31]=n):n=l[31],n}),M=(0,k.I4)(v.az).withConfig({displayName:"Root",componentId:"sc-eolnz3-0"})`max-width:280px;`,K=(0,k.i7)`from{opacity:0;}to{opacity:1;}`,Z=(0,k.I4)(a.r).withConfig({displayName:"StyledPopover",componentId:"sc-eolnz3-1"})`opacity:0;animation:${K} 200ms 500ms forwards;`;function J(e){let t,n,r,o,a,s,c,m=(0,f.c)(23),u,p;m[0]===e?(u=m[1],p=m[2]):({onDismiss:u,...p}=e,m[0]=e,m[1]=u,m[2]=p);let{t:h}=(0,l.t)(d.a),x;return m[3]===h?x=m[4]:(x=h("onboarding.header"),m[3]=h,m[4]=x),m[5]===x?t=m[6]:(t=(0,g.jsx)(v.EY,{weight:"medium",size:1,as:"div",trim:!0,children:x}),m[5]=x,m[6]=t),m[7]===h?n=m[8]:(n=h("onboarding.body"),m[7]=h,m[8]=n),m[9]===n?r=m[10]:(r=(0,g.jsx)(v.EY,{size:1,as:"div",trim:!0,children:n}),m[9]=n,m[10]=r),m[11]===h?o=m[12]:(o=h("onboarding.dismiss"),m[11]=h,m[12]=o),m[13]!==u||m[14]!==o?(a=(0,g.jsx)(v.so,{justifyContent:"flex-end",marginTop:2,children:(0,g.jsx)(i.o,{text:o,tone:"primary",onClick:u})}),m[13]=u,m[14]=o,m[15]=a):a=m[15],m[16]!==t||m[17]!==r||m[18]!==a?(s=(0,g.jsx)(M,{padding:4,children:(0,g.jsxs)(v.Tk,{gap:3,children:[t,r,a]})}),m[16]=t,m[17]=r,m[18]=a,m[19]=s):s=m[19],m[20]!==p||m[21]!==s?(c=(0,g.jsx)(Z,{content:s,open:!0,portal:!0,...p}),m[20]=p,m[21]=s,m[22]=c):c=m[22],c}function W(e){let t=(0,f.c)(4),{data:n,onPrimaryClick:l,onSecondaryClick:i}=e,r;return t[0]!==n||t[1]!==l||t[2]!==i?(r=(0,g.jsx)(v.mc,{size:1,children:(0,g.jsx)(v.az,{marginBottom:6,children:(0,g.jsx)(c.t,{data:n,onPrimaryClick:l,onSecondaryClick:i})})}),t[0]=n,t[1]=l,t[2]=i,t[3]=r):r=t[3],r}let Q=(0,P.g_)({name:"Comment Link Copied",version:1,description:"The link to a comment is copied"}),U=(0,P.g_)({name:"Comment Viewed From Link",version:1,description:"A comment is viewed from a link"}),X=(0,P.g_)({name:"Comment List View Changed",version:1,description:"The view of the comment list is changed"}),ee=(0,k.I4)(y.s).withConfig({displayName:"Root",componentId:"sc-efi4zg-0"})({position:"relative",zIndex:"1",lineHeight:"0"});function et(e){let t,n,r,o,a,s,c,m,u,p,h,x,C,j,y,I,w=(0,f.c)(57),{t:k}=(0,l.t)(d.a),{ref:b,onClose:S,onViewChange:_,view:P,mode:E}=e,z;w[0]===_?z=w[1]:(z=()=>_("open"),w[0]=_,w[1]=z);let L=z,N;w[2]===_?N=w[3]:(N=()=>_("resolved"),w[2]=_,w[3]=N);let V=N,Y;w[4]===k?Y=w[5]:(Y=k("feature-name"),w[4]=k,w[5]=Y),w[6]===Y?t=w[7]:(t=(0,g.jsx)(v.so,{alignItems:"center",flexBasis:"0%",flexGrow:1,gap:2,paddingY:2,padding:3,children:(0,g.jsx)(v.EY,{as:"h1",size:1,weight:"medium",trim:!0,children:Y})}),w[6]=Y,w[7]=t),w[8]!==k||w[9]!==P?(n=k("open"===P?"status-filter.status-open":"status-filter.status-resolved"),w[8]=k,w[9]=P,w[10]=n):n=w[10],w[11]===n?r=w[12]:(r=(0,g.jsx)(i.o,{text:n,mode:"bleed",iconRight:R.ChevronDownIcon}),w[11]=n,w[12]=r),w[13]===Symbol.for("react.memo_cache_sentinel")?(o={width:"180px"},w[13]=o):o=w[13];let F="open"===P?B.CheckmarkIcon:void 0,G;w[14]===k?G=w[15]:(G=k("status-filter.status-open-full"),w[14]=k,w[15]=G),w[16]!==L||w[17]!==F||w[18]!==G?(a=(0,g.jsx)(i.r,{iconRight:F,onClick:L,text:G}),w[16]=L,w[17]=F,w[18]=G,w[19]=a):a=w[19];let A="resolved"===P?B.CheckmarkIcon:void 0,O;w[20]===k?O=w[21]:(O=k("status-filter.status-resolved-full"),w[20]=k,w[21]=O),w[22]!==E||w[23]!==k?(s="upsell"===E?{content:k("status-filter.status-resolved-full-upsell")}:void 0,w[22]=E,w[23]=k,w[24]=s):s=w[24];let $="upsell"===E,H;return w[25]!==V||w[26]!==A||w[27]!==O||w[28]!==s||w[29]!==$?(H=(0,g.jsx)(i.r,{iconRight:A,onClick:V,text:O,tooltipProps:s,disabled:$}),w[25]=V,w[26]=A,w[27]=O,w[28]=s,w[29]=$,w[30]=H):H=w[30],w[31]!==H||w[32]!==a?(c=(0,g.jsxs)(T.W1,{style:o,children:[a,H]}),w[31]=H,w[32]=a,w[33]=c):c=w[33],w[34]===Symbol.for("react.memo_cache_sentinel")?(m={placement:"bottom-end"},w[34]=m):m=w[34],w[35]!==c||w[36]!==r?(u=(0,g.jsx)(i.i,{id:"comment-status-menu-button",button:r,menu:c,popover:m}),w[35]=c,w[36]=r,w[37]=u):u=w[37],w[38]===k?p=w[39]:(p=k("close-pane-button-text-aria-label"),w[38]=k,w[39]=p),w[40]===k?h=w[41]:(h=k("close-pane-button-text"),w[40]=k,w[41]=h),w[42]===h?x=w[43]:(x={content:h}
1,w[42]=h,w[43]=x),w[44]!==S||w[45]!==p||w[46]!==x?(C=(0,g.jsx)(i.o,{"aria-label":p,icon:D.CloseIcon,mode:"bleed",onClick:S,tooltipProps:x}),w[44]=S,w[45]=p,w[46]=x,w[47]=C):C=w[47],w[48]!==u||w[49]!==C?(j=(0,g.jsxs)(v.so,{flexBasis:"auto",flexGrow:0,flexShrink:0,padding:1,gap:2,children:[u,C]}),w[48]=u,w[49]=C,w[50]=j):j=w[50],w[51]!==j||w[52]!==t?(y=(0,g.jsxs)(v.so,{padding:2,children:[t,j]}),w[51]=j,w[52]=t,w[53]=y):y=w[53],w[54]!==b||w[55]!==y?(I=(0,g.jsx)(ee,{ref:b,children:y}),w[54]=b,w[55]=y,w[56]=I):I=w[56],I}let en=(0,k.I4)(I.t).withConfig({displayName:"RootLayer",componentId:"sc-qd4kfq-0"})`display:flex;flex-direction:column;height:100%;overflow:hidden;`;function el(e){let t,n=(0,f.c)(3),{enabled:l,mode:i}=(0,s.t)();return l?(n[0]!==i||n[1]!==e?(t=(0,g.jsx)(en,{children:(0,g.jsx)(ei,{...e,mode:i})}),n[0]=i,n[1]=e,n[2]=t):t=n[2],t):null}function ei(e){let t,n,i,r,a,s,c,C,j,I,k,P,D,E,R,z,T,B=(0,f.c)(119),{t:L}=(0,l.t)(d.a),{onClose:N,mode:V}=e,[Y,F]=(0,h.useState)(!1),[G,A]=(0,h.useState)(null),[O,$]=(0,h.useState)(!1),[H,M]=(0,h.useState)(null),K=(0,h.useRef)(null),[Z,ee]=(0,h.useState)(null),en=(0,o.n)(),{comments:el,getComment:ei,mentionOptions:eo,readOnly:ea,setStatus:es,status:ed,operation:ec,selectedCommentId:em,getCommentLink:eu,onClearSelectedComment:ep,onPathOpen:eh}=(0,m.u)(),ef=(0,h.useRef)(em),eg=(0,h.useRef)(!1),ex=(0,_.dj)().push,{isTopLayer:eC}=(0,y.t)(),ej;B[0]===Z?ej=B[1]:(ej={boundaryElement:Z},B[0]=Z,B[1]=ej);let{scrollToComment:ey,scrollToField:eI,scrollToInlineComment:ew}=(0,m.l)(ej),{selectedPath:ek,setSelectedPath:ev}=(0,u.n)(),{isDismissed:eb,setDismissed:eS}=function(){let e=(0,h.useContext)(x.RY);if(!e)throw Error("useCommentsOnboarding: missing context value");return e}(),e_=(t=(0,f.c)(10),n=(0,S.Jr)(),t[0]===n?i=t[1]:(i=()=>{n.log(Q)},t[0]=n,t[1]=i),r=i,t[2]===n?a=t[3]:(a=()=>{n.log(U)},t[2]=n,t[3]=a),s=a,t[4]===n?c=t[5]:(c=e=>{n.log(X,{view:e})},t[4]=n,t[5]=c),C=c,t[6]!==r||t[7]!==C||t[8]!==s?(j={commentLinkCopied:r,commentListViewChanged:C,commentViewedFromLink:s},t[6]=r,t[7]=C,t[8]=s,t[9]=j):j=t[9],j),{upsellData:eP,telemetryLogs:eD}=(0,u.t)(),eE=el.data[ed],{loading:eR}=el,ez;B[2]!==ev||B[3]!==es||B[4]!==e_?(ez=e=>{es(e),ev(null),e_.commentListViewChanged(e)},B[2]=ev,B[3]=es,B[4]=e_,B[5]=ez):ez=B[5];let eT=ez,eB;B[6]!==N||B[7]!==ev?(eB=()=>{N(),ev(null)},B[6]=N,B[7]=ev,B[8]=eB):eB=B[8];let eL=eB,eN;e:{let e;if(!eu){eN=void 0;break e}B[9]!==eu||B[10]!==ex||B[11]!==L||B[12]!==e_?(e=e=>{navigator.clipboard.writeText(eu(e)).catch(()=>{ex({closable:!0,status:"error",title:L("copy-link-error-message")})}),e_.commentLinkCopied()},B[9]=eu,B[10]=ex,B[11]=L,B[12]=e_,B[13]=e):e=B[13],eN=e}let eV=eN,eY;B[14]!==ei||B[15]!==ec?(eY=e=>{let t=ei(e);t&&ec.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})},B[14]=ei,B[15]=ec,B[16]=eY):eY=B[16];let eF=eY,eG;B[17]===O?eG=B[18]:(eG=()=>{O||(F(!1),A(null))},B[17]=O,B[18]=eG);let eA=eG,eO;B[19]!==el.data.open||B[20]!==eh||B[21]!==eI||B[22]!==ew||B[23]!==ev?(eO=e=>{if(ev(e),e?.fieldPath){let t=b.sH(e.fieldPath);eh?.(t),eI(e.fieldPath),el.data.open.filter(t=>t.threadId===e?.threadId).some(er)&&e.threadId&&ew(e.threadId)}},B[19]=el.data.open,B[20]=eh,B[21]=eI,B[22]=ew,B[23]=ev,B[24]=eO):eO=B[24];let e$=eO,eH;B[25]!==ec||B[26]!==ev?(eH=e=>{let t=e?.payload?.fieldPath||"";ec.create({type:"field",fieldPath:t,message:e.message,parentCommentId:e.parentCommentId,reactions:e.reactions,status:e.status,threadId:e.threadId}),ev({fieldPath:t,origin:"inspector",threadId:e.threadId})},B[25]=ec,B[26]=ev,B[27]=eH):eH=B[27];let eq=eH,eM;B[28]===ec?eM=B[29]:(eM=e=>{ec.create({...e,type:"field",fieldPath:e?.payload?.fieldPath||""})},B[28]=ec,B[29]=eM);let eK=eM,eZ;B[30]===ec?eZ=B[31]:(eZ=(e,t)=>{ec.update(e,t)},B[30]=ec,B[31]=eZ);let eJ=eZ,eW;B[32]===eE?eW=B[33]:(eW=e=>{let t=eE.find(t=>t.parentComment?._id===e),n=!!(t&&t?.replies?.length>0);F(!0),A({commentId:e,isParent:n})},B[32]=eE,B[33]=eW);let eQ=eW,eU;B[34]!==eA||B[35]!==ec?(eU=async e=>
1{try{$(!0),await ec.remove(e),eA()}catch(e){M(e)}$(!1)},B[34]=eA,B[35]=ec,B[36]=eU):eU=B[36];let eX=eU,e1;B[37]!==ei||B[38]!==ec||B[39]!==ey||B[40]!==ev||B[41]!==es?(e1=(e,t)=>{if(ec.update(e,{status:t}),"open"===t){es("open");let t=ei(e);t&&(ev({fieldPath:t.target.path?.field||null,origin:"inspector",threadId:t.threadId||null}),ey(e))}},B[37]=ei,B[38]=ec,B[39]=ey,B[40]=ev,B[41]=es,B[42]=e1):e1=B[42];let e0=e1,e2;B[43]===ec?e2=B[44]:(e2=(e,t)=>{ec.react(e,t)},B[43]=ec,B[44]=e2);let e3=e2,e4;B[45]!==eC||B[46]!==ek||B[47]!==ev?(e4=()=>{ek&&eC&&ev(null)},B[45]=eC,B[46]=ek,B[47]=ev,B[48]=e4):e4=B[48];let e5=e4,e7;B[49]===Symbol.for("react.memo_cache_sentinel")?(e7=e=>{K.current=e,ee(e)},B[49]=e7):e7=B[49];let e6=e7,e8;B[50]===e5?e8=B[51]:(e8=e=>{e.target instanceof HTMLElement&&e.target?.hasAttribute("data-pt-text")||e5()},B[50]=e5,B[51]=e8),B[52]===Symbol.for("react.memo_cache_sentinel")?(I=()=>[K.current],B[52]=I):I=B[52],(0,w.t)(e8,I);let[e9,te]=(0,h.useState)(!1),tt;B[53]!==e9||B[54]!==V||B[55]!==ek?.origin||B[56]!==eD?(tt=()=>{if(!(e9||"upsell"!==V))return te(!0),ek?.origin==="form"?eD.panelViewed("field_action"):ef.current?eD.panelViewed("link"):eD.panelViewed("document_action"),()=>{eD.panelDismissed()}},B[53]=e9,B[54]=V,B[55]=ek?.origin,B[56]=eD,B[57]=tt):tt=B[57];let tn=ek?.origin,tl;B[58]!==e9||B[59]!==V||B[60]!==tn||B[61]!==eD?(tl=[e9,V,tn,eD],B[58]=e9,B[59]=V,B[60]=tn,B[61]=eD,B[62]=tl):tl=B[62],(0,h.useEffect)(tt,tl),B[63]!==ei||B[64]!==e$||B[65]!==eR||B[66]!==ep||B[67]!==ey||B[68]!==es||B[69]!==e_?(k=()=>{let e=ei(ef.current||"");eR||!e||eg.current||(es(e.status||"open"),e$({fieldPath:e.target.path?.field||null,origin:"url",threadId:e.threadId||null}),requestAnimationFrame(()=>{ey(e._id)}),eg.current=!0,ef.current=void 0,ep?.(),e_.commentViewedFromLink())},P=[ei,e$,eR,ep,ey,es,e_],B[63]=ei,B[64]=e$,B[65]=eR,B[66]=ep,B[67]=ey,B[68]=es,B[69]=e_,B[70]=k,B[71]=P):(k=B[70],P=B[71]),(0,h.useEffect)(k,P);t:{if("upsell"===V&&eP){let e;B[72]!==eP||B[73]!==eD.panelPrimaryClicked||B[74]!==eD.panelSecondaryClicked?(e=(0,g.jsx)(W,{data:eP,onPrimaryClick:eD.panelPrimaryClicked,onSecondaryClick:eD.panelSecondaryClicked}),B[72]=eP,B[73]=eD.panelPrimaryClicked,B[74]=eD.panelSecondaryClicked,B[75]=e):e=B[75],D=e;break t}D=null}let ti=D,tr;B[76]!==eA||B[77]!==G||B[78]!==H||B[79]!==O||B[80]!==eX||B[81]!==Y?(tr=G&&Y&&(0,g.jsx)(p.r,{...G,error:H,loading:O,onClose:eA,onConfirm:eX}),B[76]=eA,B[77]=G,B[78]=H,B[79]=O,B[80]=eX,B[81]=Y,B[82]=tr):tr=B[82];let to=!eb,ta;return B[83]!==eT||B[84]!==eL||B[85]!==V||B[86]!==ed?(ta=(0,g.jsx)(et,{onClose:eL,onViewChange:eT,view:ed,mode:V}),B[83]=eT,B[84]=eL,B[85]=V,B[86]=ed,B[87]=ta):ta=B[87],B[88]!==eS||B[89]!==to||B[90]!==ta?(E=(0,g.jsx)(J,{onDismiss:eS,open:to,placement:"left-start",children:ta}),B[88]=eS,B[89]=to,B[90]=ta,B[91]=E):E=B[91],B[92]!==ti||B[93]!==el.error||B[94]!==eE||B[95]!==en||B[96]!==eV||B[97]!==eF||B[98]!==eJ||B[99]!==eq||B[100]!==e$||B[101]!==e3||B[102]!==eK||B[103]!==e0||B[104]!==eR||B[105]!==eo||B[106]!==V||B[107]!==eQ||B[108]!==ea||B[109]!==ek||B[110]!==ed?(R=en&&(0,g.jsx)(q,{beforeListNode:ti,comments:eE,currentUser:en,error:el.error,loading:eR,mentionOptions:eo,mode:V,onCopyLink:eV,onCreateRetry:eF,onDelete:eQ,onEdit:eJ,onNewThreadCreate:eq,onPathSelect:e$,onReactionSelect:e3,onReply:eK,onStatusChange:e0,readOnly:ea,selectedPath:ek,status:ed}),B[92]=ti,B[93]=el.error,B[94]=eE,B[95]=en,B[96]=eV,B[97]=eF,B[98]=eJ,B[99]=eq,B[100]=e$,B[101]=e3,B[102]=eK,B[103]=e0,B[104]=eR,B[105]=eo,B[106]=V,B[107]=eQ,B[108]=ea,B[109]=ek,B[110]=ed,B[111]=R):R=B[111],B[112]!==e5||B[113]!==E||B[114]!==R?(z=(0,g.jsxs)(v.so,{flexDirection:"column",flexBasis:"0%",flexGrow:1,height:"100%",onClick:e5,overflow:"hidden",ref:e6,children:[E,R]}),B[112]=e5,B[113]=E,B[114]=R,B[115]=z):z=B[115],B[116]!==tr||B[117]!==z?(T=(0,g.jsxs)(h.Fragment,{children:[tr,z]}),B[116]=tr,B[117]=z,B[118]=T):T=B[118],T}function er(e){return(0,d.l)(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.