PageSourceSearch

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

js apopro.dk collected 2026-09-25 02:39:13 UTC 10,285 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1544,4008],{11544:(e,t,n)=>{n.r(t),n.d(t,{AddCommentIcon:()=>o,default:()=>o});var l=n(12115),a=n(95155);let o=(0,l.forwardRef)(function(e,t){return(0,a.jsx)("svg",{"data-sanity-icon":"add-comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,ref:t,children:(0,a.jsx)("path",{d:"M13 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5H9.5V20.5L13.5 16.5H16.5C17.6046 16.5 18.5 15.6046 18.5 14.5V12M15 6.5H22M18.5 10V3",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})},38318:(e,t,n)=>{n.d(t,{t:()=>i});var l=n(12115),a=n(19749),o=n(80825);function i(){let e=(0,a.c)(1),t=(0,l.useContext)(o.F8);if(!t){let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={upsellData:null,handleOpenDialog:m,handleClose:h,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:p,dialogPrimaryClicked:u,panelViewed:s,panelDismissed:c,panelPrimaryClicked:d,panelSecondaryClicked:r}},e[0]=t):t=e[0],t}return t}function r(){return null}function d(){return null}function c(){return null}function s(){return null}function u(){return null}function p(){return null}function h(){return null}function m(){return null}},64008:(e,t,n)=>{n.r(t),n.d(t,{CommentsField:()=>M});var l=n(30200),a=n(37846),o=n(62858),i=n(54796),r=n(80985),d=n(11695),c=n(17065),s=n(70568),u=n(55786),p=n(39115),h=n(38318),m=n(12115),f=n(19749),g=n(95155),x=n(80825),C=n(21565),y=n(30457),b=n(67460),I=n(51862),k=n(6052),w=n(97931),v=n(20129),j=n(18608),D=n(46983),P=n(69685),_=n(70574),S=n(11544);let $=(0,I.I4)(k.so).withConfig({displayName:"ContentStack",componentId:"sc-kyng0k-0"})`width:320px;`;function A(e){let t,n,l,r,u,p=(0,f.c)(69),{count:h,currentUser:x,fieldTitle:b,isCreatingDataset:I,mentionOptions:w,onChange:v,onClick:j,onClose:D,onCommentAdd:P,onDiscard:A,onInputKeyDown:N,open:H,value:E}=e,{t:M}=(0,a.t)(c.b),{error:O}=(0,s.t)(),V=(0,m.useRef)(null),[z,L]=(0,m.useState)(null),R=(0,m.useRef)(null),T=h>0,F;p[0]!==z||p[1]!==D||p[2]!==H?(F=()=>{H&&(D(),z?.focus())},p[0]=z,p[1]=D,p[2]=H,p[3]=F):F=p[3];let K=F,Y;p[4]!==K||p[5]!==P?(Y=e=>{P(e),K()},p[4]=K,p[5]=P,p[6]=Y):Y=p[6];let B=Y,J;p[7]===E?J=p[8]:(J=(0,c.d)(E),p[7]=E,p[8]=J);let W=J,Z;p[9]!==K||p[10]!==W?(Z=()=>{W?R.current?.discardDialogController.open():K()},p[9]=K,p[10]=W,p[11]=Z):Z=p[11];let q=Z,G;p[12]===N?G=p[13]:(G=e=>{e.isDefaultPrevented()||N&&N(e)},p[12]=N,p[13]=G);let Q=G,U;p[14]===Symbol.for("react.memo_cache_sentinel")?(U=()=>{R.current?.discardDialogController.close()},p[14]=U):U=p[14];let X=U,ee;p[15]!==K||p[16]!==A?(ee=()=>{R.current?.discardDialogController.close(),K(),A()},p[15]=K,p[16]=A,p[17]=ee):ee=p[17];let et=ee,en;p[18]===q?en=p[19]:(en=e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),q())},p[18]=q,p[19]=en);let el=en,ea;if(p[20]===Symbol.for("react.memo_cache_sentinel")?(ea=()=>[V.current],p[20]=ea):ea=p[20],(0,C.t)(H&&q,ea),!T){let e,t,n,l,a,r;p[21]===b?e=p[22]:(e={field:b},p[21]=b,p[22]=e),p[23]!==M||p[24]!==e?(t=(0,g.jsx)(i.t,{t:M,i18nKey:"compose.add-comment-input-placeholder",values:e}),p[23]=M,p[24]=e,p[25]=t):t=p[25];let s=t,u;p[26]!==x||p[27]!==et||p[28]!==Q||p[29]!==B||p[30]!==I||p[31]!==w||p[32]!==v||p[33]!==s||p[34]!==E?(u=(0,g.jsx)($,{padding:2,gap:4,flexDirection:"column",children:(0,g.jsx)(c.o,{currentUser:x,focusLock:!0,focusOnMount:!0,mentionOptions:w,onChange:v,onDiscardCancel:X,onDiscardConfirm:et,onKeyDown:Q,onSubmit:B,placeholder:s,readOnly:I,ref:R,value:E})}),p[26]=x,p[27]=et,p[28]=Q,p[29]=B,p[30]=I,p[31]=w,p[32]=v,p[33]=s,p[34]=E,p[35]=u):u=p[35];let h=u,m;p[36]===Symbol.for("react.memo_cache_sentinel")?(m=["bottom-end"],p[36]=m):m=p[36],p[37]===M?n=p[38]:(n=M("field-button.aria-label-add"),p[37]=M,p[38]=n);let f=I||!!O,C;return p[39]===M?C=p[40]:(C=M("field-button.title"),p[39]=M,p[40]=C),p[41]===C?l=p[42]:(l={content:C,placement:"top"},p[41]=C,p[42]=l),p[43]!==j||p[44]!==H||p[45]!==n||p[46]!==f||p[47]!==l?(a=(0,g.jsx)("div",{children:(0,g.jsx)(o.o,{"aria-label":n,disabled:f,icon:S.AddCommentIcon,mode:"bleed",onClick:j,ref:L,selected:H,tooltipProps:l})}),p[43]=j,p[44]=H,p[45]=n,p[46]=f,p[47]=l,p[48]=a):a=p[48],p[49]!==h||p[50]!==el||p[51]!==H||p[52]!==a?(r=(0,g.jsx)(d.r,{constrainSize:!0,content:h,fallbackPlacements:m,open:H,placement:"right-start",portal:!0,ref:V,onKeyDown:el,children:a}),p[49]=h,p[50]=el,p[51]=H,p[52]=a,p[53]=r):r=p[53],r}p[54]!==h||p[55]!==M?(t=M("field-button.content",{count:h}),p[54]=h,p[55]=M,p[56]=t):t=p[56],p[57]===M?n=p[58]:(n=M("field-button.aria-label-open"),p[57]=M,p[58]=n),p[59]===Symbol.for("react.memo_cache_sentinel")?(l=(0,g.jsx)(k.In,{muted:!0,size:1,icon:_.CommentIcon,style:{margin:"-0.375rem"}}),p[59]=l):l=p[59];let eo=h>9?"9+":h,ei;return p[60]===eo?ei=p[61]:(ei=(0,g.jsxs)(k.so,{alignItems:"center",gap:2,children:[l,(0,g.jsx)(k.EY,{size:0,as:"div",trim:!0,children:eo})]}),p[60]=eo,p[61]=ei),p[62]!==j||p[63]!==n||p[64]!==ei?(r=(0,g.jsx)(y.t,{"aria-label":n,mode:"bleed",onClick:j,padding:2,gap:2,children:ei}
1),p[62]=j,p[63]=n,p[64]=ei,p[65]=r):r=p[65],p[66]!==r||p[67]!==t?(u=(0,g.jsx)(o.s,{portal:!0,placement:"top",content:t,children:r}),p[66]=r,p[67]=t,p[68]=u):u=p[68],u}let N=new Map,H=[],E={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function M(e){let t,n=(0,f.c)(5),{enabled:l,mode:a}=(0,u.t)();if(!l){let t;return n[0]===e?t=n[1]:(t=e.renderDefault(e),n[0]=e,n[1]=t),t}return n[2]!==a||n[3]!==e?(t=(0,g.jsx)(z,{...e,mode:a}),n[2]=a,n[3]=e,n[4]=t):t=n[4],t}let O=(0,I.I4)(v.PY1.div).withConfig({displayName:"HighlightDiv",componentId:"sc-9nisbw-0"})(({theme:e})=>{let{radius:t,space:n,color:l}=e.sanity,a=D.OZ[c.n][l.dark?900:50].hex;return(0,I.AH)`mix-blend-mode:${l.dark?"screen":"multiply"};border-radius:${t[3]}px;top:-${n[2]}px;left:-${n[2]}px;bottom:-${n[2]}px;right:-${n[2]}px;pointer-events:none;position:absolute;z-index:1;width:calc(100% + ${2*n[2]}px);height:calc(100% + ${2*n[2]}px);background-color:${a};`}),V=(0,I.I4)(k.Tk).withConfig({displayName:"FieldStack",componentId:"sc-9nisbw-1"})`position:relative;&:empty:not([hidden]){display:none;}`;function z(e){let t,n,a,o,i,d,s,u=(0,f.c)(86),{mode:C}=e,y=(0,r.n)(),{element:I}=(0,b.a)(),k=(0,m.useRef)(null),{comments:v,isCommentsOpen:D,isCreatingDataset:_,mentionOptions:S,onCommentsOpen:$,operation:M,setStatus:z,status:F}=(0,c.t)(),{upsellData:K,handleOpenDialog:Y}=(0,h.t)(),{selectedPath:B,setSelectedPath:J}=(0,p.t)(),{authoringPath:W,setAuthoringPath:Z}=function(){let e=(0,m.useContext)(x.ki);if(!e)throw Error("useCommentsAuthoringPath: missing context value");return e}(),q;u[0]===I?q=u[1]:(q={boundaryElement:I},u[0]=I,u[1]=q);let{scrollToGroup:G}=(0,c.y)(q),Q;
1u[2]===e.schemaType?Q=u[3]:(Q=(0,l.Jt)(e.schemaType),u[2]=e.schemaType,u[3]=Q);let U=Q,X;u[4]===e.path?X=u[5]:(X=w.dI(e.path),u[4]=e.path,u[5]=X);let ee=X,et;u[6]===ee?et=u[7]:(et=N.get(ee)||null,u[6]=ee,u[7]=et);let[en,el]=(0,m.useState)(et),ea=W===ee,eo;u[8]!==D||u[9]!==e.path||u[10]!==B?.fieldPath||u[11]!==B?.origin?(eo=()=>!!D&&B?.origin!=="form"&&B?.origin!=="url"&&T(B?.fieldPath,e.path),u[8]=D,u[9]=e.path,u[10]=B?.fieldPath,u[11]=B?.origin,u[12]=eo):eo=u[12],B?.fieldPath,B?.origin,u[13]===eo?t=u[14]:(t=eo(),u[13]=eo,u[14]=t);let ei=t;if(B?.threadId,u[15]!==v.data.open||u[16]!==B?.threadId){let e;u[18]===B?.threadId?e=u[19]:(e=e=>e.threadId===B?.threadId,u[18]=B?.threadId,u[19]=e),n=v.data.open.filter(e).some(R),u[15]=v.data.open,u[16]=B?.threadId,u[17]=n}else n=u[17];let er=n,ed;if(u[20]!==v.data.open||u[21]!==e.path){let t;u[23]===e.path?t=u[24]:(t=t=>T(t.fieldPath,e.path)?t.commentsCount:0,u[23]=e.path,u[24]=t),ed=v.data.open.map(t).reduce(L,0),u[20]=v.data.open,u[21]=e.path,u[22]=ed}else ed=u[22];let ec=ed||0,es=ec>0,eu;u[25]===ee?eu=u[26]:(eu=()=>{el(null),N.delete(ee)},u[25]=ee,u[26]=eu);let ep=eu,eh;u[27]!==v.data.open||u[28]!==Y||u[29]!==es||u[30]!==ea||u[31]!==C||u[32]!==$||u[33]!==e.path||u[34]!==G||u[35]!==Z||u[36]!==J||u[37]!==z||u[38]!==F||u[39]!==ee||u[40]!==K?(eh=()=>{if(es){"resolved"===F&&z("open"),Z(null),$?.();let t=v.data.open.find(t=>T(t.fieldPath,e.path));t&&(J({threadId:t.threadId,origin:"form",fieldPath:t.fieldPath}),G(t.threadId));return}"upsell"===C?K?Y("field_action"):$?.():Z(ea?null:ee)},u[27]=v.data.open,u[28]=Y,u[29]=es,u[30]=ea,u[31]=C,u[32]=$,u[33]=e.path,u[34]=G,u[35]=Z,u[36]=J,u[37]=z,u[38]=F,u[39]=ee,u[40]=K,u[41]=eh):eh=u[41];let em=eh,ef;u[42]!==$||u[43]!==M||u[44]!==e.path||u[45]!==ep||u[46]!==G||u[47]!==J||u[48]!==z||u[49]!==F?(ef=t=>{if(t){let n=(0,P.A)(),l={type:"field",fieldPath:w.dI(e.path),message:t,parentCommentId:void 0,status:"open",threadId:n,reactions:H};M.create(l),$?.(),"resolved"===F&&z("open"),ep(),J({threadId:n,origin:"form",fieldPath:w.dI(e.path)}),G(n)}},u[42]=$,u[43]=M,u[44]=e.path,u[45]=ep,u[46]=G,u[47]=J,u[48]=z,u[49]=F,u[50]=ef):ef=u[50];let eg=ef,ex;u[51]===Z?ex=u[52]:(ex=()=>Z(null),u[51]=Z,u[52]=ex);let eC=ex,ey;u[53]===ee?ey=u[54]:(ey=e=>{el(e),N.set(ee,e)},u[53]=ee,u[54]=ey);let eb=ey,eI;u[55]!==ec||u[56]!==y||u[57]!==U||u[58]!==em||u[59]!==eC||u[60]!==eg||u[61]!==eb||u[62]!==_||u[63]!==ea||u[64]!==S||u[65]!==ep||u[66]!==en?(eI=y&&(0,g.jsx)(A,{count:Number(ec),currentUser:y,fieldTitle:U,isCreatingDataset:_,mentionOptions:S,onChange:eb,onClick:em,onClose:eC,onCommentAdd:eg,onDiscard:ep,open:ea,value:en}),u[55]=ec,u[56]=y,u[57]=U,u[58]=em,u[59]=eC,u[60]=eg,u[61]=eb,u[62]=_,u[63]=ea,u[64]=S,u[65]=ep,u[66]=en,u[67]=eI):eI=u[67],u[68]!==es||u[69]!==ea||u[70]!==eI?(a={button:eI,hasComments:es,isAddingComment:ea},u[68]=es,u[69]=ea,u[70]=eI,u[71]=a):a=u[71];let ek=a,ew;return u[72]===e.path?ew=u[73]:(ew=(0,c.g)(w.dI(e.path)),u[72]=e.path,u[73]=ew),u[74]!==ek||u[75]!==e?(o=e.renderDefault({...e,__internal_comments:ek}),u[74]=ek,u[75]=e,u[76]=o):o=u[76],u[77]!==er||u[78]!==ei?(i=ei&&!er&&(0,g.jsx)(O,{animate:"animate",exit:"exit",initial:"initial",variants:E}),u[77]=er,u[78]=ei,u[79]=i):i=u[79],u[80]===i?d=u[81]:(d=(0,g.jsx)(j.N,{children:i}),u[80]=i,u[81]=d),u[82]!==ew||u[83]!==o||u[84]!==d?(s=(0,g.jsxs)(V,{...ew,ref:k,children:[o,d]}),u[82]=ew,u[83]=o,u[84]=d,u[85]=s):s=u[85],s}function L(e,t){return e+t}function R(e){return(0,c.f)(e.parentComment)}function T(e,t){let n=(0,c.p)(e);return!!n&&w.w1(t,n)}}}]);
2//# sourceMappingURL=4008.b0ad2588871c4855.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.