mirror of
https://github.com/UiO-Gaming/uiogaming.no-backend.git
synced 2026-11-05 13:56:49 +01:00
fix more vulns
This commit is contained in:
70 files changed
+82
-215
No files matched your search
Vendored
+1
-1
@@ -268,7 +268,7 @@
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
</style><script src="https://core.sanity-cdn.com/bridge.js" async type="module" data-sanity-core></script>
|
||||
</head><body><div id="sanity"></div><script src="/static/sanity-GsYh3wpj.js" type="module"></script><noscript><div class="sanity-app-no-js__root"><div class="sanity-app-no-js__content"><style type="text/css">
|
||||
</head><body><div id="sanity"></div><script src="/static/sanity-DeX-YVGt.js" type="module"></script><noscript><div class="sanity-app-no-js__root"><div class="sanity-app-no-js__content"><style type="text/css">
|
||||
.sanity-app-no-js__root {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Nd as t,Od as n,Rf as r,jd as i}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as a,t as o}from"./jsx-runtime-BpzPEenQ.js";import{t as s}from"./compiler-runtime-sKsOXjDo.js";var c=e(a(),1),l=s(),u=o();function d(e){let a=(0,l.c)(25),{children:o}=e,{dataset:s,projectId:d}=t(),f=i(n),[p,m]=(0,c.useState)(null),[h,g]=(0,c.useState)(!1),[_,v]=(0,c.useState)(!1),[y,b]=(0,c.useState)(null),x;a[0]!==s||a[1]!==f||a[2]!==d?(x=async()=>(await f.request({url:`/projects/${d}/datasets?datasetProfile=comments&addonFor=${s}`,tag:`sanity.studio`}))?.[0]?.name,a[0]=s,a[1]=f,a[2]=d,a[3]=x):x=a[3];let S=x,C;a[4]!==f||a[5]!==d?(C=e=>f.withConfig({dataset:e,projectId:d,requestTagPrefix:`sanity.studio`,useCdn:!1}),a[4]=f,a[5]=d,a[6]=C):C=a[6];let w=C,T;a[7]!==s||a[8]!==S||a[9]!==w||a[10]!==f?(T=async()=>{g(!0);try{let e=await S();if(e){let t=w(e);return m(t),g(!1),t}}catch{}return(async()=>{let e=(await f.request({url:`/comments/${s}/setup`,method:`POST`}))?.datasetName;if(!e)return g(!1),null;let t=w(e);return m(t),t})().finally(()=>{g(!1)})},a[7]=s,a[8]=S,a[9]=w,a[10]=f,a[11]=T):T=a[11];let E=T,D,O;a[12]!==S||a[13]!==w?(D=()=>{S().then(e=>{if(!e)return;let t=w(e);m(t)}).catch(e=>{b(e)}).finally(()=>{v(!0)})},O=[S,w],a[12]=S,a[13]=w,a[14]=D,a[15]=O):(D=a[14],O=a[15]),(0,c.useEffect)(D,O);let k;a[16]!==p||a[17]!==y||a[18]!==E||a[19]!==h||a[20]!==_?(k={client:p,createAddonDataset:E,isCreatingDataset:h,ready:_,error:y},a[16]=p,a[17]=y,a[18]=E,a[19]=h,a[20]=_,a[21]=k):k=a[21];let A=k,j;return a[22]!==o||a[23]!==A?(j=(0,u.jsx)(r.Provider,{value:A,children:o}),a[22]=o,a[23]=A,a[24]=j):j=a[24],j}function f(e){let t=(0,l.c)(2);if((0,c.useContext)(r))return e.children;let n;return t[0]===e?n=t[1]:(n=(0,u.jsx)(d,{...e}),t[0]=e,t[1]=n),n}export{f as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Nd as t,Od as n,Rf as r,jd as i}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as a,t as o}from"./jsx-runtime-BpzPEenQ.js";import{t as s}from"./compiler-runtime-sKsOXjDo.js";var c=e(a(),1),l=s(),u=o();function d(e){let a=(0,l.c)(25),{children:o}=e,{dataset:s,projectId:d}=t(),f=i(n),[p,m]=(0,c.useState)(null),[h,g]=(0,c.useState)(!1),[_,v]=(0,c.useState)(!1),[y,b]=(0,c.useState)(null),x;a[0]!==s||a[1]!==f||a[2]!==d?(x=async()=>(await f.request({url:`/projects/${d}/datasets?datasetProfile=comments&addonFor=${s}`,tag:`sanity.studio`}))?.[0]?.name,a[0]=s,a[1]=f,a[2]=d,a[3]=x):x=a[3];let S=x,C;a[4]!==f||a[5]!==d?(C=e=>f.withConfig({dataset:e,projectId:d,requestTagPrefix:`sanity.studio`,useCdn:!1}),a[4]=f,a[5]=d,a[6]=C):C=a[6];let w=C,T;a[7]!==s||a[8]!==S||a[9]!==w||a[10]!==f?(T=async()=>{g(!0);try{let e=await S();if(e){let t=w(e);return m(t),g(!1),t}}catch{}return(async()=>{let e=(await f.request({url:`/comments/${s}/setup`,method:`POST`}))?.datasetName;if(!e)return g(!1),null;let t=w(e);return m(t),t})().finally(()=>{g(!1)})},a[7]=s,a[8]=S,a[9]=w,a[10]=f,a[11]=T):T=a[11];let E=T,D,O;a[12]!==S||a[13]!==w?(D=()=>{S().then(e=>{if(!e)return;let t=w(e);m(t)}).catch(e=>{b(e)}).finally(()=>{v(!0)})},O=[S,w],a[12]=S,a[13]=w,a[14]=D,a[15]=O):(D=a[14],O=a[15]),(0,c.useEffect)(D,O);let k;a[16]!==p||a[17]!==y||a[18]!==E||a[19]!==h||a[20]!==_?(k={client:p,createAddonDataset:E,isCreatingDataset:h,ready:_,error:y},a[16]=p,a[17]=y,a[18]=E,a[19]=h,a[20]=_,a[21]=k):k=a[21];let A=k,j;return a[22]!==o||a[23]!==A?(j=(0,u.jsx)(r.Provider,{value:A,children:o}),a[22]=o,a[23]=A,a[24]=j):j=a[24],j}function f(e){let t=(0,l.c)(2);if((0,c.useContext)(r))return e.children;let n;return t[0]===e?n=t[1]:(n=(0,u.jsx)(d,{...e}),t[0]=e,t[1]=n),n}export{f as t};
|
||||
+2
-2
@@ -1,2 +1,2 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/resources-B2JQiyBa-CwazuJcA.js","static/lib-D7dq6hfV.js","static/rolldown-runtime-Dd_uD5pT.js","static/PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-DonUdARw.js","static/types--2f-avvL-DfAXA8nG.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-DSZmlLZW.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-PgDcQUJg.js","static/helpers-D_aQC6Do-BbFlOJg3.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js","static/CommentsListItem-B4CoDHda-B92j42qR.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-CzUxgKBX.js","static/CommentsEnabledProvider-CEeES47b-BEr5KMWm.js","static/useComments-Bi1m7AzT-CGyuZP86.js","static/CommentsEnabledProvider-By3TCGFl-gLI34tgD.js","static/AddonDatasetProvider-CF_RtUZo-BoMlopck.js","static/lib-BFHl89nf.css"])))=>i.map(i=>d[i]);
|
||||
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{i as n,l as r,s as i,t as a}from"./lib-D7dq6hfV.js";import{$s as o,A as s,Aa as c,Af as l,Am as u,Ao as d,Ap as f,Ar as p,B as m,Bc as h,Bl as g,C as _,Cs as v,Ct as y,Dl as b,Do as x,Dp as S,Dr as C,Ds as w,Ei as T,Ep as E,Er as D,Es as O,Fa as k,Fl as A,Fr as j,Ft as M,G as N,Gr as P,Gs as F,H as I,Ho as L,Il as R,Io as z,Ir as B,Iu as V,Jc as ee,Ks as H,Ll as te,Ls as ne,Lu as re,Md as ie,Ml as U,Mn as ae,Mo as W,Mp as G,Ms as oe,Mu as K,Nd as se,O as ce,Od as le,Oi as ue,Oo as de,Pr as fe,Qo as pe,Qt as me,Rd as he,Ro as ge,Rr as _e,Rs as ve,Ru as ye,Sc as be,Sd as q,Tl as xe,To as Se,Tp as Ce,Up as we,V as Te,Va as Ee,W as De,Wc as Oe,Wr as ke,Xo as Ae,Yf as je,Yl as Me,Yo as Ne,Ys as Pe,Zc as Fe,Zi as Ie,Zs as Le,_ as Re,_d as ze,_l as Be,ac as Ve,ad as He,ar as Ue,as as We,b as Ge,ba as Ke,bc as qe,bf as Je,bl as Ye,cc as Xe,cd as Ze,da as Qe,dc as $e,dm as et,dp as tt,ds as nt,ec as rt,ed as it,fa as at,fl as ot,fp as st,fr as ct,fs as lt,ft as ut,gc as dt,gl as ft,gu as pt,hc as mt,hu as ht,ic as gt,im as _t,ir as vt,is as yt,ja as bt,jd as xt,jo as St,js as Ct,ju as wt,kd as Tt,ki as Et,ko as Dt,ks as Ot,l as kt,la as At,lc as jt,ld as Mt,ls as Nt,ms as Pt,mu as Ft,nc as It,nd as Lt,nr as Rt,ns as zt,oa as Bt,oc as Vt,os as Ht,pc as Ut,pm as Wt,pr as Gt,q as Kt,qi as qt,ra as Jt,rc as Yt,rs as Xt,sc as Zt,sd as Qt,so as $t,sp as en,ss as tn,ta as nn,tc as rn,tl as an,tt as on,uc as sn,um as cn,up as ln,us as un,v as dn,va as fn,vd as pn,vu as mn,w as hn,wi as gn,wm as _n,wo as vn,wp as yn,ws as bn,xi as xn,y as Sn,ya as Cn,zc as wn,zr as Tn}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as En,t as Dn}from"./jsx-runtime-BpzPEenQ.js";import{t as On}from"./compiler-runtime-sKsOXjDo.js";import{t as kn}from"./from-B8yXq1Hf.js";import{At as An,Q as jn,X as Mn,at as Nn,ht as Pn,it as Fn,lt as In,nt as Ln,ot as Rn,q as zn,rt as Bn,st as Vn,wt as Hn,xt as Un,yt as Wn}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{i as Gn,n as Kn,t as qn}from"./CommentsProvider-DHVaZIPI-DonUdARw.js";import{An as Jn,At as Yn,Bt as Xn,Ct as Zn,E as Qn,En as $n,Et as er,F as tr,Ft as nr,Gt as rr,Ht as ir,It as ar,Jt as or,Kt as sr,Lt as cr,Nn as lr,Nt as ur,O as dr,On as fr,P as pr,Pt as mr,Rt as hr,St as gr,T as _r,Tt as vr,Ut as yr,Vt as br,W as xr,Wt as Sr,Yt as Cr,_n as wr,an as Tr,at as Er,b as Dr,bn as Or,cr as kr,dn as Ar,fn as jr,fr as Mr,hr as Nr,ht as Pr,i as Fr,in as Ir,ir as Lr,it as Rr,jt as zr,l as Br,ln as Vr,lr as Hr,mn as Ur,mt as Wr,nn as Gr,nr as Kr,nt as qr,ot as Jr,p as Yr,pt as Xr,qt as Zr,rn as Qr,rr as $r,tr as ei,u as ti,un as ni,w as ri,x as ii,xn as ai}from"./types--2f-avvL-DfAXA8nG.js";import{t as oi}from"./preload-helper-DjzSQ1t3.js";import{B as si,Bt as ci,Dt as li,Et as ui,Gt as di,O as fi,Pt as pi,Qt as mi,R as hi,S as gi,St as J,T as _i,U as vi,Ut as yi,V as bi,Vt as xi,Zt as Si,_ as Ci,at as wi,b as Ti,bt as Ei,c as Di,ct as Oi,dt as ki,et as Ai,f as ji,ft as Mi,g as Ni,h as Pi,j as Fi,k as Ii,p as Li,r as Y,s as Ri,st as zi,t as Bi,tt as Vi,x as Hi,yt as Ui}from"./dist-LVcARZxB.js";import{a as Wi,c as Gi,d as Ki,l as qi,o as Ji,s as Yi,u as Xi}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Zi}from"./Close-B_ZEgT1V.js";import{t as Qi}from"./WarningOutline-DOBjmorn.js";import{t as $i}from"./ChevronDown-BpYUc-AP.js";import{t as ea}from"./Checkmark-OT7tsNpL.js";import{t as ta}from"./ChevronRight-Cf6GkXSa.js";import{t as na}from"./Document-0Zpczu4q.js";import{t as ra}from"./Search-QbUIQb6W.js";import{t as ia}from"./InfoOutline-BLtnjxbN.js";import{t as aa}from"./ErrorOutline-Cl-3_nRG.js";import{t as oa}from"./EarthAmericas-DLWVWv9X.js";import{t as sa}from"./ArrowLeft-x2OZCZTu.js";import{t as ca}from"./Unpublish-B0p_ZGt2.js";import{t as la}from"./ArrowRight-D293IkFJ.js";import{t as ua}from"./Revert-BmEXeO7H.js";import{t as da}from"./Copy-BTQgeMVP.js";import{t as fa}from"./Sync-B1MBhh7o.js";import{t as pa}from"./Documents-C8KrBFzU.js";import{t as ma}from"./ChevronUp-3VMiyA07.js";import{t as ha}from"./Link-Cl1VSeDJ.js";import{t as ga}from"./ReadOnly-BkEx9qPu.js";import{t as _a}from"./Launch-DuEs-KHJ.js";import{t as va}from"./Unknown-CEYtdaCK.js";import{t as ya}from"./Add-CwQ5TpM8.js";import{t as ba}from"./Lock-Ui2f2sVi.js";import{t as xa}from"./Collapse-B22lXxln.js";import{t as Sa}from"./Expand-CQC9Ec3E.js";import{t as Ca}from"./Sort-CFTgH29c.js";import{t as wa}from"./ComposeSparkles-Dn7kooau.js";import{n as Ta}from"./CommentsEnabledProvider-CEeES47b-BEr5KMWm.js";import{t as Ea}from"./CommentsEnabledProvider-By3TCGFl-gLI34tgD.js";import{t as Da}from"./Stack-DWymSM37.js";import{t as Oa}from"./StackCompact-appU5vbP.js";import{t as ka}from"./Transfer-CJnKiHxh.js";import{t as Aa}from"./DocumentRemove-CzwTDkkJ.js";import{t as ja}from"./Pause-ibSxMIa3.js";import{t as Ma}from"./Star-_p_HG-Ts.js";import{t as Na}from"./StarFilled-CSrmmOKn.js";import{t as Pa}from"./SplitVertical-uh7MyVDf.js";import{t as Fa}from"./Share-D41CqXzI.js";imLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/resources-B2JQiyBa-Ci7zMcrI.js","static/lib-CQcSfzr9.js","static/rolldown-runtime-Dd_uD5pT.js","static/PerspectiveProvider-qJFIbsuW-DOpUdg_O.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-2Crq30kn.js","static/types--2f-avvL-CUBrVRGR.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-aKs6KPwC.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-N5vrKMLm.js","static/helpers-D_aQC6Do-Cc0nAXnJ.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js","static/CommentsListItem-B4CoDHda-DaXAEbir.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-B2twFKeQ.js","static/CommentsEnabledProvider-CEeES47b-AmQjnwX5.js","static/useComments-Bi1m7AzT-DcZcKqsq.js","static/CommentsEnabledProvider-By3TCGFl-C60crpzJ.js","static/AddonDatasetProvider-CF_RtUZo-BdePhlKm.js","static/lib-BFHl89nf.css"])))=>i.map(i=>d[i]);
|
||||
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{i as n,l as r,s as i,t as a}from"./lib-CQcSfzr9.js";import{$s as o,A as s,Aa as c,Af as l,Am as u,Ao as d,Ap as f,Ar as p,B as m,Bc as h,Bl as g,C as _,Cs as v,Ct as y,Dl as b,Do as x,Dp as S,Dr as C,Ds as w,Ei as T,Ep as E,Er as D,Es as O,Fa as k,Fl as A,Fr as j,Ft as M,G as N,Gr as P,Gs as F,H as I,Ho as L,Il as R,Io as z,Ir as B,Iu as V,Jc as ee,Ks as H,Ll as te,Ls as ne,Lu as re,Md as ie,Ml as U,Mn as ae,Mo as W,Mp as G,Ms as oe,Mu as K,Nd as se,O as ce,Od as le,Oi as ue,Oo as de,Pr as fe,Qo as pe,Qt as me,Rd as he,Ro as ge,Rr as _e,Rs as ve,Ru as ye,Sc as be,Sd as q,Tl as xe,To as Se,Tp as Ce,Up as we,V as Te,Va as Ee,W as De,Wc as Oe,Wr as ke,Xo as Ae,Yf as je,Yl as Me,Yo as Ne,Ys as Pe,Zc as Fe,Zi as Ie,Zs as Le,_ as Re,_d as ze,_l as Be,ac as Ve,ad as He,ar as Ue,as as We,b as Ge,ba as Ke,bc as qe,bf as Je,bl as Ye,cc as Xe,cd as Ze,da as Qe,dc as $e,dm as et,dp as tt,ds as nt,ec as rt,ed as it,fa as at,fl as ot,fp as st,fr as ct,fs as lt,ft as ut,gc as dt,gl as ft,gu as pt,hc as mt,hu as ht,ic as gt,im as _t,ir as vt,is as yt,ja as bt,jd as xt,jo as St,js as Ct,ju as wt,kd as Tt,ki as Et,ko as Dt,ks as Ot,l as kt,la as At,lc as jt,ld as Mt,ls as Nt,ms as Pt,mu as Ft,nc as It,nd as Lt,nr as Rt,ns as zt,oa as Bt,oc as Vt,os as Ht,pc as Ut,pm as Wt,pr as Gt,q as Kt,qi as qt,ra as Jt,rc as Yt,rs as Xt,sc as Zt,sd as Qt,so as $t,sp as en,ss as tn,ta as nn,tc as rn,tl as an,tt as on,uc as sn,um as cn,up as ln,us as un,v as dn,va as fn,vd as pn,vu as mn,w as hn,wi as gn,wm as _n,wo as vn,wp as yn,ws as bn,xi as xn,y as Sn,ya as Cn,zc as wn,zr as Tn}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as En,t as Dn}from"./jsx-runtime-BpzPEenQ.js";import{t as On}from"./compiler-runtime-sKsOXjDo.js";import{t as kn}from"./from-B8yXq1Hf.js";import{At as An,Q as jn,X as Mn,at as Nn,ht as Pn,it as Fn,lt as In,nt as Ln,ot as Rn,q as zn,rt as Bn,st as Vn,wt as Hn,xt as Un,yt as Wn}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{i as Gn,n as Kn,t as qn}from"./CommentsProvider-DHVaZIPI-2Crq30kn.js";import{An as Jn,At as Yn,Bt as Xn,Ct as Zn,E as Qn,En as $n,Et as er,F as tr,Ft as nr,Gt as rr,Ht as ir,It as ar,Jt as or,Kt as sr,Lt as cr,Nn as lr,Nt as ur,O as dr,On as fr,P as pr,Pt as mr,Rt as hr,St as gr,T as _r,Tt as vr,Ut as yr,Vt as br,W as xr,Wt as Sr,Yt as Cr,_n as wr,an as Tr,at as Er,b as Dr,bn as Or,cr as kr,dn as Ar,fn as jr,fr as Mr,hr as Nr,ht as Pr,i as Fr,in as Ir,ir as Lr,it as Rr,jt as zr,l as Br,ln as Vr,lr as Hr,mn as Ur,mt as Wr,nn as Gr,nr as Kr,nt as qr,ot as Jr,p as Yr,pt as Xr,qt as Zr,rn as Qr,rr as $r,tr as ei,u as ti,un as ni,w as ri,x as ii,xn as ai}from"./types--2f-avvL-CUBrVRGR.js";import{t as oi}from"./preload-helper-DjzSQ1t3.js";import{B as si,Bt as ci,Dt as li,Et as ui,Gt as di,O as fi,Pt as pi,Qt as mi,R as hi,S as gi,St as J,T as _i,U as vi,Ut as yi,V as bi,Vt as xi,Zt as Si,_ as Ci,at as wi,b as Ti,bt as Ei,c as Di,ct as Oi,dt as ki,et as Ai,f as ji,ft as Mi,g as Ni,h as Pi,j as Fi,k as Ii,p as Li,r as Y,s as Ri,st as zi,t as Bi,tt as Vi,x as Hi,yt as Ui}from"./dist-LVcARZxB.js";import{a as Wi,c as Gi,d as Ki,l as qi,o as Ji,s as Yi,u as Xi}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Zi}from"./Close-B_ZEgT1V.js";import{t as Qi}from"./WarningOutline-DOBjmorn.js";import{t as $i}from"./ChevronDown-BpYUc-AP.js";import{t as ea}from"./Checkmark-OT7tsNpL.js";import{t as ta}from"./ChevronRight-Cf6GkXSa.js";import{t as na}from"./Document-0Zpczu4q.js";import{t as ra}from"./Search-QbUIQb6W.js";import{t as ia}from"./InfoOutline-BLtnjxbN.js";import{t as aa}from"./ErrorOutline-Cl-3_nRG.js";import{t as oa}from"./EarthAmericas-DLWVWv9X.js";import{t as sa}from"./ArrowLeft-x2OZCZTu.js";import{t as ca}from"./Unpublish-B0p_ZGt2.js";import{t as la}from"./ArrowRight-D293IkFJ.js";import{t as ua}from"./Revert-BmEXeO7H.js";import{t as da}from"./Copy-BTQgeMVP.js";import{t as fa}from"./Sync-B1MBhh7o.js";import{t as pa}from"./Documents-C8KrBFzU.js";import{t as ma}from"./ChevronUp-3VMiyA07.js";import{t as ha}from"./Link-Cl1VSeDJ.js";import{t as ga}from"./ReadOnly-BkEx9qPu.js";import{t as _a}from"./Launch-DuEs-KHJ.js";import{t as va}from"./Unknown-CEYtdaCK.js";import{t as ya}from"./Add-CwQ5TpM8.js";import{t as ba}from"./Lock-Ui2f2sVi.js";import{t as xa}from"./Collapse-B22lXxln.js";import{t as Sa}from"./Expand-CQC9Ec3E.js";import{t as Ca}from"./Sort-CFTgH29c.js";import{t as wa}from"./ComposeSparkles-Dn7kooau.js";import{n as Ta}from"./CommentsEnabledProvider-CEeES47b-AmQjnwX5.js";import{t as Ea}from"./CommentsEnabledProvider-By3TCGFl-C60crpzJ.js";import{t as Da}from"./Stack-DWymSM37.js";import{t as Oa}from"./StackCompact-appU5vbP.js";import{t as ka}from"./Transfer-CJnKiHxh.js";import{t as Aa}from"./DocumentRemove-CzwTDkkJ.js";import{t as ja}from"./Pause-ibSxMIa3.js";import{t as Ma}from"./Star-_p_HG-Ts.js";import{t as Na}from"./StarFilled-CSrmmOKn.js";import{t as Pa}from"./SplitVertical-uh7MyVDf.js";import{t as Fa}from"./Share-D41CqXzI.js";imLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Co as t,Ha as n,Sd as r,Ua as i,Ya as a,Za as o,au as s,co as c,lo as l,nu as u,rc as d,ro as f,to as p,uc as m,uo as h,yo as g}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as _,t as v}from"./jsx-runtime-BpzPEenQ.js";import{t as y}from"./compiler-runtime-sKsOXjDo.js";import{Et as b,St as x,i as S,r as C,t as w,x as T}from"./dist-LVcARZxB.js";import{t as E}from"./Close-B_ZEgT1V.js";import{t as D}from"./ChevronRight-Cf6GkXSa.js";import{t as O}from"./ChevronLeft-BzE8YX6u.js";var k=e(_(),1),ee=y(),A=v();function j(e,t){let n=s(e,t?.in).getDay();return n===0||n===6}function M(e){let t=(0,ee.c)(33),{date:n,focused:r,isCurrentMonth:i,isToday:a,onSelect:o,selected:s,disabled:c,dateStyles:l}=e,u;t[0]===l?u=t[1]:(u=l===void 0?{}:l,t[0]=l,t[1]=u);let d=u,f;t[2]!==n||t[3]!==o||t[4]!==s?(f=()=>{o(s?void 0:n)},t[2]=n,t[3]=o,t[4]=s,t[5]=f):f=t[5];let p=f,m;m=a||s?`primary`:(j(n),`default`);let h;t[6]===n?h=t[7]:(h=n.toDateString(),t[6]=n,t[7]=h);let g=r?`true`:``,_;t[8]!==n||t[9]!==a?(_=a?`day-tile-today`:`day-tile-${n.getDate()}-${n.getMonth()}`,t[8]=n,t[9]=a,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v={position:`relative`},t[11]=v):v=t[11];let y=!s&&!i?.35:1,S;t[12]!==d||t[13]!==y?(S={opacity:y,textAlign:`center`,...d},t[12]=d,t[13]=y,t[14]=S):S=t[14];let C;t[15]!==n||t[16]!==s?(C=s?(0,A.jsx)(E,{}):n.getDate(),t[15]=n,t[16]=s,t[17]=C):C=t[17];let w;t[18]!==S||t[19]!==C?(w=(0,A.jsx)(x,{size:1,style:S,children:C}),t[18]=S,t[19]=C,t[20]=w):w=t[20];let T;t[21]!==c||t[22]!==p||t[23]!==s||t[24]!==w||t[25]!==h||t[26]!==g||t[27]!==_||t[28]!==m?(T=(0,A.jsx)(b,{"aria-label":h,"aria-pressed":s,as:`button`,__unstable_focusRing:!0,"data-weekday":!0,"data-focused":g,"data-testid":_,role:`button`,tabIndex:-1,onClick:p,paddingX:3,paddingY:4,radius:2,selected:s,style:v,tone:m,disabled:c,children:w}),t[21]=c,t[22]=p,t[23]=s,t[24]=w,t[25]=h,t[26]=g,t[27]=_,t[28]=m,t[29]=T):T=t[29];let D;return t[30]!==s||t[31]!==T?(D=(0,A.jsx)(`div`,{"aria-selected":s,"data-ui":`CalendarDay`,children:T}),t[30]=s,t[31]=T,t[32]=D):D=t[32],D}function te(e){let n=(0,ee.c)(36),{date:r,renderCalendarDay:i,hidden:s,disabled:u,timeZoneScope:d}=e,{getCurrentZoneDate:f}=t(d),p=i||M,m=o(r),{weekInfo:h}=g(),{firstDay:_}=h,v,y,b,x,C,T;if(n[0]!==_||n[1]!==s){let e=a(_);y=w,C=s||!1,T=`CalendarMonth`,v=S,n[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={gap:`1px`,gridTemplateColumns:`repeat(7, 1fr)`},n[8]=b):b=n[8],x=e.map(N),n[0]=_,n[1]=s,n[2]=v,n[3]=y,n[4]=b,n[5]=x,n[6]=C,n[7]=T}else v=n[2],y=n[3],b=n[4],x=n[5],C=n[6],T=n[7];let E;if(n[9]!==p||n[10]!==r||n[11]!==u||n[12]!==f||n[13]!==e.focused||n[14]!==e.onSelect||n[15]!==e.selected||n[16]!==m){let t;n[18]!==p||n[19]!==r||n[20]!==u||n[21]!==f||n[22]!==e.focused||n[23]!==e.onSelect||n[24]!==e.selected?(t=(t,n)=>t.days.map((t,i)=>{let a=e.focused&&l(t,e.focused),o=e.selected&&l(t,e.selected),s=l(t,f()),d=c(t,e.focused||r);return(0,A.jsx)(p,{date:t,focused:a,isCurrentMonth:d,isToday:s,onSelect:e.onSelect,selected:o,disabled:u},`${n}-${i}`)}),n[18]=p,n[19]=r,n[20]=u,n[21]=f,n[22]=e.focused,n[23]=e.onSelect,n[24]=e.selected,n[25]=t):t=n[25],E=m.map(t),n[9]=p,n[10]=r,n[11]=u,n[12]=f,n[13]=e.focused,n[14]=e.onSelect,n[15]=e.selected,n[16]=m,n[17]=E}else E=n[17];let D;n[26]!==v||n[27]!==b||n[28]!==x||n[29]!==E?(D=(0,A.jsxs)(v,{style:b,children:[x,E]}),n[26]=v,n[27]=b,n[28]=x,n[29]=E,n[30]=D):D=n[30];let O;return n[31]!==y||n[32]!==C||n[33]!==T||n[34]!==D?(O=(0,A.jsx)(y,{"aria-hidden":C,"data-ui":T,children:D}),n[31]=y,n[32]=C,n[33]=T,n[34]=D,n[35]=O):O=n[35],O}function N(e){return(0,A.jsx)(b,{paddingY:3,children:(0,A.jsx)(T,{size:1,style:{textAlign:`center`},children:e.slice(0,1)})},e)}var ne=(0,A.jsx)(`span`,{"data-preserve-focus":!0,style:{overflow:`hidden`,position:`absolute`,outline:`none`},tabIndex:-1});function P(e){let a=(0,ee.c)(87),o,s,c,l,g,_,v,y;a[0]===e?(o=a[1],s=a[2],c=a[3],l=a[4],g=a[5],_=a[6],v=a[7],y=a[8]):({ref:o,focusedDate:l,onFocusedDateChange:s,onSelect:c,selectedDate:v,renderCalendarDay:g,timeZoneScope:y,..._}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c,a[4]=l,a[5]=g,a[6]=_,a[7]=v,a[8]=y);let b;a[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=new Date,a[9]=b):b=a[9];let[S,T]=(0,k.useState)(b),{t:E}=r(),{zoneDateToUtc:j}=t(y),M=l||S,N;a[10]!==s||a[11]!==l?(N=e=>{s&&l?s(e):T(e)},a[10]=s,a[11]=l,a[12]=N):N=a[12];let P=N,re;a[13]!==P||a[14]!==j?(re=e=>{P(j(e))},a[13]=P,a[14]=j,a[15]=re):re=a[15];let ie=re,ae;a[16]!==M||a[17]!==ie?(ae=e=>ie(h(M,e)),a[16]=M,a[17]=ie,a[18]=ae):ae=a[18];let F=ae,oe;a[19]!==P||a[20]!==c||a[21]!==j?(oe=e=>{if(e){let t=j(f(p(e,e.getHours()),e.getMinutes()));c(t),P(t)}else c(void 0)},a[19]=P,a[20]=c,a[21]=j,a[22]=oe):oe=a[22];let se=oe,I=(0,k.useRef)(null),ce;a[23]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>I.current,a[23]=ce):ce=a[23],(0,k.useImperativeHandle)(o,ce);let le;a[24]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>{I.current?.querySelector(`[data-focused="true"]`)?.focus()}Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Co as t,Ha as n,Sd as r,Ua as i,Ya as a,Za as o,au as s,co as c,lo as l,nu as u,rc as d,ro as f,to as p,uc as m,uo as h,yo as g}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as _,t as v}from"./jsx-runtime-BpzPEenQ.js";import{t as y}from"./compiler-runtime-sKsOXjDo.js";import{Et as b,St as x,i as S,r as C,t as w,x as T}from"./dist-LVcARZxB.js";import{t as E}from"./Close-B_ZEgT1V.js";import{t as D}from"./ChevronRight-Cf6GkXSa.js";import{t as O}from"./ChevronLeft-BzE8YX6u.js";var k=e(_(),1),ee=y(),A=v();function j(e,t){let n=s(e,t?.in).getDay();return n===0||n===6}function M(e){let t=(0,ee.c)(33),{date:n,focused:r,isCurrentMonth:i,isToday:a,onSelect:o,selected:s,disabled:c,dateStyles:l}=e,u;t[0]===l?u=t[1]:(u=l===void 0?{}:l,t[0]=l,t[1]=u);let d=u,f;t[2]!==n||t[3]!==o||t[4]!==s?(f=()=>{o(s?void 0:n)},t[2]=n,t[3]=o,t[4]=s,t[5]=f):f=t[5];let p=f,m;m=a||s?`primary`:(j(n),`default`);let h;t[6]===n?h=t[7]:(h=n.toDateString(),t[6]=n,t[7]=h);let g=r?`true`:``,_;t[8]!==n||t[9]!==a?(_=a?`day-tile-today`:`day-tile-${n.getDate()}-${n.getMonth()}`,t[8]=n,t[9]=a,t[10]=_):_=t[10];let v;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(v={position:`relative`},t[11]=v):v=t[11];let y=!s&&!i?.35:1,S;t[12]!==d||t[13]!==y?(S={opacity:y,textAlign:`center`,...d},t[12]=d,t[13]=y,t[14]=S):S=t[14];let C;t[15]!==n||t[16]!==s?(C=s?(0,A.jsx)(E,{}):n.getDate(),t[15]=n,t[16]=s,t[17]=C):C=t[17];let w;t[18]!==S||t[19]!==C?(w=(0,A.jsx)(x,{size:1,style:S,children:C}),t[18]=S,t[19]=C,t[20]=w):w=t[20];let T;t[21]!==c||t[22]!==p||t[23]!==s||t[24]!==w||t[25]!==h||t[26]!==g||t[27]!==_||t[28]!==m?(T=(0,A.jsx)(b,{"aria-label":h,"aria-pressed":s,as:`button`,__unstable_focusRing:!0,"data-weekday":!0,"data-focused":g,"data-testid":_,role:`button`,tabIndex:-1,onClick:p,paddingX:3,paddingY:4,radius:2,selected:s,style:v,tone:m,disabled:c,children:w}),t[21]=c,t[22]=p,t[23]=s,t[24]=w,t[25]=h,t[26]=g,t[27]=_,t[28]=m,t[29]=T):T=t[29];let D;return t[30]!==s||t[31]!==T?(D=(0,A.jsx)(`div`,{"aria-selected":s,"data-ui":`CalendarDay`,children:T}),t[30]=s,t[31]=T,t[32]=D):D=t[32],D}function te(e){let n=(0,ee.c)(36),{date:r,renderCalendarDay:i,hidden:s,disabled:u,timeZoneScope:d}=e,{getCurrentZoneDate:f}=t(d),p=i||M,m=o(r),{weekInfo:h}=g(),{firstDay:_}=h,v,y,b,x,C,T;if(n[0]!==_||n[1]!==s){let e=a(_);y=w,C=s||!1,T=`CalendarMonth`,v=S,n[8]===Symbol.for(`react.memo_cache_sentinel`)?(b={gap:`1px`,gridTemplateColumns:`repeat(7, 1fr)`},n[8]=b):b=n[8],x=e.map(N),n[0]=_,n[1]=s,n[2]=v,n[3]=y,n[4]=b,n[5]=x,n[6]=C,n[7]=T}else v=n[2],y=n[3],b=n[4],x=n[5],C=n[6],T=n[7];let E;if(n[9]!==p||n[10]!==r||n[11]!==u||n[12]!==f||n[13]!==e.focused||n[14]!==e.onSelect||n[15]!==e.selected||n[16]!==m){let t;n[18]!==p||n[19]!==r||n[20]!==u||n[21]!==f||n[22]!==e.focused||n[23]!==e.onSelect||n[24]!==e.selected?(t=(t,n)=>t.days.map((t,i)=>{let a=e.focused&&l(t,e.focused),o=e.selected&&l(t,e.selected),s=l(t,f()),d=c(t,e.focused||r);return(0,A.jsx)(p,{date:t,focused:a,isCurrentMonth:d,isToday:s,onSelect:e.onSelect,selected:o,disabled:u},`${n}-${i}`)}),n[18]=p,n[19]=r,n[20]=u,n[21]=f,n[22]=e.focused,n[23]=e.onSelect,n[24]=e.selected,n[25]=t):t=n[25],E=m.map(t),n[9]=p,n[10]=r,n[11]=u,n[12]=f,n[13]=e.focused,n[14]=e.onSelect,n[15]=e.selected,n[16]=m,n[17]=E}else E=n[17];let D;n[26]!==v||n[27]!==b||n[28]!==x||n[29]!==E?(D=(0,A.jsxs)(v,{style:b,children:[x,E]}),n[26]=v,n[27]=b,n[28]=x,n[29]=E,n[30]=D):D=n[30];let O;return n[31]!==y||n[32]!==C||n[33]!==T||n[34]!==D?(O=(0,A.jsx)(y,{"aria-hidden":C,"data-ui":T,children:D}),n[31]=y,n[32]=C,n[33]=T,n[34]=D,n[35]=O):O=n[35],O}function N(e){return(0,A.jsx)(b,{paddingY:3,children:(0,A.jsx)(T,{size:1,style:{textAlign:`center`},children:e.slice(0,1)})},e)}var ne=(0,A.jsx)(`span`,{"data-preserve-focus":!0,style:{overflow:`hidden`,position:`absolute`,outline:`none`},tabIndex:-1});function P(e){let a=(0,ee.c)(87),o,s,c,l,g,_,v,y;a[0]===e?(o=a[1],s=a[2],c=a[3],l=a[4],g=a[5],_=a[6],v=a[7],y=a[8]):({ref:o,focusedDate:l,onFocusedDateChange:s,onSelect:c,selectedDate:v,renderCalendarDay:g,timeZoneScope:y,..._}=e,a[0]=e,a[1]=o,a[2]=s,a[3]=c,a[4]=l,a[5]=g,a[6]=_,a[7]=v,a[8]=y);let b;a[9]===Symbol.for(`react.memo_cache_sentinel`)?(b=new Date,a[9]=b):b=a[9];let[S,T]=(0,k.useState)(b),{t:E}=r(),{zoneDateToUtc:j}=t(y),M=l||S,N;a[10]!==s||a[11]!==l?(N=e=>{s&&l?s(e):T(e)},a[10]=s,a[11]=l,a[12]=N):N=a[12];let P=N,re;a[13]!==P||a[14]!==j?(re=e=>{P(j(e))},a[13]=P,a[14]=j,a[15]=re):re=a[15];let ie=re,ae;a[16]!==M||a[17]!==ie?(ae=e=>ie(h(M,e)),a[16]=M,a[17]=ie,a[18]=ae):ae=a[18];let F=ae,oe;a[19]!==P||a[20]!==c||a[21]!==j?(oe=e=>{if(e){let t=j(f(p(e,e.getHours()),e.getMinutes()));c(t),P(t)}else c(void 0)},a[19]=P,a[20]=c,a[21]=j,a[22]=oe):oe=a[22];let se=oe,I=(0,k.useRef)(null),ce;a[23]===Symbol.for(`react.memo_cache_sentinel`)?(ce=()=>I.current,a[23]=ce):ce=a[23],(0,k.useImperativeHandle)(o,ce);let le;a[24]===Symbol.for(`react.memo_cache_sentinel`)?(le=()=>{I.current?.querySelector(`[data-focused="true"]`)?.focus()}Line truncated
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Ef as n,Jf as r,Qs as i,Sd as a,Wf as o,Yr as s,Ys as c,Zs as l,ai as u,ci as d,di as f,ec as p,fi as m,gf as h,hf as g,ii as _,ju as v,lc as y,li as b,mi as x,nc as S,oi as C,pc as w,pi as T,pu as E,rc as D,ri as O,rr as k,si as A,uc as j,ui as M,vi as N,yi as P,yu as F}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as I,t as L}from"./jsx-runtime-BpzPEenQ.js";import{t as R}from"./compiler-runtime-sKsOXjDo.js";import{et as z,pr as B}from"./types--2f-avvL-DfAXA8nG.js";import{Et as V,Gt as H,Ot as U,Qt as ee,Ut as W,_ as G,et as te,f as ne,ft as re,j as K,l as ie,o as q,pt as ae,r as J,s as oe,t as se}from"./dist-LVcARZxB.js";import{a as ce,n as le}from"./helpers-D_aQC6Do-BbFlOJg3.js";var Y=e(I(),1),X=R(),Z=L();function ue(){let e=(0,Y.useContext)(r);if(!e)throw Error(`useComments must be used within a CommentsProvider`);return e}var Q={behavior:`smooth`,inline:`center`,scrollMode:`if-needed`},de={...Q,block:`start`},fe={...Q,block:`center`},$={...Q,block:`center`},pe={comment:{...Q,block:`center`},field:$,group:de,"inline-comment":fe};function me(e){return e.replace(/[[\]_"_=.]/g,``)}function he(e){return{"data-comments-comment-id":me(e)}}function ge(e){return{"data-comments-field-id":me(e)}}function _e(e){return{"data-comments-group-id":me(e)}}function ve(e){return{"data-comments-inline-comment-id":me(e)}}function ye(e){let t=(0,X.c)(14),n;t[0]===e?n=t[1]:(n=e||{},t[0]=e,t[1]=n);let{boundaryElement:r}=n,[i,a]=(0,Y.useState)(null);i?.type;let o=pe[i?.type||`comment`],s=i?.type===`comment`?r:void 0,c;t[2]!==o||t[3]!==s?(c={...o,boundary:s},t[2]=o,t[3]=s,t[4]=c):c=t[4];let l=c,u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>{a({type:`comment`,id:e})},t[5]=u):u=t[5];let d=u,f;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{a({type:`group`,id:e})},t[6]=f):f=t[6];let p=f,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>{a({type:`field`,id:e})},t[7]=m):m=t[7];let h=m,g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{a({type:`inline-comment`,id:e})},t[8]=g):g=t[8];let _=g,v,y;t[9]!==l||t[10]!==i?(v=()=>{let e=requestAnimationFrame(()=>{if(!i)return;let{type:e,id:t}=i,n=document?.querySelector(`[data-comments-${e}-id="${me(t)}"]`);n&&x(n,l)});return()=>{cancelAnimationFrame(e)}},y=[l,i],t[9]=l,t[10]=i,t[11]=v,t[12]=y):(v=t[11],y=t[12]),(0,Y.useEffect)(v,y);let b;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b={scrollToComment:d,scrollToField:h,scrollToGroup:p,scrollToInlineComment:_},t[13]=b):b=t[13],b}var be=`_1xg999m0`;function xe(e){let t=(0,X.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(q,{className:be,size:1,as:`div`,trim:!0,children:n}),t[0]=n,t[1]=r),r}var Se=h({name:`mention`,type:`object`,fields:[{name:`userId`,type:`string`}]}),Ce=h({type:`block`,name:`block`,of:[Se],marks:{annotations:[]},styles:[{title:`Normal`,value:`normal`}],lists:[]}),we=g({type:`array`,name:`body`,of:[Ce]}),Te=E.compile({name:`comments`,types:[we]}).get(`body`);function Ee(e){let t=(0,X.c)(25),{t:n}=a(z),{onClose:r,onConfirm:i}=e,o;t[0]===r?o=t[1]:(o=e=>{e.stopPropagation(),r()},t[0]=r,t[1]=o);let s=o,c;t[2]===i?c=t[3]:(c=e=>{e.stopPropagation(),i()},t[2]=i,t[3]=c);let l=c,u;t[4]===n?u=t[5]:(u=n(`discard.header`),t[4]=n,t[5]=u);let d;t[6]===s?d=t[7]:(d={onClick:s},t[6]=s,t[7]=d);let f;t[8]===n?f=t[9]:(f=n(`discard.button-confirm`),t[8]=n,t[9]=f);let m;t[10]!==l||t[11]!==f?(m={onClick:l,text:f,tone:`critical`},t[10]=l,t[11]=f,t[12]=m):m=t[12];let h;t[13]!==d||t[14]!==m?(h={cancelButton:d,confirmButton:m},t[13]=d,t[14]=m,t[15]=h):h=t[15];let g;t[16]===n?g=t[17]:(g=n(`discard.text`),t[16]=n,t[17]=g);let _;t[18]===g?_=t[19]:(_=(0,Z.jsx)(q,{size:1,as:`div`,trim:!0,children:g}),t[18]=g,t[19]=_);let v;return t[20]!==r||t[21]!==u||t[22]!==h||t[23]!==_?(v=(0,Z.jsx)(U,{tone:`default`,children:(0,Z.jsx)(G,{zOffset:9999999,children:(0,Z.jsx)(p,{header:u,id:`discard-comment-dialog`,onClose:r,width:0,onClickOutside:r,footer:h,children:_})})}),t[20]=r,t[21]=u,t[22]=h,t[23]=_,t[24]=v):v=t[24],v}var De=H(ie).withConfig({displayName:`StyledAvatar`,componentId:`sc-lay0rn-0`})`svg > ellipse{stroke:transparent;}`,Oe=/[^\p{Alpha}\p{White_Space}]/gu,ke=/\p{White_Space}+/u;function Ae(e){let t=e.replace(Oe,``).split(ke);return t.length===1?`${t[0].charAt(0)}`.toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`}function je(e){let t=(0,X.c)(12),n,r;t[0]===e?(n=t[1],r=t[2]):({user:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r;i?.displayName;let a=i?.displayName||``,o;t[3]===a?o=t[4]:(o=Ae(a),t[3]=a,t[4]=o);let s=o;if(!i){let e;return t[5]===n?e=t[6]:(e=(0,Z.jsx)(De,{...n}),t[5]=n,t[6]=e),e}let c=i?.imageUrl,l=i?.displayName,u;return t[7]!==s||t[8]!==n||t[9]!==c||t[10]!==l?(u=(0,Z.jsx)(De,{initials:s,src:c,title:l,...n}),t[7]=s,t[8]=n,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Me(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Ef as n,Jf as r,Qs as i,Sd as a,Wf as o,Yr as s,Ys as c,Zs as l,ai as u,ci as d,di as f,ec as p,fi as m,gf as h,hf as g,ii as _,ju as v,lc as y,li as b,mi as x,nc as S,oi as C,pc as w,pi as T,pu as E,rc as D,ri as O,rr as k,si as A,uc as j,ui as M,vi as N,yi as P,yu as F}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as I,t as L}from"./jsx-runtime-BpzPEenQ.js";import{t as R}from"./compiler-runtime-sKsOXjDo.js";import{et as z,pr as B}from"./types--2f-avvL-CUBrVRGR.js";import{Et as V,Gt as H,Ot as U,Qt as ee,Ut as W,_ as G,et as te,f as ne,ft as re,j as K,l as ie,o as q,pt as ae,r as J,s as oe,t as se}from"./dist-LVcARZxB.js";import{a as ce,n as le}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";var Y=e(I(),1),X=R(),Z=L();function ue(){let e=(0,Y.useContext)(r);if(!e)throw Error(`useComments must be used within a CommentsProvider`);return e}var Q={behavior:`smooth`,inline:`center`,scrollMode:`if-needed`},de={...Q,block:`start`},fe={...Q,block:`center`},$={...Q,block:`center`},pe={comment:{...Q,block:`center`},field:$,group:de,"inline-comment":fe};function me(e){return e.replace(/[[\]_"_=.]/g,``)}function he(e){return{"data-comments-comment-id":me(e)}}function ge(e){return{"data-comments-field-id":me(e)}}function _e(e){return{"data-comments-group-id":me(e)}}function ve(e){return{"data-comments-inline-comment-id":me(e)}}function ye(e){let t=(0,X.c)(14),n;t[0]===e?n=t[1]:(n=e||{},t[0]=e,t[1]=n);let{boundaryElement:r}=n,[i,a]=(0,Y.useState)(null);i?.type;let o=pe[i?.type||`comment`],s=i?.type===`comment`?r:void 0,c;t[2]!==o||t[3]!==s?(c={...o,boundary:s},t[2]=o,t[3]=s,t[4]=c):c=t[4];let l=c,u;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(u=e=>{a({type:`comment`,id:e})},t[5]=u):u=t[5];let d=u,f;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{a({type:`group`,id:e})},t[6]=f):f=t[6];let p=f,m;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(m=e=>{a({type:`field`,id:e})},t[7]=m):m=t[7];let h=m,g;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(g=e=>{a({type:`inline-comment`,id:e})},t[8]=g):g=t[8];let _=g,v,y;t[9]!==l||t[10]!==i?(v=()=>{let e=requestAnimationFrame(()=>{if(!i)return;let{type:e,id:t}=i,n=document?.querySelector(`[data-comments-${e}-id="${me(t)}"]`);n&&x(n,l)});return()=>{cancelAnimationFrame(e)}},y=[l,i],t[9]=l,t[10]=i,t[11]=v,t[12]=y):(v=t[11],y=t[12]),(0,Y.useEffect)(v,y);let b;return t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b={scrollToComment:d,scrollToField:h,scrollToGroup:p,scrollToInlineComment:_},t[13]=b):b=t[13],b}var be=`_1xg999m0`;function xe(e){let t=(0,X.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,Z.jsx)(q,{className:be,size:1,as:`div`,trim:!0,children:n}),t[0]=n,t[1]=r),r}var Se=h({name:`mention`,type:`object`,fields:[{name:`userId`,type:`string`}]}),Ce=h({type:`block`,name:`block`,of:[Se],marks:{annotations:[]},styles:[{title:`Normal`,value:`normal`}],lists:[]}),we=g({type:`array`,name:`body`,of:[Ce]}),Te=E.compile({name:`comments`,types:[we]}).get(`body`);function Ee(e){let t=(0,X.c)(25),{t:n}=a(z),{onClose:r,onConfirm:i}=e,o;t[0]===r?o=t[1]:(o=e=>{e.stopPropagation(),r()},t[0]=r,t[1]=o);let s=o,c;t[2]===i?c=t[3]:(c=e=>{e.stopPropagation(),i()},t[2]=i,t[3]=c);let l=c,u;t[4]===n?u=t[5]:(u=n(`discard.header`),t[4]=n,t[5]=u);let d;t[6]===s?d=t[7]:(d={onClick:s},t[6]=s,t[7]=d);let f;t[8]===n?f=t[9]:(f=n(`discard.button-confirm`),t[8]=n,t[9]=f);let m;t[10]!==l||t[11]!==f?(m={onClick:l,text:f,tone:`critical`},t[10]=l,t[11]=f,t[12]=m):m=t[12];let h;t[13]!==d||t[14]!==m?(h={cancelButton:d,confirmButton:m},t[13]=d,t[14]=m,t[15]=h):h=t[15];let g;t[16]===n?g=t[17]:(g=n(`discard.text`),t[16]=n,t[17]=g);let _;t[18]===g?_=t[19]:(_=(0,Z.jsx)(q,{size:1,as:`div`,trim:!0,children:g}),t[18]=g,t[19]=_);let v;return t[20]!==r||t[21]!==u||t[22]!==h||t[23]!==_?(v=(0,Z.jsx)(U,{tone:`default`,children:(0,Z.jsx)(G,{zOffset:9999999,children:(0,Z.jsx)(p,{header:u,id:`discard-comment-dialog`,onClose:r,width:0,onClickOutside:r,footer:h,children:_})})}),t[20]=r,t[21]=u,t[22]=h,t[23]=_,t[24]=v):v=t[24],v}var De=H(ie).withConfig({displayName:`StyledAvatar`,componentId:`sc-lay0rn-0`})`svg > ellipse{stroke:transparent;}`,Oe=/[^\p{Alpha}\p{White_Space}]/gu,ke=/\p{White_Space}+/u;function Ae(e){let t=e.replace(Oe,``).split(ke);return t.length===1?`${t[0].charAt(0)}`.toUpperCase():`${t[0].charAt(0)}${t[t.length-1].charAt(0)}`}function je(e){let t=(0,X.c)(12),n,r;t[0]===e?(n=t[1],r=t[2]):({user:r,...n}=e,t[0]=e,t[1]=n,t[2]=r);let i=r;i?.displayName;let a=i?.displayName||``,o;t[3]===a?o=t[4]:(o=Ae(a),t[3]=a,t[4]=o);let s=o;if(!i){let e;return t[5]===n?e=t[6]:(e=(0,Z.jsx)(De,{...n}),t[5]=n,t[6]=e),e}let c=i?.imageUrl,l=i?.displayName,u;return t[7]!==s||t[8]!==n||t[9]!==c||t[10]!==l?(u=(0,Z.jsx)(De,{initials:s,src:c,title:l,...n}),t[7]=s,t[8]=n,t[9]=c,t[10]=l,t[11]=u):u=t[11],u}function Me(e){let t=(0,X.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,Z.jsx)(`Line truncated
|
||||
min-height: ${ee(e.theme).avatar.sizes[1]?.size}px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Kf as t,ju as n,tp as r}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as i,t as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";import{Et as s}from"./types--2f-avvL-DfAXA8nG.js";import{t as c}from"./CommentsEnabledProvider-By3TCGFl-gLI34tgD.js";var l=e(i(),1),u=o(),d=a();function f(e){let n=(0,u.c)(6),{children:r}=e,[i,a]=(0,l.useState)(null),o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(e)},n[0]=o):o=n[0];let s=o,c;n[1]===i?c=n[2]:(c={authoringPath:i,setAuthoringPath:s},n[1]=i,n[2]=c);let f=c,p;return n[3]!==r||n[4]!==f?(p=(0,d.jsx)(t.Provider,{value:f,children:r}),n[3]=r,n[4]=f,n[5]=p):p=n[5],p}var p=(0,l.memo)(function(e){let t=(0,u.c)(8),{children:i}=e,[a,o]=(0,l.useState)(null),s;t[0]===a?s=t[1]:(s=e=>{n(a,e)||o(e)},t[0]=a,t[1]=s);let c=s,f;t[2]!==c||t[3]!==a?(f={selectedPath:a,setSelectedPath:c},t[2]=c,t[3]=a,t[4]=f):f=t[4];let p=f,m;return t[5]!==i||t[6]!==p?(m=(0,d.jsx)(r.Provider,{value:p,children:i}),t[5]=i,t[6]=p,t[7]=m):m=t[7],m});function m(e){let t=(0,u.c)(8),{documentId:n,documentType:r}=e;if(s().mode!==null){let n;return t[0]===e?n=t[1]:(n=(0,d.jsx)(h,{...e}),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=(0,d.jsx)(h,{...e}),t[2]=e,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,d.jsx)(c,{groupId:n,documentType:r,children:i}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function h(e){let t=(0,u.c)(6);if(!s().enabled){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let n;t[2]===e?n=t[3]:(n=e.renderDefault(e),t[2]=e,t[3]=n);let r;return t[4]===n?r=t[5]:(r=(0,d.jsx)(p,{children:(0,d.jsx)(f,{children:n})}),t[4]=n,t[5]=r),r}export{m as CommentsDocumentLayout};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Kf as t,ju as n,tp as r}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as i,t as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";import{Et as s}from"./types--2f-avvL-CUBrVRGR.js";import{t as c}from"./CommentsEnabledProvider-By3TCGFl-C60crpzJ.js";var l=e(i(),1),u=o(),d=a();function f(e){let n=(0,u.c)(6),{children:r}=e,[i,a]=(0,l.useState)(null),o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(e)},n[0]=o):o=n[0];let s=o,c;n[1]===i?c=n[2]:(c={authoringPath:i,setAuthoringPath:s},n[1]=i,n[2]=c);let f=c,p;return n[3]!==r||n[4]!==f?(p=(0,d.jsx)(t.Provider,{value:f,children:r}),n[3]=r,n[4]=f,n[5]=p):p=n[5],p}var p=(0,l.memo)(function(e){let t=(0,u.c)(8),{children:i}=e,[a,o]=(0,l.useState)(null),s;t[0]===a?s=t[1]:(s=e=>{n(a,e)||o(e)},t[0]=a,t[1]=s);let c=s,f;t[2]!==c||t[3]!==a?(f={selectedPath:a,setSelectedPath:c},t[2]=c,t[3]=a,t[4]=f):f=t[4];let p=f,m;return t[5]!==i||t[6]!==p?(m=(0,d.jsx)(r.Provider,{value:p,children:i}),t[5]=i,t[6]=p,t[7]=m):m=t[7],m});function m(e){let t=(0,u.c)(8),{documentId:n,documentType:r}=e;if(s().mode!==null){let n;return t[0]===e?n=t[1]:(n=(0,d.jsx)(h,{...e}),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=(0,d.jsx)(h,{...e}),t[2]=e,t[3]=i);let a;return t[4]!==n||t[5]!==r||t[6]!==i?(a=(0,d.jsx)(c,{groupId:n,documentType:r,children:i}),t[4]=n,t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function h(e){let t=(0,u.c)(6);if(!s().enabled){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let n;t[2]===e?n=t[3]:(n=e.renderDefault(e),t[2]=e,t[3]=n);let r;return t[4]===n?r=t[5]:(r=(0,d.jsx)(p,{children:(0,d.jsx)(f,{children:n})}),t[4]=n,t[5]=r),r}export{m as CommentsDocumentLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{Tt as n,v as r}from"./types--2f-avvL-DfAXA8nG.js";import{n as i,t as a}from"./CommentsEnabledProvider-CEeES47b-BEr5KMWm.js";var o=t(),s=e();function c(e){let t=(0,o.c)(8),{documentId:r,documentType:a}=e;if(n().mode!==null){let n;return t[0]===e?n=t[1]:(n=(0,s.jsx)(l,{...e}),t[0]=e,t[1]=n),n}let c;t[2]===e?c=t[3]:(c=(0,s.jsx)(l,{...e}),t[2]=e,t[3]=c);let u;return t[4]!==r||t[5]!==a||t[6]!==c?(u=(0,s.jsx)(i,{documentId:r,documentType:a,children:c}),t[4]=r,t[5]=a,t[6]=c,t[7]=u):u=t[7],u}function l(e){let t=(0,o.c)(6);if(!n().enabled){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=e.renderDefault(e),t[2]=e,t[3]=i);let c;return t[4]===i?c=t[5]:(c=(0,s.jsx)(r,{children:(0,s.jsx)(a,{children:i})}),t[4]=i,t[5]=c),c}export{c as CommentsDocumentLayout};
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{Tt as n,v as r}from"./types--2f-avvL-CUBrVRGR.js";import{n as i,t as a}from"./CommentsEnabledProvider-CEeES47b-AmQjnwX5.js";var o=t(),s=e();function c(e){let t=(0,o.c)(8),{documentId:r,documentType:a}=e;if(n().mode!==null){let n;return t[0]===e?n=t[1]:(n=(0,s.jsx)(l,{...e}),t[0]=e,t[1]=n),n}let c;t[2]===e?c=t[3]:(c=(0,s.jsx)(l,{...e}),t[2]=e,t[3]=c);let u;return t[4]!==r||t[5]!==a||t[6]!==c?(u=(0,s.jsx)(i,{documentId:r,documentType:a,children:c}),t[4]=r,t[5]=a,t[6]=c,t[7]=u):u=t[7],u}function l(e){let t=(0,o.c)(6);if(!n().enabled){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=e.renderDefault(e),t[2]=e,t[3]=i);let c;return t[4]===i?c=t[5]:(c=(0,s.jsx)(r,{children:(0,s.jsx)(a,{children:i})}),t[4]=i,t[5]=c),c}export{c as CommentsDocumentLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Md as t,S as n,Xf as r,or as i}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as a,t as o}from"./jsx-runtime-BpzPEenQ.js";import{t as s}from"./compiler-runtime-sKsOXjDo.js";import{o as c}from"./stegaClean-YZRATV86-BdUaXCkw.js";var l=e(a(),1),u=s(),d=o();function f(e,r){let a=(0,u.c)(3),{enabled:o,isLoading:s,error:l}=i(n.studioComments),{enabled:d}=t().document.comments,f=d({documentType:r,documentId:c(e)}),p;bb0:{if(s||!f||l){let e;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},a[0]=e):e=a[0],p=e;break bb0}let e=o?`default`:`upsell`,t;a[1]===e?t=a[2]:(t={enabled:!0,mode:e},a[1]=e,a[2]=t),p=t}return p}var p=(0,l.memo)(function(e){let t=(0,u.c)(3),{children:n,groupId:i,documentType:a}=e,o=f(i,a),s;return t[0]!==n||t[1]!==o?(s=(0,d.jsx)(r.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=s):s=t[2],s});export{p as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Md as t,S as n,Xf as r,or as i}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as a,t as o}from"./jsx-runtime-BpzPEenQ.js";import{t as s}from"./compiler-runtime-sKsOXjDo.js";import{o as c}from"./stegaClean-YZRATV86-BdUaXCkw.js";var l=e(a(),1),u=s(),d=o();function f(e,r){let a=(0,u.c)(3),{enabled:o,isLoading:s,error:l}=i(n.studioComments),{enabled:d}=t().document.comments,f=d({documentType:r,documentId:c(e)}),p;bb0:{if(s||!f||l){let e;a[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},a[0]=e):e=a[0],p=e;break bb0}let e=o?`default`:`upsell`,t;a[1]===e?t=a[2]:(t={enabled:!0,mode:e},a[1]=e,a[2]=t),p=t}return p}var p=(0,l.memo)(function(e){let t=(0,u.c)(3),{children:n,groupId:i,documentType:a}=e,o=f(i,a),s;return t[0]!==n||t[1]!==o?(s=(0,d.jsx)(r.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=s):s=t[2],s});export{p as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Gf as t,Md as n,S as r,Yf as i,or as a}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as o,t as s}from"./jsx-runtime-BpzPEenQ.js";import{t as c}from"./compiler-runtime-sKsOXjDo.js";import{o as l}from"./stegaClean-YZRATV86-BdUaXCkw.js";var u=e(o(),1),d=c(),f=s();function p(e){let n=(0,d.c)(6),{children:r}=e,[i,a]=(0,u.useState)(null),o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(e)},n[0]=o):o=n[0];let s=o,c;n[1]===i?c=n[2]:(c={authoringPath:i,setAuthoringPath:s},n[1]=i,n[2]=c);let l=c,p;return n[3]!==r||n[4]!==l?(p=(0,f.jsx)(t.Provider,{value:l,children:r}),n[3]=r,n[4]=l,n[5]=p):p=n[5],p}function m(e,t){let i=(0,d.c)(3),{enabled:o,isLoading:s,error:c}=a(r.studioComments),{enabled:u}=n().document.comments,f=u({documentType:t,documentId:l(e)}),p;bb0:{if(s||!f||c){let e;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},i[0]=e):e=i[0],p=e;break bb0}let e=o?`default`:`upsell`,t;i[1]===e?t=i[2]:(t={enabled:!0,mode:e},i[1]=e,i[2]=t),p=t}return p}var h=(0,u.memo)(function(e){let t=(0,d.c)(3),{children:n,documentId:r,documentType:a}=e,o=m(r,a),s;return t[0]!==n||t[1]!==o?(s=(0,f.jsx)(i.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=s):s=t[2],s});export{h as n,p as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Gf as t,Md as n,S as r,Yf as i,or as a}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as o,t as s}from"./jsx-runtime-BpzPEenQ.js";import{t as c}from"./compiler-runtime-sKsOXjDo.js";import{o as l}from"./stegaClean-YZRATV86-BdUaXCkw.js";var u=e(o(),1),d=c(),f=s();function p(e){let n=(0,d.c)(6),{children:r}=e,[i,a]=(0,u.useState)(null),o;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=e=>{a(e)},n[0]=o):o=n[0];let s=o,c;n[1]===i?c=n[2]:(c={authoringPath:i,setAuthoringPath:s},n[1]=i,n[2]=c);let l=c,p;return n[3]!==r||n[4]!==l?(p=(0,f.jsx)(t.Provider,{value:l,children:r}),n[3]=r,n[4]=l,n[5]=p):p=n[5],p}function m(e,t){let i=(0,d.c)(3),{enabled:o,isLoading:s,error:c}=a(r.studioComments),{enabled:u}=n().document.comments,f=u({documentType:t,documentId:l(e)}),p;bb0:{if(s||!f||c){let e;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},i[0]=e):e=i[0],p=e;break bb0}let e=o?`default`:`upsell`,t;i[1]===e?t=i[2]:(t={enabled:!0,mode:e},i[1]=e,i[2]=t),p=t}return p}var h=(0,u.memo)(function(e){let t=(0,d.c)(3),{children:n,documentId:r,documentType:a}=e,o=m(r,a),s;return t[0]!==n||t[1]!==o?(s=(0,f.jsx)(i.Provider,{value:o,children:n}),t[0]=n,t[1]=o,t[2]=s):s=t[2],s});export{h as n,p as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,Hl as n,Kf as r,Sd as i,To as ee,Vl as a,Zs as te,cd as o,lc as s,ld as c,nc as ne,nf as l,rc as re}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as u,t as d}from"./jsx-runtime-BpzPEenQ.js";import{t as f}from"./compiler-runtime-sKsOXjDo.js";import{Et as p,et as m,n as h}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as g,Ut as _,Y as v,a as y,et as b,it as ie,o as ae,r as x,s as S,yt as oe}from"./dist-LVcARZxB.js";import{t as C}from"./Comment-CPMW8FMx.js";import{i as w,n as T,r as E}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{AddCommentIcon as se}from"./AddComment-DzLuhpXr.js";import{l as D,o as O,t as k,u as ce}from"./CommentInput-C1kF5k49-kVUiwefG.js";import{n as le,t as A}from"./useCommentsUpsell-dtlhkiSW-Ba-EmyX0.js";var j=e(u(),1),ue=f(),M=d();function de(){let e=(0,j.useContext)(r);if(!e)throw Error(`useCommentsAuthoringPath: missing context value`);return e}var N=`srqqgt0`;function P(e){let t=(0,ue.c)(69),{count:n,currentUser:r,fieldTitle:a,mentionOptions:te,onChange:o,onClick:c,onClose:l,onCommentAdd:u,onDiscard:d,onInputKeyDown:f,open:p,readOnly:h,value:g}=e,{t:_}=i(m),v=(0,j.useRef)(null),[ie,S]=(0,j.useState)(null),w=(0,j.useRef)(null),E=n>0,D;t[0]!==ie||t[1]!==l||t[2]!==p?(D=()=>{p&&(l(),ie?.focus())},t[0]=ie,t[1]=l,t[2]=p,t[3]=D):D=t[3];let O=D,ce;t[4]!==O||t[5]!==u?(ce=e=>{u(e),O()},t[4]=O,t[5]=u,t[6]=ce):ce=t[6];let le=ce,A;t[7]===g?A=t[8]:(A=T(g),t[7]=g,t[8]=A);let de=A,P;t[9]!==O||t[10]!==de?(P=()=>{if(!de){O();return}w.current?.discardDialogController.open()},t[9]=O,t[10]=de,t[11]=P):P=t[11];let F=P,I;t[12]===f?I=t[13]:(I=e=>{e.isDefaultPrevented()||f&&f(e)},t[12]=f,t[13]=I);let fe=I,L;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{w.current?.discardDialogController.close()},t[14]=L):L=t[14];let pe=L,R;t[15]!==O||t[16]!==d?(R=()=>{w.current?.discardDialogController.close(),O(),d()},t[15]=O,t[16]=d,t[17]=R):R=t[17];let z=R,B;t[18]===F?B=t[19]:(B=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),F())},t[18]=F,t[19]=B);let me=B,V;if(t[20]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>[v.current],t[20]=V):V=t[20],b(p&&F,V),!E){let e;t[21]===a?e=t[22]:(e={field:a},t[21]=a,t[22]=e);let n;t[23]!==_||t[24]!==e?(n=(0,M.jsx)(ee,{t:_,i18nKey:`compose.add-comment-input-placeholder`,values:e}),t[23]=_,t[24]=e,t[25]=n):n=t[25];let i=n,s;t[26]!==r||t[27]!==z||t[28]!==fe||t[29]!==le||t[30]!==te||t[31]!==o||t[32]!==i||t[33]!==h||t[34]!==g?(s=(0,M.jsx)(x,{className:N,padding:2,gap:4,flexDirection:`column`,children:(0,M.jsx)(k,{currentUser:r,focusLock:!0,focusOnMount:!0,mentionOptions:te,onChange:o,onDiscardCancel:pe,onDiscardConfirm:z,onKeyDown:fe,onSubmit:le,placeholder:i,readOnly:h,ref:w,value:g})}),t[26]=r,t[27]=z,t[28]=fe,t[29]=le,t[30]=te,t[31]=o,t[32]=i,t[33]=h,t[34]=g,t[35]=s):s=t[35];let l=s,u;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`bottom-end`],t[36]=u):u=t[36];let d;t[37]===_?d=t[38]:(d=_(`field-button.aria-label-add`),t[37]=_,t[38]=d);let f;t[39]===_?f=t[40]:(f=_(`field-button.title`),t[39]=_,t[40]=f);let m;t[41]===f?m=t[42]:(m={content:f,placement:`top`},t[41]=f,t[42]=m);let y;t[43]!==c||t[44]!==p||t[45]!==h||t[46]!==d||t[47]!==m?(y=(0,M.jsx)(`div`,{children:(0,M.jsx)(re,{"aria-label":d,disabled:h,icon:se,mode:`bleed`,onClick:c,ref:S,selected:p,tooltipProps:m})}),t[43]=c,t[44]=p,t[45]=h,t[46]=d,t[47]=m,t[48]=y):y=t[48];let b;return t[49]!==l||t[50]!==me||t[51]!==p||t[52]!==y?(b=(0,M.jsx)(ne,{constrainSize:!0,content:l,fallbackPlacements:u,open:p,placement:`right-start`,portal:!0,ref:v,onKeyDown:me,children:y}),t[49]=l,t[50]=me,t[51]=p,t[52]=y,t[53]=b):b=t[53],b}let H;t[54]!==n||t[55]!==_?(H=_(`field-button.content`,{count:n}),t[54]=n,t[55]=_,t[56]=H):H=t[56];let U;t[57]===_?U=t[58]:(U=_(`field-button.aria-label-open`),t[57]=_,t[58]=U);let W;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,M.jsx)(y,{muted:!0,size:1,icon:C,style:{margin:`-0.375rem`}}),t[59]=W):W=t[59];let G=n>9?`9+`:n,K;t[60]===G?K=t[61]:(K=(0,M.jsxs)(x,{alignItems:`center`,gap:2,children:[W,(0,M.jsx)(ae,{size:0,as:`div`,trim:!0,children:G})]}),t[60]=G,t[61]=K);let q;t[62]!==c||t[63]!==U||t[64]!==K?(q=(0,M.jsx)(oe,{"aria-label":U,mode:`bleed`,onClick:c,padding:2,gap:2,children:K}),t[62]=c,t[63]=U,t[64]=K,t[65]=q):q=t[65];let J;return t[66]!==q||t[67]!==H?(J=(0,M.jsx)(s,{portal:!0,placement:`top`,content:H,children:q}),t[66]=q,t[67]=H,t[68]=J):J=t[68],J}var F=new Map,I=[],fe={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function L(e){let t=(0,ue.c)(5),{enabled:n,mode:r}=p();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;return t[2]!==r||t[3]!==e?(i=(0,M.jsx)(z,{...e,mode:r}),t[2]=r,t[3]=e,t[4]=i):i=t[4],i}var pe=g(o.div).withConfig({displayName:`HighlightDiv`,componentId:`sc-gt2o49-0`})(({theme:e})=>{let{radius:t,space:n,color:r}=e.sanity,i=v[h][r.dark?900:50].hex;return _`mix-blend-mode:${r.dark?`screen`:`multiply`};border-radius:${t[3]}px;top:-${n[2]}px;left:-${n[2]}Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,Hl as n,Kf as r,Sd as i,To as ee,Vl as a,Zs as te,cd as o,lc as s,ld as c,nc as ne,nf as l,rc as re}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as u,t as d}from"./jsx-runtime-BpzPEenQ.js";import{t as f}from"./compiler-runtime-sKsOXjDo.js";import{Et as p,et as m,n as h}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as g,Ut as _,Y as v,a as y,et as b,it as ie,o as ae,r as x,s as S,yt as oe}from"./dist-LVcARZxB.js";import{t as C}from"./Comment-CPMW8FMx.js";import{i as w,n as T,r as E}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{AddCommentIcon as se}from"./AddComment-DzLuhpXr.js";import{l as D,o as O,t as k,u as ce}from"./CommentInput-C1kF5k49-CItaByrf.js";import{n as le,t as A}from"./useCommentsUpsell-dtlhkiSW-BXDjHwtY.js";var j=e(u(),1),ue=f(),M=d();function de(){let e=(0,j.useContext)(r);if(!e)throw Error(`useCommentsAuthoringPath: missing context value`);return e}var N=`srqqgt0`;function P(e){let t=(0,ue.c)(69),{count:n,currentUser:r,fieldTitle:a,mentionOptions:te,onChange:o,onClick:c,onClose:l,onCommentAdd:u,onDiscard:d,onInputKeyDown:f,open:p,readOnly:h,value:g}=e,{t:_}=i(m),v=(0,j.useRef)(null),[ie,S]=(0,j.useState)(null),w=(0,j.useRef)(null),E=n>0,D;t[0]!==ie||t[1]!==l||t[2]!==p?(D=()=>{p&&(l(),ie?.focus())},t[0]=ie,t[1]=l,t[2]=p,t[3]=D):D=t[3];let O=D,ce;t[4]!==O||t[5]!==u?(ce=e=>{u(e),O()},t[4]=O,t[5]=u,t[6]=ce):ce=t[6];let le=ce,A;t[7]===g?A=t[8]:(A=T(g),t[7]=g,t[8]=A);let de=A,P;t[9]!==O||t[10]!==de?(P=()=>{if(!de){O();return}w.current?.discardDialogController.open()},t[9]=O,t[10]=de,t[11]=P):P=t[11];let F=P,I;t[12]===f?I=t[13]:(I=e=>{e.isDefaultPrevented()||f&&f(e)},t[12]=f,t[13]=I);let fe=I,L;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{w.current?.discardDialogController.close()},t[14]=L):L=t[14];let pe=L,R;t[15]!==O||t[16]!==d?(R=()=>{w.current?.discardDialogController.close(),O(),d()},t[15]=O,t[16]=d,t[17]=R):R=t[17];let z=R,B;t[18]===F?B=t[19]:(B=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),F())},t[18]=F,t[19]=B);let me=B,V;if(t[20]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>[v.current],t[20]=V):V=t[20],b(p&&F,V),!E){let e;t[21]===a?e=t[22]:(e={field:a},t[21]=a,t[22]=e);let n;t[23]!==_||t[24]!==e?(n=(0,M.jsx)(ee,{t:_,i18nKey:`compose.add-comment-input-placeholder`,values:e}),t[23]=_,t[24]=e,t[25]=n):n=t[25];let i=n,s;t[26]!==r||t[27]!==z||t[28]!==fe||t[29]!==le||t[30]!==te||t[31]!==o||t[32]!==i||t[33]!==h||t[34]!==g?(s=(0,M.jsx)(x,{className:N,padding:2,gap:4,flexDirection:`column`,children:(0,M.jsx)(k,{currentUser:r,focusLock:!0,focusOnMount:!0,mentionOptions:te,onChange:o,onDiscardCancel:pe,onDiscardConfirm:z,onKeyDown:fe,onSubmit:le,placeholder:i,readOnly:h,ref:w,value:g})}),t[26]=r,t[27]=z,t[28]=fe,t[29]=le,t[30]=te,t[31]=o,t[32]=i,t[33]=h,t[34]=g,t[35]=s):s=t[35];let l=s,u;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`bottom-end`],t[36]=u):u=t[36];let d;t[37]===_?d=t[38]:(d=_(`field-button.aria-label-add`),t[37]=_,t[38]=d);let f;t[39]===_?f=t[40]:(f=_(`field-button.title`),t[39]=_,t[40]=f);let m;t[41]===f?m=t[42]:(m={content:f,placement:`top`},t[41]=f,t[42]=m);let y;t[43]!==c||t[44]!==p||t[45]!==h||t[46]!==d||t[47]!==m?(y=(0,M.jsx)(`div`,{children:(0,M.jsx)(re,{"aria-label":d,disabled:h,icon:se,mode:`bleed`,onClick:c,ref:S,selected:p,tooltipProps:m})}),t[43]=c,t[44]=p,t[45]=h,t[46]=d,t[47]=m,t[48]=y):y=t[48];let b;return t[49]!==l||t[50]!==me||t[51]!==p||t[52]!==y?(b=(0,M.jsx)(ne,{constrainSize:!0,content:l,fallbackPlacements:u,open:p,placement:`right-start`,portal:!0,ref:v,onKeyDown:me,children:y}),t[49]=l,t[50]=me,t[51]=p,t[52]=y,t[53]=b):b=t[53],b}let H;t[54]!==n||t[55]!==_?(H=_(`field-button.content`,{count:n}),t[54]=n,t[55]=_,t[56]=H):H=t[56];let U;t[57]===_?U=t[58]:(U=_(`field-button.aria-label-open`),t[57]=_,t[58]=U);let W;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,M.jsx)(y,{muted:!0,size:1,icon:C,style:{margin:`-0.375rem`}}),t[59]=W):W=t[59];let G=n>9?`9+`:n,K;t[60]===G?K=t[61]:(K=(0,M.jsxs)(x,{alignItems:`center`,gap:2,children:[W,(0,M.jsx)(ae,{size:0,as:`div`,trim:!0,children:G})]}),t[60]=G,t[61]=K);let q;t[62]!==c||t[63]!==U||t[64]!==K?(q=(0,M.jsx)(oe,{"aria-label":U,mode:`bleed`,onClick:c,padding:2,gap:2,children:K}),t[62]=c,t[63]=U,t[64]=K,t[65]=q):q=t[65];let J;return t[66]!==q||t[67]!==H?(J=(0,M.jsx)(s,{portal:!0,placement:`top`,content:H,children:q}),t[66]=q,t[67]=H,t[68]=J):J=t[68],J}var F=new Map,I=[],fe={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function L(e){let t=(0,ue.c)(5),{enabled:n,mode:r}=p();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;return t[2]!==r||t[3]!==e?(i=(0,M.jsx)(z,{...e,mode:r}),t[2]=r,t[3]=e,t[4]=i):i=t[4],i}var pe=g(o.div).withConfig({displayName:`HighlightDiv`,componentId:`sc-gt2o49-0`})(({theme:e})=>{let{radius:t,space:n,color:r}=e.sanity,i=v[h][r.dark?900:50].hex;return _`mix-blend-mode:${r.dark?`screen`:`multiply`};border-radius:${t[3]}px;top:-${n[2]}px;left:-${n[2]}Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,Gf as n,Hl as r,Sd as i,To as ee,Vl as a,Zs as o,cd as te,lc as s,ld as ne,nc as re,nf as c,rc as ie}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as l,t as u}from"./jsx-runtime-BpzPEenQ.js";import{t as d}from"./compiler-runtime-sKsOXjDo.js";import{Dt as f,J as p,Ot as m,Tt as h,dt as g,g as ae,gt as oe,r as _,tt as v,vt as y}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as b,Ut as x,Y as S,a as C,et as se,it as ce,o as w,r as T,s as E,yt as le}from"./dist-LVcARZxB.js";import{t as ue}from"./Comment-CPMW8FMx.js";import{t as D}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{t as O}from"./useComments-Bi1m7AzT-CGyuZP86.js";import{AddCommentIcon as k}from"./AddComment-DzLuhpXr.js";import{t as de}from"./useCommentsUpsell-a8ecO894-CXaANVNE.js";var A=e(l(),1),fe=d(),j=u();function pe(){let e=(0,A.useContext)(n);if(!e)throw Error(`useCommentsAuthoringPath: missing context value`);return e}var M=b(T).withConfig({displayName:`ContentStack`,componentId:`sc-kyng0k-0`})`width:320px;`;function me(e){let t=(0,fe.c)(69),{count:n,currentUser:r,fieldTitle:a,isCreatingDataset:o,mentionOptions:te,onChange:ne,onClick:c,onClose:l,onCommentAdd:u,onDiscard:d,onInputKeyDown:f,open:p,value:m}=e,{t:h}=i(v),{error:oe}=D(),_=(0,A.useRef)(null),[y,b]=(0,A.useState)(null),x=(0,A.useRef)(null),S=n>0,ce;t[0]!==y||t[1]!==l||t[2]!==p?(ce=()=>{p&&(l(),y?.focus())},t[0]=y,t[1]=l,t[2]=p,t[3]=ce):ce=t[3];let E=ce,O;t[4]!==E||t[5]!==u?(O=e=>{u(e),E()},t[4]=E,t[5]=u,t[6]=O):O=t[6];let de=O,pe;t[7]===m?pe=t[8]:(pe=g(m),t[7]=m,t[8]=pe);let me=pe,N;t[9]!==E||t[10]!==me?(N=()=>{if(!me){E();return}x.current?.discardDialogController.open()},t[9]=E,t[10]=me,t[11]=N):N=t[11];let P=N,F;t[12]===f?F=t[13]:(F=e=>{e.isDefaultPrevented()||f&&f(e)},t[12]=f,t[13]=F);let I=F,L;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{x.current?.discardDialogController.close()},t[14]=L):L=t[14];let he=L,R;t[15]!==E||t[16]!==d?(R=()=>{x.current?.discardDialogController.close(),E(),d()},t[15]=E,t[16]=d,t[17]=R):R=t[17];let ge=R,z;t[18]===P?z=t[19]:(z=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),P())},t[18]=P,t[19]=z);let B=z,V;if(t[20]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>[_.current],t[20]=V):V=t[20],se(p&&P,V),!S){let e;t[21]===a?e=t[22]:(e={field:a},t[21]=a,t[22]=e);let n;t[23]!==h||t[24]!==e?(n=(0,j.jsx)(ee,{t:h,i18nKey:`compose.add-comment-input-placeholder`,values:e}),t[23]=h,t[24]=e,t[25]=n):n=t[25];let i=n,s;t[26]!==r||t[27]!==ge||t[28]!==I||t[29]!==de||t[30]!==o||t[31]!==te||t[32]!==ne||t[33]!==i||t[34]!==m?(s=(0,j.jsx)(M,{padding:2,gap:4,flexDirection:`column`,children:(0,j.jsx)(ae,{currentUser:r,focusLock:!0,focusOnMount:!0,mentionOptions:te,onChange:ne,onDiscardCancel:he,onDiscardConfirm:ge,onKeyDown:I,onSubmit:de,placeholder:i,readOnly:o,ref:x,value:m})}),t[26]=r,t[27]=ge,t[28]=I,t[29]=de,t[30]=o,t[31]=te,t[32]=ne,t[33]=i,t[34]=m,t[35]=s):s=t[35];let l=s,u;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`bottom-end`],t[36]=u):u=t[36];let d;t[37]===h?d=t[38]:(d=h(`field-button.aria-label-add`),t[37]=h,t[38]=d);let f=o||!!oe,g;t[39]===h?g=t[40]:(g=h(`field-button.title`),t[39]=h,t[40]=g);let v;t[41]===g?v=t[42]:(v={content:g,placement:`top`},t[41]=g,t[42]=v);let y;t[43]!==c||t[44]!==p||t[45]!==d||t[46]!==f||t[47]!==v?(y=(0,j.jsx)(`div`,{children:(0,j.jsx)(ie,{"aria-label":d,disabled:f,icon:k,mode:`bleed`,onClick:c,ref:b,selected:p,tooltipProps:v})}),t[43]=c,t[44]=p,t[45]=d,t[46]=f,t[47]=v,t[48]=y):y=t[48];let S;return t[49]!==l||t[50]!==B||t[51]!==p||t[52]!==y?(S=(0,j.jsx)(re,{constrainSize:!0,content:l,fallbackPlacements:u,open:p,placement:`right-start`,portal:!0,ref:_,onKeyDown:B,children:y}),t[49]=l,t[50]=B,t[51]=p,t[52]=y,t[53]=S):S=t[53],S}let H;t[54]!==n||t[55]!==h?(H=h(`field-button.content`,{count:n}),t[54]=n,t[55]=h,t[56]=H):H=t[56];let U;t[57]===h?U=t[58]:(U=h(`field-button.aria-label-open`),t[57]=h,t[58]=U);let W;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,j.jsx)(C,{muted:!0,size:1,icon:ue,style:{margin:`-0.375rem`}}),t[59]=W):W=t[59];let G=n>9?`9+`:n,K;t[60]===G?K=t[61]:(K=(0,j.jsxs)(T,{alignItems:`center`,gap:2,children:[W,(0,j.jsx)(w,{size:0,as:`div`,trim:!0,children:G})]}),t[60]=G,t[61]=K);let q;t[62]!==c||t[63]!==U||t[64]!==K?(q=(0,j.jsx)(le,{"aria-label":U,mode:`bleed`,onClick:c,padding:2,gap:2,children:K}),t[62]=c,t[63]=U,t[64]=K,t[65]=q):q=t[65];let J;return t[66]!==q||t[67]!==H?(J=(0,j.jsx)(s,{portal:!0,placement:`top`,content:H,children:q}),t[66]=q,t[67]=H,t[68]=J):J=t[68],J}var N=new Map,P=[],F={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function I(e){let t=(0,fe.c)(5),{enabled:n,mode:r}=h();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;return t[2]!==r||t[3]!==e?(i=(0,j.jsx)(R,{...e,mode:r}),t[2]=r,t[3]=e,t[4]=i):i=t[4],i}var L=b(te.div).withConfig({displayName:`HighlightDiv`,componentId:`sc-9nisbw-0`})(({theme:e})=>{let{radius:t,space:n,color:r}=e.sanity,i=S[_][r.daLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,Gf as n,Hl as r,Sd as i,To as ee,Vl as a,Zs as o,cd as te,lc as s,ld as ne,nc as re,nf as c,rc as ie}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as l,t as u}from"./jsx-runtime-BpzPEenQ.js";import{t as d}from"./compiler-runtime-sKsOXjDo.js";import{Dt as f,J as p,Ot as m,Tt as h,dt as g,g as ae,gt as oe,r as _,tt as v,vt as y}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as b,Ut as x,Y as S,a as C,et as se,it as ce,o as w,r as T,s as E,yt as le}from"./dist-LVcARZxB.js";import{t as ue}from"./Comment-CPMW8FMx.js";import{t as D}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{t as O}from"./useComments-Bi1m7AzT-DcZcKqsq.js";import{AddCommentIcon as k}from"./AddComment-DzLuhpXr.js";import{t as de}from"./useCommentsUpsell-a8ecO894-CNq44jQK.js";var A=e(l(),1),fe=d(),j=u();function pe(){let e=(0,A.useContext)(n);if(!e)throw Error(`useCommentsAuthoringPath: missing context value`);return e}var M=b(T).withConfig({displayName:`ContentStack`,componentId:`sc-kyng0k-0`})`width:320px;`;function me(e){let t=(0,fe.c)(69),{count:n,currentUser:r,fieldTitle:a,isCreatingDataset:o,mentionOptions:te,onChange:ne,onClick:c,onClose:l,onCommentAdd:u,onDiscard:d,onInputKeyDown:f,open:p,value:m}=e,{t:h}=i(v),{error:oe}=D(),_=(0,A.useRef)(null),[y,b]=(0,A.useState)(null),x=(0,A.useRef)(null),S=n>0,ce;t[0]!==y||t[1]!==l||t[2]!==p?(ce=()=>{p&&(l(),y?.focus())},t[0]=y,t[1]=l,t[2]=p,t[3]=ce):ce=t[3];let E=ce,O;t[4]!==E||t[5]!==u?(O=e=>{u(e),E()},t[4]=E,t[5]=u,t[6]=O):O=t[6];let de=O,pe;t[7]===m?pe=t[8]:(pe=g(m),t[7]=m,t[8]=pe);let me=pe,N;t[9]!==E||t[10]!==me?(N=()=>{if(!me){E();return}x.current?.discardDialogController.open()},t[9]=E,t[10]=me,t[11]=N):N=t[11];let P=N,F;t[12]===f?F=t[13]:(F=e=>{e.isDefaultPrevented()||f&&f(e)},t[12]=f,t[13]=F);let I=F,L;t[14]===Symbol.for(`react.memo_cache_sentinel`)?(L=()=>{x.current?.discardDialogController.close()},t[14]=L):L=t[14];let he=L,R;t[15]!==E||t[16]!==d?(R=()=>{x.current?.discardDialogController.close(),E(),d()},t[15]=E,t[16]=d,t[17]=R):R=t[17];let ge=R,z;t[18]===P?z=t[19]:(z=e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),P())},t[18]=P,t[19]=z);let B=z,V;if(t[20]===Symbol.for(`react.memo_cache_sentinel`)?(V=()=>[_.current],t[20]=V):V=t[20],se(p&&P,V),!S){let e;t[21]===a?e=t[22]:(e={field:a},t[21]=a,t[22]=e);let n;t[23]!==h||t[24]!==e?(n=(0,j.jsx)(ee,{t:h,i18nKey:`compose.add-comment-input-placeholder`,values:e}),t[23]=h,t[24]=e,t[25]=n):n=t[25];let i=n,s;t[26]!==r||t[27]!==ge||t[28]!==I||t[29]!==de||t[30]!==o||t[31]!==te||t[32]!==ne||t[33]!==i||t[34]!==m?(s=(0,j.jsx)(M,{padding:2,gap:4,flexDirection:`column`,children:(0,j.jsx)(ae,{currentUser:r,focusLock:!0,focusOnMount:!0,mentionOptions:te,onChange:ne,onDiscardCancel:he,onDiscardConfirm:ge,onKeyDown:I,onSubmit:de,placeholder:i,readOnly:o,ref:x,value:m})}),t[26]=r,t[27]=ge,t[28]=I,t[29]=de,t[30]=o,t[31]=te,t[32]=ne,t[33]=i,t[34]=m,t[35]=s):s=t[35];let l=s,u;t[36]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`bottom-end`],t[36]=u):u=t[36];let d;t[37]===h?d=t[38]:(d=h(`field-button.aria-label-add`),t[37]=h,t[38]=d);let f=o||!!oe,g;t[39]===h?g=t[40]:(g=h(`field-button.title`),t[39]=h,t[40]=g);let v;t[41]===g?v=t[42]:(v={content:g,placement:`top`},t[41]=g,t[42]=v);let y;t[43]!==c||t[44]!==p||t[45]!==d||t[46]!==f||t[47]!==v?(y=(0,j.jsx)(`div`,{children:(0,j.jsx)(ie,{"aria-label":d,disabled:f,icon:k,mode:`bleed`,onClick:c,ref:b,selected:p,tooltipProps:v})}),t[43]=c,t[44]=p,t[45]=d,t[46]=f,t[47]=v,t[48]=y):y=t[48];let S;return t[49]!==l||t[50]!==B||t[51]!==p||t[52]!==y?(S=(0,j.jsx)(re,{constrainSize:!0,content:l,fallbackPlacements:u,open:p,placement:`right-start`,portal:!0,ref:_,onKeyDown:B,children:y}),t[49]=l,t[50]=B,t[51]=p,t[52]=y,t[53]=S):S=t[53],S}let H;t[54]!==n||t[55]!==h?(H=h(`field-button.content`,{count:n}),t[54]=n,t[55]=h,t[56]=H):H=t[56];let U;t[57]===h?U=t[58]:(U=h(`field-button.aria-label-open`),t[57]=h,t[58]=U);let W;t[59]===Symbol.for(`react.memo_cache_sentinel`)?(W=(0,j.jsx)(C,{muted:!0,size:1,icon:ue,style:{margin:`-0.375rem`}}),t[59]=W):W=t[59];let G=n>9?`9+`:n,K;t[60]===G?K=t[61]:(K=(0,j.jsxs)(T,{alignItems:`center`,gap:2,children:[W,(0,j.jsx)(w,{size:0,as:`div`,trim:!0,children:G})]}),t[60]=G,t[61]=K);let q;t[62]!==c||t[63]!==U||t[64]!==K?(q=(0,j.jsx)(le,{"aria-label":U,mode:`bleed`,onClick:c,padding:2,gap:2,children:K}),t[62]=c,t[63]=U,t[64]=K,t[65]=q):q=t[65];let J;return t[66]!==q||t[67]!==H?(J=(0,j.jsx)(s,{portal:!0,placement:`top`,content:H,children:q}),t[66]=q,t[67]=H,t[68]=J):J=t[68],J}var N=new Map,P=[],F={initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}};function I(e){let t=(0,fe.c)(5),{enabled:n,mode:r}=h();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;return t[2]!==r||t[3]!==e?(i=(0,j.jsx)(R,{...e,mode:r}),t[2]=r,t[3]=e,t[4]=i):i=t[4],i}var L=b(te.div).withConfig({displayName:`HighlightDiv`,componentId:`sc-9nisbw-0`})(({theme:e})=>{let{radius:t,space:n,color:r}=e.sanity,i=S[_][r.daLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Cf as t,Df as n,Ef as r,Hl as i,Ll as a,Pu as o,Sc as s,Sd as c,Tu as l,Vl as u,Zs as d,cd as f,ju as p,ka as m,ld as h,li as g,nc as _,nf as v,rc as y,vf as b,yc as x}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as S,t as C}from"./jsx-runtime-BpzPEenQ.js";import{t as w}from"./compiler-runtime-sKsOXjDo.js";import{Et as T,et as E,n as D}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as ee,Ut as te,Y as O,at as ne,et as re,p as ie,r as k,s as ae}from"./dist-LVcARZxB.js";import{i as oe,n as A,r as j}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{n as M,t as N}from"./buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js";import{AddCommentIcon as P}from"./AddComment-DzLuhpXr.js";import{c as se,l as ce,t as le,u as ue}from"./CommentInput-C1kF5k49-kVUiwefG.js";import{n as de,t as fe}from"./useCommentsUpsell-dtlhkiSW-Ba-EmyX0.js";var F=e(S(),1),I=w(),L=C(),pe=ee.span.withConfig({displayName:`HighlightSpan`,componentId:`sc-8rkq2u-0`})(({theme:e})=>{let t=e.sanity.v2?.color._dark,n=O[D][t?800:100].hex,r=O[D][t?700:300].hex,i=O[D][t?700:200].hex,a=O[D][t?600:400].hex,o=O[D][t?700:200].hex,s=O[D][t?600:400].hex;return te`box-sizing:border-box;transition:background-color 100ms ease,border-color 100ms ease;*{mix-blend-mode:${t?`screen`:`multiply`};}&[data-inline-comment-state='added'][data-inline-comment-nested='false']{background-color:${n};border-bottom:2px solid ${r};}&[data-inline-comment-state='added'][data-inline-comment-nested='true']{background-color:${o};border-bottom:2px solid ${s};}&[data-inline-comment-state='added'][data-inline-comment-nested='false'][data-hovered='true']{background-color:${i};border-bottom:2px solid ${a};}&[data-inline-comment-state='authoring']{background-color:${n};border-bottom:2px solid ${r};}`});function me(e){let t=(0,I.c)(15),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({ref:s,children:n,isAdded:r,isAuthoring:i,isHovered:a,isNested:o,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=r?`added`:i?`authoring`:void 0,u=a?`true`:`false`,d=o?`true`:`false`,f;return t[8]!==n||t[9]!==s||t[10]!==c||t[11]!==l||t[12]!==u||t[13]!==d?(f=(0,L.jsx)(pe,{...c,"data-hovered":u,"data-inline-comment-nested":d,"data-inline-comment-state":l,ref:s,children:n}),t[8]=n,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f):f=t[14],f}var he=(0,F.memo)(function(e){let t=(0,I.c)(20),{children:n,commentId:r,currentHoveredCommentId:i,onClick:a,onHoverEnd:o,onHoverStart:s,selectedThreadId:c,threadId:l}=e,u=(0,F.useRef)(null),[d,f]=(0,F.useState)(!1),[p,m]=(0,F.useState)(null),h,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=u.current?.previousSibling,t=u.current?.nextSibling;if(!e||!t){f(!1);return}let[n]=Object.keys(se(``)),r=e.getAttribute(n),i=t.getAttribute(n),a=!!(r&&i&&r===i);m(a?r:null),f(a)},g=[],t[0]=h,t[1]=g):(h=t[0],g=t[1]),(0,F.useEffect)(h,g);let _;t[2]!==r||t[3]!==s?(_=()=>s(r),t[2]=r,t[3]=s,t[4]=_):_=t[4];let v=_,y;t[5]===o?y=t[6]:(y=()=>o(null),t[5]=o,t[6]=y);let b=y,x;t[7]!==r||t[8]!==a?(x=()=>a(r),t[7]=r,t[8]=a,t[9]=x):x=t[9];let S=x,C=i===r||i===p&&d||c===l,w;t[10]===l?w=t[11]:(w=se(l),t[10]=l,t[11]=w);let T;return t[12]!==n||t[13]!==S||t[14]!==v||t[15]!==b||t[16]!==d||t[17]!==C||t[18]!==w?(T=(0,L.jsx)(me,{isAdded:!0,isHovered:C,isNested:d,onClick:S,onMouseEnter:v,onMouseLeave:b,ref:u,...w,children:n}),t[12]=n,t[13]=S,t[14]=v,t[15]=b,t[16]=d,t[17]=C,t[18]=w,t[19]=T):T=t[19],T});function ge(e){let{comments:t,currentHoveredCommentId:n,onDecorationClick:r,onDecorationHoverEnd:i,onDecorationHoverStart:a,onDecorationMoved:o,selectedThreadId:s,value:c,documentValue:l,basePath:u}=e;return M({comments:t,value:c,documentValue:l,basePath:u}).map(({selection:e,comment:t,range:c})=>({component:({children:e})=>(0,L.jsx)(he,{commentId:t._id,currentHoveredCommentId:n,onClick:r,onHoverEnd:i,onHoverStart:a,selectedThreadId:s,threadId:t.threadId,children:e}),onMoved:o,selection:e,payload:{commentId:t._id,range:c}}))}function R(e,i){let a=e.path[0],o=e.path[e.path.length-1];if(!t(a)||!t(o))return null;let s=i.find(e=>e._key===a._key);if(!n(s))return null;let c=s.children.findIndex(e=>e._key===o._key);if(c===-1)return null;let l=s.children.slice(0,c).reduce((e,t)=>e+(r(t)?t.text.length:0),0);return{_key:s._key,offset:l+e.offset}}function _e(e,t){let n=e.backward?{anchor:e.focus,focus:e.anchor}:e,r=R(n.anchor,t),i=R(n.focus,t);return!r||!i?null:{start:r,end:i}}function ve(e,t){let n=e.flatMap(e=>{if(e===null)return[];let n=_e(e,t);return n?[n]:[]});if(n.length===0)return null;let r=new Map(t.map((e,t)=>[e._key,t])),i=(e,t)=>(r.get(e._key)??-1)-(r.get(t._key)??-1)||e.offset-t.offset,a=n.map(e=>e.start).sort(i),o=n.map(e=>e.end).sort(i);return{start:a[0],end:o[o.length-1]}}function ye(e){let{comment:t,value:n,documentValue:r,basePath:i}=e,a=M({comments:[t],value:n,documentValue:r,basePath:i}).filter(e=>e.range.text);return{range:ve(a.map(e=>e.selection),n),selection:{type:`text`,valuLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Cf as t,Df as n,Ef as r,Hl as i,Ll as a,Pu as o,Sc as s,Sd as c,Tu as l,Vl as u,Zs as d,cd as f,ju as p,ka as m,ld as h,li as g,nc as _,nf as v,rc as y,vf as b,yc as x}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as S,t as C}from"./jsx-runtime-BpzPEenQ.js";import{t as w}from"./compiler-runtime-sKsOXjDo.js";import{Et as T,et as E,n as D}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as ee,Ut as te,Y as O,at as ne,et as re,p as ie,r as k,s as ae}from"./dist-LVcARZxB.js";import{i as oe,n as A,r as j}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{n as M,t as N}from"./buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js";import{AddCommentIcon as P}from"./AddComment-DzLuhpXr.js";import{c as se,l as ce,t as le,u as ue}from"./CommentInput-C1kF5k49-CItaByrf.js";import{n as de,t as fe}from"./useCommentsUpsell-dtlhkiSW-BXDjHwtY.js";var F=e(S(),1),I=w(),L=C(),pe=ee.span.withConfig({displayName:`HighlightSpan`,componentId:`sc-8rkq2u-0`})(({theme:e})=>{let t=e.sanity.v2?.color._dark,n=O[D][t?800:100].hex,r=O[D][t?700:300].hex,i=O[D][t?700:200].hex,a=O[D][t?600:400].hex,o=O[D][t?700:200].hex,s=O[D][t?600:400].hex;return te`box-sizing:border-box;transition:background-color 100ms ease,border-color 100ms ease;*{mix-blend-mode:${t?`screen`:`multiply`};}&[data-inline-comment-state='added'][data-inline-comment-nested='false']{background-color:${n};border-bottom:2px solid ${r};}&[data-inline-comment-state='added'][data-inline-comment-nested='true']{background-color:${o};border-bottom:2px solid ${s};}&[data-inline-comment-state='added'][data-inline-comment-nested='false'][data-hovered='true']{background-color:${i};border-bottom:2px solid ${a};}&[data-inline-comment-state='authoring']{background-color:${n};border-bottom:2px solid ${r};}`});function me(e){let t=(0,I.c)(15),n,r,i,a,o,s,c;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7]):({ref:s,children:n,isAdded:r,isAuthoring:i,isHovered:a,isNested:o,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c);let l=r?`added`:i?`authoring`:void 0,u=a?`true`:`false`,d=o?`true`:`false`,f;return t[8]!==n||t[9]!==s||t[10]!==c||t[11]!==l||t[12]!==u||t[13]!==d?(f=(0,L.jsx)(pe,{...c,"data-hovered":u,"data-inline-comment-nested":d,"data-inline-comment-state":l,ref:s,children:n}),t[8]=n,t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d,t[14]=f):f=t[14],f}var he=(0,F.memo)(function(e){let t=(0,I.c)(20),{children:n,commentId:r,currentHoveredCommentId:i,onClick:a,onHoverEnd:o,onHoverStart:s,selectedThreadId:c,threadId:l}=e,u=(0,F.useRef)(null),[d,f]=(0,F.useState)(!1),[p,m]=(0,F.useState)(null),h,g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(h=()=>{let e=u.current?.previousSibling,t=u.current?.nextSibling;if(!e||!t){f(!1);return}let[n]=Object.keys(se(``)),r=e.getAttribute(n),i=t.getAttribute(n),a=!!(r&&i&&r===i);m(a?r:null),f(a)},g=[],t[0]=h,t[1]=g):(h=t[0],g=t[1]),(0,F.useEffect)(h,g);let _;t[2]!==r||t[3]!==s?(_=()=>s(r),t[2]=r,t[3]=s,t[4]=_):_=t[4];let v=_,y;t[5]===o?y=t[6]:(y=()=>o(null),t[5]=o,t[6]=y);let b=y,x;t[7]!==r||t[8]!==a?(x=()=>a(r),t[7]=r,t[8]=a,t[9]=x):x=t[9];let S=x,C=i===r||i===p&&d||c===l,w;t[10]===l?w=t[11]:(w=se(l),t[10]=l,t[11]=w);let T;return t[12]!==n||t[13]!==S||t[14]!==v||t[15]!==b||t[16]!==d||t[17]!==C||t[18]!==w?(T=(0,L.jsx)(me,{isAdded:!0,isHovered:C,isNested:d,onClick:S,onMouseEnter:v,onMouseLeave:b,ref:u,...w,children:n}),t[12]=n,t[13]=S,t[14]=v,t[15]=b,t[16]=d,t[17]=C,t[18]=w,t[19]=T):T=t[19],T});function ge(e){let{comments:t,currentHoveredCommentId:n,onDecorationClick:r,onDecorationHoverEnd:i,onDecorationHoverStart:a,onDecorationMoved:o,selectedThreadId:s,value:c,documentValue:l,basePath:u}=e;return M({comments:t,value:c,documentValue:l,basePath:u}).map(({selection:e,comment:t,range:c})=>({component:({children:e})=>(0,L.jsx)(he,{commentId:t._id,currentHoveredCommentId:n,onClick:r,onHoverEnd:i,onHoverStart:a,selectedThreadId:s,threadId:t.threadId,children:e}),onMoved:o,selection:e,payload:{commentId:t._id,range:c}}))}function R(e,i){let a=e.path[0],o=e.path[e.path.length-1];if(!t(a)||!t(o))return null;let s=i.find(e=>e._key===a._key);if(!n(s))return null;let c=s.children.findIndex(e=>e._key===o._key);if(c===-1)return null;let l=s.children.slice(0,c).reduce((e,t)=>e+(r(t)?t.text.length:0),0);return{_key:s._key,offset:l+e.offset}}function _e(e,t){let n=e.backward?{anchor:e.focus,focus:e.anchor}:e,r=R(n.anchor,t),i=R(n.focus,t);return!r||!i?null:{start:r,end:i}}function ve(e,t){let n=e.flatMap(e=>{if(e===null)return[];let n=_e(e,t);return n?[n]:[]});if(n.length===0)return null;let r=new Map(t.map((e,t)=>[e._key,t])),i=(e,t)=>(r.get(e._key)??-1)-(r.get(t._key)??-1)||e.offset-t.offset,a=n.map(e=>e.start).sort(i),o=n.map(e=>e.end).sort(i);return{start:a[0],end:o[o.length-1]}}function ye(e){let{comment:t,value:n,documentValue:r,basePath:i}=e,a=M({comments:[t],value:n,documentValue:r,basePath:i}).filter(e=>e.range.text);return{range:ve(a.map(e=>e.selection),n),selection:{type:`text`,valuLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Pu as n,Sc as r,Sd as i,Vl as a,Zs as o,cd as s,ju as c,ka as l,ld as u,li as d,nc as f,nf as p,rc as m,vf as h}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{Dt as y,Ot as b,Q as x,Tt as S,X as C,Z as ee,dt as te,g as ne,gt as re,h as ie,m as w,rt as ae,tt as T,vt as oe}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as E,at as se,et as D,p as ce,r as O,s as le}from"./dist-LVcARZxB.js";import{t as ue}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{t as de}from"./useComments-Bi1m7AzT-CGyuZP86.js";import{AddCommentIcon as k}from"./AddComment-DzLuhpXr.js";import{t as fe}from"./useCommentsUpsell-a8ecO894-CXaANVNE.js";var A=e(g(),1),j=v(),M=_();function pe(e){if(!e||!e.length)return null;let t=e.map(e=>e.getBoundingClientRect()),n=Math.min(...t.map(e=>e.x))||0,r=Math.min(...t.map(e=>e.y))||0,i=Math.max(...t.map(e=>e.right))||0,a=Math.max(...t.map(e=>e.bottom))||0;return{x:n,y:r,width:i-n,height:a-r,top:r,right:i,bottom:a,left:n}}function N(e){let t=(0,j.c)(5),{scrollElement:n,disabled:r,selector:i}=e,[a,o]=(0,A.useState)(null),s,c;return t[0]!==r||t[1]!==n||t[2]!==i?(s=()=>{if(r)return;let e=()=>{let e=document?.querySelectorAll(i);if(!e)return;let t=pe(Array.from(e));o(t)};if(e(),n)return n.addEventListener(`wheel`,e),()=>{n.removeEventListener(`wheel`,e)}},c=[n,r,i],t[0]=r,t[1]=n,t[2]=i,t[3]=s,t[4]=c):(s=t[3],c=t[4]),(0,A.useEffect)(s,c),a}function me(e){let t=(0,j.c)(6),{scrollElement:n,disabled:r,selector:i}=e,a;t[0]!==r||t[1]!==n||t[2]!==i?(a={scrollElement:n,disabled:r,selector:i},t[0]=r,t[1]=n,t[2]=i,t[3]=a):a=t[3];let o=N(a),s;bb0:{if(!o){s=null;break bb0}let e;t[4]===o?e=t[5]:(e={getBoundingClientRect:()=>o},t[4]=o,t[5]=e),s=e}return s}function he(){let e=window.getSelection(),t=null;return e&&e.rangeCount>0&&(t=e.getRangeAt(0)),t?.getBoundingClientRect()||null}var P=E(s.create(f)).withConfig({displayName:`MotionPopover`,componentId:`sc-7suyjs-0`})`user-select:none;`,F=[`bottom`,`top`],I={hidden:{opacity:0,y:-4},visible:{opacity:1,y:0}};function ge(e){let t=(0,j.c)(13),{disabled:n,onClick:r,onClickOutside:a,referenceElement:o}=e,s=(0,A.useRef)(null),{t:c}=i(T),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>[s.current],t[0]=l):l=t[0],D(a,l);let u;t[1]===c?u=t[2]:(u=c(`inline-add-comment-button.disabled-overlap-title`),t[1]=c,t[2]=u);let d=u,f;t[3]===c?f=t[4]:(f=c(`inline-add-comment-button.title`),t[3]=c,t[4]=f);let p=n?d:f,h=n?w:k,g;t[5]!==n||t[6]!==r||t[7]!==h||t[8]!==p?(g=(0,M.jsx)(m,{"data-testid":`inline-comment-button`,disabled:n,icon:h,mode:`bleed`,onClick:r,ref:s,text:p}),t[5]=n,t[6]=r,t[7]=h,t[8]=p,t[9]=g):g=t[9];let _=g,v;return t[10]!==_||t[11]!==o?(v=(0,M.jsx)(P,{animate:`visible`,content:_,contentEditable:!1,fallbackPlacements:F,initial:`hidden`,open:!0,padding:1,placement:`bottom`,portal:!0,referenceElement:o,variants:I}),t[10]=_,t[11]=o,t[12]=v):v=t[12],v}var L=[`bottom`,`top`],R=E(O).withConfig({displayName:`RootStack`,componentId:`sc-orhtcy-0`})`width:250px;`;function _e(e){let t=(0,j.c)(20),{currentUser:n,mentionOptions:r,onChange:i,onClickOutside:a,onDiscardConfirm:o,onSubmit:s,referenceElement:c,value:l}=e,u=(0,A.useRef)(null),d=(0,A.useRef)(null),p=se().elements?.documentScrollElement||null,m;t[0]===o?m=t[1]:(m=()=>{u.current?.discardDialogController.close(),o()},t[0]=o,t[1]=m);let h=m,g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{u.current?.discardDialogController.close()},t[2]=g):g=t[2];let _=g,v;t[3]!==a||t[4]!==l?(v=()=>{if(te(l)){u.current?.discardDialogController.open();return}a()},t[3]=a,t[4]=l,t[5]=v):v=t[5];let y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>[d.current],t[6]=y):y=t[6],D(v,y);let b;t[7]!==n||t[8]!==h||t[9]!==r||t[10]!==i||t[11]!==s||t[12]!==l?(b=(0,M.jsx)(R,{padding:2,ref:d,flexDirection:`column`,children:(0,M.jsx)(ne,{currentUser:n,focusLock:!0,focusOnMount:!0,mentionOptions:r,onChange:i,onDiscardCancel:_,onDiscardConfirm:h,onSubmit:s,ref:u,value:l})}),t[7]=n,t[8]=h,t[9]=r,t[10]=i,t[11]=s,t[12]=l,t[13]=b):b=t[13];let x;t[14]!==p||t[15]!==b?(x=(0,M.jsx)(ce,{element:p,children:b}),t[14]=p,t[15]=b,t[16]=x):x=t[16];let S=x,C;return t[17]!==S||t[18]!==c?(C=(0,M.jsx)(f,{content:S,"data-ui":`InlineCommentInputPopover`,fallbackPlacements:L,open:!0,placement:`bottom`,portal:!0,referenceElement:c}),t[17]=S,t[18]=c,t[19]=C):C=t[19],C}var z=[];function ve(e){let t=(0,j.c)(5),{enabled:n,mode:i}=S(),a=r(),o=e.schemaType.name===`sanity.assist.instruction.prompt`,s=!!a.__internal_comments;if(!n||o||!s){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let c;return t[2]!==i||t[3]!==e?(c=(0,M.jsx)(ye,{...e,mode:i}),t[2]=i,t[3]=e,t[4]=c):c=t[4],c}var ye=(0,A.memo)(function(e){let n=(0,j.c)(107),{mode:r,onItemClose:i,onItemOpen:s}=e,f=o(),m=se(),{comments:h,getComment:g,mentionOptions:_,onCommentsOpen:v,operation:S,setStatus:te,status:ne}=de(),{error:re}Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Pu as n,Sc as r,Sd as i,Vl as a,Zs as o,cd as s,ju as c,ka as l,ld as u,li as d,nc as f,nf as p,rc as m,vf as h}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{Dt as y,Ot as b,Q as x,Tt as S,X as C,Z as ee,dt as te,g as ne,gt as re,h as ie,m as w,rt as ae,tt as T,vt as oe}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as E,at as se,et as D,p as ce,r as O,s as le}from"./dist-LVcARZxB.js";import{t as ue}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{t as de}from"./useComments-Bi1m7AzT-DcZcKqsq.js";import{AddCommentIcon as k}from"./AddComment-DzLuhpXr.js";import{t as fe}from"./useCommentsUpsell-a8ecO894-CNq44jQK.js";var A=e(g(),1),j=v(),M=_();function pe(e){if(!e||!e.length)return null;let t=e.map(e=>e.getBoundingClientRect()),n=Math.min(...t.map(e=>e.x))||0,r=Math.min(...t.map(e=>e.y))||0,i=Math.max(...t.map(e=>e.right))||0,a=Math.max(...t.map(e=>e.bottom))||0;return{x:n,y:r,width:i-n,height:a-r,top:r,right:i,bottom:a,left:n}}function N(e){let t=(0,j.c)(5),{scrollElement:n,disabled:r,selector:i}=e,[a,o]=(0,A.useState)(null),s,c;return t[0]!==r||t[1]!==n||t[2]!==i?(s=()=>{if(r)return;let e=()=>{let e=document?.querySelectorAll(i);if(!e)return;let t=pe(Array.from(e));o(t)};if(e(),n)return n.addEventListener(`wheel`,e),()=>{n.removeEventListener(`wheel`,e)}},c=[n,r,i],t[0]=r,t[1]=n,t[2]=i,t[3]=s,t[4]=c):(s=t[3],c=t[4]),(0,A.useEffect)(s,c),a}function me(e){let t=(0,j.c)(6),{scrollElement:n,disabled:r,selector:i}=e,a;t[0]!==r||t[1]!==n||t[2]!==i?(a={scrollElement:n,disabled:r,selector:i},t[0]=r,t[1]=n,t[2]=i,t[3]=a):a=t[3];let o=N(a),s;bb0:{if(!o){s=null;break bb0}let e;t[4]===o?e=t[5]:(e={getBoundingClientRect:()=>o},t[4]=o,t[5]=e),s=e}return s}function he(){let e=window.getSelection(),t=null;return e&&e.rangeCount>0&&(t=e.getRangeAt(0)),t?.getBoundingClientRect()||null}var P=E(s.create(f)).withConfig({displayName:`MotionPopover`,componentId:`sc-7suyjs-0`})`user-select:none;`,F=[`bottom`,`top`],I={hidden:{opacity:0,y:-4},visible:{opacity:1,y:0}};function ge(e){let t=(0,j.c)(13),{disabled:n,onClick:r,onClickOutside:a,referenceElement:o}=e,s=(0,A.useRef)(null),{t:c}=i(T),l;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(l=()=>[s.current],t[0]=l):l=t[0],D(a,l);let u;t[1]===c?u=t[2]:(u=c(`inline-add-comment-button.disabled-overlap-title`),t[1]=c,t[2]=u);let d=u,f;t[3]===c?f=t[4]:(f=c(`inline-add-comment-button.title`),t[3]=c,t[4]=f);let p=n?d:f,h=n?w:k,g;t[5]!==n||t[6]!==r||t[7]!==h||t[8]!==p?(g=(0,M.jsx)(m,{"data-testid":`inline-comment-button`,disabled:n,icon:h,mode:`bleed`,onClick:r,ref:s,text:p}),t[5]=n,t[6]=r,t[7]=h,t[8]=p,t[9]=g):g=t[9];let _=g,v;return t[10]!==_||t[11]!==o?(v=(0,M.jsx)(P,{animate:`visible`,content:_,contentEditable:!1,fallbackPlacements:F,initial:`hidden`,open:!0,padding:1,placement:`bottom`,portal:!0,referenceElement:o,variants:I}),t[10]=_,t[11]=o,t[12]=v):v=t[12],v}var L=[`bottom`,`top`],R=E(O).withConfig({displayName:`RootStack`,componentId:`sc-orhtcy-0`})`width:250px;`;function _e(e){let t=(0,j.c)(20),{currentUser:n,mentionOptions:r,onChange:i,onClickOutside:a,onDiscardConfirm:o,onSubmit:s,referenceElement:c,value:l}=e,u=(0,A.useRef)(null),d=(0,A.useRef)(null),p=se().elements?.documentScrollElement||null,m;t[0]===o?m=t[1]:(m=()=>{u.current?.discardDialogController.close(),o()},t[0]=o,t[1]=m);let h=m,g;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(g=()=>{u.current?.discardDialogController.close()},t[2]=g):g=t[2];let _=g,v;t[3]!==a||t[4]!==l?(v=()=>{if(te(l)){u.current?.discardDialogController.open();return}a()},t[3]=a,t[4]=l,t[5]=v):v=t[5];let y;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>[d.current],t[6]=y):y=t[6],D(v,y);let b;t[7]!==n||t[8]!==h||t[9]!==r||t[10]!==i||t[11]!==s||t[12]!==l?(b=(0,M.jsx)(R,{padding:2,ref:d,flexDirection:`column`,children:(0,M.jsx)(ne,{currentUser:n,focusLock:!0,focusOnMount:!0,mentionOptions:r,onChange:i,onDiscardCancel:_,onDiscardConfirm:h,onSubmit:s,ref:u,value:l})}),t[7]=n,t[8]=h,t[9]=r,t[10]=i,t[11]=s,t[12]=l,t[13]=b):b=t[13];let x;t[14]!==p||t[15]!==b?(x=(0,M.jsx)(ce,{element:p,children:b}),t[14]=p,t[15]=b,t[16]=x):x=t[16];let S=x,C;return t[17]!==S||t[18]!==c?(C=(0,M.jsx)(f,{content:S,"data-ui":`InlineCommentInputPopover`,fallbackPlacements:L,open:!0,placement:`bottom`,portal:!0,referenceElement:c}),t[17]=S,t[18]=c,t[19]=C):C=t[19],C}var z=[];function ve(e){let t=(0,j.c)(5),{enabled:n,mode:i}=S(),a=r(),o=e.schemaType.name===`sanity.assist.instruction.prompt`,s=!!a.__internal_comments;if(!n||o||!s){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let c;return t[2]!==i||t[3]!==e?(c=(0,M.jsx)(ye,{...e,mode:i}),t[2]=i,t[3]=e,t[4]=c):c=t[4],c}var ye=(0,A.memo)(function(e){let n=(0,j.c)(107),{mode:r,onItemClose:i,onItemOpen:s}=e,f=o(),m=se(),{comments:h,getComment:g,mentionOptions:_,onCommentsOpen:v,operation:S,setStatus:te,status:ne}=de(),{error:re}Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Fl as t,Qf as n,Sd as r,Zs as i,dc as a,nc as o,oc as s,rc as c,sc as l,sd as u}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as d,t as f}from"./jsx-runtime-BpzPEenQ.js";import{t as p}from"./compiler-runtime-sKsOXjDo.js";import{Dt as m,H as h,Ot as ee,Tt as g,gt as _,kt as v,tt as te}from"./types--2f-avvL-DfAXA8nG.js";import{Et as y,Gt as b,Pt as ne,R as x,Vt as S,et as re,n as C,o as w,r as ie,s as T,t as E}from"./dist-LVcARZxB.js";import{t as D}from"./Close-B_ZEgT1V.js";import{t as O}from"./ChevronDown-BpYUc-AP.js";import{t as k}from"./Checkmark-OT7tsNpL.js";import{t as A}from"./CommentsListItem-B4CoDHda-B92j42qR.js";import{t as j}from"./CommentsList-CmhU6-yt-CzUxgKBX.js";import{t as ae}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{t as M}from"./useComments-Bi1m7AzT-CGyuZP86.js";import{t as N}from"./useCommentsUpsell-a8ecO894-CXaANVNE.js";var P=e(d(),1),F=p(),I=f(),L=b(E).withConfig({displayName:`Root`,componentId:`sc-eolnz3-0`})`max-width:280px;`,R=S`from{opacity:0;}to{opacity:1;}`,z=b(o).withConfig({displayName:`StyledPopover`,componentId:`sc-eolnz3-1`})`opacity:0;animation:${R} 200ms 500ms forwards;`;function B(e){let t=(0,F.c)(23),n,i;t[0]===e?(n=t[1],i=t[2]):({onDismiss:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let{t:a}=r(te),o;t[3]===a?o=t[4]:(o=a(`onboarding.header`),t[3]=a,t[4]=o);let s;t[5]===o?s=t[6]:(s=(0,I.jsx)(w,{weight:`medium`,size:1,as:`div`,trim:!0,children:o}),t[5]=o,t[6]=s);let l;t[7]===a?l=t[8]:(l=a(`onboarding.body`),t[7]=a,t[8]=l);let u;t[9]===l?u=t[10]:(u=(0,I.jsx)(w,{size:1,as:`div`,trim:!0,children:l}),t[9]=l,t[10]=u);let d;t[11]===a?d=t[12]:(d=a(`onboarding.dismiss`),t[11]=a,t[12]=d);let f;t[13]!==n||t[14]!==d?(f=(0,I.jsx)(ie,{justifyContent:`flex-end`,marginTop:2,children:(0,I.jsx)(c,{text:d,tone:`primary`,onClick:n})}),t[13]=n,t[14]=d,t[15]=f):f=t[15];let p;t[16]!==s||t[17]!==u||t[18]!==f?(p=(0,I.jsx)(L,{padding:4,children:(0,I.jsxs)(T,{gap:3,children:[s,u,f]})}),t[16]=s,t[17]=u,t[18]=f,t[19]=p):p=t[19];let m;return t[20]!==i||t[21]!==p?(m=(0,I.jsx)(z,{content:p,open:!0,portal:!0,...i}),t[20]=i,t[21]=p,t[22]=m):m=t[22],m}function oe(e){let t=(0,F.c)(4),{data:n,onPrimaryClick:r,onSecondaryClick:i}=e,a;return t[0]!==n||t[1]!==r||t[2]!==i?(a=(0,I.jsx)(C,{size:1,children:(0,I.jsx)(E,{marginBottom:6,children:(0,I.jsx)(h,{data:n,onPrimaryClick:r,onSecondaryClick:i})})}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):a=t[3],a}function se(){let e=(0,P.useContext)(n);if(!e)throw Error(`useCommentsOnboarding: missing context value`);return e}function ce(e){let t=(0,F.c)(9),{error:n}=e,{t:i}=r(te),a;t[0]===i?a=t[1]:(a=i(`inspector-error.title`),t[0]=i,t[1]=a);let o;t[2]===a?o=t[3]:(o=(0,I.jsx)(w,{size:1,weight:`medium`,as:`div`,trim:!0,children:a}),t[2]=a,t[3]=o);let s;t[4]===n.message?s=t[5]:(s=(0,I.jsx)(w,{size:1,muted:!0,as:`div`,trim:!0,children:n.message}),t[4]=n.message,t[5]=s);let c;return t[6]!==o||t[7]!==s?(c=(0,I.jsx)(E,{padding:2,children:(0,I.jsx)(y,{paddingX:2,paddingY:3,tone:`critical`,border:!0,radius:3,children:(0,I.jsxs)(T,{gap:3,children:[o,s]})})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}var le=b(y).withConfig({displayName:`Root`,componentId:`sc-efi4zg-0`})({position:`relative`,zIndex:`1`,lineHeight:`0`});function ue(e){let t=(0,F.c)(57),{t:n}=r(te),{ref:i,onClose:o,onViewChange:u,view:d,mode:f}=e,p;t[0]===u?p=t[1]:(p=()=>u(`open`),t[0]=u,t[1]=p);let m=p,h;t[2]===u?h=t[3]:(h=()=>u(`resolved`),t[2]=u,t[3]=h);let ee=h,g;t[4]===n?g=t[5]:(g=n(`feature-name`),t[4]=n,t[5]=g);let _;t[6]===g?_=t[7]:(_=(0,I.jsx)(ie,{alignItems:`center`,flexBasis:`0%`,flexGrow:1,gap:2,paddingY:2,padding:3,children:(0,I.jsx)(w,{as:`h1`,size:1,weight:`medium`,trim:!0,children:g})}),t[6]=g,t[7]=_);let v;t[8]!==n||t[9]!==d?(v=n(d===`open`?`status-filter.status-open`:`status-filter.status-resolved`),t[8]=n,t[9]=d,t[10]=v):v=t[10];let y;t[11]===v?y=t[12]:(y=(0,I.jsx)(c,{text:v,mode:`bleed`,iconRight:O}),t[11]=v,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b={width:`180px`},t[13]=b):b=t[13];let ne=d===`open`?k:void 0,x;t[14]===n?x=t[15]:(x=n(`status-filter.status-open-full`),t[14]=n,t[15]=x);let S;t[16]!==m||t[17]!==ne||t[18]!==x?(S=(0,I.jsx)(l,{iconRight:ne,onClick:m,text:x}),t[16]=m,t[17]=ne,t[18]=x,t[19]=S):S=t[19];let re=d===`resolved`?k:void 0,C;t[20]===n?C=t[21]:(C=n(`status-filter.status-resolved-full`),t[20]=n,t[21]=C);let T;t[22]!==f||t[23]!==n?(T=f===`upsell`?{content:n(`status-filter.status-resolved-full-upsell`)}:void 0,t[22]=f,t[23]=n,t[24]=T):T=t[24];let E=f===`upsell`,A;t[25]!==ee||t[26]!==re||t[27]!==C||t[28]!==T||t[29]!==E?(A=(0,I.jsx)(l,{iconRight:re,onClick:ee,text:C,tooltipProps:T,disabled:E}),t[25]=ee,t[26]=re,t[27]=C,t[28]=T,t[29]=E,t[30]=A):A=t[30];let j;t[31]!==A||t[32]!==S?(j=(0,I.jsxs)(a,{style:b,children:[S,A]}),t[31]=A,t[32]=S,t[33]=j):j=t[33];let ae;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(ae={placement:`bottom-end`},t[34]=ae):ae=t[34];let M;t[35]!==j||t[36]!==y?(M=(0,I.jsx)(s,{id:`comment-status-menu-button`Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Fl as t,Qf as n,Sd as r,Zs as i,dc as a,nc as o,oc as s,rc as c,sc as l,sd as u}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as d,t as f}from"./jsx-runtime-BpzPEenQ.js";import{t as p}from"./compiler-runtime-sKsOXjDo.js";import{Dt as m,H as h,Ot as ee,Tt as g,gt as _,kt as v,tt as te}from"./types--2f-avvL-CUBrVRGR.js";import{Et as y,Gt as b,Pt as ne,R as x,Vt as S,et as re,n as C,o as w,r as ie,s as T,t as E}from"./dist-LVcARZxB.js";import{t as D}from"./Close-B_ZEgT1V.js";import{t as O}from"./ChevronDown-BpYUc-AP.js";import{t as k}from"./Checkmark-OT7tsNpL.js";import{t as A}from"./CommentsListItem-B4CoDHda-DaXAEbir.js";import{t as j}from"./CommentsList-CmhU6-yt-B2twFKeQ.js";import{t as ae}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{t as M}from"./useComments-Bi1m7AzT-DcZcKqsq.js";import{t as N}from"./useCommentsUpsell-a8ecO894-CNq44jQK.js";var P=e(d(),1),F=p(),I=f(),L=b(E).withConfig({displayName:`Root`,componentId:`sc-eolnz3-0`})`max-width:280px;`,R=S`from{opacity:0;}to{opacity:1;}`,z=b(o).withConfig({displayName:`StyledPopover`,componentId:`sc-eolnz3-1`})`opacity:0;animation:${R} 200ms 500ms forwards;`;function B(e){let t=(0,F.c)(23),n,i;t[0]===e?(n=t[1],i=t[2]):({onDismiss:n,...i}=e,t[0]=e,t[1]=n,t[2]=i);let{t:a}=r(te),o;t[3]===a?o=t[4]:(o=a(`onboarding.header`),t[3]=a,t[4]=o);let s;t[5]===o?s=t[6]:(s=(0,I.jsx)(w,{weight:`medium`,size:1,as:`div`,trim:!0,children:o}),t[5]=o,t[6]=s);let l;t[7]===a?l=t[8]:(l=a(`onboarding.body`),t[7]=a,t[8]=l);let u;t[9]===l?u=t[10]:(u=(0,I.jsx)(w,{size:1,as:`div`,trim:!0,children:l}),t[9]=l,t[10]=u);let d;t[11]===a?d=t[12]:(d=a(`onboarding.dismiss`),t[11]=a,t[12]=d);let f;t[13]!==n||t[14]!==d?(f=(0,I.jsx)(ie,{justifyContent:`flex-end`,marginTop:2,children:(0,I.jsx)(c,{text:d,tone:`primary`,onClick:n})}),t[13]=n,t[14]=d,t[15]=f):f=t[15];let p;t[16]!==s||t[17]!==u||t[18]!==f?(p=(0,I.jsx)(L,{padding:4,children:(0,I.jsxs)(T,{gap:3,children:[s,u,f]})}),t[16]=s,t[17]=u,t[18]=f,t[19]=p):p=t[19];let m;return t[20]!==i||t[21]!==p?(m=(0,I.jsx)(z,{content:p,open:!0,portal:!0,...i}),t[20]=i,t[21]=p,t[22]=m):m=t[22],m}function oe(e){let t=(0,F.c)(4),{data:n,onPrimaryClick:r,onSecondaryClick:i}=e,a;return t[0]!==n||t[1]!==r||t[2]!==i?(a=(0,I.jsx)(C,{size:1,children:(0,I.jsx)(E,{marginBottom:6,children:(0,I.jsx)(h,{data:n,onPrimaryClick:r,onSecondaryClick:i})})}),t[0]=n,t[1]=r,t[2]=i,t[3]=a):a=t[3],a}function se(){let e=(0,P.useContext)(n);if(!e)throw Error(`useCommentsOnboarding: missing context value`);return e}function ce(e){let t=(0,F.c)(9),{error:n}=e,{t:i}=r(te),a;t[0]===i?a=t[1]:(a=i(`inspector-error.title`),t[0]=i,t[1]=a);let o;t[2]===a?o=t[3]:(o=(0,I.jsx)(w,{size:1,weight:`medium`,as:`div`,trim:!0,children:a}),t[2]=a,t[3]=o);let s;t[4]===n.message?s=t[5]:(s=(0,I.jsx)(w,{size:1,muted:!0,as:`div`,trim:!0,children:n.message}),t[4]=n.message,t[5]=s);let c;return t[6]!==o||t[7]!==s?(c=(0,I.jsx)(E,{padding:2,children:(0,I.jsx)(y,{paddingX:2,paddingY:3,tone:`critical`,border:!0,radius:3,children:(0,I.jsxs)(T,{gap:3,children:[o,s]})})}),t[6]=o,t[7]=s,t[8]=c):c=t[8],c}var le=b(y).withConfig({displayName:`Root`,componentId:`sc-efi4zg-0`})({position:`relative`,zIndex:`1`,lineHeight:`0`});function ue(e){let t=(0,F.c)(57),{t:n}=r(te),{ref:i,onClose:o,onViewChange:u,view:d,mode:f}=e,p;t[0]===u?p=t[1]:(p=()=>u(`open`),t[0]=u,t[1]=p);let m=p,h;t[2]===u?h=t[3]:(h=()=>u(`resolved`),t[2]=u,t[3]=h);let ee=h,g;t[4]===n?g=t[5]:(g=n(`feature-name`),t[4]=n,t[5]=g);let _;t[6]===g?_=t[7]:(_=(0,I.jsx)(ie,{alignItems:`center`,flexBasis:`0%`,flexGrow:1,gap:2,paddingY:2,padding:3,children:(0,I.jsx)(w,{as:`h1`,size:1,weight:`medium`,trim:!0,children:g})}),t[6]=g,t[7]=_);let v;t[8]!==n||t[9]!==d?(v=n(d===`open`?`status-filter.status-open`:`status-filter.status-resolved`),t[8]=n,t[9]=d,t[10]=v):v=t[10];let y;t[11]===v?y=t[12]:(y=(0,I.jsx)(c,{text:v,mode:`bleed`,iconRight:O}),t[11]=v,t[12]=y);let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b={width:`180px`},t[13]=b):b=t[13];let ne=d===`open`?k:void 0,x;t[14]===n?x=t[15]:(x=n(`status-filter.status-open-full`),t[14]=n,t[15]=x);let S;t[16]!==m||t[17]!==ne||t[18]!==x?(S=(0,I.jsx)(l,{iconRight:ne,onClick:m,text:x}),t[16]=m,t[17]=ne,t[18]=x,t[19]=S):S=t[19];let re=d===`resolved`?k:void 0,C;t[20]===n?C=t[21]:(C=n(`status-filter.status-resolved-full`),t[20]=n,t[21]=C);let T;t[22]!==f||t[23]!==n?(T=f===`upsell`?{content:n(`status-filter.status-resolved-full-upsell`)}:void 0,t[22]=f,t[23]=n,t[24]=T):T=t[24];let E=f===`upsell`,A;t[25]!==ee||t[26]!==re||t[27]!==C||t[28]!==T||t[29]!==E?(A=(0,I.jsx)(l,{iconRight:re,onClick:ee,text:C,tooltipProps:T,disabled:E}),t[25]=ee,t[26]=re,t[27]=C,t[28]=T,t[29]=E,t[30]=A):A=t[30];let j;t[31]!==A||t[32]!==S?(j=(0,I.jsxs)(a,{style:b,children:[S,A]}),t[31]=A,t[32]=S,t[33]=j):j=t[33];let ae;t[34]===Symbol.for(`react.memo_cache_sentinel`)?(ae={placement:`bottom-end`},t[34]=ae):ae=t[34];let M;t[35]!==j||t[36]!==y?(M=(0,I.jsx)(s,{id:`comment-status-menu-button`Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$f as t,Fl as n,Rd as r,Sd as i,To as a,Ys as o,Zs as s,ad as c,dc as l,lc as u,nc as d,nf as f,oc as p,rc as m,sc as h,sd as g}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as _,t as v}from"./jsx-runtime-BpzPEenQ.js";import{t as y}from"./compiler-runtime-sKsOXjDo.js";import{Et as b,H as x,et as S}from"./types--2f-avvL-DfAXA8nG.js";import{Et as C,Gt as w,Pt as T,R as E,Ut as D,Vt as O,a as k,et as A,n as j,o as M,p as N,r as P,s as F,t as I,yt as L}from"./dist-LVcARZxB.js";import{t as ee}from"./Close-B_ZEgT1V.js";import{t as te}from"./ChevronDown-BpYUc-AP.js";import{t as ne}from"./Checkmark-OT7tsNpL.js";import{t as R}from"./ChevronRight-Cf6GkXSa.js";import{n as z,r as B}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{l as V,s as H,t as U,u as re}from"./CommentInput-C1kF5k49-kVUiwefG.js";import{n as ie,t as ae}from"./useCommentsUpsell-dtlhkiSW-Ba-EmyX0.js";import{n as oe,r as se,t as ce}from"./CommentsListItem-Dyi91Dx1-CJKLG-KR.js";var W=e(_(),1),G=y(),K=v();function q(e){return{open:{title:e(`list-status.empty-state-open-title`),message:e(`list-status.empty-state-open-text`)},resolved:{title:e(`list-status.empty-state-resolved-title`),message:e(`list-status.empty-state-resolved-text`)}}}function le(e){let t=(0,G.c)(17),{status:n,error:r,loading:a,hasNoComments:s}=e,{t:c}=i(S),l;t[0]===c?l=t[1]:(l=q(c),t[0]=c,t[1]=l);let u=l;if(r){let e;t[2]===c?e=t[3]:(e=c(`list-status.error`),t[2]=c,t[3]=e);let n;return t[4]===e?n=t[5]:(n=(0,K.jsx)(P,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,padding:4,children:(0,K.jsx)(P,{alignItems:`center`,children:(0,K.jsx)(M,{size:1,muted:!0,as:`div`,trim:!0,children:e})})}),t[4]=e,t[5]=n),n}if(a){let e;t[6]===c?e=t[7]:(e=c(`list-status.loading`),t[6]=c,t[7]=e);let n;return t[8]===e?n=t[9]:(n=(0,K.jsx)(o,{showText:!0,title:e}),t[8]=e,t[9]=n),n}if(s){let e=u[n],r;t[10]===e.title?r=t[11]:(r=(0,K.jsx)(M,{align:`center`,size:1,muted:!0,weight:`medium`,as:`div`,trim:!0,children:e.title}),t[10]=e.title,t[11]=r);let i=u[n],a;t[12]===i.message?a=t[13]:(a=(0,K.jsx)(M,{align:`center`,size:1,muted:!0,as:`div`,trim:!0,children:i.message}),t[12]=i.message,t[13]=a);let o;return t[14]!==r||t[15]!==a?(o=(0,K.jsx)(P,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,children:(0,K.jsx)(j,{size:0,padding:4,children:(0,K.jsxs)(F,{gap:3,children:[r,a]})})}),t[14]=r,t[15]=a,t[16]=o):o=t[16],o}return null}var J=(0,K.jsx)(k,{muted:!0,icon:R,style:{margin:`-0.4375rem`}}),Y=(e,t)=>(0,K.jsx)(I,{as:`li`,children:(0,K.jsx)(M,{truncate:1,size:1,weight:`medium`,as:`div`,trim:!0,children:e})},`${e}-${t}`);function X(e){let t=(0,G.c)(11),{titlePath:n,maxLength:r}=e,i;bb0:{let e=n.length,a=Math.ceil(r/2),o=Math.floor(r/2);if(r&&e>r){let r;t[0]!==o||t[1]!==a||t[2]!==e||t[3]!==n?(r=[...n.slice(0,a-1),n.slice(a-1,e-o),...n.slice(e-o)],t[0]=o,t[1]=a,t[2]=e,t[3]=n,t[4]=r):r=t[4],i=r;break bb0}i=n}let a=i,o;if(t[5]!==a){let e;t[7]===a.length?e=t[8]:(e=(e,t)=>{let n=`${e}-${t}`,r=t<a.length-1;return Array.isArray(e)?(0,K.jsxs)(W.Fragment,{children:[(0,K.jsx)(u,{content:(0,K.jsx)(P,{gap:2,padding:2,flexDirection:`column`,children:e.map(Y)}),children:(0,K.jsx)(I,{children:Y(`...`,t)})}),r&&J]},n):(0,K.jsxs)(W.Fragment,{children:[Y(e,t),r&&J]},n)},t[7]=a.length,t[8]=e),o=a.map(e),t[5]=a,t[6]=o}else o=t[6];let s=o,c;return t[9]===s?c=t[10]:(c=(0,K.jsx)(P,{alignItems:`center`,as:`ol`,gap:2,children:s}),t[9]=s,t[10]=c),c}var Z=[];function ue(e){let t=(0,G.c)(25),{currentUser:n,fieldTitle:r,mentionOptions:o,mode:s,onBlur:c,onFocus:l,onKeyDown:u,onNewThreadCreate:d,readOnly:f}=e,{t:p}=i(S),[m,h]=(0,W.useState)(Z),g=(0,W.useRef)(null),_;t[0]===d?_=t[1]:(_=e=>{d?.(e),h(Z)},t[0]=d,t[1]=_);let v=_,y;t[2]===m?y=t[3]:(y=z(m),t[2]=m,t[3]=y);let b=y,x;t[4]===b?x=t[5]:(x=()=>{b&&g.current?.discardDialogController.open()},t[4]=b,t[5]=x);let C=x,w;t[6]!==u||t[7]!==C?(w=e=>{e.isDefaultPrevented()||(e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),C()),u&&u(e))},t[6]=u,t[7]=C,t[8]=w):w=t[8];let T=w,E;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>{h(Z),g.current?.discardDialogController.close(),g.current?.focus()},t[9]=E):E=t[9];let D=E,O;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>{g.current?.discardDialogController.close()},t[10]=O):O=t[10];let k=O,A;t[11]!==r||t[12]!==s||t[13]!==p?(A=s===`upsell`?p(`compose.add-comment-input-placeholder-upsell`):(0,K.jsx)(a,{t:p,i18nKey:`compose.add-comment-input-placeholder`,values:{field:r}}),t[11]=r,t[12]=s,t[13]=p,t[14]=A):A=t[14];let j=A,M=f||s===`upsell`,N;return t[15]!==n||t[16]!==T||t[17]!==v||t[18]!==o||t[19]!==c||t[20]!==l||t[21]!==j||t[22]!==M||t[23]!==m?(N=(0,K.jsx)(U,{currentUser:n,expandOnFocus:!0,mentionOptions:o,onBlur:c,onChange:h,onDiscardCancel:k,onDiscardConfirm:D,onKeyDown:T,onFocus:l,onSubmit:v,placeholder:j,readOnly:M,ref:g,value:m}),t[15]=n,t[16]=T,t[17]=v,t[18]=o,t[19]=c,t[20]=l,t[21]=j,t[22]=M,t[23]=m,t[24]=N):N=t[24],N}var de=w(P).withConfig(Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$f as t,Fl as n,Rd as r,Sd as i,To as a,Ys as o,Zs as s,ad as c,dc as l,lc as u,nc as d,nf as f,oc as p,rc as m,sc as h,sd as g}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as _,t as v}from"./jsx-runtime-BpzPEenQ.js";import{t as y}from"./compiler-runtime-sKsOXjDo.js";import{Et as b,H as x,et as S}from"./types--2f-avvL-CUBrVRGR.js";import{Et as C,Gt as w,Pt as T,R as E,Ut as D,Vt as O,a as k,et as A,n as j,o as M,p as N,r as P,s as F,t as I,yt as L}from"./dist-LVcARZxB.js";import{t as ee}from"./Close-B_ZEgT1V.js";import{t as te}from"./ChevronDown-BpYUc-AP.js";import{t as ne}from"./Checkmark-OT7tsNpL.js";import{t as R}from"./ChevronRight-Cf6GkXSa.js";import{n as z,r as B}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{l as V,s as H,t as U,u as re}from"./CommentInput-C1kF5k49-CItaByrf.js";import{n as ie,t as ae}from"./useCommentsUpsell-dtlhkiSW-BXDjHwtY.js";import{n as oe,r as se,t as ce}from"./CommentsListItem-Dyi91Dx1-D2kIh320.js";var W=e(_(),1),G=y(),K=v();function q(e){return{open:{title:e(`list-status.empty-state-open-title`),message:e(`list-status.empty-state-open-text`)},resolved:{title:e(`list-status.empty-state-resolved-title`),message:e(`list-status.empty-state-resolved-text`)}}}function le(e){let t=(0,G.c)(17),{status:n,error:r,loading:a,hasNoComments:s}=e,{t:c}=i(S),l;t[0]===c?l=t[1]:(l=q(c),t[0]=c,t[1]=l);let u=l;if(r){let e;t[2]===c?e=t[3]:(e=c(`list-status.error`),t[2]=c,t[3]=e);let n;return t[4]===e?n=t[5]:(n=(0,K.jsx)(P,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,padding:4,children:(0,K.jsx)(P,{alignItems:`center`,children:(0,K.jsx)(M,{size:1,muted:!0,as:`div`,trim:!0,children:e})})}),t[4]=e,t[5]=n),n}if(a){let e;t[6]===c?e=t[7]:(e=c(`list-status.loading`),t[6]=c,t[7]=e);let n;return t[8]===e?n=t[9]:(n=(0,K.jsx)(o,{showText:!0,title:e}),t[8]=e,t[9]=n),n}if(s){let e=u[n],r;t[10]===e.title?r=t[11]:(r=(0,K.jsx)(M,{align:`center`,size:1,muted:!0,weight:`medium`,as:`div`,trim:!0,children:e.title}),t[10]=e.title,t[11]=r);let i=u[n],a;t[12]===i.message?a=t[13]:(a=(0,K.jsx)(M,{align:`center`,size:1,muted:!0,as:`div`,trim:!0,children:i.message}),t[12]=i.message,t[13]=a);let o;return t[14]!==r||t[15]!==a?(o=(0,K.jsx)(P,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,children:(0,K.jsx)(j,{size:0,padding:4,children:(0,K.jsxs)(F,{gap:3,children:[r,a]})})}),t[14]=r,t[15]=a,t[16]=o):o=t[16],o}return null}var J=(0,K.jsx)(k,{muted:!0,icon:R,style:{margin:`-0.4375rem`}}),Y=(e,t)=>(0,K.jsx)(I,{as:`li`,children:(0,K.jsx)(M,{truncate:1,size:1,weight:`medium`,as:`div`,trim:!0,children:e})},`${e}-${t}`);function X(e){let t=(0,G.c)(11),{titlePath:n,maxLength:r}=e,i;bb0:{let e=n.length,a=Math.ceil(r/2),o=Math.floor(r/2);if(r&&e>r){let r;t[0]!==o||t[1]!==a||t[2]!==e||t[3]!==n?(r=[...n.slice(0,a-1),n.slice(a-1,e-o),...n.slice(e-o)],t[0]=o,t[1]=a,t[2]=e,t[3]=n,t[4]=r):r=t[4],i=r;break bb0}i=n}let a=i,o;if(t[5]!==a){let e;t[7]===a.length?e=t[8]:(e=(e,t)=>{let n=`${e}-${t}`,r=t<a.length-1;return Array.isArray(e)?(0,K.jsxs)(W.Fragment,{children:[(0,K.jsx)(u,{content:(0,K.jsx)(P,{gap:2,padding:2,flexDirection:`column`,children:e.map(Y)}),children:(0,K.jsx)(I,{children:Y(`...`,t)})}),r&&J]},n):(0,K.jsxs)(W.Fragment,{children:[Y(e,t),r&&J]},n)},t[7]=a.length,t[8]=e),o=a.map(e),t[5]=a,t[6]=o}else o=t[6];let s=o,c;return t[9]===s?c=t[10]:(c=(0,K.jsx)(P,{alignItems:`center`,as:`ol`,gap:2,children:s}),t[9]=s,t[10]=c),c}var Z=[];function ue(e){let t=(0,G.c)(25),{currentUser:n,fieldTitle:r,mentionOptions:o,mode:s,onBlur:c,onFocus:l,onKeyDown:u,onNewThreadCreate:d,readOnly:f}=e,{t:p}=i(S),[m,h]=(0,W.useState)(Z),g=(0,W.useRef)(null),_;t[0]===d?_=t[1]:(_=e=>{d?.(e),h(Z)},t[0]=d,t[1]=_);let v=_,y;t[2]===m?y=t[3]:(y=z(m),t[2]=m,t[3]=y);let b=y,x;t[4]===b?x=t[5]:(x=()=>{b&&g.current?.discardDialogController.open()},t[4]=b,t[5]=x);let C=x,w;t[6]!==u||t[7]!==C?(w=e=>{e.isDefaultPrevented()||(e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),C()),u&&u(e))},t[6]=u,t[7]=C,t[8]=w):w=t[8];let T=w,E;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(E=()=>{h(Z),g.current?.discardDialogController.close(),g.current?.focus()},t[9]=E):E=t[9];let D=E,O;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(O=()=>{g.current?.discardDialogController.close()},t[10]=O):O=t[10];let k=O,A;t[11]!==r||t[12]!==s||t[13]!==p?(A=s===`upsell`?p(`compose.add-comment-input-placeholder-upsell`):(0,K.jsx)(a,{t:p,i18nKey:`compose.add-comment-input-placeholder`,values:{field:r}}),t[11]=r,t[12]=s,t[13]=p,t[14]=A):A=t[14];let j=A,M=f||s===`upsell`,N;return t[15]!==n||t[16]!==T||t[17]!==v||t[18]!==o||t[19]!==c||t[20]!==l||t[21]!==j||t[22]!==M||t[23]!==m?(N=(0,K.jsx)(U,{currentUser:n,expandOnFocus:!0,mentionOptions:o,onBlur:c,onChange:h,onDiscardCancel:k,onDiscardConfirm:D,onKeyDown:T,onFocus:l,onSubmit:v,placeholder:j,readOnly:M,ref:g,value:m}),t[15]=n,t[16]=T,t[17]=v,t[18]=o,t[19]=c,t[20]=l,t[21]=j,t[22]=M,t[23]=m,t[24]=N):N=t[24],N}var de=w(P).withConfig(Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Sd as t,To as n,Ys as r,lc as i,nf as a}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as o,t as s}from"./jsx-runtime-BpzPEenQ.js";import{t as c}from"./compiler-runtime-sKsOXjDo.js";import{Y as l,dt as u,g as d,tt as f}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as p,Ut as m,a as h,n as g,o as _,p as v,r as y,s as b,t as x,yt as S}from"./dist-LVcARZxB.js";import{t as C}from"./ChevronRight-Cf6GkXSa.js";import{n as w,r as T}from"./CommentsListItem-B4CoDHda-B92j42qR.js";var E=e(o(),1),D=c(),O=s();function k(e){return{open:{title:e(`list-status.empty-state-open-title`),message:e(`list-status.empty-state-open-text`)},resolved:{title:e(`list-status.empty-state-resolved-title`),message:e(`list-status.empty-state-resolved-text`)}}}function A(e){let n=(0,D.c)(17),{status:i,error:a,loading:o,hasNoComments:s}=e,{t:c}=t(f),l;n[0]===c?l=n[1]:(l=k(c),n[0]=c,n[1]=l);let u=l;if(a){let e;n[2]===c?e=n[3]:(e=c(`list-status.error`),n[2]=c,n[3]=e);let t;return n[4]===e?t=n[5]:(t=(0,O.jsx)(y,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,padding:4,children:(0,O.jsx)(y,{alignItems:`center`,children:(0,O.jsx)(_,{size:1,muted:!0,as:`div`,trim:!0,children:e})})}),n[4]=e,n[5]=t),t}if(o){let e;n[6]===c?e=n[7]:(e=c(`list-status.loading`),n[6]=c,n[7]=e);let t;return n[8]===e?t=n[9]:(t=(0,O.jsx)(r,{showText:!0,title:e}),n[8]=e,n[9]=t),t}if(s){let e=u[i],t;n[10]===e.title?t=n[11]:(t=(0,O.jsx)(_,{align:`center`,size:1,muted:!0,weight:`medium`,as:`div`,trim:!0,children:e.title}),n[10]=e.title,n[11]=t);let r=u[i],a;n[12]===r.message?a=n[13]:(a=(0,O.jsx)(_,{align:`center`,size:1,muted:!0,as:`div`,trim:!0,children:r.message}),n[12]=r.message,n[13]=a);let o;return n[14]!==t||n[15]!==a?(o=(0,O.jsx)(y,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,children:(0,O.jsx)(g,{size:0,padding:4,children:(0,O.jsxs)(b,{gap:3,children:[t,a]})})}),n[14]=t,n[15]=a,n[16]=o):o=n[16],o}return null}var j=(0,O.jsx)(h,{muted:!0,icon:C,style:{margin:`-0.4375rem`}}),M=(e,t)=>(0,O.jsx)(x,{as:`li`,children:(0,O.jsx)(_,{truncate:1,size:1,weight:`medium`,as:`div`,trim:!0,children:e})},`${e}-${t}`);function N(e){let t=(0,D.c)(11),{titlePath:n,maxLength:r}=e,a;bb0:{let e=n.length,i=Math.ceil(r/2),o=Math.floor(r/2);if(r&&e>r){let r;t[0]!==o||t[1]!==i||t[2]!==e||t[3]!==n?(r=[...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]=r):r=t[4],a=r;break bb0}a=n}let o=a,s;if(t[5]!==o){let e;t[7]===o.length?e=t[8]:(e=(e,t)=>{let n=`${e}-${t}`,r=t<o.length-1;return Array.isArray(e)?(0,O.jsxs)(E.Fragment,{children:[(0,O.jsx)(i,{content:(0,O.jsx)(y,{gap:2,padding:2,flexDirection:`column`,children:e.map(M)}),children:(0,O.jsx)(x,{children:M(`...`,t)})}),r&&j]},n):(0,O.jsxs)(E.Fragment,{children:[M(e,t),r&&j]},n)},t[7]=o.length,t[8]=e),s=o.map(e),t[5]=o,t[6]=s}else s=t[6];let c=s,l;return t[9]===c?l=t[10]:(l=(0,O.jsx)(y,{alignItems:`center`,as:`ol`,gap:2,children:c}),t[9]=c,t[10]=l),l}var P=[];function F(e){let r=(0,D.c)(25),{currentUser:i,fieldTitle:a,mentionOptions:o,mode:s,onBlur:c,onFocus:l,onKeyDown:p,onNewThreadCreate:m,readOnly:h}=e,{t:g}=t(f),[_,v]=(0,E.useState)(P),y=(0,E.useRef)(null),b;r[0]===m?b=r[1]:(b=e=>{m?.(e),v(P)},r[0]=m,r[1]=b);let x=b,S;r[2]===_?S=r[3]:(S=u(_),r[2]=_,r[3]=S);let C=S,w;r[4]===C?w=r[5]:(w=()=>{C&&y.current?.discardDialogController.open()},r[4]=C,r[5]=w);let T=w,k;r[6]!==p||r[7]!==T?(k=e=>{e.isDefaultPrevented()||(e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),T()),p&&p(e))},r[6]=p,r[7]=T,r[8]=k):k=r[8];let A=k,j;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>{v(P),y.current?.discardDialogController.close(),y.current?.focus()},r[9]=j):j=r[9];let M=j,N;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>{y.current?.discardDialogController.close()},r[10]=N):N=r[10];let F=N,I;r[11]!==a||r[12]!==s||r[13]!==g?(I=s===`upsell`?g(`compose.add-comment-input-placeholder-upsell`):(0,O.jsx)(n,{t:g,i18nKey:`compose.add-comment-input-placeholder`,values:{field:a}}),r[11]=a,r[12]=s,r[13]=g,r[14]=I):I=r[14];let L=I,R=h||s===`upsell`,z;return r[15]!==i||r[16]!==A||r[17]!==x||r[18]!==o||r[19]!==c||r[20]!==l||r[21]!==L||r[22]!==R||r[23]!==_?(z=(0,O.jsx)(d,{currentUser:i,expandOnFocus:!0,mentionOptions:o,onBlur:c,onChange:v,onDiscardCancel:F,onDiscardConfirm:M,onKeyDown:A,onFocus:l,onSubmit:x,placeholder:L,readOnly:R,ref:y,value:_}),r[15]=i,r[16]=A,r[17]=x,r[18]=o,r[19]=c,r[20]=l,r[21]=L,r[22]=R,r[23]=_,r[24]=z):z=r[24],z}var I=p(y).withConfig({displayName:`HeaderFlex`,componentId:`sc-u3p3r5-0`})`min-height:25px;`,L=p(S).withConfig({displayName:`BreadcrumbsButton`,componentId:`sc-u3p3r5-1`})(({theme:e})=>{let t=e.sanity.color.base.fg;return m`--card-fg-color:${t};max-width:100%;`});function R(e){let n=(0,D.c)(36),{breadcrumbs:r,canCreateNewThread:i,children:o,currentUser:s,fieldPath:c,isSelected:l,mentionOptions:u,mode:d,onNewThreadCreate:p,onPathSelect:m,readOnly:h}=e,{t:g}=t(f),_;n[0]!==c||n[1]!==p?(_=e=>Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Sd as t,To as n,Ys as r,lc as i,nf as a}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as o,t as s}from"./jsx-runtime-BpzPEenQ.js";import{t as c}from"./compiler-runtime-sKsOXjDo.js";import{Y as l,dt as u,g as d,tt as f}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as p,Ut as m,a as h,n as g,o as _,p as v,r as y,s as b,t as x,yt as S}from"./dist-LVcARZxB.js";import{t as C}from"./ChevronRight-Cf6GkXSa.js";import{n as w,r as T}from"./CommentsListItem-B4CoDHda-DaXAEbir.js";var E=e(o(),1),D=c(),O=s();function k(e){return{open:{title:e(`list-status.empty-state-open-title`),message:e(`list-status.empty-state-open-text`)},resolved:{title:e(`list-status.empty-state-resolved-title`),message:e(`list-status.empty-state-resolved-text`)}}}function A(e){let n=(0,D.c)(17),{status:i,error:a,loading:o,hasNoComments:s}=e,{t:c}=t(f),l;n[0]===c?l=n[1]:(l=k(c),n[0]=c,n[1]=l);let u=l;if(a){let e;n[2]===c?e=n[3]:(e=c(`list-status.error`),n[2]=c,n[3]=e);let t;return n[4]===e?t=n[5]:(t=(0,O.jsx)(y,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,padding:4,children:(0,O.jsx)(y,{alignItems:`center`,children:(0,O.jsx)(_,{size:1,muted:!0,as:`div`,trim:!0,children:e})})}),n[4]=e,n[5]=t),t}if(o){let e;n[6]===c?e=n[7]:(e=c(`list-status.loading`),n[6]=c,n[7]=e);let t;return n[8]===e?t=n[9]:(t=(0,O.jsx)(r,{showText:!0,title:e}),n[8]=e,n[9]=t),t}if(s){let e=u[i],t;n[10]===e.title?t=n[11]:(t=(0,O.jsx)(_,{align:`center`,size:1,muted:!0,weight:`medium`,as:`div`,trim:!0,children:e.title}),n[10]=e.title,n[11]=t);let r=u[i],a;n[12]===r.message?a=n[13]:(a=(0,O.jsx)(_,{align:`center`,size:1,muted:!0,as:`div`,trim:!0,children:r.message}),n[12]=r.message,n[13]=a);let o;return n[14]!==t||n[15]!==a?(o=(0,O.jsx)(y,{alignItems:`center`,justifyContent:`center`,flexBasis:`0%`,flexGrow:1,children:(0,O.jsx)(g,{size:0,padding:4,children:(0,O.jsxs)(b,{gap:3,children:[t,a]})})}),n[14]=t,n[15]=a,n[16]=o):o=n[16],o}return null}var j=(0,O.jsx)(h,{muted:!0,icon:C,style:{margin:`-0.4375rem`}}),M=(e,t)=>(0,O.jsx)(x,{as:`li`,children:(0,O.jsx)(_,{truncate:1,size:1,weight:`medium`,as:`div`,trim:!0,children:e})},`${e}-${t}`);function N(e){let t=(0,D.c)(11),{titlePath:n,maxLength:r}=e,a;bb0:{let e=n.length,i=Math.ceil(r/2),o=Math.floor(r/2);if(r&&e>r){let r;t[0]!==o||t[1]!==i||t[2]!==e||t[3]!==n?(r=[...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]=r):r=t[4],a=r;break bb0}a=n}let o=a,s;if(t[5]!==o){let e;t[7]===o.length?e=t[8]:(e=(e,t)=>{let n=`${e}-${t}`,r=t<o.length-1;return Array.isArray(e)?(0,O.jsxs)(E.Fragment,{children:[(0,O.jsx)(i,{content:(0,O.jsx)(y,{gap:2,padding:2,flexDirection:`column`,children:e.map(M)}),children:(0,O.jsx)(x,{children:M(`...`,t)})}),r&&j]},n):(0,O.jsxs)(E.Fragment,{children:[M(e,t),r&&j]},n)},t[7]=o.length,t[8]=e),s=o.map(e),t[5]=o,t[6]=s}else s=t[6];let c=s,l;return t[9]===c?l=t[10]:(l=(0,O.jsx)(y,{alignItems:`center`,as:`ol`,gap:2,children:c}),t[9]=c,t[10]=l),l}var P=[];function F(e){let r=(0,D.c)(25),{currentUser:i,fieldTitle:a,mentionOptions:o,mode:s,onBlur:c,onFocus:l,onKeyDown:p,onNewThreadCreate:m,readOnly:h}=e,{t:g}=t(f),[_,v]=(0,E.useState)(P),y=(0,E.useRef)(null),b;r[0]===m?b=r[1]:(b=e=>{m?.(e),v(P)},r[0]=m,r[1]=b);let x=b,S;r[2]===_?S=r[3]:(S=u(_),r[2]=_,r[3]=S);let C=S,w;r[4]===C?w=r[5]:(w=()=>{C&&y.current?.discardDialogController.open()},r[4]=C,r[5]=w);let T=w,k;r[6]!==p||r[7]!==T?(k=e=>{e.isDefaultPrevented()||(e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),T()),p&&p(e))},r[6]=p,r[7]=T,r[8]=k):k=r[8];let A=k,j;r[9]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>{v(P),y.current?.discardDialogController.close(),y.current?.focus()},r[9]=j):j=r[9];let M=j,N;r[10]===Symbol.for(`react.memo_cache_sentinel`)?(N=()=>{y.current?.discardDialogController.close()},r[10]=N):N=r[10];let F=N,I;r[11]!==a||r[12]!==s||r[13]!==g?(I=s===`upsell`?g(`compose.add-comment-input-placeholder-upsell`):(0,O.jsx)(n,{t:g,i18nKey:`compose.add-comment-input-placeholder`,values:{field:a}}),r[11]=a,r[12]=s,r[13]=g,r[14]=I):I=r[14];let L=I,R=h||s===`upsell`,z;return r[15]!==i||r[16]!==A||r[17]!==x||r[18]!==o||r[19]!==c||r[20]!==l||r[21]!==L||r[22]!==R||r[23]!==_?(z=(0,O.jsx)(d,{currentUser:i,expandOnFocus:!0,mentionOptions:o,onBlur:c,onChange:v,onDiscardCancel:F,onDiscardConfirm:M,onKeyDown:A,onFocus:l,onSubmit:x,placeholder:L,readOnly:R,ref:y,value:_}),r[15]=i,r[16]=A,r[17]=x,r[18]=o,r[19]=c,r[20]=l,r[21]=L,r[22]=R,r[23]=_,r[24]=z):z=r[24],z}var I=p(y).withConfig({displayName:`HeaderFlex`,componentId:`sc-u3p3r5-0`})`min-height:25px;`,L=p(S).withConfig({displayName:`BreadcrumbsButton`,componentId:`sc-u3p3r5-1`})(({theme:e})=>{let t=e.sanity.color.base.fg;return m`--card-fg-color:${t};max-width:100%;`});function R(e){let n=(0,D.c)(36),{breadcrumbs:r,canCreateNewThread:i,children:o,currentUser:s,fieldPath:c,isSelected:l,mentionOptions:u,mode:d,onNewThreadCreate:p,onPathSelect:m,readOnly:h}=e,{t:g}=t(f),_;n[0]!==c||n[1]!==p?(_=e=>Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,Df as n,Do as r,Kr as i,Qs as a,Sd as o,To as s,Tu as c,da as l,dc as u,ec as d,fa as f,la as p,lc as m,nc as h,oc as g,pc as _,rc as v,rr as y,sc as b,uc as x,wo as S}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as C,t as w}from"./jsx-runtime-BpzPEenQ.js";import{t as T}from"./compiler-runtime-sKsOXjDo.js";import{$ as E,M as D,_ as O,c as k,dt as A,g as ee,gt as te,k as j,o as M,q as ne,r as re,tt as ie,wt as ae}from"./types--2f-avvL-DfAXA8nG.js";import{Et as N,Gt as P,Pt as oe,Qt as F,Ut as I,Y as L,a as se,et as ce,i as R,j as le,o as z,r as B,s as ue,t as V,yt as H}from"./dist-LVcARZxB.js";import{t as de}from"./ChevronDown-BpYUc-AP.js";import{t as fe}from"./Trash-BxG6GrjH.js";import{t as pe}from"./Edit-CAHlBqGT.js";import{t as me}from"./Link-Cl1VSeDJ.js";import{t as he}from"./CheckmarkCircle-B6SBY4QE.js";import{t as ge}from"./Undo-qtvfkxbn.js";import{t as _e}from"./LinkRemoved-LZtddC2J.js";var U=e(C(),1),W=T(),G=w();function ve(e){return{thread:{title:e(`delete-thread.title`),body:e(`delete-thread.body`),confirmButtonText:e(`delete-thread.confirm`)},comment:{title:e(`delete-comment.title`),body:e(`delete-comment.body`),confirmButtonText:e(`delete-comment.confirm`)}}}function ye(e){let t=(0,W.c)(27),{isParent:n,onClose:r,commentId:i,onConfirm:a,loading:s,error:c}=e,{t:l}=o(ie),u;t[0]===l?u=t[1]:(u=ve(l),t[0]=l,t[1]=u);let{title:f,body:p,confirmButtonText:m}=u[n?`thread`:`comment`],h;t[2]!==i||t[3]!==a?(h=()=>{a(i)},t[2]=i,t[3]=a,t[4]=h):h=t[4];let g=h,_;t[5]===r?_=t[6]:(_={onClick:r},t[5]=r,t[6]=_);let v;t[7]!==m||t[8]!==g||t[9]!==s?(v={loading:s,onClick:g,text:m,tone:`critical`},t[7]=m,t[8]=g,t[9]=s,t[10]=v):v=t[10];let y;t[11]!==_||t[12]!==v?(y={cancelButton:_,confirmButton:v},t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===p?b=t[15]:(b=(0,G.jsx)(z,{size:1,as:`div`,trim:!0,children:p}),t[14]=p,t[15]=b);let x;t[16]!==c||t[17]!==l?(x=c&&(0,G.jsx)(S,{tone:`critical`,children:l(`delete-dialog.error`)}),t[16]=c,t[17]=l,t[18]=x):x=t[18];let C;t[19]!==b||t[20]!==x?(C=(0,G.jsxs)(ue,{gap:4,children:[b,x]}),t[19]=b,t[20]=x,t[21]=C):C=t[21];let w;return t[22]!==r||t[23]!==y||t[24]!==C||t[25]!==f?(w=(0,G.jsx)(d,{footer:y,header:f,id:`delete-comment-dialog`,onClose:r,width:0,children:C}),t[22]=r,t[23]=y,t[24]=C,t[25]=f,t[26]=w):w=t[26],w}var be=P.div.withConfig({displayName:`SpacerAvatar`,componentId:`sc-negkme-0`})(e=>{let t=F(e.theme),{$size:n=1}=e;return I`min-width:${t.avatar.sizes[n]?.size}px;`}),xe=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Se(e){e.stopPropagation()}function Ce(e){let t=e.startsWith(`http`)?e:`https://${e}`;return(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:Se,children:e},e)}var we=[e=>typeof e==`string`?e.split(xe).flatMap(e=>e.match(xe)?Ce(e):e):e];function Te(e){return Array.isArray(e)?e.flatMap(e=>{let t=[e];for(let e of we)t=t.flatMap(e);return t}):e}var Ee=P(ue).withConfig({displayName:`PortableTextWrap`,componentId:`sc-f594nj-0`})(()=>I`& > [data-ui='Text']:not(:first-child){margin-top:1em;}& > [data-ui='Text']:empty{display:none;}`),De=[];function K(e){let t=(0,W.c)(4),n;t[0]===e.children?n=t[1]:(n=Te(e.children),t[0]=e.children,t[1]=n);let r=n,i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(D,{children:r}),t[2]=r,t[3]=i),i}var Oe={block:{normal:K,h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,blockquote:K,code:K},list:{bullet:U.Fragment,number:U.Fragment,checkmarks:U.Fragment},listItem:{bullet:K,number:K,checkmarks:K},marks:{strong:U.Fragment,em:U.Fragment,code:U.Fragment,underline:U.Fragment,strikeThrough:U.Fragment,link:U.Fragment},types:{mention:e=>(0,G.jsx)(j,{userId:e?.value?.userId,selected:!1})}};function ke(e){let t=(0,W.c)(2),{blocks:n}=e,r=n||De,a;return t[0]===r?a=t[1]:(a=(0,G.jsx)(Ee,{children:(0,G.jsx)(i,{value:r,components:Oe})}),t[0]=r,t[1]=a),a}function q(e){let t=(0,W.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a,o,s,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(`path`,{d:`M10.1044 10.4011L10.1044 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),a=(0,G.jsx)(`path`,{d:`M14.2393 10.4011L14.2393 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),o=(0,G.jsx)(`path`,{d:`M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.8377C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),s=(0,G.jsx)(`path`,{d:`M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415`,stroke:`currentColor`,strokeWidth:1.2}),c=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.1135 9.03425L19.1135 11.4903L20.3135 11.4903L20.3135 9.03425L22.7693 9.03425L22.7693 7.83425L20.3135 7.83425L20.3135 5.37941L19.1135 5.37941L19.1135 7.83425L16.6584 7.83425L16.6584 9.03425L19.11
Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,Df as n,Do as r,Kr as i,Qs as a,Sd as o,To as s,Tu as c,da as l,dc as u,ec as d,fa as f,la as p,lc as m,nc as h,oc as g,pc as _,rc as v,rr as y,sc as b,uc as x,wo as S}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as C,t as w}from"./jsx-runtime-BpzPEenQ.js";import{t as T}from"./compiler-runtime-sKsOXjDo.js";import{$ as E,M as D,_ as O,c as k,dt as A,g as ee,gt as te,k as j,o as M,q as ne,r as re,tt as ie,wt as ae}from"./types--2f-avvL-CUBrVRGR.js";import{Et as N,Gt as P,Pt as oe,Qt as F,Ut as I,Y as L,a as se,et as ce,i as R,j as le,o as z,r as B,s as ue,t as V,yt as H}from"./dist-LVcARZxB.js";import{t as de}from"./ChevronDown-BpYUc-AP.js";import{t as fe}from"./Trash-BxG6GrjH.js";import{t as pe}from"./Edit-CAHlBqGT.js";import{t as me}from"./Link-Cl1VSeDJ.js";import{t as he}from"./CheckmarkCircle-B6SBY4QE.js";import{t as ge}from"./Undo-qtvfkxbn.js";import{t as _e}from"./LinkRemoved-LZtddC2J.js";var U=e(C(),1),W=T(),G=w();function ve(e){return{thread:{title:e(`delete-thread.title`),body:e(`delete-thread.body`),confirmButtonText:e(`delete-thread.confirm`)},comment:{title:e(`delete-comment.title`),body:e(`delete-comment.body`),confirmButtonText:e(`delete-comment.confirm`)}}}function ye(e){let t=(0,W.c)(27),{isParent:n,onClose:r,commentId:i,onConfirm:a,loading:s,error:c}=e,{t:l}=o(ie),u;t[0]===l?u=t[1]:(u=ve(l),t[0]=l,t[1]=u);let{title:f,body:p,confirmButtonText:m}=u[n?`thread`:`comment`],h;t[2]!==i||t[3]!==a?(h=()=>{a(i)},t[2]=i,t[3]=a,t[4]=h):h=t[4];let g=h,_;t[5]===r?_=t[6]:(_={onClick:r},t[5]=r,t[6]=_);let v;t[7]!==m||t[8]!==g||t[9]!==s?(v={loading:s,onClick:g,text:m,tone:`critical`},t[7]=m,t[8]=g,t[9]=s,t[10]=v):v=t[10];let y;t[11]!==_||t[12]!==v?(y={cancelButton:_,confirmButton:v},t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===p?b=t[15]:(b=(0,G.jsx)(z,{size:1,as:`div`,trim:!0,children:p}),t[14]=p,t[15]=b);let x;t[16]!==c||t[17]!==l?(x=c&&(0,G.jsx)(S,{tone:`critical`,children:l(`delete-dialog.error`)}),t[16]=c,t[17]=l,t[18]=x):x=t[18];let C;t[19]!==b||t[20]!==x?(C=(0,G.jsxs)(ue,{gap:4,children:[b,x]}),t[19]=b,t[20]=x,t[21]=C):C=t[21];let w;return t[22]!==r||t[23]!==y||t[24]!==C||t[25]!==f?(w=(0,G.jsx)(d,{footer:y,header:f,id:`delete-comment-dialog`,onClose:r,width:0,children:C}),t[22]=r,t[23]=y,t[24]=C,t[25]=f,t[26]=w):w=t[26],w}var be=P.div.withConfig({displayName:`SpacerAvatar`,componentId:`sc-negkme-0`})(e=>{let t=F(e.theme),{$size:n=1}=e;return I`min-width:${t.avatar.sizes[n]?.size}px;`}),xe=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Se(e){e.stopPropagation()}function Ce(e){let t=e.startsWith(`http`)?e:`https://${e}`;return(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:Se,children:e},e)}var we=[e=>typeof e==`string`?e.split(xe).flatMap(e=>e.match(xe)?Ce(e):e):e];function Te(e){return Array.isArray(e)?e.flatMap(e=>{let t=[e];for(let e of we)t=t.flatMap(e);return t}):e}var Ee=P(ue).withConfig({displayName:`PortableTextWrap`,componentId:`sc-f594nj-0`})(()=>I`& > [data-ui='Text']:not(:first-child){margin-top:1em;}& > [data-ui='Text']:empty{display:none;}`),De=[];function K(e){let t=(0,W.c)(4),n;t[0]===e.children?n=t[1]:(n=Te(e.children),t[0]=e.children,t[1]=n);let r=n,i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(D,{children:r}),t[2]=r,t[3]=i),i}var Oe={block:{normal:K,h1:K,h2:K,h3:K,h4:K,h5:K,h6:K,blockquote:K,code:K},list:{bullet:U.Fragment,number:U.Fragment,checkmarks:U.Fragment},listItem:{bullet:K,number:K,checkmarks:K},marks:{strong:U.Fragment,em:U.Fragment,code:U.Fragment,underline:U.Fragment,strikeThrough:U.Fragment,link:U.Fragment},types:{mention:e=>(0,G.jsx)(j,{userId:e?.value?.userId,selected:!1})}};function ke(e){let t=(0,W.c)(2),{blocks:n}=e,r=n||De,a;return t[0]===r?a=t[1]:(a=(0,G.jsx)(Ee,{children:(0,G.jsx)(i,{value:r,components:Oe})}),t[0]=r,t[1]=a),a}function q(e){let t=(0,W.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a,o,s,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(`path`,{d:`M10.1044 10.4011L10.1044 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),a=(0,G.jsx)(`path`,{d:`M14.2393 10.4011L14.2393 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),o=(0,G.jsx)(`path`,{d:`M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.8377C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),s=(0,G.jsx)(`path`,{d:`M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415`,stroke:`currentColor`,strokeWidth:1.2}),c=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.1135 9.03425L19.1135 11.4903L20.3135 11.4903L20.3135 9.03425L22.7693 9.03425L22.7693 7.83425L20.3135 7.83425L20.3135 5.37941L19.1135 5.37941L19.1135 7.83425L16.6584 7.83425L16.6584 9.03425L19.11
Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,Df as n,Do as r,Js as i,Kr as a,Qs as o,Sd as s,To as c,Tu as l,da as u,dc as d,ec as f,fa as p,la as m,lc as h,nc as g,oc as _,pc as v,qs as y,rc as b,rr as x,sc as S,uc as C,wo as w}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as T,t as E}from"./jsx-runtime-BpzPEenQ.js";import{t as D}from"./compiler-runtime-sKsOXjDo.js";import{a as O,et as ee,n as k,s as A}from"./types--2f-avvL-DfAXA8nG.js";import{Et as j,Gt as M,Pt as N,Qt as P,St as te,Ut as F,Y as I,a as ne,c as L,et as re,i as ie,j as ae,o as R,r as z,s as B,t as oe,yt as se}from"./dist-LVcARZxB.js";import{l as V,u as ce}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as le}from"./ChevronDown-BpYUc-AP.js";import{t as ue}from"./Trash-BxG6GrjH.js";import{t as de}from"./Edit-CAHlBqGT.js";import{t as fe}from"./Link-Cl1VSeDJ.js";import{t as pe}from"./CheckmarkCircle-B6SBY4QE.js";import{t as H}from"./Undo-qtvfkxbn.js";import{t as me}from"./LinkRemoved-LZtddC2J.js";import{a as he,n as ge,t as _e}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{a as ve,i as ye,l as be,n as xe,r as Se,t as Ce}from"./CommentInput-C1kF5k49-kVUiwefG.js";var U=e(T(),1),W=D(),G=E();function we(e){return{thread:{title:e(`delete-thread.title`),body:e(`delete-thread.body`),confirmButtonText:e(`delete-thread.confirm`)},comment:{title:e(`delete-comment.title`),body:e(`delete-comment.body`),confirmButtonText:e(`delete-comment.confirm`)}}}function Te(e){let t=(0,W.c)(27),{isParent:n,onClose:r,commentId:i,onConfirm:a,loading:o,error:c}=e,{t:l}=s(ee),u;t[0]===l?u=t[1]:(u=we(l),t[0]=l,t[1]=u);let{title:d,body:p,confirmButtonText:m}=u[n?`thread`:`comment`],h;t[2]!==i||t[3]!==a?(h=()=>{a(i)},t[2]=i,t[3]=a,t[4]=h):h=t[4];let g=h,_;t[5]===r?_=t[6]:(_={onClick:r},t[5]=r,t[6]=_);let v;t[7]!==m||t[8]!==g||t[9]!==o?(v={loading:o,onClick:g,text:m,tone:`critical`},t[7]=m,t[8]=g,t[9]=o,t[10]=v):v=t[10];let y;t[11]!==_||t[12]!==v?(y={cancelButton:_,confirmButton:v},t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===p?b=t[15]:(b=(0,G.jsx)(R,{size:1,as:`div`,trim:!0,children:p}),t[14]=p,t[15]=b);let x;t[16]!==c||t[17]!==l?(x=c&&(0,G.jsx)(w,{tone:`critical`,children:l(`delete-dialog.error`)}),t[16]=c,t[17]=l,t[18]=x):x=t[18];let S;t[19]!==b||t[20]!==x?(S=(0,G.jsxs)(B,{gap:4,children:[b,x]}),t[19]=b,t[20]=x,t[21]=S):S=t[21];let C;return t[22]!==r||t[23]!==y||t[24]!==S||t[25]!==d?(C=(0,G.jsx)(f,{footer:y,header:d,id:`delete-comment-dialog`,onClose:r,width:0,children:S}),t[22]=r,t[23]=y,t[24]=S,t[25]=d,t[26]=C):C=t[26],C}var Ee=M.div.withConfig({displayName:`SpacerAvatar`,componentId:`sc-negkme-0`})(e=>{let t=P(e.theme),{$size:n=1}=e;return F`min-width:${t.avatar.sizes[n]?.size}px;`}),De=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Oe(e){e.stopPropagation()}function K(e){let t=e.startsWith(`http`)?e:`https://${e}`;return(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:Oe,children:e},e)}var ke=[e=>typeof e==`string`?e.split(De).flatMap(e=>e.match(De)?K(e):e):e];function q(e){return Array.isArray(e)?e.flatMap(e=>{let t=[e];for(let e of ke)t=t.flatMap(e);return t}):e}var Ae=M(B).withConfig({displayName:`PortableTextWrap`,componentId:`sc-f594nj-0`})(()=>F`& > [data-ui='Text']:not(:first-child){margin-top:1em;}& > [data-ui='Text']:empty{display:none;}`),je=[];function J(e){let t=(0,W.c)(4),n;t[0]===e.children?n=t[1]:(n=q(e.children),t[0]=e.children,t[1]=n);let r=n,i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(ye,{children:r}),t[2]=r,t[3]=i),i}var Me={block:{normal:J,h1:J,h2:J,h3:J,h4:J,h5:J,h6:J,blockquote:J,code:J},list:{bullet:U.Fragment,number:U.Fragment,checkmarks:U.Fragment},listItem:{bullet:J,number:J,checkmarks:J},marks:{strong:U.Fragment,em:U.Fragment,code:U.Fragment,underline:U.Fragment,strikeThrough:U.Fragment,link:U.Fragment},types:{mention:e=>(0,G.jsx)(Se,{userId:e?.value?.userId,selected:!1})}};function Ne(e){let t=(0,W.c)(2),{blocks:n}=e,r=n||je,i;return t[0]===r?i=t[1]:(i=(0,G.jsx)(Ae,{children:(0,G.jsx)(a,{value:r,components:Me})}),t[0]=r,t[1]=i),i}function Y(e){let t=(0,W.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a,o,s,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(`path`,{d:`M10.1044 10.4011L10.1044 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),a=(0,G.jsx)(`path`,{d:`M14.2393 10.4011L14.2393 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),o=(0,G.jsx)(`path`,{d:`M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.8377C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),s=(0,G.jsx)(`path`,{d:`M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415`,stroke:`currentColor`,strokeWidth:1.2}),c=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.1135 9.034
Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,Df as n,Do as r,Js as i,Kr as a,Qs as o,Sd as s,To as c,Tu as l,da as u,dc as d,ec as f,fa as p,la as m,lc as h,nc as g,oc as _,pc as v,qs as y,rc as b,rr as x,sc as S,uc as C,wo as w}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as T,t as E}from"./jsx-runtime-BpzPEenQ.js";import{t as D}from"./compiler-runtime-sKsOXjDo.js";import{a as O,et as ee,n as k,s as A}from"./types--2f-avvL-CUBrVRGR.js";import{Et as j,Gt as M,Pt as N,Qt as P,St as te,Ut as F,Y as I,a as ne,c as L,et as re,i as ie,j as ae,o as R,r as z,s as B,t as oe,yt as se}from"./dist-LVcARZxB.js";import{l as V,u as ce}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as le}from"./ChevronDown-BpYUc-AP.js";import{t as ue}from"./Trash-BxG6GrjH.js";import{t as de}from"./Edit-CAHlBqGT.js";import{t as fe}from"./Link-Cl1VSeDJ.js";import{t as pe}from"./CheckmarkCircle-B6SBY4QE.js";import{t as H}from"./Undo-qtvfkxbn.js";import{t as me}from"./LinkRemoved-LZtddC2J.js";import{a as he,n as ge,t as _e}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{a as ve,i as ye,l as be,n as xe,r as Se,t as Ce}from"./CommentInput-C1kF5k49-CItaByrf.js";var U=e(T(),1),W=D(),G=E();function we(e){return{thread:{title:e(`delete-thread.title`),body:e(`delete-thread.body`),confirmButtonText:e(`delete-thread.confirm`)},comment:{title:e(`delete-comment.title`),body:e(`delete-comment.body`),confirmButtonText:e(`delete-comment.confirm`)}}}function Te(e){let t=(0,W.c)(27),{isParent:n,onClose:r,commentId:i,onConfirm:a,loading:o,error:c}=e,{t:l}=s(ee),u;t[0]===l?u=t[1]:(u=we(l),t[0]=l,t[1]=u);let{title:d,body:p,confirmButtonText:m}=u[n?`thread`:`comment`],h;t[2]!==i||t[3]!==a?(h=()=>{a(i)},t[2]=i,t[3]=a,t[4]=h):h=t[4];let g=h,_;t[5]===r?_=t[6]:(_={onClick:r},t[5]=r,t[6]=_);let v;t[7]!==m||t[8]!==g||t[9]!==o?(v={loading:o,onClick:g,text:m,tone:`critical`},t[7]=m,t[8]=g,t[9]=o,t[10]=v):v=t[10];let y;t[11]!==_||t[12]!==v?(y={cancelButton:_,confirmButton:v},t[11]=_,t[12]=v,t[13]=y):y=t[13];let b;t[14]===p?b=t[15]:(b=(0,G.jsx)(R,{size:1,as:`div`,trim:!0,children:p}),t[14]=p,t[15]=b);let x;t[16]!==c||t[17]!==l?(x=c&&(0,G.jsx)(w,{tone:`critical`,children:l(`delete-dialog.error`)}),t[16]=c,t[17]=l,t[18]=x):x=t[18];let S;t[19]!==b||t[20]!==x?(S=(0,G.jsxs)(B,{gap:4,children:[b,x]}),t[19]=b,t[20]=x,t[21]=S):S=t[21];let C;return t[22]!==r||t[23]!==y||t[24]!==S||t[25]!==d?(C=(0,G.jsx)(f,{footer:y,header:d,id:`delete-comment-dialog`,onClose:r,width:0,children:S}),t[22]=r,t[23]=y,t[24]=S,t[25]=d,t[26]=C):C=t[26],C}var Ee=M.div.withConfig({displayName:`SpacerAvatar`,componentId:`sc-negkme-0`})(e=>{let t=P(e.theme),{$size:n=1}=e;return F`min-width:${t.avatar.sizes[n]?.size}px;`}),De=/\b(https?:\/\/[^\s,()]+(?:\.[^\s,()]+)*|www\.[^\s,()]+\.[^\s,()]{2,})\b/g;function Oe(e){e.stopPropagation()}function K(e){let t=e.startsWith(`http`)?e:`https://${e}`;return(0,G.jsx)(`a`,{href:t,target:`_blank`,rel:`noopener noreferrer`,onClick:Oe,children:e},e)}var ke=[e=>typeof e==`string`?e.split(De).flatMap(e=>e.match(De)?K(e):e):e];function q(e){return Array.isArray(e)?e.flatMap(e=>{let t=[e];for(let e of ke)t=t.flatMap(e);return t}):e}var Ae=M(B).withConfig({displayName:`PortableTextWrap`,componentId:`sc-f594nj-0`})(()=>F`& > [data-ui='Text']:not(:first-child){margin-top:1em;}& > [data-ui='Text']:empty{display:none;}`),je=[];function J(e){let t=(0,W.c)(4),n;t[0]===e.children?n=t[1]:(n=q(e.children),t[0]=e.children,t[1]=n);let r=n,i;return t[2]===r?i=t[3]:(i=(0,G.jsx)(ye,{children:r}),t[2]=r,t[3]=i),i}var Me={block:{normal:J,h1:J,h2:J,h3:J,h4:J,h5:J,h6:J,blockquote:J,code:J},list:{bullet:U.Fragment,number:U.Fragment,checkmarks:U.Fragment},listItem:{bullet:J,number:J,checkmarks:J},marks:{strong:U.Fragment,em:U.Fragment,code:U.Fragment,underline:U.Fragment,strikeThrough:U.Fragment,link:U.Fragment},types:{mention:e=>(0,G.jsx)(Se,{userId:e?.value?.userId,selected:!1})}};function Ne(e){let t=(0,W.c)(2),{blocks:n}=e,r=n||je,i;return t[0]===r?i=t[1]:(i=(0,G.jsx)(Ae,{children:(0,G.jsx)(a,{value:r,components:Me})}),t[0]=r,t[1]=i),i}function Y(e){let t=(0,W.c)(11),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i,a,o,s,c;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,G.jsx)(`path`,{d:`M10.1044 10.4011L10.1044 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),a=(0,G.jsx)(`path`,{d:`M14.2393 10.4011L14.2393 10.9972`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),o=(0,G.jsx)(`path`,{d:`M7.12128 14.1151C7.70803 15.0226 9.66113 16.8377 11.7735 16.8377C13.8859 16.8377 15.6713 15.0226 16.4257 14.1151`,stroke:`currentColor`,strokeWidth:1.2,strokeLinecap:`square`}),s=(0,G.jsx)(`path`,{d:`M16.703 6.43905C15.3486 5.36511 13.6357 4.72374 11.773 4.72374C7.38731 4.72374 3.83203 8.27902 3.83203 12.6647C3.83203 17.0503 7.38731 20.6056 11.773 20.6056C16.0995 20.6056 19.618 17.1455 19.712 12.8415`,stroke:`currentColor`,strokeWidth:1.2}),c=(0,G.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M19.1135 9.034
Line truncated
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,An as n,Bo as r,Cf as i,D as a,Df as o,E as s,Em as c,Fl as l,Gi as u,Hl as d,In as f,Ir as p,Is as m,Jf as h,K as g,Md as _,Ms as v,Nd as y,Ns as b,O as x,Oa as S,Od as C,Ol as w,Or as T,Ou as E,Qt as D,Ru as O,Sd as k,Sl as A,Tf as j,Tl as M,Tm as N,U as P,Xo as F,Yc as I,Ys as L,Zf as R,Zs as ee,_s as z,_t as te,aa as ne,ap as B,bt as V,cr as H,ed as re,et as U,g as W,gl as ie,gs as G,h as ae,hp as K,hr as oe,hs as se,ic as ce,jd as le,js as q,k as ue,mp as de,n as fe,nf as J,oa as pe,p as me,qf as he,r as ge,tl as _e,ur as ve,va as Y,vs as ye,vt as be,x as xe,xc as Se,xt as Ce,yc as we,yf as Te,ys as Ee,yt as De,z as Oe}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as ke,t as Ae}from"./jsx-runtime-BpzPEenQ.js";import{t as je}from"./compiler-runtime-sKsOXjDo.js";import{f as Me,l as Ne,o as Pe}from"./from-B8yXq1Hf.js";import{Q as X,St as Fe,X as Ie,ct as Le,ft as Re,ht as ze,lt as Be,mt as Ve,q as He,rt as Ue,xt as We}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{Bt as Ge,Et as Ke,Tt as qe,dr as Je,gt as Ye,hn as Xe,mr as Ze}from"./types--2f-avvL-DfAXA8nG.js";import{Et as Qe,St as $e,s as et,t as tt}from"./dist-LVcARZxB.js";import{a as nt,d as rt,l as it,o as at,s as ot,u as st}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as ct}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{r as lt}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{t as ut}from"./buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js";function dt(){var e=[...arguments],t=Fe(e),n=c(e),r=n.args,i=n.keys,a=new Me(function(e){var t=r.length;if(!t){e.complete();return}for(var n=Array(t),a=t,o=t,s=function(t){var s=!1;Pe(r[t]).subscribe(Ne(e,function(e){s||(s=!0,o--),n[t]=e},function(){return a--},void 0,function(){(!a||!s)&&(o||e.next(i?N(i,n):n),e.complete())}))},c=0;c<t;c++)s(c)});return t?a.pipe(Ve(t)):a}var Z=e(ke(),1),Q=je(),$=Ae();function ft(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:te},t[0]=e,t[1]=n),m(n)}function pt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:ft,pick:se},e[0]=t):t=e[0],q(t)}function mt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:be},t[0]=e,t[1]=n),m(n)}function ht(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:mt,pick:G},e[0]=t):t=e[0],q(t)}function gt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:De},t[0]=e,t[1]=n),m(n)}function _t(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:gt,pick:z},e[0]=t):t=e[0],q(t)}function vt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:V},t[0]=e,t[1]=n),m(n)}function yt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:vt,pick:ye},e[0]=t):t=e[0],q(t)}function bt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:Ce},t[0]=e,t[1]=n),m(n)}function xt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:bt,pick:Ee},e[0]=t):t=e[0],q(t)}function St(e){let t=(0,Q.c)(28),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0];let[a,o]=(0,Z.useState)(r),{onPathOpen:s}=H(),{hasAnyFullscreen:c,allFullscreenPaths:l}=ve(),u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(e,t)=>{o(n=>n.some(t=>t.id===e)?n:[...n,{id:e,path:t}])},t[1]=u):u=t[1];let d=u,f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{o(t=>t.filter(t=>t.id!==e))},t[2]=f):f=t[2];let p=f,m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(e,t)=>{o(n=>n.map(n=>n.id===e?{...n,path:t}:n))},t[3]=m):m=t[3];let h=m,g;t[4]===l?g=t[5]:(g=e=>l.filter(t=>{let n=Se(t);if(n.length>e.length||!n.every((t,n)=>{let r=e[n];return i(t)&&i(r)?t._key===r._key:t===r}))return!1;if(n.some(Tt))return!0;let r=e[n.length];return!i(r)}),t[4]=l,t[5]=g);let _=g,v;t[6]===s?v=t[7]:(v=()=>{s(Y),o([])},t[6]=s,t[7]=v);let y=v,b;t[8]!==y||t[9]!==_||t[10]!==s?(b=e=>{let t=_(e);if(t&&t.length>0){let e=t.reduce(wt),n=Se(e);s(n),o(e=>e.filter(e=>!e.path||e.path.length>=n.length?!1:e.path.every((e,t)=>{let r=n[t];return i(e)&&i(r)?e._key===r._key:e===r})))}else y()},t[8]=y,t[9]=_,t[10]=s,t[11]=b):b=t[11];let x=b,S;t[12]!==l||t[13]!==y||t[14]!==x||t[15]!==c||t[16]!==s||t[17]!==a?(S=e=>{let t=a[a.length-1]?.path;if(e?.toParent&&a.length>=2){let e=a[a.length-2];if(e?.path){s(e.path),o(Ct);return}}if(t&&c()&&l.length>=1){x(t);return}y()},t[12]=l,t[13]=y,t[14]=x,t[15]=c,t[16]=s,t[17]=a,t[18]=S):S=t[18];let C=S,w;t[19]===s?w=t[20]:(w=e=>{s(e),o(t=>t.filter(t=>!t.path||t.path.length>=e.length?!1:t.path.every((t,n)=>{let r=e[n];return i(t)&&i(r)?t._key===r._key:t===r})))},t[19]=s,t[20]=w);let T=w,E;t[21]!==C||t[22]!==T||t[23]!==a?(E={stack:a,push:d,remove:p,update:h,close:C,navigateTo:T},t[21]=C,t[22]=T,t[23]=a,t[24]=E):E=t[24];let D=ELine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$t as t,An as n,Bo as r,Cf as i,D as a,Df as o,E as s,Em as c,Fl as l,Gi as u,Hl as d,In as f,Ir as p,Is as m,Jf as h,K as g,Md as _,Ms as v,Nd as y,Ns as b,O as x,Oa as S,Od as C,Ol as w,Or as T,Ou as E,Qt as D,Ru as O,Sd as k,Sl as A,Tf as j,Tl as M,Tm as N,U as P,Xo as F,Yc as I,Ys as L,Zf as R,Zs as ee,_s as z,_t as te,aa as ne,ap as B,bt as V,cr as H,ed as re,et as U,g as W,gl as ie,gs as G,h as ae,hp as K,hr as oe,hs as se,ic as ce,jd as le,js as q,k as ue,mp as de,n as fe,nf as J,oa as pe,p as me,qf as he,r as ge,tl as _e,ur as ve,va as Y,vs as ye,vt as be,x as xe,xc as Se,xt as Ce,yc as we,yf as Te,ys as Ee,yt as De,z as Oe}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as ke,t as Ae}from"./jsx-runtime-BpzPEenQ.js";import{t as je}from"./compiler-runtime-sKsOXjDo.js";import{f as Me,l as Ne,o as Pe}from"./from-B8yXq1Hf.js";import{Q as X,St as Fe,X as Ie,ct as Le,ft as Re,ht as ze,lt as Be,mt as Ve,q as He,rt as Ue,xt as We}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{Bt as Ge,Et as Ke,Tt as qe,dr as Je,gt as Ye,hn as Xe,mr as Ze}from"./types--2f-avvL-CUBrVRGR.js";import{Et as Qe,St as $e,s as et,t as tt}from"./dist-LVcARZxB.js";import{a as nt,d as rt,l as it,o as at,s as ot,u as st}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as ct}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{r as lt}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{t as ut}from"./buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js";function dt(){var e=[...arguments],t=Fe(e),n=c(e),r=n.args,i=n.keys,a=new Me(function(e){var t=r.length;if(!t){e.complete();return}for(var n=Array(t),a=t,o=t,s=function(t){var s=!1;Pe(r[t]).subscribe(Ne(e,function(e){s||(s=!0,o--),n[t]=e},function(){return a--},void 0,function(){(!a||!s)&&(o||e.next(i?N(i,n):n),e.complete())}))},c=0;c<t;c++)s(c)});return t?a.pipe(Ve(t)):a}var Z=e(ke(),1),Q=je(),$=Ae();function ft(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:te},t[0]=e,t[1]=n),m(n)}function pt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:ft,pick:se},e[0]=t):t=e[0],q(t)}function mt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:be},t[0]=e,t[1]=n),m(n)}function ht(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:mt,pick:G},e[0]=t):t=e[0],q(t)}function gt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:De},t[0]=e,t[1]=n),m(n)}function _t(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:gt,pick:z},e[0]=t):t=e[0],q(t)}function vt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:V},t[0]=e,t[1]=n),m(n)}function yt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:vt,pick:ye},e[0]=t):t=e[0],q(t)}function bt(e){let t=(0,Q.c)(2),n;return t[0]===e?n=t[1]:(n={componentProps:e,componentResolver:Ce},t[0]=e,t[1]=n),m(n)}function xt(){let e=(0,Q.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={defaultComponent:bt,pick:Ee},e[0]=t):t=e[0],q(t)}function St(e){let t=(0,Q.c)(28),{children:n}=e,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(r=[],t[0]=r):r=t[0];let[a,o]=(0,Z.useState)(r),{onPathOpen:s}=H(),{hasAnyFullscreen:c,allFullscreenPaths:l}=ve(),u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=(e,t)=>{o(n=>n.some(t=>t.id===e)?n:[...n,{id:e,path:t}])},t[1]=u):u=t[1];let d=u,f;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(f=e=>{o(t=>t.filter(t=>t.id!==e))},t[2]=f):f=t[2];let p=f,m;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(m=(e,t)=>{o(n=>n.map(n=>n.id===e?{...n,path:t}:n))},t[3]=m):m=t[3];let h=m,g;t[4]===l?g=t[5]:(g=e=>l.filter(t=>{let n=Se(t);if(n.length>e.length||!n.every((t,n)=>{let r=e[n];return i(t)&&i(r)?t._key===r._key:t===r}))return!1;if(n.some(Tt))return!0;let r=e[n.length];return!i(r)}),t[4]=l,t[5]=g);let _=g,v;t[6]===s?v=t[7]:(v=()=>{s(Y),o([])},t[6]=s,t[7]=v);let y=v,b;t[8]!==y||t[9]!==_||t[10]!==s?(b=e=>{let t=_(e);if(t&&t.length>0){let e=t.reduce(wt),n=Se(e);s(n),o(e=>e.filter(e=>!e.path||e.path.length>=n.length?!1:e.path.every((e,t)=>{let r=n[t];return i(e)&&i(r)?e._key===r._key:e===r})))}else y()},t[8]=y,t[9]=_,t[10]=s,t[11]=b):b=t[11];let x=b,S;t[12]!==l||t[13]!==y||t[14]!==x||t[15]!==c||t[16]!==s||t[17]!==a?(S=e=>{let t=a[a.length-1]?.path;if(e?.toParent&&a.length>=2){let e=a[a.length-2];if(e?.path){s(e.path),o(Ct);return}}if(t&&c()&&l.length>=1){x(t);return}y()},t[12]=l,t[13]=y,t[14]=x,t[15]=c,t[16]=s,t[17]=a,t[18]=S):S=t[18];let C=S,w;t[19]===s?w=t[20]:(w=e=>{s(e),o(t=>t.filter(t=>!t.path||t.path.length>=e.length?!1:t.path.every((t,n)=>{let r=e[n];return i(t)&&i(r)?t._key===r._key:t===r})))},t[19]=s,t[20]=w);let T=w,E;t[21]!==C||t[22]!==T||t[23]!==a?(E={stack:a,push:d,remove:p,update:h,close:C,navigateTo:T},t[21]=C,t[22]=T,t[23]=a,t[24]=E):E=t[24];let D=ELine truncated
|
||||
_createdAt,
|
||||
_id,
|
||||
authorId,
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Jt as n,Qf as r,S as i,np as a,or as o,xr as s}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as c,t as l}from"./jsx-runtime-BpzPEenQ.js";import{t as u}from"./compiler-runtime-sKsOXjDo.js";import{t as d}from"./AddonDatasetProvider-CF_RtUZo-BoMlopck.js";var f=e(c(),1),p=u(),m=l(),h=`sanityStudio:comments:inspector:onboarding:dismissed:v1`,g=e=>{try{window.localStorage.setItem(h,JSON.stringify(e))}catch{}},_=()=>{try{let e=window.localStorage.getItem(h);return e?JSON.parse(e):!1}catch{return!1}};function v(e){let t=(0,p.c)(7),{children:n}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=_(),t[0]=i):i=t[0];let[a,o]=(0,f.useState)(i),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o(!0),g(!0)},t[1]=s):s=t[1];let c=s,l;t[2]===a?l=t[3]:(l={setDismissed:c,isDismissed:a},t[2]=a,t[3]=l);let u=l,d;return t[4]!==n||t[5]!==u?(d=(0,m.jsx)(r.Provider,{value:u,children:n}),t[4]=n,t[5]=u,t[6]=d):d=t[6],d}function y(e){let r=(0,p.c)(9),i;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={dataUri:`/journey/comments`,feature:`comments`},r[0]=i):i=r[0];let o=s(i),c=e.children,l;r[1]===o?l=r[2]:(l=n(o),r[1]=o,r[2]=l);let u;r[3]===l?u=r[4]:(u=(0,m.jsx)(t,{...l}),r[3]=l,r[4]=u);let d;return r[5]!==o||r[6]!==e.children||r[7]!==u?(d=(0,m.jsxs)(a.Provider,{value:o,children:[c,u]}),r[5]=o,r[6]=e.children,r[7]=u,r[8]=d):d=r[8],d}function b(e){let t=(0,p.c)(8),{enabled:n,isLoading:r}=o(i.studioComments),a;t[0]===e?a=t[1]:(a=e.renderDefault(e),t[0]=e,t[1]=a);let s=a,c;t[2]!==s||t[3]!==n||t[4]!==r?(c=!n&&!r?(0,m.jsx)(y,{children:s}):s,t[2]=s,t[3]=n,t[4]=r,t[5]=c):c=t[5];let l;return t[6]===c?l=t[7]:(l=(0,m.jsx)(d,{children:(0,m.jsx)(v,{children:c})}),t[6]=c,t[7]=l),l}export{b as CommentsStudioLayout};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Jt as n,Qf as r,S as i,np as a,or as o,xr as s}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as c,t as l}from"./jsx-runtime-BpzPEenQ.js";import{t as u}from"./compiler-runtime-sKsOXjDo.js";import{t as d}from"./AddonDatasetProvider-CF_RtUZo-BdePhlKm.js";var f=e(c(),1),p=u(),m=l(),h=`sanityStudio:comments:inspector:onboarding:dismissed:v1`,g=e=>{try{window.localStorage.setItem(h,JSON.stringify(e))}catch{}},_=()=>{try{let e=window.localStorage.getItem(h);return e?JSON.parse(e):!1}catch{return!1}};function v(e){let t=(0,p.c)(7),{children:n}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=_(),t[0]=i):i=t[0];let[a,o]=(0,f.useState)(i),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o(!0),g(!0)},t[1]=s):s=t[1];let c=s,l;t[2]===a?l=t[3]:(l={setDismissed:c,isDismissed:a},t[2]=a,t[3]=l);let u=l,d;return t[4]!==n||t[5]!==u?(d=(0,m.jsx)(r.Provider,{value:u,children:n}),t[4]=n,t[5]=u,t[6]=d):d=t[6],d}function y(e){let r=(0,p.c)(9),i;r[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={dataUri:`/journey/comments`,feature:`comments`},r[0]=i):i=r[0];let o=s(i),c=e.children,l;r[1]===o?l=r[2]:(l=n(o),r[1]=o,r[2]=l);let u;r[3]===l?u=r[4]:(u=(0,m.jsx)(t,{...l}),r[3]=l,r[4]=u);let d;return r[5]!==o||r[6]!==e.children||r[7]!==u?(d=(0,m.jsxs)(a.Provider,{value:o,children:[c,u]}),r[5]=o,r[6]=e.children,r[7]=u,r[8]=d):d=r[8],d}function b(e){let t=(0,p.c)(8),{enabled:n,isLoading:r}=o(i.studioComments),a;t[0]===e?a=t[1]:(a=e.renderDefault(e),t[0]=e,t[1]=a);let s=a,c;t[2]!==s||t[3]!==n||t[4]!==r?(c=!n&&!r?(0,m.jsx)(y,{children:s}):s,t[2]=s,t[3]=n,t[4]=r,t[5]=c):c=t[5];let l;return t[6]===c?l=t[7]:(l=(0,m.jsx)(d,{children:(0,m.jsx)(v,{children:c})}),t[6]=c,t[7]=l),l}export{b as CommentsStudioLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,$f as n,Jt as r,S as i,or as a,rp as o,xr as s}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as c,t as l}from"./jsx-runtime-BpzPEenQ.js";import{t as u}from"./compiler-runtime-sKsOXjDo.js";import{t as d}from"./AddonDatasetProvider-CF_RtUZo-BoMlopck.js";var f=e(c(),1),p=u(),m=l(),h=`sanityStudio:comments:inspector:onboarding:dismissed:v1`,g=e=>{try{window.localStorage.setItem(h,JSON.stringify(e))}catch{}},_=()=>{try{let e=window.localStorage.getItem(h);return e?JSON.parse(e):!1}catch{return!1}};function v(e){let t=(0,p.c)(7),{children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=_(),t[0]=i):i=t[0];let[a,o]=(0,f.useState)(i),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o(!0),g(!0)},t[1]=s):s=t[1];let c=s,l;t[2]===a?l=t[3]:(l={setDismissed:c,isDismissed:a},t[2]=a,t[3]=l);let u=l,d;return t[4]!==r||t[5]!==u?(d=(0,m.jsx)(n.Provider,{value:u,children:r}),t[4]=r,t[5]=u,t[6]=d):d=t[6],d}function y(e){let n=(0,p.c)(9),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={dataUri:`/journey/comments`,feature:`comments`},n[0]=i):i=n[0];let a=s(i),c=e.children,l;n[1]===a?l=n[2]:(l=r(a),n[1]=a,n[2]=l);let u;n[3]===l?u=n[4]:(u=(0,m.jsx)(t,{...l}),n[3]=l,n[4]=u);let d;return n[5]!==a||n[6]!==e.children||n[7]!==u?(d=(0,m.jsxs)(o.Provider,{value:a,children:[c,u]}),n[5]=a,n[6]=e.children,n[7]=u,n[8]=d):d=n[8],d}function b(e){let t=(0,p.c)(8),{enabled:n,isLoading:r}=a(i.studioComments),o;t[0]===e?o=t[1]:(o=e.renderDefault(e),t[0]=e,t[1]=o);let s=o,c;t[2]!==s||t[3]!==n||t[4]!==r?(c=!n&&!r?(0,m.jsx)(y,{children:s}):s,t[2]=s,t[3]=n,t[4]=r,t[5]=c):c=t[5];let l;return t[6]===c?l=t[7]:(l=(0,m.jsx)(d,{children:(0,m.jsx)(v,{children:c})}),t[6]=c,t[7]=l),l}export{b as CommentsStudioLayout};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,$f as n,Jt as r,S as i,or as a,rp as o,xr as s}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as c,t as l}from"./jsx-runtime-BpzPEenQ.js";import{t as u}from"./compiler-runtime-sKsOXjDo.js";import{t as d}from"./AddonDatasetProvider-CF_RtUZo-BdePhlKm.js";var f=e(c(),1),p=u(),m=l(),h=`sanityStudio:comments:inspector:onboarding:dismissed:v1`,g=e=>{try{window.localStorage.setItem(h,JSON.stringify(e))}catch{}},_=()=>{try{let e=window.localStorage.getItem(h);return e?JSON.parse(e):!1}catch{return!1}};function v(e){let t=(0,p.c)(7),{children:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=_(),t[0]=i):i=t[0];let[a,o]=(0,f.useState)(i),s;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(s=()=>{o(!0),g(!0)},t[1]=s):s=t[1];let c=s,l;t[2]===a?l=t[3]:(l={setDismissed:c,isDismissed:a},t[2]=a,t[3]=l);let u=l,d;return t[4]!==r||t[5]!==u?(d=(0,m.jsx)(n.Provider,{value:u,children:r}),t[4]=r,t[5]=u,t[6]=d):d=t[6],d}function y(e){let n=(0,p.c)(9),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={dataUri:`/journey/comments`,feature:`comments`},n[0]=i):i=n[0];let a=s(i),c=e.children,l;n[1]===a?l=n[2]:(l=r(a),n[1]=a,n[2]=l);let u;n[3]===l?u=n[4]:(u=(0,m.jsx)(t,{...l}),n[3]=l,n[4]=u);let d;return n[5]!==a||n[6]!==e.children||n[7]!==u?(d=(0,m.jsxs)(o.Provider,{value:a,children:[c,u]}),n[5]=a,n[6]=e.children,n[7]=u,n[8]=d):d=n[8],d}function b(e){let t=(0,p.c)(8),{enabled:n,isLoading:r}=a(i.studioComments),o;t[0]===e?o=t[1]:(o=e.renderDefault(e),t[0]=e,t[1]=o);let s=o,c;t[2]!==s||t[3]!==n||t[4]!==r?(c=!n&&!r?(0,m.jsx)(y,{children:s}):s,t[2]=s,t[3]=n,t[4]=r,t[5]=c):c=t[5];let l;return t[6]===c?l=t[7]:(l=(0,m.jsx)(d,{children:(0,m.jsx)(v,{children:c})}),t[6]=c,t[7]=l),l}export{b as CommentsStudioLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Cr as e,Nd as t,Om as n,Sd as r,St as i,cl as a,ed as o,f as s,gn as c,im as l,lc as u,ot as d,tl as f,ua as p,wm as m}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{t as h}from"./jsx-runtime-BpzPEenQ.js";import{t as g}from"./compiler-runtime-sKsOXjDo.js";import{At as _,Q as v,X as y,ct as b,ht as x,rt as S,xt as C}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{V as w,vn as ee}from"./types--2f-avvL-DfAXA8nG.js";import{St as te}from"./dist-LVcARZxB.js";import{t as ne}from"./ErrorOutline-Cl-3_nRG.js";var T=g(),E=h(),D=new WeakMap;function O(e){let t=D.get(e);if(t)return t;let n=new Map(e.map(e=>[e.name,new Set(e.values.map(e=>e.value))]));return D.set(e,n),n}function k(e,t){let n=O(t),r=[];for(let[t,i]of Object.entries(e)){let e=n.get(t);if(!e){r.push({key:t,value:i,type:`unknown-key`});continue}e.has(i)||r.push({key:t,value:i,type:`unknown-value`})}return r}var A=/^[a-z][a-z0-9_-]{0,63}$/,re=[`_`,`$`];function j(e){let t=e.trim();if(t){for(let e of re)if(t.startsWith(e))return`reserved`;if(t.includes(`:`)||!A.test(t))return`invalid`}}function M(e){if(!e.trim())return`empty`;if(e.includes(`,`))return`invalid`}function N(e){return typeof e==`string`&&e.trim()||void 0}function ie(e,t){if(!Array.isArray(e))return console.warn(`[sanity] Dropped conditions entry "${t}": values must be an array`),[];let n=new Set,r=[];for(let i of e){if(typeof i==`string`){let e=i.trim();if(M(e)){console.warn(`[sanity] Dropped invalid conditions value "${i}" for key "${t}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions value "${e}" for key "${t}"`);continue}n.add(e),r.push({value:e,title:e});continue}if(!f(i)||typeof i.value!=`string`){console.warn(`[sanity] Dropped invalid conditions value for key "${t}"`);continue}let e=i.value.trim();if(M(e)){console.warn(`[sanity] Dropped invalid conditions value "${i.value}" for key "${t}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions value "${e}" for key "${t}"`);continue}n.add(e),r.push({value:e,title:N(i.title)??e,description:N(i.description)})}return r}function ae(e,t){if(!Array.isArray(e))throw Error(`Expected conditions to resolve to an array`);let n=new Set,r=[];for(let i of e){if(!f(i)||typeof i.name!=`string`){console.warn(`[sanity] Dropped invalid \`${t}\` entry: expected an object with a name string`);continue}let e=i.name.trim();if(j(e)){console.warn(`[sanity] Dropped invalid conditions key "${i.name}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions key "${e}"`);continue}let a=ie(i.values,e);if(a.length===0){console.warn(`[sanity] Dropped conditions entry "${e}": no valid values`);continue}n.add(e),r.push({name:e,title:N(i.title)??e,description:N(i.description),values:a})}return r}var P=3e4,F={mode:`mapped`,status:`loading`},I={status:`loading`},L=()=>void 0,R=new WeakMap,z=0,B=new WeakMap,V=0;function H(e){let t=R.get(e);return t===void 0&&(t=z++,R.set(e,t)),t}function U(e,t){return`${H(e)}:${t.workspaceName}:${t.context.projectId}:${t.context.dataset}:${t.context.type}`}function W(e,t){return`${H(e)}:${t.workspaceName}:${t.context.projectId}:${t.context.dataset}`}function G(e,t){let n=B.get(e);return n===void 0&&(n=V++,B.set(e,n)),`static:${n}:${t}`}function K(e){return e instanceof Error?e:Error(String(e))}function q(e){return Error(`Expected \`beta.variants.types.${e}.conditions\` to include at least one valid entry`)}function J(e,t){let n=ae(e,`beta.variants.types.${t}.conditions`);if(n.length===0)throw q(t);return{mode:`mapped`,status:`ready`,definitions:n}}function oe(e,t){let n=K(e);return console.error(`[sanity] Invalid \`beta.variants.types.${t}.conditions\``,n),{mode:`mapped`,status:`error`,error:n}}function se(e,t,n){let r=K(e);return console.error(`[sanity] Failed to resolve \`beta.variants.types.${n}.conditions\``,r),{mode:`mapped`,status:`error`,error:r,retry:t}}function ce(e){return Array.isArray(e)||typeof e==`function`}function Y(e){if(f(e)&&Object.keys(e).length===0)return i();if(!f(e))throw Error(`Expected \`beta.variants.types\` to resolve to an object, but received ${p(e)}`);for(let[t,n]of Object.entries(e)){if(!c(t))throw Error(`Expected \`beta.variants.types\` keys to be lowercase identifiers, but received ${JSON.stringify(t)}`);if(d(t),!f(n))throw Error(`Expected \`beta.variants.types.${t}\` to be an object, but received ${p(n)}`);if(n.conditions!==void 0&&!ce(n.conditions))throw Error(`Expected \`beta.variants.types.${t}.conditions\` to be an array or a function`)}return e}function le(e,t,r){return b(()=>Promise.resolve(e(t))).pipe(n({first:P}),x(e=>J(e,t.type)),S(e=>C(se(e,r,t.type))),l(F))}var ue=a(function(e,t){let{context:n}=t,r=new _,i=()=>r.next();return r.pipe(l(void 0),y(()=>le(e,n,i)),v({bufferSize:1,refCount:!1}))},U),de=a(function(e,t){try{return C(J(e,t))}catch(e){return C(oe(e,t))}},G);function fe(e,t,n){return e===void 0?C({mode:`freeform`}):Array.isArray(e)?de(e,t.type):typeof e==`function`?ue(e,{context:t,workspaceName:n}):C({mode:`mappe
Line truncated
|
||||
import{Cr as e,Nd as t,Om as n,Sd as r,St as i,cl as a,ed as o,f as s,gn as c,im as l,lc as u,ot as d,tl as f,ua as p,wm as m}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{t as h}from"./jsx-runtime-BpzPEenQ.js";import{t as g}from"./compiler-runtime-sKsOXjDo.js";import{At as _,Q as v,X as y,ct as b,ht as x,rt as S,xt as C}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{V as w,vn as ee}from"./types--2f-avvL-CUBrVRGR.js";import{St as te}from"./dist-LVcARZxB.js";import{t as ne}from"./ErrorOutline-Cl-3_nRG.js";var T=g(),E=h(),D=new WeakMap;function O(e){let t=D.get(e);if(t)return t;let n=new Map(e.map(e=>[e.name,new Set(e.values.map(e=>e.value))]));return D.set(e,n),n}function k(e,t){let n=O(t),r=[];for(let[t,i]of Object.entries(e)){let e=n.get(t);if(!e){r.push({key:t,value:i,type:`unknown-key`});continue}e.has(i)||r.push({key:t,value:i,type:`unknown-value`})}return r}var A=/^[a-z][a-z0-9_-]{0,63}$/,re=[`_`,`$`];function j(e){let t=e.trim();if(t){for(let e of re)if(t.startsWith(e))return`reserved`;if(t.includes(`:`)||!A.test(t))return`invalid`}}function M(e){if(!e.trim())return`empty`;if(e.includes(`,`))return`invalid`}function N(e){return typeof e==`string`&&e.trim()||void 0}function ie(e,t){if(!Array.isArray(e))return console.warn(`[sanity] Dropped conditions entry "${t}": values must be an array`),[];let n=new Set,r=[];for(let i of e){if(typeof i==`string`){let e=i.trim();if(M(e)){console.warn(`[sanity] Dropped invalid conditions value "${i}" for key "${t}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions value "${e}" for key "${t}"`);continue}n.add(e),r.push({value:e,title:e});continue}if(!f(i)||typeof i.value!=`string`){console.warn(`[sanity] Dropped invalid conditions value for key "${t}"`);continue}let e=i.value.trim();if(M(e)){console.warn(`[sanity] Dropped invalid conditions value "${i.value}" for key "${t}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions value "${e}" for key "${t}"`);continue}n.add(e),r.push({value:e,title:N(i.title)??e,description:N(i.description)})}return r}function ae(e,t){if(!Array.isArray(e))throw Error(`Expected conditions to resolve to an array`);let n=new Set,r=[];for(let i of e){if(!f(i)||typeof i.name!=`string`){console.warn(`[sanity] Dropped invalid \`${t}\` entry: expected an object with a name string`);continue}let e=i.name.trim();if(j(e)){console.warn(`[sanity] Dropped invalid conditions key "${i.name}"`);continue}if(n.has(e)){console.warn(`[sanity] Dropped duplicate conditions key "${e}"`);continue}let a=ie(i.values,e);if(a.length===0){console.warn(`[sanity] Dropped conditions entry "${e}": no valid values`);continue}n.add(e),r.push({name:e,title:N(i.title)??e,description:N(i.description),values:a})}return r}var P=3e4,F={mode:`mapped`,status:`loading`},I={status:`loading`},L=()=>void 0,R=new WeakMap,z=0,B=new WeakMap,V=0;function H(e){let t=R.get(e);return t===void 0&&(t=z++,R.set(e,t)),t}function U(e,t){return`${H(e)}:${t.workspaceName}:${t.context.projectId}:${t.context.dataset}:${t.context.type}`}function W(e,t){return`${H(e)}:${t.workspaceName}:${t.context.projectId}:${t.context.dataset}`}function G(e,t){let n=B.get(e);return n===void 0&&(n=V++,B.set(e,n)),`static:${n}:${t}`}function K(e){return e instanceof Error?e:Error(String(e))}function q(e){return Error(`Expected \`beta.variants.types.${e}.conditions\` to include at least one valid entry`)}function J(e,t){let n=ae(e,`beta.variants.types.${t}.conditions`);if(n.length===0)throw q(t);return{mode:`mapped`,status:`ready`,definitions:n}}function oe(e,t){let n=K(e);return console.error(`[sanity] Invalid \`beta.variants.types.${t}.conditions\``,n),{mode:`mapped`,status:`error`,error:n}}function se(e,t,n){let r=K(e);return console.error(`[sanity] Failed to resolve \`beta.variants.types.${n}.conditions\``,r),{mode:`mapped`,status:`error`,error:r,retry:t}}function ce(e){return Array.isArray(e)||typeof e==`function`}function Y(e){if(f(e)&&Object.keys(e).length===0)return i();if(!f(e))throw Error(`Expected \`beta.variants.types\` to resolve to an object, but received ${p(e)}`);for(let[t,n]of Object.entries(e)){if(!c(t))throw Error(`Expected \`beta.variants.types\` keys to be lowercase identifiers, but received ${JSON.stringify(t)}`);if(d(t),!f(n))throw Error(`Expected \`beta.variants.types.${t}\` to be an object, but received ${p(n)}`);if(n.conditions!==void 0&&!ce(n.conditions))throw Error(`Expected \`beta.variants.types.${t}.conditions\` to be an array or a function`)}return e}function le(e,t,r){return b(()=>Promise.resolve(e(t))).pipe(n({first:P}),x(e=>J(e,t.type)),S(e=>C(se(e,r,t.type))),l(F))}var ue=a(function(e,t){let{context:n}=t,r=new _,i=()=>r.next();return r.pipe(l(void 0),y(()=>le(e,n,i)),v({bufferSize:1,refCount:!1}))},U),de=a(function(e,t){try{return C(J(e,t))}catch(e){return C(oe(e,t))}},G);function fe(e,t,n){return e===void 0?C({mode:`freeform`}):Array.isArray(e)?de(e,t.type):typeof e==`function`?ue(e,{context:t,workspaceName:n}):C({mode:`mappe
Line truncated
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/rolldown-runtime-Dd_uD5pT.js","static/from-B8yXq1Hf.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/browser-Cic9HASE.js","static/refractor-CC48DwHi-B34huZKn.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/dist-BnDij-KK.js","static/AccessDenied-PrzSvkgv.js","static/Activity-BzZJr7I2.js","static/AddCircle-BZjvWs4R.js","static/AddComment-DzLuhpXr.js","static/AddDocument-Ca_v8JdZ.js","static/Add-CwQ5TpM8.js","static/AddUser-CTyeR_e2.js","static/Api-BBIspMzg.js","static/Archive-CNM-Azpz.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowLeft-x2OZCZTu.js","static/ArrowRight-D293IkFJ.js","static/ArrowTopRight-YjzSsA0g.js","static/sanity-GsYh3wpj.js","static/lib-D7dq6hfV.js","static/CommentsProvider-DHVaZIPI-DonUdARw.js","static/types--2f-avvL-DfAXA8nG.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/Edit-CAHlBqGT.js","static/Publish-BYF7r5nk.js","static/Unpublish-B0p_ZGt2.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/Documents-C8KrBFzU.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/HelpCircle-8HZ3whUD.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-DSZmlLZW.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-PgDcQUJg.js","static/helpers-D_aQC6Do-BbFlOJg3.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js","static/CommentsListItem-B4CoDHda-B92j42qR.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-CzUxgKBX.js","static/CommentsEnabledProvider-CEeES47b-BEr5KMWm.js","static/useComments-Bi1m7AzT-CGyuZP86.js","static/CommentsEnabledProvider-By3TCGFl-gLI34tgD.js","static/AddonDatasetProvider-CF_RtUZo-BoMlopck.js","static/lib-BFHl89nf.css","static/Select-D4xIAUnY.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/ThLarge-CjFCbJnr.js","static/DragHandle-CKP6vPDQ.js","static/BackLink-BBYTIbKc-C51ip22n.js","static/EarthAmericas-DLWVWv9X.js","static/ReadOnly-BkEx9qPu.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js","static/MasterDetail-DYBJvEeG.js","static/Asterisk-bl1DbUNA.js","static/BarChart-wkgYStw6.js","static/Basket-C_gPtep4.js","static/Bell-m62q1mbw.js","static/Bill-D-gubcZG.js","static/BlockElement-CQIVGSb1.js","static/Blockquote-CSHCZcSy.js","static/Bold-CGtaOUDj.js","static/Book-CpEqfE8C.js","static/BookmarkFilled-BiNAlCM9.js","static/Bookmark-BxXcEarc.js","static/Bottle-UZXqUr_W.js","static/BulbFilled-DF8TxkBW.js","static/BulbOutline-BN--Ec2H.js","static/Case-DLvh8XKv.js","static/ChartUpward-Bfx-_SAI.js","static/Circle-DkcW-8WT.js","static/ClipboardImage-DgF2YKLM.js","static/CloseCircle-COYZpajm.js","static/CodeBlock-PuZ4yflW.js","static/Code-COLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/rolldown-runtime-Dd_uD5pT.js","static/from-B8yXq1Hf.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/browser-Cic9HASE.js","static/refractor-CC48DwHi-B34huZKn.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/dist-BnDij-KK.js","static/AccessDenied-PrzSvkgv.js","static/Activity-BzZJr7I2.js","static/AddCircle-BZjvWs4R.js","static/AddComment-DzLuhpXr.js","static/AddDocument-Ca_v8JdZ.js","static/Add-CwQ5TpM8.js","static/AddUser-CTyeR_e2.js","static/Api-BBIspMzg.js","static/Archive-CNM-Azpz.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowLeft-x2OZCZTu.js","static/ArrowRight-D293IkFJ.js","static/ArrowTopRight-YjzSsA0g.js","static/sanity-DeX-YVGt.js","static/lib-CQcSfzr9.js","static/CommentsProvider-DHVaZIPI-2Crq30kn.js","static/types--2f-avvL-CUBrVRGR.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/Edit-CAHlBqGT.js","static/Publish-BYF7r5nk.js","static/Unpublish-B0p_ZGt2.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/Documents-C8KrBFzU.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/HelpCircle-8HZ3whUD.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-aKs6KPwC.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-N5vrKMLm.js","static/helpers-D_aQC6Do-Cc0nAXnJ.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js","static/CommentsListItem-B4CoDHda-DaXAEbir.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-B2twFKeQ.js","static/CommentsEnabledProvider-CEeES47b-AmQjnwX5.js","static/useComments-Bi1m7AzT-DcZcKqsq.js","static/CommentsEnabledProvider-By3TCGFl-C60crpzJ.js","static/AddonDatasetProvider-CF_RtUZo-BdePhlKm.js","static/lib-BFHl89nf.css","static/Select-D4xIAUnY.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/ThLarge-CjFCbJnr.js","static/DragHandle-CKP6vPDQ.js","static/BackLink-BBYTIbKc-DJkKvofp.js","static/EarthAmericas-DLWVWv9X.js","static/ReadOnly-BkEx9qPu.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js","static/MasterDetail-DYBJvEeG.js","static/Asterisk-bl1DbUNA.js","static/BarChart-wkgYStw6.js","static/Basket-C_gPtep4.js","static/Bell-m62q1mbw.js","static/Bill-D-gubcZG.js","static/BlockElement-CQIVGSb1.js","static/Blockquote-CSHCZcSy.js","static/Bold-CGtaOUDj.js","static/Book-CpEqfE8C.js","static/BookmarkFilled-BiNAlCM9.js","static/Bookmark-BxXcEarc.js","static/Bottle-UZXqUr_W.js","static/BulbFilled-DF8TxkBW.js","static/BulbOutline-BN--Ec2H.js","static/Case-DLvh8XKv.js","static/ChartUpward-Bfx-_SAI.js","static/Circle-DkcW-8WT.js","static/ClipboardImage-DgF2YKLM.js","static/CloseCircle-COYZpajm.js","static/CodeBlock-PuZ4yflW.js","static/Code-COLine truncated
|
||||
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";import{A as a,C as o,D as s,S as c,T as l,_ as u,a as d,b as f,c as p,d as m,f as h,h as g,k as _,l as v,m as y,n as b,o as x,p as S,t as C,u as w,x as T,y as E}from"./from-B8yXq1Hf.js";import{$ as D,A as O,At as k,B as A,C as j,Ct as M,D as N,Dt as P,E as F,Et as I,F as L,G as R,H as z,I as B,J as V,L as H,M as U,N as W,O as ee,Ot as te,P as ne,Q as re,R as ie,S as ae,St as oe,T as se,Tt as ce,U as le,V as ue,W as de,X as G,Y as fe,Z as pe,_ as me,_t as he,a as ge,at as _e,b as ve,bt as ye,c as be,ct as xe,d as Se,dt as Ce,et as we,f as Te,ft as Ee,g as De,gt as Oe,h as ke,ht as K,i as Ae,it as je,j as Me,k as Ne,l as Pe,lt as Fe,m as Ie,mt as Le,n as Re,nt as ze,o as Be,ot as Ve,p as He,q as Ue,r as We,rt as Ge,st as Ke,t as qe,tt as Je,u as Ye,ut as Xe,v as Ze,vt as Qe,w as $e,wt as et,x as tt,xt as nt,y as rt,yt as it,z as at}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{t as q}from"./preload-helper-DjzSQ1t3.js";import{n as ot,r as st,t as ct}from"./request-CYLhJzOA-R7VqCP01.js";import{$t as lt,A as ut,At as dt,B as ft,Bt as pt,C as mt,Ct as ht,D as gt,Dt as _t,E as vt,Et as yt,F as bt,Ft as xt,Gt as J,Ht as St,I as Ct,It as wt,Jt as Tt,Kt as Et,L as Dt,Lt as Ot,Mt as kt,Nt as At,O as jt,Pt as Mt,Q as Nt,Qt as Pt,R as Ft,Rt as It,S as Lt,St as Y,T as Rt,Tt as zt,U as Bt,Ut as Vt,V as Ht,Wt as Ut,Xt as Wt,Y as Gt,Yt as Kt,Zt as qt,_t as Jt,at as Yt,b as Xt,bt as Zt,c as Qt,ct as $t,d as en,et as tn,f as nn,ft as rn,g as an,gt as on,ht as sn,i as cn,it as ln,j as un,jt as dn,kt as fn,l as pn,lt as mn,m as hn,mt as gn,n as eee,nt as _n,ot as tee,p as vn,qt as yn,r as bn,rt as xn,s as Sn,st as Cn,t as X,tt as wn,u as Tn,ut as nee,v as En,vt as Dn,w as On,wt as kn,xt as An,y as jn,yt as Mn,z as Nn,zt as Pn}from"./dist-LVcARZxB.js";import{a as Fn,c as In,d as Ln,l as Rn,o as zn,r as Bn,s as Vn,t as Hn,u as Un}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Wn}from"./Spinner-Dk8hTAm3.js";import{t as Gn}from"./Close-B_ZEgT1V.js";import{t as Kn}from"./WarningOutline-DOBjmorn.js";import{c as qn,d as Jn,r as Yn,t as Xn}from"./request-CYLhJzOA-4VlvBNTk.js";import{t as Zn}from"./ChevronDown-BpYUc-AP.js";import{t as Qn}from"./ToggleArrowRight-Ds3XaLpQ.js";import{t as $n}from"./Checkmark-OT7tsNpL.js";import{t as er}from"./ChevronRight-Cf6GkXSa.js";import{t as tr}from"./Document-0Zpczu4q.js";import{t as nr}from"./Bolt-CkliNuRS.js";import{t as rr}from"./Clock-ClG7Ty9T.js";import{t as ir}from"./Dot-D4h2WemU.js";import{t as ar}from"./Calendar-DCYqUUNo.js";import{t as or}from"./Search-QbUIQb6W.js";import{t as sr}from"./ChevronLeft-BzE8YX6u.js";import{t as cr}from"./EarthGlobe-Dqu4Dt_R.js";import{t as lr}from"./EllipsisHorizontal-BuWLk1Hy.js";import{t as ur}from"./InfoOutline-BLtnjxbN.js";import{t as dr}from"./ErrorOutline-Cl-3_nRG.js";import{t as fr}from"./EarthAmericas-DLWVWv9X.js";import{t as pr}from"./Image-BrMFkN0j.js";import{t as mr}from"./Trash-BxG6GrjH.js";import{t as hr}from"./ArrowLeft-x2OZCZTu.js";import{t as gr}from"./Edit-CAHlBqGT.js";import{t as _r}from"./AddCircle-BZjvWs4R.js";import{t as vr}from"./Circle-DkcW-8WT.js";import{t as yr}from"./Publish-BYF7r5nk.js";import{t as br}from"./Timeline-X-VaErdm.js";import{t as xr}from"./Unpublish-B0p_ZGt2.js";import{t as Sr}from"./ArrowDown-CM5h1Tfl.js";import{t as Cr}from"./ArrowRight-D293IkFJ.js";import{t as wr}from"./Revert-BmEXeO7H.js";import{t as Tr}from"./Copy-BTQgeMVP.js";import{t as Er}from"./Sync-B1MBhh7o.js";import{t as Dr}from"./AccessDenied-PrzSvkgv.js";import{t as Or}from"./Documents-C8KrBFzU.js";import{t as kr}from"./Download-DeIn0VAL.js";import{t as Ar}from"./ChevronUp-3VMiyA07.js";import{t as jr}from"./Link-Cl1VSeDJ.js";import{t as Mr}from"./Ulist-CYD_2mDY.js";import{t as Nr}from"./BinaryDocument-D1GQsa0h.js";import{t as Pr}from"./Upload-ChJKE2jO.js";import{t as Fr}from"./ReadOnly-BkEx9qPu.js";import{t as Ir}from"./Reset-CgCZnejz.js";import{t as Lr}from"./Launch-DuEs-KHJ.js";import{t as Rr}from"./Unknown-CEYtdaCK.js";import{t as zr}from"./Add-CwQ5TpM8.js";import{t as Br}from"./Lock-Ui2f2sVi.js";import{t as Vr}from"./EyeOpen-DOBSuUsK.js";import{t as Hr}from"./BulbOutline-BN--Ec2H.js";import{t as Ur}from"./HelpCircle-8HZ3whUD.js";import{t as Wr}from"./Collapse-B22lXxln.js";import{t as ree}from"./Expand-CQC9Ec3E.js";import{t as Gr}from"./BlockElement-CQIVGSb1.js";import{t as Kr}from"./Bold-CGtaOUDj.js";import{t as qr}from"./Code-COts8HnY.js";import{t as Jr}from"./InlineElement-BWl55c6a.js";import{t as Yr}from"./Italic-BmVn7uuk.js";import{t as Xr}from"./Olist-BBuinWyR.js";import{t as Zr}from"./Strikethrough-BszDIkmY.js";import{t as Qr}from"./Underline-BdG8-Er-.js";import{t as $r}from"./ThLarge-CjFCbJnr.js";import{t as ei}from"./Desktop-msdzf3th.js";import{t as ti}from"./Moon-NrRkSdh3.js";import{t as ni}from"./Sun-OgXegq7_.js";import{t as ri}from"./DragHandle-CKP6vPDQ.js";import{t as ii}from"./AddDocumenLine truncated
|
||||
- ${n.map(e=>e.error.message).join(`
|
||||
- `)}`);return e}),Qf=(0,Bf.make)(e=>{tp(e),np(e)}),$f=(0,Bf.make)(e=>{tp(e),ap(e)}),ep=(0,Bf.make)(e=>{tp(e),rp(e)});(0,Bf.make)(e=>{tp(e),ip(e)});function tp(e){if(e.length===0)throw Error(`Must be a non-empty string`);if(!Vf.test(e))throw Error(`Not a valid document ID: "${e}" \u2013 Must match the ${Vf} RegExp`);return e}function np(e){if(!e.startsWith(Wf))throw Error(`Not a valid draft ID: "${e}" \u2013 must start with "${Wf}"`);if(e.length===Wf.length)throw Error(`Not a valid draft ID: "${e}" \u2013 must have at least one character followed by "${Wf}"`);return e}function rp(e){if(!e.startsWith(Gf))throw Error(`Not a valid version ID: "${e}" \u2013 must start with "${Gf}"`);if(e.length===Gf.length)throw Error(`Not a valid version ID: "${e}" \u2013 must have at least one character followed by "${Gf}"`);let[,t,...n]=e.split(`.`);if(!t||!Vf.test(t))throw Error(`Not a valid version ID: "${e}" \u2013 VERSION must match the ${Vf} RegExp in versions.[VERSION].id`);if(n.length===0)throw Error(`Not a valid version ID: "${e}" \u2013 missing document ID in versions.bundle.[ID]`);if(t===`drafts`||t===`versions`)throw Error(`Not a valid version ID: "${e}" \u2013 invalid VERSION "${t}" in versions.[VERSION].id`);return e}function ip(e){if(!e.startsWith(Kf))throw Error(`Not a valid variant definition ID: "${e}" \u2013 must start with "${Kf}"`);if(e.length===Kf.length)throw Error(`Not a valid variant definition ID: "${e}" \u2013 must have at least one character followed by "${Kf}"`);return e}function ap(e){if(e.startsWith(Wf)||e.startsWith(Gf))throw Error(`Not a valid published ID: "${e}" \u2013 cannot start with "${Wf}" or "${Gf}"`);return e}function op(e,t){return up(e)===up(t)}function sp(e){return e.startsWith(Wf)}function cp(e){return!sp(e)&&!lp(e)}function lp(e){return e.startsWith(Gf)}function up(e){if(sp(e))return $f(e.slice(Wf.length));if(lp(e)){let[,,...t]=e.split(Uf);return $f(t.join(Uf))}return e}function dp(e){if(lp(e)){let[,,...t]=e.split(Uf);return Qf(Wf+t.join(Uf))}return cp(e)?Qf(Wf+e):e}function fp(e,t){return lp(e)||sp(e)?fp(up(e),t):ep(Gf+t+Uf+e)}function pp(e){let[,t]=e.split(Uf);return t}function mp({values:e,fallback:t,validator:n}){let r=0;function i(n=0){return e[r+n]??t}function a(e){let t=i();return typeof e<`u`&&n(e,t,r),r++,t}function o(){return r<e.length}return Object.defineProperty(i,"position",{get:()=>r}),Object.assign(i,{hasNext:o,consume:a})}function hp(e){return gp(mp({values:e,fallback:``,validator:(e,t,n)=>{if(typeof e==`string`&&e!==t)throw SyntaxError(`Expected \`${e}\` at position ${n}${t?` but got \`${t}\` instead`:``}`);if(e instanceof RegExp&&!e.test(t))throw SyntaxError(`Expected character \`${t}\` at position ${n} to match ${e}`)}}))}function gp(e){let t=[];for(;e.hasNext();){let n=e(),r=e.position;if(/\s/.test(n)){e.consume();continue}switch(n){case`"`:t.push(_p(e));continue;case`'`:t.push(xee(e));continue;case`[`:case`]`:case`,`:case`:`:case`?`:case`*`:e.consume(),t.push({type:n,position:r});continue;case`$`:case`@`:if(/[a-zA-Z_$]/.test(e(1))){t.push(See(e));continue}e.consume(),t.push({type:`This`,position:r});continue;case`.`:if(e.consume(),e()===`.`){e.consume(),t.push({type:`..`,position:r});continue}t.push({type:`.`,position:r});continue;case`=`:case`!`:case`>`:case`<`:t.push(wee(e));continue;default:if(/[0-9]/.test(n)||n===`-`&&/[0-9]/.test(e(1))){t.push(Tee(e));continue}if(/[a-zA-Z_$]/.test(n)){t.push(Cee(e));continue}throw Error(`Unexpected character '${n}' at position ${r}`)}}return t.push({type:`EOF`,position:e.position}),t}function _p(e){let t=e.position,n=``;for(e.consume(`"`);e.hasNext()&&e()!==`"`;)e()===`\\`?n+=vp(e):n+=e.consume();return e.consume(`"`),{type:`String`,value:n,position:t}}function xee(e){let t=e.position,n=``;for(e.consume(`'`);e.hasNext()&&e()!==`'`;)e()===`\\`?n+=vp(e):n+=e.consume();return e.consume(`'`),{type:`Identifier`,value:n,position:t}}function See(e){let t=e.position,n=``;for(n+=e.consume(/[a-zA-Z_$]/);/[a-zA-Z0-9_$]/.test(e());)n+=e.consume();return{type:`Identifier`,value:n,position:t}}function Cee(e){let t=e.position,n=``;for(n+=e.consume(/[a-zA-Z_$]/);/[a-zA-Z0-9_$]/.test(e());)n+=e.consume();return n===`null`?{type:`Null`,position:t}:n===`true`?{type:`Boolean`,value:!0,position:t}:n===`false`?{type:`Boolean`,value:!1,position:t}:{type:`Identifier`,value:n,position:t}}function vp(e){e.consume(`\\`);let t=e.consume();switch(t){case`"`:case`'`:case`\\`:case`/`:return t;case`b`:return`\b`;case`f`:return`\f`;case`n`:return`
|
||||
@@ -136,7 +136,7 @@ See: https://www.sanity.io/docs/scheduled-publishing.
|
||||
`})]]}),OY({on:`insert.span`,guard:({snapshot:e})=>!BJ(e),actions:[({snapshot:e,event:t})=>[EY({type:`insert.block`,block:{_type:e.context.schema.block.name,children:[{_type:e.context.schema.span.name,text:``,marks:[]}]},placement:`auto`,select:`end`}),EY(t)]]}),OY({on:`insert.span`,guard:({snapshot:e,event:t})=>{let n=BJ(e);return{markDefs:t.annotations?.map(t=>({_type:t.name,_key:e.context.keyGenerator(),...t.value}))??[],focusTextBlock:n}},actions:[({snapshot:e,event:t},{markDefs:n,focusTextBlock:r})=>[...r?[EY({type:`block.set`,at:r.path,props:{markDefs:[...r.node.markDefs??[],...n]}})]:[],EY({type:`insert.child`,child:{_type:e.context.schema.span.name,text:t.text,marks:[...t.decorators??[],...n.map(e=>e._key)]}})]]}),OY({on:`insert.text`,guard:({snapshot:e})=>ZJ(e)&&LJ(e),actions:[({event:e})=>[EY({type:`move.forward`,distance:1}),EY(e)]]}),OY({on:`insert.text`,guard:({snapshot:e})=>QJ(e),actions:[({event:e})=>[EY({type:`delete`}),EY(e)]]}),OY({on:`insert.text`,guard:({snapshot:e})=>{if(e.context.selection)return!1;let t=hY(e);return t?{endPoint:SJ({context:e.context,block:t})}:!1},actions:[({event:e},{endPoint:t})=>[EY({type:`select`,at:{anchor:t,focus:t}}),EY(e)]]})],znt=UY({default:[{key:`ArrowLeft`,shift:!0,meta:!1,ctrl:!1,alt:!1}]}),Bnt=[OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>u0.backspace.guard(t.originEvent)&&ZJ(e)&&LJ(e),actions:[()=>[EY({type:`delete.backward`,unit:`character`})]]}),OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>u0.delete.guard(t.originEvent)&&ZJ(e)&&LJ(e),actions:[()=>[EY({type:`delete.forward`,unit:`character`})]]}),OY({on:`keyboard.keydown`,guard:({event:e})=>u0.deleteWord.backward.guard(e.originEvent),actions:[()=>[EY({type:`delete.backward`,unit:`word`})]]}),OY({on:`keyboard.keydown`,guard:({event:e})=>u0.deleteWord.forward.guard(e.originEvent),actions:[()=>[EY({type:`delete.forward`,unit:`word`})]]}),OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>u0.break.guard(t.originEvent)&&ZJ(e)&&LJ(e),actions:[()=>[EY({type:`insert.break`})]]}),OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>u0.break.guard(t.originEvent)&&QJ(e),actions:[()=>[EY({type:`insert.break`})]]}),OY({on:`keyboard.keydown`,guard:({event:e})=>u0.lineBreak.guard(e.originEvent),actions:[()=>[EY({type:`insert.soft break`})]]}),OY({on:`keyboard.keydown`,guard:({event:e})=>u0.history.undo.guard(e.originEvent),actions:[()=>[EY({type:`history.undo`})]]}),OY({on:`keyboard.keydown`,guard:({event:e})=>u0.history.redo.guard(e.originEvent),actions:[()=>[EY({type:`history.redo`})]]}),OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>{if(!u0.selectAll.guard(t.originEvent))return!1;let n=Zq(e,[],{edge:`start`}),r=Zq(e,[],{edge:`end`}),i=n?Gq(e,n.path):void 0,a=r?Gq(e,r.path):void 0;return!i||!a?!1:{anchor:CJ({context:e.context,block:i}),focus:SJ({context:e.context,block:a})}},actions:[(e,{anchor:t,focus:n})=>[EY({type:`select`,at:{anchor:t,focus:n}})]]}),OY({on:`keyboard.keydown`,guard:({snapshot:e,event:t})=>{if(!e.context.selection||!znt.guard(t.originEvent))return!1;let n=BJ(e);if(!n)return!1;let r=Bq(e,n.path,{direction:`previous`});if(!r)return!1;let i=Uq(e,r.path);return i&&e.context.selection.focus.offset===0&&CY(e.context,n.node)?{previousBlock:i,selection:e.context.selection}:!1},actions:[({snapshot:e},{previousBlock:t,selection:n})=>[EY({type:`select`,at:{anchor:n.anchor,focus:SJ({context:e.context,block:t})}})]]})],Vnt=[OY({on:`list item.add`,guard:({snapshot:e,event:t})=>{let n=sY(e).filter(n=>qq(e,n.path).lists.some(e=>e.name===t.listItem));return n.length!==0&&{selectedTextBlocks:n}},actions:[({event:e},{selectedTextBlocks:t})=>t.map(t=>EY({type:`block.set`,at:t.path,props:{level:t.node.level??1,listItem:e.listItem}}))]}),OY({on:`list item.remove`,guard:({snapshot:e})=>({selectedTextBlocks:sY(e)}),actions:[(e,{selectedTextBlocks:t})=>t.map(e=>EY({type:`block.unset`,at:e.path,props:[`level`,`listItem`]}))]}),OY({on:`list item.toggle`,guard:({snapshot:e,event:t})=>_Y(t.listItem)(e),actions:[({event:e})=>[EY({type:`list item.remove`,listItem:e.listItem})]]}),OY({on:`list item.toggle`,guard:({snapshot:e,event:t})=>!_Y(t.listItem)(e),actions:[({event:e})=>[EY({type:`list item.add`,listItem:e.listItem})]]})],Hnt=[OY({on:`move.block`,guard:({snapshot:e,event:t})=>{let n=_q(e,t.at),r=_q(e,t.to);if(!n||!r||EZ(n.path,r.path))return!1;let i=hq(e,yq(n.path)),a=i.findIndex(e=>e.node._key===n.node._key),o=i.findIndex(e=>e.node._key===r.node._key);return{originEntry:n,destinationEntry:r,movingDown:a!==-1&&o!==-1&&a<o}},actions:[(e,{originEntry:t,destinationEntry:n,movingDown:r})=>[EY({type:`unset`,at:t.path}),EY({type:`insert`,at:n.path,value:t.node,position:r?`after`:`before`})]]}),OY({on:`move.block up`,guard:({snapshot:e,event:t})=>{let n=Bq(e,t.at,{direction:`previous`});return n?{previousSibling:n,savedSelection:e.context.selection}:!1},actions:[({event:e},{previousSibling:t,savedSelection:n})=>{let r=[EY({type:`move.block`,at:e.at,to:t.path})];return n&&r.push(EY({type:`sLine truncated
|
||||
`));let a=`${zot}.${r}`;return{safeBaseId:a,safeTaggedId:`${a}${n?`.tag.${n}`:``}`,idWarning:i}}function Uot(e){if(!e)throw Error(`Parameter 'portabletextType' missing (required)`);return Wot(e,e.of??[])}function Wot(e,t){let n=t.find(Jot);if(!n)throw Error(`Block type is not defined in this schema (required)`);let r=n.fields?.find(e=>e.name===`children`);if(!r)throw Error(`Children field for block type found in schema (required)`);let i=r.type.of;if(!i)throw Error(`Valid types for block children not found in schema (required)`);let a=i.find(e=>e.name===`span`);if(!a)throw Error(`Span type not found in schema (required)`);let o=i.filter(e=>e.name!==`span`)||[],s=t.filter(e=>e.name!==n.name)||[];return{styles:Got(n),decorators:Kot(a),lists:qot(n),block:n,span:a,portableText:e,inlineObjects:o,blockObjects:s,annotations:a.annotations}}function Got(e){let t=e.fields?.find(e=>e.name===`style`);if(!t)throw Error(`A field with name 'style' is not defined in the block type (required).`);let n=t.type.options?.list&&t.type.options.list?.filter(e=>e.value);if(!n||n.length===0)throw Error(`The style fields need at least one style defined. I.e: {title: 'Normal', value: 'normal'}.`);return n}function Kot(e){return e.decorators}function qot(e){let t=e.fields?.find(e=>e.name===`listItem`);if(!t)throw Error(`A field with name 'listItem' is not defined in the block type (required).`);let n=t.type.options?.list&&t.type.options.list.filter(e=>e.value);if(!n)throw Error(`The list field need at least to be an empty array`);return n}function Jot(e){return e.type?Jot(e.type):e.name===`block`?e:null}function E4(e,t,n){return Wot(e,Yot(e,t,n)??e.of??[])}function Yot(e,t,n){let r=Qot(n);if(r<0)return;let i=e.of??[],a=t,o;for(let e=0;e<=r;e++){let t=n[e];if(typeof t==`string`)continue;let r;if(dc(t))r=a.find(e=>e._key===t._key);else if(typeof t==`number`)r=a.at(t);else return o;if(!r)return o;let s=i.find(e=>e.name===r._type);if(!s)return o;let c=$ot(s);if(!c)return o;let l=est(c.type)??[];Xot(l)&&(o=l),i=l;let u=r[c.name];a=Array.isArray(u)?u:[]}return o}function Xot(e){return e.some(e=>Zot(e).name===`block`)}function Zot(e){return e.type?Zot(e.type):e}function Qot(e){let t=-1,n=-1;for(let r=0;r<e.length;r++){let i=e[r];i!==void 0&&dc(i)&&(n=t,t=r)}return n}function $ot(e){let t=e.fields;if(t){for(let e of t)if(yc(e.type))return{name:e.name,type:e.type}}}function est(e){try{if(e.jsonType===`array`){let t=e.of;return Array.isArray(t)?t:void 0}}catch{}}function tst(e){let t=e.hasOwnProperty(`jsonType`),n=t?e:vst(e);return t&&n.jsonType!==`array`&&_st(n),nst(n)}function nst(e){if(!e)throw Error(`Parameter 'portableTextType' missing (required)`);let t=e.of?.find(O4);if(!t)throw Error(`Block type is not defined in this schema (required)`);let n=t.fields?.find(e=>e.name===`children`);if(!n)throw Error(`Children field for block type found in schema (required)`);let r=n.type.of;if(!r)throw Error(`Valid types for block children not found in schema (required)`);let i=r.find(e=>e.name===`span`);if(!i)throw Error(`Span type not found in schema (required)`);let a=r.filter(e=>e.name!==`span`)||[],o=e.of?.filter(e=>e.name!==t.name)||[],s=pst(t),c=mst(i),l=hst(t),u=i.annotations,d={work:[],ancestors:new Map,distinctAncestorCount:0,memo:new Map,activeAnonymousObjects:new Set,inFlight:new Map,rootBlockObjects:new Set(o)},f=[],p={block:{name:t.name},span:{name:i.name},styles:s.map(e=>({name:e.value,title:e.title,value:e.value})),lists:l.map(e=>({name:e.value,title:e.title,value:e.value})),decorators:c.map(e=>({name:e.value,title:e.title,value:e.value})),annotations:u.map(e=>{let t=D4(d,e.fields,void 0,e);return f.push(t.work),{name:e.name,title:e.title,fields:t.holes}}),blockObjects:o.map(e=>{let t=D4(d,e.fields,e.name);return f.push(t.work),{name:e.name,title:e.title,fields:t.holes}}),inlineObjects:a.map(e=>{let t=D4(d,e.fields,e.name,e);return f.push(t.work),{name:e.name,title:e.title,fields:t.holes}})};return cst(d,f),sst(d),p}function rst(e,t){let n=e.ancestors.get(t)??0;n===0&&e.distinctAncestorCount++,e.ancestors.set(t,n+1)}function ist(e,t){let n=e.ancestors.get(t)??0;if(n<=1){e.ancestors.delete(t),n===1&&e.distinctAncestorCount--;return}e.ancestors.set(t,n-1)}function ast(e,t){return(e.ancestors.get(t)??0)>0}function ost(e){return e.distinctAncestorCount+e.activeAnonymousObjects.size}function sst(e){let t=0;for(;e.work.length>0;)if(e.work.pop()(),++t>1e8)throw Error(`Portable Text schema conversion exceeded ${t} work items; the schema type graph likely contains a cycle the conversion cannot cut (in-flight ancestors: [${[...e.ancestors.keys()].join(`, `)}])`)}function D4(e,t,n,r){let i=[];return{holes:i,work:()=>{if(r!==void 0){let t=e.inFlight.get(r),n=ost(e);if(t!==void 0&&t.length>0&&n<=t[t.length-1])return;t===void 0?e.inFlight.set(r,[n]):t.push(n),e.work.push(()=>{let t=e.inFlight.get(r);t?.pop(),t!==void 0&&t.length===0&&e.inFlight.delete(r)})}n!==void 0&&(rst(e,n),e.work.push(()=>ist(e,n))),i.length=t.length;for(let n=t.length-1;n>=0;n--
Line truncated
|
||||
`){let t=e.hardBreak;return t?(0,Q.jsx)(t,{},n):`
|
||||
`}return t.text}function l(r,i,a,o){let s={value:r,isInline:o,index:i,renderNode:n};t(Qst(r._type),{nodeType:`block`,type:r._type});let c=e.unknownType;return(0,Q.jsx)(c,{...s},a)}function u(t,r,i,a){let o={value:t,isInline:a,index:r,renderNode:n},s=e.types[t._type];return s?(0,Q.jsx)(s,{...o},i):null}return n};function Cct(e){let{node:t,index:n,isInline:r,renderNode:i}=e,a=FEe(t).map((e,t)=>i({node:e,isInline:!0,index:t,renderNode:i}));return{_key:t._key||`block-${n}`,children:a,index:n,isInline:r,node:t}}function wct(){}var Tct=0;function L4(e){var t=++Tct;return aO(e)+t}var Ect=/^[a-zA-Z0-9_-]+$/;function Dct(e){if(!e)return null;if(e.startsWith(`:`)){let t=e.slice(1);if(!Ect.test(t)){let t=e.includes(`*`)?` Splats are not supported. Consider using child routes instead`:``;console.error(Error(`Warning: Param segments "${e}" includes invalid characters.${t}`))}return{type:`param`,name:t}}return{type:`dir`,name:e}}function Oct(e){let[t]=e.split(`?`);return{raw:e,segments:t.split(`/`).map(Dct).filter(Boolean)}}function kct(e){return Array.isArray(e)?e:e?[e]:[]}function Act(e){return SO(e)}function R4(e,t,n){return{type:`error`,node:e,missingKeys:t,unmappableStateKeys:n}}function z4(e,t,n,r){return{type:`ok`,node:e,matchedState:t,searchParams:n,child:r}}function jct(e,t){if(!t)return z4(e,{},[]);let{_searchParams:n=[],...r}=(e.scope?t[e.scope]:t)||{},i=e.route.segments.filter(e=>e.type===`param`).map(e=>e.name),a=Act(r)?Object.keys(r):[],o=bU(a,i),s=NO(i,o),c=NO(a,o);if(s.length>0)return R4(e,s,[]);let l=n.map(([e,t])=>[[e],t]),u=OO(r,o);if(c.length===0)return z4(e,u,l);let d=kct((typeof e.children==`function`?e.children(Act(r)?r:{}):e.children)||[]);if(c.length>0&&d.length===0)return R4(e,[],c);let f=OO(r,c),p=d.map(e=>jct(e,f)).find(e=>e.type===`ok`);return p?z4(e,u,l,p):R4(e,[],c)}function Mct(e,t){let n=[...String(e)],r=``;for(let e=0;e<n.length;e++){let i=n[e];t.includes(i)?r+=i:r+=encodeURIComponent(i)}return r}var B4=Ik(`state-router`);function Nct(e,t){B4(`Resolving path from state %o`,t);let n=jct(e,t);if(n.type===`error`){let e=n.unmappableStateKeys;if(e.length>0)throw Error(`Unable to find matching route for state. Could not map the following state key${e.length==1?``:`s`} to a valid url: ${e.map(Vct).join(`, `)}`);let t=n.missingKeys;throw Error(`Unable to find matching route for state. State object is missing the following key${t.length==1?``:`s`} defined in route: ${t.map(Vct).join(`, `)}`)}let{path:r,searchParams:i}=zct(n),a=i.length>0?Fct(i):``;return`/${r.join(`/`)}${a?`?${a}`:``}`}function Pct(e){return`[${e}]`}function Fct(e){return e.flatMap(([e,t])=>t===void 0?[]:[Rct(Ict(e)),Lct(t)].join(`=`)).join(`&`)}function Ict(e){let[t,...n]=e;return n.length>0?[t,...n.map(Pct)].join(``):t}function Lct(e){return Mct(e,`/`)}function Rct(e){return Mct(e,`[]`)}function zct(e){let t=e.matchedState,n=e.node.route.segments.map(n=>{if(n.type===`dir`)return n.name;let r=e.node.transform&&e.node.transform[n.name];return r?r.toPath(t[n.name]):t[n.name]}),r=e.child?zct(e.child):void 0,i=r?.searchParams?[...e.searchParams,...r.searchParams]:e.searchParams;return{searchParams:Bct(e.node,i),path:[...n||[],...r?.path||[]]}}function Bct(e,t){let n=e.scope;return n&&!e.__unsafe_disableScopedSearchParams?t.map(([e,t])=>[[n,...e],t]):t}function Vct(e){return`"${e}"`}function Hct(e){return e.map(([e,t])=>[Uct(e),t])}function Uct(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e.indexOf(`[`,n);if(i===-1){t.push(e.slice(n,e.length));break}if(r===1)throw Error(`Nested brackets not supported`);r=1,i>n&&(t.push(e.slice(n,i)),n=i);let a=e.indexOf(`]`,i);if(a===-1){if(r===1)throw Error(`Unclosed bracket`);break}r=0,t.push(e.slice(n+1,a)),n=a+1}return t}function Wct(e,t,n){let r=t.split(`/`).filter(Boolean),i=e.route.segments.length;if(r.length<i)return null;let a={};if(!e.route.segments.every((t,n)=>{if(t.type===`dir`)return t.name===r[n];let i=e.transform&&e.transform[t.name];return a[t.name]=i?i.toState(r[n]):r[n],!0}))return null;let o=r.slice(i),s=null,c=typeof e.children==`function`?kct(e.children(a)):e.children,l=Kct(e.scope,n);if(c.some(e=>{if(e){let t=e.scope?l.filter(([t])=>e.scope===t[0]):l;return s=Wct(e,o.join(`/`),t),s}}),o.length>0&&!s)return null;let u=l.flatMap(([e,t])=>e.length===1?[[e[0],t]]:[]),d={...a,...s===null?{}:s,...u.length>0?{_searchParams:u}:{}};return e.scope?{[e.scope]:d}:d}function Gct(e,t){B4(`resolving state from path %s`,t);let[n,r]=t.split(`?`),i=Wct(e,n,Hct(Array.from(new URLSearchParams(r).entries())));return B4(`resolved: %o`,i||null),i||null}function Kct(e,t){return e?t.map(([t,n])=>[t[0]===e?t.slice(1):t,n]):t}function qct(e){return Xct(e).replace(/\//g,`_`).replace(/\+/g,`-`).replace(/[=]+$/,``)}function Jct(e){return Qct(e.replace(/-/g,`+`).replace(/_/g,`/`))}function Yct(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Xct(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,Yct))}function Zct(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function
Line truncated
|
||||
`}return t.text}function l(r,i,a,o){let s={value:r,isInline:o,index:i,renderNode:n};t(Qst(r._type),{nodeType:`block`,type:r._type});let c=e.unknownType;return(0,Q.jsx)(c,{...s},a)}function u(t,r,i,a){let o={value:t,isInline:a,index:r,renderNode:n},s=e.types[t._type];return s?(0,Q.jsx)(s,{...o},i):null}return n};function Cct(e){let{node:t,index:n,isInline:r,renderNode:i}=e,a=FEe(t).map((e,t)=>i({node:e,isInline:!0,index:t,renderNode:i}));return{_key:t._key||`block-${n}`,children:a,index:n,isInline:r,node:t}}function wct(){}var Tct=0;function L4(e){var t=++Tct;return aO(e)+t}var Ect=/^[a-zA-Z0-9_-]+$/;function Dct(e){if(!e)return null;if(e.startsWith(`:`)){let t=e.slice(1);if(!Ect.test(t)){let t=e.includes(`*`)?` Splats are not supported. Consider using child routes instead`:``;console.error(Error(`Warning: Param segments "${e}" includes invalid characters.${t}`))}return{type:`param`,name:t}}return{type:`dir`,name:e}}function Oct(e){let[t]=e.split(`?`);return{raw:e,segments:t.split(`/`).map(Dct).filter(Boolean)}}function kct(e){return Array.isArray(e)?e:e?[e]:[]}function Act(e){return SO(e)}function R4(e,t,n){return{type:`error`,node:e,missingKeys:t,unmappableStateKeys:n}}function z4(e,t,n,r){return{type:`ok`,node:e,matchedState:t,searchParams:n,child:r}}function jct(e,t){if(!t)return z4(e,{},[]);let{_searchParams:n=[],...r}=(e.scope?t[e.scope]:t)||{},i=e.route.segments.filter(e=>e.type===`param`).map(e=>e.name),a=Act(r)?Object.keys(r):[],o=bU(a,i),s=NO(i,o),c=NO(a,o);if(s.length>0)return R4(e,s,[]);let l=n.map(([e,t])=>[[e],t]),u=OO(r,o);if(c.length===0)return z4(e,u,l);let d=kct((typeof e.children==`function`?e.children(Act(r)?r:{}):e.children)||[]);if(c.length>0&&d.length===0)return R4(e,[],c);let f=OO(r,c),p=d.map(e=>jct(e,f)).find(e=>e.type===`ok`);return p?z4(e,u,l,p):R4(e,[],c)}function Mct(e,t){let n=[...String(e)],r=``;for(let e=0;e<n.length;e++){let i=n[e];t.includes(i)?r+=i:r+=encodeURIComponent(i)}return r}var B4=Ik(`state-router`);function Nct(e,t){B4(`Resolving path from state %o`,t);let n=jct(e,t);if(n.type===`error`){let e=n.unmappableStateKeys;if(e.length>0)throw Error(`Unable to find matching route for state. Could not map the following state key${e.length==1?``:`s`} to a valid url: ${e.map(Vct).join(`, `)}`);let t=n.missingKeys;throw Error(`Unable to find matching route for state. State object is missing the following key${t.length==1?``:`s`} defined in route: ${t.map(Vct).join(`, `)}`)}let{path:r,searchParams:i}=zct(n),a=i.length>0?Fct(i):``;return`/${r.join(`/`)}${a?`?${a}`:``}`}function Pct(e){return`[${e}]`}function Fct(e){return e.flatMap(([e,t])=>t===void 0?[]:[Rct(Ict(e)),Lct(t)].join(`=`)).join(`&`)}function Ict(e){let[t,...n]=e;return n.length>0?[t,...n.map(Pct)].join(``):t}function Lct(e){return Mct(e,`/`)}function Rct(e){return Mct(e,`[]`)}function zct(e){let t=e.matchedState,n=e.node.route.segments.map(n=>{if(n.type===`dir`)return n.name;let r=e.node.transform&&e.node.transform[n.name];return r?r.toPath(t[n.name]):t[n.name]}),r=e.child?zct(e.child):void 0,i=r?.searchParams?[...e.searchParams,...r.searchParams]:e.searchParams;return{searchParams:Bct(e.node,i),path:[...n||[],...r?.path||[]]}}function Bct(e,t){let n=e.scope;return n&&!e.__unsafe_disableScopedSearchParams?t.map(([e,t])=>[[n,...e],t]):t}function Vct(e){return`"${e}"`}function Hct(e){return e.map(([e,t])=>[Uct(e),t])}function Uct(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e.indexOf(`[`,n);if(i===-1){t.push(e.slice(n,e.length));break}if(r===1)throw Error(`Nested brackets not supported`);r=1,i>n&&(t.push(e.slice(n,i)),n=i);let a=e.indexOf(`]`,i);if(a===-1){if(r===1)throw Error(`Unclosed bracket`);break}r=0,t.push(e.slice(n+1,a)),n=a+1}return t}function Wct(e,t,n){let r=t.split(`/`).filter(Boolean),i=e.route.segments.length;if(r.length<i)return null;let a={};if(!e.route.segments.every((t,n)=>{if(t.type===`dir`)return t.name===r[n];let i=e.transform&&e.transform[t.name];return a[t.name]=i?i.toState(r[n]):r[n],!0}))return null;let o=r.slice(i),s=null,c=typeof e.children==`function`?kct(e.children(a)):e.children,l=Kct(e.scope,n);if(c.some(e=>{if(e){let t=e.scope?l.filter(([t])=>e.scope===t[0]):l;return s=Wct(e,o.join(`/`),t),s}}),o.length>0&&!s)return null;let u=l.flatMap(([e,t])=>e.length===1?[[e[0],t]]:[]),d={...a,...s===null?{}:s,...u.length>0?{_searchParams:u}:{}};return e.scope?{[e.scope]:d}:d}function Gct(e,t){B4(`resolving state from path %s`,t);let[n,r]=t.split(`?`),i=Wct(e,n,Hct(Array.from(new URLSearchParams(r).entries())));return B4(`resolved: %o`,i||null),i||null}function Kct(e,t){return e?t.map(([t,n])=>[t[0]===e?t.slice(1):t,n]):t}function qct(e){return Xct(e).replace(/\//g,`_`).replace(/\+/g,`-`).replace(/[=]+$/,``)}function Jct(e){return Qct(e.replace(/-/g,`+`).replace(/_/g,`/`))}function Yct(e){return String.fromCharCode(parseInt(e.slice(1),16))}function Xct(e){return btoa(encodeURIComponent(e).replace(/%[0-9A-F]{2}/g,Yct))}function Zct(e){return`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`}function
Line truncated
|
||||
`)}function Jdt(e,t){return m3(e,t).map(e=>`children`in e&&Array.isArray(e.children)?e.children.map(e=>typeof e.text==`string`?e.text:``).join(``):``).join(` `).replace(/[\t\n]/g,` `)}function Ydt(e,t,n,r){return[{_key:t._key},e.rowsField,{_key:n._key},e.cellsField,{_key:r._key}]}function A3(e,t){return e?t.some(t=>iJ(t,e.anchor.path)||iJ(t,e.focus.path)):!1}function Xdt(e){let{isCell:t,isRow:n,isTable:r}=d3(e);return[OY({on:`custom.unset.row`,guard:({snapshot:i,event:a})=>{let o=Gq(i,a.at,{match:n});if(!o)return!1;let s=bq(i,o.path,{match:r});if(!s)return!1;let c=f3(e,s.node),l=c.findIndex(e=>e._key===o.node._key);if(l===-1)return!1;let u=c[l+1]??c[l-1];if(!u)return!1;let d=Gq(i,a.at,{match:t}),f=d?p3(e,o.node).findIndex(e=>e._key===d.node._key):0,p=Math.min(Math.max(f,0),p3(e,u).length-1),m=p3(e,u).at(p);if(!m)return!1;let h=[...s.path,e.rowsField,{_key:u._key},e.cellsField,{_key:m._key}];return{rowPath:o.path,columnIndex:p,neighborCellPath:h}},actions:[({snapshot:e},{rowPath:t,neighborCellPath:n})=>{let r=[EY({type:`unset`,at:t})];if(A3(e.context.selection,[t])){let t=Zq(e,n,{edge:`start`});if(t){let e={path:t.path,offset:0};r.push(EY({type:`select`,at:{anchor:e,focus:e}}))}}return r}]}),OY({on:`custom.unset.column`,guard:({snapshot:i,event:a})=>{let o=Gq(i,a.at,{match:t});if(!o)return!1;let s=bq(i,o.path,{match:n});if(!s)return!1;let c=p3(e,s.node).findIndex(e=>e._key===o.node._key);if(c===-1)return!1;let l=bq(i,s.path,{match:r});if(!l||p3(e,s.node).length<=1)return!1;let u=c+1<p3(e,s.node).length?c+1:c-1,d=p3(e,s.node).at(u);if(!d)return!1;let f=[...s.path,e.cellsField,{_key:d._key}];return{cellPaths:f3(e,l.node).flatMap(t=>{let n=p3(e,t).at(c);return n?[[...l.path,e.rowsField,{_key:t._key},e.cellsField,{_key:n._key}]]:[]}),neighborCellPath:f}},actions:[({snapshot:e},{cellPaths:t,neighborCellPath:n})=>{let r=t.map(e=>EY({type:`unset`,at:e}));if(A3(e.context.selection,t)){let t=Zq(e,n,{edge:`start`});if(t){let e={path:t.path,offset:0};r.push(EY({type:`select`,at:{anchor:e,focus:e}}))}}return r}]}),OY({on:`custom.unset.table`,guard:({snapshot:e,event:t})=>{let n=Gq(e,t.at,{match:r});if(!n)return!1;let i=Bq(e,n.path,{direction:`next`}),a=Bq(e,n.path,{direction:`previous`});return{tablePath:n.path,neighborBlockPath:i?.path??a?.path}},actions:[({snapshot:e},{tablePath:t,neighborBlockPath:n})=>{let r=[EY({type:`unset`,at:t})];if(n&&A3(e.context.selection,[t])){let t=Zq(e,n,{edge:`start`});if(t){let e={path:t.path,offset:0};r.push(EY({type:`select`,at:{anchor:e,focus:e}}))}}return r}]})]}function Zdt(e={}){let t=e.containers??{},n=j3(t.table??nft,$dt),r=j3(t.row??rft,eft),i=j3(t.cell??ift,tft);for(let[e,t]of[[`table`,n],[`row`,r]])t.of&&console.warn(`[@portabletext/plugin-table] The ${e} definition ('${t.type}') declares an \`of\`, which \`defineTable\` owns: the nesting is grafted as table.of → row.of → cell. The declared \`of\` is ignored. Cell-scoped node definitions belong on the cell definition's \`of\`.`);let a={tableType:n.type,rowsField:n.arrayField,rowType:r.type,cellsField:r.arrayField,cellType:i.type,valueField:i.arrayField};hdt(a);let o={...n,of:[{...r,of:[i]}]},s=Qdt(a);function c(){let e=(0,Z.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(I2,{nodes:[o]}),(0,Q.jsx)(F2,{behaviors:s})]}),e[0]=t):t=e[0],t}return{Plugin:c,behaviors:s,createBlock:({rows:e=3,columns:t=3,headerRows:n}={})=>({_type:a.tableType,...n===void 0?{}:{headerRows:n},[a.rowsField]:Array.from({length:e},()=>({_type:a.rowType,[a.cellsField]:Array.from({length:t},()=>({_type:a.cellType,[a.valueField]:[{_type:`block`,style:`normal`,markDefs:[],children:[{_type:`span`,text:``,marks:[]}]}]}))}))}),getTableSelection:e=>_3(e,a),...d3(a)}}function Qdt(e){return[...xdt(e),...Xdt(e),...Sdt(e),...vdt(e),...Ddt(e),...Wdt(e),...bdt(e),...Gdt(e),...Ldt(e)]}var $dt=({attributes:e,children:t})=>(0,Q.jsx)(`table`,{...e,children:(0,Q.jsx)(`tbody`,{children:t})}),eft=({attributes:e,children:t})=>(0,Q.jsx)(`tr`,{...e,children:t}),tft=({attributes:e,children:t})=>(0,Q.jsx)(`td`,{...e,children:t}),nft=P2({type:`table`,arrayField:`rows`}),rft=P2({type:`row`,arrayField:`cells`}),ift=P2({type:`cell`,arrayField:`value`});function j3(e,t){return e.render?e:{...e,render:t}}var M3=`var(--pt-plugin-table-accent)`,N3=`var(--pt-plugin-table-border)`,aft=`var(--pt-plugin-table-header-bg)`,P3=`var(--pt-plugin-table-header-weight, 600)`,F3=`var(--pt-plugin-table-selected-bg)`,I3=`var(--pt-plugin-table-radius)`;function oft(e,t,n){return!n||e<n.r0||e>n.r1||t<n.c0||t>n.c1?{top:!1,bottom:!1,left:!1,right:!1,inside:!1}:{top:e===n.r0,bottom:e===n.r1,left:t===n.c0,right:t===n.c1,inside:!0}}function sft(e,t,n,r){let i={};return e===0&&t===0&&(i.borderTopLeftRadius=I3),e===0&&t===r-1&&(i.borderTopRightRadius=I3),e===n-1&&t===0&&(i.borderBottomLeftRadius=I3),e===n-1&&t===r-1&&(i.borderBottomRightRadius=I3),i}function cft(e,t,n){return!!n&&t+1===n.c0&&e>=n.r0&&e<=n.r1}function lft(e,t,n){return!!n&&e+1===n.r0&Line truncated
|
||||
To pick up a draggable item, press the space bar.
|
||||
While dragging, use the arrow keys to move the item.
|
||||
@@ -158,7 +158,7 @@ See: https://www.sanity.io/docs/scheduled-publishing.
|
||||
size,
|
||||
metadata {dimensions}
|
||||
}
|
||||
`;function Avt(e){let t=(0,Z.c)(68),{ref:n,selectedAssets:r,assetType:i,dialogHeaderTitle:a,onClose:o,onSelect:s,accept:c}=e,l=i===void 0?`image`:i,u=pb(mb),[d]=(0,$.useState)(Mvt),f=(0,$.useRef)(0),{t:p}=ox(),m=KE(),h=(0,$.useRef)(void 0),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=[],t[0]=g):g=t[0];let[_,v]=(0,$.useState)(g),[y,b]=(0,$.useState)(!1),[x,S]=(0,$.useState)(!1),[C,w]=(0,$.useState)(!0),T=c&&c===`image/*`&&l===`image`,E;t[1]!==c||t[2]!==l||t[3]!==u||t[4]!==p||t[5]!==m?(E=e=>{let t=e*200,n=t+200,r=l===`image`,i=r?`asset.image-list`:`asset.file-list`,a=r?Dvt:`sanity.fileAsset`;w(!0),c!==void 0&&(h.current=u.observable.fetch(kvt(t,n,a,c),{},{tag:i}).subscribe({next:e=>{b(e.length<200),v(t=>t.concat(e)),w(!1)},error:t=>{console.error(t),w(!1),f.current=e>0?e-1:0,m.push({status:`error`,title:p(`asset-source.dialog.load-error`)})}}))},t[1]=c,t[2]=l,t[3]=u,t[4]=p,t[5]=m,t[6]=E):E=t[6];let D=E,O;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{v(t=>t.filter(t=>t._id!==e))},t[7]=O):O=t[7];let k=O,A;t[8]!==_||t[9]!==s?(A=e=>{_.find(t=>t._id===e)&&s([{kind:`assetDocumentId`,value:e}])},t[8]=_,t[9]=s,t[10]=A):A=t[10];let j=A,M;t[11]===j?M=t[12]:(M=e=>{e.preventDefault();let t=e.currentTarget.getAttribute(`data-id`);if(!t)throw Error(`Missing data-id attribute on item`);j(t)},t[11]=j,t[12]=M);let N=M,P;t[13]===j?P=t[14]:(P=e=>{if(e.key===`Enter`){e.preventDefault();let t=e.currentTarget.getAttribute(`data-id`);if(!t)throw Error(`Missing data-id attribute on item`);j(t)}},t[13]=j,t[14]=P);let F=P,I;t[15]===o?I=t[16]:(I=()=>{o&&o()},t[15]=o,t[16]=I);let L=I,R;t[17]===D?R=t[18]:(R=e=>{e.preventDefault(),D(f.current+=1)},t[17]=D,t[18]=R);let z=R,B,V;t[19]===D?(B=t[20],V=t[21]):(V=()=>(D(f.current),()=>{h.current&&h.current.unsubscribe()}),B=[D],t[19]=D,t[20]=B,t[21]=V),(0,$.useEffect)(V,B);let H,U;t[22]===C?(H=t[23],U=t[24]):(H=()=>{!C&&(!f.current||f.current===0)&&S(!0)},U=[C],t[22]=C,t[23]=H,t[24]=U),(0,$.useEffect)(H,U);let W;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(W={style:`narrow`},t[25]=W):W=t[25];let ee=hB(W),te;t[26]!==l||t[27]!==a||t[28]!==p?(te=a||p(`asset-source.dialog.default-title`,{context:l===`sanity.video`?`video`:l}),t[26]=l,t[27]=a,t[28]=p,t[29]=te):te=t[29];let ne;t[30]!==c||t[31]!==T||t[32]!==C||t[33]!==ee||t[34]!==p?(ne=!T&&!C&&c?.length>0&&(0,Q.jsx)(yt,{tone:`primary`,padding:3,border:!0,radius:2,children:(0,Q.jsxs)(bn,{gap:3,alignItems:`center`,children:[(0,Q.jsx)(Y,{size:1,children:(0,Q.jsx)(ur,{})}),(0,Q.jsx)(Y,{size:1,children:(0,Q.jsx)(_B,{t:p,i18nKey:`asset-source.dialog.accept-message`,values:{acceptTypes:ee.format(c.split(`,`).map(jvt))}})})]})}),t[30]=c,t[31]=T,t[32]=C,t[33]=ee,t[34]=p,t[35]=ne):ne=t[35];let re;t[36]!==l||t[37]!==_||t[38]!==N||t[39]!==F||t[40]!==C||t[41]!==r?(re=l===`file`&&(0,Q.jsx)(yvt,{assets:_,onDeleteFinished:k,onClick:N,onKeyPress:F,isLoading:C,selectedAssets:r}),t[36]=l,t[37]=_,t[38]=N,t[39]=F,t[40]=C,t[41]=r,t[42]=re):re=t[42];let ie;t[43]!==l||t[44]!==_||t[45]!==N||t[46]!==F||t[47]!==C||t[48]!==r?(ie=l===`image`&&(0,Q.jsx)(Evt,{assets:_,onDeleteFinished:k,onItemClick:N,onItemKeyPress:F,isLoading:C,selectedAssets:r}),t[43]=l,t[44]=_,t[45]=N,t[46]=F,t[47]=C,t[48]=r,t[49]=ie):ie=t[49];let ae;t[50]!==_.length||t[51]!==z||t[52]!==y||t[53]!==C||t[54]!==p?(ae=_.length>0&&!y&&(0,Q.jsx)(yt,{className:`_5hlm4s0`,tone:`default`,padding:4,children:(0,Q.jsx)(bn,{flexDirection:`column`,children:(0,Q.jsx)(dR,{type:`button`,icon:kr,loading:C,onClick:z,size:`large`,text:p(`asset-source.dialog.load-more`),tone:`primary`})})}),t[50]=_.length,t[51]=z,t[52]=y,t[53]=C,t[54]=p,t[55]=ae):ae=t[55];let oe;t[56]!==ne||t[57]!==re||t[58]!==ie||t[59]!==ae?(oe=(0,Q.jsxs)(Sn,{gap:5,children:[ne,re,ie,ae]}),t[56]=ne,t[57]=re,t[58]=ie,t[59]=ae,t[60]=oe):oe=t[60];let se;return t[61]!==d||t[62]!==L||t[63]!==x||t[64]!==n||t[65]!==te||t[66]!==oe?(se=(0,Q.jsx)(hR,{__unstable_autoFocus:x,header:te,id:d,onClickOutside:L,onClose:L,ref:n,width:2,children:oe}),t[61]=d,t[62]=L,t[63]=x,t[64]=n,t[65]=te,t[66]=oe,t[67]=se):se=t[67],se}function jvt(e){return e.trim()}function Mvt(){return`default-asset-source-${L4()}`}var Nvt=(0,$.memo)(Avt);function Pvt(e){let t=(0,Z.c)(3),{ref:n,action:r}=e;if((r===void 0?`select`:r)===`select`){let r;return t[0]!==e||t[1]!==n?(r=(0,Q.jsx)(Nvt,{...e,ref:n}),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}return null}var Fvt=(0,$.memo)(Pvt);function y8(e,t){return t.name===e||!!(t.type&&y8(e,t.type))}var b8=class extends Error{message;error;code;constructor(e,t,n){super(e),this.message=e,this.error=t,this.code=n}};function Ivt(e,t){return e.request({url:`/media-libraries?organizationId=${t}`,method:`GET`}).pipe(G(e=>Array.isArray(e.data)?C(e.data):et))}function Lvt(e,t){return e.request({url:`/media-libraries/${t}`,method:`GET`}).pipe(na(async e=>{if(e.organizationId)return e.organizationId;throw new b8(`Library ID not found`,`Library ID not found`,`ERROR_NO_LIBRARY_FOUND`)}))}function Rvt(e,t){return e.request({url:`/projects/${t}`,method:`GET`}).pipe(na(async
Line truncated
|
||||
`;function Avt(e){let t=(0,Z.c)(68),{ref:n,selectedAssets:r,assetType:i,dialogHeaderTitle:a,onClose:o,onSelect:s,accept:c}=e,l=i===void 0?`image`:i,u=pb(mb),[d]=(0,$.useState)(Mvt),f=(0,$.useRef)(0),{t:p}=ox(),m=KE(),h=(0,$.useRef)(void 0),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=[],t[0]=g):g=t[0];let[_,v]=(0,$.useState)(g),[y,b]=(0,$.useState)(!1),[x,S]=(0,$.useState)(!1),[C,w]=(0,$.useState)(!0),T=c&&c===`image/*`&&l===`image`,E;t[1]!==c||t[2]!==l||t[3]!==u||t[4]!==p||t[5]!==m?(E=e=>{let t=e*200,n=t+200,r=l===`image`,i=r?`asset.image-list`:`asset.file-list`,a=r?Dvt:`sanity.fileAsset`;w(!0),c!==void 0&&(h.current=u.observable.fetch(kvt(t,n,a,c),{},{tag:i}).subscribe({next:e=>{b(e.length<200),v(t=>t.concat(e)),w(!1)},error:t=>{console.error(t),w(!1),f.current=e>0?e-1:0,m.push({status:`error`,title:p(`asset-source.dialog.load-error`)})}}))},t[1]=c,t[2]=l,t[3]=u,t[4]=p,t[5]=m,t[6]=E):E=t[6];let D=E,O;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(O=e=>{v(t=>t.filter(t=>t._id!==e))},t[7]=O):O=t[7];let k=O,A;t[8]!==_||t[9]!==s?(A=e=>{_.find(t=>t._id===e)&&s([{kind:`assetDocumentId`,value:e}])},t[8]=_,t[9]=s,t[10]=A):A=t[10];let j=A,M;t[11]===j?M=t[12]:(M=e=>{e.preventDefault();let t=e.currentTarget.getAttribute(`data-id`);if(!t)throw Error(`Missing data-id attribute on item`);j(t)},t[11]=j,t[12]=M);let N=M,P;t[13]===j?P=t[14]:(P=e=>{if(e.key===`Enter`){e.preventDefault();let t=e.currentTarget.getAttribute(`data-id`);if(!t)throw Error(`Missing data-id attribute on item`);j(t)}},t[13]=j,t[14]=P);let F=P,I;t[15]===o?I=t[16]:(I=()=>{o&&o()},t[15]=o,t[16]=I);let L=I,R;t[17]===D?R=t[18]:(R=e=>{e.preventDefault(),D(f.current+=1)},t[17]=D,t[18]=R);let z=R,B,V;t[19]===D?(B=t[20],V=t[21]):(V=()=>(D(f.current),()=>{h.current&&h.current.unsubscribe()}),B=[D],t[19]=D,t[20]=B,t[21]=V),(0,$.useEffect)(V,B);let H,U;t[22]===C?(H=t[23],U=t[24]):(H=()=>{!C&&(!f.current||f.current===0)&&S(!0)},U=[C],t[22]=C,t[23]=H,t[24]=U),(0,$.useEffect)(H,U);let W;t[25]===Symbol.for(`react.memo_cache_sentinel`)?(W={style:`narrow`},t[25]=W):W=t[25];let ee=hB(W),te;t[26]!==l||t[27]!==a||t[28]!==p?(te=a||p(`asset-source.dialog.default-title`,{context:l===`sanity.video`?`video`:l}),t[26]=l,t[27]=a,t[28]=p,t[29]=te):te=t[29];let ne;t[30]!==c||t[31]!==T||t[32]!==C||t[33]!==ee||t[34]!==p?(ne=!T&&!C&&c?.length>0&&(0,Q.jsx)(yt,{tone:`primary`,padding:3,border:!0,radius:2,children:(0,Q.jsxs)(bn,{gap:3,alignItems:`center`,children:[(0,Q.jsx)(Y,{size:1,children:(0,Q.jsx)(ur,{})}),(0,Q.jsx)(Y,{size:1,children:(0,Q.jsx)(_B,{t:p,i18nKey:`asset-source.dialog.accept-message`,values:{acceptTypes:ee.format(c.split(`,`).map(jvt))}})})]})}),t[30]=c,t[31]=T,t[32]=C,t[33]=ee,t[34]=p,t[35]=ne):ne=t[35];let re;t[36]!==l||t[37]!==_||t[38]!==N||t[39]!==F||t[40]!==C||t[41]!==r?(re=l===`file`&&(0,Q.jsx)(yvt,{assets:_,onDeleteFinished:k,onClick:N,onKeyPress:F,isLoading:C,selectedAssets:r}),t[36]=l,t[37]=_,t[38]=N,t[39]=F,t[40]=C,t[41]=r,t[42]=re):re=t[42];let ie;t[43]!==l||t[44]!==_||t[45]!==N||t[46]!==F||t[47]!==C||t[48]!==r?(ie=l===`image`&&(0,Q.jsx)(Evt,{assets:_,onDeleteFinished:k,onItemClick:N,onItemKeyPress:F,isLoading:C,selectedAssets:r}),t[43]=l,t[44]=_,t[45]=N,t[46]=F,t[47]=C,t[48]=r,t[49]=ie):ie=t[49];let ae;t[50]!==_.length||t[51]!==z||t[52]!==y||t[53]!==C||t[54]!==p?(ae=_.length>0&&!y&&(0,Q.jsx)(yt,{className:`_5hlm4s0`,tone:`default`,padding:4,children:(0,Q.jsx)(bn,{flexDirection:`column`,children:(0,Q.jsx)(dR,{type:`button`,icon:kr,loading:C,onClick:z,size:`large`,text:p(`asset-source.dialog.load-more`),tone:`primary`})})}),t[50]=_.length,t[51]=z,t[52]=y,t[53]=C,t[54]=p,t[55]=ae):ae=t[55];let oe;t[56]!==ne||t[57]!==re||t[58]!==ie||t[59]!==ae?(oe=(0,Q.jsxs)(Sn,{gap:5,children:[ne,re,ie,ae]}),t[56]=ne,t[57]=re,t[58]=ie,t[59]=ae,t[60]=oe):oe=t[60];let se;return t[61]!==d||t[62]!==L||t[63]!==x||t[64]!==n||t[65]!==te||t[66]!==oe?(se=(0,Q.jsx)(hR,{__unstable_autoFocus:x,header:te,id:d,onClickOutside:L,onClose:L,ref:n,width:2,children:oe}),t[61]=d,t[62]=L,t[63]=x,t[64]=n,t[65]=te,t[66]=oe,t[67]=se):se=t[67],se}function jvt(e){return e.trim()}function Mvt(){return`default-asset-source-${L4()}`}var Nvt=(0,$.memo)(Avt);function Pvt(e){let t=(0,Z.c)(3),{ref:n,action:r}=e;if((r===void 0?`select`:r)===`select`){let r;return t[0]!==e||t[1]!==n?(r=(0,Q.jsx)(Nvt,{...e,ref:n}),t[0]=e,t[1]=n,t[2]=r):r=t[2],r}return null}var Fvt=(0,$.memo)(Pvt);function y8(e,t){return t.name===e||!!(t.type&&y8(e,t.type))}var b8=class extends Error{message;error;code;constructor(e,t,n){super(e),this.message=e,this.error=t,this.code=n}};function Ivt(e,t){return e.request({url:`/media-libraries?organizationId=${t}`,method:`GET`}).pipe(G(e=>Array.isArray(e.data)?C(e.data):et))}function Lvt(e,t){return e.request({url:`/media-libraries/${t}`,method:`GET`}).pipe(na(async e=>{if(e.organizationId)return e.organizationId;throw new b8(`Library ID not found`,`Library ID not found`,`ERROR_NO_LIBRARY_FOUND`)}))}function Rvt(e,t){return e.request({url:`/projects/${t}`,method:`GET`}).pipe(na(async
Line truncated
|
||||
`),E].join(`
|
||||
`),options:{tag:o,perspective:n,variant:r},params:O,sortOrder:C,compiledSortEntries:S}}function nSt({lastResult:e,sortOrder:t,compiledSortEntries:n}){if(!e)return;let r=t.some(({field:e})=>e===`_id`)?t:t.concat({field:`_id`,direction:`asc`});return r.reduce((t,i,a)=>[t,`(${r.slice(0,a).map((t,r)=>iSt(t,e,`==`,n?.[r])).concat(iSt(i,e,void 0,n?.[a])).filter(e=>e!==void 0).join(` && `)})`].filter(e=>e!==void 0).join(` || `),void 0)}var rSt={asc:`>`,desc:`<`};function iSt(e,t,n=rSt[e.direction],r){if(e.field===`_id`&&n===`==`)return;if(r){let e=aSt(t,r.projectionIndex);return[r.expression,n,JSON.stringify(e)].join(` `)}let i=t[e.field];return[e.field,n,JSON.stringify(i)].join(` `)}function aSt(e,t){let n=e[J8];if(Array.isArray(n))return n[t]}function oSt(e,t){return typeof e==`string`?{query:e,types:t}:e.types.length?e:{...e,types:t}}var sSt=(e,t,n)=>function(r,i={}){let a=oSt(r,e),o={...n,...i},s=typeof r==`string`?r:r.query,c=a.types.flatMap(e=>Sxt({schemaType:e,maxDepth:o.maxDepth||5})),l=c.reduce((e,t)=>Math.max(e,t.weight),0),u=e=>{let{query:n,params:s,options:c,sortOrder:u,compiledSortEntries:d}=tSt(a,r,o,{referenceIds:e,referenceWeight:l});return t.observable.fetch(n,s,c).pipe(K(e=>{let t=i.limit!==void 0&&e.length>i.limit,n=t?e.at(-2):e.at(-1);return{type:`groq2024`,hits:e.map(e=>({hit:e})).slice(0,i.limit??s.__limit-1),nextCursor:t?nSt({lastResult:n,sortOrder:u,compiledSortEntries:d}):void 0}}))},d=s?Oxt(c,s):void 0;return d===void 0?u():t.observable.fetch(d.query,d.params,{tag:o.tag,perspective:o.perspective,variant:o.variant}).pipe(Ge(()=>nt([])),Ee(e=>{let t=Array.from(new Set((e??[]).filter(e=>typeof e==`string`).map(e=>zn(e))));return u(t.length>0?t:void 0)}))},cSt=(e,t)=>{let{phrases:n,words:r}=pSt(e),[i,a]=dSt(n,t),[o,s]=fSt(r,t);return[i+o,[s,a].join(`, `)]},lSt=e=>typeof e==`string`?e:JSON.stringify(e);function uSt(e,t,n=[]){let r=pO(e,e=>e.typeName);return t.map((e,i)=>{let a=(r[e._type].paths||[])?.map((t,r)=>{let i=lSt(e[`w${r}`]);if(!i)return{path:t.path,score:0,why:`No match`};let[a,o]=cSt(n,i);return{path:t.path,score:a*t.weight,why:`${o} (*${t.weight})`}}),o=a.reduce((e,t)=>e+t.score,0);return{hit:e,resultIndex:t.length-i,score:o,stories:a}})}function dSt(e,t){let n=t.toLowerCase().trim(),r=0,i=0;return e.forEach(e=>{n.includes(e)&&(r+=e.length/n.length,i+=e.length)}),r===1?[1,`[Phrase] Exact match`]:[r/2,`[Phrase] Matched ${i} of ${n.length} characters`]}function fSt(e,t){let n=bO(Y4(Jk(X4(t)))),r=bU(e,n),i=Ilt(n,e),a=r.length/i.length;return a===1?[1,`[Word] Exact match`]:[a/2,`[Word] Matched ${r.length} of ${i.length} terms: [${r.join(`, `)}]`]}function pSt(e){let[t,n]=Lk(bO(e.map(X4)),e=>/^".*"$/.test(e));return{phrases:bO(t).map(X4).map(mSt),words:bO(n.map(X4))}}function mSt(e){return e.replace(/^"(.*)"$/,`$1`)}var hSt=new WeakMap,gSt={title:10,subtitle:5,description:1.5},_St={_id:{weight:1,type:`string`},_type:{weight:1,type:`string`}},vSt=[`reference`,`crossDatasetReference`,`slug`],Y8=e=>e?[e,...Y8(e.type)]:[],X8=e=>e?.jsonType===`array`&&e.of.some(e=>Y8(e).some(({name:e})=>e===`block`)),ySt=e=>e?e?.jsonType===`string`:!1,bSt=e=>Y8(e).some(({jsonType:e,name:t})=>e===`object`&&t===`slug`),xSt=e=>MN(e)&&`search`in e&&MN(e.search);function SSt(e){return e!==void 0&&`name`in e}function CSt(e,t){return bSt(e)?[t,`current`].join(`.`):t}function Z8(e,t,n){function r(e,i,a,o=[]){if(!e||a>t)return o;let s=Y8(e);if(ySt(e)||X8(e)){let t=n(e,i);return typeof t==`number`&&o.push({path:i,weight:t,type:X8(e)?`pt`:`string`}),o}if(bSt(e)){let t=n(e,i);return typeof t==`number`&&o.push({path:CSt(e,i),weight:t,type:X8(e)?`pt`:`string`}),o}let c=o;for(let e of s)if(e.jsonType===`object`&&e.fields?.length&&!vSt.includes(e.name))for(let t of e.fields)c=r(t.type,fN([i,t.name].filter(Boolean)),a+1,c);else if(e.jsonType===`array`&&e.of?.length)for(let t of e.of)c=r(t,`${i}[]`,a+1,c);return c}return SSt(e)?r(e,``,0).reduce((e,{path:t,weight:n,type:r})=>(e[t]={weight:n,type:r,path:t},e),{}):{}}var wSt=e=>{let t=Y8(e).map(e=>e.options).find(xSt);return typeof t?.search?.weight==`number`?t.search.weight:null},TSt=e=>Y8(e).some(e=>e.hidden)?0:null,ESt=e=>typeof(wSt(e)??TSt(e))==`number`?null:1,DSt=(e,t,n)=>{let r=e?.preview?.select;if(!r)return null;let i=Object.fromEntries(Object.entries(r).map(([e,t])=>[t.replace(/\.\d+/g,`[]`),e])),a=Z8(e,t,ESt),o=Object.fromEntries(Object.entries(a).map(([e,{type:t}])=>({path:e,type:t})).filter(({path:e})=>i[e]).map(({path:e,type:t})=>[e,{type:t,weight:gSt[i[e]]}]));return n?Object.fromEntries(Object.entries(i).map(([e,t])=>[e,{path:e,type:`string`,weight:gSt[t]}])):Z8(e,t,(e,t)=>{let n=o[CSt(e,t)];return n?n.weight:null})};function OSt({schemaType:e,maxDepth:t,isCrossDataset:n,processPaths:r=e=>e}){let i=hSt.get(e);if(i)return i;let a=Z8(e,t,wSt),o=Z8(e,t,TSt),s=Z8(e,t,ESt),c=DSt(e,t,n),l={..._St,...s,...o,...c,...a},u={typeName:SSt(e)?e.name:e.type,paths:r(Object.entries(l).map(([e,{type:t,weight:n}])=>({path:e,weight:n,...t===`pt`&&{mapWith:`pt::text`}})))};return hS
Line truncated
|
||||
`)})`:``,S=[...b,y,x].filter(Boolean).join(`, `),C=[`*[${m.join(` && `)}]`,`{${S}}`,`| order(${$xt(v)})`,`[0...$__limit]`].join(` `),w=[`findability-mvi:4`].concat(d||[]).map(e=>`// ${e}`).join(`
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Fs as t,Op as n,ed as r}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as i,t as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";var s=e(i(),1),c=o(),l=a(),u={data:null,error:null,loading:!1},d={data:null,error:null,loading:!0},f=e=>{let i=(0,c.c)(15),{children:a}=e,o;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],i[0]=o):o=i[0];let[f,p]=(0,s.useState)(o),{getMetadataStateForSlugs$:m}=t(),[_,v]=(0,s.useState)(null),y;i[1]!==m||i[2]!==f?(y=m(f.map(h)),i[1]=m,i[2]=f,i[3]=y):y=i[3];let b=r(y,void 0)??(f.length>0?d:u),x,S;i[4]===b.data?(x=i[5],S=i[6]):(x=()=>v(e=>b.data?{...e,...b.data}:e),S=[b.data],i[4]=b.data,i[5]=x,i[6]=S),(0,s.useEffect)(x,S);let C;i[7]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>{p(t=>[...t,...e.filter(g)])},i[7]=C):C=i[7];let w=C,T;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>{p(t=>{let{nextSlugs:n}=t.reduce((t,n)=>{let{removedSlugs:r,nextSlugs:i}=t;return e.includes(n)&&!r.includes(n)?{removedSlugs:[...r,n],nextSlugs:i}:{removedSlugs:r,nextSlugs:[...i,n]}},{removedSlugs:[],nextSlugs:[]});return n})},i[8]=T):T=i[8];let E=T,D;i[9]!==b||i[10]!==_?(D={addReleaseIdsToListener:w,removeReleaseIdsFromListener:E,state:{...b,data:_}},i[9]=b,i[10]=_,i[11]=D):D=i[11];let O=D,k;return i[12]!==a||i[13]!==O?(k=(0,l.jsx)(n.Provider,{value:O,children:a}),i[12]=a,i[13]=O,i[14]=k):k=i[14],k},p=e=>{let t=(0,c.c)(2),{children:r}=e;if((0,s.useContext)(n))return r;let i;return t[0]===r?i=t[1]:(i=(0,l.jsx)(f,{children:r}),t[0]=r,t[1]=i),i},m=()=>{let e=(0,c.c)(2),t=(0,s.useContext)(n),r;return e[0]===t?r=e[1]:(r=t||{state:u,addReleaseIdsToListener:_,removeReleaseIdsFromListener:v},e[0]=t,e[1]=r),r};function h(e){return e}function g(e){return typeof e==`string`}function _(){return null}function v(){return null}export{m as n,p as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Fs as t,Op as n,ed as r}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as i,t as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";var s=e(i(),1),c=o(),l=a(),u={data:null,error:null,loading:!1},d={data:null,error:null,loading:!0},f=e=>{let i=(0,c.c)(15),{children:a}=e,o;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=[],i[0]=o):o=i[0];let[f,p]=(0,s.useState)(o),{getMetadataStateForSlugs$:m}=t(),[_,v]=(0,s.useState)(null),y;i[1]!==m||i[2]!==f?(y=m(f.map(h)),i[1]=m,i[2]=f,i[3]=y):y=i[3];let b=r(y,void 0)??(f.length>0?d:u),x,S;i[4]===b.data?(x=i[5],S=i[6]):(x=()=>v(e=>b.data?{...e,...b.data}:e),S=[b.data],i[4]=b.data,i[5]=x,i[6]=S),(0,s.useEffect)(x,S);let C;i[7]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>{p(t=>[...t,...e.filter(g)])},i[7]=C):C=i[7];let w=C,T;i[8]===Symbol.for(`react.memo_cache_sentinel`)?(T=e=>{p(t=>{let{nextSlugs:n}=t.reduce((t,n)=>{let{removedSlugs:r,nextSlugs:i}=t;return e.includes(n)&&!r.includes(n)?{removedSlugs:[...r,n],nextSlugs:i}:{removedSlugs:r,nextSlugs:[...i,n]}},{removedSlugs:[],nextSlugs:[]});return n})},i[8]=T):T=i[8];let E=T,D;i[9]!==b||i[10]!==_?(D={addReleaseIdsToListener:w,removeReleaseIdsFromListener:E,state:{...b,data:_}},i[9]=b,i[10]=_,i[11]=D):D=i[11];let O=D,k;return i[12]!==a||i[13]!==O?(k=(0,l.jsx)(n.Provider,{value:O,children:a}),i[12]=a,i[13]=O,i[14]=k):k=i[14],k},p=e=>{let t=(0,c.c)(2),{children:r}=e;if((0,s.useContext)(n))return r;let i;return t[0]===r?i=t[1]:(i=(0,l.jsx)(f,{children:r}),t[0]=r,t[1]=i),i},m=()=>{let e=(0,c.c)(2),t=(0,s.useContext)(n),r;return e[0]===t?r=e[1]:(r=t||{state:u,addReleaseIdsToListener:_,removeReleaseIdsFromListener:v},e[0]=t,e[1]=r),r};function h(e){return e}function g(e){return typeof e==`string`}function _(){return null}function v(){return null}export{m as n,p as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Am as n,Cs as r,S as i,Sd as a,Sr as o,ec as s,jd as c,km as l,kp as u,or as d,os as f,sd as p,wl as m}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as h,t as g}from"./jsx-runtime-BpzPEenQ.js";import{t as _}from"./compiler-runtime-sKsOXjDo.js";import{Q as v,X as y,ht as b,ot as x,q as ee,rt as S,xt as C}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{$t as w}from"./types--2f-avvL-DfAXA8nG.js";import{St as T,s as E}from"./dist-LVcARZxB.js";import{t as D}from"./ReleasesMetadataProvider-D91ckc8k-CobfrRVi.js";var O=e(h(),1),k=_(),A=g();function te(e){let t=(0,k.c)(18),{onClose:n}=e,{t:r}=a(),i;t[0]===n?i=t[1]:(i=()=>{window.open(`https://www.sanity.io/contact/support`,`_blank`,`noopener,noreferrer`),n()},t[0]=n,t[1]=i);let o=i,c;t[2]===r?c=t[3]:(c=r(`releases.upsell.misconfiguration.header`),t[2]=r,t[3]=c);let l;t[4]===r?l=t[5]:(l=r(`releases.upsell.misconfiguration.contact-support`),t[4]=r,t[5]=l);let u;t[6]!==o||t[7]!==l?(u={confirmButton:{text:l,onClick:o,tone:`primary`}},t[6]=o,t[7]=l,t[8]=u):u=t[8];let d;t[9]===r?d=t[10]:(d=r(`releases.upsell.misconfiguration.message`),t[9]=r,t[10]=d);let f;t[11]===d?f=t[12]:(f=(0,A.jsx)(E,{gap:4,children:(0,A.jsx)(T,{children:d})}),t[11]=d,t[12]=f);let p;return t[13]!==n||t[14]!==c||t[15]!==u||t[16]!==f?(p=(0,A.jsx)(s,{id:`releases-misconfiguration-dialog`,header:c,width:1,onClose:n,footer:u,children:f}),t[13]=n,t[14]=c,t[15]=u,t[16]=f,t[17]=p):p=t[17],p}function j(e){return e.statusCode===403&&typeof e.response.body!=`string`&&`data`in e.response.body}function M(e,t){let{projectId:n}=e.config();return e.withConfig({apiVersion:`vX`}).observable.request({url:`projects/${n}/new-content-release-allowed`,tag:`new-content-release-allowed-${t}`}).pipe(S(e=>{if(console.error(e),j(e))return C(e.response.body);throw e}),b(({data:e})=>e))}var N=`orgActiveReleaseCount`;function P(e,t){let r=new n(null),i=new n(!1),a=new n(null);return{orgActiveReleaseCount$:r.pipe(y(n=>n===null||i.getValue()===!0||a.getValue()!==t?(i.next(!1),M(e,`orgActiveReleaseCount`).pipe(ee(()=>a.next(t)),b(e=>e.orgMeteredActiveReleaseCount),S(e=>{if(console.error(`Failed to fetch org release count`,e),!n)throw e;return C(n)}),y(e=>(r.next(e),x(6e4).subscribe(()=>{i.next(!0),a.next(null)}),C(e))))):C(n)))}}var ne=()=>{let e=(0,k.c)(7),t=m(),{data:n}=r(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={apiVersion:`v2025-02-19`},e[0]=i):i=e[0];let a=c(i),o=n?.length||0,s;e[1]===o?s=e[2]:(s={activeReleasesCount:o},e[1]=o,e[2]=s);let l=s,u;return e[3]!==a||e[4]!==l||e[5]!==t?(u=t.get({dependencies:[a,l],namespace:N})||P(a,l.activeReleasesCount),t.set({namespace:N,value:u,dependencies:[a,l]}),e[3]=a,e[4]=l,e[5]=t,e[6]=u):u=e[6],u},F=`ReleaseLimits`;function I(e){return{releaseLimits$:M(e,`releaseLimits`).pipe(b(e=>({datasetReleaseLimit:e.datasetReleaseLimit,orgActiveReleaseLimit:e.orgActiveReleaseLimit})),v(1),S(e=>(console.error(`Failed to fetch release limits`,e),C(null))))}}var re=()=>{let e=(0,k.c)(4),t=m(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={apiVersion:`v2025-02-19`},e[0]=n):n=e[0];let r=c(n),i;return e[1]!==r||e[2]!==t?(i=t.get({dependencies:[r],namespace:F})||I(r),t.set({namespace:F,value:i,dependencies:[r]}),e[1]=r,e[2]=t,e[3]=i):i=e[3],i},ie=class extends Error{details;constructor(){super(`StudioReleaseLimitExceeded`),this.name=`StudioReleaseLimitExceededError`,this.details={type:`releaseLimitExceededError`}}};function L(e){let n=(0,k.c)(47),[s,c]=(0,O.useState)(!1),{data:f}=r(),{enabled:m}=d(i.contentReleases),h;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={dataUri:`/journey/content-releases`,feature:`content-releases`},n[0]=h):h=n[0];let{upsellData:g,telemetryLogs:_,hasError:v}=o(h),y=p(),{t:b}=a(),x;n[1]===f?x=n[2]:(x=f.filter(ae),n[1]=f,n[2]=x);let S=x,C;bb0:{if(!m){C=`upsell`;break bb0}C=`default`}let w=C,T;n[3]===_?T=n[4]:(T=()=>{_.dialogPrimaryClicked()},n[3]=_,n[4]=T);let E=T,D;n[5]===_?D=n[6]:(D=()=>{_.dialogSecondaryClicked()},n[5]=_,n[6]=D);let j=D,M;n[7]===_?M=n[8]:(M=()=>{c(!1),_.dialogDismissed()},n[7]=_,n[8]=M);let N=M,[P,F]=(0,O.useState)(null),[I,L]=(0,O.useState)(!1),R;n[9]!==v||n[10]!==b||n[11]!==_||n[12]!==y?(R=e=>{let t=e===void 0?`navbar`:e;if(v){y.push({status:`error`,title:b(`errors.unable-to-perform-action`),closable:!0});return}c(!0),_.dialogViewed(t)},n[9]=v,n[10]=b,n[11]=_,n[12]=y,n[13]=R):R=n[13];let z=R,{releaseLimits$:B}=re(),{orgActiveReleaseCount$:V}=ne(),H;n[14]!==f.length||n[15]!==z||n[16]!==S.length||n[17]!==w||n[18]!==V||n[19]!==B?(H=async(e,t,n)=>{let r=t!==void 0&&t,i=()=>{if(z(),r)throw new ie;return!1};if(w===`upsell`)return n?.(!1),i();let a=await(async()=>{try{return await Promise.all([l(V),l(B.pipe(ee(e=>F(e?.orgActiveReleaseLimit||null))))])}catch(e){return console.error(`Error fetching release limits and org count for upsell:`,e),null}})();if(a===null)return n?.(!0),e();let[o,s]=a;if(s===null||o===null)return n?.(!0),e();let{orgActiveReleaseLimit:c,datasetReleLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Am as n,Cs as r,S as i,Sd as a,Sr as o,ec as s,jd as c,km as l,kp as u,or as d,os as f,sd as p,wl as m}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as h,t as g}from"./jsx-runtime-BpzPEenQ.js";import{t as _}from"./compiler-runtime-sKsOXjDo.js";import{Q as v,X as y,ht as b,ot as x,q as ee,rt as S,xt as C}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{$t as w}from"./types--2f-avvL-CUBrVRGR.js";import{St as T,s as E}from"./dist-LVcARZxB.js";import{t as D}from"./ReleasesMetadataProvider-D91ckc8k-CFm0QyTL.js";var O=e(h(),1),k=_(),A=g();function te(e){let t=(0,k.c)(18),{onClose:n}=e,{t:r}=a(),i;t[0]===n?i=t[1]:(i=()=>{window.open(`https://www.sanity.io/contact/support`,`_blank`,`noopener,noreferrer`),n()},t[0]=n,t[1]=i);let o=i,c;t[2]===r?c=t[3]:(c=r(`releases.upsell.misconfiguration.header`),t[2]=r,t[3]=c);let l;t[4]===r?l=t[5]:(l=r(`releases.upsell.misconfiguration.contact-support`),t[4]=r,t[5]=l);let u;t[6]!==o||t[7]!==l?(u={confirmButton:{text:l,onClick:o,tone:`primary`}},t[6]=o,t[7]=l,t[8]=u):u=t[8];let d;t[9]===r?d=t[10]:(d=r(`releases.upsell.misconfiguration.message`),t[9]=r,t[10]=d);let f;t[11]===d?f=t[12]:(f=(0,A.jsx)(E,{gap:4,children:(0,A.jsx)(T,{children:d})}),t[11]=d,t[12]=f);let p;return t[13]!==n||t[14]!==c||t[15]!==u||t[16]!==f?(p=(0,A.jsx)(s,{id:`releases-misconfiguration-dialog`,header:c,width:1,onClose:n,footer:u,children:f}),t[13]=n,t[14]=c,t[15]=u,t[16]=f,t[17]=p):p=t[17],p}function j(e){return e.statusCode===403&&typeof e.response.body!=`string`&&`data`in e.response.body}function M(e,t){let{projectId:n}=e.config();return e.withConfig({apiVersion:`vX`}).observable.request({url:`projects/${n}/new-content-release-allowed`,tag:`new-content-release-allowed-${t}`}).pipe(S(e=>{if(console.error(e),j(e))return C(e.response.body);throw e}),b(({data:e})=>e))}var N=`orgActiveReleaseCount`;function P(e,t){let r=new n(null),i=new n(!1),a=new n(null);return{orgActiveReleaseCount$:r.pipe(y(n=>n===null||i.getValue()===!0||a.getValue()!==t?(i.next(!1),M(e,`orgActiveReleaseCount`).pipe(ee(()=>a.next(t)),b(e=>e.orgMeteredActiveReleaseCount),S(e=>{if(console.error(`Failed to fetch org release count`,e),!n)throw e;return C(n)}),y(e=>(r.next(e),x(6e4).subscribe(()=>{i.next(!0),a.next(null)}),C(e))))):C(n)))}}var ne=()=>{let e=(0,k.c)(7),t=m(),{data:n}=r(),i;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={apiVersion:`v2025-02-19`},e[0]=i):i=e[0];let a=c(i),o=n?.length||0,s;e[1]===o?s=e[2]:(s={activeReleasesCount:o},e[1]=o,e[2]=s);let l=s,u;return e[3]!==a||e[4]!==l||e[5]!==t?(u=t.get({dependencies:[a,l],namespace:N})||P(a,l.activeReleasesCount),t.set({namespace:N,value:u,dependencies:[a,l]}),e[3]=a,e[4]=l,e[5]=t,e[6]=u):u=e[6],u},F=`ReleaseLimits`;function I(e){return{releaseLimits$:M(e,`releaseLimits`).pipe(b(e=>({datasetReleaseLimit:e.datasetReleaseLimit,orgActiveReleaseLimit:e.orgActiveReleaseLimit})),v(1),S(e=>(console.error(`Failed to fetch release limits`,e),C(null))))}}var re=()=>{let e=(0,k.c)(4),t=m(),n;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={apiVersion:`v2025-02-19`},e[0]=n):n=e[0];let r=c(n),i;return e[1]!==r||e[2]!==t?(i=t.get({dependencies:[r],namespace:F})||I(r),t.set({namespace:F,value:i,dependencies:[r]}),e[1]=r,e[2]=t,e[3]=i):i=e[3],i},ie=class extends Error{details;constructor(){super(`StudioReleaseLimitExceeded`),this.name=`StudioReleaseLimitExceededError`,this.details={type:`releaseLimitExceededError`}}};function L(e){let n=(0,k.c)(47),[s,c]=(0,O.useState)(!1),{data:f}=r(),{enabled:m}=d(i.contentReleases),h;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(h={dataUri:`/journey/content-releases`,feature:`content-releases`},n[0]=h):h=n[0];let{upsellData:g,telemetryLogs:_,hasError:v}=o(h),y=p(),{t:b}=a(),x;n[1]===f?x=n[2]:(x=f.filter(ae),n[1]=f,n[2]=x);let S=x,C;bb0:{if(!m){C=`upsell`;break bb0}C=`default`}let w=C,T;n[3]===_?T=n[4]:(T=()=>{_.dialogPrimaryClicked()},n[3]=_,n[4]=T);let E=T,D;n[5]===_?D=n[6]:(D=()=>{_.dialogSecondaryClicked()},n[5]=_,n[6]=D);let j=D,M;n[7]===_?M=n[8]:(M=()=>{c(!1),_.dialogDismissed()},n[7]=_,n[8]=M);let N=M,[P,F]=(0,O.useState)(null),[I,L]=(0,O.useState)(!1),R;n[9]!==v||n[10]!==b||n[11]!==_||n[12]!==y?(R=e=>{let t=e===void 0?`navbar`:e;if(v){y.push({status:`error`,title:b(`errors.unable-to-perform-action`),closable:!0});return}c(!0),_.dialogViewed(t)},n[9]=v,n[10]=b,n[11]=_,n[12]=y,n[13]=R):R=n[13];let z=R,{releaseLimits$:B}=re(),{orgActiveReleaseCount$:V}=ne(),H;n[14]!==f.length||n[15]!==z||n[16]!==S.length||n[17]!==w||n[18]!==V||n[19]!==B?(H=async(e,t,n)=>{let r=t!==void 0&&t,i=()=>{if(z(),r)throw new ie;return!1};if(w===`upsell`)return n?.(!1),i();let a=await(async()=>{try{return await Promise.all([l(V),l(B.pipe(ee(e=>F(e?.orgActiveReleaseLimit||null))))])}catch(e){return console.error(`Error fetching release limits and org count for upsell:`,e),null}})();if(a===null)return n?.(!0),e();let[o,s]=a;if(s===null||o===null)return n?.(!0),e();let{orgActiveReleaseLimit:c,datasetReleLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$o as t,Am as n,Ar as r,Bc as i,Co as a,Cs as o,Dc as s,El as c,Es as l,Fs as u,Ft as d,Ga as f,Gc as p,Hl as m,Ho as h,Ja as g,Jc as _,Ka as v,Ko as y,Lo as b,Md as x,Mo as S,Ms as C,Na as w,Nd as T,Np as E,Oo as D,Os as O,Pa as k,Pn as A,Po as j,Qa as M,Sa as N,Sd as P,Tl as F,To as I,Uo as L,Wa as R,Wc as z,Wo as ee,Wr as te,Xa as B,Xl as V,Yl as H,Ys as U,Zc as W,Zl as G,_ as K,_m as q,ad as ne,am as re,ca as ie,cc as ae,cd as J,cs as oe,da as se,dc as ce,ds as le,ec as ue,ed as de,es as fe,eu as pe,fa as me,fo as he,fs as ge,gd as _e,gl as ve,gm as ye,ha as be,im as xe,ir as Se,jd as Ce,jo as we,ju as Te,ko as Ee,la as De,lc as Oe,ld as ke,lo as Ae,ls as je,m as Me,nc as Ne,ns as Pe,nu as Fe,oc as Ie,os as Le,pc as Re,qa as ze,qc as Be,qr as Ve,rc as He,sc as Ue,sd as We,ts as Ge,wc as Ke,wm as qe,wo as Je,xs as Ye,zc as Xe}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as Ze,t as Qe}from"./jsx-runtime-BpzPEenQ.js";import{t as $e}from"./compiler-runtime-sKsOXjDo.js";import{t as et}from"./from-B8yXq1Hf.js";import{Q as tt,X as nt,Z as rt,at as it,ct as at,ft as ot,ht as st,it as ct,nt as lt,q as ut,rt as dt,xt as ft}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{$n as pt,A as mt,An as ht,B as gt,Bn as _t,Cn as vt,Dn as yt,E as bt,F as xt,Fn as St,Gn as Ct,H as wt,Hn as Tt,Jn as Et,Kn as Dt,Ln as Ot,Lt as kt,Mt as At,N as jt,On as Mt,Qn as Nt,Qt as Pt,Rn as Ft,Tn as It,Un as Lt,V as Rt,Vn as zt,Wn as Bt,Xn as Vt,Xt as Ht,Yn as Ut,Zn as Wt,_r as Gt,ar as Kt,ct as qt,er as Jt,ir as Yt,j as Xt,jn as Zt,kn as Qt,lt as $t,or as en,ot as tn,qn as nn,rn,st as an,tr as on,ut as sn,y as cn}from"./types--2f-avvL-DfAXA8nG.js";import{A as ln,B as un,Dt as dn,Et as fn,Ft as pn,Gt as mn,O as hn,Pt as gn,R as _n,S as vn,St as Y,T as yn,bt as bn,c as xn,ct as Sn,et as Cn,f as wn,m as Tn,n as En,r as X,s as Dn,t as On,x as kn,yt as An}from"./dist-LVcARZxB.js";import{c as jn,o as Mn,s as Nn}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Pn}from"./Close-B_ZEgT1V.js";import{t as Fn}from"./WarningOutline-DOBjmorn.js";import{t as In}from"./ChevronDown-BpYUc-AP.js";import{t as Ln}from"./ChevronRight-Cf6GkXSa.js";import{t as Rn}from"./Clock-ClG7Ty9T.js";import{t as zn}from"./Calendar-DCYqUUNo.js";import{t as Bn}from"./EarthGlobe-Dqu4Dt_R.js";import{t as Vn}from"./EllipsisHorizontal-BuWLk1Hy.js";import{t as Hn}from"./InfoOutline-BLtnjxbN.js";import{t as Un}from"./ErrorOutline-Cl-3_nRG.js";import{t as Wn}from"./Trash-BxG6GrjH.js";import{t as Gn}from"./Edit-CAHlBqGT.js";import{t as Kn}from"./Publish-BYF7r5nk.js";import{t as qn}from"./Unpublish-B0p_ZGt2.js";import{t as Jn}from"./Copy-BTQgeMVP.js";import{t as Yn}from"./Documents-C8KrBFzU.js";import{t as Xn}from"./Link-Cl1VSeDJ.js";import{t as Zn}from"./Add-CwQ5TpM8.js";import{t as Qn}from"./Lock-Ui2f2sVi.js";import{a as $n,i as er,r as tr}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js";import{t as nr}from"./CheckmarkCircle-B6SBY4QE.js";import{t as rr}from"./Share-D41CqXzI.js";import{t as ir}from"./Target-6sSmw-4o.js";import{t as ar}from"./Restore-DhBjjWCd.js";import{ArchiveIcon as or}from"./Archive-CNM-Azpz.js";import{CloseCircleIcon as sr}from"./CloseCircle-COYZpajm.js";import{FilterIcon as cr}from"./Filter-DVm6AUFi.js";import{PinIcon as lr}from"./Pin-D-D-SwHN.js";import{PinFilledIcon as ur}from"./PinFilled-pZaJsWPB.js";import{TextIcon as dr}from"./Text-CVWqn-j_.js";import{UnarchiveIcon as fr}from"./Unarchive-CobryITl.js";import{UserIcon as pr}from"./User-BbvVoXNB.js";import{n as mr}from"./ReleasesMetadataProvider-D91ckc8k-CobfrRVi.js";import{a as hr,c as gr,i as _r,l as vr,n as yr,o as br,r as xr,t as Sr,u as Cr}from"./searchDocumentRelease-CGTwubjG-BxLZ0LzN.js";import{n as wr,t as Tr}from"./CalendarFilter-Xl97nJYN-VpCCR-Os.js";var Z=e(Ze(),1),Q=$e(),$=Qe(),Er=`group`,Dr=`releaseNotFound`,Or=`date`,kr=`view`;function Ar(e){return new URLSearchParams(e.state._searchParams).get(Dr)===`true`}var jr=e=>()=>{let t=new URLSearchParams(e.state._searchParams).get(Or);return t?new Date(t):void 0},Mr=e=>()=>{let t=new URLSearchParams(e.state._searchParams).get(Er);return t===`archived`?`archived`:t===`paused`?`paused`:`active`},Nr=({router:e,isScheduledDraftsEnabled:t,isReleasesEnabled:n})=>()=>t?n?new URLSearchParams(e.state._searchParams).get(kr)===`drafts`?`drafts`:`releases`:`drafts`:`releases`,Pr=(e,t,n)=>{let r=[];return e?r.push([Or,H(e,`yyyy-MM-dd`)]):t!==`active`&&r.push([Er,t]),n===`drafts`&&r.push([kr,`drafts`]),r},Fr={events:[],nextCursor:``,loading:!0,error:null};function Ir(e,t){let n=[...e,...t].reduce((e,t)=>e.has(t.id)?e:e.set(t.id,t),new Map);return Array.from(n.values())}function Lr(e){return{...e,id:`${e.timestamp}-${e.type}`,origin:`events`}}function Rr({client:e,releaseId:t}){let r=new n({cursor:null,origin:`initial`}),i=({limit:n,nextCursor:r})=>{let i=new URLSearchParams({limit:n.toString()});return r&&i.append(`nextCursor`,r),e.observable.request({url:`/data/history/${e.config().dLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$o as t,Am as n,Ar as r,Bc as i,Co as a,Cs as o,Dc as s,El as c,Es as l,Fs as u,Ft as d,Ga as f,Gc as p,Hl as m,Ho as h,Ja as g,Jc as _,Ka as v,Ko as y,Lo as b,Md as x,Mo as S,Ms as C,Na as w,Nd as T,Np as E,Oo as D,Os as O,Pa as k,Pn as A,Po as j,Qa as M,Sa as N,Sd as P,Tl as F,To as I,Uo as L,Wa as R,Wc as z,Wo as ee,Wr as te,Xa as B,Xl as V,Yl as H,Ys as U,Zc as W,Zl as G,_ as K,_m as q,ad as ne,am as re,ca as ie,cc as ae,cd as J,cs as oe,da as se,dc as ce,ds as le,ec as ue,ed as de,es as fe,eu as pe,fa as me,fo as he,fs as ge,gd as _e,gl as ve,gm as ye,ha as be,im as xe,ir as Se,jd as Ce,jo as we,ju as Te,ko as Ee,la as De,lc as Oe,ld as ke,lo as Ae,ls as je,m as Me,nc as Ne,ns as Pe,nu as Fe,oc as Ie,os as Le,pc as Re,qa as ze,qc as Be,qr as Ve,rc as He,sc as Ue,sd as We,ts as Ge,wc as Ke,wm as qe,wo as Je,xs as Ye,zc as Xe}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as Ze,t as Qe}from"./jsx-runtime-BpzPEenQ.js";import{t as $e}from"./compiler-runtime-sKsOXjDo.js";import{t as et}from"./from-B8yXq1Hf.js";import{Q as tt,X as nt,Z as rt,at as it,ct as at,ft as ot,ht as st,it as ct,nt as lt,q as ut,rt as dt,xt as ft}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{$n as pt,A as mt,An as ht,B as gt,Bn as _t,Cn as vt,Dn as yt,E as bt,F as xt,Fn as St,Gn as Ct,H as wt,Hn as Tt,Jn as Et,Kn as Dt,Ln as Ot,Lt as kt,Mt as At,N as jt,On as Mt,Qn as Nt,Qt as Pt,Rn as Ft,Tn as It,Un as Lt,V as Rt,Vn as zt,Wn as Bt,Xn as Vt,Xt as Ht,Yn as Ut,Zn as Wt,_r as Gt,ar as Kt,ct as qt,er as Jt,ir as Yt,j as Xt,jn as Zt,kn as Qt,lt as $t,or as en,ot as tn,qn as nn,rn,st as an,tr as on,ut as sn,y as cn}from"./types--2f-avvL-CUBrVRGR.js";import{A as ln,B as un,Dt as dn,Et as fn,Ft as pn,Gt as mn,O as hn,Pt as gn,R as _n,S as vn,St as Y,T as yn,bt as bn,c as xn,ct as Sn,et as Cn,f as wn,m as Tn,n as En,r as X,s as Dn,t as On,x as kn,yt as An}from"./dist-LVcARZxB.js";import{c as jn,o as Mn,s as Nn}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Pn}from"./Close-B_ZEgT1V.js";import{t as Fn}from"./WarningOutline-DOBjmorn.js";import{t as In}from"./ChevronDown-BpYUc-AP.js";import{t as Ln}from"./ChevronRight-Cf6GkXSa.js";import{t as Rn}from"./Clock-ClG7Ty9T.js";import{t as zn}from"./Calendar-DCYqUUNo.js";import{t as Bn}from"./EarthGlobe-Dqu4Dt_R.js";import{t as Vn}from"./EllipsisHorizontal-BuWLk1Hy.js";import{t as Hn}from"./InfoOutline-BLtnjxbN.js";import{t as Un}from"./ErrorOutline-Cl-3_nRG.js";import{t as Wn}from"./Trash-BxG6GrjH.js";import{t as Gn}from"./Edit-CAHlBqGT.js";import{t as Kn}from"./Publish-BYF7r5nk.js";import{t as qn}from"./Unpublish-B0p_ZGt2.js";import{t as Jn}from"./Copy-BTQgeMVP.js";import{t as Yn}from"./Documents-C8KrBFzU.js";import{t as Xn}from"./Link-Cl1VSeDJ.js";import{t as Zn}from"./Add-CwQ5TpM8.js";import{t as Qn}from"./Lock-Ui2f2sVi.js";import{a as $n,i as er,r as tr}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js";import{t as nr}from"./CheckmarkCircle-B6SBY4QE.js";import{t as rr}from"./Share-D41CqXzI.js";import{t as ir}from"./Target-6sSmw-4o.js";import{t as ar}from"./Restore-DhBjjWCd.js";import{ArchiveIcon as or}from"./Archive-CNM-Azpz.js";import{CloseCircleIcon as sr}from"./CloseCircle-COYZpajm.js";import{FilterIcon as cr}from"./Filter-DVm6AUFi.js";import{PinIcon as lr}from"./Pin-D-D-SwHN.js";import{PinFilledIcon as ur}from"./PinFilled-pZaJsWPB.js";import{TextIcon as dr}from"./Text-CVWqn-j_.js";import{UnarchiveIcon as fr}from"./Unarchive-CobryITl.js";import{UserIcon as pr}from"./User-BbvVoXNB.js";import{n as mr}from"./ReleasesMetadataProvider-D91ckc8k-CFm0QyTL.js";import{a as hr,c as gr,i as _r,l as vr,n as yr,o as br,r as xr,t as Sr,u as Cr}from"./searchDocumentRelease-CGTwubjG-BI28zlQl.js";import{n as wr,t as Tr}from"./CalendarFilter-Xl97nJYN-wFA6qJeb.js";var Z=e(Ze(),1),Q=$e(),$=Qe(),Er=`group`,Dr=`releaseNotFound`,Or=`date`,kr=`view`;function Ar(e){return new URLSearchParams(e.state._searchParams).get(Dr)===`true`}var jr=e=>()=>{let t=new URLSearchParams(e.state._searchParams).get(Or);return t?new Date(t):void 0},Mr=e=>()=>{let t=new URLSearchParams(e.state._searchParams).get(Er);return t===`archived`?`archived`:t===`paused`?`paused`:`active`},Nr=({router:e,isScheduledDraftsEnabled:t,isReleasesEnabled:n})=>()=>t?n?new URLSearchParams(e.state._searchParams).get(kr)===`drafts`?`drafts`:`releases`:`drafts`:`releases`,Pr=(e,t,n)=>{let r=[];return e?r.push([Or,H(e,`yyyy-MM-dd`)]):t!==`active`&&r.push([Er,t]),n===`drafts`&&r.push([kr,`drafts`]),r},Fr={events:[],nextCursor:``,loading:!0,error:null};function Ir(e,t){let n=[...e,...t].reduce((e,t)=>e.has(t.id)?e:e.set(t.id,t),new Map);return Array.from(n.values())}function Lr(e){return{...e,id:`${e.timestamp}-${e.type}`,origin:`events`}}function Rr({client:e,releaseId:t}){let r=new n({cursor:null,origin:`initial`}),i=({limit:n,nextCursor:r})=>{let i=new URLSearchParams({limit:n.toString()});return r&&i.append(`nextCursor`,r),e.observable.request({url:`/data/history/${e.config().dLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{L as n}from"./types--2f-avvL-DfAXA8nG.js";import{_ as r,v as i}from"./validationUtils-Dwef0BLR-DSZmlLZW.js";var a=t(),o=e();function s(e){let t=(0,a.c)(6),{enabled:r,mode:s}=i();if(!r){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let c;t[2]===e?c=t[3]:(c=e.renderDefault(e),t[2]=e,t[3]=c);let l=c;if(s===`upsell`){let e;return t[4]===l?e=t[5]:(e=(0,o.jsx)(n,{children:l}),t[4]=l,t[5]=e),e}return l}function c(e){let t=(0,a.c)(2),n;return t[0]===e?n=t[1]:(n=(0,o.jsx)(r,{children:(0,o.jsx)(s,{...e})}),t[0]=e,t[1]=n),n}export{c as SchedulePublishingStudioLayout};
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{L as n}from"./types--2f-avvL-CUBrVRGR.js";import{_ as r,v as i}from"./validationUtils-Dwef0BLR-aKs6KPwC.js";var a=t(),o=e();function s(e){let t=(0,a.c)(6),{enabled:r,mode:s}=i();if(!r){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let c;t[2]===e?c=t[3]:(c=e.renderDefault(e),t[2]=e,t[3]=c);let l=c;if(s===`upsell`){let e;return t[4]===l?e=t[5]:(e=(0,o.jsx)(n,{children:l}),t[4]=l,t[5]=e),e}return l}function c(e){let t=(0,a.c)(2),n;return t[0]===e?n=t[1]:(n=(0,o.jsx)(r,{children:(0,o.jsx)(s,{...e})}),t[0]=e,t[1]=n),n}export{c as SchedulePublishingStudioLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{n,t as r}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js";var i=t(),a=e();function o(e){let t=(0,i.c)(4),o;t[0]===e?o=t[1]:(o=e.renderDefault(e),t[0]=e,t[1]=o);let s;return t[2]===o?s=t[3]:(s=(0,a.jsx)(r,{children:(0,a.jsx)(n,{children:o})}),t[2]=o,t[3]=s),s}export{o as SingleDocReleaseLayout};
|
||||
import{t as e}from"./jsx-runtime-BpzPEenQ.js";import{t}from"./compiler-runtime-sKsOXjDo.js";import{n,t as r}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js";var i=t(),a=e();function o(e){let t=(0,i.c)(4),o;t[0]===e?o=t[1]:(o=e.renderDefault(e),t[0]=e,t[1]=o);let s;return t[2]===o?s=t[3]:(s=(0,a.jsx)(r,{children:(0,a.jsx)(n,{children:o})}),t[2]=o,t[3]=s),s}export{o as SingleDocReleaseLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Hp as n,Jt as r,Md as i,S as a,Vp as o,or as s,xr as c}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as l,t as u}from"./jsx-runtime-BpzPEenQ.js";import{t as d}from"./compiler-runtime-sKsOXjDo.js";var f=e(l(),1),p=d(),m=u();function h(){return!!i().scheduledDrafts?.enabled}function g(e){let t=(0,p.c)(6),{children:n}=e,{enabled:r,isLoading:i,error:c}=s(a.singleDocRelease),l=h(),u;bb0:{if(!l||i||c){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},t[0]=e):e=t[0],u=e;break bb0}let e=r?`default`:`upsell`,n;t[1]===e?n=t[2]:(n={enabled:!0,mode:e},t[1]=e,t[2]=n),u=n}let d=u,f;return t[3]!==n||t[4]!==d?(f=(0,m.jsx)(o.Provider,{value:d,children:n}),t[3]=n,t[4]=d,t[5]=f):f=t[5],f}function _(){return(0,f.useContext)(o)}function v(e){let i=(0,p.c)(9),a;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={dataUri:`/journey/scheduled-drafts`,feature:`single_doc_release`},i[0]=a):a=i[0];let o=c(a),s=e.children,l;i[1]===o?l=i[2]:(l=r(o),i[1]=o,i[2]=l);let u;i[3]===l?u=i[4]:(u=(0,m.jsx)(t,{...l}),i[3]=l,i[4]=u);let d;return i[5]!==o||i[6]!==e.children||i[7]!==u?(d=(0,m.jsxs)(n.Provider,{value:o,children:[s,u]}),i[5]=o,i[6]=e.children,i[7]=u,i[8]=d):d=i[8],d}function y(){return(0,f.useContext)(n)}export{y as a,_ as i,v as n,h as r,g as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Hp as n,Jt as r,Md as i,S as a,Vp as o,or as s,xr as c}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as l,t as u}from"./jsx-runtime-BpzPEenQ.js";import{t as d}from"./compiler-runtime-sKsOXjDo.js";var f=e(l(),1),p=d(),m=u();function h(){return!!i().scheduledDrafts?.enabled}function g(e){let t=(0,p.c)(6),{children:n}=e,{enabled:r,isLoading:i,error:c}=s(a.singleDocRelease),l=h(),u;bb0:{if(!l||i||c){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},t[0]=e):e=t[0],u=e;break bb0}let e=r?`default`:`upsell`,n;t[1]===e?n=t[2]:(n={enabled:!0,mode:e},t[1]=e,t[2]=n),u=n}let d=u,f;return t[3]!==n||t[4]!==d?(f=(0,m.jsx)(o.Provider,{value:d,children:n}),t[3]=n,t[4]=d,t[5]=f):f=t[5],f}function _(){return(0,f.useContext)(o)}function v(e){let i=(0,p.c)(9),a;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(a={dataUri:`/journey/scheduled-drafts`,feature:`single_doc_release`},i[0]=a):a=i[0];let o=c(a),s=e.children,l;i[1]===o?l=i[2]:(l=r(o),i[1]=o,i[2]=l);let u;i[3]===l?u=i[4]:(u=(0,m.jsx)(t,{...l}),i[3]=l,i[4]=u);let d;return i[5]!==o||i[6]!==e.children||i[7]!==u?(d=(0,m.jsxs)(n.Provider,{value:o,children:[s,u]}),i[5]=o,i[6]=e.children,i[7]=u,i[8]=d):d=i[8],d}function y(){return(0,f.useContext)(n)}export{y as a,_ as i,v as n,h as r,g as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{_p as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";import{on as a}from"./types--2f-avvL-DfAXA8nG.js";import{d as o,o as s}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as c}from"./useTasks-I977dBmi-R3bfJHOa.js";var l=e(n(),1),u=i(),d=r();function f(){return(0,l.useContext)(t)}function p(e){let t=(0,u.c)(6),{documentId:n,documentType:r}=e,i=f(),{setActiveDocument:a}=c(),d,p;return t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==a?(d=()=>(n&&i&&r&&a?.({documentId:o(n)?n:s(n),documentType:r}),()=>{i&&a?.(null)}),p=[n,r,i,a],t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=d,t[5]=p):(d=t[4],p=t[5]),(0,l.useEffect)(d,p),null}function m(e){let t=(0,u.c)(2),{enabled:n}=a();if(!n)return null;let r;return t[0]===e?r=t[1]:(r=(0,d.jsx)(p,{...e}),t[0]=e,t[1]=r),r}function h(e){let t=(0,u.c)(8),n=e.value?._id,r=e.value?._type,i;t[0]!==n||t[1]!==r?(i=(0,d.jsx)(m,{documentId:n,documentType:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a;t[3]===e?a=t[4]:(a=e.renderDefault(e),t[3]=e,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,d.jsxs)(d.Fragment,{children:[i,a]}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{h as TasksDocumentInputLayout};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{_p as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n,t as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";import{on as a}from"./types--2f-avvL-CUBrVRGR.js";import{d as o,o as s}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as c}from"./useTasks-I977dBmi-DvLhzd9j.js";var l=e(n(),1),u=i(),d=r();function f(){return(0,l.useContext)(t)}function p(e){let t=(0,u.c)(6),{documentId:n,documentType:r}=e,i=f(),{setActiveDocument:a}=c(),d,p;return t[0]!==n||t[1]!==r||t[2]!==i||t[3]!==a?(d=()=>(n&&i&&r&&a?.({documentId:o(n)?n:s(n),documentType:r}),()=>{i&&a?.(null)}),p=[n,r,i,a],t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=d,t[5]=p):(d=t[4],p=t[5]),(0,l.useEffect)(d,p),null}function m(e){let t=(0,u.c)(2),{enabled:n}=a();if(!n)return null;let r;return t[0]===e?r=t[1]:(r=(0,d.jsx)(p,{...e}),t[0]=e,t[1]=r),r}function h(e){let t=(0,u.c)(8),n=e.value?._id,r=e.value?._type,i;t[0]!==n||t[1]!==r?(i=(0,d.jsx)(m,{documentId:n,documentType:r}),t[0]=n,t[1]=r,t[2]=i):i=t[2];let a;t[3]===e?a=t[4]:(a=e.renderDefault(e),t[3]=e,t[4]=a);let o;return t[5]!==i||t[6]!==a?(o=(0,d.jsxs)(d.Fragment,{children:[i,a]}),t[5]=i,t[6]=a,t[7]=o):o=t[7],o}export{h as TasksDocumentInputLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Sd as e,rc as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{sn as i,xt as a}from"./types--2f-avvL-DfAXA8nG.js";import{Ft as o,Gt as s,f as c}from"./dist-LVcARZxB.js";import{t as l}from"./Task-DGtH1mzn.js";import{t as u}from"./useTasks-I977dBmi-R3bfJHOa.js";import{n as d}from"./utils-1iCQse9Y-DVUANiML.js";var f=r(),p=n(),m=s.div.withConfig({displayName:`ButtonContainer`,componentId:`sc-528cae-0`})`position:relative;[data-ui='Badge']{position:absolute;top:-2px;right:-2px;}`;function h(){let n=(0,f.c)(31),{data:r,activeDocument:s}=u(),{handleOpenTasks:h,setActiveTab:g}=i(),_=o(),v;n[0]!==s||n[1]!==r?(v=s?.documentId?r.filter(e=>d(e.target)===s.documentId&&e.status===`open`&&e.createdByUser):[],n[0]=s,n[1]=r,n[2]=v):v=n[2];let y=v,b;n[3]!==h||n[4]!==g?(b=()=>{h(),g(`document`)},n[3]=h,n[4]=g,n[5]=b):b=n[5];let x=b,{t:S}=e(a);if(y.length===0)return null;if(_<3){let e;n[6]!==y.length||n[7]!==S?(e=S(`document.footer.open-tasks.placeholder`,{count:y.length}),n[6]=y.length,n[7]=S,n[8]=e):e=n[8];let r;n[9]===e?r=n[10]:(r={content:e},n[9]=e,n[10]=r);let i;n[11]!==x||n[12]!==r?(i=(0,p.jsx)(t,{mode:`bleed`,icon:l,size:`large`,onClick:x,tooltipProps:r}),n[11]=x,n[12]=r,n[13]=i):i=n[13];let a;n[14]===y.length?a=n[15]:(a=(0,p.jsx)(c,{"data-testid":`tasks-badge`,tone:`primary`,fontSize:0,children:y.length}),n[14]=y.length,n[15]=a);let o;return n[16]!==i||n[17]!==a?(o=(0,p.jsxs)(m,{children:[i,a]}),n[16]=i,n[17]=a,n[18]=o):o=n[18],o}let C;n[19]!==y.length||n[20]!==S?(C=S(`document.footer.open-tasks.placeholder`,{count:y.length}),n[19]=y.length,n[20]=S,n[21]=C):C=n[21];let w;n[22]===C?w=n[23]:(w={content:C},n[22]=C,n[23]=w);let T;n[24]!==y.length||n[25]!==S?(T=S(`document.footer.open-tasks.text`,{count:y.length}),n[24]=y.length,n[25]=S,n[26]=T):T=n[26];let E;return n[27]!==x||n[28]!==w||n[29]!==T?(E=(0,p.jsx)(t,{mode:`bleed`,tooltipProps:w,text:T,onClick:x}),n[27]=x,n[28]=w,n[29]=T,n[30]=E):E=n[30],E}export{h as TasksFooterOpenTasks};
|
||||
import{Sd as e,rc as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{sn as i,xt as a}from"./types--2f-avvL-CUBrVRGR.js";import{Ft as o,Gt as s,f as c}from"./dist-LVcARZxB.js";import{t as l}from"./Task-DGtH1mzn.js";import{t as u}from"./useTasks-I977dBmi-DvLhzd9j.js";import{n as d}from"./utils-1iCQse9Y-CByT3-rE.js";var f=r(),p=n(),m=s.div.withConfig({displayName:`ButtonContainer`,componentId:`sc-528cae-0`})`position:relative;[data-ui='Badge']{position:absolute;top:-2px;right:-2px;}`;function h(){let n=(0,f.c)(31),{data:r,activeDocument:s}=u(),{handleOpenTasks:h,setActiveTab:g}=i(),_=o(),v;n[0]!==s||n[1]!==r?(v=s?.documentId?r.filter(e=>d(e.target)===s.documentId&&e.status===`open`&&e.createdByUser):[],n[0]=s,n[1]=r,n[2]=v):v=n[2];let y=v,b;n[3]!==h||n[4]!==g?(b=()=>{h(),g(`document`)},n[3]=h,n[4]=g,n[5]=b):b=n[5];let x=b,{t:S}=e(a);if(y.length===0)return null;if(_<3){let e;n[6]!==y.length||n[7]!==S?(e=S(`document.footer.open-tasks.placeholder`,{count:y.length}),n[6]=y.length,n[7]=S,n[8]=e):e=n[8];let r;n[9]===e?r=n[10]:(r={content:e},n[9]=e,n[10]=r);let i;n[11]!==x||n[12]!==r?(i=(0,p.jsx)(t,{mode:`bleed`,icon:l,size:`large`,onClick:x,tooltipProps:r}),n[11]=x,n[12]=r,n[13]=i):i=n[13];let a;n[14]===y.length?a=n[15]:(a=(0,p.jsx)(c,{"data-testid":`tasks-badge`,tone:`primary`,fontSize:0,children:y.length}),n[14]=y.length,n[15]=a);let o;return n[16]!==i||n[17]!==a?(o=(0,p.jsxs)(m,{children:[i,a]}),n[16]=i,n[17]=a,n[18]=o):o=n[18],o}let C;n[19]!==y.length||n[20]!==S?(C=S(`document.footer.open-tasks.placeholder`,{count:y.length}),n[19]=y.length,n[20]=S,n[21]=C):C=n[21];let w;n[22]===C?w=n[23]:(w={content:C},n[22]=C,n[23]=w);let T;n[24]!==y.length||n[25]!==S?(T=S(`document.footer.open-tasks.text`,{count:y.length}),n[24]=y.length,n[25]=S,n[26]=T):T=n[26];let E;return n[27]!==x||n[28]!==w||n[29]!==T?(E=(0,p.jsx)(t,{mode:`bleed`,tooltipProps:w,text:T,onClick:x}),n[27]=x,n[28]=w,n[29]=T,n[30]=E):E=n[30],E}export{h as TasksFooterOpenTasks};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ad as t,Ar as n,B as r,Ec as i,Hd as a,Hs as o,Ir as s,Ja as c,Jl as l,Kl as u,Ma as d,Md as f,Mo as p,Ms as m,Nd as h,Od as g,Oo as _,Ql as v,Qs as y,Sd as b,Ta as x,Tl as S,Wa as C,Xo as w,Ys as T,Zs as E,_f as D,ad as O,bp as k,ca as A,cc as j,cd as M,da as N,dc as P,ec as F,fa as I,fo as L,ft as R,gf as z,hc as B,ir as V,iu as H,jd as ee,ju as te,ka as ne,kd as re,la as ie,lc as ae,ld as oe,lo as se,nc as ce,nf as le,oc as ue,pc as de,ql as fe,rc as U,sc as pe,sd as me,su as he,uc as ge,va as _e,wa as W,yu as ve,zd as ye}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as be,t as xe}from"./jsx-runtime-BpzPEenQ.js";import{t as Se}from"./compiler-runtime-sKsOXjDo.js";import{a as Ce,i as we,n as Te,r as Ee,t as De}from"./CommentsProvider-DHVaZIPI-DonUdARw.js";import{H as Oe,K as ke,Lt as Ae,Pt as je,ar as Me,cn as Ne,dt as Pe,g as Fe,on as Ie,or as Le,pn as Re,sn as ze,sr as Be,wn as Ve,xt as G,yt as He}from"./types--2f-avvL-DfAXA8nG.js";import{Dt as Ue,E as We,Et as Ge,Ft as Ke,Gt as K,O as qe,P as Je,Qt as q,R as Ye,St as J,Ut as Xe,Zt as Ze,bt as Qe,ct as $e,d as et,et as tt,f as nt,j as rt,m as it,n as at,r as Y,s as ot,t as X,tt as st,yt as ct}from"./dist-LVcARZxB.js";import{o as lt,s as ut}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as dt}from"./Close-B_ZEgT1V.js";import{t as ft}from"./ChevronDown-BpYUc-AP.js";import{t as pt}from"./Checkmark-OT7tsNpL.js";import{t as mt}from"./ChevronRight-Cf6GkXSa.js";import{t as ht}from"./Document-0Zpczu4q.js";import{t as gt}from"./Calendar-DCYqUUNo.js";import{t as _t}from"./ChevronLeft-BzE8YX6u.js";import{t as vt}from"./Trash-BxG6GrjH.js";import{t as yt}from"./Edit-CAHlBqGT.js";import{t as bt}from"./Circle-DkcW-8WT.js";import{t as xt}from"./Copy-BTQgeMVP.js";import{t as St}from"./Link-Cl1VSeDJ.js";import{t as Ct}from"./Add-CwQ5TpM8.js";import{t as wt}from"./CheckmarkCircle-B6SBY4QE.js";import{n as Tt,t as Et}from"./CommentsListItem-B4CoDHda-B92j42qR.js";import{t as Dt}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{n as Ot}from"./helpers-D_aQC6Do-BbFlOJg3.js";import{t as kt}from"./useComments-Bi1m7AzT-CGyuZP86.js";import{UserIcon as At}from"./User-BbvVoXNB.js";import{l as jt,t as Mt}from"./CommentInput-C1kF5k49-kVUiwefG.js";import{n as Nt,t as Pt}from"./CommentsListItem-Dyi91Dx1-CJKLG-KR.js";import{t as Ft}from"./useTasks-I977dBmi-R3bfJHOa.js";import{n as It,r as Lt,t as Rt}from"./utils-1iCQse9Y-DVUANiML.js";import{a as zt,c as Bt,i as Vt,l as Ht,n as Ut,r as Wt,t as Gt}from"./types-B8Ny1dM--Dcnenz2x.js";var Z=e(be(),1),Q=Se(),$=xe();function Kt(e){return he(e,Date.now())}function qt(e,t,n){let[r,i]=v(n?.in,e,t);return+H(r,n)==+H(i,n)}function Jt(e,t,n){return qt(e,t,{...n,weekStartsOn:1})}function Yt(e,t){return Jt(he(t?.in||e,e),Kt(t?.in||e))}function Xt(e,t){return se(he(t?.in||e,e),Kt(t?.in||e))}function Zt(e){let t=(0,Q.c)(8),[n,r]=(0,Z.useState)(null),i;t[0]===n?i=t[1]:(i={documentValue:n,permission:`read`},t[0]=n,t[1]=i);let a=Ee(i),o;t[2]!==a||t[3]!==n?(o={mentionOptions:a,selectedDocument:n,setSelectedDocument:r},t[2]=a,t[3]=n,t[4]=o):o=t[4];let s=o,c;return t[5]!==e.children||t[6]!==s?(c=(0,$.jsx)(k.Provider,{value:s,children:e.children}),t[5]=e.children,t[6]=s,t[7]=c):c=t[7],c}function Qt(){let e=(0,Z.useContext)(k);if(!e)throw Error(`useMentionUser must be used within a MentionUserProvider`);return e}var $t=g.apiVersion,en=[{value:`open`,title:`To Do`,icon:(0,$.jsx)(bt,{})},{value:`closed`,title:`Done`,icon:(0,$.jsx)(wt,{})}],tn=K.div.withConfig({displayName:`AvatarRoot`,componentId:`sc-ztexr-0`})(e=>{let t=q(e.theme);return Xe`min-height:${t.avatar.sizes[e.$size]?.size}px;min-width:${t.avatar.sizes[e.$size]?.size}px;display:flex;align-items:center;justify-content:center;border-radius:50%;${e.$border?`box-shadow: inset 0 0 0 1px var(--card-border-color);`:``};${e.$removeBg?`--card-avatar-gray-bg-color: transparent;`:``}`});function nn(e){let t=(0,Q.c)(27),{user:n,size:r,border:i}=e,a=r===void 0?0:r,o=i===void 0||i,[s,c]=y(n?.id||``);if(c){let e;return t[0]===a?e=t[1]:(e=(0,$.jsx)(_,{$size:a,animated:!0}),t[0]=a,t[1]=e),e}if(!n||!s){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(At,{}),t[2]=e):e=t[2];let n;t[3]===a?n=t[4]:(n=(0,$.jsx)(J,{size:a,children:e}),t[3]=a,t[4]=n);let r;return t[5]!==o||t[6]!==a||t[7]!==n?(r=(0,$.jsx)(tn,{$size:a,$border:o,children:n}),t[5]=o,t[6]=a,t[7]=n,t[8]=r):r=t[8],r}let l=!e.withTooltip,u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`top`,`top-start`],t[9]=u):u=t[9];let d=!!s?.imageUrl,f;t[10]===s.imageUrl?f=t[11]:(f=s?.imageUrl?{color:void 0}:{},t[10]=s.imageUrl,t[11]=f);let m;t[12]===e.withTooltip?m=t[13]:(m=e.withTooltip?{title:null}:{},t[12]=e.withTooltip,t[13]=m);let h;t[14]!==s||t[15]!==a||t[16]!==f||t[17]!==m?(h=(0,$.jsx)(p,{user:s,size:a,...f,...m}),t[14]=s,t[15]=a,t[16]=f,t[17]=m,t[18]=h):h=t[18];let g;t[19]!==a||t[20]!==d||t[21]!==h?(g=(0,$.jsx)(tn,{$size:a,$removeBg:d,children:h}),t[19]=a,t[20]=d,t[21]=h,t[22]=gLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ad as t,Ar as n,B as r,Ec as i,Hd as a,Hs as o,Ir as s,Ja as c,Jl as l,Kl as u,Ma as d,Md as f,Mo as p,Ms as m,Nd as h,Od as g,Oo as _,Ql as v,Qs as y,Sd as b,Ta as x,Tl as S,Wa as C,Xo as w,Ys as T,Zs as E,_f as D,ad as O,bp as k,ca as A,cc as j,cd as M,da as N,dc as P,ec as F,fa as I,fo as L,ft as R,gf as z,hc as B,ir as V,iu as H,jd as ee,ju as te,ka as ne,kd as re,la as ie,lc as ae,ld as oe,lo as se,nc as ce,nf as le,oc as ue,pc as de,ql as fe,rc as U,sc as pe,sd as me,su as he,uc as ge,va as _e,wa as W,yu as ve,zd as ye}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as be,t as xe}from"./jsx-runtime-BpzPEenQ.js";import{t as Se}from"./compiler-runtime-sKsOXjDo.js";import{a as Ce,i as we,n as Te,r as Ee,t as De}from"./CommentsProvider-DHVaZIPI-2Crq30kn.js";import{H as Oe,K as ke,Lt as Ae,Pt as je,ar as Me,cn as Ne,dt as Pe,g as Fe,on as Ie,or as Le,pn as Re,sn as ze,sr as Be,wn as Ve,xt as G,yt as He}from"./types--2f-avvL-CUBrVRGR.js";import{Dt as Ue,E as We,Et as Ge,Ft as Ke,Gt as K,O as qe,P as Je,Qt as q,R as Ye,St as J,Ut as Xe,Zt as Ze,bt as Qe,ct as $e,d as et,et as tt,f as nt,j as rt,m as it,n as at,r as Y,s as ot,t as X,tt as st,yt as ct}from"./dist-LVcARZxB.js";import{o as lt,s as ut}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as dt}from"./Close-B_ZEgT1V.js";import{t as ft}from"./ChevronDown-BpYUc-AP.js";import{t as pt}from"./Checkmark-OT7tsNpL.js";import{t as mt}from"./ChevronRight-Cf6GkXSa.js";import{t as ht}from"./Document-0Zpczu4q.js";import{t as gt}from"./Calendar-DCYqUUNo.js";import{t as _t}from"./ChevronLeft-BzE8YX6u.js";import{t as vt}from"./Trash-BxG6GrjH.js";import{t as yt}from"./Edit-CAHlBqGT.js";import{t as bt}from"./Circle-DkcW-8WT.js";import{t as xt}from"./Copy-BTQgeMVP.js";import{t as St}from"./Link-Cl1VSeDJ.js";import{t as Ct}from"./Add-CwQ5TpM8.js";import{t as wt}from"./CheckmarkCircle-B6SBY4QE.js";import{n as Tt,t as Et}from"./CommentsListItem-B4CoDHda-DaXAEbir.js";import{t as Dt}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{n as Ot}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";import{t as kt}from"./useComments-Bi1m7AzT-DcZcKqsq.js";import{UserIcon as At}from"./User-BbvVoXNB.js";import{l as jt,t as Mt}from"./CommentInput-C1kF5k49-CItaByrf.js";import{n as Nt,t as Pt}from"./CommentsListItem-Dyi91Dx1-D2kIh320.js";import{t as Ft}from"./useTasks-I977dBmi-DvLhzd9j.js";import{n as It,r as Lt,t as Rt}from"./utils-1iCQse9Y-CByT3-rE.js";import{a as zt,c as Bt,i as Vt,l as Ht,n as Ut,r as Wt,t as Gt}from"./types-B8Ny1dM--DslR8GEK.js";var Z=e(be(),1),Q=Se(),$=xe();function Kt(e){return he(e,Date.now())}function qt(e,t,n){let[r,i]=v(n?.in,e,t);return+H(r,n)==+H(i,n)}function Jt(e,t,n){return qt(e,t,{...n,weekStartsOn:1})}function Yt(e,t){return Jt(he(t?.in||e,e),Kt(t?.in||e))}function Xt(e,t){return se(he(t?.in||e,e),Kt(t?.in||e))}function Zt(e){let t=(0,Q.c)(8),[n,r]=(0,Z.useState)(null),i;t[0]===n?i=t[1]:(i={documentValue:n,permission:`read`},t[0]=n,t[1]=i);let a=Ee(i),o;t[2]!==a||t[3]!==n?(o={mentionOptions:a,selectedDocument:n,setSelectedDocument:r},t[2]=a,t[3]=n,t[4]=o):o=t[4];let s=o,c;return t[5]!==e.children||t[6]!==s?(c=(0,$.jsx)(k.Provider,{value:s,children:e.children}),t[5]=e.children,t[6]=s,t[7]=c):c=t[7],c}function Qt(){let e=(0,Z.useContext)(k);if(!e)throw Error(`useMentionUser must be used within a MentionUserProvider`);return e}var $t=g.apiVersion,en=[{value:`open`,title:`To Do`,icon:(0,$.jsx)(bt,{})},{value:`closed`,title:`Done`,icon:(0,$.jsx)(wt,{})}],tn=K.div.withConfig({displayName:`AvatarRoot`,componentId:`sc-ztexr-0`})(e=>{let t=q(e.theme);return Xe`min-height:${t.avatar.sizes[e.$size]?.size}px;min-width:${t.avatar.sizes[e.$size]?.size}px;display:flex;align-items:center;justify-content:center;border-radius:50%;${e.$border?`box-shadow: inset 0 0 0 1px var(--card-border-color);`:``};${e.$removeBg?`--card-avatar-gray-bg-color: transparent;`:``}`});function nn(e){let t=(0,Q.c)(27),{user:n,size:r,border:i}=e,a=r===void 0?0:r,o=i===void 0||i,[s,c]=y(n?.id||``);if(c){let e;return t[0]===a?e=t[1]:(e=(0,$.jsx)(_,{$size:a,animated:!0}),t[0]=a,t[1]=e),e}if(!n||!s){let e;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(e=(0,$.jsx)(At,{}),t[2]=e):e=t[2];let n;t[3]===a?n=t[4]:(n=(0,$.jsx)(J,{size:a,children:e}),t[3]=a,t[4]=n);let r;return t[5]!==o||t[6]!==a||t[7]!==n?(r=(0,$.jsx)(tn,{$size:a,$border:o,children:n}),t[5]=o,t[6]=a,t[7]=n,t[8]=r):r=t[8],r}let l=!e.withTooltip,u;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(u=[`top`,`top-start`],t[9]=u):u=t[9];let d=!!s?.imageUrl,f;t[10]===s.imageUrl?f=t[11]:(f=s?.imageUrl?{color:void 0}:{},t[10]=s.imageUrl,t[11]=f);let m;t[12]===e.withTooltip?m=t[13]:(m=e.withTooltip?{title:null}:{},t[12]=e.withTooltip,t[13]=m);let h;t[14]!==s||t[15]!==a||t[16]!==f||t[17]!==m?(h=(0,$.jsx)(p,{user:s,size:a,...f,...m}),t[14]=s,t[15]=a,t[16]=f,t[17]=m,t[18]=h):h=t[18];let g;t[19]!==a||t[20]!==d||t[21]!==h?(g=(0,$.jsx)(tn,{$size:a,$removeBg:d,children:h}),t[19]=a,t[20]=d,t[21]=h,t[22]=gLine truncated
|
||||
color: ${q(e.theme).color.input.default.enabled.placeholder};
|
||||
margin-left: 3px;
|
||||
`),Tn=K(Ge).withConfig({displayName:`TargetRoot`,componentId:`sc-sitbkz-2`})`position:relative;[data-ui='show-on-hover']{opacity:0;position:absolute;right:6px;top:4px;display:flex;}&:focus-within,&:hover{padding-right:36px;[data-testid='compact-preview__status']{opacity:0;}[data-ui='show-on-hover']{transition:opacity 200ms;opacity:1;}}`,En=K(n).withConfig({displayName:`StyledIntentLink`,componentId:`sc-sitbkz-3`})(()=>Xe`text-decoration:none;width:100%;overflow:hidden;cursor:pointer;&:focus{box-shadow:0 0 0 1px var(--card-focus-ring-color);}&:focus-visible{outline:none;box-shadow:0 0 0 1px var(--card-focus-ring-color);}`);function Dn(e){let t=(0,Q.c)(28),{value:n,handleRemove:r}=e,i=n.document._ref,a=n.documentType,o=S(),s;t[0]!==o||t[1]!==n.documentType?(s=o.get(n.documentType),t[0]=o,t[1]=n.documentType,t[2]=s):s=t[2];let c=s,l=V(i),{t:u}=b(G),d;t[3]!==i||t[4]!==a?(d=function(e){let{ref:t,...n}=e,r=ut(i);return(0,$.jsx)(En,{...n,intent:`edit`,params:{id:lt(i),type:a},ref:t,searchParams:r?[[`perspective`,r]]:void 0})},t[3]=i,t[4]=a,t[5]=d):d=t[5];let f=d;if(!c){let e;t[6]===u?e=t[7]:(e=u(`form.input.target.error.schema-not-found`),t[6]=u,t[7]=e);let n;return t[8]===e?n=t[9]:(n=(0,$.jsx)(J,{children:e}),t[8]=e,t[9]=n),n}let p;t[10]!==l||t[11]!==a||t[12]!==c||t[13]!==n.document._ref?(p=(0,$.jsx)(Be,{documentType:a,documentId:n.document._ref,layout:`compact`,presence:l,schemaType:c,showBadge:!1}),t[10]=l,t[11]=a,t[12]=c,t[13]=n.document._ref,t[14]=p):p=t[14];let m;t[15]!==f||t[16]!==p?(m=(0,$.jsx)(Ge,{as:f,radius:2,"data-as":`button`,children:p}),t[15]=f,t[16]=p,t[17]=m):m=t[17];let h;t[18]===u?h=t[19]:(h=u(`form.input.target.buttons.remove.text`),t[18]=u,t[19]=h);let g;t[20]===h?g=t[21]:(g={content:h},t[20]=h,t[21]=g);let _;t[22]!==r||t[23]!==g?(_=(0,$.jsx)(`div`,{"data-ui":`show-on-hover`,children:(0,$.jsx)(U,{icon:dt,mode:`bleed`,onClick:r,tooltipProps:g})}),t[22]=r,t[23]=g,t[24]=_):_=t[24];let v;return t[25]!==m||t[26]!==_?(v=(0,$.jsx)(Tn,{border:!0,radius:2,"data-testid":`task-target-field-preview`,children:(0,$.jsxs)(Y,{gap:1,alignItems:`center`,justifyContent:`space-between`,children:[m,_]})}),t[25]=m,t[26]=_,t[27]=v):v=t[27],v}function On(e){let t=(0,Q.c)(32),[n,r]=(0,Z.useState)(!1),{dataset:i,projectId:a}=h(),{mode:o,inputProps:s,value:c}=e,{onChange:l}=s,u=c,f;t[0]!==i||t[1]!==l||t[2]!==a?(f=e=>{l(W(Lt({documentId:e._id,documentType:e._type,dataset:i,projectId:a})))},t[0]=i,t[1]=l,t[2]=a,t[3]=f):f=t[3];let p=f,m;t[4]===l?m=t[5]:(m=()=>{l(x())},t[4]=l,t[5]=m);let g=m,_;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{r(!0)},t[6]=_):_=t[6];let v=_,y;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(y=()=>{r(!1)},t[7]=y):y=t[7];let S=y,C;t[8]===Symbol.for(`react.memo_cache_sentinel`)?(C=e=>{(e.key===`Enter`||e.key===` `)&&r(!0)},t[8]=C):C=t[8];let w=C,{t:T}=b(G),E=o===`edit`,D=o===`edit`?4:0,O;t[9]!==o||t[10]!==e.description||t[11]!==e.inputId||t[12]!==e.title||t[13]!==e.validation?(O=o===`create`&&(0,$.jsx)(X,{"data-ui":`fieldHeaderContentBox`,children:(0,$.jsx)(d,{description:e.description,inputId:e.inputId,title:e.title,validation:e.validation,deprecated:void 0})}),t[9]=o,t[10]=e.description,t[11]=e.inputId,t[12]=e.title,t[13]=e.validation,t[14]=O):O=t[14];let k;t[15]!==g||t[16]!==T||t[17]!==u?(k=u?(0,$.jsx)(Dn,{value:u,handleRemove:g}):(0,$.jsx)(Cn,{border:!0,radius:2,paddingX:2,paddingY:3,onClick:v,onKeyDown:w,tabIndex:0,children:(0,$.jsxs)(Y,{gap:1,justifyContent:`flex-start`,alignItems:`center`,children:[(0,$.jsx)(X,{paddingX:1,children:(0,$.jsx)(J,{size:1,children:(0,$.jsx)(ht,{})})}),(0,$.jsx)(wn,{size:1,children:T(`form.input.target.search.placeholder`)})]})}),t[15]=g,t[16]=T,t[17]=u,t[18]=k):k=t[18];let A;t[19]!==O||t[20]!==k?(A=(0,$.jsxs)(ot,{gap:2,children:[O,k]}),t[19]=O,t[20]=k,t[21]=A):A=t[21];let j;t[22]!==p||t[23]!==n?(j=(0,$.jsx)(Me,{open:n,onClose:S,onItemSelect:p,disableIntentLink:!0}),t[22]=p,t[23]=n,t[24]=j):j=t[24];let M;t[25]!==A||t[26]!==j?(M=(0,$.jsx)(yn,{children:(0,$.jsx)(Ue,{zOffset:100,children:(0,$.jsx)(Sn,{children:(0,$.jsxs)(Le,{children:[A,j]})})})}),t[25]=A,t[26]=j,t[27]=M):M=t[27];let N;return t[28]!==M||t[29]!==E||t[30]!==D?(N=(0,$.jsx)(Ge,{borderBottom:E,paddingBottom:D,children:M}),t[28]=M,t[29]=E,t[30]=D,t[31]=N):N=t[31],N}var kn=K.div.withConfig({displayName:`Root`,componentId:`sc-e1xmtd-0`})(e=>`
|
||||
+1
-1
@@ -1,3 +1,3 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Jp as n,Jt as r,Nd as i,Pu as a,S as o,Wr as s,Xp as c,Yp as l,ad as u,nf as d,or as f,qp as p,sd as m,xr as h}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{rt as y,xt as b}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{on as x}from"./types--2f-avvL-DfAXA8nG.js";import{o as S}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as C}from"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import{t as w}from"./AddonDatasetProvider-CF_RtUZo-BoMlopck.js";import{n as T,o as E,r as D,s as O,t as k}from"./types-B8Ny1dM--Dcnenz2x.js";var A=e(g(),1),j=v(),M=_();function N(e){let t=(0,j.c)(6),{children:r}=e,{enabled:a,isLoading:s,error:c}=f(o.sanityTasks),l=i().tasks?.enabled,u;bb0:{if(!l||s||c){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},t[0]=e):e=t[0],u=e;break bb0}let e=a?`default`:`upsell`,n;t[1]===e?n=t[2]:(n={enabled:!0,mode:e},t[1]=e,t[2]=n),u=n}let d=u,p;return t[3]!==r||t[4]!==d?(p=(0,M.jsx)(n.Provider,{value:d,children:r}),t[3]=r,t[4]=d,t[5]=p):p=t[5],p}var P={viewMode:`list`,selectedTask:null,activeTabId:`assigned`,duplicateTaskValues:null,isOpen:!1};function F(e,t){switch(t.type){case`TOGGLE_TASKS_VIEW`:return t.payload?{...e,isOpen:t.payload}:{...P,isOpen:t.payload};case`CREATE_TASK`:return{...e,viewMode:`create`,selectedTask:d()};case`EDIT_TASK`:return{...e,viewMode:`edit`,selectedTask:t.payload.id};case`EDIT_DRAFT`:return{...e,viewMode:`draft`,selectedTask:t.payload.id};case`DUPLICATE_TASK`:return{...e,viewMode:`duplicate`,selectedTask:d(),duplicateTaskValues:t.payload.duplicateTaskValues};case`SET_ACTIVE_TAB`:return{...e,viewMode:`list`,activeTabId:t.payload};case`NAVIGATE_TO_LIST`:return{...e,viewMode:`list`};default:return e}}var I=e=>{let t=(0,j.c)(23),{children:n}=e,[r,i]=(0,A.useReducer)(F,P),a=s(),o=m(),c=u(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{bb2:switch(e.type){case`list`:i({type:`NAVIGATE_TO_LIST`});break bb2;case`create`:i({type:`CREATE_TASK`});break bb2;case`edit`:i({type:`EDIT_TASK`,payload:{id:e.id}});break bb2;case`duplicate`:i({type:`DUPLICATE_TASK`,payload:{duplicateTaskValues:e.duplicateTaskValues}});break bb2;case`draft`:i({type:`EDIT_DRAFT`,payload:{id:e.id}});break bb2}},t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{i({type:`SET_ACTIVE_TAB`,payload:e})},t[1]=p):p=t[1];let h=p,g;t[2]===a?g=t[3]:(g=()=>{i({type:`TOGGLE_TASKS_VIEW`,payload:!1}),a.navigate({stickyParams:{...a.stickyParams,[T]:null,[D]:null,[k]:null}})},t[2]=a,t[3]=g);let _=g,v;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{i({type:`TOGGLE_TASKS_VIEW`,payload:!0})},t[4]=v):v=t[4];let y=v,b;t[5]!==r.selectedTask||t[6]!==r.viewMode||t[7]!==c||t[8]!==o?(b=()=>{let e=new URL(window.location.href);e.searchParams.set(T,`tasks`),e.searchParams.set(D,r.viewMode),r.selectedTask&&e.searchParams.set(`selectedTask`,r.selectedTask),navigator.clipboard.writeText(e.toString()).then(()=>{c.log(E)}).catch(()=>{o.push({closable:!0,status:`error`,title:`Failed to copy link to clipboard`})})},t[5]=r.selectedTask,t[6]=r.viewMode,t[7]=c,t[8]=o,t[9]=b):b=t[9];let x=b,S=a.stickyParams[T],C=a.stickyParams[D],w=a.stickyParams[k],N,I;t[10]!==w||t[11]!==S||t[12]!==c||t[13]!==C?(N=()=>{S===`tasks`&&(i({type:`TOGGLE_TASKS_VIEW`,payload:!0}),C===`edit`&&w&&(i({type:`EDIT_TASK`,payload:{id:w}}),c.log(O)))},I=[w,S,c,C],t[10]=w,t[11]=S,t[12]=c,t[13]=C,t[14]=N,t[15]=I):(N=t[14],I=t[15]),(0,A.useEffect)(N,I);let L;t[16]!==_||t[17]!==x||t[18]!==r?(L={state:r,setViewMode:f,setActiveTab:h,handleCloseTasks:_,handleOpenTasks:y,handleCopyLinkToTask:x},t[16]=_,t[17]=x,t[18]=r,t[19]=L):L=t[19];let R=L,z;return t[20]!==n||t[21]!==R?(z=(0,M.jsx)(l.Provider,{value:R,children:n}),t[20]=n,t[21]=R,t[22]=z):z=t[22],z};function L(e){return e.reduce((e,t)=>({...e,[t._id]:t}),{})}function R(e,t){switch(t.type){case`TASKS_SET`:{let n=L(t.tasks);return{...e,tasks:n}}case`TASK_ADDED`:{let n=t.payload,r=n,i={[n._id]:{...e.tasks[n._id],...r,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,tasks:{...e.tasks,...i}}}case`TASK_RECEIVED`:{let n=t.payload;return{...e,tasks:{...e.tasks,[n._id]:n}}}case`TASK_DELETED`:{let{[t.id]:n,...r}=e.tasks;return{...e,tasks:r}}case`TASK_UPDATED`:{let n=t.payload,r=n._id,i={...e.tasks[r],...n};return{...e,tasks:{...e.tasks,[r]:i}}}default:return e}}var z={tasks:{}},B={events:[`welcome`,`mutation`,`reconnect`],includeResult:!0,visibility:`query`,includeAllVersions:!0,tag:`tasks-store`},V=`*[${[`_type == "tasks.task"`].join(` && `)}] {
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as t,Jp as n,Jt as r,Nd as i,Pu as a,S as o,Wr as s,Xp as c,Yp as l,ad as u,nf as d,or as f,qp as p,sd as m,xr as h}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{rt as y,xt as b}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{on as x}from"./types--2f-avvL-CUBrVRGR.js";import{o as S}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as C}from"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import{t as w}from"./AddonDatasetProvider-CF_RtUZo-BdePhlKm.js";import{n as T,o as E,r as D,s as O,t as k}from"./types-B8Ny1dM--DslR8GEK.js";var A=e(g(),1),j=v(),M=_();function N(e){let t=(0,j.c)(6),{children:r}=e,{enabled:a,isLoading:s,error:c}=f(o.sanityTasks),l=i().tasks?.enabled,u;bb0:{if(!l||s||c){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e={enabled:!1,mode:null},t[0]=e):e=t[0],u=e;break bb0}let e=a?`default`:`upsell`,n;t[1]===e?n=t[2]:(n={enabled:!0,mode:e},t[1]=e,t[2]=n),u=n}let d=u,p;return t[3]!==r||t[4]!==d?(p=(0,M.jsx)(n.Provider,{value:d,children:r}),t[3]=r,t[4]=d,t[5]=p):p=t[5],p}var P={viewMode:`list`,selectedTask:null,activeTabId:`assigned`,duplicateTaskValues:null,isOpen:!1};function F(e,t){switch(t.type){case`TOGGLE_TASKS_VIEW`:return t.payload?{...e,isOpen:t.payload}:{...P,isOpen:t.payload};case`CREATE_TASK`:return{...e,viewMode:`create`,selectedTask:d()};case`EDIT_TASK`:return{...e,viewMode:`edit`,selectedTask:t.payload.id};case`EDIT_DRAFT`:return{...e,viewMode:`draft`,selectedTask:t.payload.id};case`DUPLICATE_TASK`:return{...e,viewMode:`duplicate`,selectedTask:d(),duplicateTaskValues:t.payload.duplicateTaskValues};case`SET_ACTIVE_TAB`:return{...e,viewMode:`list`,activeTabId:t.payload};case`NAVIGATE_TO_LIST`:return{...e,viewMode:`list`};default:return e}}var I=e=>{let t=(0,j.c)(23),{children:n}=e,[r,i]=(0,A.useReducer)(F,P),a=s(),o=m(),c=u(),d;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(d=e=>{bb2:switch(e.type){case`list`:i({type:`NAVIGATE_TO_LIST`});break bb2;case`create`:i({type:`CREATE_TASK`});break bb2;case`edit`:i({type:`EDIT_TASK`,payload:{id:e.id}});break bb2;case`duplicate`:i({type:`DUPLICATE_TASK`,payload:{duplicateTaskValues:e.duplicateTaskValues}});break bb2;case`draft`:i({type:`EDIT_DRAFT`,payload:{id:e.id}});break bb2}},t[0]=d):d=t[0];let f=d,p;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(p=e=>{i({type:`SET_ACTIVE_TAB`,payload:e})},t[1]=p):p=t[1];let h=p,g;t[2]===a?g=t[3]:(g=()=>{i({type:`TOGGLE_TASKS_VIEW`,payload:!1}),a.navigate({stickyParams:{...a.stickyParams,[T]:null,[D]:null,[k]:null}})},t[2]=a,t[3]=g);let _=g,v;t[4]===Symbol.for(`react.memo_cache_sentinel`)?(v=()=>{i({type:`TOGGLE_TASKS_VIEW`,payload:!0})},t[4]=v):v=t[4];let y=v,b;t[5]!==r.selectedTask||t[6]!==r.viewMode||t[7]!==c||t[8]!==o?(b=()=>{let e=new URL(window.location.href);e.searchParams.set(T,`tasks`),e.searchParams.set(D,r.viewMode),r.selectedTask&&e.searchParams.set(`selectedTask`,r.selectedTask),navigator.clipboard.writeText(e.toString()).then(()=>{c.log(E)}).catch(()=>{o.push({closable:!0,status:`error`,title:`Failed to copy link to clipboard`})})},t[5]=r.selectedTask,t[6]=r.viewMode,t[7]=c,t[8]=o,t[9]=b):b=t[9];let x=b,S=a.stickyParams[T],C=a.stickyParams[D],w=a.stickyParams[k],N,I;t[10]!==w||t[11]!==S||t[12]!==c||t[13]!==C?(N=()=>{S===`tasks`&&(i({type:`TOGGLE_TASKS_VIEW`,payload:!0}),C===`edit`&&w&&(i({type:`EDIT_TASK`,payload:{id:w}}),c.log(O)))},I=[w,S,c,C],t[10]=w,t[11]=S,t[12]=c,t[13]=C,t[14]=N,t[15]=I):(N=t[14],I=t[15]),(0,A.useEffect)(N,I);let L;t[16]!==_||t[17]!==x||t[18]!==r?(L={state:r,setViewMode:f,setActiveTab:h,handleCloseTasks:_,handleOpenTasks:y,handleCopyLinkToTask:x},t[16]=_,t[17]=x,t[18]=r,t[19]=L):L=t[19];let R=L,z;return t[20]!==n||t[21]!==R?(z=(0,M.jsx)(l.Provider,{value:R,children:n}),t[20]=n,t[21]=R,t[22]=z):z=t[22],z};function L(e){return e.reduce((e,t)=>({...e,[t._id]:t}),{})}function R(e,t){switch(t.type){case`TASKS_SET`:{let n=L(t.tasks);return{...e,tasks:n}}case`TASK_ADDED`:{let n=t.payload,r=n,i={[n._id]:{...e.tasks[n._id],...r,_state:n._state||void 0,_createdAt:n._createdAt||new Date().toISOString()}};return{...e,tasks:{...e.tasks,...i}}}case`TASK_RECEIVED`:{let n=t.payload;return{...e,tasks:{...e.tasks,[n._id]:n}}}case`TASK_DELETED`:{let{[t.id]:n,...r}=e.tasks;return{...e,tasks:r}}case`TASK_UPDATED`:{let n=t.payload,r=n._id,i={...e.tasks[r],...n};return{...e,tasks:{...e.tasks,[r]:i}}}default:return e}}var z={tasks:{}},B={events:[`welcome`,`mutation`,`reconnect`],includeResult:!0,visibility:`query`,includeAllVersions:!0,tag:`tasks-store`},V=`*[${[`_type == "tasks.task"`].join(` && `)}] {
|
||||
...,
|
||||
} | order(_createdAt desc)`;function H(e){let t=(0,j.c)(24),{client:n}=C(),{documentId:r}=e,[i,a]=(0,A.useReducer)(R,z),[o,s]=(0,A.useState)(n!==null),[c,l]=(0,A.useState)(null),u;t[0]===r?u=t[1]:(u=r?S(r):null,t[0]=r,t[1]=u);let d;t[2]===u?d=t[3]:(d={documentId:u},t[2]=u,t[3]=d);let f=d,p;t[4]!==n||t[5]!==f?(p=async()=>{if(!n){s(!1);return}try{let e=await n.fetch(V,f);a({type:`TASKS_SET`,tasks:e}),s(!1)}catch(e){l(e)}},t[4]=n,t[5]=f,t[6]=p):p=t[6];let m=p,h;t[7]===m?h=t[8]:(h=async e=>{if(e.type===`welcome`&&(s(!0),await m(),s(!1)),e.type===`reconnect`&&s(!0),e.type===`mutation`){if(e.transition===`appear`){let t=e.result;t&&a({type:`TASK_RECEIVED`,payload:t})}if(e.transition===`disappear`&&a({type:`TASK_DELETED`,id:e.documentId}),e.transition===`update`){let t=e.result;t&&a({type:`TASK_UPDATED`,payload:t})}}},t[7]=m,t[8]=h);let g=h,_;bb0:{if(!n){let e;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(e=b(),t[9]=e):e=t[9],_=e;break bb0}let e;if(t[10]!==n.observable||t[11]!==f){let r;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(r=e=>(l(e),b(e)),t[13]=r):r=t[13],e=n.observable.listen(V,f,B).pipe(y(r)),t[10]=n.observable,t[11]=f,t[12]=e}else e=t[12];_=e}let v=_,x,w;t[14]!==g||t[15]!==v?(x=()=>{let e=v.subscribe(g);return()=>{e?.unsubscribe()}},w=[g,v],t[14]=g,t[15]=v,t[16]=x,t[17]=w):(x=t[16],w=t[17]),(0,A.useEffect)(x,w);let T;t[18]===i.tasks?T=t[19]:(T=Object.values(i.tasks),t[18]=i.tasks,t[19]=T);let E=T,D;return t[20]!==c||t[21]!==o||t[22]!==E?(D={data:E,dispatch:a,error:c,isLoading:o},t[20]=c,t[21]=o,t[22]=E,t[23]=D):D=t[23],D}var U=[];function W(e){let t=(0,j.c)(11),{children:n}=e,[r,i]=(0,A.useState)(null),o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o={},t[0]=o):o=t[0];let{data:s,isLoading:c}=H(o),l=s===void 0?U:s,u;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(u=a(i,1e3),t[1]=u):u=t[1];let d=u,f;t[2]===l?f=t[3]:(f=l??[],t[2]=l,t[3]=f);let m;t[4]!==r||t[5]!==c||t[6]!==f?(m={activeDocument:r,setActiveDocument:d,isLoading:c,data:f},t[4]=r,t[5]=c,t[6]=f,t[7]=m):m=t[7];let h=m,g;return t[8]!==n||t[9]!==h?(g=(0,M.jsx)(p.Provider,{value:h,children:n}),t[8]=n,t[9]=h,t[10]=g):g=t[10],g}function G(e){let n=(0,j.c)(9),i;n[0]===Symbol.for(`react.memo_cache_sentinel`)?(i={dataUri:`/journey/tasks`,feature:`tasks`},n[0]=i):i=n[0];let a=h(i),o=e.children,s;n[1]===a?s=n[2]:(s=r(a),n[1]=a,n[2]=s);let l;n[3]===s?l=n[4]:(l=(0,M.jsx)(t,{...s}),n[3]=s,n[4]=l);let u;return n[5]!==a||n[6]!==e.children||n[7]!==l?(u=(0,M.jsxs)(c.Provider,{value:a,children:[o,l]}),n[5]=a,n[6]=e.children,n[7]=l,n[8]=u):u=n[8],u}var K=e=>{let t=(0,j.c)(10),{enabled:n,mode:r}=x();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let i;t[2]===e?i=t[3]:(i=e.renderDefault(e),t[2]=e,t[3]=i);let a;t[4]===i?a=t[5]:(a=(0,M.jsx)(W,{children:(0,M.jsx)(I,{children:i})}),t[4]=i,t[5]=a);let o=a;if(r===`upsell`){let e;return t[6]===o?e=t[7]:(e=(0,M.jsx)(w,{children:(0,M.jsx)(G,{children:o})}),t[6]=o,t[7]=e),e}let s;return t[8]===o?s=t[9]:(s=(0,M.jsx)(w,{children:o}),t[8]=o,t[9]=s),s};function q(e){let t=(0,j.c)(2),n;return t[0]===e?n=t[1]:(n=(0,M.jsx)(N,{children:(0,M.jsx)(K,{...e})}),t[0]=e,t[1]=n),n}export{q as TasksStudioLayout};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Sd as e,rc as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{on as i,sn as a,xt as o}from"./types--2f-avvL-DfAXA8nG.js";import{t as s}from"./CheckmarkCircle-B6SBY4QE.js";var c=r(),l=n(),u=[],d=n=>{let r=(0,c.c)(8),{onClick:i,isOpen:a}=n,{t:u}=e(o),d;r[0]===u?d=r[1]:(d=u(`toolbar.tooltip`),r[0]=u,r[1]=d);let f;r[2]===d?f=r[3]:(f={content:d},r[2]=d,r[3]=f);let p;return r[4]!==a||r[5]!==i||r[6]!==f?(p=(0,l.jsx)(t,{tooltipProps:f,icon:s,mode:`bleed`,onClick:i,selected:a,"data-testid":`tasks-toolbar`}),r[4]=a,r[5]=i,r[6]=f,r[7]=p):p=r[7],p};function f(t){let n=(0,c.c)(22),{handleOpenTasks:r,handleCloseTasks:i,state:f}=a(),{isOpen:p}=f,{t:m}=e(o),h;n[0]!==i||n[1]!==r||n[2]!==p?(h=()=>{p?i():r()},n[0]=i,n[1]=r,n[2]=p,n[3]=h):h=n[3];let g=h,_;n[4]!==g||n[5]!==p?(_=()=>(0,l.jsx)(d,{onClick:g,isOpen:p}),n[4]=g,n[5]=p,n[6]=_):_=n[6];let v=_;t?.__internal_actions;let y=t?.__internal_actions||u,b;n[7]===v?b=n[8]:(b={location:`topbar`,name:`tasks-topbar`,render:v},n[7]=v,n[8]=b);let x;n[9]===m?x=n[10]:(x=m(`actions.open.text`),n[9]=m,n[10]=x);let S;n[11]!==g||n[12]!==p||n[13]!==x?(S={icon:s,location:`sidebar`,name:`tasks-sidebar`,onAction:g,selected:p,title:x},n[11]=g,n[12]=p,n[13]=x,n[14]=S):S=n[14];let C;n[15]!==y||n[16]!==b||n[17]!==S?(C=[...y,b,S],n[15]=y,n[16]=b,n[17]=S,n[18]=C):C=n[18];let w=C,T;return n[19]!==w||n[20]!==t?(T=t.renderDefault({...t,__internal_actions:w}),n[19]=w,n[20]=t,n[21]=T):T=n[21],T}function p(e){let t=(0,c.c)(4),{enabled:n}=i();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let r;return t[2]===e?r=t[3]:(r=(0,l.jsx)(f,{...e}),t[2]=e,t[3]=r),r}export{p as TasksStudioNavbar};
|
||||
import{Sd as e,rc as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{on as i,sn as a,xt as o}from"./types--2f-avvL-CUBrVRGR.js";import{t as s}from"./CheckmarkCircle-B6SBY4QE.js";var c=r(),l=n(),u=[],d=n=>{let r=(0,c.c)(8),{onClick:i,isOpen:a}=n,{t:u}=e(o),d;r[0]===u?d=r[1]:(d=u(`toolbar.tooltip`),r[0]=u,r[1]=d);let f;r[2]===d?f=r[3]:(f={content:d},r[2]=d,r[3]=f);let p;return r[4]!==a||r[5]!==i||r[6]!==f?(p=(0,l.jsx)(t,{tooltipProps:f,icon:s,mode:`bleed`,onClick:i,selected:a,"data-testid":`tasks-toolbar`}),r[4]=a,r[5]=i,r[6]=f,r[7]=p):p=r[7],p};function f(t){let n=(0,c.c)(22),{handleOpenTasks:r,handleCloseTasks:i,state:f}=a(),{isOpen:p}=f,{t:m}=e(o),h;n[0]!==i||n[1]!==r||n[2]!==p?(h=()=>{p?i():r()},n[0]=i,n[1]=r,n[2]=p,n[3]=h):h=n[3];let g=h,_;n[4]!==g||n[5]!==p?(_=()=>(0,l.jsx)(d,{onClick:g,isOpen:p}),n[4]=g,n[5]=p,n[6]=_):_=n[6];let v=_;t?.__internal_actions;let y=t?.__internal_actions||u,b;n[7]===v?b=n[8]:(b={location:`topbar`,name:`tasks-topbar`,render:v},n[7]=v,n[8]=b);let x;n[9]===m?x=n[10]:(x=m(`actions.open.text`),n[9]=m,n[10]=x);let S;n[11]!==g||n[12]!==p||n[13]!==x?(S={icon:s,location:`sidebar`,name:`tasks-sidebar`,onAction:g,selected:p,title:x},n[11]=g,n[12]=p,n[13]=x,n[14]=S):S=n[14];let C;n[15]!==y||n[16]!==b||n[17]!==S?(C=[...y,b,S],n[15]=y,n[16]=b,n[17]=S,n[18]=C):C=n[18];let w=C,T;return n[19]!==w||n[20]!==t?(T=t.renderDefault({...t,__internal_actions:w}),n[19]=w,n[20]=t,n[21]=T):T=n[21],T}function p(e){let t=(0,c.c)(4),{enabled:n}=i();if(!n){let n;return t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n),n}let r;return t[2]===e?r=t[3]:(r=(0,l.jsx)(f,{...e}),t[2]=e,t[3]=r),r}export{p as TasksStudioNavbar};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Co as t,Ho as n,Lr as r,Nd as i,Pa as a,Sd as o,Wr as s,Yl as c,Ys as l,da as u,dc as d,eu as f,jr as p,lc as m,oc as h,qr as g,rc as _,sc as v}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as y,t as b}from"./jsx-runtime-BpzPEenQ.js";import{t as x}from"./compiler-runtime-sKsOXjDo.js";import{C as S,H as C,I as w,R as T,en as E,tn as D,yn as O,z as ee}from"./types--2f-avvL-DfAXA8nG.js";import{B as k,Et as A,Gt as j,Rt as te,St as M,Z as N,b as P,f as F,n as I,q as L,r as R,s as z,t as B,x as V,yt as H}from"./dist-LVcARZxB.js";import{t as U}from"./Close-B_ZEgT1V.js";import{t as W}from"./WarningOutline-DOBjmorn.js";import{t as G}from"./Checkmark-OT7tsNpL.js";import{t as K}from"./Select-D4xIAUnY.js";import{t as ne}from"./InfoOutline-BLtnjxbN.js";import{t as q}from"./Sort-CFTgH29c.js";import{c as re,d as J,h as Y,i as ie,l as X,o as ae,p as oe,r as se,v as ce}from"./validationUtils-Dwef0BLR-DSZmlLZW.js";import{r as le}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js";import{t as ue}from"./CheckmarkCircle-B6SBY4QE.js";import{n as de,r as fe}from"./CalendarFilter-Xl97nJYN-VpCCR-Os.js";var Z=e(y(),1),Q=x(),$=b(),pe=()=>{let e=(0,Q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(M,{size:2,children:(0,$.jsx)(ne,{})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(M,{size:1,weight:`semibold`,children:`Schedule Publishing is not enabled`}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(M,{size:1,children:[`We recommend using`,` `,(0,$.jsx)(`a`,{target:`_blank`,href:se,rel:`noreferrer`,children:`Releases`}),`.`]}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsxs)(M,{size:1,children:[`Scheduled Publishing is not enabled by default. It can be enabled in the config by setting `,(0,$.jsx)(`code`,{children:`scheduledPublishing.enabled = true`})]}),e[3]=i):i=e[3];let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(A,{overflow:`hidden`,padding:4,radius:2,shadow:1,tone:`suggest`,children:(0,$.jsxs)(R,{alignItems:`center`,gap:4,children:[t,(0,$.jsxs)(z,{gap:4,children:[n,(0,$.jsxs)(z,{gap:3,children:[r,i,(0,$.jsx)(M,{size:1,children:(0,$.jsx)(`a`,{target:`_blank`,href:`https://www.sanity.io/docs/scheduled-publishing`,rel:`noreferrer`,children:`Read the docs`})})]})]})]})}),e[4]=a):a=e[4],a};function me(e,t){let n=(0,Q.c)(5),r;if(n[0]!==t||n[1]!==e){let i;n[3]===t?i=n[4]:(i=e=>e.state===t,n[3]=t,n[4]=i),r=e.filter(i),n[0]=t,n[1]=e,n[2]=r}else r=n[2];return r}var he=e=>{let t=(0,Q.c)(16),{selected:n,schedules:i,state:a}=e,o=me(i,a).length,s=o>0,c=a===`cancelled`,l;t[0]===a?l=t[1]:(l={state:{state:a}},t[0]=a,t[1]=l);let{href:u,onClick:d}=r(l),f=c?`critical`:`default`,p=X[a],m;t[2]===p.title?m=t[3]:(m=(0,$.jsx)(M,{size:1,weight:`medium`,children:p.title}),t[2]=p.title,t[3]=m);let h;t[4]!==o||t[5]!==s?(h=s&&(0,$.jsx)(M,{size:0,children:o}),t[4]=o,t[5]=s,t[6]=h):h=t[6];let g;t[7]!==m||t[8]!==h?(g=(0,$.jsxs)(R,{gap:2,alignItems:`center`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _;return t[10]!==u||t[11]!==d||t[12]!==n||t[13]!==f||t[14]!==g?(_=(0,$.jsx)(H,{as:`a`,href:u,mode:`bleed`,onClick:d,selected:n,tone:f,padding:2,children:g}),t[10]=u,t[11]=d,t[12]=n,t[13]=f,t[14]=g,t[15]=_):_=t[15],_},ge=e=>{let t=(0,Q.c)(26),{onClearDate:n,selectedDate:r}=e,{navigate:i}=s(),{schedules:a,scheduleState:o}=D(),l;t[0]===i?l=t[1]:(l=e=>{i(e)},t[0]=i,t[1]=l);let u=l,f=me(a,o),p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`block`,`block`,`none`],t[2]=p):p=t[2];let m;t[3]!==n||t[4]!==r?(m=r&&(0,$.jsx)(_,{iconRight:U,onClick:n,text:c(r,`d MMMM yyyy`),tone:`primary`}),t[3]=n,t[4]=r,t[5]=m):m=t[5];let g;t[6]!==f?.length||t[7]!==u||t[8]!==o?(g=o&&(0,$.jsx)(h,{button:(0,$.jsx)(_,{iconRight:K,mode:`ghost`,text:`${X[o].title} (${f?.length||0})`,tone:`default`}),id:`state`,menu:(0,$.jsx)(d,{style:{minWidth:`175px`},children:re.map(e=>(0,$.jsx)(v,{iconRight:e===o?G:void 0,onClick:u.bind(void 0,{state:e}),text:X[e].title},e))}),popover:{placement:`bottom`}}),t[6]=f?.length,t[7]=u,t[8]=o,t[9]=g):g=t[9];let y;t[10]!==m||t[11]!==g?(y=(0,$.jsxs)(B,{display:p,children:[m,g]}),t[10]=m,t[11]=g,t[12]=y):y=t[12];let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=[`none`,`none`,`block`],t[13]=b):b=t[13];let x;t[14]!==n||t[15]!==r?(x=r&&(0,$.jsx)(_,{iconRight:U,onClick:n,text:c(r,`d MMMM yyyy`),tone:`primary`}),t[14]=n,t[15]=r,t[16]=x):x=t[16];let S;t[17]!==o||t[18]!==a?(S=o&&(0,$.jsx)(R,{gap:2,children:re.map(e=>(0,$.jsx)(he,{schedules:a,selected:o===e,state:e},e))}),t[17]=o,t[18]=a,t[19]=S):S=t[19];let C;t[20]!==x||t[21]!==S?(C=(0,$.jsxs)(B,{display:b,children:[x,S]}),t[20]=x,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==y||t[24]!==C?(w=(0,$.jsxs)($.Fragment,{children:[y,C]}),t[23]=y,t[24]=C,t[25]=w):w=t[25],w},_e=e=>{let t=(0,Q.c)(15),n,r,i,a,o,s,c,l,u,d,f,p,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`path`,{d:`M5
Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Co as t,Ho as n,Lr as r,Nd as i,Pa as a,Sd as o,Wr as s,Yl as c,Ys as l,da as u,dc as d,eu as f,jr as p,lc as m,oc as h,qr as g,rc as _,sc as v}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as y,t as b}from"./jsx-runtime-BpzPEenQ.js";import{t as x}from"./compiler-runtime-sKsOXjDo.js";import{C as S,H as C,I as w,R as T,en as E,tn as D,yn as O,z as ee}from"./types--2f-avvL-CUBrVRGR.js";import{B as k,Et as A,Gt as j,Rt as te,St as M,Z as N,b as P,f as F,n as I,q as L,r as R,s as z,t as B,x as V,yt as H}from"./dist-LVcARZxB.js";import{t as U}from"./Close-B_ZEgT1V.js";import{t as W}from"./WarningOutline-DOBjmorn.js";import{t as G}from"./Checkmark-OT7tsNpL.js";import{t as K}from"./Select-D4xIAUnY.js";import{t as ne}from"./InfoOutline-BLtnjxbN.js";import{t as q}from"./Sort-CFTgH29c.js";import{c as re,d as J,h as Y,i as ie,l as X,o as ae,p as oe,r as se,v as ce}from"./validationUtils-Dwef0BLR-aKs6KPwC.js";import{r as le}from"./SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js";import{t as ue}from"./CheckmarkCircle-B6SBY4QE.js";import{n as de,r as fe}from"./CalendarFilter-Xl97nJYN-wFA6qJeb.js";var Z=e(y(),1),Q=x(),$=b(),pe=()=>{let e=(0,Q.c)(5),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,$.jsx)(M,{size:2,children:(0,$.jsx)(ne,{})}),e[0]=t):t=e[0];let n;e[1]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(M,{size:1,weight:`semibold`,children:`Schedule Publishing is not enabled`}),e[1]=n):n=e[1];let r;e[2]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,$.jsxs)(M,{size:1,children:[`We recommend using`,` `,(0,$.jsx)(`a`,{target:`_blank`,href:se,rel:`noreferrer`,children:`Releases`}),`.`]}),e[2]=r):r=e[2];let i;e[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,$.jsxs)(M,{size:1,children:[`Scheduled Publishing is not enabled by default. It can be enabled in the config by setting `,(0,$.jsx)(`code`,{children:`scheduledPublishing.enabled = true`})]}),e[3]=i):i=e[3];let a;return e[4]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,$.jsx)(A,{overflow:`hidden`,padding:4,radius:2,shadow:1,tone:`suggest`,children:(0,$.jsxs)(R,{alignItems:`center`,gap:4,children:[t,(0,$.jsxs)(z,{gap:4,children:[n,(0,$.jsxs)(z,{gap:3,children:[r,i,(0,$.jsx)(M,{size:1,children:(0,$.jsx)(`a`,{target:`_blank`,href:`https://www.sanity.io/docs/scheduled-publishing`,rel:`noreferrer`,children:`Read the docs`})})]})]})]})}),e[4]=a):a=e[4],a};function me(e,t){let n=(0,Q.c)(5),r;if(n[0]!==t||n[1]!==e){let i;n[3]===t?i=n[4]:(i=e=>e.state===t,n[3]=t,n[4]=i),r=e.filter(i),n[0]=t,n[1]=e,n[2]=r}else r=n[2];return r}var he=e=>{let t=(0,Q.c)(16),{selected:n,schedules:i,state:a}=e,o=me(i,a).length,s=o>0,c=a===`cancelled`,l;t[0]===a?l=t[1]:(l={state:{state:a}},t[0]=a,t[1]=l);let{href:u,onClick:d}=r(l),f=c?`critical`:`default`,p=X[a],m;t[2]===p.title?m=t[3]:(m=(0,$.jsx)(M,{size:1,weight:`medium`,children:p.title}),t[2]=p.title,t[3]=m);let h;t[4]!==o||t[5]!==s?(h=s&&(0,$.jsx)(M,{size:0,children:o}),t[4]=o,t[5]=s,t[6]=h):h=t[6];let g;t[7]!==m||t[8]!==h?(g=(0,$.jsxs)(R,{gap:2,alignItems:`center`,children:[m,h]}),t[7]=m,t[8]=h,t[9]=g):g=t[9];let _;return t[10]!==u||t[11]!==d||t[12]!==n||t[13]!==f||t[14]!==g?(_=(0,$.jsx)(H,{as:`a`,href:u,mode:`bleed`,onClick:d,selected:n,tone:f,padding:2,children:g}),t[10]=u,t[11]=d,t[12]=n,t[13]=f,t[14]=g,t[15]=_):_=t[15],_},ge=e=>{let t=(0,Q.c)(26),{onClearDate:n,selectedDate:r}=e,{navigate:i}=s(),{schedules:a,scheduleState:o}=D(),l;t[0]===i?l=t[1]:(l=e=>{i(e)},t[0]=i,t[1]=l);let u=l,f=me(a,o),p;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(p=[`block`,`block`,`none`],t[2]=p):p=t[2];let m;t[3]!==n||t[4]!==r?(m=r&&(0,$.jsx)(_,{iconRight:U,onClick:n,text:c(r,`d MMMM yyyy`),tone:`primary`}),t[3]=n,t[4]=r,t[5]=m):m=t[5];let g;t[6]!==f?.length||t[7]!==u||t[8]!==o?(g=o&&(0,$.jsx)(h,{button:(0,$.jsx)(_,{iconRight:K,mode:`ghost`,text:`${X[o].title} (${f?.length||0})`,tone:`default`}),id:`state`,menu:(0,$.jsx)(d,{style:{minWidth:`175px`},children:re.map(e=>(0,$.jsx)(v,{iconRight:e===o?G:void 0,onClick:u.bind(void 0,{state:e}),text:X[e].title},e))}),popover:{placement:`bottom`}}),t[6]=f?.length,t[7]=u,t[8]=o,t[9]=g):g=t[9];let y;t[10]!==m||t[11]!==g?(y=(0,$.jsxs)(B,{display:p,children:[m,g]}),t[10]=m,t[11]=g,t[12]=y):y=t[12];let b;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(b=[`none`,`none`,`block`],t[13]=b):b=t[13];let x;t[14]!==n||t[15]!==r?(x=r&&(0,$.jsx)(_,{iconRight:U,onClick:n,text:c(r,`d MMMM yyyy`),tone:`primary`}),t[14]=n,t[15]=r,t[16]=x):x=t[16];let S;t[17]!==o||t[18]!==a?(S=o&&(0,$.jsx)(R,{gap:2,children:re.map(e=>(0,$.jsx)(he,{schedules:a,selected:o===e,state:e},e))}),t[17]=o,t[18]=a,t[19]=S):S=t[19];let C;t[20]!==x||t[21]!==S?(C=(0,$.jsxs)(B,{display:b,children:[x,S]}),t[20]=x,t[21]=S,t[22]=C):C=t[22];let w;return t[23]!==y||t[24]!==C?(w=(0,$.jsxs)($.Fragment,{children:[y,C]}),t[23]=y,t[24]=C,t[25]=w):w=t[25],w},_e=e=>{let t=(0,Q.c)(15),n,r,i,a,o,s,c,l,u,d,f,p,m;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,$.jsx)(`path`,{d:`M5
Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ao as t,Es as n,Ia as r,Ic as i,Jc as a,La as o,Ms as s,Na as c,Nd as l,On as u,Sd as d,Wr as f,dc as p,f as m,ns as h,oc as g,pc as _,qc as v,rc as y,sc as b,tn as x}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as S,t as C}from"./jsx-runtime-BpzPEenQ.js";import{t as w}from"./compiler-runtime-sKsOXjDo.js";import{$t as ee,D as T,V as E,ir as te,nn as D,rr as ne,t as O,vn as re}from"./types--2f-avvL-DfAXA8nG.js";import{Et as ie,Gt as k,St as A,ct as j,r as ae,t as M}from"./dist-LVcARZxB.js";import{t as oe}from"./ChevronDown-BpYUc-AP.js";import{t as N}from"./Remove-B96Rrnq-.js";import{t as P}from"./ErrorOutline-Cl-3_nRG.js";import{a as F,r as I,s as L}from"./ConditionMismatchIndicator-_CvVlfbg-C52eZmJT.js";var se=e(S(),1),R=w(),z=C(),B=`y8t4tj0`;function V(e){let t=(0,R.c)(17),{prefix:n,tone:r,children:i,onRemove:a,removeLabel:o,label:s}=e,c;t[0]===n?c=t[1]:(c=(0,z.jsx)(M,{paddingX:2,children:(0,z.jsx)(A,{size:1,children:n})}),t[0]=n,t[1]=c);let l;t[2]!==i||t[3]!==s?(l=s?(0,z.jsx)(O,{text:s,children:i}):i,t[2]=i,t[3]=s,t[4]=l):l=t[4];let u;t[5]!==a||t[6]!==o?(u=a&&o?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:B}),(0,z.jsx)(y,{"aria-label":o,"data-testid":`perspective-filter-remove`,icon:N,mode:`bleed`,onClick:a,tooltipProps:{content:o}})]}):null,t[5]=a,t[6]=o,t[7]=u):u=t[7];let d;t[8]!==l||t[9]!==u?(d=(0,z.jsxs)(ae,{alignItems:`center`,children:[l,u]}),t[8]=l,t[9]=u,t[10]=d):d=t[10];let f;t[11]!==d||t[12]!==r?(f=(0,z.jsx)(ie,{tone:r,radius:2,border:!0,children:d}),t[11]=d,t[12]=r,t[13]=f):f=t[13];let p;return t[14]!==c||t[15]!==f?(p=(0,z.jsxs)(ae,{alignItems:`center`,"data-ui":`PerspectiveFilter`,children:[c,f]}),t[14]=c,t[15]=f,t[16]=p):p=t[16],p}function ce(e){let t=(0,R.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,z.jsx)(`path`,{d:`M12.6093 7.89167C12.6342 7.89773 12.6593 7.90569 12.6835 7.91609L12.7538 7.95417L12.7607 7.95906L12.7665 7.96394L12.8154 8.00398L12.8212 8.00788L12.8261 8.01374L16.9863 12.1739C17.0078 12.1955 17.0284 12.2189 17.0458 12.2452C17.08 12.2968 17.102 12.3542 17.1132 12.4122C17.1244 12.4702 17.1244 12.53 17.1132 12.588C17.102 12.6459 17.0797 12.7026 17.0458 12.754C17.0283 12.7805 17.0079 12.8046 16.9863 12.8262L12.8261 16.9864C12.6457 17.1666 12.3541 17.1667 12.1738 16.9864L8.0136 12.8262C7.83335 12.6459 7.83335 12.3543 8.0136 12.1739L12.1738 8.01374C12.2923 7.89524 12.4585 7.85506 12.6093 7.89167ZM8.99211 12.4991L12.4999 16.0069L16.0068 12.4991L12.4999 8.99226L8.99211 12.4991Z`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:.3}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,z.jsx)(`svg`,{"data-sanity-icon":`rhombus-outlined`,width:`1em`,height:`1em`,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}var H=`_1w1auht0`,U=k(p).withConfig({displayName:`StyledMenu`,componentId:`sc-l5zka1-0`})`min-width:240px;max-width:320px;> [data-ui='Stack']{gap:0;}`,le=k(A).withConfig({displayName:`SectionHeader`,componentId:`sc-l5zka1-1`})`text-transform:uppercase;letter-spacing:0.04em;`;function W(e){let t=(0,R.c)(24),{isSelected:n,onSelect:r,variant:i}=e,{t:o}=d(re),s=i.conditions,l;t[0]===i?l=t[1]:(l=x(i),t[0]=i,t[1]=l);let u=F(s,l),f;t[2]!==u||t[3]!==o?(f=u.length>0?I(o,u):void 0,t[2]=u,t[3]=o,t[4]=f):f=t[4];let p=f,m;t[5]===i._id?m=t[6]:(m=v(i._id),t[5]=i._id,t[6]=m);let h=`variant-${m}`,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,z.jsx)(A,{size:2,className:H,children:(0,z.jsx)(c,{})}),t[7]=g):g=t[7];let _;t[8]===u.length?_=t[9]:(_=u.length>0?(0,z.jsx)(`span`,{"data-testid":`variant-condition-mismatch`,children:(0,z.jsx)(E,{icon:P,tone:`critical`})}):void 0,t[8]=u.length,t[9]=_);let y;t[10]!==r||t[11]!==i?(y=()=>r(i),t[10]=r,t[11]=i,t[12]=y):y=t[12];let S;t[13]===i?S=t[14]:(S=a(i),t[13]=i,t[14]=S);let C;t[15]===p?C=t[16]:(C=p?{content:(0,z.jsx)(A,{muted:!0,size:1,children:p})}:void 0,t[15]=p,t[16]=C);let w;return t[17]!==n||t[18]!==h||t[19]!==_||t[20]!==y||t[21]!==S||t[22]!==C?(w=(0,z.jsx)(b,{"data-testid":h,icon:g,iconRight:_,onClick:y,pressed:n,selected:n,text:S,tooltipProps:C}),t[17]=n,t[18]=h,t[19]=_,t[20]=y,t[21]=S,t[22]=C,t[23]=w):w=t[23],w}function G(e){let t=(0,R.c)(52),{trigger:r,typeKey:a}=e,o=a===void 0?m:a,{t:c}=d(re),l=D(),{data:u}=n(),[f,p]=(0,se.useState)(``),{selectedVariants:h}=s(),v;if(t[0]!==o||t[1]!==u){let e;t[3]===o?e=t[4]:(e=e=>x(e)===o,t[3]=o,t[4]=e),v=u.filter(e),t[0]=o,t[1]=u,t[2]=v}else v=t[2];let y=v,S;if(t[5]!==h||t[6]!==y){let e;t[8]===h?e=t[9]:(e=e=>h.some(t=>t?._id===e._id),t[8]=h,t[9]=e),S=y.find(e),t[5]=h,t[6]=y,t[7]=S}else S=t[7];let C=S,w;t[10]!==f||t[11]!==y?(w=i(y,f),t[10]=f,t[11]=y,t[12]=w):w=t[12];let ee=w,T;t[13]!==l||t[14]!==o?(T=()=>{l({type:o,variantId:void 0}),p(``)},t[13]=l,t[14]=o,t[15]=T):T=t[15];let E=T,te;t[16]!==l||t[17]!==o?(te=e=>{l({type:o,variantId:e._id}),p(``)},t[16]=l,t[17]=Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ao as t,Es as n,Ia as r,Ic as i,Jc as a,La as o,Ms as s,Na as c,Nd as l,On as u,Sd as d,Wr as f,dc as p,f as m,ns as h,oc as g,pc as _,qc as v,rc as y,sc as b,tn as x}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as S,t as C}from"./jsx-runtime-BpzPEenQ.js";import{t as w}from"./compiler-runtime-sKsOXjDo.js";import{$t as ee,D as T,V as E,ir as te,nn as D,rr as ne,t as O,vn as re}from"./types--2f-avvL-CUBrVRGR.js";import{Et as ie,Gt as k,St as A,ct as j,r as ae,t as M}from"./dist-LVcARZxB.js";import{t as oe}from"./ChevronDown-BpYUc-AP.js";import{t as N}from"./Remove-B96Rrnq-.js";import{t as P}from"./ErrorOutline-Cl-3_nRG.js";import{a as F,r as I,s as L}from"./ConditionMismatchIndicator-_CvVlfbg-AqTbIONm.js";var se=e(S(),1),R=w(),z=C(),B=`y8t4tj0`;function V(e){let t=(0,R.c)(17),{prefix:n,tone:r,children:i,onRemove:a,removeLabel:o,label:s}=e,c;t[0]===n?c=t[1]:(c=(0,z.jsx)(M,{paddingX:2,children:(0,z.jsx)(A,{size:1,children:n})}),t[0]=n,t[1]=c);let l;t[2]!==i||t[3]!==s?(l=s?(0,z.jsx)(O,{text:s,children:i}):i,t[2]=i,t[3]=s,t[4]=l):l=t[4];let u;t[5]!==a||t[6]!==o?(u=a&&o?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`div`,{className:B}),(0,z.jsx)(y,{"aria-label":o,"data-testid":`perspective-filter-remove`,icon:N,mode:`bleed`,onClick:a,tooltipProps:{content:o}})]}):null,t[5]=a,t[6]=o,t[7]=u):u=t[7];let d;t[8]!==l||t[9]!==u?(d=(0,z.jsxs)(ae,{alignItems:`center`,children:[l,u]}),t[8]=l,t[9]=u,t[10]=d):d=t[10];let f;t[11]!==d||t[12]!==r?(f=(0,z.jsx)(ie,{tone:r,radius:2,border:!0,children:d}),t[11]=d,t[12]=r,t[13]=f):f=t[13];let p;return t[14]!==c||t[15]!==f?(p=(0,z.jsxs)(ae,{alignItems:`center`,"data-ui":`PerspectiveFilter`,children:[c,f]}),t[14]=c,t[15]=f,t[16]=p):p=t[16],p}function ce(e){let t=(0,R.c)(7),n,r;t[0]===e?(n=t[1],r=t[2]):({ref:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,z.jsx)(`path`,{d:`M12.6093 7.89167C12.6342 7.89773 12.6593 7.90569 12.6835 7.91609L12.7538 7.95417L12.7607 7.95906L12.7665 7.96394L12.8154 8.00398L12.8212 8.00788L12.8261 8.01374L16.9863 12.1739C17.0078 12.1955 17.0284 12.2189 17.0458 12.2452C17.08 12.2968 17.102 12.3542 17.1132 12.4122C17.1244 12.4702 17.1244 12.53 17.1132 12.588C17.102 12.6459 17.0797 12.7026 17.0458 12.754C17.0283 12.7805 17.0079 12.8046 16.9863 12.8262L12.8261 16.9864C12.6457 17.1666 12.3541 17.1667 12.1738 16.9864L8.0136 12.8262C7.83335 12.6459 7.83335 12.3543 8.0136 12.1739L12.1738 8.01374C12.2923 7.89524 12.4585 7.85506 12.6093 7.89167ZM8.99211 12.4991L12.4999 16.0069L16.0068 12.4991L12.4999 8.99226L8.99211 12.4991Z`,fill:`currentColor`,stroke:`currentColor`,strokeWidth:.3}),t[3]=i):i=t[3];let a;return t[4]!==n||t[5]!==r?(a=(0,z.jsx)(`svg`,{"data-sanity-icon":`rhombus-outlined`,width:`1em`,height:`1em`,viewBox:`0 0 25 25`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,ref:n,...r,children:i}),t[4]=n,t[5]=r,t[6]=a):a=t[6],a}var H=`_1w1auht0`,U=k(p).withConfig({displayName:`StyledMenu`,componentId:`sc-l5zka1-0`})`min-width:240px;max-width:320px;> [data-ui='Stack']{gap:0;}`,le=k(A).withConfig({displayName:`SectionHeader`,componentId:`sc-l5zka1-1`})`text-transform:uppercase;letter-spacing:0.04em;`;function W(e){let t=(0,R.c)(24),{isSelected:n,onSelect:r,variant:i}=e,{t:o}=d(re),s=i.conditions,l;t[0]===i?l=t[1]:(l=x(i),t[0]=i,t[1]=l);let u=F(s,l),f;t[2]!==u||t[3]!==o?(f=u.length>0?I(o,u):void 0,t[2]=u,t[3]=o,t[4]=f):f=t[4];let p=f,m;t[5]===i._id?m=t[6]:(m=v(i._id),t[5]=i._id,t[6]=m);let h=`variant-${m}`,g;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(g=(0,z.jsx)(A,{size:2,className:H,children:(0,z.jsx)(c,{})}),t[7]=g):g=t[7];let _;t[8]===u.length?_=t[9]:(_=u.length>0?(0,z.jsx)(`span`,{"data-testid":`variant-condition-mismatch`,children:(0,z.jsx)(E,{icon:P,tone:`critical`})}):void 0,t[8]=u.length,t[9]=_);let y;t[10]!==r||t[11]!==i?(y=()=>r(i),t[10]=r,t[11]=i,t[12]=y):y=t[12];let S;t[13]===i?S=t[14]:(S=a(i),t[13]=i,t[14]=S);let C;t[15]===p?C=t[16]:(C=p?{content:(0,z.jsx)(A,{muted:!0,size:1,children:p})}:void 0,t[15]=p,t[16]=C);let w;return t[17]!==n||t[18]!==h||t[19]!==_||t[20]!==y||t[21]!==S||t[22]!==C?(w=(0,z.jsx)(b,{"data-testid":h,icon:g,iconRight:_,onClick:y,pressed:n,selected:n,text:S,tooltipProps:C}),t[17]=n,t[18]=h,t[19]=_,t[20]=y,t[21]=S,t[22]=C,t[23]=w):w=t[23],w}function G(e){let t=(0,R.c)(52),{trigger:r,typeKey:a}=e,o=a===void 0?m:a,{t:c}=d(re),l=D(),{data:u}=n(),[f,p]=(0,se.useState)(``),{selectedVariants:h}=s(),v;if(t[0]!==o||t[1]!==u){let e;t[3]===o?e=t[4]:(e=e=>x(e)===o,t[3]=o,t[4]=e),v=u.filter(e),t[0]=o,t[1]=u,t[2]=v}else v=t[2];let y=v,S;if(t[5]!==h||t[6]!==y){let e;t[8]===h?e=t[9]:(e=e=>h.some(t=>t?._id===e._id),t[8]=h,t[9]=e),S=y.find(e),t[5]=h,t[6]=y,t[7]=S}else S=t[7];let C=S,w;t[10]!==f||t[11]!==y?(w=i(y,f),t[10]=f,t[11]=y,t[12]=w):w=t[12];let ee=w,T;t[13]!==l||t[14]!==o?(T=()=>{l({type:o,variantId:void 0}),p(``)},t[13]=l,t[14]=o,t[15]=T):T=t[15];let E=T,te;t[16]!==l||t[17]!==o?(te=e=>{l({type:o,variantId:e._id}),p(``)},t[16]=l,t[17]=Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$d as t,Al as n,Ao as r,Ar as i,Cc as a,Cs as o,Es as s,Ft as c,Gc as l,Ho as u,Ic as d,Jc as f,Jd as p,Kc as m,Nd as h,Oc as g,Pc as _,Pr as v,Qd as y,Sd as b,Tl as x,To as S,Tu as C,Ul as w,Wc as T,Wd as E,Wr as D,Xd as O,Yd as k,Ys as A,Zd as j,_ as M,am as N,cc as P,da as F,dc as I,dd as L,do as R,ec as z,ed as B,ef as V,el as ee,f as H,fd as U,im as te,ir as W,jd as G,jl as K,jo as ne,lc as re,nc as ie,nl as ae,oc as oe,ol as se,pc as ce,pd as le,qc as ue,rc as q,sc as de,sd as fe,tn as pe,ts as me,wl as he,wo as ge,wu as _e,zs as ve}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as ye,t as be}from"./jsx-runtime-BpzPEenQ.js";import{t as xe}from"./compiler-runtime-sKsOXjDo.js";import{X as Se,ct as Ce,ht as we,nt as Te,rt as Ee,xt as De}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{In as Oe,Lt as ke,Mn as Ae,N as je,Pn as Me,U as Ne,V as Pe,vn as Fe}from"./types--2f-avvL-DfAXA8nG.js";import{A as Ie,B as Le,Et as Re,O as ze,St as J,T as Be,Zt as Ve,bt as He,ct as Ue,et as We,f as Ge,n as Ke,r as Y,s as qe,t as X,xt as Je,yt as Ye}from"./dist-LVcARZxB.js";import{o as Xe}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Ze}from"./Close-B_ZEgT1V.js";import{t as Qe}from"./ChevronDown-BpYUc-AP.js";import{t as $e}from"./Checkmark-OT7tsNpL.js";import{t as et}from"./Clock-ClG7Ty9T.js";import{t as tt}from"./Calendar-DCYqUUNo.js";import{t as nt}from"./Search-QbUIQb6W.js";import{t as rt}from"./EarthGlobe-Dqu4Dt_R.js";import{t as it}from"./EllipsisHorizontal-BuWLk1Hy.js";import{t as at}from"./ErrorOutline-Cl-3_nRG.js";import{t as ot}from"./EarthAmericas-DLWVWv9X.js";import{t as st}from"./Trash-BxG6GrjH.js";import{t as ct}from"./Edit-CAHlBqGT.js";import{t as lt}from"./Documents-C8KrBFzU.js";import{t as ut}from"./Add-CwQ5TpM8.js";import{t as dt}from"./HelpCircle-8HZ3whUD.js";import{t as ft}from"./Desktop-msdzf3th.js";import{t as pt}from"./Sort-CFTgH29c.js";import{t as mt}from"./CheckmarkCircle-B6SBY4QE.js";import{t as ht}from"./Users-BDbacX-A.js";import{t as gt}from"./Star-_p_HG-Ts.js";import{t as _t}from"./SplitVertical-uh7MyVDf.js";import{t as vt}from"./Target-6sSmw-4o.js";import{CaseIcon as yt}from"./Case-DLvh8XKv.js";import{FilterIcon as bt}from"./Filter-DVm6AUFi.js";import{MobileDeviceIcon as xt}from"./MobileDevice-Clwl1mh3.js";import{PackageIcon as St}from"./Package-Cu1J_18S.js";import{RocketIcon as Ct}from"./Rocket-Bz8xe-Ev.js";import{TagIcon as wt}from"./Tag-B92Ks4XI.js";import{TranslateIcon as Tt}from"./Translate-BQn_K-lK.js";import{UserIcon as Et}from"./User-BbvVoXNB.js";import{a as Dt,c as Ot,i as kt,n as At,r as jt,s as Mt,t as Nt,u as Pt}from"./searchDocumentRelease-CGTwubjG-BxLZ0LzN.js";import{a as Ft,i as It,n as Lt,o as Rt,s as zt,t as Bt}from"./ConditionMismatchIndicator-_CvVlfbg-C52eZmJT.js";function Vt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ht(e){return typeof e==`object`&&!!e&&typeof e._key==`string`&&e._key||null}function Ut(e,t){if(typeof t==`number`)return Gt(e.length,t);if(y(t)){let n=e.findIndex(e=>Ht(e)===t._key);return n===-1?null:n}throw Error(`Expected path segment to be addressing a single array item either by numeric index or by '_key'. Instead saw ${JSON.stringify(t)}`)}function Wt(e,t){return e===`before`?t:t+1}function Gt(e,t){if(e===0&&(t===-1||t===0))return 0;let n=t<0?e+t:t;return n>=e||n<0?null:n}function Kt(e,t,n,r){let i=e.slice();return i.splice(t,n,...r||[]),i}function qt(e,t){let n={...e};for(let e of t)delete n[e];return n}function Jt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "insert()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to insert ${e.position}`);return t.length===0?e.items:Kt(t,Wt(e.position,n),0,e.items)}function Yt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "upsert()" on non-array value`);if(e.items.length===0)return t;let n={},r=[];e.items.forEach((e,i)=>{let a=t.findIndex(t=>t?._key===e._key);a>=0?n[a]=i:r.push(e)});let i=Object.keys(n);if(i.length===0&&r.length==0)return t;let a=[...t];for(let t of i){let r=Number(t);a[r]=e.items[n[r]]}return Jt({items:r,referenceItem:e.referenceItem,position:e.position},a)}function Xt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "insertIfMissing()" on non-array value`);if(e.items.length===0)return t;let n=e.items.filter(e=>!t.find(t=>e._key===t?._key));return n.length===0?t:Jt({items:n,referenceItem:e.referenceItem,position:e.position},t)}function Zt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "replace()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to replace`);return Kt(t,n,e.items.length,e.items)}function Qt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "remove()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to replace`);return Kt(t,n,1,[])}function $t(e,t){if(!Array.isArray(t))throw TypeELine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{$d as t,Al as n,Ao as r,Ar as i,Cc as a,Cs as o,Es as s,Ft as c,Gc as l,Ho as u,Ic as d,Jc as f,Jd as p,Kc as m,Nd as h,Oc as g,Pc as _,Pr as v,Qd as y,Sd as b,Tl as x,To as S,Tu as C,Ul as w,Wc as T,Wd as E,Wr as D,Xd as O,Yd as k,Ys as A,Zd as j,_ as M,am as N,cc as P,da as F,dc as I,dd as L,do as R,ec as z,ed as B,ef as V,el as ee,f as H,fd as U,im as te,ir as W,jd as G,jl as K,jo as ne,lc as re,nc as ie,nl as ae,oc as oe,ol as se,pc as ce,pd as le,qc as ue,rc as q,sc as de,sd as fe,tn as pe,ts as me,wl as he,wo as ge,wu as _e,zs as ve}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as ye,t as be}from"./jsx-runtime-BpzPEenQ.js";import{t as xe}from"./compiler-runtime-sKsOXjDo.js";import{X as Se,ct as Ce,ht as we,nt as Te,rt as Ee,xt as De}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{In as Oe,Lt as ke,Mn as Ae,N as je,Pn as Me,U as Ne,V as Pe,vn as Fe}from"./types--2f-avvL-CUBrVRGR.js";import{A as Ie,B as Le,Et as Re,O as ze,St as J,T as Be,Zt as Ve,bt as He,ct as Ue,et as We,f as Ge,n as Ke,r as Y,s as qe,t as X,xt as Je,yt as Ye}from"./dist-LVcARZxB.js";import{o as Xe}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as Ze}from"./Close-B_ZEgT1V.js";import{t as Qe}from"./ChevronDown-BpYUc-AP.js";import{t as $e}from"./Checkmark-OT7tsNpL.js";import{t as et}from"./Clock-ClG7Ty9T.js";import{t as tt}from"./Calendar-DCYqUUNo.js";import{t as nt}from"./Search-QbUIQb6W.js";import{t as rt}from"./EarthGlobe-Dqu4Dt_R.js";import{t as it}from"./EllipsisHorizontal-BuWLk1Hy.js";import{t as at}from"./ErrorOutline-Cl-3_nRG.js";import{t as ot}from"./EarthAmericas-DLWVWv9X.js";import{t as st}from"./Trash-BxG6GrjH.js";import{t as ct}from"./Edit-CAHlBqGT.js";import{t as lt}from"./Documents-C8KrBFzU.js";import{t as ut}from"./Add-CwQ5TpM8.js";import{t as dt}from"./HelpCircle-8HZ3whUD.js";import{t as ft}from"./Desktop-msdzf3th.js";import{t as pt}from"./Sort-CFTgH29c.js";import{t as mt}from"./CheckmarkCircle-B6SBY4QE.js";import{t as ht}from"./Users-BDbacX-A.js";import{t as gt}from"./Star-_p_HG-Ts.js";import{t as _t}from"./SplitVertical-uh7MyVDf.js";import{t as vt}from"./Target-6sSmw-4o.js";import{CaseIcon as yt}from"./Case-DLvh8XKv.js";import{FilterIcon as bt}from"./Filter-DVm6AUFi.js";import{MobileDeviceIcon as xt}from"./MobileDevice-Clwl1mh3.js";import{PackageIcon as St}from"./Package-Cu1J_18S.js";import{RocketIcon as Ct}from"./Rocket-Bz8xe-Ev.js";import{TagIcon as wt}from"./Tag-B92Ks4XI.js";import{TranslateIcon as Tt}from"./Translate-BQn_K-lK.js";import{UserIcon as Et}from"./User-BbvVoXNB.js";import{a as Dt,c as Ot,i as kt,n as At,r as jt,s as Mt,t as Nt,u as Pt}from"./searchDocumentRelease-CGTwubjG-BI28zlQl.js";import{a as Ft,i as It,n as Lt,o as Rt,s as zt,t as Bt}from"./ConditionMismatchIndicator-_CvVlfbg-AqTbIONm.js";function Vt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Ht(e){return typeof e==`object`&&!!e&&typeof e._key==`string`&&e._key||null}function Ut(e,t){if(typeof t==`number`)return Gt(e.length,t);if(y(t)){let n=e.findIndex(e=>Ht(e)===t._key);return n===-1?null:n}throw Error(`Expected path segment to be addressing a single array item either by numeric index or by '_key'. Instead saw ${JSON.stringify(t)}`)}function Wt(e,t){return e===`before`?t:t+1}function Gt(e,t){if(e===0&&(t===-1||t===0))return 0;let n=t<0?e+t:t;return n>=e||n<0?null:n}function Kt(e,t,n,r){let i=e.slice();return i.splice(t,n,...r||[]),i}function qt(e,t){let n={...e};for(let e of t)delete n[e];return n}function Jt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "insert()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to insert ${e.position}`);return t.length===0?e.items:Kt(t,Wt(e.position,n),0,e.items)}function Yt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "upsert()" on non-array value`);if(e.items.length===0)return t;let n={},r=[];e.items.forEach((e,i)=>{let a=t.findIndex(t=>t?._key===e._key);a>=0?n[a]=i:r.push(e)});let i=Object.keys(n);if(i.length===0&&r.length==0)return t;let a=[...t];for(let t of i){let r=Number(t);a[r]=e.items[n[r]]}return Jt({items:r,referenceItem:e.referenceItem,position:e.position},a)}function Xt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "insertIfMissing()" on non-array value`);if(e.items.length===0)return t;let n=e.items.filter(e=>!t.find(t=>e._key===t?._key));return n.length===0?t:Jt({items:n,referenceItem:e.referenceItem,position:e.position},t)}function Zt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "replace()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to replace`);return Kt(t,n,e.items.length,e.items)}function Qt(e,t){if(!Array.isArray(t))throw TypeError(`Cannot apply "remove()" on non-array value`);let n=Ut(t,e.referenceItem);if(n===null)throw Error(`Found no matching array element to replace`);return Kt(t,n,1,[])}function $t(e,t){if(!Array.isArray(t))throw TypeELine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Df as e,Ef as t,Gd as n,Kd as r,Vl as i,Wd as a,qd as o,yc as s}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{i as c,r as l}from"./helpers-D_aQC6Do-BbFlOJg3.js";function u(e,t){let i=r(e,t),a=n(i),s=_(a);return{patches:o(e,a,{margin:15}),levenshtein:s}}function d(e,t){return a(t,e,{allowExceedingIndices:!0,margin:15})[0]}function f(e){return e.children.map(e=>t(e)?e.text.replaceAll(``,` `):``).join(``)}var p=[``,``],m=RegExp(`[${p.join(``)}]`,`g`),h=[];function g(t){let{value:n,comments:r,documentValue:a,basePath:o}=t;if(!n||n.length===0)return h;let g=r.filter(l),_=[];return g.forEach(t=>{let r=[];if(a!==void 0&&o){let e=c(t.target.path?.field);if(!e||!i(o,e))return;r=e.slice(o.length)}t.target.path?.selection?.value.forEach(i=>{let a=r.length>0?s(n,[...r,{_key:i._key}]):n.find(e=>e._key===i._key);if(!e(a))return;let o=i.text.replaceAll(m,``),c=f(a),{patches:l}=u(o,i.text),h=d(c,l),g=h.indexOf(p[0]),v=h.replaceAll(p[0],``).indexOf(p[1]),y=h.replaceAll(m,``),b=i.text.slice(i.text.indexOf(p[0])+1,i.text.indexOf(p[1])),x=y.slice(g,v),{levenshtein:S}=u(x,b),C=Math.round(x.length+b.length/2),w=!1;if(x.length===0&&(w=!0),S>C&&(w=!0),g+1===v&&(w=!0),g!==-1&&v!==-1){let e=0,n=0,i=0,o=0;for(let t=0;t<y.length&&(y[t]===``&&(t<=g&&(n=-1,e++),o=-1,i++),t<g&&n++,t<g+x.length&&o++,t!==g+x.length);t++);_.push({selection:{anchor:{path:[...r,{_key:a._key},`children`,{_key:a.children[e]._key}],offset:n},focus:{path:[...r,{_key:a._key},`children`,{_key:a.children[i]._key}],offset:o}},comment:t,range:{_key:a._key,text:w?``:h}})}})}),_.length===0?h:_}function _(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i][0],o=e[i][1];switch(a){case 1:n+=o.length;break;case-1:r+=o.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+=Math.max(n,r),t}export{g as n,p as t};
|
||||
import{Df as e,Ef as t,Gd as n,Kd as r,Vl as i,Wd as a,qd as o,yc as s}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{i as c,r as l}from"./helpers-D_aQC6Do-Cc0nAXnJ.js";function u(e,t){let i=r(e,t),a=n(i),s=_(a);return{patches:o(e,a,{margin:15}),levenshtein:s}}function d(e,t){return a(t,e,{allowExceedingIndices:!0,margin:15})[0]}function f(e){return e.children.map(e=>t(e)?e.text.replaceAll(``,` `):``).join(``)}var p=[``,``],m=RegExp(`[${p.join(``)}]`,`g`),h=[];function g(t){let{value:n,comments:r,documentValue:a,basePath:o}=t;if(!n||n.length===0)return h;let g=r.filter(l),_=[];return g.forEach(t=>{let r=[];if(a!==void 0&&o){let e=c(t.target.path?.field);if(!e||!i(o,e))return;r=e.slice(o.length)}t.target.path?.selection?.value.forEach(i=>{let a=r.length>0?s(n,[...r,{_key:i._key}]):n.find(e=>e._key===i._key);if(!e(a))return;let o=i.text.replaceAll(m,``),c=f(a),{patches:l}=u(o,i.text),h=d(c,l),g=h.indexOf(p[0]),v=h.replaceAll(p[0],``).indexOf(p[1]),y=h.replaceAll(m,``),b=i.text.slice(i.text.indexOf(p[0])+1,i.text.indexOf(p[1])),x=y.slice(g,v),{levenshtein:S}=u(x,b),C=Math.round(x.length+b.length/2),w=!1;if(x.length===0&&(w=!0),S>C&&(w=!0),g+1===v&&(w=!0),g!==-1&&v!==-1){let e=0,n=0,i=0,o=0;for(let t=0;t<y.length&&(y[t]===``&&(t<=g&&(n=-1,e++),o=-1,i++),t<g&&n++,t<g+x.length&&o++,t!==g+x.length);t++);_.push({selection:{anchor:{path:[...r,{_key:a._key},`children`,{_key:a.children[e]._key}],offset:n},focus:{path:[...r,{_key:a._key},`children`,{_key:a.children[i]._key}],offset:o}},comment:t,range:{_key:a._key,text:w?``:h}})}})}),_.length===0?h:_}function _(e){let t=0,n=0,r=0;for(let i=0;i<e.length;i++){let a=e[i][0],o=e[i][1];switch(a){case 1:n+=o.length;break;case-1:r+=o.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+=Math.max(n,r),t}export{g as n,p as t};
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"createdAt": "2026-10-02T17:51:01.306Z",
|
||||
"createdAt": "2026-10-02T19:14:31.055Z",
|
||||
"studioVersion": "6.17.0",
|
||||
"version": 3,
|
||||
"workspaces": [
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Ef as n,Fl as r,ju as i}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";var s=e(a(),1),c=o();function l(e){let t=(0,c.c)(3),[n]=(0,s.useState)(e),r;return t[0]!==e||t[1]!==n?(r=i(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],!r}function u(e){return e?e?.some(e=>t(e)&&(e?.children||[])?.some(e=>n(e)?e.text:e.userId)):!1}function d(e,t){let n=e?.context?.intent,r=t?.context?.intent;if(r&&(!n||`preview`in r.params&&`preview`in n.params&&r.params.preview!==n.params.preview))return r}function f(e){if(e)try{return r(e)}catch{return}}function p(e){return e?!!(e?.target?.path?.selection?.type===`text`&&e?.target?.path?.selection?.value):!1}export{l as a,f as i,u as n,p as r,d as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Df as t,Ef as n,Fl as r,ju as i}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as a}from"./jsx-runtime-BpzPEenQ.js";import{t as o}from"./compiler-runtime-sKsOXjDo.js";var s=e(a(),1),c=o();function l(e){let t=(0,c.c)(3),[n]=(0,s.useState)(e),r;return t[0]!==e||t[1]!==n?(r=i(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],!r}function u(e){return e?e?.some(e=>t(e)&&(e?.children||[])?.some(e=>n(e)?e.text:e.userId)):!1}function d(e,t){let n=e?.context?.intent,r=t?.context?.intent;if(r&&(!n||`preview`in r.params&&`preview`in n.params&&r.params.preview!==n.params.preview))return r}function f(e){if(e)try{return r(e)}catch{return}}function p(e){return e?!!(e?.target?.path?.selection?.type===`text`&&e?.target?.path?.selection?.value):!1}export{l as a,f as i,u as n,p as r,d as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{Yl as e,xo as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{B as i,Et as a,St as o,f as s,r as c,s as l,t as u}from"./dist-LVcARZxB.js";import{t as d}from"./WarningOutline-DOBjmorn.js";import{t as f}from"./Calendar-DCYqUUNo.js";import{g as p,m,p as h,v as g}from"./validationUtils-Dwef0BLR-DSZmlLZW.js";var _=r(),v=n();function y(e){let t=(0,_.c)(24),{id:n,markers:r}=e,i=m(n),{hasError:s}=p(r),y;t[0]===i?y=t[1]:(y={documentId:i,state:`scheduled`},t[0]=i,t[1]=y);let{schedules:x}=h(y),{mode:S}=g();if(!(x.length>0))return null;let C;t[2]===S?C=t[3]:(C=S===`upsell`&&(0,v.jsx)(a,{tone:`caution`,padding:3,radius:3,shadow:1,marginBottom:3,children:(0,v.jsxs)(c,{alignItems:`center`,gap:3,padding:1,children:[(0,v.jsx)(o,{muted:!0,size:1,children:(0,v.jsx)(d,{})}),(0,v.jsx)(o,{muted:!0,size:1,weight:`medium`,children:`Scheduled publishing is not available on your current plan`})]})}),t[2]=S,t[3]=C);let w=s?`critical`:`primary`,T;t[4]===S?T=t[5]:(T=S===`upsell`?{opacity:.7}:void 0,t[4]=S,t[5]=T);let E;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,v.jsx)(o,{muted:!0,size:1,children:(0,v.jsx)(f,{})}),t[6]=E):E=t[6];let D;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,v.jsxs)(c,{alignItems:`center`,gap:3,marginBottom:1,padding:1,children:[E,(0,v.jsxs)(o,{muted:!0,size:1,children:[(0,v.jsx)(`span`,{style:{fontWeight:600},children:`Upcoming schedule`}),` (local time)`]})]}),t[7]=D):D=t[7];let O;t[8]===x?O=t[9]:(O=x.map(b),t[8]=x,t[9]=O);let k;t[10]===O?k=t[11]:(k=(0,v.jsx)(l,{gap:2,children:O}),t[10]=O,t[11]=k);let A;t[12]===s?A=t[13]:(A=s&&(0,v.jsx)(u,{marginTop:3,children:(0,v.jsx)(o,{muted:!0,size:1,weight:`regular`,children:`This document has validation errors that should be resolved before its publish date.`})}),t[12]=s,t[13]=A);let j;t[14]!==k||t[15]!==A?(j=(0,v.jsxs)(l,{gap:2,children:[D,k,A]}),t[14]=k,t[15]=A,t[16]=j):j=t[16];let M;t[17]!==w||t[18]!==T||t[19]!==j?(M=(0,v.jsx)(a,{padding:3,radius:1,shadow:1,tone:w,style:T,children:j}),t[17]=w,t[18]=T,t[19]=j,t[20]=M):M=t[20];let N;return t[21]!==C||t[22]!==M?(N=(0,v.jsxs)(u,{marginBottom:4,children:[C,M]}),t[21]=C,t[22]=M,t[23]=N):N=t[23],N}function b(n){if(!n.executeAt)return null;let r=e(new Date(n.executeAt),t.LARGE);return(0,v.jsxs)(i,{gap:2,children:[(0,v.jsx)(o,{muted:!0,size:1,children:r}),(0,v.jsx)(c,{style:{opacity:+(n.action===`unpublish`)},children:(0,v.jsx)(s,{fontSize:0,children:n.action})})]},n.id)}function x(e){let t=(0,_.c)(8),{value:n,validation:r,children:i}=e,a=n,o;t[0]===r?o=t[1]:(o=r.map(S),t[0]=r,t[1]=o);let s=o,c;t[2]!==a||t[3]!==s?(c=a?._id?(0,v.jsx)(y,{id:a._id,markers:s}):null,t[2]=a,t[3]=s,t[4]=c):c=t[4];let l;return t[5]!==i||t[6]!==c?(l=(0,v.jsxs)(v.Fragment,{children:[c,i]}),t[5]=i,t[6]=c,t[7]=l):l=t[7],l}function S(e){return{level:e.level,path:e.path,item:{message:e.message},message:e.message}}var C=e=>{let t=(0,_.c)(7),{schemaType:n}=e;if(w(n).name===`document`){let n;t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,v.jsx)(x,{...e,children:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r}let r;return t[5]===e?r=t[6]:(r=e.renderDefault(e),t[5]=e,t[6]=r),r};function w(e){return e.type?w(e.type):e}export{C as DocumentBannerInput};
|
||||
import{Yl as e,xo as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{t as n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";import{B as i,Et as a,St as o,f as s,r as c,s as l,t as u}from"./dist-LVcARZxB.js";import{t as d}from"./WarningOutline-DOBjmorn.js";import{t as f}from"./Calendar-DCYqUUNo.js";import{g as p,m,p as h,v as g}from"./validationUtils-Dwef0BLR-aKs6KPwC.js";var _=r(),v=n();function y(e){let t=(0,_.c)(24),{id:n,markers:r}=e,i=m(n),{hasError:s}=p(r),y;t[0]===i?y=t[1]:(y={documentId:i,state:`scheduled`},t[0]=i,t[1]=y);let{schedules:x}=h(y),{mode:S}=g();if(!(x.length>0))return null;let C;t[2]===S?C=t[3]:(C=S===`upsell`&&(0,v.jsx)(a,{tone:`caution`,padding:3,radius:3,shadow:1,marginBottom:3,children:(0,v.jsxs)(c,{alignItems:`center`,gap:3,padding:1,children:[(0,v.jsx)(o,{muted:!0,size:1,children:(0,v.jsx)(d,{})}),(0,v.jsx)(o,{muted:!0,size:1,weight:`medium`,children:`Scheduled publishing is not available on your current plan`})]})}),t[2]=S,t[3]=C);let w=s?`critical`:`primary`,T;t[4]===S?T=t[5]:(T=S===`upsell`?{opacity:.7}:void 0,t[4]=S,t[5]=T);let E;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(E=(0,v.jsx)(o,{muted:!0,size:1,children:(0,v.jsx)(f,{})}),t[6]=E):E=t[6];let D;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(D=(0,v.jsxs)(c,{alignItems:`center`,gap:3,marginBottom:1,padding:1,children:[E,(0,v.jsxs)(o,{muted:!0,size:1,children:[(0,v.jsx)(`span`,{style:{fontWeight:600},children:`Upcoming schedule`}),` (local time)`]})]}),t[7]=D):D=t[7];let O;t[8]===x?O=t[9]:(O=x.map(b),t[8]=x,t[9]=O);let k;t[10]===O?k=t[11]:(k=(0,v.jsx)(l,{gap:2,children:O}),t[10]=O,t[11]=k);let A;t[12]===s?A=t[13]:(A=s&&(0,v.jsx)(u,{marginTop:3,children:(0,v.jsx)(o,{muted:!0,size:1,weight:`regular`,children:`This document has validation errors that should be resolved before its publish date.`})}),t[12]=s,t[13]=A);let j;t[14]!==k||t[15]!==A?(j=(0,v.jsxs)(l,{gap:2,children:[D,k,A]}),t[14]=k,t[15]=A,t[16]=j):j=t[16];let M;t[17]!==w||t[18]!==T||t[19]!==j?(M=(0,v.jsx)(a,{padding:3,radius:1,shadow:1,tone:w,style:T,children:j}),t[17]=w,t[18]=T,t[19]=j,t[20]=M):M=t[20];let N;return t[21]!==C||t[22]!==M?(N=(0,v.jsxs)(u,{marginBottom:4,children:[C,M]}),t[21]=C,t[22]=M,t[23]=N):N=t[23],N}function b(n){if(!n.executeAt)return null;let r=e(new Date(n.executeAt),t.LARGE);return(0,v.jsxs)(i,{gap:2,children:[(0,v.jsx)(o,{muted:!0,size:1,children:r}),(0,v.jsx)(c,{style:{opacity:+(n.action===`unpublish`)},children:(0,v.jsx)(s,{fontSize:0,children:n.action})})]},n.id)}function x(e){let t=(0,_.c)(8),{value:n,validation:r,children:i}=e,a=n,o;t[0]===r?o=t[1]:(o=r.map(S),t[0]=r,t[1]=o);let s=o,c;t[2]!==a||t[3]!==s?(c=a?._id?(0,v.jsx)(y,{id:a._id,markers:s}):null,t[2]=a,t[3]=s,t[4]=c):c=t[4];let l;return t[5]!==i||t[6]!==c?(l=(0,v.jsxs)(v.Fragment,{children:[c,i]}),t[5]=i,t[6]=c,t[7]=l):l=t[7],l}function S(e){return{level:e.level,path:e.path,item:{message:e.message},message:e.message}}var C=e=>{let t=(0,_.c)(7),{schemaType:n}=e;if(w(n).name===`document`){let n;t[0]===e?n=t[1]:(n=e.renderDefault(e),t[0]=e,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,v.jsx)(x,{...e,children:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r}let r;return t[5]===e?r=t[6]:(r=e.renderDefault(e),t[5]=e,t[6]=r),r};function w(e){return e.type?w(e.type):e}export{C as DocumentBannerInput};
|
||||
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,As as n,Cs as r,Eo as i,Lo as a,Na as o,Nd as s,Sd as c,Vo as l,Vs as u,Wc as d,Zf as f,_n as p,dn as m,ed as h,fa as g,hn as _,ko as v,ks as y,nc as b,rc as x,yo as S}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as C,t as w}from"./jsx-runtime-BpzPEenQ.js";import{t as T}from"./compiler-runtime-sKsOXjDo.js";import{ht as E}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import"./CommentsProvider-DHVaZIPI-DonUdARw.js";import"./types--2f-avvL-DfAXA8nG.js";import{$ as D,Dt as O,G as k,Gt as A,I as j,J as M,K as N,Q as P,St as F,Ut as I,Z as L,Zt as R,et as z,j as B,q as V,r as H,t as ee}from"./dist-LVcARZxB.js";import{o as te}from"./stegaClean-YZRATV86-BdUaXCkw.js";import"./SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js";import"./CommentsListItem-B4CoDHda-B92j42qR.js";import"./CommentsList-CmhU6-yt-CzUxgKBX.js";import"./CommentsEnabledProvider-CEeES47b-BEr5KMWm.js";import"./useAddonDataset-BvCgByG6-PgDcQUJg.js";import"./useComments-Bi1m7AzT-CGyuZP86.js";import"./CommentsEnabledProvider-By3TCGFl-gLI34tgD.js";import"./AddonDatasetProvider-CF_RtUZo-BoMlopck.js";var U=e(C(),1),W=T(),G=w();(0,U.memo)(function(e){let t=(0,W.c)(3),{children:n,getIntent:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,G.jsx)(f.Provider,{value:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i});function K(e){let t=(0,W.c)(19),{draft:n,published:i,versions:a,singleLine:o}=e,{data:l}=r(),u;t[0]===a?u=t[1]:(u=Object.entries(a??{}),t[0]=a,t[1]=u);let f=u,{t:p}=c(),{document:m}=s(),{drafts:h}=m,{enabled:g}=h,_=o?`center`:`flex-start`,v=o?`row`:`column`,y;t[2]!==i||t[3]!==p?(y=i&&(0,G.jsx)(J,{title:p(`release.chip.published`),mode:`published`,timestamp:i._updatedAt,release:`published`}),t[2]=i,t[3]=p,t[4]=y):y=t[4];let b;t[5]!==n||t[6]!==g||t[7]!==p?(b=g&&n&&(0,G.jsx)(J,{title:p(`release.chip.draft`),mode:`draft`,timestamp:n._updatedAt,release:`drafts`}),t[5]=n,t[6]=g,t[7]=p,t[8]=b):b=t[8];let x;t[9]!==l||t[10]!==p||t[11]!==f?(x=f.map(e=>{let[t,n]=e;if(!n)return null;let r=l?.find(e=>d(e._id)===t);return r?(0,G.jsx)(J,{mode:n._updatedAt===n._createdAt?`created`:`edited`,title:r?.metadata.title||p(`release.placeholder-untitled-release`),timestamp:n?._updatedAt,release:r},t):null}),t[9]=l,t[10]=p,t[11]=f,t[12]=x):x=t[12];let S;return t[13]!==_||t[14]!==v||t[15]!==y||t[16]!==b||t[17]!==x?(S=(0,G.jsxs)(H,{alignItems:_,flexDirection:v,gap:3,flexWrap:`nowrap`,children:[y,b,x]}),t[13]=_,t[14]=v,t[15]=y,t[16]=b,t[17]=x,t[18]=S):S=t[18],S}var q={draft:`document-status.edited`,published:`document-status.published`,edited:`document-status.edited`,created:`document-status.created`},J=e=>{let t=(0,W.c)(16),{title:n,timestamp:r,mode:i,release:a}=e,{t:o}=c(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={minimal:!0,useTemporalPhrase:!0},t[0]=s):s=t[0];let l=g(r||``,s),u;t[1]===a?u=t[2]:(u=(0,G.jsx)(v,{release:a,padding:0}),t[1]=a,t[2]=u);let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d={color:`var(--card-muted-fg-color)`},t[3]=d):d=t[3];let f=q[i],p;t[4]!==l||t[5]!==o||t[6]!==f?(p=o(f,{date:l}),t[4]=l,t[5]=o,t[6]=f,t[7]=p):p=t[7];let m;t[8]===p?m=t[9]:(m=(0,G.jsx)(`span`,{style:d,children:p}),t[8]=p,t[9]=m);let h;t[10]!==m||t[11]!==n?(h=(0,G.jsxs)(F,{size:1,children:[n,` -`,` `,m]}),t[10]=m,t[11]=n,t[12]=h):h=t[12];let _;return t[13]!==u||t[14]!==h?(_=(0,G.jsxs)(H,{alignItems:`center`,gap:2,children:[u,h]}),t[13]=u,t[14]=h,t[15]=_):_=t[15],_},Y=A.div.withConfig({displayName:`Dot`,componentId:`sc-jh1t10-0`})(e=>{let{$index:t}=e,n={asap:l.asap.tone,scheduled:l.scheduled.tone,undecided:l.undecided.tone};return I`width:5px;height:5px;background-color:var(--card-icon-color);border-radius:999px;box-shadow:0 0 0 1px var(--card-bg-color);z-index:${t};&[data-status='published']{--card-icon-color:var(--card-badge-positive-dot-color);}&[data-status='draft']{--card-icon-color:var(--card-badge-caution-dot-color);}&[data-status='asap']{--card-icon-color:var(--card-badge-${n.asap}-dot-color);}&[data-status='undecided']{--card-icon-color:var(--card-badge-${n.undecided}-dot-color);}&[data-status='scheduled']{--card-icon-color:var(--card-badge-${n.scheduled}-dot-color);}`});function X(e){let t=(0,W.c)(21),{draft:n,published:i,versions:a}=e,{data:o}=r(),{document:c}=s(),{drafts:l}=c,{enabled:u}=l,f;t[0]!==o||t[1]!==a?(f=a?Object.entries(a).map(e=>{let[t,n]=e;if(n)return(o?.find(e=>d(e._id)===t))?.metadata.releaseType}):[],t[0]=o,t[1]=a,t[2]=f):f=t[2];let p=f,m=!!i,h;t[3]===m?h=t[4]:(h={status:`published`,show:m},t[3]=m,t[4]=h);let g=u&&!!n,_;t[5]===g?_=t[6]:(_={status:`draft`,show:g},t[5]=g,t[6]=_);let v=p.includes(`asap`),y;t[7]===v?y=t[8]:(y={status:`asap`,show:v},t[7]=v,t[8]=y);let b=p.includes(`scheduled`),x;t[9]===b?x=t[10]:(x={status:`scheduled`,show:b},t[9]=b,t[10]=x);let S=p.includes(`undecided`),C;t[11]===S?C=t[12]:(C={status:`undecided`,show:S},t[11]=S,t[12]=C);let w;t[13]!==x||t[14]!==C||t[15]!==h||t[16]!==_||t[17]!==y?(w=[h,_,y,x,C],t[13]=x,t[14]=C,t[15]=h,t[16]=_,t[17]=y,t[18]=w):w=t[18];Line truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Ar as t,As as n,Cs as r,Eo as i,Lo as a,Na as o,Nd as s,Sd as c,Vo as l,Vs as u,Wc as d,Zf as f,_n as p,dn as m,ed as h,fa as g,hn as _,ko as v,ks as y,nc as b,rc as x,yo as S}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as C,t as w}from"./jsx-runtime-BpzPEenQ.js";import{t as T}from"./compiler-runtime-sKsOXjDo.js";import{ht as E}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import"./CommentsProvider-DHVaZIPI-2Crq30kn.js";import"./types--2f-avvL-CUBrVRGR.js";import{$ as D,Dt as O,G as k,Gt as A,I as j,J as M,K as N,Q as P,St as F,Ut as I,Z as L,Zt as R,et as z,j as B,q as V,r as H,t as ee}from"./dist-LVcARZxB.js";import{o as te}from"./stegaClean-YZRATV86-BdUaXCkw.js";import"./SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js";import"./CommentsListItem-B4CoDHda-DaXAEbir.js";import"./CommentsList-CmhU6-yt-B2twFKeQ.js";import"./CommentsEnabledProvider-CEeES47b-AmQjnwX5.js";import"./useAddonDataset-BvCgByG6-N5vrKMLm.js";import"./useComments-Bi1m7AzT-DcZcKqsq.js";import"./CommentsEnabledProvider-By3TCGFl-C60crpzJ.js";import"./AddonDatasetProvider-CF_RtUZo-BdePhlKm.js";var U=e(C(),1),W=T(),G=w();(0,U.memo)(function(e){let t=(0,W.c)(3),{children:n,getIntent:r}=e,i;return t[0]!==n||t[1]!==r?(i=(0,G.jsx)(f.Provider,{value:r,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i});function K(e){let t=(0,W.c)(19),{draft:n,published:i,versions:a,singleLine:o}=e,{data:l}=r(),u;t[0]===a?u=t[1]:(u=Object.entries(a??{}),t[0]=a,t[1]=u);let f=u,{t:p}=c(),{document:m}=s(),{drafts:h}=m,{enabled:g}=h,_=o?`center`:`flex-start`,v=o?`row`:`column`,y;t[2]!==i||t[3]!==p?(y=i&&(0,G.jsx)(J,{title:p(`release.chip.published`),mode:`published`,timestamp:i._updatedAt,release:`published`}),t[2]=i,t[3]=p,t[4]=y):y=t[4];let b;t[5]!==n||t[6]!==g||t[7]!==p?(b=g&&n&&(0,G.jsx)(J,{title:p(`release.chip.draft`),mode:`draft`,timestamp:n._updatedAt,release:`drafts`}),t[5]=n,t[6]=g,t[7]=p,t[8]=b):b=t[8];let x;t[9]!==l||t[10]!==p||t[11]!==f?(x=f.map(e=>{let[t,n]=e;if(!n)return null;let r=l?.find(e=>d(e._id)===t);return r?(0,G.jsx)(J,{mode:n._updatedAt===n._createdAt?`created`:`edited`,title:r?.metadata.title||p(`release.placeholder-untitled-release`),timestamp:n?._updatedAt,release:r},t):null}),t[9]=l,t[10]=p,t[11]=f,t[12]=x):x=t[12];let S;return t[13]!==_||t[14]!==v||t[15]!==y||t[16]!==b||t[17]!==x?(S=(0,G.jsxs)(H,{alignItems:_,flexDirection:v,gap:3,flexWrap:`nowrap`,children:[y,b,x]}),t[13]=_,t[14]=v,t[15]=y,t[16]=b,t[17]=x,t[18]=S):S=t[18],S}var q={draft:`document-status.edited`,published:`document-status.published`,edited:`document-status.edited`,created:`document-status.created`},J=e=>{let t=(0,W.c)(16),{title:n,timestamp:r,mode:i,release:a}=e,{t:o}=c(),s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(s={minimal:!0,useTemporalPhrase:!0},t[0]=s):s=t[0];let l=g(r||``,s),u;t[1]===a?u=t[2]:(u=(0,G.jsx)(v,{release:a,padding:0}),t[1]=a,t[2]=u);let d;t[3]===Symbol.for(`react.memo_cache_sentinel`)?(d={color:`var(--card-muted-fg-color)`},t[3]=d):d=t[3];let f=q[i],p;t[4]!==l||t[5]!==o||t[6]!==f?(p=o(f,{date:l}),t[4]=l,t[5]=o,t[6]=f,t[7]=p):p=t[7];let m;t[8]===p?m=t[9]:(m=(0,G.jsx)(`span`,{style:d,children:p}),t[8]=p,t[9]=m);let h;t[10]!==m||t[11]!==n?(h=(0,G.jsxs)(F,{size:1,children:[n,` -`,` `,m]}),t[10]=m,t[11]=n,t[12]=h):h=t[12];let _;return t[13]!==u||t[14]!==h?(_=(0,G.jsxs)(H,{alignItems:`center`,gap:2,children:[u,h]}),t[13]=u,t[14]=h,t[15]=_):_=t[15],_},Y=A.div.withConfig({displayName:`Dot`,componentId:`sc-jh1t10-0`})(e=>{let{$index:t}=e,n={asap:l.asap.tone,scheduled:l.scheduled.tone,undecided:l.undecided.tone};return I`width:5px;height:5px;background-color:var(--card-icon-color);border-radius:999px;box-shadow:0 0 0 1px var(--card-bg-color);z-index:${t};&[data-status='published']{--card-icon-color:var(--card-badge-positive-dot-color);}&[data-status='draft']{--card-icon-color:var(--card-badge-caution-dot-color);}&[data-status='asap']{--card-icon-color:var(--card-badge-${n.asap}-dot-color);}&[data-status='undecided']{--card-icon-color:var(--card-badge-${n.undecided}-dot-color);}&[data-status='scheduled']{--card-icon-color:var(--card-badge-${n.scheduled}-dot-color);}`});function X(e){let t=(0,W.c)(21),{draft:n,published:i,versions:a}=e,{data:o}=r(),{document:c}=s(),{drafts:l}=c,{enabled:u}=l,f;t[0]!==o||t[1]!==a?(f=a?Object.entries(a).map(e=>{let[t,n]=e;if(n)return(o?.find(e=>d(e._id)===t))?.metadata.releaseType}):[],t[0]=o,t[1]=a,t[2]=f):f=t[2];let p=f,m=!!i,h;t[3]===m?h=t[4]:(h={status:`published`,show:m},t[3]=m,t[4]=h);let g=u&&!!n,_;t[5]===g?_=t[6]:(_={status:`draft`,show:g},t[5]=g,t[6]=_);let v=p.includes(`asap`),y;t[7]===v?y=t[8]:(y={status:`asap`,show:v},t[7]=v,t[8]=y);let b=p.includes(`scheduled`),x;t[9]===b?x=t[10]:(x={status:`scheduled`,show:b},t[9]=b,t[10]=x);let S=p.includes(`undecided`),C;t[11]===S?C=t[12]:(C={status:`undecided`,show:S},t[11]=S,t[12]=C);let w;t[13]!==x||t[14]!==C||t[15]!==h||t[16]!==_||t[17]!==y?(w=[h,_,y,x,C],t[13]=x,t[14]=C,t[15]=h,t[16]=_,t[17]=y,t[18]=w):w=t[18];Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-D7dq6hfV.js";import{Am as t,Ms as n,Va as r,am as i,ed as a,fr as o,gl as s,im as c,rc as l,wm as u}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as d,t as f}from"./jsx-runtime-BpzPEenQ.js";import{t as p}from"./compiler-runtime-sKsOXjDo.js";import{X as m,ht as h,nt as g,rt as _,xt as v}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{pr as y}from"./types--2f-avvL-DfAXA8nG.js";import{Gt as b,St as x,t as S}from"./dist-LVcARZxB.js";import{t as C}from"./ArrowLeft-x2OZCZTu.js";import{A as w,D as T,M as E,O as D,d as O,j as k,k as A,t as j,u as M}from"./BackLink-BBYTIbKc-C51ip22n.js";var N=e(d(),1),P=p(),F=f(),I={};function L(e,t){return`${e}:${t}`}function R(e){return e.type===`listItem`&&e.count!==void 0}function z(){return typeof document>`u`||document.visibilityState===`visible`}function B(e,t,n,r){return u(t.map(t=>e.unstable_observeDocumentCount(t.typeName,n,{tag:`structure.list-pane-counts`,variant:r}).pipe(h(e=>[L(t.id,t.typeName),e])))).pipe(h(e=>Object.fromEntries(e)))}function V(e,t){return t.pipe(g((e,t)=>e.active===t.active&&e.countsKey===t.countsKey),m(t=>(t.active?B(e,t.descriptors,t.perspectiveStack,t.variant).pipe(_(()=>v(I))):v(I)).pipe(c(I),h(e=>({countsKey:t.countsKey,counts:e})))),i((e,t)=>e.countsKey===t.countsKey?{...t,counts:{...e.counts,...t.counts}}:t,{countsKey:``,counts:I}),h(({counts:e})=>e))}function H(e,r){let i=(0,P.c)(25),o=r===void 0||r,c=s(),{perspectiveStack:l,selectedVariantName:u}=n(),[d,f]=(0,N.useState)(!1),p,m;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{let e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)},m=[],i[0]=p,i[1]=m):(p=i[0],m=i[1]),(0,N.useEffect)(p,m);let[h,g]=(0,N.useState)(z),_,v;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{let e=()=>g(z());return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},v=[],i[2]=_,i[3]=v):(_=i[2],v=i[3]),(0,N.useEffect)(_,v);let y,b,x;if(i[4]!==o||i[5]!==e||i[6]!==l||i[7]!==d||i[8]!==u||i[9]!==h){b=e.filter(R).map(W),y=d&&o&&h&&b.length>0;let t;i[13]===l?t=i[14]:(t=l.join(`,`),i[13]=l,i[14]=t),x=[t,u??``,...b.map(U).toSorted()],i[4]=o,i[5]=e,i[6]=l,i[7]=d,i[8]=u,i[9]=h,i[10]=y,i[11]=b,i[12]=x}else y=i[10],b=i[11],x=i[12];let S=x.join(`|`),C;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(C=new t({active:!1,descriptors:[],perspectiveStack:[],variant:void 0,countsKey:``}),i[15]=C):C=i[15];let w=C,T,E;i[16]!==y||i[17]!==S||i[18]!==b||i[19]!==l||i[20]!==u?(T=()=>{w.next({active:y,descriptors:b,perspectiveStack:l,variant:u,countsKey:S})},E=[w,y,b,l,u,S],i[16]=y,i[17]=S,i[18]=b,i[19]=l,i[20]=u,i[21]=T,i[22]=E):(T=i[21],E=i[22]),(0,N.useEffect)(T,E);let D;return i[23]===c?D=i[24]:(D=V(c,w),i[23]=c,i[24]=D),a(D,I)}function U(e){return L(e.id,e.typeName)}function W(e){return{id:e.id,typeName:e.count.type}}var G=b(S).withConfig({displayName:`DividerContainer`,componentId:`sc-9k1oad-0`})`display:flex;align-items:center;gap:1rem;margin:0.75rem 0 0.25rem 0;`,K=b.hr.withConfig({displayName:`Divider`,componentId:`sc-9k1oad-1`})`flex:1;background-color:var(--card-border-color);height:1px;margin:0;border:none;`,q=b(x).withConfig({displayName:`DividerTitle`,componentId:`sc-9k1oad-2`})`padding-bottom:0.75rem;padding-left:0.5rem;padding-right:0.5rem;`;function J(e){let t=(0,P.c)(5),{item:n}=e,{title:i}=r(n),a;t[0]===i?a=t[1]:(a=(0,F.jsx)(q,{weight:`semibold`,muted:!0,size:1,children:i}),t[0]=i,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(K,{}),t[2]=o):o=t[2];let s;return t[3]===a?s=t[4]:(s=(0,F.jsxs)(G,{children:[a,o]}),t[3]=a,t[4]=s),s}function Y(e){let t=(0,P.c)(23),{childItemId:n,items:r,isActive:i,layout:a,showIcons:s,title:c}=e,{collapsed:l}=k(),u=l===!1||!!i,d;t[0]===r?d=t[1]:(d=r??[],t[0]=r,t[1]=d);let f=H(d,u),p;t[2]===r?p=t[3]:(p=r?.filter(X),t[2]=r,t[3]=p);let m=o(p),h;t[4]===r?h=t[5]:(h=e=>r?.find((t,n)=>n===e)?.type===`divider`,t[4]=r,t[5]=h);let g=h,_;t[6]===s?_=t[7]:(_=e=>e.displayOptions?.showIcon??s??!1,t[6]=s,t[7]=_);let v=_,b;t[8]!==n||t[9]!==f||t[10]!==m||t[11]!==i||t[12]!==a||t[13]!==v?(b=(e,t)=>{let{virtualIndex:r}=t;if(e.type===`divider`)return(0,F.jsx)(S,{marginBottom:1,children:e.title?(0,F.jsx)(J,{item:e}):(0,F.jsx)(K,{})},`divider-${r}`);let o=!i&&n===e.id,s=i&&n===e.id,c=e._id&&e.schemaType?{_id:e._id,_type:e.schemaType.name,title:e.title}:void 0;return(0,F.jsx)(O,{count:e.count?f[L(e.id,e.count.type)]:void 0,icon:v(e)?e.icon:!1,id:e.id,layout:a,marginBottom:1,pressed:o,schemaType:e.schemaType,selected:s,title:m(e).title,value:c},e.id)},t[8]=n,t[9]=f,t[10]=m,t[11]=i,t[12]=a,t[13]=v,t[14]=b):b=t[14];let x=b,C=l?`hidden`:`auto`,w;t[15]!==g||t[16]!==r||t[17]!==x||t[18]!==c?(w=r&&r.length>0&&(0,F.jsx)(y,{activeItemDataAttr:`data-hovered`,ariaLabel:c,canReceiveFocus:!0,getItemDisabled:g,itemHeight:51,items:r,onlyShowSelectionWhenActive:!0,paddingBottom:1,paddingX:3,renderItem:x,wrapAround:!1}),t[15]=g,t[16]=r,t[17]=x,t[18]=c,t[19]=wLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-CQcSfzr9.js";import{Am as t,Ms as n,Va as r,am as i,ed as a,fr as o,gl as s,im as c,rc as l,wm as u}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as d,t as f}from"./jsx-runtime-BpzPEenQ.js";import{t as p}from"./compiler-runtime-sKsOXjDo.js";import{X as m,ht as h,nt as g,rt as _,xt as v}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{pr as y}from"./types--2f-avvL-CUBrVRGR.js";import{Gt as b,St as x,t as S}from"./dist-LVcARZxB.js";import{t as C}from"./ArrowLeft-x2OZCZTu.js";import{A as w,D as T,M as E,O as D,d as O,j as k,k as A,t as j,u as M}from"./BackLink-BBYTIbKc-DJkKvofp.js";var N=e(d(),1),P=p(),F=f(),I={};function L(e,t){return`${e}:${t}`}function R(e){return e.type===`listItem`&&e.count!==void 0}function z(){return typeof document>`u`||document.visibilityState===`visible`}function B(e,t,n,r){return u(t.map(t=>e.unstable_observeDocumentCount(t.typeName,n,{tag:`structure.list-pane-counts`,variant:r}).pipe(h(e=>[L(t.id,t.typeName),e])))).pipe(h(e=>Object.fromEntries(e)))}function V(e,t){return t.pipe(g((e,t)=>e.active===t.active&&e.countsKey===t.countsKey),m(t=>(t.active?B(e,t.descriptors,t.perspectiveStack,t.variant).pipe(_(()=>v(I))):v(I)).pipe(c(I),h(e=>({countsKey:t.countsKey,counts:e})))),i((e,t)=>e.countsKey===t.countsKey?{...t,counts:{...e.counts,...t.counts}}:t,{countsKey:``,counts:I}),h(({counts:e})=>e))}function H(e,r){let i=(0,P.c)(25),o=r===void 0||r,c=s(),{perspectiveStack:l,selectedVariantName:u}=n(),[d,f]=(0,N.useState)(!1),p,m;i[0]===Symbol.for(`react.memo_cache_sentinel`)?(p=()=>{let e=requestAnimationFrame(()=>f(!0));return()=>cancelAnimationFrame(e)},m=[],i[0]=p,i[1]=m):(p=i[0],m=i[1]),(0,N.useEffect)(p,m);let[h,g]=(0,N.useState)(z),_,v;i[2]===Symbol.for(`react.memo_cache_sentinel`)?(_=()=>{let e=()=>g(z());return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},v=[],i[2]=_,i[3]=v):(_=i[2],v=i[3]),(0,N.useEffect)(_,v);let y,b,x;if(i[4]!==o||i[5]!==e||i[6]!==l||i[7]!==d||i[8]!==u||i[9]!==h){b=e.filter(R).map(W),y=d&&o&&h&&b.length>0;let t;i[13]===l?t=i[14]:(t=l.join(`,`),i[13]=l,i[14]=t),x=[t,u??``,...b.map(U).toSorted()],i[4]=o,i[5]=e,i[6]=l,i[7]=d,i[8]=u,i[9]=h,i[10]=y,i[11]=b,i[12]=x}else y=i[10],b=i[11],x=i[12];let S=x.join(`|`),C;i[15]===Symbol.for(`react.memo_cache_sentinel`)?(C=new t({active:!1,descriptors:[],perspectiveStack:[],variant:void 0,countsKey:``}),i[15]=C):C=i[15];let w=C,T,E;i[16]!==y||i[17]!==S||i[18]!==b||i[19]!==l||i[20]!==u?(T=()=>{w.next({active:y,descriptors:b,perspectiveStack:l,variant:u,countsKey:S})},E=[w,y,b,l,u,S],i[16]=y,i[17]=S,i[18]=b,i[19]=l,i[20]=u,i[21]=T,i[22]=E):(T=i[21],E=i[22]),(0,N.useEffect)(T,E);let D;return i[23]===c?D=i[24]:(D=V(c,w),i[23]=c,i[24]=D),a(D,I)}function U(e){return L(e.id,e.typeName)}function W(e){return{id:e.id,typeName:e.count.type}}var G=b(S).withConfig({displayName:`DividerContainer`,componentId:`sc-9k1oad-0`})`display:flex;align-items:center;gap:1rem;margin:0.75rem 0 0.25rem 0;`,K=b.hr.withConfig({displayName:`Divider`,componentId:`sc-9k1oad-1`})`flex:1;background-color:var(--card-border-color);height:1px;margin:0;border:none;`,q=b(x).withConfig({displayName:`DividerTitle`,componentId:`sc-9k1oad-2`})`padding-bottom:0.75rem;padding-left:0.5rem;padding-right:0.5rem;`;function J(e){let t=(0,P.c)(5),{item:n}=e,{title:i}=r(n),a;t[0]===i?a=t[1]:(a=(0,F.jsx)(q,{weight:`semibold`,muted:!0,size:1,children:i}),t[0]=i,t[1]=a);let o;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(o=(0,F.jsx)(K,{}),t[2]=o):o=t[2];let s;return t[3]===a?s=t[4]:(s=(0,F.jsxs)(G,{children:[a,o]}),t[3]=a,t[4]=s),s}function Y(e){let t=(0,P.c)(23),{childItemId:n,items:r,isActive:i,layout:a,showIcons:s,title:c}=e,{collapsed:l}=k(),u=l===!1||!!i,d;t[0]===r?d=t[1]:(d=r??[],t[0]=r,t[1]=d);let f=H(d,u),p;t[2]===r?p=t[3]:(p=r?.filter(X),t[2]=r,t[3]=p);let m=o(p),h;t[4]===r?h=t[5]:(h=e=>r?.find((t,n)=>n===e)?.type===`divider`,t[4]=r,t[5]=h);let g=h,_;t[6]===s?_=t[7]:(_=e=>e.displayOptions?.showIcon??s??!1,t[6]=s,t[7]=_);let v=_,b;t[8]!==n||t[9]!==f||t[10]!==m||t[11]!==i||t[12]!==a||t[13]!==v?(b=(e,t)=>{let{virtualIndex:r}=t;if(e.type===`divider`)return(0,F.jsx)(S,{marginBottom:1,children:e.title?(0,F.jsx)(J,{item:e}):(0,F.jsx)(K,{})},`divider-${r}`);let o=!i&&n===e.id,s=i&&n===e.id,c=e._id&&e.schemaType?{_id:e._id,_type:e.schemaType.name,title:e.title}:void 0;return(0,F.jsx)(O,{count:e.count?f[L(e.id,e.count.type)]:void 0,icon:v(e)?e.icon:!1,id:e.id,layout:a,marginBottom:1,pressed:o,schemaType:e.schemaType,selected:s,title:m(e).title,value:c},e.id)},t[8]=n,t[9]=f,t[10]=m,t[11]=i,t[12]=a,t[13]=v,t[14]=b):b=t[14];let x=b,C=l?`hidden`:`auto`,w;t[15]!==g||t[16]!==r||t[17]!==x||t[18]!==c?(w=r&&r.length>0&&(0,F.jsx)(y,{activeItemDataAttr:`data-hovered`,ariaLabel:c,canReceiveFocus:!0,getItemDisabled:g,itemHeight:51,items:r,onlyShowSelectionWhenActive:!0,paddingBottom:1,paddingX:3,renderItem:x,wrapAround:!1}),t[15]=g,t[16]=r,t[17]=x,t[18]=c,t[19]=wLine truncated
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{a as e}from"./BackLink-BBYTIbKc-DJkKvofp.js";export{e as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{a as e}from"./BackLink-BBYTIbKc-C51ip22n.js";export{e as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{d as e}from"./sanity-DeX-YVGt.js";export{e as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{d as e}from"./sanity-GsYh3wpj.js";export{e as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"./lib-D7dq6hfV.js";import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`structure`,{"action.copy-document-id.label":`Copy document ID`,"action.copy-document-url.label":`Copy`,"action.copy-link-to-document.label":`Copy document URL`,"action.delete.disabled.not-ready":`Operation not ready`,"action.delete.disabled.nothing-to-delete":`This document doesn't yet exist or is already deleted`,"action.delete.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.delete.disabled.scheduled-release":`This document cannot be deleted as it exists within scheduled releases`,"action.delete.label":`Delete`,"action.delete.running.label":`Deleting…`,"action.disabled-by-canvas.tooltip":`Some document actions are disabled for documents linked to Canvas`,"action.discard-changes.confirm-dialog.confirm-discard-changes":`Are you sure you want to discard all changes since last published?`,"action.discard-changes.confirm-dialog.confirm-discard-changes-draft":`Are you sure you want to discard all changes and delete this draft document?`,"action.discard-changes.confirm-dialog.header.text":`Discard changes?`,"action.discard-changes.disabled.no-change":`This document has no unpublished changes`,"action.discard-changes.disabled.not-published":`This document is not published`,"action.discard-changes.disabled.not-ready":`Operation not ready`,"action.discard-changes.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.discard-changes.label":`Discard changes`,"action.duplicate.disabled.not-ready":`Operation not ready`,"action.duplicate.disabled.nothing-to-duplicate":`This document doesn't yet exist so there's nothing to duplicate`,"action.duplicate.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.duplicate.label":`Duplicate`,"action.duplicate.running.label":`Duplicating…`,"action.publish.already-published.no-time-ago.tooltip":`Already published`,"action.publish.already-published.tooltip":`Published {{timeSincePublished}}`,"action.publish.disabled.not-ready":`Operation not ready`,"action.publish.disabled.not-publishable":`This version is published as part of its release`,"action.publish.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.publish.draft.label":`Publish`,"action.publish.label":`Publish`,"action.publish.live-edit.label":`Publish`,"action.publish.live-edit.publish-disabled":`Cannot publish since Live Edit is enabled for this document type`,"action.publish.live-edit.tooltip":`Live Edit is enabled for this content type and publishing happens automatically as you make changes`,"action.publish.no-changes.tooltip":`No unpublished changes`,"action.publish.published.label":`Published`,"action.publish.running.label":`Publishing…`,"action.publish.validation-in-progress.label":`Validating document…`,"action.publish.validation-issues-toast.description":`Please fix the validation errors before publishing`,"action.publish.validation-issues-toast.title":`Validation errors`,"action.publish.validation-issues.tooltip":`There are validation errors that need to be fixed before this document can be published`,"action.publish.waiting":`Waiting for tasks to finish before publishing`,"action.restore.confirm.message":`Are you sure you want to restore this document?`,"action.restore.disabled.cannot-restore-initial":`You can't restore to the initial revision`,"action.restore.label":`Revert to revision`,"action.restore.tooltip":`Restore to this revision`,"action.unpublish.disabled.already-unpublished":`This document is already set to be unpublished`,"action.unpublish.disabled.not-published":`This document is not published`,"action.unpublish.disabled.not-ready":`Operation not ready`,"action.unpublish.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.unpublish.label":`Unpublish`,"action.unpublish.live-edit.disabled":`This document has live edit enabled and cannot be unpublished`,"banners.archived-release.description":`This document version belongs to the archived <VersionBadge>{{title}}</VersionBadge> release`,"banners.archived-scheduled-draft.description":`This scheduled draft is archived`,"banners.choose-new-document-destination.cannot-create-draft-document":`Cannot create a draft document.`,"banners.choose-new-document-destination.cannot-create-published-document":`Cannot create a published document.`,"banners.choose-new-document-destination.choose-destination":`Choose a destination for this document:`,"banners.choose-new-document-destination.release-inactive":`The <VersionBadge>{{title}}</VersionBadge> release is not active.`,"banners.deleted-document-banner.restore-button.text":`Restore most recent revision`,"banners.deleted-document-banner.text":`This document has been deleted.`,"banners.deprecated-document-type-banner.text":`This document type has been deprecated.`,"banners.live-edLine truncated
|
||||
import"./lib-CQcSfzr9.js";import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`structure`,{"action.copy-document-id.label":`Copy document ID`,"action.copy-document-url.label":`Copy`,"action.copy-link-to-document.label":`Copy document URL`,"action.delete.disabled.not-ready":`Operation not ready`,"action.delete.disabled.nothing-to-delete":`This document doesn't yet exist or is already deleted`,"action.delete.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.delete.disabled.scheduled-release":`This document cannot be deleted as it exists within scheduled releases`,"action.delete.label":`Delete`,"action.delete.running.label":`Deleting…`,"action.disabled-by-canvas.tooltip":`Some document actions are disabled for documents linked to Canvas`,"action.discard-changes.confirm-dialog.confirm-discard-changes":`Are you sure you want to discard all changes since last published?`,"action.discard-changes.confirm-dialog.confirm-discard-changes-draft":`Are you sure you want to discard all changes and delete this draft document?`,"action.discard-changes.confirm-dialog.header.text":`Discard changes?`,"action.discard-changes.disabled.no-change":`This document has no unpublished changes`,"action.discard-changes.disabled.not-published":`This document is not published`,"action.discard-changes.disabled.not-ready":`Operation not ready`,"action.discard-changes.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.discard-changes.label":`Discard changes`,"action.duplicate.disabled.not-ready":`Operation not ready`,"action.duplicate.disabled.nothing-to-duplicate":`This document doesn't yet exist so there's nothing to duplicate`,"action.duplicate.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.duplicate.label":`Duplicate`,"action.duplicate.running.label":`Duplicating…`,"action.publish.already-published.no-time-ago.tooltip":`Already published`,"action.publish.already-published.tooltip":`Published {{timeSincePublished}}`,"action.publish.disabled.not-ready":`Operation not ready`,"action.publish.disabled.not-publishable":`This version is published as part of its release`,"action.publish.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.publish.draft.label":`Publish`,"action.publish.label":`Publish`,"action.publish.live-edit.label":`Publish`,"action.publish.live-edit.publish-disabled":`Cannot publish since Live Edit is enabled for this document type`,"action.publish.live-edit.tooltip":`Live Edit is enabled for this content type and publishing happens automatically as you make changes`,"action.publish.no-changes.tooltip":`No unpublished changes`,"action.publish.published.label":`Published`,"action.publish.running.label":`Publishing…`,"action.publish.validation-in-progress.label":`Validating document…`,"action.publish.validation-issues-toast.description":`Please fix the validation errors before publishing`,"action.publish.validation-issues-toast.title":`Validation errors`,"action.publish.validation-issues.tooltip":`There are validation errors that need to be fixed before this document can be published`,"action.publish.waiting":`Waiting for tasks to finish before publishing`,"action.restore.confirm.message":`Are you sure you want to restore this document?`,"action.restore.disabled.cannot-restore-initial":`You can't restore to the initial revision`,"action.restore.label":`Revert to revision`,"action.restore.tooltip":`Restore to this revision`,"action.unpublish.disabled.already-unpublished":`This document is already set to be unpublished`,"action.unpublish.disabled.not-published":`This document is not published`,"action.unpublish.disabled.not-ready":`Operation not ready`,"action.unpublish.disabled.target-not-found":`The selected release or variant does not contain this document`,"action.unpublish.label":`Unpublish`,"action.unpublish.live-edit.disabled":`This document has live edit enabled and cannot be unpublished`,"banners.archived-release.description":`This document version belongs to the archived <VersionBadge>{{title}}</VersionBadge> release`,"banners.archived-scheduled-draft.description":`This scheduled draft is archived`,"banners.choose-new-document-destination.cannot-create-draft-document":`Cannot create a draft document.`,"banners.choose-new-document-destination.cannot-create-published-document":`Cannot create a published document.`,"banners.choose-new-document-destination.choose-destination":`Choose a destination for this document:`,"banners.choose-new-document-destination.release-inactive":`The <VersionBadge>{{title}}</VersionBadge> release is not active.`,"banners.deleted-document-banner.restore-button.text":`Restore most recent revision`,"banners.deleted-document-banner.text":`This document has been deleted.`,"banners.deprecated-document-type-banner.text":`This document type has been deprecated.`,"banners.live-edLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`releases`,{"action.add-document":`Add document`,"action.archive":`Archive release`,"action.copy-release.label":`Copy`,"action.copy-release-id.label":`Copy release ID`,"action.copy-release-link.label":`Copy release URL`,"action.copy-release-title.label":`Copy release title`,"action.archive.tooltip":`Unschedule this release to archive it`,"action.archived":`Archived`,"action.paused":`Paused`,"action.create-revert-release":`Create a new release`,"action.delete-release":`Delete release`,"action.drafts":`Scheduled drafts`,"action.duplicate-release":`Duplicate release`,"action.edit":`Edit release`,"action.open":`Active`,"action.releases":`Releases`,"action.schedule":`Schedule release...`,"action.schedule-unpublish":`Schedule Unpublish`,"action.schedule-unpublish.disabled.not-published":`Document must be published to schedule unpublish`,"action.unpublish":`Unpublish`,"action.unpublish-doc-actions":`Unpublish when releasing`,"action.revert-unpublish-actions":`Revert unpublish when releasing`,"action.unschedule":`Unschedule release`,"action.publish-all-documents":`Run release`,"action.review":`Review changes`,"action.revert":`Revert release`,"actions.summary":`Summary`,"action.immediate-revert-release":`Revert now`,"action.unarchive":`Unarchive release`,"activity.event.add-document":`Added a document version`,"activity.event.archive":`Archived the <strong>{{releaseTitle}}</strong> release`,"activity.event.create":`Created the <strong>{{releaseTitle}}</strong> release <ScheduleTarget>targeting </ScheduleTarget>`,"activity.event.discard-document":`Discarded a document version`,"activity.event.edit":`Set release time to <ScheduleTarget></ScheduleTarget>`,"activity.event.edit-time-asap":`As soon as possible`,"activity.event.edit-time-undecided":`Undecided`,"activity.event.publish":`Published the <strong>{{releaseTitle}}</strong> release`,"activity.event.schedule":`Marked as scheduled`,"activity.event.unarchive":`Unarchived the <strong>{{releaseTitle}}</strong> release`,"activity.event.unschedule":`Marked as unscheduled`,"activity.panel.loading":`Loading release activity`,"activity.panel.error":`An error occurred getting the release activity`,"activity.panel.title":`Activity`,"activity.panel.close":`Close activity`,"archive-dialog.confirm-archive-header":`Are you sure you want to archive this release?`,"archive-dialog.confirm-archive-title":`Are you sure you want to archive the <strong>'{{title}}'</strong> release?`,"archive-dialog.confirm-archive-description_one":`This will archive 1 document version.`,"archive-dialog.confirm-archive-description_other":`This will archive {{count}} document versions.`,"archive-dialog.confirm-archive-button":`Yes, archive release`,"archive-info.title":`This release is archived`,"archive-info.description":`It will be available for {{retentionDays}} days, then automatically removed on {{removalDate}}. <Link>Learn about retention</Link>.`,"changes-published-docs.title":`Changes to published documents`,created:`Created <RelativeTime/>`,"copy-suffix":`Copy`,"dashboard.details.published-asap":`Published`,"dashboard.details.published-on":`Published on {{date}}`,"dashboard.details.pin-release":`Pin release to studio`,"dashboard.details.unpin-release":`Unpin release from studio`,"dashboard.details.metadata.schedule":`Schedule`,"dashboard.details.metadata.status":`Status`,"dashboard.details.metadata.created":`Created`,"dashboard.details.metadata.documents":`Documents`,"dashboard.details.metadata.status-valid":`Valid`,"dashboard.details.metadata.status-errors":`Errors`,"dashboard.details.metadata.status-validating":`Validating`,"dashboard.details.metadata.status-empty":`No documents`,"dashboard.details.activity":`Activity`,"delete-dialog.confirm-delete.header":`Are you sure you want to delete this release?`,"delete-dialog.confirm-delete-description_one":`This will delete 1 document version.`,"delete-dialog.confirm-delete-description_other":`This will delete {{count}} document versions.`,"delete-dialog.confirm-delete-button":`Yes, delete release`,"diff.no-changes":`No changes`,"diff.list-empty":`Changes list is empty, see document`,"discard-version-dialog.description-draft":`This will permanently remove all changes made to this document. This action cannot be undone.`,"discard-version-dialog.description-release":`This will permanently remove all changes made to this document within the '<strong>{{releaseTitle}}</strong>' release. This action cannot be undone.`,"discard-version-dialog.header-draft":`Discard draft?`,"discard-version-dialog.header-release":`Remove document from the '<strong>{{releaseTitle}}</strong>' release?`,"discard-version-dialog.title-draft":`Discard draft`,"discard-version-dialog.title-release":`Remove from release`,"copy-to-draft-dialog.title":`Draft version already exists`,"copy-to-draft-dialog.description":`A draft version of this document already exists. Copy the current version to the draft and override
Line truncated
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`releases`,{"action.add-document":`Add document`,"action.archive":`Archive release`,"action.copy-release.label":`Copy`,"action.copy-release-id.label":`Copy release ID`,"action.copy-release-link.label":`Copy release URL`,"action.copy-release-title.label":`Copy release title`,"action.archive.tooltip":`Unschedule this release to archive it`,"action.archived":`Archived`,"action.paused":`Paused`,"action.create-revert-release":`Create a new release`,"action.delete-release":`Delete release`,"action.drafts":`Scheduled drafts`,"action.duplicate-release":`Duplicate release`,"action.edit":`Edit release`,"action.open":`Active`,"action.releases":`Releases`,"action.schedule":`Schedule release...`,"action.schedule-unpublish":`Schedule Unpublish`,"action.schedule-unpublish.disabled.not-published":`Document must be published to schedule unpublish`,"action.unpublish":`Unpublish`,"action.unpublish-doc-actions":`Unpublish when releasing`,"action.revert-unpublish-actions":`Revert unpublish when releasing`,"action.unschedule":`Unschedule release`,"action.publish-all-documents":`Run release`,"action.review":`Review changes`,"action.revert":`Revert release`,"actions.summary":`Summary`,"action.immediate-revert-release":`Revert now`,"action.unarchive":`Unarchive release`,"activity.event.add-document":`Added a document version`,"activity.event.archive":`Archived the <strong>{{releaseTitle}}</strong> release`,"activity.event.create":`Created the <strong>{{releaseTitle}}</strong> release <ScheduleTarget>targeting </ScheduleTarget>`,"activity.event.discard-document":`Discarded a document version`,"activity.event.edit":`Set release time to <ScheduleTarget></ScheduleTarget>`,"activity.event.edit-time-asap":`As soon as possible`,"activity.event.edit-time-undecided":`Undecided`,"activity.event.publish":`Published the <strong>{{releaseTitle}}</strong> release`,"activity.event.schedule":`Marked as scheduled`,"activity.event.unarchive":`Unarchived the <strong>{{releaseTitle}}</strong> release`,"activity.event.unschedule":`Marked as unscheduled`,"activity.panel.loading":`Loading release activity`,"activity.panel.error":`An error occurred getting the release activity`,"activity.panel.title":`Activity`,"activity.panel.close":`Close activity`,"archive-dialog.confirm-archive-header":`Are you sure you want to archive this release?`,"archive-dialog.confirm-archive-title":`Are you sure you want to archive the <strong>'{{title}}'</strong> release?`,"archive-dialog.confirm-archive-description_one":`This will archive 1 document version.`,"archive-dialog.confirm-archive-description_other":`This will archive {{count}} document versions.`,"archive-dialog.confirm-archive-button":`Yes, archive release`,"archive-info.title":`This release is archived`,"archive-info.description":`It will be available for {{retentionDays}} days, then automatically removed on {{removalDate}}. <Link>Learn about retention</Link>.`,"changes-published-docs.title":`Changes to published documents`,created:`Created <RelativeTime/>`,"copy-suffix":`Copy`,"dashboard.details.published-asap":`Published`,"dashboard.details.published-on":`Published on {{date}}`,"dashboard.details.pin-release":`Pin release to studio`,"dashboard.details.unpin-release":`Unpin release from studio`,"dashboard.details.metadata.schedule":`Schedule`,"dashboard.details.metadata.status":`Status`,"dashboard.details.metadata.created":`Created`,"dashboard.details.metadata.documents":`Documents`,"dashboard.details.metadata.status-valid":`Valid`,"dashboard.details.metadata.status-errors":`Errors`,"dashboard.details.metadata.status-validating":`Validating`,"dashboard.details.metadata.status-empty":`No documents`,"dashboard.details.activity":`Activity`,"delete-dialog.confirm-delete.header":`Are you sure you want to delete this release?`,"delete-dialog.confirm-delete-description_one":`This will delete 1 document version.`,"delete-dialog.confirm-delete-description_other":`This will delete {{count}} document versions.`,"delete-dialog.confirm-delete-button":`Yes, delete release`,"diff.no-changes":`No changes`,"diff.list-empty":`Changes list is empty, see document`,"discard-version-dialog.description-draft":`This will permanently remove all changes made to this document. This action cannot be undone.`,"discard-version-dialog.description-release":`This will permanently remove all changes made to this document within the '<strong>{{releaseTitle}}</strong>' release. This action cannot be undone.`,"discard-version-dialog.header-draft":`Discard draft?`,"discard-version-dialog.header-release":`Remove document from the '<strong>{{releaseTitle}}</strong>' release?`,"discard-version-dialog.title-draft":`Discard draft`,"discard-version-dialog.title-release":`Remove from release`,"copy-to-draft-dialog.title":`Draft version already exists`,"copy-to-draft-dialog.description":`A draft version of this document already exists. Copy the current version to the draft and override
Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`comments`,{"close-pane-button-text":`Close comments`,"close-pane-button-text-aria-label":`Close comments`,"compose.add-comment-input-placeholder":`Add comment to <strong>{{field}}</strong>`,"compose.add-comment-input-placeholder-upsell":`Upgrade to add comment`,"compose.create-comment-placeholder":`Create a new comment`,"compose.mention-user-aria-label":`Mention user`,"compose.mention-user-tooltip":`Mention user`,"compose.reply-placeholder":`Reply`,"compose.reply-placeholder-upsell":`Upgrade to reply`,"compose.send-comment-aria-label":`Send comment`,"compose.send-comment-tooltip":`Send comment`,"copy-link-error-message":`Unable to copy link to clipboard`,"delete-comment.body":`Once deleted, a comment cannot be recovered.`,"delete-comment.confirm":`Delete comment`,"delete-comment.title":`Delete this comment?`,"delete-dialog.error":`An error occurred while deleting the comment. Please try again.`,"delete-thread.body":`This comment and its replies will be deleted, and once deleted cannot be recovered.`,"delete-thread.confirm":`Delete thread`,"delete-thread.title":`Delete this comment thread?`,"discard.button-confirm":`Discard`,"discard.header":`Discard comment?`,"discard.text":`Do you want to discard the comment?`,"feature-feedback.link":`Share your feedback`,"feature-feedback.title":`Help improve `,"feature-name":`Comments`,"field-button.aria-label-add":`Add comment`,"field-button.aria-label-open":`Open comments`,"field-button.content_one":`View comment`,"field-button.content_other":`View comments`,"field-button.title":`Add comment`,"inline-add-comment-button.disabled-overlap-title":`Comments cannot overlap`,"inline-add-comment-button.title":`Add comment`,"list-item.breadcrumb-button-go-to-field-aria-label":`Go to {{field}} field`,"list-item.context-menu-add-reaction":`Add reaction`,"list-item.context-menu-add-reaction-aria-label":`Add reaction`,"list-item.context-menu-add-reaction-upsell":`Upgrade to add reaction`,"list-item.copy-link":`Copy link to comment`,"list-item.delete-comment":`Delete comment`,"list-item.edit-comment":`Edit comment`,"list-item.edit-comment-upsell":`Upgrade to edit comment`,"list-item.go-to-field-button.aria-label":`Go to field`,"list-item.layout-context":`on <IntentLink>{{title}}</IntentLink>`,"list-item.layout-edited":`edited`,"list-item.layout-failed-sent":`Failed to send.`,"list-item.layout-posting":`Posting...`,"list-item.layout-retry":`Retry`,"list-item.missing-referenced-value-tooltip-content":`The commented text has been deleted`,"list-item.open-menu-aria-label":`Open comment actions menu`,"list-item.origin.draft":`From draft`,"list-item.origin.published":`From published`,"list-item.re-open-resolved":`Re-open`,"list-item.re-open-resolved-aria-label":`Re-open`,"list-item.resolved-tooltip-aria-label":`Mark comment as resolved`,"list-item.resolved-tooltip-content":`Mark as resolved`,"list-status.empty-state-open-text":`Open comments on this document will be shown here.`,"list-status.empty-state-open-title":`No open comments yet`,"list-status.empty-state-resolved-text":`Resolved comments on this document will be shown here.`,"list-status.empty-state-resolved-title":`No resolved comments yet`,"list-status.error":`Something went wrong`,"list-status.loading":`Loading comments`,"mentions.no-users-found":`No users found`,"mentions.unauthorized-user":`Unauthorized`,"mentions.user-list-aria-label":`List of users to mention`,"onboarding.body":`You can add comments to any field in a document. They'll show up here, grouped by field.`,"onboarding.dismiss":`Got it`,"onboarding.header":`Document fields now have comments`,"reactions.add-reaction-tooltip":`Add reaction`,"reactions.react-with-aria-label":`React with {{reactionName}}`,"reactions.user-list.unknown-user-fallback-name":`Unknown user`,"reactions.user-list.you":`you`,"reactions.user-list.you_leading":`You`,"reactions.users-reacted-with-reaction":`<UserList/> <Text>reacted with</Text> <ReactionName/>`,"status-filter.status-open":`Open`,"status-filter.status-open-full":`Open comments`,"status-filter.status-resolved":`Resolved`,"status-filter.status-resolved-full":`Resolved comments`,"status-filter.status-resolved-full-upsell":`Upgrade to see resolved comments`});export{t as default};
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`comments`,{"close-pane-button-text":`Close comments`,"close-pane-button-text-aria-label":`Close comments`,"compose.add-comment-input-placeholder":`Add comment to <strong>{{field}}</strong>`,"compose.add-comment-input-placeholder-upsell":`Upgrade to add comment`,"compose.create-comment-placeholder":`Create a new comment`,"compose.mention-user-aria-label":`Mention user`,"compose.mention-user-tooltip":`Mention user`,"compose.reply-placeholder":`Reply`,"compose.reply-placeholder-upsell":`Upgrade to reply`,"compose.send-comment-aria-label":`Send comment`,"compose.send-comment-tooltip":`Send comment`,"copy-link-error-message":`Unable to copy link to clipboard`,"delete-comment.body":`Once deleted, a comment cannot be recovered.`,"delete-comment.confirm":`Delete comment`,"delete-comment.title":`Delete this comment?`,"delete-dialog.error":`An error occurred while deleting the comment. Please try again.`,"delete-thread.body":`This comment and its replies will be deleted, and once deleted cannot be recovered.`,"delete-thread.confirm":`Delete thread`,"delete-thread.title":`Delete this comment thread?`,"discard.button-confirm":`Discard`,"discard.header":`Discard comment?`,"discard.text":`Do you want to discard the comment?`,"feature-feedback.link":`Share your feedback`,"feature-feedback.title":`Help improve `,"feature-name":`Comments`,"field-button.aria-label-add":`Add comment`,"field-button.aria-label-open":`Open comments`,"field-button.content_one":`View comment`,"field-button.content_other":`View comments`,"field-button.title":`Add comment`,"inline-add-comment-button.disabled-overlap-title":`Comments cannot overlap`,"inline-add-comment-button.title":`Add comment`,"list-item.breadcrumb-button-go-to-field-aria-label":`Go to {{field}} field`,"list-item.context-menu-add-reaction":`Add reaction`,"list-item.context-menu-add-reaction-aria-label":`Add reaction`,"list-item.context-menu-add-reaction-upsell":`Upgrade to add reaction`,"list-item.copy-link":`Copy link to comment`,"list-item.delete-comment":`Delete comment`,"list-item.edit-comment":`Edit comment`,"list-item.edit-comment-upsell":`Upgrade to edit comment`,"list-item.go-to-field-button.aria-label":`Go to field`,"list-item.layout-context":`on <IntentLink>{{title}}</IntentLink>`,"list-item.layout-edited":`edited`,"list-item.layout-failed-sent":`Failed to send.`,"list-item.layout-posting":`Posting...`,"list-item.layout-retry":`Retry`,"list-item.missing-referenced-value-tooltip-content":`The commented text has been deleted`,"list-item.open-menu-aria-label":`Open comment actions menu`,"list-item.origin.draft":`From draft`,"list-item.origin.published":`From published`,"list-item.re-open-resolved":`Re-open`,"list-item.re-open-resolved-aria-label":`Re-open`,"list-item.resolved-tooltip-aria-label":`Mark comment as resolved`,"list-item.resolved-tooltip-content":`Mark as resolved`,"list-status.empty-state-open-text":`Open comments on this document will be shown here.`,"list-status.empty-state-open-title":`No open comments yet`,"list-status.empty-state-resolved-text":`Resolved comments on this document will be shown here.`,"list-status.empty-state-resolved-title":`No resolved comments yet`,"list-status.error":`Something went wrong`,"list-status.loading":`Loading comments`,"mentions.no-users-found":`No users found`,"mentions.unauthorized-user":`Unauthorized`,"mentions.user-list-aria-label":`List of users to mention`,"onboarding.body":`You can add comments to any field in a document. They'll show up here, grouped by field.`,"onboarding.dismiss":`Got it`,"onboarding.header":`Document fields now have comments`,"reactions.add-reaction-tooltip":`Add reaction`,"reactions.react-with-aria-label":`React with {{reactionName}}`,"reactions.user-list.unknown-user-fallback-name":`Unknown user`,"reactions.user-list.you":`you`,"reactions.user-list.you_leading":`You`,"reactions.users-reacted-with-reaction":`<UserList/> <Text>reacted with</Text> <ReactionName/>`,"status-filter.status-open":`Open`,"status-filter.status-open-full":`Open comments`,"status-filter.status-resolved":`Resolved`,"status-filter.status-resolved-full":`Resolved comments`,"status-filter.status-resolved-full-upsell":`Upgrade to see resolved comments`});export{t as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`comments`,{"close-pane-button-text":`Close comments`,"close-pane-button-text-aria-label":`Close comments`,"compose.add-comment-input-placeholder":`Add comment to <strong>{{field}}</strong>`,"compose.add-comment-input-placeholder-upsell":`Upgrade to add comment`,"compose.create-comment-placeholder":`Create a new comment`,"compose.mention-user-aria-label":`Mention user`,"compose.mention-user-tooltip":`Mention user`,"compose.reply-placeholder":`Reply`,"compose.reply-placeholder-upsell":`Upgrade to reply`,"compose.send-comment-aria-label":`Send comment`,"compose.send-comment-tooltip":`Send comment`,"copy-link-error-message":`Unable to copy link to clipboard`,"delete-comment.body":`Once deleted, a comment cannot be recovered.`,"delete-comment.confirm":`Delete comment`,"delete-comment.title":`Delete this comment?`,"delete-dialog.error":`An error occurred while deleting the comment. Please try again.`,"delete-thread.body":`This comment and its replies will be deleted, and once deleted cannot be recovered.`,"delete-thread.confirm":`Delete thread`,"delete-thread.title":`Delete this comment thread?`,"discard.button-confirm":`Discard`,"discard.header":`Discard comment?`,"discard.text":`Do you want to discard the comment?`,"feature-feedback.link":`Share your feedback`,"feature-feedback.title":`Help improve `,"feature-name":`Comments`,"field-button.aria-label-add":`Add comment`,"field-button.aria-label-open":`Open comments`,"field-button.content_one":`View comment`,"field-button.content_other":`View comments`,"field-button.title":`Add comment`,"inline-add-comment-button.disabled-overlap-title":`Comments cannot overlap`,"inline-add-comment-button.title":`Add comment`,"inspector-error.title":`Something went wrong while loading comments`,"list-item.breadcrumb-button-go-to-field-aria-label":`Go to {{field}} field`,"list-item.context-menu-add-reaction":`Add reaction`,"list-item.context-menu-add-reaction-aria-label":`Add reaction`,"list-item.context-menu-add-reaction-upsell":`Upgrade to add reaction`,"list-item.copy-link":`Copy link to comment`,"list-item.delete-comment":`Delete comment`,"list-item.edit-comment":`Edit comment`,"list-item.edit-comment-upsell":`Upgrade to edit comment`,"list-item.go-to-field-button.aria-label":`Go to field`,"list-item.layout-context":`on <IntentLink>{{title}}</IntentLink>`,"list-item.layout-edited":`edited`,"list-item.layout-failed-sent":`Failed to send.`,"list-item.layout-posting":`Posting...`,"list-item.layout-retry":`Retry`,"list-item.missing-referenced-value-tooltip-content":`The commented text has been deleted`,"list-item.open-menu-aria-label":`Open comment actions menu`,"list-item.re-open-resolved":`Re-open`,"list-item.re-open-resolved-aria-label":`Re-open`,"list-item.resolved-tooltip-aria-label":`Mark comment as resolved`,"list-item.resolved-tooltip-content":`Mark as resolved`,"list-status.empty-state-open-text":`Open comments on this document will be shown here.`,"list-status.empty-state-open-title":`No open comments yet`,"list-status.empty-state-resolved-text":`Resolved comments on this document will be shown here.`,"list-status.empty-state-resolved-title":`No resolved comments yet`,"list-status.error":`Something went wrong`,"list-status.loading":`Loading comments`,"mentions.no-users-found":`No users found`,"mentions.unauthorized-user":`Unauthorized`,"mentions.user-list-aria-label":`List of users to mention`,"onboarding.body":`You can add comments to any field in a document. They'll show up here, grouped by field.`,"onboarding.dismiss":`Got it`,"onboarding.header":`Document fields now have comments`,"reactions.add-reaction-tooltip":`Add reaction`,"reactions.react-with-aria-label":`React with {{reactionName}}`,"reactions.user-list.unknown-user-fallback-name":`Unknown user`,"reactions.user-list.you":`you`,"reactions.user-list.you_leading":`You`,"reactions.users-reacted-with-reaction":`<UserList/> <Text>reacted with</Text> <ReactionName/>`,"status-filter.status-open":`Open`,"status-filter.status-open-full":`Open comments`,"status-filter.status-resolved":`Resolved`,"status-filter.status-resolved-full":`Resolved comments`,"status-filter.status-resolved-full-upsell":`Upgrade to see resolved comments`});export{t as default};
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`comments`,{"close-pane-button-text":`Close comments`,"close-pane-button-text-aria-label":`Close comments`,"compose.add-comment-input-placeholder":`Add comment to <strong>{{field}}</strong>`,"compose.add-comment-input-placeholder-upsell":`Upgrade to add comment`,"compose.create-comment-placeholder":`Create a new comment`,"compose.mention-user-aria-label":`Mention user`,"compose.mention-user-tooltip":`Mention user`,"compose.reply-placeholder":`Reply`,"compose.reply-placeholder-upsell":`Upgrade to reply`,"compose.send-comment-aria-label":`Send comment`,"compose.send-comment-tooltip":`Send comment`,"copy-link-error-message":`Unable to copy link to clipboard`,"delete-comment.body":`Once deleted, a comment cannot be recovered.`,"delete-comment.confirm":`Delete comment`,"delete-comment.title":`Delete this comment?`,"delete-dialog.error":`An error occurred while deleting the comment. Please try again.`,"delete-thread.body":`This comment and its replies will be deleted, and once deleted cannot be recovered.`,"delete-thread.confirm":`Delete thread`,"delete-thread.title":`Delete this comment thread?`,"discard.button-confirm":`Discard`,"discard.header":`Discard comment?`,"discard.text":`Do you want to discard the comment?`,"feature-feedback.link":`Share your feedback`,"feature-feedback.title":`Help improve `,"feature-name":`Comments`,"field-button.aria-label-add":`Add comment`,"field-button.aria-label-open":`Open comments`,"field-button.content_one":`View comment`,"field-button.content_other":`View comments`,"field-button.title":`Add comment`,"inline-add-comment-button.disabled-overlap-title":`Comments cannot overlap`,"inline-add-comment-button.title":`Add comment`,"inspector-error.title":`Something went wrong while loading comments`,"list-item.breadcrumb-button-go-to-field-aria-label":`Go to {{field}} field`,"list-item.context-menu-add-reaction":`Add reaction`,"list-item.context-menu-add-reaction-aria-label":`Add reaction`,"list-item.context-menu-add-reaction-upsell":`Upgrade to add reaction`,"list-item.copy-link":`Copy link to comment`,"list-item.delete-comment":`Delete comment`,"list-item.edit-comment":`Edit comment`,"list-item.edit-comment-upsell":`Upgrade to edit comment`,"list-item.go-to-field-button.aria-label":`Go to field`,"list-item.layout-context":`on <IntentLink>{{title}}</IntentLink>`,"list-item.layout-edited":`edited`,"list-item.layout-failed-sent":`Failed to send.`,"list-item.layout-posting":`Posting...`,"list-item.layout-retry":`Retry`,"list-item.missing-referenced-value-tooltip-content":`The commented text has been deleted`,"list-item.open-menu-aria-label":`Open comment actions menu`,"list-item.re-open-resolved":`Re-open`,"list-item.re-open-resolved-aria-label":`Re-open`,"list-item.resolved-tooltip-aria-label":`Mark comment as resolved`,"list-item.resolved-tooltip-content":`Mark as resolved`,"list-status.empty-state-open-text":`Open comments on this document will be shown here.`,"list-status.empty-state-open-title":`No open comments yet`,"list-status.empty-state-resolved-text":`Resolved comments on this document will be shown here.`,"list-status.empty-state-resolved-title":`No resolved comments yet`,"list-status.error":`Something went wrong`,"list-status.loading":`Loading comments`,"mentions.no-users-found":`No users found`,"mentions.unauthorized-user":`Unauthorized`,"mentions.user-list-aria-label":`List of users to mention`,"onboarding.body":`You can add comments to any field in a document. They'll show up here, grouped by field.`,"onboarding.dismiss":`Got it`,"onboarding.header":`Document fields now have comments`,"reactions.add-reaction-tooltip":`Add reaction`,"reactions.react-with-aria-label":`React with {{reactionName}}`,"reactions.user-list.unknown-user-fallback-name":`Unknown user`,"reactions.user-list.you":`you`,"reactions.user-list.you_leading":`You`,"reactions.users-reacted-with-reaction":`<UserList/> <Text>reacted with</Text> <ReactionName/>`,"status-filter.status-open":`Open`,"status-filter.status-open-full":`Open comments`,"status-filter.status-resolved":`Resolved`,"status-filter.status-resolved-full":`Resolved comments`,"status-filter.status-resolved-full-upsell":`Upgrade to see resolved comments`});export{t as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`media-library`,{"invalid-video-warning.description":`The value of this field is not a valid video. Resetting this field will let you choose a new video.`,"invalid-video-warning.reset-button.text":`Reset value`,"invalid-video-warning.title":`Invalid video value`,"video-error.description":`Failed to load video`,"video-error.retry-button.text":`Retry`});export{t as default};
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`media-library`,{"invalid-video-warning.description":`The value of this field is not a valid video. Resetting this field will let you choose a new video.`,"invalid-video-warning.reset-button.text":`Reset value`,"invalid-video-warning.title":`Invalid video value`,"video-error.description":`Failed to load video`,"video-error.retry-button.text":`Retry`});export{t as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`singleDocRelease`,{"action.schedule-publish":`Schedule publish`,"action.schedule-publish-success":`Document scheduled for publishing`,"action.schedule-publish-success-description":`Publishing scheduled for {{publishAt}}`,"action.schedule-publish-error":`Failed to schedule publishing`,"action.schedule-publish.disabled.validation-issues":`Cannot Schedule Draft due to validation errors in the current draft.`,"action.schedule-publish.disabled.cardinality-one":`A Scheduled Draft for this document already exists.`,"action.schedule-publish.disabled.variant":`Scheduling is not yet available for variants.`,"empty-state.title":`Scheduled Drafts`,"empty-state.description":`Schedule and lock draft documents for publishing at a future date and time.`,"empty-state.action.documentation":`Learn about scheduling`});export{t as default};
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`singleDocRelease`,{"action.schedule-publish":`Schedule publish`,"action.schedule-publish-success":`Document scheduled for publishing`,"action.schedule-publish-success-description":`Publishing scheduled for {{publishAt}}`,"action.schedule-publish-error":`Failed to schedule publishing`,"action.schedule-publish.disabled.validation-issues":`Cannot Schedule Draft due to validation errors in the current draft.`,"action.schedule-publish.disabled.cardinality-one":`A Scheduled Draft for this document already exists.`,"action.schedule-publish.disabled.variant":`Scheduling is not yet available for variants.`,"empty-state.title":`Scheduled Drafts`,"empty-state.description":`Schedule and lock draft documents for publishing at a future date and time.`,"empty-state.action.documentation":`Learn about scheduling`});export{t as default};
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`canvas`,{"action.link-document":`Link to Canvas`,"action.link-document-disabled.not-in-dashboard":`Open this document in Dashboard to link to Canvas`,"action.link-document-disabled.missing-permissions":`You don't have permissions to link this document to Canvas`,"action.link-document-disabled.version-document":`Version documents are not yet supported in Canvas`,"action.link-document-disabled.initial-value-not-resolved":`Please wait until the document initial values are resolved`,"action.unlink-document":`Unlink from Canvas`,"action.edit-document":`Edit in Canvas`,"banner.linked-to-canvas":`This document is linked to Canvas`,"banner.edit-document-in-canvas":`Edit in Canvas`,"dialog.confirm-document-changes.title":`Confirm document changes`,"dialog.confirm-document-changes.description":`This document needs to be updated to be compatible with Canvas.
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`canvas`,{"action.link-document":`Link to Canvas`,"action.link-document-disabled.not-in-dashboard":`Open this document in Dashboard to link to Canvas`,"action.link-document-disabled.missing-permissions":`You don't have permissions to link this document to Canvas`,"action.link-document-disabled.version-document":`Version documents are not yet supported in Canvas`,"action.link-document-disabled.initial-value-not-resolved":`Please wait until the document initial values are resolved`,"action.unlink-document":`Unlink from Canvas`,"action.edit-document":`Edit in Canvas`,"banner.linked-to-canvas":`This document is linked to Canvas`,"banner.edit-document-in-canvas":`Edit in Canvas`,"dialog.confirm-document-changes.title":`Confirm document changes`,"dialog.confirm-document-changes.description":`This document needs to be updated to be compatible with Canvas.
|
||||
Existing content may be edited or removed as part of this process.`,"dialog.confirm-document-changes.confirm":`Accept and continue`,"dialog.confirm-document-changes.cancel":`Cancel`,"dialog.confirm-document-changes.footer-description":`You can unlink from Canvas at any time`,"dialog.link-to-canvas.title":`Link to Canvas`,"dialog.link-to-canvas.validating":`Validating`,"dialog.link-to-canvas.redirecting":`Taking you to Canvas to complete linking...`,"dialog.link-to-canvas.error":`Failed to link to Canvas`,"dialog.unlink-from-canvas.title":`Unlink from Canvas`,"dialog.unlink-from-canvas.unlinking":`You're unlinking <strong>“{{documentTitle}}”</strong> from Canvas.`,"dialog.unlink-from-canvas.cancel":`Cancel`,"dialog.unlink-from-canvas.unlink-action":`Unlink now`,"dialog.unlink-from-canvas.description":`Once unlinked, it will be editable here and future edits in Canvas will no longer automatically map to this document.`,"dialog.unlink-from-canvas.success":`Unlinked from Canvas`,"dialog.unlink-from-canvas.error":`Failed to unlink from Canvas`,"navigate-to-canvas-doc.error.missing-permissions":`Missing permissions to navigate to Canvas`});export{t as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e(`tasks`,{"actions.create.text":`Create new task`,"actions.open.text":`Tasks`,"buttons.create.text":`Create Task`,"buttons.discard.text":`Discard`,"buttons.draft.text":`Draft`,"buttons.new.text":`New task`,"buttons.new.upsell-tooltip":`Upgrade to create tasks`,"buttons.next.tooltip":`Go to next task`,"buttons.previous.tooltip":`Go to previous task`,"dialog.remove-task.body":`Once deleted, a task cannot be recovered.`,"dialog.remove-task.buttons.cancel.text":`Cancel`,"dialog.remove-task.buttons.confirm.text":`Delete`,"dialog.remove-task.title":`Delete this task?`,"document.footer.open-tasks.placeholder_one":`Open task`,"document.footer.open-tasks.placeholder_other":`Open tasks`,"document.footer.open-tasks.text_one":`{{count}} open task`,"document.footer.open-tasks.text_other":`{{count}} open tasks`,"empty-state.list.assigned.heading":`You haven't been assigned any tasks`,"empty-state.list.assigned.text":`Once you're assigned tasks they'll show up here`,"empty-state.list.create-new":`Create new task`,"empty-state.list.document.heading":`This document doesn't have any tasks yet`,"empty-state.list.document.text":`Once a document has connected tasks, they will be shown here.`,"empty-state.list.no-active-document.heading":`Open a document to see its task`,"empty-state.list.no-active-document.text":`Tasks on your active document will be shown here.`,"empty-state.list.subscribed.heading":`You haven't subscribed to any tasks`,"empty-state.list.subscribed.text":`When you create, modify, or comment on a task you will be subscribed automatically`,"empty-state.status.list.closed.assigned.heading":`No completed tasks`,"empty-state.status.list.closed.assigned.text":`Your tasks marked done will show up here`,"empty-state.status.list.closed.document.heading":`No completed tasks`,"empty-state.status.list.closed.subscribed.heading":`No completed tasks`,"empty-state.status.list.closed.subscribed.text":`Tasks you subscribe to marked done will show up here`,"empty-state.status.list.open.assigned.heading":`You're all caught up`,"empty-state.status.list.open.assigned.text":`New tasks assigned to you will show up here`,"empty-state.status.list.open.document.heading":`No tasks on this document`,"empty-state.status.list.open.subscribed.heading":`No subscribed tasks`,"empty-state.status.list.open.subscribed.text":`Tasks you subscribe to will show up here`,"form.input.assignee.no-user-assigned.text":`Unassigned`,"form.input.assignee.no-user-assigned.tooltip":`Set assignee`,"form.input.assignee.search.no-users.text":`No users found`,"form.input.assignee.search.placeholder":`Select assignee`,"form.input.assignee.unauthorized.text":`Unauthorized`,"form.input.assignee.user-assigned.tooltip":`Change assignee`,"form.input.assignee.user-not-found.text":`User not found`,"form.input.create-more.text":`Create more`,"form.input.date.buttons.empty.tooltip":`Set due date`,"form.input.date.buttons.remove.text":`Remove`,"form.input.date.buttons.tooltip":`Change due date`,"form.input.description.placeholder":`Add description`,"form.input.status.button.tooltip":`Change status`,"form.input.target.buttons.remove.text":`Remove target content`,"form.input.target.error.schema-not-found":`Schema not found`,"form.input.target.search.placeholder":`Select target document`,"form.input.title.placeholder":`Task title`,"form.status.error.title-required":`Title is required`,"form.status.success":`Task created`,"list.empty.text":`No tasks`,"list.feedback.text":`Help us improve, <Link>share feedback on Tasks</Link> `,"menuitem.copylink.text":`Copy link to task`,"menuitem.delete.text":`Delete task`,"menuitem.duplicate.text":`Duplicate task`,"menuitem.duplicate.upsell-tooltip":`Upgrade to duplicate tasks`,"panel.activity.created-fragment":`created this task`,"panel.activity.title":`Activity`,"panel.activity.unknown-user":`Unknown user`,"panel.close.tooltip":`Close sidebar`,"panel.comment.placeholder":`Add a comment...`,"panel.comment.placeholder.upsell":`Upgrade to comment on tasks`,"panel.create.title":`Create`,"panel.drafts.title":`Drafts`,"panel.navigation.tooltip":`Open tasks`,"panel.title":`Tasks`,"tab.assigned.label":`Assigned`,"tab.document.label":`Active Document`,"tab.subscribed.label":`Subscribed`,"toolbar.tooltip":`Tasks`});export{t as default};
|
||||
import{wt as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e(`tasks`,{"actions.create.text":`Create new task`,"actions.open.text":`Tasks`,"buttons.create.text":`Create Task`,"buttons.discard.text":`Discard`,"buttons.draft.text":`Draft`,"buttons.new.text":`New task`,"buttons.new.upsell-tooltip":`Upgrade to create tasks`,"buttons.next.tooltip":`Go to next task`,"buttons.previous.tooltip":`Go to previous task`,"dialog.remove-task.body":`Once deleted, a task cannot be recovered.`,"dialog.remove-task.buttons.cancel.text":`Cancel`,"dialog.remove-task.buttons.confirm.text":`Delete`,"dialog.remove-task.title":`Delete this task?`,"document.footer.open-tasks.placeholder_one":`Open task`,"document.footer.open-tasks.placeholder_other":`Open tasks`,"document.footer.open-tasks.text_one":`{{count}} open task`,"document.footer.open-tasks.text_other":`{{count}} open tasks`,"empty-state.list.assigned.heading":`You haven't been assigned any tasks`,"empty-state.list.assigned.text":`Once you're assigned tasks they'll show up here`,"empty-state.list.create-new":`Create new task`,"empty-state.list.document.heading":`This document doesn't have any tasks yet`,"empty-state.list.document.text":`Once a document has connected tasks, they will be shown here.`,"empty-state.list.no-active-document.heading":`Open a document to see its task`,"empty-state.list.no-active-document.text":`Tasks on your active document will be shown here.`,"empty-state.list.subscribed.heading":`You haven't subscribed to any tasks`,"empty-state.list.subscribed.text":`When you create, modify, or comment on a task you will be subscribed automatically`,"empty-state.status.list.closed.assigned.heading":`No completed tasks`,"empty-state.status.list.closed.assigned.text":`Your tasks marked done will show up here`,"empty-state.status.list.closed.document.heading":`No completed tasks`,"empty-state.status.list.closed.subscribed.heading":`No completed tasks`,"empty-state.status.list.closed.subscribed.text":`Tasks you subscribe to marked done will show up here`,"empty-state.status.list.open.assigned.heading":`You're all caught up`,"empty-state.status.list.open.assigned.text":`New tasks assigned to you will show up here`,"empty-state.status.list.open.document.heading":`No tasks on this document`,"empty-state.status.list.open.subscribed.heading":`No subscribed tasks`,"empty-state.status.list.open.subscribed.text":`Tasks you subscribe to will show up here`,"form.input.assignee.no-user-assigned.text":`Unassigned`,"form.input.assignee.no-user-assigned.tooltip":`Set assignee`,"form.input.assignee.search.no-users.text":`No users found`,"form.input.assignee.search.placeholder":`Select assignee`,"form.input.assignee.unauthorized.text":`Unauthorized`,"form.input.assignee.user-assigned.tooltip":`Change assignee`,"form.input.assignee.user-not-found.text":`User not found`,"form.input.create-more.text":`Create more`,"form.input.date.buttons.empty.tooltip":`Set due date`,"form.input.date.buttons.remove.text":`Remove`,"form.input.date.buttons.tooltip":`Change due date`,"form.input.description.placeholder":`Add description`,"form.input.status.button.tooltip":`Change status`,"form.input.target.buttons.remove.text":`Remove target content`,"form.input.target.error.schema-not-found":`Schema not found`,"form.input.target.search.placeholder":`Select target document`,"form.input.title.placeholder":`Task title`,"form.status.error.title-required":`Title is required`,"form.status.success":`Task created`,"list.empty.text":`No tasks`,"list.feedback.text":`Help us improve, <Link>share feedback on Tasks</Link> `,"menuitem.copylink.text":`Copy link to task`,"menuitem.delete.text":`Delete task`,"menuitem.duplicate.text":`Duplicate task`,"menuitem.duplicate.upsell-tooltip":`Upgrade to duplicate tasks`,"panel.activity.created-fragment":`created this task`,"panel.activity.title":`Activity`,"panel.activity.unknown-user":`Unknown user`,"panel.close.tooltip":`Close sidebar`,"panel.comment.placeholder":`Add a comment...`,"panel.comment.placeholder.upsell":`Upgrade to comment on tasks`,"panel.create.title":`Create`,"panel.drafts.title":`Drafts`,"panel.navigation.tooltip":`Open tasks`,"panel.title":`Tasks`,"tab.assigned.label":`Assigned`,"tab.document.label":`Active Document`,"tab.subscribed.label":`Subscribed`,"toolbar.tooltip":`Tasks`});export{t as default};
|
||||
@@ -1,5 +1,5 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/structureTool-0Jpf2KgZ-C8jOYXdJ.js","static/rolldown-runtime-Dd_uD5pT.js","static/lib-D7dq6hfV.js","static/PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-DonUdARw.js","static/types--2f-avvL-DfAXA8nG.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-DSZmlLZW.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-PgDcQUJg.js","static/helpers-D_aQC6Do-BbFlOJg3.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js","static/CommentsListItem-B4CoDHda-B92j42qR.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-CzUxgKBX.js","static/CommentsEnabledProvider-CEeES47b-BEr5KMWm.js","static/useComments-Bi1m7AzT-CGyuZP86.js","static/CommentsEnabledProvider-By3TCGFl-gLI34tgD.js","static/AddonDatasetProvider-CF_RtUZo-BoMlopck.js","static/lib-BFHl89nf.css","static/BackLink-BBYTIbKc-C51ip22n.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js"])))=>i.map(i=>d[i]);
|
||||
import{i as e,n as t,r as n,t as r}from"./rolldown-runtime-Dd_uD5pT.js";import{a as i,c as a,n as o,o as s,r as c}from"./lib-D7dq6hfV.js";import{A as l,Ar as u,Bi as d,Cf as f,Cm as p,Cs as m,Di as h,Ds as g,Du as _,Ea as v,Eu as y,Ff as b,Fl as x,Fr as S,Go as C,Hc as w,Hi as T,Ho as E,Hr as D,Ks as O,Li as k,Md as A,Mf as j,Mo as M,Ms as N,Nc as P,Nd as F,Nf as I,Nl as L,Od as R,Oi as z,Om as B,Oo as V,Os as ee,Pl as te,Qo as ne,Qs as re,Rd as ie,Ri as ae,Sd as oe,Sf as se,Si as ce,Sm as le,Tl as ue,To as de,Tp as fe,Ts as pe,Ui as me,Ur as he,Us as ge,Va as _e,Vd as ve,Vi as ye,Vr as be,W as xe,Wc as Se,Wi as Ce,Wl as we,Wr as Te,Ws as Ee,Xo as De,Yl as Oe,Ys as ke,Zc as Ae,Zs as je,_c as Me,_i as Ne,_l as Pe,_o as Fe,ad as Ie,am as Le,as as Re,bc as ze,bi as Be,cc as Ve,cd as He,cp as Ue,d as We,da as Ge,dc as Ke,ds as qe,ea as Je,ec as Ye,ed as Xe,fa as Ze,fc as Qe,fl as $e,fm as et,fr as tt,fs as nt,gc as rt,gd as it,gf as at,gi as ot,gl as st,go as ct,hc as lt,hi as ut,hm as dt,ho as ft,ht as pt,ic as mt,ir as ht,is as gt,jd as _t,jo as vt,ju as yt,ka as bt,kc as xt,kd as St,kf as Ct,ki as wt,km as Tt,la as Et,lc as Dt,lm as Ot,lt as kt,mc as At,md as jt,mf as Mt,mo as Nt,nc as Pt,nd as Ft,nf as It,nm as Lt,ns as Rt,oc as zt,pc as Bt,pm as Vt,po as Ht,q as Ut,rc as Wt,rf as Gt,rm as Kt,sc as qt,sd as Jt,sf as Yt,sl as Xt,ta as Zt,td as Qt,tl as $t,tr as en,ts as tn,uc as nn,ud as rn,um as an,us as on,va as sn,vc as cn,vm as ln,vo as un,wo as dn,xm as fn,yf as pn,yr as mn,zc as hn,zi as gn,zo as _n}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as vn,t as yn}from"./jsx-runtime-BpzPEenQ.js";import{t as bn}from"./compiler-runtime-sKsOXjDo.js";import{E as xn,O as Sn,T as Cn,f as wn,i as Tn,r as En,t as Dn,w as On}from"./from-B8yXq1Hf.js";import{$ as kn,At as An,Dt as jn,Et as Mn,Q as Nn,Tt as Pn,X as Fn,Y as In,at as Ln,bt as Rn,ct as zn,ft as H,ht as Bn,it as Vn,lt as Hn,nt as Un,ot as Wn,rt as Gn,st as Kn,wt as qn,xt as U}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{Bt as Jn,G as Yn,Mn as Xn,S as Zn,Sn as Qn,Vt as $n,Zt as er,_t as tr,b as nr,bt as rr,d as ir,f as ar,fr as or,ft as sr,gn as cr,gr as lr,in as ur,ir as dr,pr as fr,un as pr,ur as mr,zn as hr,zt as gr}from"./types--2f-avvL-DfAXA8nG.js";import{t as _r}from"./preload-helper-DjzSQ1t3.js";import{$t as vr,A as yr,B as br,D as xr,E as Sr,Et as Cr,Ft as wr,Gt as Tr,I as Er,M as Dr,N as Or,O as kr,Pt as Ar,Q as jr,Qt as Mr,S as Nr,St as W,T as Pr,Tt as G,Ut as Fr,V as Ir,Vt as Lr,Wt as Rr,Y as zr,Zt as Br,at as Vr,b as Hr,bt as Ur,c as Wr,ct as Gr,d as Kr,et as qr,g as Jr,h as Yr,i as Xr,k as Zr,m as Qr,p as $r,r as ei,rt as ti,s as ni,st as ri,t as ii,u as ai,wt as oi,x as si,xt as ci,yt as li}from"./dist-LVcARZxB.js";import{d as ui,l as di,o as fi,s as pi,u as mi}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as hi}from"./Spinner-Dk8hTAm3.js";import{t as gi}from"./Close-B_ZEgT1V.js";import{t as _i}from"./WarningOutline-DOBjmorn.js";import{r as vi,t as yi}from"./request-CYLhJzOA-4VlvBNTk.js";import{t as bi}from"./ChevronDown-BpYUc-AP.js";import{t as xi}from"./Select-D4xIAUnY.js";import{t as Si}from"./Document-0Zpczu4q.js";import{t as Ci}from"./Search-QbUIQb6W.js";import{t as wi}from"./ChevronLeft-BzE8YX6u.js";import{t as Ti}from"./InfoOutline-BLtnjxbN.js";import{t as Ei}from"./ErrorOutline-Cl-3_nRG.js";import{t as Di}from"./Image-BrMFkN0j.js";import{t as Oi}from"./Trash-BxG6GrjH.js";import{t as ki}from"./ArrowLeft-x2OZCZTu.js";import{t as Ai}from"./Edit-CAHlBqGT.js";import{t as ji}from"./Publish-BYF7r5nk.js";import{t as Mi}from"./Unpublish-B0p_ZGt2.js";import{t as Ni}from"./ArrowDown-CM5h1Tfl.js";import{t as Pi}from"./ArrowRight-D293IkFJ.js";import{t as Fi}from"./Copy-BTQgeMVP.js";import{t as Ii}from"./Sync-B1MBhh7o.js";import{t as Li}from"./Download-DeIn0VAL.js";import{t as Ri}from"./ChevronUp-3VMiyA07.js";import{t as zi}from"./Upload-ChJKE2jO.js";import{t as Bi}from"./Reset-CgCZnejz.js";import{t as Vi}from"./Add-CwQ5TpM8.js";import{t as Hi}from"./ThLarge-CjFCbJnr.js";import{t as Ui}from"./DragHandle-CKP6vPDQ.js";import{t as Wi}from"./Sort-CFTgH29c.js";import{t as Gi}from"./Clipboard-BeSdPeHT.js";import{t as Ki}from"./CheckmarkCircle-B6SBY4QE.js";import{A as qi,C as Ji,D as Yi,F as Xi,I as Zi,M as Qi,O as $i,S as ea,T as ta,_ as na,b as ra,d as ia,f as aa,g as oa,h as sa,i as ca,j as la,k as ua,l as da,m as fa,n as pa,o as ma,r as ha,s as ga,t as _a,u as va,v as ya,w as ba,x as xa}from"./BackLink-BBYTIbKc-C51ip22n.js";import{t as Sa}from"./Restore-DhBjjWCd.js";import{t as Ca}from"./Folder-1uErXl57.js";import{t as wa}from"./MasterDetail-DYBJvEeG.js";var Ta=function(e){Cn(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return t.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.Line truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/structureTool-0Jpf2KgZ-I-xmYsLR.js","static/rolldown-runtime-Dd_uD5pT.js","static/lib-CQcSfzr9.js","static/PerspectiveProvider-qJFIbsuW-DOpUdg_O.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-2Crq30kn.js","static/types--2f-avvL-CUBrVRGR.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-aKs6KPwC.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-N5vrKMLm.js","static/helpers-D_aQC6Do-Cc0nAXnJ.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js","static/CommentsListItem-B4CoDHda-DaXAEbir.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-B2twFKeQ.js","static/CommentsEnabledProvider-CEeES47b-AmQjnwX5.js","static/useComments-Bi1m7AzT-DcZcKqsq.js","static/CommentsEnabledProvider-By3TCGFl-C60crpzJ.js","static/AddonDatasetProvider-CF_RtUZo-BdePhlKm.js","static/lib-BFHl89nf.css","static/BackLink-BBYTIbKc-DJkKvofp.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js"])))=>i.map(i=>d[i]);
|
||||
import{i as e,n as t,r as n,t as r}from"./rolldown-runtime-Dd_uD5pT.js";import{a as i,c as a,n as o,o as s,r as c}from"./lib-CQcSfzr9.js";import{A as l,Ar as u,Bi as d,Cf as f,Cm as p,Cs as m,Di as h,Ds as g,Du as _,Ea as v,Eu as y,Ff as b,Fl as x,Fr as S,Go as C,Hc as w,Hi as T,Ho as E,Hr as D,Ks as O,Li as k,Md as A,Mf as j,Mo as M,Ms as N,Nc as P,Nd as F,Nf as I,Nl as L,Od as R,Oi as z,Om as B,Oo as V,Os as ee,Pl as te,Qo as ne,Qs as re,Rd as ie,Ri as ae,Sd as oe,Sf as se,Si as ce,Sm as le,Tl as ue,To as de,Tp as fe,Ts as pe,Ui as me,Ur as he,Us as ge,Va as _e,Vd as ve,Vi as ye,Vr as be,W as xe,Wc as Se,Wi as Ce,Wl as we,Wr as Te,Ws as Ee,Xo as De,Yl as Oe,Ys as ke,Zc as Ae,Zs as je,_c as Me,_i as Ne,_l as Pe,_o as Fe,ad as Ie,am as Le,as as Re,bc as ze,bi as Be,cc as Ve,cd as He,cp as Ue,d as We,da as Ge,dc as Ke,ds as qe,ea as Je,ec as Ye,ed as Xe,fa as Ze,fc as Qe,fl as $e,fm as et,fr as tt,fs as nt,gc as rt,gd as it,gf as at,gi as ot,gl as st,go as ct,hc as lt,hi as ut,hm as dt,ho as ft,ht as pt,ic as mt,ir as ht,is as gt,jd as _t,jo as vt,ju as yt,ka as bt,kc as xt,kd as St,kf as Ct,ki as wt,km as Tt,la as Et,lc as Dt,lm as Ot,lt as kt,mc as At,md as jt,mf as Mt,mo as Nt,nc as Pt,nd as Ft,nf as It,nm as Lt,ns as Rt,oc as zt,pc as Bt,pm as Vt,po as Ht,q as Ut,rc as Wt,rf as Gt,rm as Kt,sc as qt,sd as Jt,sf as Yt,sl as Xt,ta as Zt,td as Qt,tl as $t,tr as en,ts as tn,uc as nn,ud as rn,um as an,us as on,va as sn,vc as cn,vm as ln,vo as un,wo as dn,xm as fn,yf as pn,yr as mn,zc as hn,zi as gn,zo as _n}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as vn,t as yn}from"./jsx-runtime-BpzPEenQ.js";import{t as bn}from"./compiler-runtime-sKsOXjDo.js";import{E as xn,O as Sn,T as Cn,f as wn,i as Tn,r as En,t as Dn,w as On}from"./from-B8yXq1Hf.js";import{$ as kn,At as An,Dt as jn,Et as Mn,Q as Nn,Tt as Pn,X as Fn,Y as In,at as Ln,bt as Rn,ct as zn,ft as H,ht as Bn,it as Vn,lt as Hn,nt as Un,ot as Wn,rt as Gn,st as Kn,wt as qn,xt as U}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{Bt as Jn,G as Yn,Mn as Xn,S as Zn,Sn as Qn,Vt as $n,Zt as er,_t as tr,b as nr,bt as rr,d as ir,f as ar,fr as or,ft as sr,gn as cr,gr as lr,in as ur,ir as dr,pr as fr,un as pr,ur as mr,zn as hr,zt as gr}from"./types--2f-avvL-CUBrVRGR.js";import{t as _r}from"./preload-helper-DjzSQ1t3.js";import{$t as vr,A as yr,B as br,D as xr,E as Sr,Et as Cr,Ft as wr,Gt as Tr,I as Er,M as Dr,N as Or,O as kr,Pt as Ar,Q as jr,Qt as Mr,S as Nr,St as W,T as Pr,Tt as G,Ut as Fr,V as Ir,Vt as Lr,Wt as Rr,Y as zr,Zt as Br,at as Vr,b as Hr,bt as Ur,c as Wr,ct as Gr,d as Kr,et as qr,g as Jr,h as Yr,i as Xr,k as Zr,m as Qr,p as $r,r as ei,rt as ti,s as ni,st as ri,t as ii,u as ai,wt as oi,x as si,xt as ci,yt as li}from"./dist-LVcARZxB.js";import{d as ui,l as di,o as fi,s as pi,u as mi}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as hi}from"./Spinner-Dk8hTAm3.js";import{t as gi}from"./Close-B_ZEgT1V.js";import{t as _i}from"./WarningOutline-DOBjmorn.js";import{r as vi,t as yi}from"./request-CYLhJzOA-4VlvBNTk.js";import{t as bi}from"./ChevronDown-BpYUc-AP.js";import{t as xi}from"./Select-D4xIAUnY.js";import{t as Si}from"./Document-0Zpczu4q.js";import{t as Ci}from"./Search-QbUIQb6W.js";import{t as wi}from"./ChevronLeft-BzE8YX6u.js";import{t as Ti}from"./InfoOutline-BLtnjxbN.js";import{t as Ei}from"./ErrorOutline-Cl-3_nRG.js";import{t as Di}from"./Image-BrMFkN0j.js";import{t as Oi}from"./Trash-BxG6GrjH.js";import{t as ki}from"./ArrowLeft-x2OZCZTu.js";import{t as Ai}from"./Edit-CAHlBqGT.js";import{t as ji}from"./Publish-BYF7r5nk.js";import{t as Mi}from"./Unpublish-B0p_ZGt2.js";import{t as Ni}from"./ArrowDown-CM5h1Tfl.js";import{t as Pi}from"./ArrowRight-D293IkFJ.js";import{t as Fi}from"./Copy-BTQgeMVP.js";import{t as Ii}from"./Sync-B1MBhh7o.js";import{t as Li}from"./Download-DeIn0VAL.js";import{t as Ri}from"./ChevronUp-3VMiyA07.js";import{t as zi}from"./Upload-ChJKE2jO.js";import{t as Bi}from"./Reset-CgCZnejz.js";import{t as Vi}from"./Add-CwQ5TpM8.js";import{t as Hi}from"./ThLarge-CjFCbJnr.js";import{t as Ui}from"./DragHandle-CKP6vPDQ.js";import{t as Wi}from"./Sort-CFTgH29c.js";import{t as Gi}from"./Clipboard-BeSdPeHT.js";import{t as Ki}from"./CheckmarkCircle-B6SBY4QE.js";import{A as qi,C as Ji,D as Yi,F as Xi,I as Zi,M as Qi,O as $i,S as ea,T as ta,_ as na,b as ra,d as ia,f as aa,g as oa,h as sa,i as ca,j as la,k as ua,l as da,m as fa,n as pa,o as ma,r as ha,s as ga,t as _a,u as va,v as ya,w as ba,x as xa}from"./BackLink-BBYTIbKc-DJkKvofp.js";import{t as Sa}from"./Restore-DhBjjWCd.js";import{t as Ca}from"./Folder-1uErXl57.js";import{t as wa}from"./MasterDetail-DYBJvEeG.js";var Ta=function(e){Cn(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return t.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.Line truncated
|
||||
The error may be correlated with this previous error:
|
||||
${C.current.stack}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Bu as t,Kp as n,Mo as r,Od as i,Oo as a,Qs as o,Sd as s,Xl as c,ca as l,cd as u,jd as d,lc as f,qr as p,rc as m,uc as h}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{Et as y,Ft as b,Gt as x,Qt as S,Rt as C,St as w,Ut as T,Zt as ee,ct as te,f as ne,m as re,n as ie,r as E,s as D,t as O,yt as ae}from"./dist-LVcARZxB.js";import{t as oe}from"./Search-QbUIQb6W.js";import{t as se}from"./ArrowLeft-x2OZCZTu.js";import{i as k}from"./sanity-GsYh3wpj.js";var A=e(g(),1),j=v(),M=_();function ce(e){let t=(0,j.c)(4),{secondary:n,primary:r,menu:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,M.jsxs)(E,{flexBasis:`auto`,flexGrow:0,flexShrink:0,gap:2,alignItems:`center`,"data-ui":`detail-action-rail`,children:[n,r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}var N={marginLeft:-8};function le(e){let t=(0,j.c)(4),{text:n,onClick:r,testId:i}=e,a;return t[0]!==r||t[1]!==i||t[2]!==n?(a=(0,M.jsx)(ae,{icon:se,mode:`bleed`,onClick:r,text:n,textWeight:`regular`,padding:2,style:N,"data-testid":i}),t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3],a}var ue=x.div.withConfig({displayName:`ClampedDescription`,componentId:`sc-zw5rf6-0`})(e=>{let{font:t}=S(e.theme);return T`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;max-width:560px;margin:0;font-family:${t.text.family};font-size:${t.text.sizes[2].fontSize}px;line-height:${t.text.sizes[2].lineHeight}px;color:var(--card-muted-fg-color);`});function P(e){let t=(0,j.c)(14),{title:n,titlePlaceholder:r,description:i,titleAs:a,titleTestId:o,descriptionTestId:s}=e,c=n||void 0,l;t[0]===n?l=t[1]:(l=n?void 0:{opacity:.5},t[0]=n,t[1]=l);let u=n||r,d;t[2]!==c||t[3]!==l||t[4]!==u||t[5]!==a||t[6]!==o?(d=(0,M.jsx)(E,{alignItems:`center`,gap:2,children:(0,M.jsx)(O,{flexBasis:`0%`,flexGrow:1,children:(0,M.jsx)(w,{as:a,size:4,weight:`bold`,textOverflow:`ellipsis`,title:c,style:l,"data-testid":o,children:u})})}),t[2]=c,t[3]=l,t[4]=u,t[5]=a,t[6]=o,t[7]=d):d=t[7];let p;t[8]!==i||t[9]!==s?(p=i&&(0,M.jsx)(f,{placement:`bottom-start`,content:(0,M.jsx)(O,{padding:2,style:{maxWidth:360},children:(0,M.jsx)(w,{muted:!0,size:1,style:{whiteSpace:`pre-wrap`},children:i})}),children:(0,M.jsx)(ue,{"data-testid":s,children:i})}),t[8]=i,t[9]=s,t[10]=p):p=t[10];let m;return t[11]!==d||t[12]!==p?(m=(0,M.jsxs)(D,{gap:3,children:[d,p]}),t[11]=d,t[12]=p,t[13]=m):m=t[13],m}var F=x(y).withConfig({displayName:`PropertiesCard`,componentId:`sc-xfdhvb-0`})(e=>{let{font:t}=S(e.theme),{fontSize:n,lineHeight:r}=t.text.sizes[4],i=Math.round((r-n)/2);return T`width:fit-content;max-width:${e.$maxWidth}px;margin-top:${i}px;`}),I=x.div.withConfig({displayName:`SectionGrid`,componentId:`sc-xfdhvb-1`})`display:grid;align-items:center;column-gap:12px;row-gap:6px;grid-auto-rows:minmax(25px,auto);${e=>e.$hasGlyphs?T`grid-template-columns:auto max-content minmax(0,1fr);`:T`grid-template-columns:max-content minmax(0,1fr);`}`,L=x.div.withConfig({displayName:`GlyphCell`,componentId:`sc-xfdhvb-2`})`display:flex;align-items:center;justify-content:center;width:20px;`;function R(e){let t=(0,j.c)(8),{rows:n,hasGlyphs:r}=e,i;if(t[0]!==r||t[1]!==n){let e;t[3]===r?e=t[4]:(e=(e,t)=>(0,M.jsxs)(A.Fragment,{children:[r&&(0,M.jsx)(L,{children:e.icon}),(0,M.jsx)(w,{muted:!0,size:1,children:e.label}),(0,M.jsx)(O,{children:typeof e.value==`string`?(0,M.jsx)(w,{size:1,textOverflow:`ellipsis`,title:e.value,children:e.value}):e.value})]},t),t[3]=r,t[4]=e),i=n.map(e),t[0]=r,t[1]=n,t[2]=i}else i=t[2];let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(I,{$hasGlyphs:r,children:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function z(e){let t=(0,j.c)(8),{sections:n,testId:r,maxWidth:i}=e,a=i===void 0?300:i,o;t[0]===n?o=t[1]:(o=n.map(B),t[0]=n,t[1]=o);let s;t[2]===o?s=t[3]:(s=(0,M.jsx)(D,{gap:4,children:o}),t[2]=o,t[3]=s);let c;return t[4]!==a||t[5]!==s||t[6]!==r?(c=(0,M.jsx)(F,{flex:`none`,border:!0,radius:3,padding:3,tone:`transparent`,$maxWidth:a,"data-testid":r,children:s}),t[4]=a,t[5]=s,t[6]=r,t[7]=c):c=t[7],c}function B(e,t){let n=e.rows.filter(V);if(n.length===0)return null;let r=n.some(de),i=e.multiColumn&&n.length>=5,a=Math.ceil(n.length/2);return(0,M.jsxs)(D,{gap:2,children:[e.title&&(0,M.jsx)(w,{muted:!0,size:0,weight:`semibold`,style:{textTransform:`uppercase`},children:e.title}),i?(0,M.jsxs)(E,{gap:4,flexWrap:`wrap`,children:[(0,M.jsx)(R,{hasGlyphs:r,rows:n.slice(0,a)}),(0,M.jsx)(R,{hasGlyphs:r,rows:n.slice(a)})]}):(0,M.jsx)(R,{hasGlyphs:r,rows:n})]},t)}function de(e){return!!e.icon}function V(e){return!!e}var fe={textAlign:`center`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},H={justifyContent:`center`,alignItems:`center`,height:`100%`},pe=e=>{let t=(0,j.c)(10),{emptyState:n,colSpan:r}=e;if(typeof n==`string`){let e;t[0]===n?e=t[1]:(e=(0,M.jsx)(w,{muted:!0,size:1,children:n}),t[0]=n,t[1]=e);let i;return t[2]!==r||t[3]!==e?(i=(0,M.jsx)(y,{borderBottom:!0,disLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Bu as t,Kp as n,Mo as r,Od as i,Oo as a,Qs as o,Sd as s,Xl as c,ca as l,cd as u,jd as d,lc as f,qr as p,rc as m,uc as h}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as g,t as _}from"./jsx-runtime-BpzPEenQ.js";import{t as v}from"./compiler-runtime-sKsOXjDo.js";import{Et as y,Ft as b,Gt as x,Qt as S,Rt as C,St as w,Ut as T,Zt as ee,ct as te,f as ne,m as re,n as ie,r as E,s as D,t as O,yt as ae}from"./dist-LVcARZxB.js";import{t as oe}from"./Search-QbUIQb6W.js";import{t as se}from"./ArrowLeft-x2OZCZTu.js";import{i as k}from"./sanity-DeX-YVGt.js";var A=e(g(),1),j=v(),M=_();function ce(e){let t=(0,j.c)(4),{secondary:n,primary:r,menu:i}=e,a;return t[0]!==i||t[1]!==r||t[2]!==n?(a=(0,M.jsxs)(E,{flexBasis:`auto`,flexGrow:0,flexShrink:0,gap:2,alignItems:`center`,"data-ui":`detail-action-rail`,children:[n,r,i]}),t[0]=i,t[1]=r,t[2]=n,t[3]=a):a=t[3],a}var N={marginLeft:-8};function le(e){let t=(0,j.c)(4),{text:n,onClick:r,testId:i}=e,a;return t[0]!==r||t[1]!==i||t[2]!==n?(a=(0,M.jsx)(ae,{icon:se,mode:`bleed`,onClick:r,text:n,textWeight:`regular`,padding:2,style:N,"data-testid":i}),t[0]=r,t[1]=i,t[2]=n,t[3]=a):a=t[3],a}var ue=x.div.withConfig({displayName:`ClampedDescription`,componentId:`sc-zw5rf6-0`})(e=>{let{font:t}=S(e.theme);return T`display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;max-width:560px;margin:0;font-family:${t.text.family};font-size:${t.text.sizes[2].fontSize}px;line-height:${t.text.sizes[2].lineHeight}px;color:var(--card-muted-fg-color);`});function P(e){let t=(0,j.c)(14),{title:n,titlePlaceholder:r,description:i,titleAs:a,titleTestId:o,descriptionTestId:s}=e,c=n||void 0,l;t[0]===n?l=t[1]:(l=n?void 0:{opacity:.5},t[0]=n,t[1]=l);let u=n||r,d;t[2]!==c||t[3]!==l||t[4]!==u||t[5]!==a||t[6]!==o?(d=(0,M.jsx)(E,{alignItems:`center`,gap:2,children:(0,M.jsx)(O,{flexBasis:`0%`,flexGrow:1,children:(0,M.jsx)(w,{as:a,size:4,weight:`bold`,textOverflow:`ellipsis`,title:c,style:l,"data-testid":o,children:u})})}),t[2]=c,t[3]=l,t[4]=u,t[5]=a,t[6]=o,t[7]=d):d=t[7];let p;t[8]!==i||t[9]!==s?(p=i&&(0,M.jsx)(f,{placement:`bottom-start`,content:(0,M.jsx)(O,{padding:2,style:{maxWidth:360},children:(0,M.jsx)(w,{muted:!0,size:1,style:{whiteSpace:`pre-wrap`},children:i})}),children:(0,M.jsx)(ue,{"data-testid":s,children:i})}),t[8]=i,t[9]=s,t[10]=p):p=t[10];let m;return t[11]!==d||t[12]!==p?(m=(0,M.jsxs)(D,{gap:3,children:[d,p]}),t[11]=d,t[12]=p,t[13]=m):m=t[13],m}var F=x(y).withConfig({displayName:`PropertiesCard`,componentId:`sc-xfdhvb-0`})(e=>{let{font:t}=S(e.theme),{fontSize:n,lineHeight:r}=t.text.sizes[4],i=Math.round((r-n)/2);return T`width:fit-content;max-width:${e.$maxWidth}px;margin-top:${i}px;`}),I=x.div.withConfig({displayName:`SectionGrid`,componentId:`sc-xfdhvb-1`})`display:grid;align-items:center;column-gap:12px;row-gap:6px;grid-auto-rows:minmax(25px,auto);${e=>e.$hasGlyphs?T`grid-template-columns:auto max-content minmax(0,1fr);`:T`grid-template-columns:max-content minmax(0,1fr);`}`,L=x.div.withConfig({displayName:`GlyphCell`,componentId:`sc-xfdhvb-2`})`display:flex;align-items:center;justify-content:center;width:20px;`;function R(e){let t=(0,j.c)(8),{rows:n,hasGlyphs:r}=e,i;if(t[0]!==r||t[1]!==n){let e;t[3]===r?e=t[4]:(e=(e,t)=>(0,M.jsxs)(A.Fragment,{children:[r&&(0,M.jsx)(L,{children:e.icon}),(0,M.jsx)(w,{muted:!0,size:1,children:e.label}),(0,M.jsx)(O,{children:typeof e.value==`string`?(0,M.jsx)(w,{size:1,textOverflow:`ellipsis`,title:e.value,children:e.value}):e.value})]},t),t[3]=r,t[4]=e),i=n.map(e),t[0]=r,t[1]=n,t[2]=i}else i=t[2];let a;return t[5]!==r||t[6]!==i?(a=(0,M.jsx)(I,{$hasGlyphs:r,children:i}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function z(e){let t=(0,j.c)(8),{sections:n,testId:r,maxWidth:i}=e,a=i===void 0?300:i,o;t[0]===n?o=t[1]:(o=n.map(B),t[0]=n,t[1]=o);let s;t[2]===o?s=t[3]:(s=(0,M.jsx)(D,{gap:4,children:o}),t[2]=o,t[3]=s);let c;return t[4]!==a||t[5]!==s||t[6]!==r?(c=(0,M.jsx)(F,{flex:`none`,border:!0,radius:3,padding:3,tone:`transparent`,$maxWidth:a,"data-testid":r,children:s}),t[4]=a,t[5]=s,t[6]=r,t[7]=c):c=t[7],c}function B(e,t){let n=e.rows.filter(V);if(n.length===0)return null;let r=n.some(de),i=e.multiColumn&&n.length>=5,a=Math.ceil(n.length/2);return(0,M.jsxs)(D,{gap:2,children:[e.title&&(0,M.jsx)(w,{muted:!0,size:0,weight:`semibold`,style:{textTransform:`uppercase`},children:e.title}),i?(0,M.jsxs)(E,{gap:4,flexWrap:`wrap`,children:[(0,M.jsx)(R,{hasGlyphs:r,rows:n.slice(0,a)}),(0,M.jsx)(R,{hasGlyphs:r,rows:n.slice(a)})]}):(0,M.jsx)(R,{hasGlyphs:r,rows:n})]},t)}function de(e){return!!e.icon}function V(e){return!!e}var fe={textAlign:`center`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`},H={justifyContent:`center`,alignItems:`center`,height:`100%`},pe=e=>{let t=(0,j.c)(10),{emptyState:n,colSpan:r}=e;if(typeof n==`string`){let e;t[0]===n?e=t[1]:(e=(0,M.jsx)(w,{muted:!0,size:1,children:n}),t[0]=n,t[1]=e);let i;return t[2]!==r||t[3]!==e?(i=(0,M.jsx)(y,{borderBottom:!0,disLine truncated
|
||||
Vendored
+3
-3
@@ -1,3 +1,3 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/userComponent-R96Z7SFw-t6QbYUHm.js","static/rolldown-runtime-Dd_uD5pT.js","static/lib-D7dq6hfV.js","static/PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-DonUdARw.js","static/types--2f-avvL-DfAXA8nG.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-DSZmlLZW.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-PgDcQUJg.js","static/helpers-D_aQC6Do-BbFlOJg3.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js","static/CommentsListItem-B4CoDHda-B92j42qR.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-CzUxgKBX.js","static/CommentsEnabledProvider-CEeES47b-BEr5KMWm.js","static/useComments-Bi1m7AzT-CGyuZP86.js","static/CommentsEnabledProvider-By3TCGFl-gLI34tgD.js","static/AddonDatasetProvider-CF_RtUZo-BoMlopck.js","static/lib-BFHl89nf.css","static/BackLink-BBYTIbKc-C51ip22n.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js","static/pane-Degc6QMn-DlBhBoQZ.js","static/pane-DmtBiYZB-CPYZU2Qe.js","static/sanity-GsYh3wpj.js","static/Select-D4xIAUnY.js","static/MasterDetail-DYBJvEeG.js","static/list-BlPlj6oo-Cw84u7GT.js"])))=>i.map(i=>d[i]);
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-D7dq6hfV.js";import{El as t,Ep as n,Eu as r,Hl as i,Ir as a,Nd as o,Pr as s,Sd as c,Sm as l,Tl as u,To as d,Wr as f,_l as p,am as m,cm as h,ic as g,im as _,jm as v,jp as y,ju as b,kd as x,km as S,nd as C,nf as w,oa as T,rc as E,rt as D,sd as ee,sm as O,ta as k,tl as A}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as j,t as M}from"./jsx-runtime-BpzPEenQ.js";import{t as N}from"./compiler-runtime-sKsOXjDo.js";import{t as te}from"./from-B8yXq1Hf.js";import{Ot as P,X as F,ht as I,lt as L,nt as R,xt as z,yt as B}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{fr as V,hr as H}from"./types--2f-avvL-DfAXA8nG.js";import{t as U}from"./preload-helper-DjzSQ1t3.js";import{Et as ne,Gt as W,Rt as re,S as ie,St as G,b as K,h as q,r as J,s as ae,t as Y}from"./dist-LVcARZxB.js";import{o as oe}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as se}from"./WarningOutline-DOBjmorn.js";import{t as ce}from"./Sync-B1MBhh7o.js";import{D as le,E as X,F as ue,M as de,N as fe,O as pe,P as me,_ as he,c as ge,j as _e,k as ve,p as ye,t as be,y as xe}from"./BackLink-BBYTIbKc-C51ip22n.js";import{l as Se,u as Ce}from"./sanity-GsYh3wpj.js";var Z=e(j(),1),Q=N(),$=M(),we=class extends Error{cause;context;helpId;constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.name=`PaneResolutionError`,this.context=t,this.helpId=n,this.cause=r}},Te=e=>!!e&&typeof e?.then==`function`,Ee=e=>A(e)?typeof e.serialize==`function`:!1,De=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof we?e:new we({message:typeof e?.message==`string`?e.message:``,context:n,cause:e})}},Oe=e=>(...t)=>e(...t).pipe(O(1),v());function ke(e){let t=De(Oe(e((e,n,r)=>{if(!e)throw new we({message:`Pane returned no child`,context:n,helpId:`structure-item-returned-no-child`});return Te(e)||B(e)?te(e).pipe(F(e=>t(e,n,r))):Ee(e)?t(e.serialize(n),n,r):typeof e==`function`?t(e(n.id,n),n,r):z(e)})));return t}var Ae=new WeakMap;function je(e,t){let n=Ae.get(e)||new Map;if(n){let e=n.get(t);if(e)return e}let r=e[t];if(typeof r!=`function`)throw Error(`Expected property \`${t}\` to be a function but got ${typeof r} instead.`);let i=r.bind(e);return n.set(t,i),Ae.set(e,n),i}async function Me(e){let t=new Map,n=ke(e=>(n,r,i)=>{let a=n&&`${he(n)}-${r.path.join(`__`)}`,o=a&&t.get(a);if(o)return o;let s=e(n,r,i);return a&&t.set(a,s),s}),i=[[{id:`__edit__${e.params.id}`,params:{...r(e.params,[`id`]),type:e.params.type},payload:e.payload}]];async function a({currentId:e,flatIndex:t,intent:r,params:i,parent:o,path:s,payload:c,unresolvedPane:l,levelIndex:u,structureContext:d}){if(!l)return[];let{id:f,type:p,...m}=i,h=await S(n(l,{id:e,splitIndex:0,parent:o,path:s,index:t,params:{},payload:void 0,structureContext:d},t));return h.type===`document`&&h.id===f?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:f,params:m,payload:c}]],depthIndex:s.length,levelIndex:u}]:h.canHandleIntent?.(r,i,{pane:h,index:t})||h.type===`documentList`&&h.schemaTypeName===p&&h.options.filter===`_type == $type`?[{panes:[...s.map(e=>[{id:e}]),[{id:i.id,params:m,payload:c}]],depthIndex:s.length,levelIndex:u}]:h.type===`list`&&h.child&&h.items?(await Promise.all(h.items.map((e,n)=>e.type===`divider`?Promise.resolve([]):a({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:i,parent:h,path:[...s,e.id],payload:c,unresolvedPane:typeof h.child==`function`?je(h,`child`):h.child,levelIndex:n,structureContext:d})))).flat():[]}let o=(await a({currentId:`root`,flatIndex:0,levelIndex:0,intent:e.intent,params:e.params,parent:null,path:[],payload:e.payload,unresolvedPane:e.rootPaneNode,structureContext:e.structureContext})).sort((e,t)=>e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return o?o.panes:i}async function Ne(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:w(),type:n};if(t&&!n)return{id:t,type:await S(e.resolveTypeForDocument(t))};throw new we({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}var Pe={},Fe=(0,Z.memo)(function(){let e=(0,Q.c)(8),{navigate:n}=f(),r=a(Ie),{rootPaneNode:i,structureContext:o}=de(),s=p(),c=t(),[l,u]=(0,Z.useState)(null);if(l)throw l;let d,m;return e[0]!==s||e[1]!==c||e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==o?(d=()=>{if(r){let{intent:e,params:t,payload:a}=r,l=!1;return c.attempt(async function(){if(l)return;let{id:r,type:c}=await Ne(s,typeof t.id==`string`?t.id:void 0,typeof t.type==`string`?t.type:void 0);if(l)return;let u=await Me({intent:e,params:{...t,id:r,type:c},payload:a,rootPaneNode:i,structureContext:o});l||n({panes:u},{replace:!0})},{retryable:!0}).catch(u),()=>{l=!0}}},m=[s,c,r,n,i,o],e[0]=s,e[1]=c,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=d,e[7]=m):(d=e[6],m=e[7]),(0,Z.useEffect)(d,m),null});function Ie(e){let t=typeof e.intent==`string`?e.intent:void 0;return t?{intent:t,params:A(e.params)?e.params:Pe,payload:e.payload}:void 0}var Le=W.span.withConfig({displayName:`PathSegment`,componentId:`sc-4g9ye-0`})`&:not(:last-child)::after
Line truncated
|
||||
.`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,``).replace(/___default\./g,`.`).replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,`g`),` (`)}function ze(e){let t=(0,Q.c)(41),{error:n}=e;if(!(n instanceof we))throw n;let{cause:r}=n,{t:i}=c(ue),a=r?.stack||n.stack,o;t[0]!==r||t[1]!==n.message||t[2]!==a?(o=a&&!(r instanceof fe)&&!n.message.includes(`Module build failed:`),t[0]=r,t[1]=n.message,t[2]=a,t[3]=o):o=t[3];let s=o,l;t[4]===r?l=t[5]:(l=r instanceof fe?r.path:[],t[4]=r,t[5]=l);let u=l,d=r instanceof fe&&r.helpId||n.helpId,f=Ve,p;t[6]===i?p=t[7]:(p=i(`structure-error.header.text`),t[6]=i,t[7]=p);let m;t[8]===p?m=t[9]:(m=(0,$.jsx)(K,{as:`h2`,children:p}),t[8]=p,t[9]=m);let h;t[10]!==u||t[11]!==i?(h=u.length>0&&(0,$.jsxs)(ae,{gap:2,children:[(0,$.jsx)(G,{size:1,weight:`medium`,children:i(`structure-error.structure-path.label`)}),(0,$.jsx)(T,{children:u.slice(1).map(Be)})]}),t[10]=u,t[11]=i,t[12]=h):h=t[12];let g;t[13]===i?g=t[14]:(g=i(`structure-error.error.label`),t[13]=i,t[14]=g);let _;t[15]===g?_=t[16]:(_=(0,$.jsx)(G,{size:1,weight:`medium`,children:g}),t[15]=g,t[16]=_);let v;t[17]!==n.message||t[18]!==s||t[19]!==a?(v=s?Re(a):n.message,t[17]=n.message,t[18]=s,t[19]=a,t[20]=v):v=t[20];let y;t[21]===v?y=t[22]:(y=(0,$.jsx)(T,{children:v}),t[21]=v,t[22]=y);let b;t[23]!==_||t[24]!==y?(b=(0,$.jsxs)(J,{marginTop:4,gap:2,flexDirection:`column`,children:[_,y]}),t[23]=_,t[24]=y,t[25]=b):b=t[25];let x;t[26]!==d||t[27]!==i?(x=d&&(0,$.jsx)(Y,{marginTop:4,children:(0,$.jsx)(G,{children:(0,$.jsx)(`a`,{href:H(d),rel:`noopener noreferrer`,target:`_blank`,children:i(`structure-error.docs-link.text`)})})}),t[26]=d,t[27]=i,t[28]=x):x=t[28];let S;t[29]===i?S=t[30]:(S=i(`structure-error.reload-button.text`),t[29]=i,t[30]=S);let C;t[31]===S?C=t[32]:(C=(0,$.jsx)(Y,{marginTop:4,children:(0,$.jsx)(E,{text:S,icon:ce,tone:`primary`,onClick:f})}),t[31]=S,t[32]=C);let w;t[33]!==b||t[34]!==x||t[35]!==C||t[36]!==h?(w=(0,$.jsxs)(ne,{marginTop:4,padding:4,radius:2,overflow:`auto`,shadow:1,tone:`inherit`,children:[h,b,x,C]}),t[33]=b,t[34]=x,t[35]=C,t[36]=h,t[37]=w):w=t[37];let D;return t[38]!==w||t[39]!==m?(D=(0,$.jsx)(ne,{height:`fill`,overflow:`auto`,padding:4,sizing:`border`,tone:`critical`,children:(0,$.jsxs)(q,{children:[m,w]})}),t[38]=w,t[39]=m,t[40]=D):D=t[40],D}function Be(e,t){return(0,$.jsx)(Le,{children:e},`${e}-${t}`)}function Ve(){window.location.reload()}function He(e){let t=(0,Q.c)(20),r,i,a,o,c;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4],c=t[5]):({ref:o,childId:r,childPayload:a,childParameters:i,...c}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=c);let{routerPanesState:l,groupIndex:u}=(0,Z.useContext)(n),d;if(t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==u||t[10]!==l){let e;t[12]!==r||t[13]!==i||t[14]!==a?(e=[{id:r,params:i,payload:a}],t[12]=r,t[13]=i,t[14]=a,t[15]=e):e=t[15],d={panes:[...l.slice(0,u+1),e]},t[6]=r,t[7]=i,t[8]=a,t[9]=u,t[10]=l,t[11]=d}else d=t[11];let f;return t[16]!==o||t[17]!==c||t[18]!==d?(f=(0,$.jsx)(s,{...c,ref:o,state:d}),t[16]=o,t[17]=c,t[18]=d,t[19]=f):f=t[19],f}function Ue(e){let t=(0,Q.c)(21),{routerPanesState:r,groupIndex:i,siblingIndex:a}=(0,Z.useContext)(n),o,c,l,u;t[0]===e?(o=t[1],c=t[2],l=t[3],u=t[4]):({ref:l,params:o,payload:c,...u}=e,t[0]=e,t[1]=o,t[2]=c,t[3]=l,t[4]=u);let d=k(o),f=k(c),p=r[i],m=p[a],h=d??m.params,g=f??m.payload,_;t[5]!==m||t[6]!==h||t[7]!==g?(_={...m,params:h,payload:g},t[5]=m,t[6]=h,t[7]=g,t[8]=_):_=t[8];let v=_,y;t[9]!==p||t[10]!==v||t[11]!==a?(y=[...p.slice(0,a),v,...p.slice(a+1)],t[9]=p,t[10]=v,t[11]=a,t[12]=y):y=t[12];let b=y,x;t[13]!==r||t[14]!==i||t[15]!==b?(x={panes:[...r.slice(0,i),b,...r.slice(i+1)]},t[13]=r,t[14]=i,t[15]=b,t[16]=x):x=t[16];let S=x,C;return t[17]!==S||t[18]!==l||t[19]!==u?(C=(0,$.jsx)(s,{ref:l,...u,state:S}),t[17]=S,t[18]=l,t[19]=u,t[20]=C):C=t[20],C}function We(e){let t=(0,Q.c)(25),n,r,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7]):({ref:s,documentId:r,documentType:a,parentRefPath:o,children:n,template:l,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l);let u;t[8]===r?u=t[9]:(u=oe(r),t[8]=r,t[9]=u);let d=l?.params,f;t[10]===o?f=t[11]:(f=i(o),t[10]=o,t[11]=f);let p;t[12]===l?p=t[13]:(p=l&&{template:l?.id},t[12]=l,t[13]=p);let m;t[14]!==a||t[15]!==f||t[16]!==p?(m={type:a,parentRefPath:f,...p},t[14]=a,t[15]=f,t[16]=p,t[17]=m):m=t[17];let h;return t[18]!==n||t[19]!==s||t[20]!==c||t[21]!==u||t[22]!==d||t[23]!==m?(h=(0,$.jsx)(He,{...c,ref:s,childId:u,childPayload:d,childParameters:m,children:n}),t[18]=n,t[19]=s,t[20]=c,t[21]=u,t[22]=d,t[23]=m,t[24]=h):h=t[24],h}var Ge=[];function Ke(e){let t=(0,Q.c)(60),{children:o,flatIndex:s,index:c,params:l,payload:u,siblingIndex:d}=e,{navigate:p,navigateIntent:m,resolvePathFromState:h}=f(),g=a(),{panes:_,expand:v}=_e();g?.panes;let y=g?.panes||Ge,b=_?.[_.length-2]?.element,x=c-1,S;t[0]!==x||t[1]!==y||t[2]!==g||t[3]!==d?(S=e=>{let t=y[x]||[],n=t[d],r=e(t,n),i=[...y.slice(0,x),r,...y.slice(x+1)];return{...g,panes:i}},t[0]=x,t[1]=y,t[2]=g,t[3]=d,t[4]=S):S=t[4];let C=S,w;t[5]!==C||t[6]!
Line truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/userComponent-R96Z7SFw-BKNMQSzu.js","static/rolldown-runtime-Dd_uD5pT.js","static/lib-CQcSfzr9.js","static/PerspectiveProvider-qJFIbsuW-DOpUdg_O.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/from-B8yXq1Hf.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/WarningOutline-DOBjmorn.js","static/request-CYLhJzOA-4VlvBNTk.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/CommentsProvider-DHVaZIPI-2Crq30kn.js","static/types--2f-avvL-CUBrVRGR.js","static/Controls-Dx7QJOxz.js","static/Sort-CFTgH29c.js","static/validationUtils-Dwef0BLR-aKs6KPwC.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js","static/Clipboard-BeSdPeHT.js","static/BlockContent-Bw8BGwBw.js","static/CheckmarkCircle-B6SBY4QE.js","static/Number-CjvU0EcK.js","static/String-DHDsSmJ_.js","static/Undo-qtvfkxbn.js","static/ComposeSparkles-Dn7kooau.js","static/Unlink-MiIozO9s.js","static/Comment-CPMW8FMx.js","static/Task-DGtH1mzn.js","static/Feedback-CkbzKydh.js","static/FaceHappy-1ocsUhoA.js","static/FaceIndifferent-CIPzkDxf.js","static/FaceSad-lhl7n__s.js","static/Sparkle-CUquRU1h.js","static/EyeClosed-BnY-JoVE.js","static/Unlock-B4_-ahLp.js","static/DoubleChevronRight-PxmJHA0v.js","static/Menu-BoI111KG.js","static/Leave-_nWak6QB.js","static/AddUser-CTyeR_e2.js","static/Cog-0goaM-Or.js","static/Users-BDbacX-A.js","static/Bug-CFB9Jubh.js","static/Github-BTBOp21P.js","static/Refresh-C_m5vs8N.js","static/useAddonDataset-BvCgByG6-N5vrKMLm.js","static/helpers-D_aQC6Do-Cc0nAXnJ.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js","static/CommentsListItem-B4CoDHda-DaXAEbir.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-B2twFKeQ.js","static/CommentsEnabledProvider-CEeES47b-AmQjnwX5.js","static/useComments-Bi1m7AzT-DcZcKqsq.js","static/CommentsEnabledProvider-By3TCGFl-C60crpzJ.js","static/AddonDatasetProvider-CF_RtUZo-BdePhlKm.js","static/lib-BFHl89nf.css","static/BackLink-BBYTIbKc-DJkKvofp.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Json-C_MCH-ZM.js","static/Restore-DhBjjWCd.js","static/Folder-1uErXl57.js","static/pane-Degc6QMn-BivOpGLh.js","static/pane-DmtBiYZB-BOa8TdOr.js","static/sanity-DeX-YVGt.js","static/Select-D4xIAUnY.js","static/MasterDetail-DYBJvEeG.js","static/list-BlPlj6oo-C9FMT49A.js"])))=>i.map(i=>d[i]);
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-CQcSfzr9.js";import{El as t,Ep as n,Eu as r,Hl as i,Ir as a,Nd as o,Pr as s,Sd as c,Sm as l,Tl as u,To as d,Wr as f,_l as p,am as m,cm as h,ic as g,im as _,jm as v,jp as y,ju as b,kd as x,km as S,nd as C,nf as w,oa as T,rc as E,rt as D,sd as ee,sm as O,ta as k,tl as A}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as j,t as M}from"./jsx-runtime-BpzPEenQ.js";import{t as N}from"./compiler-runtime-sKsOXjDo.js";import{t as te}from"./from-B8yXq1Hf.js";import{Ot as P,X as F,ht as I,lt as L,nt as R,xt as z,yt as B}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{fr as V,hr as H}from"./types--2f-avvL-CUBrVRGR.js";import{t as U}from"./preload-helper-DjzSQ1t3.js";import{Et as ne,Gt as W,Rt as re,S as ie,St as G,b as K,h as q,r as J,s as ae,t as Y}from"./dist-LVcARZxB.js";import{o as oe}from"./stegaClean-YZRATV86-BdUaXCkw.js";import{t as se}from"./WarningOutline-DOBjmorn.js";import{t as ce}from"./Sync-B1MBhh7o.js";import{D as le,E as X,F as ue,M as de,N as fe,O as pe,P as me,_ as he,c as ge,j as _e,k as ve,p as ye,t as be,y as xe}from"./BackLink-BBYTIbKc-DJkKvofp.js";import{l as Se,u as Ce}from"./sanity-DeX-YVGt.js";var Z=e(j(),1),Q=N(),$=M(),we=class extends Error{cause;context;helpId;constructor({message:e,context:t,helpId:n,cause:r}){super(e),this.name=`PaneResolutionError`,this.context=t,this.helpId=n,this.cause=r}},Te=e=>!!e&&typeof e?.then==`function`,Ee=e=>A(e)?typeof e.serialize==`function`:!1,De=e=>(t,n,r)=>{try{return e(t,n,r)}catch(e){throw e instanceof we?e:new we({message:typeof e?.message==`string`?e.message:``,context:n,cause:e})}},Oe=e=>(...t)=>e(...t).pipe(O(1),v());function ke(e){let t=De(Oe(e((e,n,r)=>{if(!e)throw new we({message:`Pane returned no child`,context:n,helpId:`structure-item-returned-no-child`});return Te(e)||B(e)?te(e).pipe(F(e=>t(e,n,r))):Ee(e)?t(e.serialize(n),n,r):typeof e==`function`?t(e(n.id,n),n,r):z(e)})));return t}var Ae=new WeakMap;function je(e,t){let n=Ae.get(e)||new Map;if(n){let e=n.get(t);if(e)return e}let r=e[t];if(typeof r!=`function`)throw Error(`Expected property \`${t}\` to be a function but got ${typeof r} instead.`);let i=r.bind(e);return n.set(t,i),Ae.set(e,n),i}async function Me(e){let t=new Map,n=ke(e=>(n,r,i)=>{let a=n&&`${he(n)}-${r.path.join(`__`)}`,o=a&&t.get(a);if(o)return o;let s=e(n,r,i);return a&&t.set(a,s),s}),i=[[{id:`__edit__${e.params.id}`,params:{...r(e.params,[`id`]),type:e.params.type},payload:e.payload}]];async function a({currentId:e,flatIndex:t,intent:r,params:i,parent:o,path:s,payload:c,unresolvedPane:l,levelIndex:u,structureContext:d}){if(!l)return[];let{id:f,type:p,...m}=i,h=await S(n(l,{id:e,splitIndex:0,parent:o,path:s,index:t,params:{},payload:void 0,structureContext:d},t));return h.type===`document`&&h.id===f?[{panes:[...s.slice(0,s.length-1).map(e=>[{id:e}]),[{id:f,params:m,payload:c}]],depthIndex:s.length,levelIndex:u}]:h.canHandleIntent?.(r,i,{pane:h,index:t})||h.type===`documentList`&&h.schemaTypeName===p&&h.options.filter===`_type == $type`?[{panes:[...s.map(e=>[{id:e}]),[{id:i.id,params:m,payload:c}]],depthIndex:s.length,levelIndex:u}]:h.type===`list`&&h.child&&h.items?(await Promise.all(h.items.map((e,n)=>e.type===`divider`?Promise.resolve([]):a({currentId:e._id||e.id,flatIndex:t+1,intent:r,params:i,parent:h,path:[...s,e.id],payload:c,unresolvedPane:typeof h.child==`function`?je(h,`child`):h.child,levelIndex:n,structureContext:d})))).flat():[]}let o=(await a({currentId:`root`,flatIndex:0,levelIndex:0,intent:e.intent,params:e.params,parent:null,path:[],payload:e.payload,unresolvedPane:e.rootPaneNode,structureContext:e.structureContext})).sort((e,t)=>e.depthIndex===t.depthIndex?e.levelIndex-t.levelIndex:e.depthIndex-t.depthIndex)[0];return o?o.panes:i}async function Ne(e,t,n){if(t&&n)return{id:t,type:n};if(!t&&n)return{id:w(),type:n};if(t&&!n)return{id:t,type:await S(e.resolveTypeForDocument(t))};throw new we({message:"Neither document `id` or `type` was provided when trying to resolve intent."})}var Pe={},Fe=(0,Z.memo)(function(){let e=(0,Q.c)(8),{navigate:n}=f(),r=a(Ie),{rootPaneNode:i,structureContext:o}=de(),s=p(),c=t(),[l,u]=(0,Z.useState)(null);if(l)throw l;let d,m;return e[0]!==s||e[1]!==c||e[2]!==r||e[3]!==n||e[4]!==i||e[5]!==o?(d=()=>{if(r){let{intent:e,params:t,payload:a}=r,l=!1;return c.attempt(async function(){if(l)return;let{id:r,type:c}=await Ne(s,typeof t.id==`string`?t.id:void 0,typeof t.type==`string`?t.type:void 0);if(l)return;let u=await Me({intent:e,params:{...t,id:r,type:c},payload:a,rootPaneNode:i,structureContext:o});l||n({panes:u},{replace:!0})},{retryable:!0}).catch(u),()=>{l=!0}}},m=[s,c,r,n,i,o],e[0]=s,e[1]=c,e[2]=r,e[3]=n,e[4]=i,e[5]=o,e[6]=d,e[7]=m):(d=e[6],m=e[7]),(0,Z.useEffect)(d,m),null});function Ie(e){let t=typeof e.intent==`string`?e.intent:void 0;return t?{intent:t,params:A(e.params)?e.params:Pe,payload:e.payload}:void 0}var Le=W.span.withConfig({displayName:`PathSegment`,componentId:`sc-4g9ye-0`})`&:not(:last-child)::after
Line truncated
|
||||
.`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,``).replace(/___default\./g,`.`).replace(RegExp(` \\(https?:\\/\\/${window.location.host}`,`g`),` (`)}function ze(e){let t=(0,Q.c)(41),{error:n}=e;if(!(n instanceof we))throw n;let{cause:r}=n,{t:i}=c(ue),a=r?.stack||n.stack,o;t[0]!==r||t[1]!==n.message||t[2]!==a?(o=a&&!(r instanceof fe)&&!n.message.includes(`Module build failed:`),t[0]=r,t[1]=n.message,t[2]=a,t[3]=o):o=t[3];let s=o,l;t[4]===r?l=t[5]:(l=r instanceof fe?r.path:[],t[4]=r,t[5]=l);let u=l,d=r instanceof fe&&r.helpId||n.helpId,f=Ve,p;t[6]===i?p=t[7]:(p=i(`structure-error.header.text`),t[6]=i,t[7]=p);let m;t[8]===p?m=t[9]:(m=(0,$.jsx)(K,{as:`h2`,children:p}),t[8]=p,t[9]=m);let h;t[10]!==u||t[11]!==i?(h=u.length>0&&(0,$.jsxs)(ae,{gap:2,children:[(0,$.jsx)(G,{size:1,weight:`medium`,children:i(`structure-error.structure-path.label`)}),(0,$.jsx)(T,{children:u.slice(1).map(Be)})]}),t[10]=u,t[11]=i,t[12]=h):h=t[12];let g;t[13]===i?g=t[14]:(g=i(`structure-error.error.label`),t[13]=i,t[14]=g);let _;t[15]===g?_=t[16]:(_=(0,$.jsx)(G,{size:1,weight:`medium`,children:g}),t[15]=g,t[16]=_);let v;t[17]!==n.message||t[18]!==s||t[19]!==a?(v=s?Re(a):n.message,t[17]=n.message,t[18]=s,t[19]=a,t[20]=v):v=t[20];let y;t[21]===v?y=t[22]:(y=(0,$.jsx)(T,{children:v}),t[21]=v,t[22]=y);let b;t[23]!==_||t[24]!==y?(b=(0,$.jsxs)(J,{marginTop:4,gap:2,flexDirection:`column`,children:[_,y]}),t[23]=_,t[24]=y,t[25]=b):b=t[25];let x;t[26]!==d||t[27]!==i?(x=d&&(0,$.jsx)(Y,{marginTop:4,children:(0,$.jsx)(G,{children:(0,$.jsx)(`a`,{href:H(d),rel:`noopener noreferrer`,target:`_blank`,children:i(`structure-error.docs-link.text`)})})}),t[26]=d,t[27]=i,t[28]=x):x=t[28];let S;t[29]===i?S=t[30]:(S=i(`structure-error.reload-button.text`),t[29]=i,t[30]=S);let C;t[31]===S?C=t[32]:(C=(0,$.jsx)(Y,{marginTop:4,children:(0,$.jsx)(E,{text:S,icon:ce,tone:`primary`,onClick:f})}),t[31]=S,t[32]=C);let w;t[33]!==b||t[34]!==x||t[35]!==C||t[36]!==h?(w=(0,$.jsxs)(ne,{marginTop:4,padding:4,radius:2,overflow:`auto`,shadow:1,tone:`inherit`,children:[h,b,x,C]}),t[33]=b,t[34]=x,t[35]=C,t[36]=h,t[37]=w):w=t[37];let D;return t[38]!==w||t[39]!==m?(D=(0,$.jsx)(ne,{height:`fill`,overflow:`auto`,padding:4,sizing:`border`,tone:`critical`,children:(0,$.jsxs)(q,{children:[m,w]})}),t[38]=w,t[39]=m,t[40]=D):D=t[40],D}function Be(e,t){return(0,$.jsx)(Le,{children:e},`${e}-${t}`)}function Ve(){window.location.reload()}function He(e){let t=(0,Q.c)(20),r,i,a,o,c;t[0]===e?(r=t[1],i=t[2],a=t[3],o=t[4],c=t[5]):({ref:o,childId:r,childPayload:a,childParameters:i,...c}=e,t[0]=e,t[1]=r,t[2]=i,t[3]=a,t[4]=o,t[5]=c);let{routerPanesState:l,groupIndex:u}=(0,Z.useContext)(n),d;if(t[6]!==r||t[7]!==i||t[8]!==a||t[9]!==u||t[10]!==l){let e;t[12]!==r||t[13]!==i||t[14]!==a?(e=[{id:r,params:i,payload:a}],t[12]=r,t[13]=i,t[14]=a,t[15]=e):e=t[15],d={panes:[...l.slice(0,u+1),e]},t[6]=r,t[7]=i,t[8]=a,t[9]=u,t[10]=l,t[11]=d}else d=t[11];let f;return t[16]!==o||t[17]!==c||t[18]!==d?(f=(0,$.jsx)(s,{...c,ref:o,state:d}),t[16]=o,t[17]=c,t[18]=d,t[19]=f):f=t[19],f}function Ue(e){let t=(0,Q.c)(21),{routerPanesState:r,groupIndex:i,siblingIndex:a}=(0,Z.useContext)(n),o,c,l,u;t[0]===e?(o=t[1],c=t[2],l=t[3],u=t[4]):({ref:l,params:o,payload:c,...u}=e,t[0]=e,t[1]=o,t[2]=c,t[3]=l,t[4]=u);let d=k(o),f=k(c),p=r[i],m=p[a],h=d??m.params,g=f??m.payload,_;t[5]!==m||t[6]!==h||t[7]!==g?(_={...m,params:h,payload:g},t[5]=m,t[6]=h,t[7]=g,t[8]=_):_=t[8];let v=_,y;t[9]!==p||t[10]!==v||t[11]!==a?(y=[...p.slice(0,a),v,...p.slice(a+1)],t[9]=p,t[10]=v,t[11]=a,t[12]=y):y=t[12];let b=y,x;t[13]!==r||t[14]!==i||t[15]!==b?(x={panes:[...r.slice(0,i),b,...r.slice(i+1)]},t[13]=r,t[14]=i,t[15]=b,t[16]=x):x=t[16];let S=x,C;return t[17]!==S||t[18]!==l||t[19]!==u?(C=(0,$.jsx)(s,{ref:l,...u,state:S}),t[17]=S,t[18]=l,t[19]=u,t[20]=C):C=t[20],C}function We(e){let t=(0,Q.c)(25),n,r,a,o,s,c,l;t[0]===e?(n=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7]):({ref:s,documentId:r,documentType:a,parentRefPath:o,children:n,template:l,...c}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=a,t[4]=o,t[5]=s,t[6]=c,t[7]=l);let u;t[8]===r?u=t[9]:(u=oe(r),t[8]=r,t[9]=u);let d=l?.params,f;t[10]===o?f=t[11]:(f=i(o),t[10]=o,t[11]=f);let p;t[12]===l?p=t[13]:(p=l&&{template:l?.id},t[12]=l,t[13]=p);let m;t[14]!==a||t[15]!==f||t[16]!==p?(m={type:a,parentRefPath:f,...p},t[14]=a,t[15]=f,t[16]=p,t[17]=m):m=t[17];let h;return t[18]!==n||t[19]!==s||t[20]!==c||t[21]!==u||t[22]!==d||t[23]!==m?(h=(0,$.jsx)(He,{...c,ref:s,childId:u,childPayload:d,childParameters:m,children:n}),t[18]=n,t[19]=s,t[20]=c,t[21]=u,t[22]=d,t[23]=m,t[24]=h):h=t[24],h}var Ge=[];function Ke(e){let t=(0,Q.c)(60),{children:o,flatIndex:s,index:c,params:l,payload:u,siblingIndex:d}=e,{navigate:p,navigateIntent:m,resolvePathFromState:h}=f(),g=a(),{panes:_,expand:v}=_e();g?.panes;let y=g?.panes||Ge,b=_?.[_.length-2]?.element,x=c-1,S;t[0]!==x||t[1]!==y||t[2]!==g||t[3]!==d?(S=e=>{let t=y[x]||[],n=t[d],r=e(t,n),i=[...y.slice(0,x),r,...y.slice(x+1)];return{...g,panes:i}},t[0]=x,t[1]=y,t[2]=g,t[3]=d,t[4]=S):S=t[4];let C=S,w;t[5]!==C||t[6]!
Line truncated
|
||||
+6
-6
@@ -1,5 +1,5 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/stegaEncodeSourceMap-Dj29aWKG-DUGv0B3U.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/browserUpload-BTQyjHMj-Cul26HQg.js","static/from-B8yXq1Hf.js","static/request-CYLhJzOA-4VlvBNTk.js","static/resources-DskH0soi-DWkQO-B5.js","static/PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js","static/rolldown-runtime-Dd_uD5pT.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/WarningOutline-DOBjmorn.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/SingleDocReleaseLayout-CGZjyIyT-BRnUchss.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-DBu0--ZA.js","static/ReleasesStudioLayout-Ce5UEhJ2-CSZw6WOy.js","static/ReleasesMetadataProvider-D91ckc8k-CobfrRVi.js","static/ReleasesTool-TkOviWIk-BKQ-5piI.js","static/CheckmarkCircle-B6SBY4QE.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Restore-DhBjjWCd.js","static/Archive-CNM-Azpz.js","static/CloseCircle-COYZpajm.js","static/Filter-DVm6AUFi.js","static/Pin-D-D-SwHN.js","static/PinFilled-pZaJsWPB.js","static/Text-CVWqn-j_.js","static/Unarchive-CobryITl.js","static/User-BbvVoXNB.js","static/searchDocumentRelease-CGTwubjG-BxLZ0LzN.js","static/sanity-GsYh3wpj.js","static/lib-D7dq6hfV.js","static/CommentsProvider-DHVaZIPI-DonUdARw.js","static/useAddonDataset-BvCgByG6-PgDcQUJg.js","static/helpers-D_aQC6Do-BbFlOJg3.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DkTEGwwW.js","static/CommentsListItem-B4CoDHda-B92j42qR.js","static/Undo-qtvfkxbn.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-CzUxgKBX.js","static/CommentsEnabledProvider-CEeES47b-BEr5KMWm.js","static/useComments-Bi1m7AzT-CGyuZP86.js","static/CommentsEnabledProvider-By3TCGFl-gLI34tgD.js","static/AddonDatasetProvider-CF_RtUZo-BoMlopck.js","static/lib-BFHl89nf.css","static/Select-D4xIAUnY.js","static/Sort-CFTgH29c.js","static/Clipboard-BeSdPeHT.js","static/BackLink-BBYTIbKc-C51ip22n.js","static/ComposeSparkles-Dn7kooau.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Json-C_MCH-ZM.js","static/Folder-1uErXl57.js","static/MasterDetail-DYBJvEeG.js","static/CalendarFilter-Xl97nJYN-VpCCR-Os.js","static/resources-DtIZSAxS-BU54eHD1.js","static/resources-D76Njl12-DKyDPyC8.js","static/resources-DIQpu7dY-Y-EKksh9.js","static/VideoPlayer-lnSLx45L-Cz0fScwA.js","static/resources-Cc48NS-V-CrzP-jVo.js","static/CommentsInspector-DdzOBtmY-CRZdrR0b.js","static/CommentInput-C1kF5k49-kVUiwefLine truncated
|
||||
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as n,$a as r,$c as i,$i as a,$l as o,$n as s,$p as c,$r as l,$u as u,A as d,Aa as f,Ac as p,Ad as m,Ai as h,Am as g,Ao as _,Ar as v,As as y,At as b,Au as x,B as S,Ba as C,Bc as w,Bd as T,Bf as E,Bi as D,Bl as O,Bn as k,Bp as A,Br as j,Bt as M,Bu as N,Ca as P,Cd as F,Ci as I,Cl as L,Cm as R,Cn as z,Co as B,Cp as V,Cs as H,Cu as U,Da as W,Dd as ee,Df as te,Dl as G,Dm as K,Dn as ne,Ds as re,Dt as ie,Ec as ae,Ed as oe,Ef as se,El as ce,En as le,Et as ue,Eu as de,F as fe,Fc as pe,Fd as me,Fi as he,Fl as ge,Fn as _e,Fo as ve,Fp as ye,Fr as be,Fs as xe,Fu as Se,Ga as Ce,Gd as we,Gl as Te,Gn as Ee,Go as De,Gp as Oe,Gt as ke,Gu as Ae,Hd as je,Hf as Me,Hl as Ne,Hn as Pe,Ho as Fe,Ht as Ie,Hu as Le,I as Re,Id as ze,If as Be,Ii as Ve,Io as He,Ir as Ue,It as We,Iu as Ge,J as Ke,Ja as qe,Jc as Je,Ji as Ye,Jn as Xe,Jo as Ze,Jp as Qe,Jr as $e,Jt as et,Ju as tt,K as nt,Ka as rt,Kd as it,Ki as at,Kn as ot,Ks as st,Kt as ct,Ku as lt,L as ut,La as dt,Lc as ft,Ld as pt,Lf as mt,Li as ht,Ll as gt,Ln as _t,Lp as vt,Lr as yt,Ls as bt,Lt as xt,Lu as St,M as Ct,Mc as wt,Md as Tt,Mi as Et,Mm as Dt,Mn as Ot,Mo as kt,Mp as At,Mr as jt,Ms as Mt,Mt as Nt,N as Pt,Na as Ft,Nd as It,Nf as Lt,Ni as Rt,Nl as zt,Nn as Bt,No as Vt,Np as Ht,Nr as Ut,Nt as Wt,Nu as Gt,Od as Kt,Of as qt,Om as Jt,On as Yt,Os as Xt,Ot as Zt,P as Qt,Pa as $t,Pd as en,Pf as tn,Pi as nn,Pl as rn,Pn as an,Po as on,Pp as sn,Pr as cn,Ps as ln,Pt as un,Pu as dn,Q as fn,Qa as pn,Qc as mn,Qi as hn,Ql as gn,Qn as _n,Qo as vn,Qp as yn,Qr as bn,Qs as xn,Qt as Sn,Qu as Cn,R as wn,Ra as Tn,Rc as En,Rd as Dn,Ri as On,Rl as kn,Rn as An,Ro as jn,Rp as Mn,Rs as Nn,Rt as Pn,Ru as Fn,S as In,Sd as q,Sl as Ln,Sm as Rn,Sn as zn,So as Bn,Sp as Vn,Ss as Hn,Su as Un,T as Wn,Ta as Gn,Tc as Kn,Td as qn,Tf as Jn,Ti as Yn,Tl as Xn,Tn as Zn,To as Qn,Tr as $n,Ts as er,Tt as tr,Tu as nr,Uc as rr,Ud as ir,Uf as ar,Un as or,Ur as sr,Us as cr,Ut as lr,Uu as ur,Va as dr,Vc as fr,Vf as pr,Vi as mr,Vl as hr,Vn as gr,Vo as _r,Vt as vr,Vu as yr,W as br,Wc as xr,Wd as Sr,Wn as Cr,Wo as wr,Wp as Tr,Wr as Er,Wt as Dr,Wu as Or,X as kr,Xa as Ar,Xf as jr,Xi as Mr,Xl as Nr,Xn as Pr,Xo as Fr,Xp as Ir,Xr as Lr,Xs as Rr,Xt as zr,Xu as Br,Y as Vr,Yf as Hr,Yi as Ur,Yl as Wr,Yn as Gr,Yo as Kr,Yp as qr,Yr as Jr,Ys as Yr,Yt as Xr,Yu as Zr,Z as Qr,Zc as $r,Zl as ei,Zn as ti,Zo as ni,Zr as ri,Zs as ii,Zt as ai,Zu as oi,_ as si,_a as ci,_d as li,_f as ui,_l as di,_m as fi,_o as pi,_p as mi,_r as hi,_u as gi,a as _i,aa as vi,ad as yi,af as bi,ai as xi,al as Si,am as Ci,an as wi,ao as Ti,as as Ei,at as Di,au as Oi,b as ki,bd as Ai,bf as ji,bi as Mi,bl as Ni,bm as Pi,bn as Fi,bo as Ii,br as Li,bs as Ri,bu as zi,c as Bi,cd as Vi,cf as Hi,ci as Ui,cl as Wi,cn as Gi,co as Ki,cp as qi,cs as Ji,ct as Yi,cu as Xi,da as Zi,dc as Qi,dd as $i,df as ea,di as ta,dl as na,dm as ra,do as ia,dr as aa,ds as oa,dt as sa,du as ca,ec as la,ed as ua,ei as da,em as fa,en as pa,eo as ma,ep as ha,er as ga,es as _a,eu as va,f as ya,fa as ba,ff as xa,fi as Sa,fm as Ca,fn as wa,fo as Ta,fp as Ea,fr as Da,fs as Oa,fu as ka,ga as Aa,gd as ja,gf as Ma,gi as Na,gl as Pa,gm as Fa,gp as Ia,gr as La,gt as Ra,gu as za,ha as Ba,hc as Va,hd as Ha,hf as Ua,hi as Wa,hl as Ga,ht as Ka,i as qa,ia as Ja,ic as Ya,id as Xa,if as Za,ii as Qa,il as $a,im as eo,in as to,io as no,ip as ro,ir as io,is as ao,it as oo,j as so,jc as co,jd as lo,jf as uo,ji as fo,jn as po,jo as mo,js as ho,jt as go,ju as _o,kd as vo,kf as yo,kl as bo,km as xo,kn as So,ko as Co,kp as wo,kr as To,ks as Eo,kt as Do,ku as Oo,la as ko,lc as Ao,ld as jo,lf as Mo,li as No,ll as Po,ln as Fo,lo as Io,lp as Lo,lr as Ro,ls as zo,lu as Bo,ma as Vo,mi as Ho,ml as Uo,mm as Wo,mn as Go,mr as Ko,mt as qo,mu as Jo,na as Yo,nc as Xo,nd as Zo,nf as Qo,ni as $o,nm as es,nn as ts,no as ns,nr as rs,ns as is,nt as as,nu as os,o as eee,oa as ss,oc as cs,od as ls,of as us,oi as ds,om as fs,on as ps,oo as ms,op as hs,or as gs,os as _s,ou as vs,pa as ys,pc as bs,pd as xs,pf as Ss,pi as Cs,pl as ws,pm as Ts,pn as Es,pp as Ds,ps as Os,pt as ks,pu as As,q as js,qa as Ms,qc as Ns,qd as Ps,qi as Fs,qn as Is,qo as Ls,qr as Rs,qt as zs,qu as Bs,ra as Vs,rc as Hs,rd as Us,rf as Ws,ri as Gs,rl as Ks,rn as qs,ro as Js,rr as Ys,rs as Xs,ru as Zs,s as Qs,sa as $s,sc as ec,sd as tc,sf as nc,si as rc,sn as ic,sr as ac,ss as oc,st as sc,su as cc,t as lc,ta as uc,tc as dc,td as fc,tf as pc,ti as mc,tl as hc,tm as gc,to as _c,tr as vc,ts as yc,tu as bc,u as tee,uc as xc,uf as Sc,ui as Cc,ul as wc,um as Tc,uo as Ec,us as Dc,ut as Oc,uu as kc,va as Ac,vi as jc,vl as Mc,vn as Nc,vp as Pc,vr as Fc,wc as Ic,wd as Lc,wf as Rc,wl as zc,wm as Bc,wn as Vc,wo as Hc,wr as Uc,ws as Wc,xa as Gc,xd as Kc,xf as qc,xl as Jc,xm as Yc,xn as Xc,xo as Zc,xp as Qc,xr as $c,xu as el,y as tl,yc as nl,yd as rl,yf as il,yi as al,yl as ol,ym as sl,yn as cl,yo as ll,yp as ul,yr as dl,yu as fl,za as pl,zc as ml,zf as hl,zi as gl,zl as _l,zn as vl,zo as yl,zp as bl,zs as xl,zt as Sl,zu as Cl}from"./PersLine truncated
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/stegaEncodeSourceMap-Dj29aWKG-DUGv0B3U.js","static/stegaClean-YZRATV86-BdUaXCkw.js","static/isRecord-Kfmt-nk--BbRXhYkF.js","static/browserUpload-BTQyjHMj-Cul26HQg.js","static/from-B8yXq1Hf.js","static/request-CYLhJzOA-4VlvBNTk.js","static/resources-DskH0soi-BspIF8Ok.js","static/PerspectiveProvider-qJFIbsuW-DOpUdg_O.js","static/rolldown-runtime-Dd_uD5pT.js","static/jsx-runtime-BpzPEenQ.js","static/compiler-runtime-sKsOXjDo.js","static/clientStore-Cq3vrK4Q-X8Ukd-3S.js","static/preload-helper-DjzSQ1t3.js","static/isRecord-Kfmt-nk--BGze3w87.js","static/request-CYLhJzOA-R7VqCP01.js","static/resolveEditInfo-Cz-smq3a-BkgfIKD_.js","static/dist-LVcARZxB.js","static/Spinner-Dk8hTAm3.js","static/Close-B_ZEgT1V.js","static/ChevronDown-BpYUc-AP.js","static/ToggleArrowRight-Ds3XaLpQ.js","static/Checkmark-OT7tsNpL.js","static/Remove-B96Rrnq-.js","static/WarningOutline-DOBjmorn.js","static/ChevronRight-Cf6GkXSa.js","static/Document-0Zpczu4q.js","static/Bolt-CkliNuRS.js","static/Clock-ClG7Ty9T.js","static/Dot-D4h2WemU.js","static/Calendar-DCYqUUNo.js","static/Search-QbUIQb6W.js","static/ChevronLeft-BzE8YX6u.js","static/EarthGlobe-Dqu4Dt_R.js","static/EllipsisHorizontal-BuWLk1Hy.js","static/InfoOutline-BLtnjxbN.js","static/ErrorOutline-Cl-3_nRG.js","static/EarthAmericas-DLWVWv9X.js","static/Image-BrMFkN0j.js","static/Trash-BxG6GrjH.js","static/ArrowLeft-x2OZCZTu.js","static/Edit-CAHlBqGT.js","static/AddCircle-BZjvWs4R.js","static/Circle-DkcW-8WT.js","static/Publish-BYF7r5nk.js","static/Timeline-X-VaErdm.js","static/Unpublish-B0p_ZGt2.js","static/ArrowDown-CM5h1Tfl.js","static/ArrowRight-D293IkFJ.js","static/Revert-BmEXeO7H.js","static/Copy-BTQgeMVP.js","static/Sync-B1MBhh7o.js","static/AccessDenied-PrzSvkgv.js","static/Documents-C8KrBFzU.js","static/Download-DeIn0VAL.js","static/ChevronUp-3VMiyA07.js","static/Link-Cl1VSeDJ.js","static/Ulist-CYD_2mDY.js","static/BinaryDocument-D1GQsa0h.js","static/Upload-ChJKE2jO.js","static/ReadOnly-BkEx9qPu.js","static/Reset-CgCZnejz.js","static/Launch-DuEs-KHJ.js","static/Unknown-CEYtdaCK.js","static/Add-CwQ5TpM8.js","static/Lock-Ui2f2sVi.js","static/EyeOpen-DOBSuUsK.js","static/BulbOutline-BN--Ec2H.js","static/HelpCircle-8HZ3whUD.js","static/Collapse-B22lXxln.js","static/Expand-CQC9Ec3E.js","static/BlockElement-CQIVGSb1.js","static/Bold-CGtaOUDj.js","static/Code-COts8HnY.js","static/InlineElement-BWl55c6a.js","static/Italic-BmVn7uuk.js","static/Olist-BBuinWyR.js","static/Strikethrough-BszDIkmY.js","static/Underline-BdG8-Er-.js","static/ThLarge-CjFCbJnr.js","static/Desktop-msdzf3th.js","static/Moon-NrRkSdh3.js","static/Sun-OgXegq7_.js","static/DragHandle-CKP6vPDQ.js","static/AddDocument-Ca_v8JdZ.js","static/InsertAbove-C8i6y-4D.js","static/InsertBelow-BILWhc2X.js","static/Crop-DW3NFLyK.js","static/PerspectiveProvider-qJFIbsuW-Di-8vf7M.css","static/SingleDocReleaseLayout-CGZjyIyT-DZH3Yljp.js","static/SingleDocReleaseUpsellProvider-eSYyzLjC-BW_WNBsf.js","static/ReleasesStudioLayout-Ce5UEhJ2-B3mzrSfE.js","static/ReleasesMetadataProvider-D91ckc8k-CFm0QyTL.js","static/ReleasesTool-TkOviWIk-2S3BVcAb.js","static/CheckmarkCircle-B6SBY4QE.js","static/Share-D41CqXzI.js","static/Target-6sSmw-4o.js","static/Restore-DhBjjWCd.js","static/Archive-CNM-Azpz.js","static/CloseCircle-COYZpajm.js","static/Filter-DVm6AUFi.js","static/Pin-D-D-SwHN.js","static/PinFilled-pZaJsWPB.js","static/Text-CVWqn-j_.js","static/Unarchive-CobryITl.js","static/User-BbvVoXNB.js","static/searchDocumentRelease-CGTwubjG-BI28zlQl.js","static/sanity-DeX-YVGt.js","static/lib-CQcSfzr9.js","static/CommentsProvider-DHVaZIPI-2Crq30kn.js","static/useAddonDataset-BvCgByG6-N5vrKMLm.js","static/helpers-D_aQC6Do-Cc0nAXnJ.js","static/buildRangeDecorationSelectionsFromComments-B6nJH-Wx-DCNxDhrr.js","static/CommentsListItem-B4CoDHda-DaXAEbir.js","static/Undo-qtvfkxbn.js","static/LinkRemoved-LZtddC2J.js","static/CommentsList-CmhU6-yt-B2twFKeQ.js","static/CommentsEnabledProvider-CEeES47b-AmQjnwX5.js","static/useComments-Bi1m7AzT-DcZcKqsq.js","static/CommentsEnabledProvider-By3TCGFl-C60crpzJ.js","static/AddonDatasetProvider-CF_RtUZo-BdePhlKm.js","static/lib-BFHl89nf.css","static/Select-D4xIAUnY.js","static/Sort-CFTgH29c.js","static/Clipboard-BeSdPeHT.js","static/BackLink-BBYTIbKc-DJkKvofp.js","static/ComposeSparkles-Dn7kooau.js","static/Stack-DWymSM37.js","static/StackCompact-appU5vbP.js","static/Transfer-CJnKiHxh.js","static/DocumentRemove-CzwTDkkJ.js","static/Pause-ibSxMIa3.js","static/Star-_p_HG-Ts.js","static/StarFilled-CSrmmOKn.js","static/SplitVertical-uh7MyVDf.js","static/Json-C_MCH-ZM.js","static/Folder-1uErXl57.js","static/MasterDetail-DYBJvEeG.js","static/CalendarFilter-Xl97nJYN-wFA6qJeb.js","static/resources-DtIZSAxS-DSm9NzHV.js","static/resources-D76Njl12-BUdCnyMD.js","static/resources-DIQpu7dY-ChCeZS97.js","static/VideoPlayer-lnSLx45L-Cz0fScwA.js","static/resources-Cc48NS-V-Djjupw-M.js","static/CommentsInspector-DdzOBtmY-CwJa9svY.js","static/CommentInput-C1kF5k49-CItaByrLine truncated
|
||||
import{i as e,t}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as n,$a as r,$c as i,$i as a,$l as o,$n as s,$p as c,$r as l,$u as u,A as d,Aa as f,Ac as p,Ad as m,Ai as h,Am as g,Ao as _,Ar as v,As as y,At as b,Au as x,B as S,Ba as C,Bc as w,Bd as T,Bf as E,Bi as D,Bl as O,Bn as k,Bp as A,Br as j,Bt as M,Bu as N,Ca as P,Cd as F,Ci as I,Cl as L,Cm as R,Cn as z,Co as B,Cp as V,Cs as H,Cu as U,Da as W,Dd as ee,Df as te,Dl as G,Dm as K,Dn as ne,Ds as re,Dt as ie,Ec as ae,Ed as oe,Ef as se,El as ce,En as le,Et as ue,Eu as de,F as fe,Fc as pe,Fd as me,Fi as he,Fl as ge,Fn as _e,Fo as ve,Fp as ye,Fr as be,Fs as xe,Fu as Se,Ga as Ce,Gd as we,Gl as Te,Gn as Ee,Go as De,Gp as Oe,Gt as ke,Gu as Ae,Hd as je,Hf as Me,Hl as Ne,Hn as Pe,Ho as Fe,Ht as Ie,Hu as Le,I as Re,Id as ze,If as Be,Ii as Ve,Io as He,Ir as Ue,It as We,Iu as Ge,J as Ke,Ja as qe,Jc as Je,Ji as Ye,Jn as Xe,Jo as Ze,Jp as Qe,Jr as $e,Jt as et,Ju as tt,K as nt,Ka as rt,Kd as it,Ki as at,Kn as ot,Ks as st,Kt as ct,Ku as lt,L as ut,La as dt,Lc as ft,Ld as pt,Lf as mt,Li as ht,Ll as gt,Ln as _t,Lp as vt,Lr as yt,Ls as bt,Lt as xt,Lu as St,M as Ct,Mc as wt,Md as Tt,Mi as Et,Mm as Dt,Mn as Ot,Mo as kt,Mp as At,Mr as jt,Ms as Mt,Mt as Nt,N as Pt,Na as Ft,Nd as It,Nf as Lt,Ni as Rt,Nl as zt,Nn as Bt,No as Vt,Np as Ht,Nr as Ut,Nt as Wt,Nu as Gt,Od as Kt,Of as qt,Om as Jt,On as Yt,Os as Xt,Ot as Zt,P as Qt,Pa as $t,Pd as en,Pf as tn,Pi as nn,Pl as rn,Pn as an,Po as on,Pp as sn,Pr as cn,Ps as ln,Pt as un,Pu as dn,Q as fn,Qa as pn,Qc as mn,Qi as hn,Ql as gn,Qn as _n,Qo as vn,Qp as yn,Qr as bn,Qs as xn,Qt as Sn,Qu as Cn,R as wn,Ra as Tn,Rc as En,Rd as Dn,Ri as On,Rl as kn,Rn as An,Ro as jn,Rp as Mn,Rs as Nn,Rt as Pn,Ru as Fn,S as In,Sd as q,Sl as Ln,Sm as Rn,Sn as zn,So as Bn,Sp as Vn,Ss as Hn,Su as Un,T as Wn,Ta as Gn,Tc as Kn,Td as qn,Tf as Jn,Ti as Yn,Tl as Xn,Tn as Zn,To as Qn,Tr as $n,Ts as er,Tt as tr,Tu as nr,Uc as rr,Ud as ir,Uf as ar,Un as or,Ur as sr,Us as cr,Ut as lr,Uu as ur,Va as dr,Vc as fr,Vf as pr,Vi as mr,Vl as hr,Vn as gr,Vo as _r,Vt as vr,Vu as yr,W as br,Wc as xr,Wd as Sr,Wn as Cr,Wo as wr,Wp as Tr,Wr as Er,Wt as Dr,Wu as Or,X as kr,Xa as Ar,Xf as jr,Xi as Mr,Xl as Nr,Xn as Pr,Xo as Fr,Xp as Ir,Xr as Lr,Xs as Rr,Xt as zr,Xu as Br,Y as Vr,Yf as Hr,Yi as Ur,Yl as Wr,Yn as Gr,Yo as Kr,Yp as qr,Yr as Jr,Ys as Yr,Yt as Xr,Yu as Zr,Z as Qr,Zc as $r,Zl as ei,Zn as ti,Zo as ni,Zr as ri,Zs as ii,Zt as ai,Zu as oi,_ as si,_a as ci,_d as li,_f as ui,_l as di,_m as fi,_o as pi,_p as mi,_r as hi,_u as gi,a as _i,aa as vi,ad as yi,af as bi,ai as xi,al as Si,am as Ci,an as wi,ao as Ti,as as Ei,at as Di,au as Oi,b as ki,bd as Ai,bf as ji,bi as Mi,bl as Ni,bm as Pi,bn as Fi,bo as Ii,br as Li,bs as Ri,bu as zi,c as Bi,cd as Vi,cf as Hi,ci as Ui,cl as Wi,cn as Gi,co as Ki,cp as qi,cs as Ji,ct as Yi,cu as Xi,da as Zi,dc as Qi,dd as $i,df as ea,di as ta,dl as na,dm as ra,do as ia,dr as aa,ds as oa,dt as sa,du as ca,ec as la,ed as ua,ei as da,em as fa,en as pa,eo as ma,ep as ha,er as ga,es as _a,eu as va,f as ya,fa as ba,ff as xa,fi as Sa,fm as Ca,fn as wa,fo as Ta,fp as Ea,fr as Da,fs as Oa,fu as ka,ga as Aa,gd as ja,gf as Ma,gi as Na,gl as Pa,gm as Fa,gp as Ia,gr as La,gt as Ra,gu as za,ha as Ba,hc as Va,hd as Ha,hf as Ua,hi as Wa,hl as Ga,ht as Ka,i as qa,ia as Ja,ic as Ya,id as Xa,if as Za,ii as Qa,il as $a,im as eo,in as to,io as no,ip as ro,ir as io,is as ao,it as oo,j as so,jc as co,jd as lo,jf as uo,ji as fo,jn as po,jo as mo,js as ho,jt as go,ju as _o,kd as vo,kf as yo,kl as bo,km as xo,kn as So,ko as Co,kp as wo,kr as To,ks as Eo,kt as Do,ku as Oo,la as ko,lc as Ao,ld as jo,lf as Mo,li as No,ll as Po,ln as Fo,lo as Io,lp as Lo,lr as Ro,ls as zo,lu as Bo,ma as Vo,mi as Ho,ml as Uo,mm as Wo,mn as Go,mr as Ko,mt as qo,mu as Jo,na as Yo,nc as Xo,nd as Zo,nf as Qo,ni as $o,nm as es,nn as ts,no as ns,nr as rs,ns as is,nt as as,nu as os,o as eee,oa as ss,oc as cs,od as ls,of as us,oi as ds,om as fs,on as ps,oo as ms,op as hs,or as gs,os as _s,ou as vs,pa as ys,pc as bs,pd as xs,pf as Ss,pi as Cs,pl as ws,pm as Ts,pn as Es,pp as Ds,ps as Os,pt as ks,pu as As,q as js,qa as Ms,qc as Ns,qd as Ps,qi as Fs,qn as Is,qo as Ls,qr as Rs,qt as zs,qu as Bs,ra as Vs,rc as Hs,rd as Us,rf as Ws,ri as Gs,rl as Ks,rn as qs,ro as Js,rr as Ys,rs as Xs,ru as Zs,s as Qs,sa as $s,sc as ec,sd as tc,sf as nc,si as rc,sn as ic,sr as ac,ss as oc,st as sc,su as cc,t as lc,ta as uc,tc as dc,td as fc,tf as pc,ti as mc,tl as hc,tm as gc,to as _c,tr as vc,ts as yc,tu as bc,u as tee,uc as xc,uf as Sc,ui as Cc,ul as wc,um as Tc,uo as Ec,us as Dc,ut as Oc,uu as kc,va as Ac,vi as jc,vl as Mc,vn as Nc,vp as Pc,vr as Fc,wc as Ic,wd as Lc,wf as Rc,wl as zc,wm as Bc,wn as Vc,wo as Hc,wr as Uc,ws as Wc,xa as Gc,xd as Kc,xf as qc,xl as Jc,xm as Yc,xn as Xc,xo as Zc,xp as Qc,xr as $c,xu as el,y as tl,yc as nl,yd as rl,yf as il,yi as al,yl as ol,ym as sl,yn as cl,yo as ll,yp as ul,yr as dl,yu as fl,za as pl,zc as ml,zf as hl,zi as gl,zl as _l,zn as vl,zo as yl,zp as bl,zs as xl,zt as Sl,zu as Cl}from"./PersLine truncated
|
||||
`);throw Error(`Unknown selection - must be one of:\n\n${t}`)}function cm(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function lm(e,t,n){cm(e,t),t.set(e,n)}function um(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function dm(e,t,n){return e.set(um(e,t),n),n}function $(e,t){return e.get(um(e,t))}var fm=class{constructor(e,t={}){Od(this,`selection`,void 0),Od(this,`operations`,void 0),this.selection=e,this.operations=t}set(e){return this._assign(`set`,e)}setIfMissing(e){return this._assign(`setIfMissing`,e)}diffMatchPatch(e){return mp(`diffMatchPatch`,e),this._assign(`diffMatchPatch`,e)}unset(e){if(!Array.isArray(e))throw Error(`unset(attrs) takes an array of attributes to unset, non-array given`);return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign(`inc`,e)}dec(e){return this._assign(`dec`,e)}insert(e,t,n){return see(e,t,n),this._assign(`insert`,{[e]:t,items:n})}append(e,t){return this.insert(`after`,`${e}[-1]`,t)}prepend(e,t){return this.insert(`before`,`${e}[0]`,t)}splice(e,t,n,r){let i=n===void 0||n===-1,a=t<0?t-1:t,o=i?-1:Math.max(0,t+n),s=`${e}[${a}:${a<0&&o>=0?``:o}]`;return this.insert(`replace`,s,r||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...sm(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,n=!0){return mp(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}},pm=new WeakMap,mm=class e extends fm{constructor(e,t,n){super(e,t),lm(this,pm,void 0),dm(pm,this,n)}clone(){return new e(this.selection,{...this.operations},$(pm,this))}commit(e){if(!$(pm,this))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=typeof this.selection==`string`,n=Object.assign({returnFirst:t,returnDocuments:!0},e);return $(pm,this).mutate({patch:this.serialize()},n)}},hm=new WeakMap,gm=class e extends fm{constructor(e,t,n){super(e,t),lm(this,hm,void 0),dm(hm,this,n)}clone(){return new e(this.selection,{...this.operations},$(hm,this))}commit(e){if(!$(hm,this))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=typeof this.selection==`string`,n=Object.assign({returnFirst:t,returnDocuments:!0},e);return $(hm,this).mutate({patch:this.serialize()},n)}},_m={returnDocuments:!1},vm=class{constructor(e=[],t){Od(this,`operations`,void 0),Od(this,`trxId`,void 0),this.operations=e,this.trxId=t}create(e){return mp(`create`,e),this._add({create:e})}createIfNotExists(e){let t=`createIfNotExists`;return mp(t,e),gp(t,e),this._add({[t]:e})}createOrReplace(e){let t=`createOrReplace`;return mp(t,e),gp(t,e),this._add({[t]:e})}delete(e){return hp(`delete`,e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}},ym=new WeakMap,bm=class e extends vm{constructor(e,t,n){super(e,n),lm(this,ym,void 0),dm(ym,this,t)}clone(){return new e([...this.operations],$(ym,this),this.trxId)}commit(e){if(!$(ym,this))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return $(ym,this).mutate(this.serialize(),Object.assign({transactionId:this.trxId},_m,e||{}))}patch(e,t){let n=typeof t==`function`,r=typeof e!=`string`&&e instanceof gm,i=typeof e==`object`&&(`query`in e||`id`in e);if(r)return this._add({patch:e.serialize()});if(n){let n=t(new gm(e,{},$(ym,this)));if(!(n instanceof gm))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}if(i){let n=new gm(e,t||{},$(ym,this));return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}},xm=new WeakMap,Sm=class e extends vm{constructor(e,t,n){super(e,n),lm(this,xm,void 0),dm(xm,this,t)}clone(){return new e([...this.operations],$(xm,this),this.trxId)}commit(e){if(!$(xm,this))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return $(xm,this).mutate(this.serialize(),Object.assign({transactionId:this.trxId},_m,e||{}))}patch(e,t){let n=typeof t==`function`;if(typeof e!=`string`&&e instanceof mm)return this._add({patch:e.serialize()});if(n){let n=t(new mm(e,{},$(xm,this)));if(!(n instanceof mm))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:{id:e,...t}})}},Cm=[`headers`,`signal`,`tag`,`timeout`,`token`];function wm(e,t={}){let n={};e.headers&&Object.assign(n,e.headers);let r=t.token||e.token;r&&(n.Authorization=`BearerLine truncated
|
||||
`&&e.push(`
|
||||
`),M!==null&&e.push(P(``+M)),null;case`input`:e.push(ke(`input`));var z=null,B=null,V=null,H=null,W=null,ee=null,te=null,G=null,K=null,ne;for(ne in n)if(E.call(n,ne)){var re=n[ne];if(re!=null)switch(ne){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(399,`input`));case`name`:z=re;break;case`formAction`:B=re;break;case`formEncType`:V=re;break;case`formMethod`:H=re;break;case`formTarget`:W=re;break;case`defaultChecked`:K=re;break;case`defaultValue`:te=re;break;case`checked`:G=re;break;case`value`:ee=re;break;default:he(e,ne,re)}}var ie=me(e,i,a,B,V,H,W,z);return G===null?K!==null&&ce(e,`checked`,K):ce(e,`checked`,G),ee===null?te!==null&&he(e,`value`,te):he(e,`value`,ee),e.push(`/>`),ie?.forEach(de,e),null;case`button`:e.push(ke(`button`));var ae=null,oe=null,fe=null,De=null,Oe=null,Ae=null,je=null,Ne;for(Ne in n)if(E.call(n,Ne)){var Pe=n[Ne];if(Pe!=null)switch(Ne){case`children`:ae=Pe;break;case`dangerouslySetInnerHTML`:oe=Pe;break;case`name`:fe=Pe;break;case`formAction`:De=Pe;break;case`formEncType`:Oe=Pe;break;case`formMethod`:Ae=Pe;break;case`formTarget`:je=Pe;break;default:he(e,Ne,Pe)}}var Fe=me(e,i,a,De,Oe,Ae,je,fe);if(e.push(`>`),Fe?.forEach(de,e),ge(e,oe,ae),typeof ae==`string`){e.push(P(ae));var Ie=null}else Ie=ae;return Ie;case`form`:e.push(ke(`form`));var Le=null,Re=null,ze=null,Be=null,Ve=null,He=null,Ue;for(Ue in n)if(E.call(n,Ue)){var We=n[Ue];if(We!=null)switch(Ue){case`children`:Le=We;break;case`dangerouslySetInnerHTML`:Re=We;break;case`action`:ze=We;break;case`encType`:Be=We;break;case`method`:Ve=We;break;case`target`:He=We;break;default:he(e,Ue,We)}}var Ge=null,Ke=null;if(typeof ze==`function`){var qe=pe(i,ze);qe===null?(e.push(` `,`action`,`="`,ue,`"`),He=Ve=Be=ze=null,ve(i,a)):(ze=qe.action||``,Be=qe.encType,Ve=qe.method,He=qe.target,Ge=qe.data,Ke=qe.name)}if(ze!=null&&he(e,`action`,ze),Be!=null&&he(e,`encType`,Be),Ve!=null&&he(e,`method`,Ve),He!=null&&he(e,`target`,He),e.push(`>`),Ke!==null&&(e.push(`<input type="hidden"`),le(e,`name`,Ke),e.push(`/>`),Ge?.forEach(de,e)),ge(e,Re,Le),typeof Le==`string`){e.push(P(Le));var Je=null}else Je=Le;return Je;case`menuitem`:for(var Ye in e.push(ke(`menuitem`)),n)if(E.call(n,Ye)){var Xe=n[Ye];if(Xe!=null)switch(Ye){case`children`:case`dangerouslySetInnerHTML`:throw Error(r(400));default:he(e,Ye,Xe)}}return e.push(`>`),null;case`object`:e.push(ke(`object`));var Ze=null,Qe=null,$e;for($e in n)if(E.call(n,$e)){var et=n[$e];if(et!=null)switch($e){case`children`:Ze=et;break;case`dangerouslySetInnerHTML`:Qe=et;break;case`data`:var tt=R(``+et);if(tt===``)break;e.push(` `,`data`,`="`,P(tt),`"`);break;default:he(e,$e,et)}}if(e.push(`>`),ge(e,Qe,Ze),typeof Ze==`string`){e.push(P(Ze));var nt=null}else nt=Ze;return nt;case`title`:var rt=c.tagScope&1,it=c.tagScope&4;if(c.insertionMode===4||rt||n.itemProp!=null)var at=Ce(e,n);else it?at=null:(Ce(a.hoistableChunks,n),at=void 0);return at;case`link`:var ot=c.tagScope&1,st=c.tagScope&4,ct=n.rel,lt=n.href,ft=n.precedence;if(c.insertionMode===4||ot||n.itemProp!=null||typeof ct!=`string`||typeof lt!=`string`||lt===``){ye(e,n);var pt=null}else if(n.rel===`stylesheet`){if(typeof ft!=`string`||n.disabled!=null||n.onLoad||n.onError)pt=ye(e,n);else{var mt=a.styles.get(ft),ht=i.styleResources.hasOwnProperty(lt)?i.styleResources[lt]:void 0;if(ht!==null){i.styleResources[lt]=null,mt||(mt={precedence:P(ft),rules:[],hrefs:[],sheets:new Map},a.styles.set(ft,mt));var gt={state:0,props:T({},n,{"data-precedence":n.precedence,precedence:null})};if(ht){ht.length===2&&ut(gt.props,ht);var _t=a.preloads.stylesheets.get(lt);_t&&0<_t.length?_t.length=0:gt.state=1}mt.sheets.set(lt,gt),s&&s.stylesheets.add(gt)}else if(mt){var vt=mt.sheets.get(lt);vt&&s&&s.stylesheets.add(vt)}l&&e.push(`<!-- -->`),pt=null}}else n.onLoad||n.onError?pt=ye(e,n):(l&&e.push(`<!-- -->`),pt=st?null:ye(a.hoistableChunks,n));return pt;case`script`:var yt=c.tagScope&1,bt=n.async;if(typeof n.src!=`string`||!n.src||!bt||typeof bt==`function`||typeof bt==`symbol`||n.onLoad||n.onError||c.insertionMode===4||yt||n.itemProp!=null)var xt=we(e,n);else{var St=n.src;if(n.type===`module`)var Ct=i.moduleScriptResources,wt=a.preloads.moduleScripts;else Ct=i.scriptResources,wt=a.preloads.scripts;var Tt=Ct.hasOwnProperty(St)?Ct[St]:void 0;if(Tt!==null){Ct[St]=null;var Et=n;if(Tt){Tt.length===2&&(Et=T({},n),ut(Et,Tt));var Dt=wt.get(St);Dt&&(Dt.length=0)}var Ot=[];a.scripts.add(Ot),we(Ot,Et)}l&&e.push(`<!-- -->`),xt=null}return xt;case`style`:var kt=c.tagScope&1,At=n.precedence,jt=n.href,Mt=n.nonce;if(c.insertionMode===4||kt||n.itemProp!=null||typeof At!=`string`||typeof jt!=`string`||jt===``){e.push(ke(`style`));var Nt=null,Pt=null,Ft;for(Ft in n)if(E.call(n,Ft)){var It=n[Ft];if(It!=null)switch(Ft){case`children`:Nt=It;break;case`dangerouslySetInnerHTML`:Pt=It;break;default:he(e,Ft,It)}}e.push(`>`);var Lt=Array.isArray(Nt)?2>Nt.length?Nt[0]:null:Nt;typeof Lt!=`function`&&typeof Lt!=`symbol`&&Lt!=null&&e.push((``+Lt).replace(be,xe)),ge(e,Pt,Nt),e.push(Me(`style`));var Rt=null}
Line truncated
|
||||
@@ -52,7 +52,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
||||
`),e=r===-1?e:e.slice(r+1),e.indexOf(n)!==-1)){n=`
|
||||
`+e;break a}n=Ii(n+(t?` [`+t+`]`:``))}return n}}switch(e){case p:return Ii(`SuspenseList`);case f:return Ii(`Suspense`)}return``}function Bi(e,t){return(500<t.byteSize||kr(t.contentState))&&t.contentPreamble===null}function Vi(e){if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var t=e.environmentName;e=[e].slice(0),typeof e[0]==`string`?e.splice(0,1,`%c%s%c `+e[0],`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``):e.splice(0,0,`%c%s%c`,`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,` `+t+` `,``),e.unshift(console),t=Ar.apply(console.error,e),t()}else console.error(e);return null}function Hi(e,t,n,r,i,a,o,s,c,l,u){var d=new Set;this.destination=null,this.flushScheduled=!1,this.resumableState=e,this.renderState=t,this.rootFormatContext=n,this.progressiveChunkSize=r===void 0?12800:r,this.status=10,this.fatalError=null,this.pendingRootTasks=this.allPendingTasks=this.nextSegmentId=0,this.completedPreambleSegments=this.completedRootSegment=null,this.byteSize=0,this.abortableTasks=d,this.pingedTasks=[],this.clientRenderedBoundaries=[],this.completedBoundaries=[],this.partialBoundaries=[],this.trackedPostpones=null,this.onError=i===void 0?Vi:i,this.onPostpone=l===void 0?Jr:l,this.onAllReady=a===void 0?Jr:a,this.onShellReady=o===void 0?Jr:o,this.onShellError=s===void 0?Jr:s,this.onFatalError=c===void 0?Jr:c,this.formState=u===void 0?null:u}function Ui(e,t,n,r,i,a,o,s,c,l,u,d){return t=new Hi(t,n,r,i,a,o,s,c,l,u,d),n=Qi(t,0,null,r,!1,!1),n.parentFlushed=!0,e=Xi(t,null,e,-1,null,n,null,null,t.abortableTasks,null,r,null,Hr,null,null),$i(e),t.pingedTasks.push(e),t}function Wi(e,t,n,r,i,a,o,s,c,l,u){return e=Ui(e,t,n,r,i,a,o,s,c,l,u,void 0),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}function Gi(e,t,n,r,i,a,o,s,c){return n=new Hi(t.resumableState,n,t.rootFormatContext,t.progressiveChunkSize,r,i,a,o,s,c,null),n.nextSegmentId=t.nextSegmentId,typeof t.replaySlots==`number`?(r=Qi(n,0,null,t.rootFormatContext,!1,!1),r.parentFlushed=!0,e=Xi(n,null,e,-1,null,r,null,null,n.abortableTasks,null,t.rootFormatContext,null,Hr,null,null),$i(e),n.pingedTasks.push(e),n):(e=Zi(n,null,{nodes:t.replayNodes,slots:t.replaySlots,pendingTasks:0},e,-1,null,null,n.abortableTasks,null,t.rootFormatContext,null,Hr,null,null),$i(e),n.pingedTasks.push(e),n)}function Ki(e,t,n,r,i,a,o,s,c){return e=Gi(e,t,n,r,i,a,o,s,c),e.trackedPostpones={workingMap:new Map,rootNodes:[],rootSlots:null},e}var qi=null;function Ji(e,t){e.pingedTasks.push(t),e.pingedTasks.length===1&&(e.flushScheduled=e.destination!==null,e.trackedPostpones!==null||e.status===10?A(function(){return ja(e)}):D(function(){return ja(e)}))}function Yi(e,t,n,r,i){return n={status:0,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,row:t,completedSegments:[],byteSize:0,fallbackAbortableTasks:n,errorDigest:null,contentState:fr(),fallbackState:fr(),contentPreamble:r,fallbackPreamble:i,trackedContentKeyPath:null,trackedFallbackNode:null},t!==null&&(t.pendingTasks++,r=t.boundaries,r!==null&&(e.allPendingTasks++,n.pendingTasks++,r.push(n)),e=t.inheritedHoistables,e!==null&&Or(n.contentState,e)),n}function Xi(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){e.allPendingTasks++,i===null?e.pendingRootTasks++:i.pendingTasks++,p!==null&&p.pendingTasks++;var h={replay:null,node:n,childIndex:r,ping:function(){return Ji(e,h)},blockedBoundary:i,blockedSegment:a,blockedPreamble:o,hoistableState:s,abortSet:c,keyPath:l,formatContext:u,context:d,treeContext:f,row:p,componentStack:m,thenableState:t};return c.add(h),h}function Zi(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.allPendingTasks++,a===null?e.pendingRootTasks++:a.pendingTasks++,f!==null&&f.pendingTasks++,n.pendingTasks++;var m={replay:n,node:r,childIndex:i,ping:function(){return Ji(e,m)},blockedBoundary:a,blockedSegment:null,blockedPreamble:null,hoistableState:o,abortSet:s,keyPath:c,formatContext:l,context:u,treeContext:d,row:f,componentStack:p,thenableState:t};return s.add(m),m}function Qi(e,t,n,r,i,a){return{status:0,parentFlushed:!1,id:-1,index:t,chunks:[],children:[],preambleChildren:[],parentFormatContext:r,boundary:n,lastPushedText:i,textEmbedded:a}}function $i(e){var t=e.node;if(typeof t==`object`&&t)switch(t.$$typeof){case i:e.componentStack={parent:e.componentStack,type:t.type}}}function ea(e){return e===null?null:{parent:e.parent,type:`Suspense Fallback`}}function ta(e){var t={};return e&&Object.defineProperty(t,"componentStack",{configurable:!0,enumerable:!0,get:function(){try{var n=``,r=e;do n+=zi(r.type),r=r.parent;while(r);var i=n}catch(e){i=`
|
||||
Error generating stack: `+e.message+`
|
||||
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function na(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function ra(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,B(e.destination,t))}function ia(e,t){aa(e,t.next,t.hoistables)}function aa(e,t,n){for(;t!==null;){n!==null&&(Or(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Or(a.contentState,n),Aa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function oa(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Bi(e,a)){r=!1;break}}r&&aa(e,t,t.hoistables)}}function sa(e){var t={pendingTasks:1,boundaries:null,hoistables:fr(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function ca(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=sa(c),t.treeContext=Ur(o,n,d);var p=l[d];typeof p==`number`?(fa(e,t,p,f,d),delete l[d]):xa(e,t,f,d),--c.pendingTasks===0&&ia(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=sa(c),t.treeContext=Ur(o,n,u),xa(e,t,d,u),--c.pendingTasks===0&&ia(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=sa(c),t.treeContext=Ur(o,n,i),xa(e,t,l,i),--c.pendingTasks===0&&ia(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=sa(c),t.treeContext=Ur(o,n,d),p=Qi(e,u,null,t.formatContext,d!==0||i.lastPushedText,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{xa(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Ie),p.status=1,ka(e,t.blockedBoundary,p),--c.pendingTasks===0&&ia(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function la(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,ti={},ni=t,ri=e,ii=n,ui=li=0,di=-1,fi=0,pi=o,e=r(i,a);ci;)ci=!1,ui=li=0,di=-1,fi=0,hi+=1,oi=null,e=r(i,a);return bi(),e}function ua(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(lt):c.push(ut)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Ur(n,1,0),xa(e,t,r,-1),t.treeContext=n):s?xa(e,t,r,-1):pa(e,t,r,-1),t.keyPath=a}function da(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var w in x={},a)w!==`ref`&&(x[w]=a[w]);var T=i.defaultProps;if(T)for(var E in x===a&&(x=V({},x,a)),T)x[E]===void 0&&(x[E]=T[E]);a=x,x=Nr,T=i.contextType,typeof T==`object`&&T&&(x=T._currentValue),x=new i(a,x);var D=x.state===void 0?null:x.state;if(x.updater=Vr,x.props=a,x.state=D,T={queue:[],replace:!1},x._reactInternals=T,y=i.contextType,x.context=typeof y==`object`&&y?y._currentValue:Nr,y=i.getDerivedStateFromProps,typeof y==`function`&&(y=y(a,D),D=y==null?D:V({},D,y),x.state=D),typeof i.getDerivedStateFromProps!=`function`&&typeof x.getSnapshotBeforeUpdate!=`function`&&(typeof x.UNSAFE_componentWillMount==`function`||typeof x.componentWillMount==`function`)){if(i=x.state,typeof x.componentWillMount==`function`&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount==`function`&&x.UNSAFE_componentWillMount(),i!==x.state&&Vr.enqueueReplaceState(x,x.state,null),T.queue!==null&&0<T.queue.length){if(i=T.queue,y=T.replace,T.queue=null,T.replace=!1,y&&i.length===1)x.state=i[0];else{for(T=y?i[0]:x.state,D=!0,y=+!!y;y<i.length;y++)E=i[y],E=typeof E==`function`?E.call(x,T,a,void 0):E,E!=null&&(D?(D=!1,T=V({},T,E)):V(T,E));x.state=T}}else T.queue=null}if(i=x.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,pa(e,t,i,-1),t.keyPath=a}else{if(i=la(e,t,n,i,a,void 0),e.status===12)throw null;ua(e,t,n,i,li!==0,ui,di)}}else if(typeof i==`string`){if(x=t.blockedSegment,x===null)x=a.children,T=t.formatContext,D=t.keyPath,t.formatContext=Me(T,i,a),t.keyPath=n,xa(e,t,x,-1),t.formatContext=T,t.keyPath=D;else{if(D=Dt(x.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,x.lastPushedText),x.lastPushedText=!1,T=t.formatContext,y=t.keyPath,t.keyPath=n,(t.formatContext=Me(T,i,a)).insertionMode===3){n=Qi(e,0,null,t.formatContext,!1,!1),x.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,xa(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Ie),n.status=1,ka(e,t.blockedBoundary,n)}finally{t.blockedSegment=x}}else xa(e,t,D,-1);t.formatContext=T,t.keyPath=y;a:{switch(t=x.chunks,e=e.resumable
Line truncated
|
||||
`+e.stack}return Object.defineProperty(t,"componentStack",{value:i}),i}}),t}function na(e,t,n){if(e=e.onError,t=e(t,n),t==null||typeof t==`string`)return t}function ra(e,t){var n=e.onShellError,r=e.onFatalError;n(t),r(t),e.destination===null?(e.status=13,e.fatalError=t):(e.status=14,B(e.destination,t))}function ia(e,t){aa(e,t.next,t.hoistables)}function aa(e,t,n){for(;t!==null;){n!==null&&(Or(t.hoistables,n),t.inheritedHoistables=n);var r=t.boundaries;if(r!==null){t.boundaries=null;for(var i=0;i<r.length;i++){var a=r[i];n!==null&&Or(a.contentState,n),Aa(e,a,null,null)}}if(t.pendingTasks--,0<t.pendingTasks)break;n=t.hoistables,t=t.next}}function oa(e,t){var n=t.boundaries;if(n!==null&&t.pendingTasks===n.length){for(var r=!0,i=0;i<n.length;i++){var a=n[i];if(a.pendingTasks!==1||a.parentFlushed||Bi(e,a)){r=!1;break}}r&&aa(e,t,t.hoistables)}}function sa(e){var t={pendingTasks:1,boundaries:null,hoistables:fr(),inheritedHoistables:null,together:!1,next:null};return e!==null&&0<e.pendingTasks&&(t.pendingTasks++,t.boundaries=[],e.next=t),t}function ca(e,t,n,r,i){var a=t.keyPath,o=t.treeContext,s=t.row;t.keyPath=n,n=r.length;var c=null;if(t.replay!==null){var l=t.replay.slots;if(typeof l==`object`&&l)for(var u=0;u<n;u++){var d=i!==`backwards`&&i!==`unstable_legacy-backwards`?u:n-1-u,f=r[d];t.row=c=sa(c),t.treeContext=Ur(o,n,d);var p=l[d];typeof p==`number`?(fa(e,t,p,f,d),delete l[d]):xa(e,t,f,d),--c.pendingTasks===0&&ia(e,c)}else for(l=0;l<n;l++)u=i!==`backwards`&&i!==`unstable_legacy-backwards`?l:n-1-l,d=r[u],t.row=c=sa(c),t.treeContext=Ur(o,n,u),xa(e,t,d,u),--c.pendingTasks===0&&ia(e,c)}else if(i!==`backwards`&&i!==`unstable_legacy-backwards`)for(i=0;i<n;i++)l=r[i],t.row=c=sa(c),t.treeContext=Ur(o,n,i),xa(e,t,l,i),--c.pendingTasks===0&&ia(e,c);else{for(i=t.blockedSegment,l=i.children.length,u=i.chunks.length,d=n-1;0<=d;d--){f=r[d],t.row=c=sa(c),t.treeContext=Ur(o,n,d),p=Qi(e,u,null,t.formatContext,d!==0||i.lastPushedText,!0),i.children.splice(l,0,p),t.blockedSegment=p;try{xa(e,t,f,d),p.lastPushedText&&p.textEmbedded&&p.chunks.push(Ie),p.status=1,ka(e,t.blockedBoundary,p),--c.pendingTasks===0&&ia(e,c)}catch(t){throw p.status=e.status===12?3:4,t}}t.blockedSegment=i,i.lastPushedText=!1}s!==null&&c!==null&&0<c.pendingTasks&&(s.pendingTasks++,c.next=s),t.treeContext=o,t.row=s,t.keyPath=a}function la(e,t,n,r,i,a){var o=t.thenableState;for(t.thenableState=null,ti={},ni=t,ri=e,ii=n,ui=li=0,di=-1,fi=0,pi=o,e=r(i,a);ci;)ci=!1,ui=li=0,di=-1,fi=0,hi+=1,oi=null,e=r(i,a);return bi(),e}function ua(e,t,n,r,i,a,o){var s=!1;if(a!==0&&e.formState!==null){var c=t.blockedSegment;if(c!==null){s=!0,c=c.chunks;for(var l=0;l<a;l++)l===o?c.push(lt):c.push(ut)}}a=t.keyPath,t.keyPath=n,i?(n=t.treeContext,t.treeContext=Ur(n,1,0),xa(e,t,r,-1),t.treeContext=n):s?xa(e,t,r,-1):pa(e,t,r,-1),t.keyPath=a}function da(e,t,n,i,a,y){if(typeof i==`function`){if(i.prototype&&i.prototype.isReactComponent){var x=a;if(`ref`in a)for(var w in x={},a)w!==`ref`&&(x[w]=a[w]);var T=i.defaultProps;if(T)for(var E in x===a&&(x=V({},x,a)),T)x[E]===void 0&&(x[E]=T[E]);a=x,x=Nr,T=i.contextType,typeof T==`object`&&T&&(x=T._currentValue),x=new i(a,x);var D=x.state===void 0?null:x.state;if(x.updater=Vr,x.props=a,x.state=D,T={queue:[],replace:!1},x._reactInternals=T,y=i.contextType,x.context=typeof y==`object`&&y?y._currentValue:Nr,y=i.getDerivedStateFromProps,typeof y==`function`&&(y=y(a,D),D=y==null?D:V({},D,y),x.state=D),typeof i.getDerivedStateFromProps!=`function`&&typeof x.getSnapshotBeforeUpdate!=`function`&&(typeof x.UNSAFE_componentWillMount==`function`||typeof x.componentWillMount==`function`)){if(i=x.state,typeof x.componentWillMount==`function`&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount==`function`&&x.UNSAFE_componentWillMount(),i!==x.state&&Vr.enqueueReplaceState(x,x.state,null),T.queue!==null&&0<T.queue.length){if(i=T.queue,y=T.replace,T.queue=null,T.replace=!1,y&&i.length===1)x.state=i[0];else{for(T=y?i[0]:x.state,D=!0,y=+!!y;y<i.length;y++)E=i[y],E=typeof E==`function`?E.call(x,T,a,void 0):E,E!=null&&(D?(D=!1,T=V({},T,E)):V(T,E));x.state=T}}else T.queue=null}if(i=x.render(),e.status===12)throw null;a=t.keyPath,t.keyPath=n,pa(e,t,i,-1),t.keyPath=a}else{if(i=la(e,t,n,i,a,void 0),e.status===12)throw null;ua(e,t,n,i,li!==0,ui,di)}}else if(typeof i==`string`){if(x=t.blockedSegment,x===null)x=a.children,T=t.formatContext,D=t.keyPath,t.formatContext=Me(T,i,a),t.keyPath=n,xa(e,t,x,-1),t.formatContext=T,t.keyPath=D;else{if(D=Dt(x.chunks,i,a,e.resumableState,e.renderState,t.blockedPreamble,t.hoistableState,t.formatContext,x.lastPushedText),x.lastPushedText=!1,T=t.formatContext,y=t.keyPath,t.keyPath=n,(t.formatContext=Me(T,i,a)).insertionMode===3){n=Qi(e,0,null,t.formatContext,!1,!1),x.preambleChildren.push(n),t.blockedSegment=n;try{n.status=6,xa(e,t,D,-1),n.lastPushedText&&n.textEmbedded&&n.chunks.push(Ie),n.status=1,ka(e,t.blockedBoundary,n)}finally{t.blockedSegment=x}}else xa(e,t,D,-1);t.formatContext=T,t.keyPath=y;a:{switch(t=x.chunks,e=e.resumable
Line truncated
|
||||
`);for(let e=n;e<a.length;e++){let n=a[e];n.length>1024&&(n=n.slice(0,1024));let o=xE.test(n)?n.replace(xE,`$1`):n;if(!o.includes(`Error: `)){for(let e of t){let t=e(o);if(t){i.push(t);break}}if(i.length>=bE+r)break}}return TE(i.slice(r))}}function wE(e){return Array.isArray(e)?CE(...e):e}function TE(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(EE(t).function||``)&&t.pop(),t.reverse(),SE.test(EE(t).function||``)&&(t.pop(),SE.test(EE(t).function||``)&&t.pop()),t.slice(0,bE).map(e=>({...e,filename:e.filename||EE(t).filename,function:e.function||`?`}))}function EE(e){return e[e.length-1]||{}}var DE=`<anonymous>`;function OE(e){try{return!e||typeof e!=`function`?DE:e.name||DE}catch{return DE}}function kE(e){let t=e.exception;if(t){let e=[];try{return t.values.forEach(t=>{t.stacktrace.frames&&e.push(...t.stacktrace.frames)}),e}catch{return}}}var AE={},jE={};function ME(e,t){return AE[e]=AE[e]||[],AE[e].push(t),()=>{let n=AE[e];if(n){let e=n.indexOf(t);e!==-1&&n.splice(e,1)}}}function NE(e,t){if(!jE[e]){jE[e]=!0;try{t()}catch(t){tE&&yE.error(`Error while instrumenting ${e}`,t)}}}function PE(e,t){let n=e&&AE[e];if(n)for(let r of n)try{r(t)}catch(t){tE&&yE.error(`Error while triggering instrumentation handler.
|
||||
Type: ${e}
|
||||
Name: ${OE(r)}
|
||||
@@ -66,12 +66,12 @@ Event: ${LD(e)}.
|
||||
Url: ${sM(e)}`),!0;if(!aM(e,t.allowUrls))return tE&&yE.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
||||
Event: ${LD(e)}.
|
||||
Url: ${sM(e)}`),!0}else if(e.type===`transaction`&&rM(e,t.ignoreTransactions))return tE&&yE.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
||||
Event: ${LD(e)}`),!0;return!1}function nM(e,t){return t?.length?nj(e).some(e=>jD(e,t)):!1}function rM(e,t){if(!t?.length)return!1;let n=e.transaction;return n?jD(n,t):!1}function iM(e,t){if(!t?.length)return!1;let n=sM(e);return n?jD(n,t):!1}function aM(e,t){if(!t?.length)return!0;let n=sM(e);return!n||jD(n,t)}function oM(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function sM(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?oM(t):null}catch{return tE&&yE.error(`Cannot extract url for event ${LD(e)}`),null}}function cM(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function lM(e,t,n,r,i,a){if(!i.exception?.values||!a||!HE(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=uM(e,t,r,a.originalException,n,i.exception.values,o,0))}function uM(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(HE(r[i])){fM(o,s,r);let a=e(t,r[i]),l=c.length;pM(a,i,l,s),c=uM(e,t,n,r[i],i,[a,...c],a,l)}return dM(r)&&r.errors.forEach((a,l)=>{if(HE(a)){fM(o,s,r);let u=e(t,a),d=c.length;pM(u,`errors[${l}]`,d,s),c=uM(e,t,n,a,i,[u,...c],u,d)}}),c}function dM(e){return Array.isArray(e.errors)}function fM(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...dM(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function pM(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function mM(e){return HE(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function hM(e){return mM(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var gM=new Set([]);function _M(e){let t=`console`,n=ME(t,e);return NE(t,yM),n}var vM=new Set;function yM(){`console`in nE&&sE.forEach(function(e){!vM.has(e)&&e in nE.console&&(vM.add(e),rD(nE.console,e,function(t){return lE[e]=t,function(...t){let n=t[0],r=lE[e],i=gM.size&&typeof n==`string`&&jD(n,gM);i||PE(`console`,{args:t,level:e}),(!i||tE&&yE.isEnabled())&&r?.apply(nE.console,t)}}))})}function bM(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var xM=`Dedupe`,SM=kA((()=>{let e;return{name:xM,processEvent(t){if(t.type)return t;try{if(CM(t,e))return tE&&yE.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function CM(e,t){return t?!!(wM(e,t)||TM(e,t)):!1}function wM(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!DM(e,t)||!EM(e,t))}function TM(e,t){let n=OM(t),r=OM(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!DM(e,t)||!EM(e,t))}function EM(e,t){let n=kE(e),r=kE(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function DM(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function OM(e){return e.exception?.values?.[0]}var kM=`ConversationId`,AM=kA((()=>({name:kM,setup(e){e.on(`spanStart`,e=>{let t=wO().getScopeData(),n=TO().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=rk(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(PO,r)}})}})));function jM(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var MM=nE;function NM(){return`history`in MM&&!!MM.history}function PM(){if(!(`fetch`in MM))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function FM(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function IM(){if(typeof EdgeRuntime==`string`)return!0;if(!PM())return!1;if(FM(MM.fetch))return!0;let e=!1,t=MM.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=FM(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){tE&&yE.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function LM(e,t){let n=`fetch`,r=ME(n,e);return NE(n,()=>RM(void 0,t)),r}function RM(e,t=!1){(!t||IM())&&rD(nE,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=VM(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:KD()*1e3,virtualError:r,headers:HM(n)};return e||PE(`fetch`,{...o}),t.apply(nE,n).then(async t=>(e?e(t):PE(`fetch`,{...o,endTimestamp:KD()*1e3,response:t}),t),e=>{PE(`fetch`,{...o,endTimestamp:KD()*1e3,error:e}),HE(e)&&e.stack===void 0&&(e.stack=r.stack,iD(e,`framesToPop`,1));let t=OO()?.getOptio
Line truncated
|
||||
Event: ${LD(e)}`),!0;return!1}function nM(e,t){return t?.length?nj(e).some(e=>jD(e,t)):!1}function rM(e,t){if(!t?.length)return!1;let n=e.transaction;return n?jD(n,t):!1}function iM(e,t){if(!t?.length)return!1;let n=sM(e);return n?jD(n,t):!1}function aM(e,t){if(!t?.length)return!0;let n=sM(e);return!n||jD(n,t)}function oM(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!==`<anonymous>`&&n.filename!==`[native code]`)return n.filename||null}return null}function sM(e){try{let t=[...e.exception?.values??[]].reverse().find(e=>e.mechanism?.parent_id===void 0&&e.stacktrace?.frames?.length)?.stacktrace?.frames;return t?oM(t):null}catch{return tE&&yE.error(`Cannot extract url for event ${LD(e)}`),null}}function cM(e){return e.exception?.values?.length?!e.message&&!e.exception.values.some(e=>e.stacktrace||e.type&&e.type!==`Error`||e.value):!1}function lM(e,t,n,r,i,a){if(!i.exception?.values||!a||!HE(a.originalException))return;let o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=uM(e,t,r,a.originalException,n,i.exception.values,o,0))}function uM(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;let c=[...a];if(HE(r[i])){fM(o,s,r);let a=e(t,r[i]),l=c.length;pM(a,i,l,s),c=uM(e,t,n,r[i],i,[a,...c],a,l)}return dM(r)&&r.errors.forEach((a,l)=>{if(HE(a)){fM(o,s,r);let u=e(t,a),d=c.length;pM(u,`errors[${l}]`,d,s),c=uM(e,t,n,a,i,[u,...c],u,d)}}),c}function dM(e){return Array.isArray(e.errors)}function fM(e,t,n){e.mechanism={handled:!0,type:`auto.core.linked_errors`,...dM(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function pM(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:`chained`,source:t,exception_id:n,parent_id:r}}function mM(e){return HE(e)&&`__sentry_fetch_url_host__`in e&&typeof e.__sentry_fetch_url_host__==`string`}function hM(e){return mM(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}var gM=new Set([]);function _M(e){let t=`console`,n=ME(t,e);return NE(t,yM),n}var vM=new Set;function yM(){`console`in nE&&sE.forEach(function(e){!vM.has(e)&&e in nE.console&&(vM.add(e),rD(nE.console,e,function(t){return lE[e]=t,function(...t){let n=t[0],r=lE[e],i=gM.size&&typeof n==`string`&&jD(n,gM);i||PE(`console`,{args:t,level:e}),(!i||tE&&yE.isEnabled())&&r?.apply(nE.console,t)}}))})}function bM(e){return e===`warn`?`warning`:[`fatal`,`error`,`warning`,`log`,`info`,`debug`].includes(e)?e:`log`}var xM=`Dedupe`,SM=kA((()=>{let e;return{name:xM,processEvent(t){if(t.type)return t;try{if(CM(t,e))return tE&&yE.warn(`Event dropped due to being a duplicate of previously captured event.`),null}catch{}return e=t}}}));function CM(e,t){return t?!!(wM(e,t)||TM(e,t)):!1}function wM(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!DM(e,t)||!EM(e,t))}function TM(e,t){let n=OM(t),r=OM(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!DM(e,t)||!EM(e,t))}function EM(e,t){let n=kE(e),r=kE(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let e=0;e<r.length;e++){let t=r[e],i=n[e];if(t.filename!==i.filename||t.lineno!==i.lineno||t.colno!==i.colno||t.function!==i.function)return!1}return!0}function DM(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join(``)===r.join(``)}catch{return!1}}function OM(e){return e.exception?.values?.[0]}var kM=`ConversationId`,AM=kA((()=>({name:kM,setup(e){e.on(`spanStart`,e=>{let t=wO().getScopeData(),n=TO().getScopeData(),r=t.conversationId||n.conversationId;if(r){let{op:t,data:n,description:i}=rk(e);if(!t?.startsWith(`gen_ai.`)&&!n[`ai.operationId`]&&!i?.startsWith(`ai.`))return;e.setAttribute(PO,r)}})}})));function jM(e){if(e!==void 0){if(e>=400&&e<500)return`warning`;if(e>=500)return`error`}}var MM=nE;function NM(){return`history`in MM&&!!MM.history}function PM(){if(!(`fetch`in MM))return!1;try{return new Headers,new Request(`data:,`),new Response,!0}catch{return!1}}function FM(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function IM(){if(typeof EdgeRuntime==`string`)return!0;if(!PM())return!1;if(FM(MM.fetch))return!0;let e=!1,t=MM.document;if(t&&typeof t.createElement==`function`)try{let n=t.createElement(`iframe`);n.hidden=!0,t.head.appendChild(n),n.contentWindow?.fetch&&(e=FM(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){tE&&yE.warn(`Could not create sandbox iframe for pure fetch check, bailing to window.fetch: `,e)}return e}function LM(e,t){let n=`fetch`,r=ME(n,e);return NE(n,()=>RM(void 0,t)),r}function RM(e,t=!1){(!t||IM())&&rD(nE,`fetch`,function(t){return function(...n){let r=Error(),{method:i,url:a}=VM(n),o={args:n,fetchData:{method:i,url:a},startTimestamp:KD()*1e3,virtualError:r,headers:HM(n)};return e||PE(`fetch`,{...o}),t.apply(nE,n).then(async t=>(e?e(t):PE(`fetch`,{...o,endTimestamp:KD()*1e3,response:t}),t),e=>{PE(`fetch`,{...o,endTimestamp:KD()*1e3,error:e}),HE(e)&&e.stack===void 0&&(e.stack=r.stack,iD(e,`framesToPop`,1));let t=OO()?.getOptio
Line truncated
|
||||
min-height: ${wu(e.theme).avatar.sizes[1]?.size}px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
`);function Ez(e){let t=(0,Z.c)(41),{avatarSize:n,currentUser:r,focusLock:i,onBlur:a,onFocus:o,onKeyDown:s,onSubmit:c,placeholder:l,renderBlock:u,withAvatar:d}=e,f=n===void 0?1:n,[p]=xn(r.id),{canSubmit:m,expandOnFocus:h,focused:g,hasChanges:_,insertAtChar:v,openMentions:y,readOnly:b,mentionOptions:x}=dz(),{t:S}=q(GR),C;t[0]!==f||t[1]!==p||t[2]!==d?(C=d?(0,Q.jsx)(Tz,{children:(0,Q.jsx)(QR,{user:p,size:f})}):null,t[0]=f,t[1]=p,t[2]=d,t[3]=C):C=t[3];let w=C,T;t[4]!==v||t[5]!==y?(T=e=>{e.stopPropagation(),v(),y()},t[4]=v,t[5]=y,t[6]=T):T=t[6];let E=T,D=h&&!m?`true`:`false`,O=g?`true`:`false`,k=b?`transparent`:`default`,A;t[7]!==i||t[8]!==a||t[9]!==o||t[10]!==s||t[11]!==c||t[12]!==l||t[13]!==u?(A=(0,Q.jsx)(xz,{"data-ui":`CommentInputEditableWrap`,paddingX:1,paddingY:2,children:(0,Q.jsx)(yz,{focusLock:i,onBlur:a,onFocus:o,onKeyDown:s,onSubmit:c,placeholder:l,renderBlock:u})}),t[7]=i,t[8]=a,t[9]=o,t[10]=s,t[11]=c,t[12]=l,t[13]=u,t[14]=A):A=t[14];let j;t[15]!==E||t[16]!==x.disabled||t[17]!==b||t[18]!==S?(j=!x.disabled&&(0,Q.jsx)(Hs,{"aria-label":S(`compose.mention-user-aria-label`),"data-testid":`comment-input-mention-button`,disabled:b,icon:$R,mode:`bleed`,type:`button`,onClick:E,tooltipProps:{content:S(`compose.mention-user-tooltip`)}}),t[15]=E,t[16]=x.disabled,t[17]=b,t[18]=S,t[19]=j):j=t[19];let M;t[20]!==m||t[21]!==_||t[22]!==x.disabled||t[23]!==c||t[24]!==b||t[25]!==S?(M=c&&(0,Q.jsxs)(Q.Fragment,{children:[!x.disabled&&(0,Q.jsx)(Sz,{}),(0,Q.jsx)(Hs,{"aria-label":S(`compose.send-comment-aria-label`),"data-testid":`comment-input-send-button`,disabled:!m||!_||b,icon:ez,mode:_&&m?`default`:`bleed`,onClick:c,tone:_&&m?`primary`:`default`,tooltipProps:{content:S(`compose.send-comment-tooltip`)}})]}),t[20]=m,t[21]=_,t[22]=x.disabled,t[23]=c,t[24]=b,t[25]=S,t[26]=M):M=t[26];let N;t[27]!==j||t[28]!==M?(N=(0,Q.jsx)(Y,{alignItems:`center`,"data-ui":`CommentInputActions`,gap:1,justifyContent:`flex-end`,padding:1,children:(0,Q.jsxs)(xc,{children:[j,M]})}),t[27]=j,t[28]=M,t[29]=N):N=t[29];let P;t[30]!==A||t[31]!==N?(P=(0,Q.jsxs)(od,{children:[A,N]}),t[30]=A,t[31]=N,t[32]=P):P=t[32];let F;t[33]!==P||t[34]!==D||t[35]!==O||t[36]!==k?(F=(0,Q.jsx)(wz,{id:`comment-input-root`,"data-expand-on-focus":D,"data-focused":O,flex:1,sizing:`border`,tone:k,children:P}),t[33]=P,t[34]=D,t[35]=O,t[36]=k,t[37]=F):F=t[37];let I;return t[38]!==w||t[39]!==F?(I=(0,Q.jsxs)(Y,{alignItems:`flex-start`,gap:2,children:[w,F]}),t[38]=w,t[39]=F,t[40]=I):I=t[40],I}function Dz(e){let t=(0,Z.c)(3),[n]=(0,X.useState)(e),r;return t[0]!==e||t[1]!==n?(r=_o(n,e),t[0]=e,t[1]=n,t[2]=r):r=t[2],!r}function Oz(e){return e?e?.some(e=>te(e)&&(e?.children||[])?.some(e=>se(e)?e.text:e.userId)):!1}function kz(e,t){let n=e?.context?.intent,r=t?.context?.intent;if(r&&(!n||`preview`in r.params&&`preview`in n.params&&r.params.preview!==n.params.preview))return r}function Az(e){if(e)try{return ge(e)}catch{return}}function jz(e){return e?!!(e?.target?.path?.selection?.type===`text`&&e?.target?.path?.selection?.value):!1}function Mz(e){let t=(0,Z.c)(42),{children:n,expandOnFocus:r,focused:i,focusOnMount:a,mentionOptions:o,onMentionMenuOpenChange:s,value:c,readOnly:l}=e,u=r!==void 0&&r,d=a!==void 0&&a,f=Sa(),[p,m]=(0,X.useState)(!1),[h,g]=(0,X.useState)(``),[_,v]=(0,X.useState)(null),y;t[0]===c?y=t[1]:(y=Oz(c),t[0]=c,t[1]=y);let b=y,x=Dz(c),S;t[2]!==f||t[3]!==l?(S=()=>{l||No.focus(f)},t[2]=f,t[3]=l,t[4]=S):S=t[4];let C=S,w;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(w=()=>{m(!1),g(``),v(null)},t[5]=w):w=t[5];let T=w,E;t[6]!==f||t[7]!==o?.disabled?(E=()=>{o?.disabled||(m(!0),g(``),m(!0),v(No.getSelection(f)))},t[6]=f,t[7]=o?.disabled,t[8]=E):E=t[8],o?.disabled;let D=E,O;t[9]!==f||t[10]!==o?.disabled||t[11]!==h||t[12]!==D?(O=e=>{if(o?.disabled)return;let t=No.getSelection(f),n=t?t.focus.offset:0,r=No.focusChild(f),i=se(r)&&r||void 0,a=e.inputType===`insertText`,s=e.inputType===`deleteContentBackward`,c=a&&e.data===`@`,l=i?.text.slice(0,Math.max(0,n)).lastIndexOf(`@`)||0,u=i?.text.slice(n-1,n)===` `,d=a&&e.data===` `&&!h;if(c&&(n<1||u)){D();return}if(d||s&&(i?.text.length===1||l===(i?.text.length||0)-1)){T();return}if(se(r)){let t=r.text.slice(l+1,n);a&&(t+=e.data),s&&(t=t.slice(0,Math.max(0,t.length-1))),g(t)}},t[9]=f,t[10]=o?.disabled,t[11]=h,t[12]=D,t[13]=O):O=t[13],o?.disabled;let k=O,A;t[14]===f?A=t[15]:(A=()=>{m(!0),No.focus(f),No.insertChild(f,f.schemaTypes.span,{text:`@`}),v(No.getSelection(f))},t[14]=f,t[15]=A);let j=A,M;t[16]!==p||t[17]!==s?(M=()=>s?.(p),t[16]=p,t[17]=s,t[18]=M):M=t[18],Ys(p,M);let N;t[19]!==f||t[20]!==_?(N=e=>{let t=f.schemaTypes.inlineObjects.find(Nz),[n,r]=_&&No.findByPath(f,_.focus.path)||[];if(n&&se(n)&&r&&t){No.focus(f);let i=No.getSelection(f)?.focus.offset;i!==void 0&&(No.delete(f,{anchor:{path:r,offset:n.text.lastIndexOf(`@`)},focus:{path:r,offset:i}},{mode:`selected`}),No.insertChild(f,t,{userId:e}),No.insertChild(f,f.schemaTypes.span,{text:` `}))}},t[19]=f,t[20]=_,t[21]=N):N=t[21];let P=N,F=!!l,I;t[22]!==b||t[23]!==f||t[24]!==u||t[25]!==
Line truncated
|
||||
`)}\n\n`),this.name=t,this.causes=e,this.type=n}};function aV(e){let t=e.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0);return Math.abs(t*16807%2147483647)/2147483647}var oV=[`300`,`400`,`500`,`600`,`700`];function sV(e){let t=(0,Z.c)(22),{title:n,subtitle:r}=e,i=iee(),a=i.sanity.fonts.text.family,o=i.sanity.fonts.text.weights.medium,s=`${i.sanity.fonts.text.sizes[1].fontSize}px`,c;t[0]!==r||t[1]!==n?(c=()=>aV(`${n} ${r}`),t[0]=r,t[1]=n,t[2]=c):c=t[2];let[l]=(0,X.useState)(c),u=Nu.filter(uV),d=u[Math.floor(l*u.length)],f;t[3]===l?f=t[4]:(f=()=>aV(l.toString()),t[3]=l,t[4]=f);let[p]=(0,X.useState)(f),m=oV[Math.floor(p*oV.length)],h=Lu[d][m].hex,g;t[5]===n?g=t[6]:(g=n.split(/\s/g).map(lV).filter(Boolean).slice(0,2).map(cV),t[5]=n,t[6]=g);let _=g,v;if(t[7]!==h){let e=fT(h,.4),n=_T(h,.4);v=gT(h,`readable`,e)?gT(h,`readable`,n)?yT(h):n:e,t[7]=h,t[8]=v}else v=t[8];let y=v,b;t[9]===h?b=t[10]:(b=(0,Q.jsx)(`rect`,{width:32,height:32,rx:2,fill:h}),t[9]=h,t[10]=b);let x;t[11]!==a||t[12]!==s||t[13]!==o?(x={fontFamily:a,fontWeight:o,fontSize:s,transform:`translateY(1px)`},t[11]=a,t[12]=s,t[13]=o,t[14]=x):x=t[14];let S;t[15]!==_||t[16]!==x||t[17]!==y?(S=(0,Q.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,alignmentBaseline:`middle`,dominantBaseline:`middle`,fill:y,style:x,children:_}),t[15]=_,t[16]=x,t[17]=y,t[18]=S):S=t[18];let C;return t[19]!==b||t[20]!==S?(C=(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,children:[b,S]}),t[19]=b,t[20]=S,t[21]=C):C=t[21],C}function cV(e){return[...e][0]?.toUpperCase()??``}function lV(e){return e.replace(/[^\p{L}\p{N}]/gu,``)}function uV(e){return e!==`gray`}function dV(e,t){return(0,Q.jsx)(sV,{title:e,subtitle:t})}function fV(e){return e}function pV(e){return e}var mV=[fV({name:`copyField`,useAction({path:e}){let t=aa(),{onCopy:n}=rs(),{t:r}=q(`copy-paste`),i=e.length===0,a=r(`copy-paste.field-action-copy-button.document.title`),o=r(`copy-paste.field-action-copy-button.field.title`),s=i?a:o,c=(0,X.useCallback)(()=>{let r=t([]);n(e,r,{context:{source:i?`documentFieldAction`:`fieldAction`}})},[e,i,n,t]);return pV({type:`action`,icon:$d,onAction:c,title:s})}}),fV({name:`pasteField`,useAction({path:e}){let{t}=q(`copy-paste`),n=aa(),r=e.length===0,i=t(`copy-paste.field-action-paste-button.document.title`),a=t(`copy-paste.field-action-paste-button.field.title`),o=r?i:a,{onPaste:s}=rs(),c=(0,X.useCallback)(()=>{let t=n([]);s(e,t,{context:{source:r?`documentFieldAction`:`fieldAction`}})},[n,s,e,r]);return pV({type:`action`,icon:Nf,onAction:c,title:o})}})],hV=(e,{document:t},n)=>{let r=t?.unstable_fieldActions;if(!r)return e;if(typeof r==`function`)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.unstable_fieldActions\` to be an array or a function, but received ${typeof r}`)},gV=new Set;function _V(e){let t=(0,Z.c)(6),n=Tt().document.actions,r=e?.schemaType,i=e?.documentId,a=e?.versionType,o=e?.releaseId,s;bb0:{if(r===void 0||a===void 0){s=gV;break bb0}let e;if(t[0]!==i||t[1]!==o||t[2]!==n||t[3]!==r||t[4]!==a){let s=n({schemaType:r,documentId:i,versionType:a,releaseId:o});e=new Set(s.flatMap(vV)),t[0]=i,t[1]=o,t[2]=n,t[3]=r,t[4]=a,t[5]=e}else e=t[5];s=e}return s}function vV(e){let{action:t}=e;return t?[t]:[]}function yV(e){let{isRevision:t=!1,isScheduledDraft:n=!1,isVersionDocument:r=!1,perspectiveName:i,draftsEnabled:a=!1}=e;return t?`revision`:n?`scheduled-draft`:r?`version`:i===`published`?`published`:a?`draft`:`published`}function bV(e){return e!==`published`&&e!==`draft`}function xV(e){let{schemaType:t,documentGroupId:n,fromRelease:r,isScheduledDraft:i=!1}=e,a=bV(r);return{schemaType:t,documentId:n,versionType:yV({isScheduledDraft:i,isVersionDocument:a,perspectiveName:r,draftsEnabled:!0}),releaseId:a?r:void 0}}function SV(e){let{fromRelease:t,isScheduledDraft:n=!1}=e;return t===`published`?null:t===`draft`?n?`discardVersion`:`discardChanges`:`discardVersion`}function CV({config:e,context:t,initialValue:n,propertyName:r,...i}){let a=Ls(e,[]);if(`reducer`in i)return a.reduce((e,{config:n,path:a})=>{try{return i.reducer(e,n,t)}catch(e){throw new rV({propertyName:r,path:a,cause:e})}},n);let o=i.asyncReducer;return(async()=>{let e=n;for(let{config:n,path:i}of a)try{e=await o(e,n,t)}catch(e){throw new rV({propertyName:r,path:i,cause:e})}return e})()}function wV(e){let{bundles:t}=e;function n(){}function r(e,n,r){let i=t.filter(t=>t.locale===e&&t.namespace===n);if(i.length===0){r(`No translations found for namespace "${n}", language "${e}"`,void 0);return}TV(i).then(e=>r(null,e)).catch(e=>r(e,!0))}return{type:`backend`,init:n,read:r}}async function TV(e){let t=await Promise.all(e.map(async e=>({...e,resources:await EV(e)}))),n={};for(let e of t){let t=e.deep??!0,r=e.overwrite??!0;t?DV(n,e.resources,r):r?Object.assign(n,e.resources):Object.assign({},e.resources,n)}return n}async function EV(e){return typeof e.resources==`function`?kV(await e.resources()):e.resources}function DV(e,t,n=!1){for(let r in t){if(r===`__proto__`||r==Line truncated
|
||||
`)}\n\n`),this.name=t,this.causes=e,this.type=n}};function aV(e){let t=e.split(``).reduce((e,t)=>(e<<5)-e+t.charCodeAt(0)|0,0);return Math.abs(t*16807%2147483647)/2147483647}var oV=[`300`,`400`,`500`,`600`,`700`];function sV(e){let t=(0,Z.c)(22),{title:n,subtitle:r}=e,i=iee(),a=i.sanity.fonts.text.family,o=i.sanity.fonts.text.weights.medium,s=`${i.sanity.fonts.text.sizes[1].fontSize}px`,c;t[0]!==r||t[1]!==n?(c=()=>aV(`${n} ${r}`),t[0]=r,t[1]=n,t[2]=c):c=t[2];let[l]=(0,X.useState)(c),u=Nu.filter(uV),d=u[Math.floor(l*u.length)],f;t[3]===l?f=t[4]:(f=()=>aV(l.toString()),t[3]=l,t[4]=f);let[p]=(0,X.useState)(f),m=oV[Math.floor(p*oV.length)],h=Lu[d][m].hex,g;t[5]===n?g=t[6]:(g=n.split(/\s/g).map(lV).filter(Boolean).slice(0,2).map(cV),t[5]=n,t[6]=g);let _=g,v;if(t[7]!==h){let e=fT(h,.4),n=_T(h,.4);v=gT(h,`readable`,e)?gT(h,`readable`,n)?yT(h):n:e,t[7]=h,t[8]=v}else v=t[8];let y=v,b;t[9]===h?b=t[10]:(b=(0,Q.jsx)(`rect`,{width:32,height:32,rx:2,fill:h}),t[9]=h,t[10]=b);let x;t[11]!==a||t[12]!==s||t[13]!==o?(x={fontFamily:a,fontWeight:o,fontSize:s,transform:`translateY(1px)`},t[11]=a,t[12]=s,t[13]=o,t[14]=x):x=t[14];let S;t[15]!==_||t[16]!==x||t[17]!==y?(S=(0,Q.jsx)(`text`,{x:`50%`,y:`50%`,textAnchor:`middle`,alignmentBaseline:`middle`,dominantBaseline:`middle`,fill:y,style:x,children:_}),t[15]=_,t[16]=x,t[17]=y,t[18]=S):S=t[18];let C;return t[19]!==b||t[20]!==S?(C=(0,Q.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,children:[b,S]}),t[19]=b,t[20]=S,t[21]=C):C=t[21],C}function cV(e){return[...e][0]?.toUpperCase()??``}function lV(e){return e.replace(/[^\p{L}\p{N}]/gu,``)}function uV(e){return e!==`gray`}function dV(e,t){return(0,Q.jsx)(sV,{title:e,subtitle:t})}function fV(e){return e}function pV(e){return e}var mV=[fV({name:`copyField`,useAction({path:e}){let t=aa(),{onCopy:n}=rs(),{t:r}=q(`copy-paste`),i=e.length===0,a=r(`copy-paste.field-action-copy-button.document.title`),o=r(`copy-paste.field-action-copy-button.field.title`),s=i?a:o,c=(0,X.useCallback)(()=>{let r=t([]);n(e,r,{context:{source:i?`documentFieldAction`:`fieldAction`}})},[e,i,n,t]);return pV({type:`action`,icon:$d,onAction:c,title:s})}}),fV({name:`pasteField`,useAction({path:e}){let{t}=q(`copy-paste`),n=aa(),r=e.length===0,i=t(`copy-paste.field-action-paste-button.document.title`),a=t(`copy-paste.field-action-paste-button.field.title`),o=r?i:a,{onPaste:s}=rs(),c=(0,X.useCallback)(()=>{let t=n([]);s(e,t,{context:{source:r?`documentFieldAction`:`fieldAction`}})},[n,s,e,r]);return pV({type:`action`,icon:Nf,onAction:c,title:o})}})],hV=(e,{document:t},n)=>{let r=t?.unstable_fieldActions;if(!r)return e;if(typeof r==`function`)return r(e,n);if(Array.isArray(r))return[...e,...r];throw Error(`Expected \`document.unstable_fieldActions\` to be an array or a function, but received ${typeof r}`)},gV=new Set;function _V(e){let t=(0,Z.c)(6),n=Tt().document.actions,r=e?.schemaType,i=e?.documentId,a=e?.versionType,o=e?.releaseId,s;bb0:{if(r===void 0||a===void 0){s=gV;break bb0}let e;if(t[0]!==i||t[1]!==o||t[2]!==n||t[3]!==r||t[4]!==a){let s=n({schemaType:r,documentId:i,versionType:a,releaseId:o});e=new Set(s.flatMap(vV)),t[0]=i,t[1]=o,t[2]=n,t[3]=r,t[4]=a,t[5]=e}else e=t[5];s=e}return s}function vV(e){let{action:t}=e;return t?[t]:[]}function yV(e){let{isRevision:t=!1,isScheduledDraft:n=!1,isVersionDocument:r=!1,perspectiveName:i,draftsEnabled:a=!1}=e;return t?`revision`:n?`scheduled-draft`:r?`version`:i===`published`?`published`:a?`draft`:`published`}function bV(e){return e!==`published`&&e!==`draft`}function xV(e){let{schemaType:t,documentGroupId:n,fromRelease:r,isScheduledDraft:i=!1}=e,a=bV(r);return{schemaType:t,documentId:n,versionType:yV({isScheduledDraft:i,isVersionDocument:a,perspectiveName:r,draftsEnabled:!0}),releaseId:a?r:void 0}}function SV(e){let{fromRelease:t,isScheduledDraft:n=!1}=e;return t===`published`?null:t===`draft`?n?`discardVersion`:`discardChanges`:`discardVersion`}function CV({config:e,context:t,initialValue:n,propertyName:r,...i}){let a=Ls(e,[]);if(`reducer`in i)return a.reduce((e,{config:n,path:a})=>{try{return i.reducer(e,n,t)}catch(e){throw new rV({propertyName:r,path:a,cause:e})}},n);let o=i.asyncReducer;return(async()=>{let e=n;for(let{config:n,path:i}of a)try{e=await o(e,n,t)}catch(e){throw new rV({propertyName:r,path:i,cause:e})}return e})()}function wV(e){let{bundles:t}=e;function n(){}function r(e,n,r){let i=t.filter(t=>t.locale===e&&t.namespace===n);if(i.length===0){r(`No translations found for namespace "${n}", language "${e}"`,void 0);return}TV(i).then(e=>r(null,e)).catch(e=>r(e,!0))}return{type:`backend`,init:n,read:r}}async function TV(e){let t=await Promise.all(e.map(async e=>({...e,resources:await EV(e)}))),n={};for(let e of t){let t=e.deep??!0,r=e.overwrite??!0;t?DV(n,e.resources,r):r?Object.assign(n,e.resources):Object.assign({},e.resources,n)}return n}async function EV(e){return typeof e.resources==`function`?kV(await e.resources()):e.resources}function DV(e,t,n=!1){for(let r in t){if(r===`__proto__`||r==Line truncated
|
||||
`)}`;console.warn(`[sanity] ${a}`),WW({type:`project-auth-divergence`,projectId:e,groups:i,message:a})}}function VJ(e){if(typeof e!=`object`||!e)return String(e);if(wH(e))return`AuthStore@${WJ(e)}`;try{return`AuthConfig:${BV(e)}`}catch{return`unserializable@${WJ(e)}`}}var HJ=new WeakMap,UJ=1;function WJ(e){let t=HJ.get(e);return t===void 0&&(t=UJ++,HJ.set(e,t)),t}var GJ=e=>{let t=zn({config:e,initialValue:void 0});return Fi({config:e,initialValue:!1})?{fileSource:ks({libraryId:t||null}),imageSource:qo({libraryId:t||null})}:{fileSource:null,imageSource:null}},KJ=(e,t)=>({fileSource:Oc({client:t,title:e.title||e.name}),imageSource:sa({client:t,title:e.title||e.name})});function qJ(e,t){if(!Array.isArray(e)&&`missingConfigFile`in e)throw new iV({name:``,type:`configuration file`,causes:["No `sanity.config.ts` file found","No `sanity.config.js` file found"]});let n=ZJ(t?.basePath),r=Array.isArray(e)?e:[{...e,name:e.name??`default`}];try{FW({workspaces:r})}catch(e){throw new iV({name:``,type:`workspace`,causes:[e.message]})}return BJ(r),{type:`prepared-config`,workspaces:r.map(e=>{if(IJ.has(e))return IJ.get(e);let r=jJ(e),{unstable_sources:i=[],...a}=e,o=[a,...i].map(({plugins:e,...t})=>({...t,plugins:[...e??[],...AJ(r,e)].filter(e=>{let t=e.name!==`@sanity/assist`||e.handlesGDR;return t||console.warn(`Found an incompatible version of @sanity/assist plugin. It has been disabled.
|
||||
To re-enable the plugin, please upgrade to https://github.com/sanity-io/assist/releases/tag/v3.2.2 or later.`),t})})).map(e=>{let{projectId:n,dataset:r}=e,i;try{i=MJ({config:e,context:{projectId:n,dataset:r}})}catch(t){throw new iV({name:e.name,type:`source`,causes:[t]})}let a=zV({name:e.name,types:i}),o=a._validation,s=o?.filter(e=>e.problems.some(PJ));if(o&&s?.length)throw new nt(a);let c=JJ(e,{createStudioRequestHandler:t?.createStudioRequestHandler,requestErrorChannel:t?.requestErrorChannel,requestFailureDiagnostics:t?.requestFailureDiagnostics}),l=jV(e),u=c.state.pipe(Yl(({client:t,authenticated:n,currentUser:r})=>XJ({config:e,client:t,currentUser:r,schema:a,authenticated:n,auth:c,i18n:l})),Rl(1));return{name:e.name,projectId:e.projectId,dataset:e.dataset,title:e.title||za(e.name),auth:c,schema:a,i18n:l.source,source:u}}),s=a.title||za(a.name),c={type:`workspace-summary`,auth:o[0].auth,basePath:QJ(n,a.basePath),dataset:a.dataset,apiHost:a.apiHost,schema:o[0].schema,i18n:o[0].i18n,customIcon:!!a.icon,icon:FJ(a.icon,s,`${a.projectId} ${a.dataset}`),name:a.name||`default`,projectId:a.projectId,theme:a.theme||vu,title:s,subtitle:a.subtitle,hidden:a.hidden,__internal:{sources:o},...r};return IJ.set(e,c),c})}}function JJ(e,{createStudioRequestHandler:t,requestErrorChannel:n,requestFailureDiagnostics:r}){if(wH(e.auth))return e.auth;let i=e.unstable_clientFactory??Mv,{projectId:a,dataset:o,apiHost:s}=e;return FH({apiHost:s,...e.auth,clientFactory:e=>{let n;return n=i({...e,...t?{requestHandler:t(()=>n)}:{}}),n},getRequestErrorHandler:()=>n,getRequestFailureDiagnostics:()=>r,dataset:o,projectId:a})}function YJ(e,t){let{dataset:n,url:r,requestTagPrefix:i=`sanity.studio`}=e.withConfig({apiVersion:`2022-06-30`}).config();return FT(`${`${r.replace(/\/+$/,``)}/socket/${n}`.replace(/^http/,`ws`)}?tag=${i}`,t.token?{token$:t.token}:{})}function XJ({config:e,client:t,currentUser:n,schema:r,authenticated:i,auth:a,i18n:o}){let{dataset:s,projectId:c}=e,l=YJ(t,a),u=[],d={},f=e=>{if(!e||!e.apiVersion)throw Error("Missing required `apiVersion` option");return d[e.apiVersion]||(d[e.apiVersion]=t.withConfig(e)),d[e.apiVersion]},p={client:t,getClient:f,currentUser:n,dataset:s,projectId:c,schema:r,i18n:o.source},m=t;p.client=[...Object.keys(t),...Object.keys(m.__proto__)].reduce((e,n)=>{let r=Object.hasOwnProperty.call(t,n)?m[n]:m.__proto__[n];return Object.defineProperty(e,n,{get(){return RJ(),r}})},{});let h=KJ(e,t),g=GJ(e),_=[];try{_=CV({config:e,context:p,initialValue:[],propertyName:`document.singletons`,reducer:Ee})}catch(e){u.push(e)}$J(_,r,u);let v=new Set(_.map(e=>e.schemaType)),y=new Map(_.map(e=>[e.documentId,e])),x=(e,t)=>{if(!e)return;let n=y.get(yd(e));if(n)return t&&n.schemaType!==t?void 0:n.id},S;try{S=CV({config:e,context:p,propertyName:`schema.templates`,reducer:k,initialValue:r.getTypeNames().filter(e=>!e.startsWith(`sanity.`)).map(e=>r.get(e)).filter(ja).filter(e=>e.type?.name===`document`).filter(e=>!v.has(e.name)).map(e=>({id:e.name,schemaType:e.name,title:e.title||e.name,icon:e.icon,value:e.initialValue||{_type:e.name}})).concat(_.map(({schemaType:e,id:t,title:n,initialValue:i,icon:a})=>{let o=r.get(e);if(o)return{id:t,schemaType:e,title:n||o.title||o.name,icon:a||o.icon,value:i??o.initialValue??{_type:e},singleton:t}}).filter(ja))})}catch(t){throw new iV({name:e.name,type:`source`,causes:[t]})}tY(S,_,u);let C;try{C=CV({config:e,context:p,initialValue:[],propertyName:`tools`,reducer:Pr})}catch(t){throw new iV({name:e.name,type:`source`,causes:[t]})}if(C.some(({name:e})=>e===`tool`))throw Error(`A tool cannot have the name "tool". Please enter a different name.`);let w=S.filter(e=>!e.parameters?.length).filter(e=>e.singleton===void 0).map(e=>({templateId:e.id,description:e.description,icon:e.icon,title:e.title})),T=S.reduce((e,t)=>(e.set(t.id,t),e),new Map),E=t=>{let{schemaType:n}=t,i=CV({config:e,context:{...p,creationContext:t},initialValue:w,propertyName:`document.resolveNewDocumentOptions`,reducer:z}),a=[];if(a.length)throw new iV({name:e.name,type:`source`,causes:a});return i.filter(e=>T.get(e.templateId)?.singleton===void 0).map((e,t)=>{let n=T.get(e.templateId);if(!n)throw Error(`Could not find template with ID \`${e.templateId}\``);let i=r.get(n.schemaType);if(!i)throw Error(`Could not find matching schema type \`${n.schemaType}\` for template \`${n.id}\``);let a=e.title||n.title,o=i?.title===a?void 0:i?.title;return{id:`${e.templateId}-${t}`,templateId:e.templateId,type:`initialValueTemplateItem`,title:a,i18n:e.i18n||n.i18n,subtitle:e.subtitle||o,description:e.description||n.description,icon:e.icon||n.icon||i?.icon,initialDocumentId:e.initialDocumentId,parameters:e.parameters,schemaType:n.schemaType}}).filter(e=>!n||t.type===`document`||n===T.get(e.templateId)?.schemaType)},D;try{D=E({type:`global`})}catch(e){u.push(e)}if(u.length)throw new iV({name:e.name,type:`source`,causes:u});let O=Yi({config:e,initialValue:!1}),A=Uc({config:e,initialValue:!1}),j=i?(async()=>{let e=f(Kt);if(!await DW(e)){NJ(`
Line truncated
|
||||
span {
|
||||
@@ -81,7 +81,7 @@ To re-enable the plugin, please upgrade to https://github.com/sanity-io/assist/r
|
||||
word-break: keep-all;
|
||||
white-space: noWrap;
|
||||
}
|
||||
`}),oQ=_u.div.withConfig({displayName:`VariantSetEntry`,componentId:`sc-7eil0c-0`})(({theme:e})=>{let{color:t,space:n}=wu(e);return Au`position:relative;padding:${n[3]}px;word-break:break-all;justify-content:space-between;* + &{border-block-start:1px solid ${t.border};}&,.atom{display:flex;gap:${n[3]}px;align-items:center;}.inert{pointer-events:none;}.primary-action{appearance:none;position:absolute;margin:0;padding:0;border:0;background:none;inset:0;opacity:0;}&:hover,&:focus-within{background-color:var(--card-muted-bg-color);}&:has(:checked){background-color:${t.focusRing};}`});function sQ(e){let t=(0,Z.c)(30),{variant:n,releases:r,isSelected:i,leading:a,onPrimaryAction:o,onContextMenu:s,primaryActionRef:c}=e,{t:l}=q(Xe),{document:u}=n,d=!u._system.bundleId,f=u._system.bundleId===`drafts`,p=st(u._system.bundleId)?u._system.bundleId:void 0,m;t[0]!==r||t[1]!==n?(m=cQ(n,r),t[0]=r,t[1]=n,t[2]=m):m=t[2];let h=m,g=i||void 0,v;t[3]!==s||t[4]!==o||t[5]!==c||t[6]!==n.name?(v=(0,Q.jsx)(`button`,{type:`button`,className:`primary-action`,ref:c,onClick:o,onContextMenu:s,children:n.name}),t[3]=s,t[4]=o,t[5]=c,t[6]=n.name,t[7]=v):v=t[7];let y;t[8]===n.name?y=t[9]:(y=(0,Q.jsx)(J,{size:1,weight:`medium`,className:`inert`,children:n.name}),t[8]=n.name,t[9]=y);let b;t[10]!==a||t[11]!==v||t[12]!==y?(b=(0,Q.jsxs)(`div`,{className:`atom`,children:[v,a,y]}),t[10]=a,t[11]=v,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==i||t[15]!==l?(x=i&&(0,Q.jsxs)(aQ,{radius:2,tone:`primary`,children:[(0,Q.jsx)(ff,{}),` `,l(`document-group-inventory.viewing-item-label`)]}),t[14]=i,t[15]=l,t[16]=x):x=t[16];let S;t[17]!==p||t[18]!==f||t[19]!==d||t[20]!==h?(S=(0,Q.jsx)(J,{size:1,children:p?(0,Q.jsx)(_,{tone:`suggest`}):(0,Q.jsx)(_,{release:(f?`drafts`:d?`published`:h)??``})}),t[17]=p,t[18]=f,t[19]=d,t[20]=h,t[21]=S):S=t[21];let C;t[22]!==x||t[23]!==S?(C=(0,Q.jsxs)(`div`,{className:`atom inert`,children:[x,S]}),t[22]=x,t[23]=S,t[24]=C):C=t[24];let w;return t[25]!==g||t[26]!==b||t[27]!==C||t[28]!==n.name?(w=(0,Q.jsxs)(oQ,{"data-variant-name":n.name,"data-selected":g,children:[b,C]}),t[25]=g,t[26]=b,t[27]=C,t[28]=n.name,t[29]=w):w=t[29],w}function cQ(e,t){let n=e.document._system.release?._ref;return e.releaseDocument??(n?t.get(n):void 0)}function lQ(e){let t=(0,Z.c)(8),{value:n,readOnly:r,onChange:i}=e,{t:a}=q(Xe),o;t[0]===a?o=t[1]:(o=a(`document-group-inventory.filter-string.label`,{subject:a(`document-group.subject.version_other`)}),t[0]=a,t[1]=o);let s=o,c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(Bd,{}),t[2]=c):c=t[2];let l;return t[3]!==s||t[4]!==i||t[5]!==r||t[6]!==n?(l=(0,Q.jsx)(`search`,{children:(0,Q.jsx)(Gu,{name:s,placeholder:s,icon:c,value:n,readOnly:r,onChange:i})}),t[3]=s,t[4]=i,t[5]=r,t[6]=n,t[7]=l):l=t[7],l}var uQ=_u(hu).attrs({border:!0,radius:3}).withConfig({displayName:`VariantSet`,componentId:`sc-26s7rk-0`})`overflow:hidden;`,dQ=_u(oQ).withConfig({displayName:`VariantSetHeader`,componentId:`sc-8sa8ji-0`})(({theme:e})=>{let{radius:t}=wu(e);return Au`background-color:var(--card-muted-bg-color);border-radius:${t[3]}px ${t[3]}px 0 0;`});function fQ(e){let t=(0,Z.c)(9),{name:n,headerActions:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,Q.jsx)(J,{size:1,weight:`medium`,children:n}),t[0]=n,t[1]=a);let o;t[2]!==r||t[3]!==a?(o=(0,Q.jsxs)(dQ,{as:`header`,children:[a,r]}),t[2]=r,t[3]=a,t[4]=o):o=t[4];let s;return t[5]!==i||t[6]!==n||t[7]!==o?(s=(0,Q.jsxs)(uQ,{"data-variant-set":n,children:[o,i]}),t[5]=i,t[6]=n,t[7]=o,t[8]=s):s=t[8],s}var pQ=_u.div.withConfig({displayName:`Footer`,componentId:`sc-kssvu3-0`})(({theme:e})=>{let{space:t}=wu(e);return Au`display:flex;padding-inline:${t[4]}px;padding-block-start:calc(${t[5]}px * 0.5);padding-block-end:${t[4]}px;gap:${t[3]}px;justify-content:end;`});function mQ(e){let t=(0,Z.c)(8),{documentId:n,variantId:r}=e,i;t[0]===n?i=t[1]:(i={documentId:n},t[0]=n,t[1]=i);let{versions:a}=Eo(i),{data:o}=H(),s;if(t[2]!==o||t[3]!==r||t[4]!==a){let e;t[6]===r?e=t[7]:(e=e=>{let t=w(e);return r?t===r:!t},t[6]=r,t[7]=e);let n=a.filter(e).map(hQ);s=o.filter(e=>!n.includes(e._id)),t[2]=o,t[3]=r,t[4]=a,t[5]=s}else s=t[5];return s}function hQ(e){return e._system.release?._ref}var gQ=_u(ed).withConfig({displayName:`VariantCheckbox`,componentId:`sc-t727g-0`})`input::before{display:block;position:absolute;content:'';inset:-1rem;}`,_Q=e=>{let t=(0,Z.c)(90),{documentId:n,documentType:r,selectedId:i,onSelect:a}=e,o=i===void 0?n:i,s=e.mode===`readOnly`,c=e.mode===`readOnly`?void 0:e.portalElementName,l=e.mode===`readOnly`?void 0:e.perspectiveList,u=e.mode===`readOnly`?void 0:e.referringDocuments$,d=e.mode===`readOnly`?void 0:e.requestClose,f=e.mode===`readOnly`?void 0:e.components,{beta:p}=It(),m=p?.variants?.enabled,{t:h}=q(Xe),{t:g}=q(xt),_=lo(Kt),v=Xn(),b;t[0]!==r||t[1]!==v?(b=v.get(r),t[0]=r,t[1]=v,t[2]=b):b=t[2];let x=b,S;t[3]===n?S=t[4]:(S={documentId:n},t[3]=n,t[4]=S);let C=y(S),{state$:w}=xe(),{state$:T}=Tn(),{state$:E}=xl(),[D,O]=(0,X.useState)(null),k;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(k=new Fl,t[5]
Line truncated
|
||||
`}),oQ=_u.div.withConfig({displayName:`VariantSetEntry`,componentId:`sc-7eil0c-0`})(({theme:e})=>{let{color:t,space:n}=wu(e);return Au`position:relative;padding:${n[3]}px;word-break:break-all;justify-content:space-between;* + &{border-block-start:1px solid ${t.border};}&,.atom{display:flex;gap:${n[3]}px;align-items:center;}.inert{pointer-events:none;}.primary-action{appearance:none;position:absolute;margin:0;padding:0;border:0;background:none;inset:0;opacity:0;}&:hover,&:focus-within{background-color:var(--card-muted-bg-color);}&:has(:checked){background-color:${t.focusRing};}`});function sQ(e){let t=(0,Z.c)(30),{variant:n,releases:r,isSelected:i,leading:a,onPrimaryAction:o,onContextMenu:s,primaryActionRef:c}=e,{t:l}=q(Xe),{document:u}=n,d=!u._system.bundleId,f=u._system.bundleId===`drafts`,p=st(u._system.bundleId)?u._system.bundleId:void 0,m;t[0]!==r||t[1]!==n?(m=cQ(n,r),t[0]=r,t[1]=n,t[2]=m):m=t[2];let h=m,g=i||void 0,v;t[3]!==s||t[4]!==o||t[5]!==c||t[6]!==n.name?(v=(0,Q.jsx)(`button`,{type:`button`,className:`primary-action`,ref:c,onClick:o,onContextMenu:s,children:n.name}),t[3]=s,t[4]=o,t[5]=c,t[6]=n.name,t[7]=v):v=t[7];let y;t[8]===n.name?y=t[9]:(y=(0,Q.jsx)(J,{size:1,weight:`medium`,className:`inert`,children:n.name}),t[8]=n.name,t[9]=y);let b;t[10]!==a||t[11]!==v||t[12]!==y?(b=(0,Q.jsxs)(`div`,{className:`atom`,children:[v,a,y]}),t[10]=a,t[11]=v,t[12]=y,t[13]=b):b=t[13];let x;t[14]!==i||t[15]!==l?(x=i&&(0,Q.jsxs)(aQ,{radius:2,tone:`primary`,children:[(0,Q.jsx)(ff,{}),` `,l(`document-group-inventory.viewing-item-label`)]}),t[14]=i,t[15]=l,t[16]=x):x=t[16];let S;t[17]!==p||t[18]!==f||t[19]!==d||t[20]!==h?(S=(0,Q.jsx)(J,{size:1,children:p?(0,Q.jsx)(_,{tone:`suggest`}):(0,Q.jsx)(_,{release:(f?`drafts`:d?`published`:h)??``})}),t[17]=p,t[18]=f,t[19]=d,t[20]=h,t[21]=S):S=t[21];let C;t[22]!==x||t[23]!==S?(C=(0,Q.jsxs)(`div`,{className:`atom inert`,children:[x,S]}),t[22]=x,t[23]=S,t[24]=C):C=t[24];let w;return t[25]!==g||t[26]!==b||t[27]!==C||t[28]!==n.name?(w=(0,Q.jsxs)(oQ,{"data-variant-name":n.name,"data-selected":g,children:[b,C]}),t[25]=g,t[26]=b,t[27]=C,t[28]=n.name,t[29]=w):w=t[29],w}function cQ(e,t){let n=e.document._system.release?._ref;return e.releaseDocument??(n?t.get(n):void 0)}function lQ(e){let t=(0,Z.c)(8),{value:n,readOnly:r,onChange:i}=e,{t:a}=q(Xe),o;t[0]===a?o=t[1]:(o=a(`document-group-inventory.filter-string.label`,{subject:a(`document-group.subject.version_other`)}),t[0]=a,t[1]=o);let s=o,c;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,Q.jsx)(Bd,{}),t[2]=c):c=t[2];let l;return t[3]!==s||t[4]!==i||t[5]!==r||t[6]!==n?(l=(0,Q.jsx)(`search`,{children:(0,Q.jsx)(Gu,{name:s,placeholder:s,icon:c,value:n,readOnly:r,onChange:i})}),t[3]=s,t[4]=i,t[5]=r,t[6]=n,t[7]=l):l=t[7],l}var uQ=_u(hu).attrs({border:!0,radius:3}).withConfig({displayName:`VariantSet`,componentId:`sc-26s7rk-0`})`overflow:hidden;`,dQ=_u(oQ).withConfig({displayName:`VariantSetHeader`,componentId:`sc-8sa8ji-0`})(({theme:e})=>{let{radius:t}=wu(e);return Au`background-color:var(--card-muted-bg-color);border-radius:${t[3]}px ${t[3]}px 0 0;`});function fQ(e){let t=(0,Z.c)(9),{name:n,headerActions:r,children:i}=e,a;t[0]===n?a=t[1]:(a=(0,Q.jsx)(J,{size:1,weight:`medium`,children:n}),t[0]=n,t[1]=a);let o;t[2]!==r||t[3]!==a?(o=(0,Q.jsxs)(dQ,{as:`header`,children:[a,r]}),t[2]=r,t[3]=a,t[4]=o):o=t[4];let s;return t[5]!==i||t[6]!==n||t[7]!==o?(s=(0,Q.jsxs)(uQ,{"data-variant-set":n,children:[o,i]}),t[5]=i,t[6]=n,t[7]=o,t[8]=s):s=t[8],s}var pQ=_u.div.withConfig({displayName:`Footer`,componentId:`sc-kssvu3-0`})(({theme:e})=>{let{space:t}=wu(e);return Au`display:flex;padding-inline:${t[4]}px;padding-block-start:calc(${t[5]}px * 0.5);padding-block-end:${t[4]}px;gap:${t[3]}px;justify-content:end;`});function mQ(e){let t=(0,Z.c)(8),{documentId:n,variantId:r}=e,i;t[0]===n?i=t[1]:(i={documentId:n},t[0]=n,t[1]=i);let{versions:a}=Eo(i),{data:o}=H(),s;if(t[2]!==o||t[3]!==r||t[4]!==a){let e;t[6]===r?e=t[7]:(e=e=>{let t=w(e);return r?t===r:!t},t[6]=r,t[7]=e);let n=a.filter(e).map(hQ);s=o.filter(e=>!n.includes(e._id)),t[2]=o,t[3]=r,t[4]=a,t[5]=s}else s=t[5];return s}function hQ(e){return e._system.release?._ref}var gQ=_u(ed).withConfig({displayName:`VariantCheckbox`,componentId:`sc-t727g-0`})`input::before{display:block;position:absolute;content:'';inset:-1rem;}`,_Q=e=>{let t=(0,Z.c)(90),{documentId:n,documentType:r,selectedId:i,onSelect:a}=e,o=i===void 0?n:i,s=e.mode===`readOnly`,c=e.mode===`readOnly`?void 0:e.portalElementName,l=e.mode===`readOnly`?void 0:e.perspectiveList,u=e.mode===`readOnly`?void 0:e.referringDocuments$,d=e.mode===`readOnly`?void 0:e.requestClose,f=e.mode===`readOnly`?void 0:e.components,{beta:p}=It(),m=p?.variants?.enabled,{t:h}=q(Xe),{t:g}=q(xt),_=lo(Kt),v=Xn(),b;t[0]!==r||t[1]!==v?(b=v.get(r),t[0]=r,t[1]=v,t[2]=b):b=t[2];let x=b,S;t[3]===n?S=t[4]:(S={documentId:n},t[3]=n,t[4]=S);let C=y(S),{state$:w}=xe(),{state$:T}=Tn(),{state$:E}=xl(),[D,O]=(0,X.useState)(null),k;t[5]===Symbol.for(`react.memo_cache_sentinel`)?(k=new Fl,t[5]
Line truncated
|
||||
|
||||
// retryable read — the dialog offers "Try again"
|
||||
const data = await attempt(() => client.fetch(query), {retryable: true})
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Rd as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";var t=e({name:`Task Created`,version:1,description:`A task is created`}),n=e({name:`Task Status Changed`,version:1,description:`Task status changed`}),r=e({name:`Task Duplicated`,version:1,description:`A task is duplicated`}),i=e({name:`Task Removed`,version:1,description:`A task is removed`}),a=e({name:`Task Link Copied`,version:1,description:`The link to a task is copied`}),o=e({name:`Task Link Opened`,version:1,description:`User visited the studio through a link with a task`}),s=`sidebar`,c=`selectedTask`,l=`viewMode`;export{r as a,i as c,t as i,n as l,s as n,a as o,l as r,o as s,c as t};
|
||||
import{Rd as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";var t=e({name:`Task Created`,version:1,description:`A task is created`}),n=e({name:`Task Status Changed`,version:1,description:`Task status changed`}),r=e({name:`Task Duplicated`,version:1,description:`A task is duplicated`}),i=e({name:`Task Removed`,version:1,description:`A task is removed`}),a=e({name:`Task Link Copied`,version:1,description:`The link to a task is copied`}),o=e({name:`Task Link Opened`,version:1,description:`User visited the studio through a link with a task`}),s=`sidebar`,c=`selectedTask`,l=`viewMode`;export{r as a,i as c,t as i,n as l,s as n,a as o,l as r,o as s,c as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Rf as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n}from"./jsx-runtime-BpzPEenQ.js";var r=e(n(),1);function i(){let e=(0,r.useContext)(t);if(!e)throw Error(`useAddonDataset: missing context value`);return e}export{i as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Rf as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n}from"./jsx-runtime-BpzPEenQ.js";var r=e(n(),1);function i(){let e=(0,r.useContext)(t);if(!e)throw Error(`useAddonDataset: missing context value`);return e}export{i as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{qf as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n}from"./jsx-runtime-BpzPEenQ.js";var r=e(n(),1);function i(){let e=(0,r.useContext)(t);if(!e)throw Error(`useComments must be used within a CommentsProvider`);return e}export{i as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{qf as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n}from"./jsx-runtime-BpzPEenQ.js";var r=e(n(),1);function i(){let e=(0,r.useContext)(t);if(!e)throw Error(`useComments must be used within a CommentsProvider`);return e}export{i as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{np as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";var i=e(n(),1),a=r();function o(){let e=(0,a.c)(1),n=(0,i.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={upsellData:null,handleOpenDialog:m,handleClose:p,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:f,dialogPrimaryClicked:d,panelViewed:u,panelDismissed:l,panelPrimaryClicked:c,panelSecondaryClicked:s}},e[0]=t):t=e[0],t}return n}function s(){return null}function c(){return null}function l(){return null}function u(){return null}function d(){return null}function f(){return null}function p(){return null}function m(){return null}export{o as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{np as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";var i=e(n(),1),a=r();function o(){let e=(0,a.c)(1),n=(0,i.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={upsellData:null,handleOpenDialog:m,handleClose:p,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:f,dialogPrimaryClicked:d,panelViewed:u,panelDismissed:l,panelPrimaryClicked:c,panelSecondaryClicked:s}},e[0]=t):t=e[0],t}return n}function s(){return null}function c(){return null}function l(){return null}function u(){return null}function d(){return null}function f(){return null}function p(){return null}function m(){return null}export{o as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{rp as t,tp as n}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";var a=e(r(),1),o=i();function s(){let e=(0,a.useContext)(n);if(!e)throw Error(`useCommentsSelectedPath: missing context value`);return e}function c(){let e=(0,o.c)(1),n=(0,a.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={upsellData:null,handleOpenDialog:g,handleClose:h,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:m,dialogPrimaryClicked:p,panelViewed:f,panelDismissed:d,panelPrimaryClicked:u,panelSecondaryClicked:l}},e[0]=t):t=e[0],t}return n}function l(){return null}function u(){return null}function d(){return null}function f(){return null}function p(){return null}function m(){return null}function h(){return null}function g(){return null}export{c as n,s as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{rp as t,tp as n}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as r}from"./jsx-runtime-BpzPEenQ.js";import{t as i}from"./compiler-runtime-sKsOXjDo.js";var a=e(r(),1),o=i();function s(){let e=(0,a.useContext)(n);if(!e)throw Error(`useCommentsSelectedPath: missing context value`);return e}function c(){let e=(0,o.c)(1),n=(0,a.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={upsellData:null,handleOpenDialog:g,handleClose:h,upsellDialogOpen:!1,telemetryLogs:{dialogSecondaryClicked:m,dialogPrimaryClicked:p,panelViewed:f,panelDismissed:d,panelPrimaryClicked:u,panelSecondaryClicked:l}},e[0]=t):t=e[0],t}return n}function l(){return null}function u(){return null}function d(){return null}function f(){return null}function p(){return null}function m(){return null}function h(){return null}function g(){return null}export{c as n,s as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{qp as t}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";var i=e(n(),1),a=r();function o(){let e=(0,a.c)(1),n=(0,i.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={activeDocument:null,setActiveDocument:s,data:[],isLoading:!1},e[0]=t):t=e[0],t}return n}function s(){return null}export{o as t};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{qp as t}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n}from"./jsx-runtime-BpzPEenQ.js";import{t as r}from"./compiler-runtime-sKsOXjDo.js";var i=e(n(),1),a=r();function o(){let e=(0,a.c)(1),n=(0,i.useContext)(t);if(!n){let t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={activeDocument:null,setActiveDocument:s,data:[],isLoading:!1},e[0]=t):t=e[0],t}return n}function s(){return null}export{o as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-D7dq6hfV.js";import{Va as t,rc as n}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as r,t as i}from"./jsx-runtime-BpzPEenQ.js";import{t as a}from"./compiler-runtime-sKsOXjDo.js";import{Bt as o,t as s}from"./dist-LVcARZxB.js";import{t as c}from"./ArrowLeft-x2OZCZTu.js";import{A as l,M as u,O as d,k as f,t as p,u as m}from"./BackLink-BBYTIbKc-C51ip22n.js";var h=e(r(),1),g=a(),_=i(),v=e(o(),1),y=`_1hvy8tl0`;function b(e){let t=(0,g.c)(3),{children:n}=e,{collapsed:r}=l(),i;return t[0]!==n||t[1]!==r?(i=(0,_.jsx)(s,{className:y,hidden:r,height:`100%`,overflow:`auto`,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function x(e){let t=(0,g.c)(11),{actionHandlers:r,index:i,menuItems:a,menuItemGroups:o,title:s}=e,{features:l}=u();if(!a?.length&&!s)return null;let d;t[0]!==r||t[1]!==o||t[2]!==a?(d=(0,_.jsx)(m,{menuItems:a,menuItemGroups:o,actionHandlers:r}),t[0]=r,t[1]=o,t[2]=a,t[3]=d):d=t[3];let h;t[4]!==l.backButton||t[5]!==i?(h=l.backButton&&i>0&&(0,_.jsx)(n,{as:p,"data-as":`a`,icon:c,mode:`bleed`,tooltipProps:{content:`Back`}}),t[4]=l.backButton,t[5]=i,t[6]=h):h=t[6];let v;return t[7]!==d||t[8]!==h||t[9]!==s?(v=(0,_.jsx)(f,{actions:d,backButton:h,title:s}),t[7]=d,t[8]=h,t[9]=s,t[10]=v):v=t[10],v}function S(e){let n=(0,g.c)(43),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({index:r,pane:i,paneKey:a,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s,c,l,u,f,p,m,y;if(n[5]!==i){let{child:e,component:t,currentMaxWidth:r,maxWidth:a,menuItems:o,menuItemGroups:d,minWidth:h,type:g,..._}=i;c=e,s=t,l=r,u=a,p=o,f=d,y=h,m=_,n[5]=i,n[6]=s,n[7]=c,n[8]=l,n[9]=u,n[10]=f,n[11]=p,n[12]=m,n[13]=y}else s=n[6],c=n[7],l=n[8],u=n[9],f=n[10],p=n[11],m=n[12],y=n[13];let S=y===void 0?320:y,[C,w]=(0,h.useState)(null),{title:T}=t(i),E=T===void 0?``:T,D,O;n[14]!==m||n[15]!==o?({key:O,...D}={...o,...m},n[14]=m,n[15]=o,n[16]=D,n[17]=O):(D=n[16],O=n[17]);let k=C?.actionHandlers,A;n[18]!==r||n[19]!==f||n[20]!==p||n[21]!==k||n[22]!==E?(A=(0,_.jsx)(x,{actionHandlers:k,index:r,menuItems:p,menuItemGroups:f,title:E}),n[18]=r,n[19]=f,n[20]=p,n[21]=k,n[22]=E,n[23]=A):A=n[23];let j;n[24]!==s||n[25]!==c||n[26]!==D||n[27]!==O||n[28]!==a?(j=(0,v.isValidElementType)(s)&&(0,_.jsx)(s,{...D,ref:w,child:c,paneKey:a},O),n[24]=s,n[25]=c,n[26]=D,n[27]=O,n[28]=a,n[29]=j):j=n[29];let M;n[30]===s?M=n[31]:(M=(0,h.isValidElement)(s)&&s,n[30]=s,n[31]=M);let N;n[32]!==j||n[33]!==M?(N=(0,_.jsxs)(b,{children:[j,M]}),n[32]=j,n[33]=M,n[34]=N):N=n[34];let P;return n[35]!==l||n[36]!==u||n[37]!==S||n[38]!==a||n[39]!==o.isSelected||n[40]!==A||n[41]!==N?(P=(0,_.jsxs)(d,{currentMaxWidth:l,id:a,maxWidth:u,minWidth:S,selected:o.isSelected,children:[A,N]}),n[35]=l,n[36]=u,n[37]=S,n[38]=a,n[39]=o.isSelected,n[40]=A,n[41]=N,n[42]=P):P=n[42],P}export{S as default};
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import"./lib-CQcSfzr9.js";import{Va as t,rc as n}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as r,t as i}from"./jsx-runtime-BpzPEenQ.js";import{t as a}from"./compiler-runtime-sKsOXjDo.js";import{Bt as o,t as s}from"./dist-LVcARZxB.js";import{t as c}from"./ArrowLeft-x2OZCZTu.js";import{A as l,M as u,O as d,k as f,t as p,u as m}from"./BackLink-BBYTIbKc-DJkKvofp.js";var h=e(r(),1),g=a(),_=i(),v=e(o(),1),y=`_1hvy8tl0`;function b(e){let t=(0,g.c)(3),{children:n}=e,{collapsed:r}=l(),i;return t[0]!==n||t[1]!==r?(i=(0,_.jsx)(s,{className:y,hidden:r,height:`100%`,overflow:`auto`,children:n}),t[0]=n,t[1]=r,t[2]=i):i=t[2],i}function x(e){let t=(0,g.c)(11),{actionHandlers:r,index:i,menuItems:a,menuItemGroups:o,title:s}=e,{features:l}=u();if(!a?.length&&!s)return null;let d;t[0]!==r||t[1]!==o||t[2]!==a?(d=(0,_.jsx)(m,{menuItems:a,menuItemGroups:o,actionHandlers:r}),t[0]=r,t[1]=o,t[2]=a,t[3]=d):d=t[3];let h;t[4]!==l.backButton||t[5]!==i?(h=l.backButton&&i>0&&(0,_.jsx)(n,{as:p,"data-as":`a`,icon:c,mode:`bleed`,tooltipProps:{content:`Back`}}),t[4]=l.backButton,t[5]=i,t[6]=h):h=t[6];let v;return t[7]!==d||t[8]!==h||t[9]!==s?(v=(0,_.jsx)(f,{actions:d,backButton:h,title:s}),t[7]=d,t[8]=h,t[9]=s,t[10]=v):v=t[10],v}function S(e){let n=(0,g.c)(43),r,i,a,o;n[0]===e?(r=n[1],i=n[2],a=n[3],o=n[4]):({index:r,pane:i,paneKey:a,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=a,n[4]=o);let s,c,l,u,f,p,m,y;if(n[5]!==i){let{child:e,component:t,currentMaxWidth:r,maxWidth:a,menuItems:o,menuItemGroups:d,minWidth:h,type:g,..._}=i;c=e,s=t,l=r,u=a,p=o,f=d,y=h,m=_,n[5]=i,n[6]=s,n[7]=c,n[8]=l,n[9]=u,n[10]=f,n[11]=p,n[12]=m,n[13]=y}else s=n[6],c=n[7],l=n[8],u=n[9],f=n[10],p=n[11],m=n[12],y=n[13];let S=y===void 0?320:y,[C,w]=(0,h.useState)(null),{title:T}=t(i),E=T===void 0?``:T,D,O;n[14]!==m||n[15]!==o?({key:O,...D}={...o,...m},n[14]=m,n[15]=o,n[16]=D,n[17]=O):(D=n[16],O=n[17]);let k=C?.actionHandlers,A;n[18]!==r||n[19]!==f||n[20]!==p||n[21]!==k||n[22]!==E?(A=(0,_.jsx)(x,{actionHandlers:k,index:r,menuItems:p,menuItemGroups:f,title:E}),n[18]=r,n[19]=f,n[20]=p,n[21]=k,n[22]=E,n[23]=A):A=n[23];let j;n[24]!==s||n[25]!==c||n[26]!==D||n[27]!==O||n[28]!==a?(j=(0,v.isValidElementType)(s)&&(0,_.jsx)(s,{...D,ref:w,child:c,paneKey:a},O),n[24]=s,n[25]=c,n[26]=D,n[27]=O,n[28]=a,n[29]=j):j=n[29];let M;n[30]===s?M=n[31]:(M=(0,h.isValidElement)(s)&&s,n[30]=s,n[31]=M);let N;n[32]!==j||n[33]!==M?(N=(0,_.jsxs)(b,{children:[j,M]}),n[32]=j,n[33]=M,n[34]=N):N=n[34];let P;return n[35]!==l||n[36]!==u||n[37]!==S||n[38]!==a||n[39]!==o.isSelected||n[40]!==A||n[41]!==N?(P=(0,_.jsxs)(d,{currentMaxWidth:l,id:a,maxWidth:u,minWidth:S,selected:o.isSelected,children:[A,N]}),n[35]=l,n[36]=u,n[37]=S,n[38]=a,n[39]=o.isSelected,n[40]=A,n[41]=N,n[42]=P):P=n[42],P}export{S as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{Df as e}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{c as t,o as n,s as r}from"./stegaClean-YZRATV86-BdUaXCkw.js";function i({documentId:e,documentType:t,dataset:i,projectId:a}){return{documentType:t,document:{_ref:n(e),_type:`crossDatasetReference`,_dataset:i,_projectId:a,_weak:!0},documentVersionId:r(e)}}function a(e){let n=e?.document?._ref;if(n)return e.documentVersionId?t(n,e.documentVersionId):n}function o(t){if(!t)return[];let n=[];return t?.forEach(t=>{e(t)&&t.children.forEach(e=>{e._type===`mention`&&typeof e.userId==`string`&&!n.includes(e.userId)&&n.push(e.userId)})}),n}export{a as n,i as r,o as t};
|
||||
import{Df as e}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{c as t,o as n,s as r}from"./stegaClean-YZRATV86-BdUaXCkw.js";function i({documentId:e,documentType:t,dataset:i,projectId:a}){return{documentType:t,document:{_ref:n(e),_type:`crossDatasetReference`,_dataset:i,_projectId:a,_weak:!0},documentVersionId:r(e)}}function a(e){let n=e?.document?._ref;if(n)return e.documentVersionId?t(n,e.documentVersionId):n}function o(t){if(!t)return[];let n=[];return t?.forEach(t=>{e(t)&&t.children.forEach(e=>{e._type===`mention`&&typeof e.userId==`string`&&!n.includes(e.userId)&&n.push(e.userId)})}),n}export{a as n,i as r,o as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Bs as t,Co as n,If as r,Ip as i,Nd as a,Nf as o,Od as s,S as c,So as l,ed as u,jd as d,or as f,sd as p}from"./PerspectiveProvider-qJFIbsuW-Dt3-zfHa.js";import{n as m,t as h}from"./jsx-runtime-BpzPEenQ.js";import{t as g}from"./compiler-runtime-sKsOXjDo.js";import{Q as _,ht as v,rt as y,xt as b}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{B as x,St as S,r as C}from"./dist-LVcARZxB.js";import{t as w}from"./Calendar-DCYqUUNo.js";var T=e(m(),1),E=g(),D=h(),O={used:!1,loading:!0},k=new Map;function A(e){let{dataset:t,projectId:n}=e.config();return e.observable.request({url:`/schedules/${n}/${t}?limit=1`,tag:`scheduled-publishing-used`}).pipe(v(e=>({used:e.schedules?.length>0,loading:!1})),y(()=>b({used:!1,loading:!1})))}function j(e){let t=(0,E.c)(4),{explicitEnabled:n,isWorkspaceEnabled:r}=e,i=d(s),{projectId:o,dataset:c}=a(),l=`${o}-${c}`;if(!k.get(l)){let e=A(i).pipe(_());k.set(l,e)}let f;bb0:{if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=b({used:!0,loading:!1}),t[0]=e):e=t[0],f=e;break bb0}if(!r){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=b({used:!1,loading:!1}),t[1]=e):e=t[1],f=e;break bb0}let e;t[2]===l?e=t[3]:(e=k.get(l)||b(O),t[2]=l,t[3]=e),f=e}return u(f,O)}function M(e){let t=(0,E.c)(16),{children:n}=e,{enabled:r,isLoading:o,error:s}=f(c.scheduledPublishing),{scheduledPublishing:l}=a(),u=l.enabled,d=l.__internal__workspaceEnabled,p;t[0]!==d||t[1]!==u?(p={explicitEnabled:d,isWorkspaceEnabled:u},t[0]=d,t[1]=u,t[2]=p):p=t[2];let m=j(p),h;bb0:{if(!u||o||s){let e;t[3]===m?e=t[4]:(e={enabled:!1,mode:null,hasUsedScheduledPublishing:m},t[3]=m,t[4]=e),h=e;break bb0}if(d){let e=r?`default`:`upsell`,n;t[5]!==m||t[6]!==e?(n={enabled:!0,mode:e,hasUsedScheduledPublishing:m},t[5]=m,t[6]=e,t[7]=n):n=t[7],h=n;break bb0}if(!m.used){let e;t[8]===m?e=t[9]:(e={enabled:!1,mode:null,hasUsedScheduledPublishing:m},t[8]=m,t[9]=e),h=e;break bb0}let e=r?`default`:`upsell`,n;t[10]!==m||t[11]!==e?(n={enabled:!0,mode:e,hasUsedScheduledPublishing:m},t[10]=m,t[11]=e,t[12]=n):n=t[12],h=n}let g=h,_;return t[13]!==n||t[14]!==g?(_=(0,D.jsx)(i.Provider,{value:g,children:n}),t[13]=n,t[14]=g,t[15]=_):_=t[15],_}function N(){return(0,T.useContext)(i)}var P={publish:{actionName:`Publishing`,badgeColor:`primary`,badgeTone:`positive`},unpublish:{actionName:`Unpublishing`,badgeColor:`danger`,badgeTone:`critical`}},F={scheduled:{title:`Upcoming`},succeeded:{title:`Completed`},cancelled:{title:`Failed`}},I=Object.keys(F).filter(e=>!!e),L=`This document has validation errors that should be resolved before its publish date.`,R=`This schedule failed to run.`,ee=`Schedules`,z=`https://www.sanity.io/blog/introducing-content-releases`,B=`schedules`,V={type:`scheduledPublishing`};function H(e){return e?.executedAt||e?.executeAt}function U({reverseOrder:e}={reverseOrder:!1}){return function(t,n){let r=H(t),i=H(n);return r===i?0:r===null?1:i===null?-1:(r>i?1:-1)*(e?-1:1)}}var W=e=>{let t=(0,E.c)(10),{body:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,D.jsx)(w,{}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=r&&(0,D.jsx)(S,{size:2,weight:`semibold`,children:r}),t[1]=r,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,D.jsxs)(x,{gap:2,children:[i,a]}),t[3]=a,t[4]=o);let s;t[5]===n?s=t[6]:(s=n&&(0,D.jsx)(S,{size:1,children:n}),t[5]=n,t[6]=s);let c;return t[7]!==o||t[8]!==s?(c=(0,D.jsxs)(C,{paddingY:1,gap:3,flexDirection:`column`,children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c};function G(e){return typeof e!=`object`||!e?!1:`statusCode`in e&&`response`in e}function K(e){let t;return G(e)?t=e.response.statusCode===403?`Forbidden. Please check that your project has access to Scheduled Publishing.`:e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}var q=l(`useScheduleOperation`);function J(){let e=(0,E.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={apiVersion:`2022-09-01`},e[0]=t):t=e[0];let n=d(t),r;return e[1]===n?r=e[2]:(r=Y(n),e[1]=n,e[2]=r),r}function Y(e){let{dataset:t,projectId:n}=e.config();function r({date:r,documentId:i}){q(`_create:`,i);let a=new Date(r);return a.setSeconds(0),a.setMilliseconds(0),e.request({body:{documents:[{documentId:i}],executeAt:a,name:a},method:`POST`,url:`/schedules/${n}/${t}`})}function i({scheduleId:r}){return q(`_delete:`,r),e.request({method:`DELETE`,url:`/schedules/${n}/${t}/${r}`})}function a({scheduleIds:e}){q(`_deleteMultiple:`,e);let t=e.map(e=>i({scheduleId:e}));return Promise.allSettled(t)}function o({scheduleId:r}){return q(`_publish:`,r),e.request({method:`POST`,url:`/schedules/${n}/${t}/${r}/publish`})}function s({documentSchedule:r,scheduleId:i}){return q(`_update:`,i,r),e.request({body:r,method:`PATCH`,url:`/schedules/${n}/${t}/${i}`})}return{create:r,delete:i,deleteMultiple:a,publish:o,update:s}}var X={create:`scheduleCreate`,delete:`scheduleDelete`,deleteMultiple:`scheduleDeleteMultiple`,publish:`schedulePublish`,update:`scheduleUpdate`};function Z(e,t){return`${t} ${e}${t===1?``:`s`}`}var Q=(e,t)=>nLine truncated
|
||||
import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{Bs as t,Co as n,If as r,Ip as i,Nd as a,Nf as o,Od as s,S as c,So as l,ed as u,jd as d,or as f,sd as p}from"./PerspectiveProvider-qJFIbsuW-DOpUdg_O.js";import{n as m,t as h}from"./jsx-runtime-BpzPEenQ.js";import{t as g}from"./compiler-runtime-sKsOXjDo.js";import{Q as _,ht as v,rt as y,xt as b}from"./clientStore-Cq3vrK4Q-X8Ukd-3S.js";import{B as x,St as S,r as C}from"./dist-LVcARZxB.js";import{t as w}from"./Calendar-DCYqUUNo.js";var T=e(m(),1),E=g(),D=h(),O={used:!1,loading:!0},k=new Map;function A(e){let{dataset:t,projectId:n}=e.config();return e.observable.request({url:`/schedules/${n}/${t}?limit=1`,tag:`scheduled-publishing-used`}).pipe(v(e=>({used:e.schedules?.length>0,loading:!1})),y(()=>b({used:!1,loading:!1})))}function j(e){let t=(0,E.c)(4),{explicitEnabled:n,isWorkspaceEnabled:r}=e,i=d(s),{projectId:o,dataset:c}=a(),l=`${o}-${c}`;if(!k.get(l)){let e=A(i).pipe(_());k.set(l,e)}let f;bb0:{if(n){let e;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(e=b({used:!0,loading:!1}),t[0]=e):e=t[0],f=e;break bb0}if(!r){let e;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(e=b({used:!1,loading:!1}),t[1]=e):e=t[1],f=e;break bb0}let e;t[2]===l?e=t[3]:(e=k.get(l)||b(O),t[2]=l,t[3]=e),f=e}return u(f,O)}function M(e){let t=(0,E.c)(16),{children:n}=e,{enabled:r,isLoading:o,error:s}=f(c.scheduledPublishing),{scheduledPublishing:l}=a(),u=l.enabled,d=l.__internal__workspaceEnabled,p;t[0]!==d||t[1]!==u?(p={explicitEnabled:d,isWorkspaceEnabled:u},t[0]=d,t[1]=u,t[2]=p):p=t[2];let m=j(p),h;bb0:{if(!u||o||s){let e;t[3]===m?e=t[4]:(e={enabled:!1,mode:null,hasUsedScheduledPublishing:m},t[3]=m,t[4]=e),h=e;break bb0}if(d){let e=r?`default`:`upsell`,n;t[5]!==m||t[6]!==e?(n={enabled:!0,mode:e,hasUsedScheduledPublishing:m},t[5]=m,t[6]=e,t[7]=n):n=t[7],h=n;break bb0}if(!m.used){let e;t[8]===m?e=t[9]:(e={enabled:!1,mode:null,hasUsedScheduledPublishing:m},t[8]=m,t[9]=e),h=e;break bb0}let e=r?`default`:`upsell`,n;t[10]!==m||t[11]!==e?(n={enabled:!0,mode:e,hasUsedScheduledPublishing:m},t[10]=m,t[11]=e,t[12]=n):n=t[12],h=n}let g=h,_;return t[13]!==n||t[14]!==g?(_=(0,D.jsx)(i.Provider,{value:g,children:n}),t[13]=n,t[14]=g,t[15]=_):_=t[15],_}function N(){return(0,T.useContext)(i)}var P={publish:{actionName:`Publishing`,badgeColor:`primary`,badgeTone:`positive`},unpublish:{actionName:`Unpublishing`,badgeColor:`danger`,badgeTone:`critical`}},F={scheduled:{title:`Upcoming`},succeeded:{title:`Completed`},cancelled:{title:`Failed`}},I=Object.keys(F).filter(e=>!!e),L=`This document has validation errors that should be resolved before its publish date.`,R=`This schedule failed to run.`,ee=`Schedules`,z=`https://www.sanity.io/blog/introducing-content-releases`,B=`schedules`,V={type:`scheduledPublishing`};function H(e){return e?.executedAt||e?.executeAt}function U({reverseOrder:e}={reverseOrder:!1}){return function(t,n){let r=H(t),i=H(n);return r===i?0:r===null?1:i===null?-1:(r>i?1:-1)*(e?-1:1)}}var W=e=>{let t=(0,E.c)(10),{body:n,title:r}=e,i;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(i=(0,D.jsx)(w,{}),t[0]=i):i=t[0];let a;t[1]===r?a=t[2]:(a=r&&(0,D.jsx)(S,{size:2,weight:`semibold`,children:r}),t[1]=r,t[2]=a);let o;t[3]===a?o=t[4]:(o=(0,D.jsxs)(x,{gap:2,children:[i,a]}),t[3]=a,t[4]=o);let s;t[5]===n?s=t[6]:(s=n&&(0,D.jsx)(S,{size:1,children:n}),t[5]=n,t[6]=s);let c;return t[7]!==o||t[8]!==s?(c=(0,D.jsxs)(C,{paddingY:1,gap:3,flexDirection:`column`,children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c};function G(e){return typeof e!=`object`||!e?!1:`statusCode`in e&&`response`in e}function K(e){let t;return G(e)?t=e.response.statusCode===403?`Forbidden. Please check that your project has access to Scheduled Publishing.`:e.message:(e instanceof Error&&(t=e.message),t=String(e)),t}var q=l(`useScheduleOperation`);function J(){let e=(0,E.c)(3),t;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t={apiVersion:`2022-09-01`},e[0]=t):t=e[0];let n=d(t),r;return e[1]===n?r=e[2]:(r=Y(n),e[1]=n,e[2]=r),r}function Y(e){let{dataset:t,projectId:n}=e.config();function r({date:r,documentId:i}){q(`_create:`,i);let a=new Date(r);return a.setSeconds(0),a.setMilliseconds(0),e.request({body:{documents:[{documentId:i}],executeAt:a,name:a},method:`POST`,url:`/schedules/${n}/${t}`})}function i({scheduleId:r}){return q(`_delete:`,r),e.request({method:`DELETE`,url:`/schedules/${n}/${t}/${r}`})}function a({scheduleIds:e}){q(`_deleteMultiple:`,e);let t=e.map(e=>i({scheduleId:e}));return Promise.allSettled(t)}function o({scheduleId:r}){return q(`_publish:`,r),e.request({method:`POST`,url:`/schedules/${n}/${t}/${r}/publish`})}function s({documentSchedule:r,scheduleId:i}){return q(`_update:`,i,r),e.request({body:r,method:`PATCH`,url:`/schedules/${n}/${t}/${i}`})}return{create:r,delete:i,deleteMultiple:a,publish:o,update:s}}var X={create:`scheduleCreate`,delete:`scheduleDelete`,deleteMultiple:`scheduleDeleteMultiple`,publish:`schedulePublish`,update:`scheduleUpdate`};function Z(e,t){return`${t} ${e}${t===1?``:`s`}`}var Q=(e,t)=>nLine truncated
|
||||
Generated
+3
-138
@@ -2874,15 +2874,6 @@
|
||||
"integrity": "sha512-JneBWSHr9ZCZHa5geNUleVK2vBTugWXLIXlV72UAhgHm1cTMYKZljnhRSX59n7Xssz4Yk+m+W3rYg6Eb4ouL8w==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@module-federation/dts-plugin/node_modules/adm-zip": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.6.0.tgz",
|
||||
"integrity": "sha512-XleryMhbuksdKtofnWZ9Sk+4CUTbms4Mb/EU32SZwToAyZ5RgVos/ki8n+yr0LWHOGKuakbXTuuYNHLQjhddgg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@module-federation/dts-plugin/node_modules/ws": {
|
||||
"version": "8.21.3",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.21.3.tgz",
|
||||
@@ -4000,15 +3991,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/access-ui/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/asset-utils": {
|
||||
"version": "2.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/asset-utils/-/asset-utils-2.3.0.tgz",
|
||||
@@ -4661,15 +4643,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/cli-core/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/cli-core/node_modules/zod": {
|
||||
"version": "4.6.5",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",
|
||||
@@ -4739,15 +4712,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/cli/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/cli/node_modules/zod": {
|
||||
"version": "4.6.5",
|
||||
"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.5.tgz",
|
||||
@@ -5107,15 +5071,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/import/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/json-match": {
|
||||
"version": "1.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/json-match/-/json-match-1.0.5.tgz",
|
||||
@@ -5242,15 +5197,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/migrate/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/mutate": {
|
||||
"version": "0.18.2",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/mutate/-/mutate-0.18.2.tgz",
|
||||
@@ -5354,15 +5300,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/mutate/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/mutator": {
|
||||
"version": "6.17.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/mutator/-/mutator-6.17.0.tgz",
|
||||
@@ -5944,15 +5881,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/runtime-cli/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/schema": {
|
||||
"version": "6.17.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/schema/-/schema-6.17.0.tgz",
|
||||
@@ -5994,15 +5922,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/schema/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/sdk": {
|
||||
"version": "3.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/sdk/-/sdk-3.7.0.tgz",
|
||||
@@ -6108,15 +6027,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/sdk-react/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/sdk/node_modules/@sanity/bifur-client": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/bifur-client/-/bifur-client-1.0.0.tgz",
|
||||
@@ -6220,15 +6130,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/sdk/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/signed-urls": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/signed-urls/-/signed-urls-2.0.5.tgz",
|
||||
@@ -6361,15 +6262,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/types/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/ui": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/ui/-/ui-4.3.0.tgz",
|
||||
@@ -6474,15 +6366,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/util/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/uuid": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/uuid/-/uuid-3.0.3.tgz",
|
||||
@@ -6572,15 +6455,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/validation/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@sanity/visual-editing-types": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@sanity/visual-editing-types/-/visual-editing-types-2.1.1.tgz",
|
||||
@@ -12889,15 +12763,6 @@
|
||||
"node": ">=12.20.0"
|
||||
}
|
||||
},
|
||||
"node_modules/sanity/node_modules/undici": {
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/sanity/node_modules/uuid": {
|
||||
"version": "14.0.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-14.0.2.tgz",
|
||||
@@ -13608,9 +13473,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.29.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.29.0.tgz",
|
||||
"integrity": "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==",
|
||||
"version": "7.30.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.30.0.tgz",
|
||||
"integrity": "sha512-dkrQXeHSaoamnItlYbmzG0wFYrM0ZwDxCIg0A7aKjTyyhh9svRzCNFEzV+Vm05/yehjCzjDZ31KXfGEjYSztDQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
},
|
||||
"overrides": {
|
||||
"glob": "^11.0.0",
|
||||
"adm-zip": "^0.6.1",
|
||||
"undici": "^7.29.1",
|
||||
"prismjs": "^1.30.0",
|
||||
"minimatch": "^10.2.1",
|
||||
"@vercel/frameworks": {
|
||||
|
||||
Reference in new issue
Block a user