Files
uiogaming.no-backend/dist/static/CommentsStudioLayout-C25Q4csV-CF594dvF.js
T
2026-10-02 21:15:18 +02:00

1 line
1.7 KiB
JavaScript

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};