PageSourceSearch

https://cdn.apopro.dk/2026-09-17-12-49-50/_next/static/chunks/549.1d4858057cbf48b1.js

js apopro.dk collected 2026-09-25 02:38:02 UTC 28,103 bytes, 6 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[549],{50549:(e,t,n)=>{n.d(t,{a:()=>G,c:()=>M,d:()=>V,f:()=>P,i:()=>el,l:()=>Y,n:()=>e_,o:()=>q,r:()=>ef,s:()=>H,t:()=>eq,u:()=>U});var o=n(30200),l=n(37846),i=n(62858),r=n(80985),a=n(11695),s=n(39133),c=n(22776),d=n(97922),u=n(12115),m=n(19749),f=n(95155),p=n(80825),h=n(13638),x=n(73793),g=n(40220),y=n(21565),b=n(42262),v=n(51862),w=n(6052),j=n(51452),C=n(6878),k=n(85948),_=n(17865),S=n(33910),I=n(91420),N=n(24035),O=n(40546),E=n(81531),A=n(75877),z=n(63993),$=n(83071),L=n(55168);function P(){let e=(0,u.useContext)(p.CL);if(!e)throw Error("useComments must be used within a CommentsProvider");return e}let T={behavior:"smooth",inline:"center",scrollMode:"if-needed"},R={...T,block:"start"},D={...T,block:"center"},W={...T,block:"center"},B={comment:{...T,block:"center"},field:W,group:R,"inline-comment":D};function F(e){return e.replace(/[[\]_"_=.]/g,"")}function H(e){return{"data-comments-comment-id":F(e)}}function M(e){return{"data-comments-field-id":F(e)}}function Y(e){return{"data-comments-group-id":F(e)}}function U(e){return{"data-comments-inline-comment-id":F(e)}}function V(e){let t,n=(0,m.c)(14),o;n[0]===e?o=n[1]:(o=e||{},n[0]=e,n[1]=o);let{boundaryElement:l}=o,[i,r]=(0,u.useState)(null);i?.type;let a=B[i?.type||"comment"],s=i?.type==="comment"?l:void 0,c;n[2]!==a||n[3]!==s?(c={...a,boundary:s},n[2]=a,n[3]=s,n[4]=c):c=n[4];let d=c,f;n[5]===Symbol.for("react.memo_cache_sentinel")?(f=e=>{r({type:"comment",id:e})},n[5]=f):f=n[5];let p=f,h;n[6]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{r({type:"group",id:e})},n[6]=h):h=n[6];let x=h,g;n[7]===Symbol.for("react.memo_cache_sentinel")?(g=e=>{r({type:"field",id:e})},n[7]=g):g=n[7];let y=g,b;n[8]===Symbol.for("react.memo_cache_sentinel")?(b=e=>{r({type:"inline-comment",id:e})},n[8]=b):b=n[8];let v=b,w,j;return n[9]!==d||n[10]!==i?(w=()=>{let e=requestAnimationFrame(()=>{if(!i)return;let{type:e,id:t}=i,n=document?.querySelector(`[data-comments-${e}-id="${F(t)}"]`);n&&(0,O.A)(n,d)});return()=>{cancelAnimationFrame(e)}},j=[d,i],n[9]=d,n[10]=i,n[11]=w,n[12]=j):(w=n[11],j=n[12]),(0,u.useEffect)(w,j),n[13]===Symbol.for("react.memo_cache_sentinel")?(t={scrollToComment:p,scrollToField:y,scrollToGroup:x,scrollToInlineComment:v},n[13]=t):t=n[13],t}function q(){let e=(0,u.useContext)(p.IZ);if(!e)throw Error("useCommentsSelectedPath: missing context value");return e}function G(){let e=(0,m.c)(1),t=(0,u.useContext)(p.ho);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:en,handleClose:et,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:ee,dialogPrimaryClicked:Q,panelViewed:J,panelDismissed:X,panelPrimaryClicked:
1Z,panelSecondaryClicked:K}},e[0]=t):t=e[0],t}return t}function K(){return null}function Z(){return null}function X(){return null}function J(){return null}function Q(){return null}function ee(){return null}function et(){return null}function en(){return null}let eo=(0,v.I4)(w.EY).withConfig({displayName:"NormalText",componentId:"sc-wjk91f-0"})`word-break:break-word;`;function el(e){let t=(0,m.c)(2),{children:n}=e,o;return t[0]===n?o=t[1]:(o=(0,f.jsx)(eo,{size:1,forwardedAs:"div",trim:!0,children:n}),t[0]=n,t[1]=o),o}let ei=(0,h.MI)({name:"mention",type:"object",fields:[{name:"userId",type:"string"}]}),er=(0,h.MI)({type:"block",name:"block",of:[ei],marks:{annotations:[]},styles:[{title:"Normal",value:"normal"}],lists:[]}),ea=(0,h.dO)({type:"array",name:"body",of:[er]}),es=$.Sj.compile({name:"comments",types:[ea]}).get("body");function ec(e){let t,n,o,i,r,s,c,u=(0,m.c)(25),{t:p}=(0,l.t)(d.a),{onClose:h,onConfirm:y}=e,b;u[0]===h?b=u[1]:(b=e=>{e.stopPropagation(),h()},u[0]=h,u[1]=b);let v=b,j;u[2]===y?j=u[3]:(j=e=>{e.stopPropagation(),y()},u[2]=y,u[3]=j);let C=j,k;return u[4]===p?k=u[5]:(k=p("discard.header"),u[4]=p,u[5]=k),u[6]===v?t=u[7]:(t={onClick:v},u[6]=v,u[7]=t),u[8]===p?n=u[9]:(n=p("discard.button-confirm"),u[8]=p,u[9]=n),u[10]!==C||u[11]!==n?(o={onClick:C,text:n,tone:"critical"},u[10]=C,u[11]=n,u[12]=o):o=u[12],u[13]!==t||u[14]!==o?(i={cancelButton:t,confirmButton:o},u[13]=t,u[14]=o,u[15]=i):i=u[15],u[16]===p?r=u[17]:(r=p("discard.text"),u[16]=p,u[17]=r),u[18]===r?s=u[19]:(s=(0,f.jsx)(w.EY,{size:1,as:"div",trim:!0,children:r}),u[18]=r,u[19]=s),u[20]!==h||u[21]!==k||u[22]!==i||u[23]!==s?(c=(0,f.jsx)(x.c,{tone:"default",children:(0,f.jsx)(g.Co,{zOffset:9999999,children:(0,f.jsx)(a.n,{header:k,id:"discard-comment-dialog",onClose:h,width:0,onClickOutside:h,footer:i,children:s})})}),u[20]=h,u[21]=k,u[22]=i,u[23]=s,u[24]=c):c=u[24],c}let ed=(0,v.I4)(g.eu).withConfig({displayName:"StyledAvatar",componentId:"sc-lay0rn-0"})`svg > ellipse{stroke:transparent;}`,eu=/[^\p{Alpha}\p{White_Space}]/gu,em=/\p{White_Space}+/u;function ef(e){let t,n=(0,m.c)(12),o,l;n[0]===e?(o=n[1],l=n[2]):({user:l,...o}=e,n[0]=e,n[1]=o,n[2]=l);let i=l;i?.displayName;let r=i?.displayName||"",a;n[3]===r?a=n[4]:(a=1===(t=r.replace(eu,"").split(em)).length?`${t[0].charAt(0)}`.toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`,n[3]=r,n[4]=a);let s=a;if(!i){let e;return n[5]===o?e=n[6]:(e=(0,f.jsx)(ed,{...o}),n[5]=o,n[6]=e),e}let c=i?.imageUrl,d=i?.displayName,u;return n[7]!==s||n[8]!==o||n[9]!==c||n[10]!==d?(u=(0,f.jsx)(ed,{initials:s,src:c,title:d,...o}),n[7]=s,n[8]=o,n[9]=c,n[10]=d,n[11]=u):u=n[11],u}function ep(e){let t,n,o,l=(0,m.c)(8),i,r;return l[0]===e?(i=l[1],r=l[2]):({ref:i,...r}=e,l[0]=e,l[1]=i,l[2]=r),l[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,f.jsx)("path",{d:"M16.6633 18.9383C15.539 19.6562 14.2034 20.0723 12.7705 20.0723C8.77022 20.0723 5.52734 16.8294 5.52734 12.8291C5.52734 8.82881 8.77022 5.58594 12.7705 5.58594C16.7708 5.58594 20.0137 8.82881 20.0137 12.8291C20.0137 13.6623 19.8249 14.7093 19.6141 15.2077C19.5578 15.3408 19.479 15.4845 19.3936 15.6238C19.0955 16.1106 18.5507 16.3721 17.9807 16.4018V16.4018C16.8271 16.462 15.8588 15.5428 15.8588 14.3877V9.27302",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),n=(0,f.jsx)("circle",{cx:"12.5732",cy:"12.8291",r:"3.08691",stroke:"currentColor",strokeWidth:1.2}),l[3]=t,l[4]=n):(t=l[3],n=l[4]),l[5]!==i||l[6]!==r?(o=(0,f.jsxs)("svg",{"data-sanity-icon":"mention",fill:"none",height:"1em",ref:i,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...r,children:[t,n]}),l[5]=i,l[6]=r,l[7]=o):o=l[7],o}function eh(e){let t,n,o=(0,m.c)(7),l,i;return o[0]===e?(l=o[1],i=o[2]):({ref:l,...i}=e,o[0]=e,o[1]=l,o[2]=i),o[3]===Symbol.for("react.memo_cache_sentinel")?(t=(0,f.jsx)("path",{clipRule:"evenodd",d:"M21.1602 12.5L7.16016 19.5V14.8765L13.6656 12.4989L7.16016 9.97149L7.16016 5.5L21.1602 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),o[3]=t):t=o[3],o[4]!==l||o[5]!==i?(n=(0,f.jsx)("svg",{"data-sanity-icon":"send",fill:"none",height:"1em",ref:l,viewBox:"0 0 25 25",width:"1em",xmlns:"http://www.w3.org/2000/svg",...i,children:t}),o[4]=l,o[5]=i,o[6]=n):n=o[6],n}let ex=(0,v.I4)(w.so).withConfig({displayName:"InnerFlex",componentId:"sc-asyet8-0"})``,eg={width:"50%"};function ey(e){let t,n,o,i,a=(0,m.c)(23),{user:s,onSelect:c}=e,[u]=(0,r.r)(s.id),{t:p}=(0,l.t)(d.a),h=s.granted?void 0:"inactive",y;a[0]!==u||a[1]!==h?(y=(0,f.jsx)(ef,{user:u,status:h}),a[0]=u,a[1]=h,a[2]=y):y=a[2];let b=y,v;a[3]===u?v=a[4]:(v=u?(0,f.jsx)(w.EY,{size:1,truncate:1,title:u.displayName,as:"div",trim:!0,children:u.displayName}):(0,f.jsx)(g.r5,{size:1,style:eg}),a[3]=u,a[4]=v);let j=v,C;a[5]!==c||a[6]!==s.id?(C=()=>{c(s.id)},a[5]=c,a[6]=s.id,a[7]=C):C=a[7];let k=C,_=!s.granted,S;return a[8]===j?S=a[9]:(S=(0,f.jsx)(w.az,{children:j}),a[8]=j,a[9]=S),a[10]!==b||a[11]!==S?(t=(0,f.jsxs)(ex,{alignItems:"center",gap:2,flexBasis:"0%",flexGrow:1,children:[b,S]}),a[10]=b,a[11]=S,a[12]=t):t=a[12],a[13]!==p||a[14]!==s.granted?(n=!s.granted&&(0,f.jsx)(g.Ex,{fontSize:1,children:p("mentions.unauthorized-user")}),a[13]=p,a[14]=s.granted,a[15]=n):n=a[15],a[16]!==t||a[17]!==n?(o=(0,f.jsxs)(w.so,{alignItems:"center",gap:3,children:[t,n]}),a[16]=t,a[17]=n,a[18]=o):o=a[18],a[19]!==k||a[20]!==_||a[21]!==o?(i=(0,f.jsx)(x.s,{as:"button",disabled:_,onClick:k,padding:2,radius:2,children:o}),a[19]=k,a[20]=_,a[21]=o,a[22]=i):i=a[22],i}let eb=[],ev=(0,v.I4)(w.Tk).withConfig({displayName:"Root",componentId:"sc-vtcs1r-0"})({maxWidth:"220px"}),ew=(0,v.I4)(w.so).withConfig({displayName:"FlexWrap",componentId:"sc-vtcs1r-1"})({maxHeight:315.5}
1);function ej(e){let t,n,o,i=(0,m.c)(24),{t:a}=(0,l.t)(d.a),{ref:c,loading:p,onSelect:h,options:x,inputElement:g}=e,y;i[0]===x?y=i[1]:(y=void 0===x?[]:x,i[0]=x,i[1]=y);let b=y,[v,j]=(0,u.useState)(""),C=(0,u.useRef)(null),k,_;i[2]===Symbol.for("react.memo_cache_sentinel")?(k=()=>({setSearchTerm(e){j(e)}}),_=[],i[2]=k,i[3]=_):(k=i[2],_=i[3]),(0,u.useImperativeHandle)(c,k,_),i[4]===h?t=i[5]:(t=e=>(0,f.jsx)(ey,{user:e,onSelect:h}),i[4]=h,i[5]=t);let S=t,I;i[6]===b?I=i[7]:(I=e=>!b?.[e]?.granted,i[6]=b,i[7]=I);let N=I,O;e:{let e;if(!v){O=b||eb;break e}if(i[8]!==b||i[9]!==v){let t=(0,L.A)(v).toLocaleLowerCase();e=b?.map(eC)?.filter(e=>e?.displayName?.includes(t))?.sort((e,n)=>{let o=e.displayName?.startsWith(t),l=n.displayName?.startsWith(t);return o&&!l?-1:!o&&l?1:0}),i[8]=b,i[9]=v,i[10]=e}else e=i[10];O=e||eb}let E=O;if(p){let e;return i[11]===Symbol.for("react.memo_cache_sentinel")?(e=(0,f.jsx)(ev,{children:(0,f.jsx)(r.t,{showText:!0})}),i[11]=e):e=i[11],e}let A=g||void 0,z;return i[12]!==E.length||i[13]!==a?(z=0===E.length&&(0,f.jsx)(w.az,{padding:5,children:(0,f.jsx)(w.EY,{align:"center",size:1,muted:!0,as:"div",trim:!0,children:a("mentions.no-users-found")})}),i[12]=E.length,i[13]=a,i[14]=z):z=i[14],i[15]!==A||i[16]!==E||i[17]!==N||i[18]!==S||i[19]!==a?(n=E.length>0&&(0,f.jsx)(ew,{flexDirection:"column",flexBasis:"0%",flexGrow:1,overflow:"hidden",children:(0,f.jsx)(s.t,{activeItemDataAttr:"data-hovered",ariaLabel:a("mentions.user-list-aria-label"),fixedHeight:!0,getItemDisabled:N,inputElement:A,itemHeight:41,items:E,padding:1,ref:C,renderItem:S})}),i[15]=A,i[16]=E,i[17]=N,i[18]=S,i[19]=a,i[20]=n):n=i[20],i[21]!==z||i[22]!==n?(o=(0,f.jsxs)(w.so,{flexDirection:"column",height:"100%","data-testid":"comments-mentions-menu",children:[z,n]}),i[21]=z,i[22]=n,i[23]=o):o=i[23],o}function eC(e){return{...e,displayName:(0,L.A)(e.displayName||"").toLocaleLowerCase()}}let ek=v.I4.span.withConfig({displayName:"Span",componentId:"sc-2ondhl-0"})(({theme:e})=>{let{regular:t}=e.sanity.fonts?.text.weights||{},{hovered:n}=e.sanity.color?.card||{},{bg:o}=e.sanity.color.selectable?.caution.pressed||{};return(0,v.AH)`font-weight:${t};color:var(--card-link-fg-color);border-radius:2px;background-color:${n.bg};padding:1px;box-sizing:border-box;&[data-active='true']{background-color:${o};}`});function e_(e){let t,n,o,l,a=(0,m.c)(15),{selected:s,userId:c}=e,[d,u]=(0,r.r)(c),p=(0,r.n)();if(!d||u){let e;return a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,f.jsx)(g.r5,{"data-testid":"comment-mentions-loading-skeleton",style:{width:"10ch"},size:0,muted:!0,radius:1,animated:!0}),a[0]=e):e=a[0],e}a[1]===d?t=a[2]:(t=(0,f.jsx)(w.so,{children:(0,f.jsx)(ef,{user:d})}),a[1]=d,a[2]=t),a[3]===d.displayName?n=a[4]:(n=(0,f.jsx)(w.EY,{size:1,as:"div",trim:!0,children:d.displayName}),a[3]=d.displayName,a[4]=n),a[5]!==t||a[6]!==n?(o=(0,f.jsxs)(w.so,{alignItems:"center",gap:2,children:[t,n]}),a[5]=t,a[6]=n,a[7]=o):o=a[7];let h=p?.sanityUserId===c,x;return a[8]!==s||a[9]!==h||a[10]!==d.displayName?(x=(0,f.jsxs)(ek,{"data-selected":s,"data-active":h,children:["@",d.displayName]}),a[8]=s,a[9]=h,a[10]=d.displayName,a[11]=x):x=a[11],a[12]!==o||a[13]!==x?(l=(0,f.jsx)(i.s,{portal:!0,content:o,children:x}),a[12]=o,a[13]=x,a[14]=l):l=a[14],l}function eS(){let e=(0,u.useContext)(p.tS);if(!e)throw Error("useCommentInputContext must be used within a CommentInputProvider");return e}let eI={passive:!0},eN=["bottom","top"],eO={outline:"none"},eE=[],eA=v.I4.span.withConfig({displayName:"PlaceholderWrapper",componentId:"sc-5vw6g4-0"})(e=>{let{color:t}=(0,C.t)(e.theme);return(0,v.AH)`color:${t.input.default.enabled.placeholder};overflow:hidden;text-overflow:ellipsis;text-wrap:nowrap;display:block;`}),ez=(0,v.I4)(a.r).withConfig({displayName:"StyledPopover",componentId:"sc-5vw6g4-1"})(({theme:e})=>{let{space:t,radius:n}=e.sanity;return(0,v.AH)`&[data-placement='bottom']{transform:translateY(${t[1]}px);}&[data-placement='top']{transform:translateY(-${t[1]}px);}[data-ui='Popover__wrapper']{border-radius:${n[3]}px;
1display:flex;flex-direction:column;overflow:clip;overflow:hidden;position:relative;width:300px;}`});function e$(e){let t,n,o,i,r,a,s,c=(0,m.c)(57),{t:p}=(0,l.t)(d.a),{focusLock:x,onFocus:g,onBlur:b,onKeyDown:v,onSubmit:w,placeholder:C,renderBlock:_}=e,S;c[0]!==p||c[1]!==C?(S=void 0===C?p("compose.create-comment-placeholder"):C,c[0]=p,c[1]=C,c[2]=S):S=c[2];let I=S,N=(0,u.useRef)(null),[O,A]=(0,u.useState)(null),[z,$]=(0,u.useState)(null),L=(0,u.useRef)(null),P=(0,k.pq)(),{canSubmit:T,closeMentions:R,insertMention:D,mentionOptions:W,mentionsMenuOpen:B,mentionsSearchTerm:F,onBeforeInput:H,value:M}=eS(),Y=!B,U;c[3]!==O||c[4]!==Y?(U={disabled:Y,rootElement:O},c[3]=O,c[4]=Y,c[5]=U):U=c[5];let V=function(e){let t=(0,m.c)(8),{disabled:n,rootElement:o}=e,[l,i]=(0,u.useState)(null),r;e:{let e;if(!l){r=null;break e}t[0]===l?e=t[1]:(e={getBoundingClientRect:()=>l},t[0]=l,t[1]=e),r=e}let a=r,s;t[2]!==n||t[3]!==o?(s=()=>{if(n)return void i(null);let e=window.getSelection();if(!e||!e.isCollapsed||0===e.rangeCount)return;let t=e.getRangeAt(0);if(!o?.contains(t.commonAncestorContainer))return void i(null);let l=t?.getBoundingClientRect();l&&i(l)},t[2]=n,t[3]=o,t[4]=s):s=t[4];let c=s,d,f;return t[5]===c?(d=t[6],f=t[7]):(d=()=>(document.addEventListener("selectionchange",c,eI),()=>{document.removeEventListener("selectionchange",c)}),f=[c],t[5]=c,t[6]=d,t[7]=f),(0,u.useEffect)(d,f),a}(U),q;c[6]===I?q=c[7]:(q=()=>(0,f.jsx)(eA,{children:I}),c[6]=I,c[7]=q);let G=q,K;c[8]===_?K=c[9]:(K=(0,k.CD)({type:"block",render:e=>(0,f.jsx)("div",{...e.attributes,children:_({children:e.children})})}),c[8]=_,c[9]=K),c[10]===Symbol.for("react.memo_cache_sentinel")?(t=(0,k.Uj)({type:"mention",render:eL}
1),c[10]=t):t=c[10],c[11]===K?n=c[12]:(n=[K,t],c[11]=K,c[12]=n);let Z=n,X;c[13]===Symbol.for("react.memo_cache_sentinel")?(X=()=>[N.current],c[13]=X):X=c[13],(0,y.t)(B&&R,X),c[14]!==T||c[15]!==R||c[16]!==B||c[17]!==v||c[18]!==w?(o=e=>{switch(e.key){case"Enter":if(e.shiftKey)break;if(B){e.preventDefault(),e.stopPropagation(),R();break}w&&T&&(e.preventDefault(),e.stopPropagation(),w());break;case"Escape":case"ArrowLeft":case"ArrowRight":B&&(e.preventDefault(),e.stopPropagation(),R())}v&&v(e)},c[14]=T,c[15]=R,c[16]=B,c[17]=v,c[18]=w,c[19]=o):o=c[19];let J=o,Q;if(c[20]!==P||c[21]!==M){e:{if(P){Q=void 0;break e}let e=(M||eE).slice(-1)[0],t=(0,h.L4)(e)?e.children.slice(-1)[0]:void 0;if(!t){Q=void 0;break e}let n={path:[{_key:e._key},"children",{_key:t._key}],offset:(0,h.bn)(t)?t.text.length:0},o;c[23]===n?o=c[24]:(o={focus:n,anchor:n},c[23]=n,c[24]=o),Q=o}c[20]=P,c[21]=M,c[22]=Q}else Q=c[22];let ee=Q,et,en;c[25]===F?(et=c[26],en=c[27]):(et=()=>{L.current?.setSearchTerm(F)},en=[F],c[25]=F,c[26]=et,c[27]=en),(0,u.useEffect)(et,en),c[28]!==R||c[29]!==B||c[30]!==P?(i=()=>{B&&P&&!(0,j.j)(P.anchor,P.focus)&&R()},r=[B,R,P],c[28]=R,c[29]=B,c[30]=P,c[31]=i,c[32]=r):(i=c[31],r=c[32]),(0,u.useEffect)(i,r);let eo=W.data||eE,el;c[33]!==z||c[34]!==D||c[35]!==W.loading||c[36]!==eo?(el=(0,f.jsx)(ej,{inputElement:z,loading:W.loading,onSelect:D,options:eo,ref:L}),c[33]=z,c[34]=D,c[35]=W.loading,c[36]=eo,c[37]=el):el=c[37];let ei=el,er=!B,ea;c[38]!==V||c[39]!==B||c[40]!==ei||c[41]!==er?(ea=(0,f.jsx)(ez,{arrow:!1,constrainSize:!0,content:ei,disabled:er,fallbackPlacements:eN,open:B,placement:"bottom",ref:N,referenceElement:V}),c[38]=V,c[39]=B,c[40]=ei,c[41]=er,c[42]=ea):ea=c[42],c[43]===Z?a=c[44]:(a=(0,f.jsx)(E.ou,{nodes:Z}),c[43]=Z,c[44]=a);let es=x?0:void 0,ec;return c[45]!==J||c[46]!==ee||c[47]!==H||c[48]!==b||c[49]!==g||c[50]!==G||c[51]!==es?(ec=(0,f.jsx)(k.LF,{"data-testid":"comment-input-editable","data-ui":"EditableElement",onBeforeInput:H,onBlur:b,onFocus:g,onKeyDown:J,ref:$,renderPlaceholder:G,selection:ee,style:eO,tabIndex:es}),c[45]=J,c[46]=ee,c[47]=H,c[48]=b,c[49]=g,c[50]=G,c[51]=es,c[52]=ec):ec=c[52],c[53]!==ea||c[54]!==a||c[55]!==ec?(s=(0,f.jsxs)("div",{ref:A,children:[ea,a,ec]}),c[53]=ea,c[54]=a,c[55]=ec,c[56]=s):s=c[56],s}function eL(e){return e.node.userId?(0,f.jsxs)("span",{...e.attributes,children:[e.children,(0,f.jsx)("span",{draggable:!e.readOnly,style:{display:"inline-block"},children:(0,f.jsx)(e_,{selected:e.selected,userId:e.node.userId})})]}):e.renderDefault(e)}let eP=(0,v.I4)(w.az).withConfig({displayName:"EditableWrap",componentId:"sc-6c5645-0"})`max-height:20vh;overflow-y:auto;`,eT=(0,v.I4)(N.Nj).withConfig({displayName:"ButtonDivider",componentId:"sc-6c5645-1"})({height:20,width:1});function eR(e){return`inset 0 0 0 ${e.width}px ${e.color}`}let eD=(0,v.I4)(x.s).withConfig({displayName:"RootCard",componentId:"sc-6c5645-2"})(({theme:e})=>{let{color:t,input:n,radius:o}=(0,C.t)(e),l=o[2];return(0,v.AH)`border-radius:${l}px;box-shadow:var(--input-box-shadow);--input-box-shadow:${eR({color:t.input.default.enabled.border,width:n.border.width})};&:not([data-expand-on-focus='false'],:focus-within){background:transparent;box-shadow:unset;}&[data-focused='true']:focus-within{${eP}{min-height:1em;}--input-box-shadow:${eR({color:"var(--card-focus-ring-color)",width:n.border.width})};}&:focus-within{${eP}{min-height:1em;}}&[data-expand-on-focus='false']{${eP}{min-height:1em;}}&[data-expand-on-focus='true']{[data-ui='CommentInputActions']:not([hidden]){display:none;}&:focus-within{[data-ui='CommentInputActions']{display:flex;}}}&:hover{--input-box-shadow:${eR({color:t.input.default.hovered.border,width:n.border.width})};}`}),eW=v.I4.div.withConfig({displayName:"AvatarContainer",componentId:"sc-6c5645-3"})(e=>`
2    min-height: ${(0,C.t)(e.theme).avatar.sizes[1]?.size}px;
3    display: flex;
4    align-items: center;
5  `);function eB(e){let t,n,o,a,s,c,u=(0,m.c)(41),{avatarSize:p,currentUser:h,focusLock:x,onBlur:g,onFocus:y,onKeyDown:b,onSubmit:v,placeholder:j,renderBlock:C,withAvatar:k}=e,_=void 0===p?1:p,[S]=(0,r.r)(h.id),{canSubmit:I,expandOnFocus:N,focused:O,hasChanges:E,insertAtChar:A,openMentions:z,readOnly:$,mentionOptions:L}=eS(),{t:P}=(0,l.t)(d.a),T;u[0]!==_||u[1]!==S||u[2]!==k?(T=k?(0,f.jsx)(eW,{children:(0,f.jsx)(ef,{user:S,size:_})}):null,u[0]=_,u[1]=S,u[2]=k,u[3]=T):T=u[3];let R=T,D;u[4]!==A||u[5]!==z?(D=e=>{e.stopPropagation(),A(),z()},u[4]=A,u[5]=z,u[6]=D):D=u[6];let W=D,B=N&&!I?"true":"false",F=O?"true":"false",H=$?"transparent":"default",M;return u[7]!==x||u[8]!==g||u[9]!==y||u[10]!==b||u[11]!==v||u[12]!==j||u[13]!==C?(M=(0,f.jsx)(eP,{"data-ui":"CommentInputEditableWrap",paddingX:1,paddingY:2,children:(0,f.jsx)(e$,{focusLock:x,onBlur:g,onF
5ocus:y,onKeyDown:b,onSubmit:v,placeholder:j,renderBlock:C})}),u[7]=x,u[8]=g,u[9]=y,u[10]=b,u[11]=v,u[12]=j,u[13]=C,u[14]=M):M=u[14],u[15]!==W||u[16]!==L.disabled||u[17]!==$||u[18]!==P?(t=!L.disabled&&(0,f.jsx)(i.o,{"aria-label":P("compose.mention-user-aria-label"),"data-testid":"comment-input-mention-button",disabled:$,icon:ep,mode:"bleed",type:"button",onClick:W,tooltipProps:{content:P("compose.mention-user-tooltip")}}),u[15]=W,u[16]=L.disabled,u[17]=$,u[18]=P,u[19]=t):t=u[19],u[20]!==I||u[21]!==E||u[22]!==L.disabled||u[23]!==v||u[24]!==$||u[25]!==P?(n=v&&(0,f.jsxs)(f.Fragment,{children:[!L.disabled&&(0,f.jsx)(eT,{}),(0,f.jsx)(i.o,{"aria-label":P("compose.send-comment-aria-label"),"data-testid":"comment-input-send-button",disabled:!I||!E||$,icon:eh,mode:E&&I?"default":"bleed",onClick:v,tone:E&&I?"primary":"default",tooltipProps:{content:P("compose.send-comment-tooltip")}})]}),u[20]=I,u[21]=E,u[22]=L.disabled,u[23]=v,u[24]=$,u[25]=P,u[26]=n):n=u[26],u[27]!==t||u[28]!==n?(o=(0,f.jsx)(w.so,{alignItems:"center","data-ui":"CommentInputActions",gap:1,justifyContent:"flex-end",padding:1,children:(0,f.jsxs)(i.n,{children:[t,n]})}),u[27]=t,u[28]=n,u[29]=o):o=u[29],u[30]!==M||u[31]!==o?(a=(0,f.jsxs)(w.Tk,{children:[M,o]}),u[30]=M,u[31]=o,u[32]=a):a=u[32],u[33]!==a||u[34]!==B||u[35]!==F||u[36]!==H?(s=(0,f.jsx)(eD,{id:"comment-input-root","data-expand-on-focus":B,"data-focused":F,flex:1,sizing:"border",tone:H,children:a}),u[33]=a,u[34]=B,u[35]=F,u[36]=H,u[37]=s):s=u[37],u[38]!==R||u[39]!==s?(c=(0,f.jsxs)(w.so,{alignItems:"flex-start",gap:2,children:[R,s]}),u[38]=R,u[39]=s,u[40]=c):c=u[40],c}function eF(e){let t,n=(0,m.c)(42),{children:l,expandOnFocus:i,focused:r,focusOnMount:a,mentionOptions:s,onMentionMenuOpenChange:d,value:x,readOnly:g}=e,y=void 0!==i&&i,b=void 0!==a&&a,v=(0,k.v$)(),[w,j]=(0,u.useState)(!1),[C,_]=(0,u.useState)(""),[S,I]=(0,u.useState)(null),N;n[0]===x?N=n[1]:(N=(0,c.n)(x),n[0]=x,n[1]=N);let O=N,E=(0,c.a)(x),A;n[2]!==v||n[3]!==g?(A=()=>{g||k.Og.focus(v)},n[2]=v,n[3]=g,n[4]=A):A=n[4];let z=A,$;n[5]===Symbol.for("react.memo_cache_sentinel")?($=()=>{j(!1),_(""),I(null)},n[5]=$):$=n[5];let L=$,P;n[6]!==v||n[7]!==s?.disabled?(P=()=>{s?.disabled||(j(!0),_(""),j(!0),I(k.Og.getSelection(v)))},n[6]=v,n[7]=s?.disabled,n[8]=P):P=n[8],s?.disabled;let T=P,R;n[9]!==v||n[10]!==s?.disabled||n[11]!==C||n[12]!==T?(R=e=>{if(s?.disabled)return;let t=k.Og.getSelection(v),n=t?t.focus.offset:0,o=k.Og.focusChild(v),l=(0,h.bn)(o)&&o||void 0,i="insertText"===e.inputType,r="deleteContentBackward"===e.inputType,a=i&&"@"===e.data,c=l?.text.slice(0,Math.max(0,n)).lastIndexOf("@")||0,d=l?.text.slice(n-1,n)===" ",u=i&&" "===e.data&&!C;
5if(a&&(n<1||d))return void T();if(u||r&&(l?.text.length===1||c===(l?.text.length||0)-1))return void L();if((0,h.bn)(o)){let t=o.text.slice(c+1,n);i&&(t+=e.data),r&&(t=t.slice(0,Math.max(0,t.length-1))),_(t)}},n[9]=v,n[10]=s?.disabled,n[11]=C,n[12]=T,n[13]=R):R=n[13],s?.disabled;let D=R,W;n[14]===v?W=n[15]:(W=()=>{j(!0),k.Og.focus(v),k.Og.insertChild(v,v.schemaTypes.span,{text:"@"}),I(k.Og.getSelection(v))},n[14]=v,n[15]=W);let B=W,F;n[16]!==w||n[17]!==d?(F=()=>d?.(w),n[16]=w,n[17]=d,n[18]=F):F=n[18],(0,o.zr)(w,F),n[19]!==v||n[20]!==S?(t=e=>{let t=v.schemaTypes.inlineObjects.find(eH),[n,o]=S&&k.Og.findByPath(v,S.focus.path)||[];if(n&&(0,h.bn)(n)&&o&&t){k.Og.focus(v);let l=k.Og.getSelection(v)?.focus.offset;void 0!==l&&(k.Og.delete(v,{anchor:{path:o,offset:n.text.lastIndexOf("@")},focus:{path:o,offset:l}},{mode:"selected"}),k.Og.insertChild(v,t,{userId:e}),k.Og.insertChild(v,v.schemaTypes.span,{text:" "}))}},n[19]=v,n[20]=S,n[21]=t):t=n[21];let H=t,M=!!g,Y;n[22]!==O||n[23]!==v||n[24]!==y||n[25]!==z||n[26]!==b||n[27]!==r||n[28]!==E||n[29]!==B||n[30]!==H||n[31]!==s||n[32]!==w||n[33]!==C||n[34]!==D||n[35]!==T||n[36]!==M||n[37]!==x?(Y={canSubmit:O,closeMentions:L,editor:v,expandOnFocus:y,focused:r,focusEditor:z,focusOnMount:b,hasChanges:E,insertAtChar:B,insertMention:H,mentionOptions:s,mentionsMenuOpen:w,mentionsSearchTerm:C,onBeforeInput:D,openMentions:T,readOnly:M,value:x},n[22]=O,n[23]=v,n[24]=y,n[25]=z,n[26]=b,n[27]=r,n[28]=E,n[29]=B,n[30]=H,n[31]=s,n[32]=w,n[33]=C,n[34]=D,n[35]=T,n[36]=M,n[37]=x,n[38]=Y):Y=n[38];let U=Y,V;return n[39]!==l||n[40]!==U?(V=(0,f.jsx)(p.tS.Provider,{value:U,children:l}),n[39]=l,n[40]=U,n[41]=V):V=n[41],V}function eH(e){return"mention"===e.name}function eM(e){let t=(0,m.c)(3),{ref:n}=e,o=(0,_.t)(),l,i;return t[0]===o?(l=t[1],i=t[2]):(l=()=>o,i=[o],t[0]=o,t[1]=l,t[2]=i),(0,u.useImperativeHandle)(n,l,i),null}let eY=[],eU=({children:e})=>(0,f.jsx)(el,{children:e}),eV={behavior:"smooth",block:"center",inline:"center"};function eq(e){let t,n,o,l,i,r,a,s,c,d,p,h=(0,m.c)(71),{ref:x,avatarSize:g,currentUser:y,expandOnFocus:v,focusLock:j,focusOnMount:C,mentionOptions:_,onBlur:N,onChange:O,onDiscardCancel:$,onDiscardConfirm:L,onFocus:P,onKeyDown:T,onMentionMenuOpenChange:R,onSubmit:D,placeholder:W,readOnly:B,renderBlock:F,value:H,withAvatar:M}=e,Y=void 0!==j&&j,U=void 0===F?eU:F,V=void 0===H?eY:H,q=void 0===M||M,[G,K]=(0,u.useState)(!1),Z=(0,u.useRef)(null),X=(0,u.useRef)(null),J=(0,u.useRef)(!1),[Q,ee]=(0,u.useState)(!1),et=(0,u.useRef)(null),en=(0,u.useRef)(null),eo=(0,u.useRef)(null),el;h[0]===Symbol.for("react.memo_cache_sentinel")?(el=(0,S.s)(),h[0]=el):el=h[0];let[ei,er]=(0,u.useState)(el),ea;h[1]===Symbol.for("react.memo_cache_sentinel")?(ea=()=>{requestAnimationFrame(()=>{Z.current?.send({type:"focus"})})},h[1]=ea):ea=h[1];let ed=ea,eu;h[2]===Symbol.for("react.memo_cache_sentinel")?(eu=()=>{J.current=!0,er((0,S.s)())},h[2]=eu):eu=h[2];let em=eu,ef;h[3]!==C||h[4]!==O?(ef=e=>{"ready"===e.type&&(J.current=!1,C&&ed()),"focused"===e.type&&K(!0),"blurred"===e.type&&K(!1),"mutation"!==e.type||J.current||O(e.value||eY)},h[3]=C,h[4]=O,h[5]=ef):ef=h[5];let ep=ef,eh;h[6]===Symbol.for("react.memo_cache_sentinel")?(eh=()=>{X.current?.scrollIntoView(eV)},h[6]=eh):eh=h[6];let ex=eh,eg;h[7]===D?eg=h[8]:(eg=()=>{let e=Z.current?(0,z._W)(Z.current.getSnapshot()):eY;D?.(e),em(),ed(),ex()},h[7]=D,h[8]=eg);let ey=eg,eb;h[9]===L?eb=h[10]:(eb=()=>{L(),em()},h[9]=L,h[10]=eb);let ev=eb,ew;h[11]===Symbol.for("react.memo_cache_sentinel")?(ew={open:()=>{ee(!0)},close:()=>{ee(!1),ed()}},h[11]=ew):ew=h[11];let ej=ew,eC,ek;h[12]===Symbol.for("react.memo_cache_sentinel")?(eC=()=>({focus:ed,blur(){Z.current?.send({type:"blur"})},scrollTo:ex,reset:em,discardDialogController:ej}),ek=[ej,ed,em,ex],h[12]=eC,h[13]=ek):(eC=h[12],ek=h[13]),(0,u.useImperativeHandle)(x,eC,ek),h[14]===Y?t=h[15]:(t=e=>{if(!Y)return;let t=e.target,n=eo.current;n&&t===et.current?(0,b.p)(n):n&&t===en.current&&(0,b.f)(n)},h[14]=Y,h[15]=t);let e_=t,eS;h[16]!==ev||h[17]!==$||h[18]!==Q?(eS=Q&&$&&(0,f.jsx)(ec,{onClose:$,onConfirm:ev}),h[16]=ev,h[17]=$,h[18]=Q,h[19]=eS):eS=h[19],h[20]===Symbol.for("react.memo_cache_sentinel")?(n=(0,I.Wz)(es),h[20]=n):n=h[20];let eI=V||eY,eN;h[21]!==B||h[22]!==eI?(eN={schemaDefinition:n,initialValue:eI,readOnly:B},h[21]=B,h[22]=eI,h[23]=eN):eN=h[23],h[24]===Symbol.for("react.memo_cache_sentinel")?(o=(0,f.jsx)(eM,{ref:Z}),h[24]=o):o=h[24],h[25]===ep?l=h[26]:(l=(0,f.jsx)(E.Un,{on:ep}),h[25]=ep,h[26]=l),h[27]===Symbol.for("react.memo_cache_sentinel")?(i=(0,f.jsx)(A.U,{}),h[27]=i):i=h[27];let eO=B??!1,eE;h[28]===eO?eE=h[29]:(eE=(0,f.jsx)(eG,{readOnly:eO}),h[28]=eO,h[29]=eE);let eA=V??void 0,ez;h[30]===eA?ez=h[31]:(ez=(0,f.jsx)(eK,{value:eA}),h[30]=eA,h[31]=ez),h[32]===Y?r=h[33]:(r=Y&&(0,f.jsx)("div",{ref:et,tabIndex:0}),h[32]=Y,h[33]=r);let e$=D&&ey,eL;return h[34]!==g||h[35]!==y||h[36]!==Y||h[37]!==N||h[38]!==P||h[39]!==T||h[40]!==W||h[41]!==U||h[42]!==e$||h[43]!==q?(eL=(0,f.jsx)(w.Tk,{ref:eo,children:(0,f.jsx)(eB,{avatarSize:g,currentUser:y,focusLock:Y,onBlur:N,onFocus:P,onKeyDown:T,onSubmit:e$,placeholder:W,renderBlock:U,withAvatar:q})}),h[34]=g,h[35]=y,h[36]=Y,h[37]=N,h[38]=P,h[39]=T,h[40]=W,h[41]=U,h[42]=e$,h[43]=q,h[44]=eL):eL=h[44],h[45]===Y?a=h[46]:(a=Y&&(0,f.jsx)("div",{ref:en,tabIndex:0}),h[45]=Y,h[46]=a),h[47]!==v||h[48]!==C||h[49]!==G||h[50]!==_||h[51]!==R||h[52]!==B||h[53]!==r||h[54]!==eL||h[55]!==a||h[56]!==V?(s=(0,f.jsxs)(eF,{exp
5andOnFocus:v,focused:G,focusOnMount:C,mentionOptions:_,onMentionMenuOpenChange:R,readOnly:B,value:V,children:[r,eL,a]}),h[47]=v,h[48]=C,h[49]=G,h[50]=_,h[51]=R,h[52]=B,h[53]=r,h[54]=eL,h[55]=a,h[56]=V,h[57]=s):s=h[57],h[58]!==ei||h[59]!==eN||h[60]!==l||h[61]!==eE||h[62]!==ez||h[63]!==s?(c=(0,f.jsxs)(k.zz,{initialConfig:eN,children:[o,l,i,eE,ez,s]},ei),h[58]=ei,h[59]=eN,h[60]=l,h[61]=eE,h[62]=ez,h[63]=s,h[64]=c):c=h[64],h[65]!==e_||h[66]!==c?(d=(0,f.jsx)(w.Tk,{ref:X,"data-testid":"comment-input",onFocus:e_,children:c}),h[65]=e_,h[66]=c,h[67]=d):d=h[67],h[68]!==eS||h[69]!==d?(p=(0,f.jsxs)(f.Fragment,{children:[eS,d]}),h[68]=eS,h[69]=d,h[70]=p):p=h[70],p}function eG(e){let t=(0,m.c)(4),n=(0,_.t)(),o,l;return t[0]!==n||t[1]!==e.readOnly?(o=()=>{n.send({type:"update readOnly",readOnly:e.readOnly})},l=[n,e.readOnly],t[0]=n,t[1]=e.readOnly,t[2]=o,t[3]=l):(o=t[2],l=t[3]),(0,u.useEffect)(o,l),null}function eK(e){let t=(0,m.c)(4),n=(0,_.t)(),o,l;return t[0]!==n||t[1]!==e.value?(o=()=>{n.send({type:"update value",value:e.value})},l=[n,e.value],t[0]=n,t[1]=e.value,t[2]=o,t[3]=l):(o=t[2],l=t[3]),(0,u.useEffect)(o,l),null}}}]);
6//# sourceMappingURL=549.1d4858057cbf48b1.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.