PageSourceSearch

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

js apopro.dk collected 2026-09-25 02:38:49 UTC 14,275 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1544,2910],{11544:(e,t,n)=>{n.r(t),n.d(t,{AddCommentIcon:()=>o,default:()=>o});var l=n(12115),r=n(95155);let o=(0,l.forwardRef)(function(e,t){return(0,r.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,r.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:()=>a});var l=n(12115),r=n(19749),o=n(80825);function a(){let e=(0,r.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:p,handleClose:f,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:m,dialogPrimaryClicked:d,panelViewed:s,panelDismissed:u,panelPrimaryClicked:c,panelSecondaryClicked:i}},e[0]=t):t=e[0],t}return t}function i(){return null}function c(){return null}function u(){return null}function s(){return null}function d(){return null}function m(){return null}function f(){return null}function p(){return null}},92910:(e,t,n)=>{n.r(t),n.d(t,{CommentsInput:()=>Y});var l=n(30200),r=n(97325),o=n(37846),a=n(62858),i=n(80985),c=n(11695),u=n(17065),s=n(85530),d=n(70568),m=n(55786),f=n(39115),p=n(38318),h=n(12115),y=n(19749),g=n(95155),b=n(36958),S=n(13638),C=n(21565),_=n(67460),v=n(40220),k=n(51862),x=n(6052),I=n(97931),w=n(51452),j=n(20129),E=n(18608),D=n(69685),P=n(85948),R=n(11544);let O=(0,k.I4)(j.PY1.create(c.r)).withConfig({displayName:"MotionPopover",componentId:"sc-7suyjs-0"})`user-select:none;`,M=["bottom","top"],L={hidden:{opacity:0,y:-4},visible:{opacity:1,y:0}};function V(e){let t,n=(0,y.c)(13),{disabled:l,onClick:r,onClickOutside:i,referenceElement:c}=e,d=(0,h.useRef)(null),{t:m}=(0,o.t)(u.b),f;n[0]===Symbol.for("react.memo_cache_sentinel")?(f=()=>[d.current],n[0]=f):f=n[0],(0,C.t)(i,f),n[1]===m?t=n[2]:(t=m("inline-add-comment-button.disabled-overlap-title"),n[1]=m,n[2]=t);let p=t,b;n[3]===m?b=n[4]:(b=m("inline-add-comment-button.title"),n[3]=m,n[4]=b);let S=l?p:b,_=l?s.o:R.AddCommentIcon,v;n[5]!==l||n[6]!==r||n[7]!==_||n[8]!==S?(v=(0,g.jsx)(a.o,{"data-testid":"inline-comment-button",disabled:l,icon:_,mode:"bleed",onClick:r,ref:d,text:S}),n[5]=l,n[6]=r,n[7]=_,n[8]=S,n[9]=v):v=n[9];let k=v,x;return n[10]!==k||n[11]!==c?(x=(0,g.jsx)(O,{animate:"visible",content:k,contentEditable:!1,fallbackPlacements:M,initial:"hidden",open:!0,padding:1,placement:"bottom",portal:!0,referenceElement:c,variants:L}),n[10]=k,n[11]=c,n[12]=x):x=n[12],x}let A=["bottom","top"],T=(0,k.I4)(x.so).withConfig({displayName:"RootStack",componentId:"sc-orhtcy-0"})`width:250px;`;function H(e){let t,n,l,r=(0,y.c)(20),{currentUser:o,mentionOptions:a,onChange:i,onClickOutside:s,onDiscardConfirm:d,onSubmit:m,referenceElement:f,value:p}=e,b=(0,h.useRef)(null),S=(0,h.useRef)(null),k=(0,_.r)().elements?.documentScrollElement||null,x;r[0]===d?x=r[1]:(x=()=>{b.current?.discardDialogController.close(),d()},r[0]=d,r[1]=x);let I=x,w;r[2]===Symbol.for("react.memo_cache_sentinel")?(w=()=>{b.current?.discardDialogController.close()},r[2]=w):w=r[2];let j=w,E;r[3]!==s||r[4]!==p?(E=()=>{(0,u.d)(p)?b.current?.discardDialogController.open():s()},r[3]=s,r[4]=p,r[5]=E):E=r[5],r[6]===Symbol.for("react.memo_cache_sentinel")?(t=()=>[S.current],r[6]=t):t=r[6],(0,C.t)(E,t),r[7]!==o||r[8]!==I||r[9]!==a||r[10]!==i||r[11]!==m||r[12]!==p?(n=(0,g.jsx)(T,{padding:2,ref:S,flexDirection:"column",children:(0,g.jsx)(u.o,{currentUser:o,focusLock:!0,focusOnMount:!0,mentionOptions:a,onChange:i,onDiscardCancel:j,onDiscardConfirm:I,onSubmit:m,ref:b,value:p})}),r[7]=o,r[8]=I,r[9]=a,r[10]=i,r[11]=m,r[12]=p,r[13]=n):n=r[13],r[14]!==k||r[15]!==n?(l=(0,g.jsx)(v.EZ,{element:k,children:n}),r[14]=k,r[15]=n,r[16]=l):l=r[16];let D=l,P;return r[17]!==D||r[18]!==f?(P=(0,g.jsx)(c.r,{content:D,"data-ui":"InlineCommentInputPopover",fallbackPlacements:A,open:!0,placement:"bottom",portal:!0,referenceElement:f}),r[17]=D,r[18]=f,r[19]=P):P=r[19],P}let B=[];function N(e){let t,n=(0,y.c)(5),{enabled:l,mode:o}=(0,m.t)(),a=(0,r.t)(),i="sanity.assist.instruction.prompt"===e.schemaType.n
1ame,c=!!a.__internal_comments;if(!l||i||!c){let t;return n[0]===e?t=n[1]:(t=e.renderDefault(e),n[0]=e,n[1]=t),t}return n[2]!==o||n[3]!==e?(t=(0,g.jsx)(F,{...e,mode:o}),n[2]=o,n[3]=e,n[4]=t):t=n[4],t}let F=(0,h.memo)(function(e){var t;let n,r,o,a,c,m,C,k,j,R=(0,y.c)(107),{mode:O,onItemClose:M,onItemOpen:L}=e,A=(0,i.n)(),T=(0,_.r)(),{comments:N,getComment:F,mentionOptions:Y,onCommentsOpen:z,operation:J,setStatus:K,status:Q}=(0,u.t)(),{error:$}=(0,d.t)(),{setSelectedPath:ee,selectedPath:et}=(0,f.t)(),{scrollToComment:en,scrollToGroup:el}=(0,u.y)(),{handleOpenDialog:er}=(0,p.t)(),[eo,ea]=(0,h.useState)(!1),ei=(0,h.useRef)(null),ec;R[0]===Symbol.for("react.memo_cache_sentinel")?(ec=[],R[0]=ec):ec=R[0];let eu=(0,l.Ar)(ec),es=(0,h.useRef)(eu),ed,em;R[1]===eu?(ed=R[2],em=R[3]):(ed=()=>{es.current=eu},em=[eu],R[1]=eu,R[2]=ed,R[3]=em),(0,h.useLayoutEffect)(ed,em);let[ef,ep]=(0,h.useState)(null),[eh,ey]=(0,h.useState)(null),[eg,eb]=(0,h.useState)(null),[eS,eC]=(0,h.useState)(null),[e_,ev]=(0,h.useState)(null),[ek,ex]=(0,h.useState)(null),[eI,ew]=(0,h.useState)(!1),[ej,eE]=(0,h.useState)(null),[eD,eP]=(0,h.useState)(!1),[eR,eO]=(0,h.useState)(B),[eM,eL]=(0,h.useState)(null),eV;R[4]===Symbol.for("react.memo_cache_sentinel")?(eV=()=>ei.current?P.Og.getFragment(ei.current):B,R[4]=eV):eV=R[4];let eA=eV,eT;R[5]===Symbol.for("react.memo_cache_sentinel")?(eT=()=>{let e,t;ev((e=window.getSelection(),t=null,e&&e.rangeCount>0&&(t=e.getRangeAt(0)),t?.getBoundingClientRect()||null))},R[5]=eT):eT=R[5];let eH=eT,eB;R[6]===Symbol.for("react.memo_cache_sentinel")?(eB=()=>{eC(null),ev(null),eb(null),ey(null),ew(!1),ep(null),eL(null)},R[6]=eB):eB=R[6];let eN=eB,eF;R[7]!==eS||R[8]!==er||R[9]!==O?(eF=()=>{"upsell"===O?er("pte"):(eL(eA()||null),eb(eS))},R[7]=eS,R[8]=er,R[9]=O,R[10]=eF):eF=R[10];let eZ=eF,eq;R[11]===Symbol.for("react.memo_cache_sentinel")?(eq=()=>{eN()},R[11]=eq):eq=R[11];let eG=eq,eU;if(R[12]!==N.data.open||R[13]!==e.path){let t;R[15]===e.path?t=R[16]:(t=t=>{let n=(0,u.p)(t.fieldPath);return!!n&&I.w1(e.path,n)},R[15]=e.path,R[16]=t),eU=N.data.open.filter(q).filter(t).map(G),R[12]=N.data.open,R[13]=e.path,R[14]=eU}else eU=R[14];let eW=eU,eX;R[17]!==eM||R[18]!==eg||R[19]!==z||R[20]!==J||R[21]!==e.path||R[22]!==el||R[23]!==ee||R[24]!==K||R[25]!==Q?(eX=t=>{if(!eg||!ei.current)return;let n=eg.backward?{backward:!1,anchor:eg.focus,focus:eg.anchor}:eg,l=(0,s.n)(es.current,e.path,n.focus.path);if(!l)return;let r=(0,s.t)({fragment:eM||B,selection:n,documentValue:es.current,basePath:e.path}),o=(0,D.A)();J.create({type:"field",contentSnapshot:eM,fieldPath:l,message:t,parentCommentId:void 0,reactions:B,selection:r,status:"open",threadId:o}),z?.(),"resolved"===Q&&K("open"),ee({fieldPath:l,threadId:o,origin:"form"}),el(o),eN()},R[17]=eM,R[18]=eg,R[19]=z,R[20]=J,R[21]=e.path,R[22]=el,R[23]=ee,R[24]=K,R[25]=Q,R[26]=eX):eX=R[26];let eY=eX,ez;R[27]!==F||R[28]!==z||R[29]!==en||R[30]!==ee?(ez=e=>{let t=F(e);t&&(ee({fieldPath:t.target.path?.field||"",threadId:t.threadId,origin:"form"}),z?.(),en(t._id))},R[27]=F,R[28]=z,R[29]=en,R[30]=ee,R[31]=ez):ez=R[31];let eJ=ez,eK=(0,h.useRef)(!1),eQ=(0,h.useRef)(!1),e$;R[32]===L?e$=R[33]:(e$=e=>{eQ.current=!0,eN(),L(e)},R[32]=L,R[33]=e$);let e0=e$,e1;R[34]===M?e1=R[35]:(e1=()=>{eQ.current=!1,M()},R[34]=M,R[35]=e1);let e5=e1,e2;R[36]===eo?e2=R[37]:(e2=e=>{if(eQ.current)return void ew(!1);let t=e?.anchor.offset!==e?.focus.offset;if(!eA()?.every(S.L4)||!t)return void ew(!1);if(eK.current){eK.current=!1;return}eo||eH(),eC(e),ew(!0)},R[36]=eo,R[37]=e2);let e4=(t=e2,(n=(0,y.c)(2))[0]===t?r=n[1]:(r=(0,b.A)(t,200),n[0]=t,n[1]=r),r),e6;R[38]===Symbol.for("react.memo_cache_sentinel")?(e6=()=>{eK.current=!1,eQ.current=!1,(0,h.startTransition)(()=>ea(!0))},R[38]=e6):e6=R[38];let e3=e6,e8;R[39]===Symbol.for("react.memo_cache_sentinel")?(e8=()=>{(0,h.startTransition)(()=>ea(!1)),eH()},R[39]=e8):e8=R[39];let e9=e8,e7;R[40]===Symbol.for("react.memo_cache_sentinel")?(e7=e=>{let{rangeDecoration:t,newSelection:n}=e,l=t.payload?.commentId;eO(e=>e.map(e=>e.payload?.commentId===l?{...t,selection:n,payload:{...t.payload,dirty:!0}}:e))},R[40]=e7):e7=R[40];let te=e7,tt;R[41]!==eR||R[42]!==F||R[43]!==J||R[44]!==e.path?(tt=()=>{let t=eR.filter(U);0!==t.length&&(t.forEach(t=>{let n=F(t.payload?.commentId||"");if(!n||!ei.current)return;let l=P.Og.getValue(ei.current)||B,[r]=(0,s.i)({comments:[n],value:l,documentValue:es.current,basePath:e.path}),o=r?.range?[r.range]:B,a=r?[...n.target.path?.selection?.value.filter(e=>e._key!==o[0]?._key).concat(o).flat().sort(W)||B]:B,i={target:{...n.target,path:{...n.target?.path,field:n.target.path?.field||"",selection:{type:"text",value:a}}}};(0,w.j)(n.target,i.target)||J.update(n._id,i)}),eO(e=>e.map(e=>t.find(t=>t.payload?.commentId===e.payload?.commentId)?.payload?.dirty?{...e,payload:{...e.payload,dirty:!1}}:e).filter(X)))},R[41]=eR,R[42]=F,R[43]=J,R[44]=e.path,R[45]=tt):tt=R[45];let tn=tt,tl;R[46]!==ek||R[47]!==eJ||R[48]!==e.path||R[49]!==et?.threadId?(tl=t=>{if(!ei.current)return B;let n=P.Og.getValue(ei.current)||B;return(0,s.r)({comments:t,currentHoveredCommentId:ek,onDecorationClick:eJ,onDecorationHoverEnd:ex,onDecorationHoverStart:ex,onDecorationMoved:te,selectedThreadId:et?.threadId||null,value:n,documentValue:es.current,basePath:e.path})},R[46]=ek,R[47]=eJ,R[48]=e.path,R[49]=et?.threadId,R[50]=tl):tl=R[50],et?.threadId;let tr=tl,to;R[51]!==e4||R[52]!==tn?(to=e=>{"mutation"===e.type&&tn(),"blur"===e.type&&(eK.current=!0),"selection"===e.type&&e4(e.selection)},R[51]=e4,R[52]=tn,R[53]=to):to=R[53];let ta=to,ti;e:{let e,t;if(!eg){ti=null;break e}R[54]===Symbol.for("react.memo_cache_sentinel")?(e=e=>{let{children:t}=e;return(0,g.jsx)(s.a,{isAuthoring:!0,ref:ep,children:t})},R[54]=e):e=R[54],R[55]===eg?t=R[56]:(t={component:e,selection:eg},R[55]=eg,R[56]=t),ti=t}let tc=ti,tu=e?.rangeDecorations||B,ts;R[57]!==eR||R[58]!==tc||R[59]!==tu?(ts=[...tu,...tc?[tc]:B,...eR],R[57]=eR,R[58]=tc,R[59]=tu,R[60]=ts):ts=R[60];let td=ts,[tm,tf]=(0,h.useState)(!1),tp,th;R[61]!==eR||R[62]!==eS?(tp=()=>{(0,h.startTransition)(()=>tf(()=>!!eS&&0!==eR.length&&eR.some(e=>{if(!ei.current)return!1;let t=P.Og.isSelectionsOverlapping(ei.current,eS,e.selection),n=P.Og.isSelectionsOverlapping(ei.current,e.
1selection,eS);return t||n})))},th=[eR,eS],R[61]=eR,R[62]=eS,R[63]=tp,R[64]=th):(tp=R[63],th=R[64]),(0,h.useEffect)(tp,th);let ty=eD?document.body:T.elements?.documentScrollElement||document.body,tg=eD?T.elements?.documentScrollElement||document.body:ej,tb=!eg||!ef,tS;R[65]!==ty||R[66]!==tb?(tS={scrollElement:ty,disabled:tb,selector:'[data-inline-comment-state="authoring"]'},R[65]=ty,R[66]=tb,R[67]=tS):tS=R[67];let tC=function(e){let t=(0,y.c)(6),{scrollElement:n,disabled:l,selector:r}=e,o;t[0]!==l||t[1]!==n||t[2]!==r?(o={scrollElement:n,disabled:l,selector:r},t[0]=l,t[1]=n,t[2]=r,t[3]=o):o=t[3];let a=function(e){let t=(0,y.c)(5),{scrollElement:n,disabled:l,selector:r}=e,[o,a]=(0,h.useState)(null),i,c;return t[0]!==l||t[1]!==n||t[2]!==r?(i=()=>{if(l)return;let e=()=>{let e=document?.querySelectorAll(r);e&&a(function(e){if(!e||!e.length)return null;let t=e.map(e=>e.getBoundingClientRect()),n=Math.min(...t.map(e=>e.x))||0,l=Math.min(...t.map(e=>e.y))||0,r=Math.max(...t.map(e=>e.right))||0,o=Math.max(...t.map(e=>e.bottom))||0;return{x:n,y:l,width:r-n,height:o-l,top:l,right:r,bottom:o,left:n}}(Array.from(e)))};if(e(),n)return n.addEventListener("wheel",e),()=>{n.removeEventListener("wheel",e)}},c=[n,l,r],t[0]=l,t[1]=n,t[2]=r,t[3]=i,t[4]=c):(i=t[3],c=t[4]),(0,h.useEffect)(i,c),o}(o),i;e:{let e;if(!a){i=null;break e}t[4]===a?e=t[5]:(e={getBoundingClientRect:()=>a},t[4]=a,t[5]=e),i=e}return i}(tS),t_;t:{let e;if(!e_){t_=null;break t}R[68]===e_?e=R[69]:(e={getBoundingClientRect:()=>e_},R[68]=e_,R[69]=e),t_=e}let tv=t_,tk,tx;R[70]!==eS||R[71]!==ty?(tk=()=>{if(eS)return ty?.addEventListener("wheel",eH),()=>{ty?.removeEventListener("wheel",eH)}},tx=[eS,ty,eH],R[70]=eS,R[71]=ty,R[72]=tk,R[73]=tx):(tk=R[72],tx=R[73]),(0,h.useEffect)(tk,tx),R[74]!==tr||R[75]!==eW?(o=()=>{let e=tr(eW);(0,h.startTransition)(()=>eO(t=>e.map(e=>{let n=t.find(t=>t.payload?.commentId===e.payload?.commentId);return n?.payload?.dirty?{...e,payload:{...e.payload,dirty:n.payload.dirty}}:e})))},a=[tr,eW],R[74]=tr,R[75]=eW,R[76]=o,R[77]=a):(o=R[76],a=R[77]),(0,h.useEffect)(o,a);let tI=!!(eS&&eI&&tv&&!eo),tw=!!(eg&&tC),tj;return R[78]!==A||R[79]!==eY||R[80]!==Y||R[81]!==eh||R[82]!==tC||R[83]!==tw?(tj=tw&&A&&(0,g.jsx)(H,{currentUser:A,mentionOptions:Y,onChange:ey,onClickOutside:eN,onDiscardConfirm:eG,onSubmit:eY,referenceElement:tC,value:eh}),R[78]=A,R[79]=eY,R[80]=Y,R[81]=eh,R[82]=tC,R[83]=tw,R[84]=tj):tj=R[84],R[85]!==$||R[86]!==tm||R[87]!==eZ||R[88]!==tv||R[89]!==tI||R[90]!==tw?(c=tI&&!tw&&(0,g.jsx)(V,{disabled:tm||!!$,onClick:eZ,onClickOutside:eN,referenceElement:tv}),R[85]=$,R[86]=tm,R[87]=eZ,R[88]=tv,R[89]=tI,R[90]=tw,R[91]=c):c=R[91],R[92]===c?m=R[93]:(m=(0,g.jsx)(E.N,{children:c}),R[92]=c,R[93]=m),R[94]!==tg||R[95]!==tj||R[96]!==m?(C=(0,g.jsxs)(v.EZ,{element:tg,children:[tj,m]}),R[94]=tg,R[95]=tj,R[96]=m,R[97]=C):C=R[97],R[98]!==e5||R[99]!==e0||R[100]!==ta||R[101]!==e||R[102]!==td?(k=(0,g.jsx)(x.Tk,{ref:eE,onMouseDown:e3,onMouseUp:e9,children:(0,g.jsx)(Z,{...e,onEditorChange:ta,onItemClose:e5,onItemOpen:e0,editorRef:ei,rangeDecorations:td,onFullScreenChange:eP})}),R[98]=e5,R[99]=e0,R[100]=ta,R[101]=e,R[102]=td,R[103]=k):k=R[103],R[104]!==C||R[105]!==k?(j=(0,g.jsxs)(g.Fragment,{children:[C,k]}),R[104]=C,R[105]=k,R[106]=j):j=R[106],j});function Z(e){return e.renderDefault(e)}function q(e){return(0,u.f)(e.parentComment)}function G(e){return e.parentComment}function U(e){return e.payload?.dirty}function W(e,t){return e._key.localeCompare(t._key)}function X(e){return null!==e.selection}function Y(e){let t,n=(0,y.c)(4);if((0,S.GX)(e.schemaType)){let t;return n[0]===e?t=n[1]:(t=(0,g.jsx)(N,{...e}),n[0]=e,n[1]=t),t}return n[2]===e?t=n[3]:(t=e.renderDefault(e),n[2]=e,n[3]=t),t}}}]);
2//# sourceMappingURL=2910.3d752656d6aacb7b.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.