mirror of
https://github.com/UiO-Gaming/uiogaming.no-backend.git
synced 2026-11-05 13:56:49 +01:00
migrate to npm
This commit is contained in:
28 files changed
+26675
-14932
No files matched your search
@@ -11,13 +11,13 @@ For å få noe som helst nytte av denne bør du kjøre frontenden. Den kan du fi
|
||||
1. Installer avhengigheter
|
||||
|
||||
```bash
|
||||
yarn install
|
||||
npm install
|
||||
```
|
||||
|
||||
2. Kjør applikasjonen
|
||||
|
||||
```bash
|
||||
yarn start
|
||||
npm start
|
||||
```
|
||||
|
||||
### Docker
|
||||
|
||||
Vendored
+1
-1
@@ -261,7 +261,7 @@
|
||||
margin: 0;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
</style></head><body><div id="sanity"></div><script type="module" src="/static/sanity-550b6471.js"></script><noscript><div class="sanity-app-no-js__root"><div class="sanity-app-no-js__content"><style type="text/css">
|
||||
</style></head><body><div id="sanity"></div><script type="module" src="/static/sanity-D34DDzzj.js"></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;
|
||||
|
||||
+474
@@ -0,0 +1,474 @@
|
||||
[
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "custom"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "name",
|
||||
"type": "slug"
|
||||
}
|
||||
],
|
||||
"name": "media.tag",
|
||||
"type": "document"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 50
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "title",
|
||||
"type": "string",
|
||||
"title": "Tittel"
|
||||
},
|
||||
{
|
||||
"options": {
|
||||
"source": "title",
|
||||
"maxLength": 96
|
||||
},
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "custom"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"description": "Lenke til innlegget. Sørg for at tittelen er unik og trykk på generate. Hvis ikke, endre denne til noe unikt",
|
||||
"name": "slug",
|
||||
"type": "slug"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"to": [
|
||||
{
|
||||
"type": "author"
|
||||
}
|
||||
],
|
||||
"name": "author",
|
||||
"type": "reference",
|
||||
"title": "Person"
|
||||
},
|
||||
{
|
||||
"name": "mainImage",
|
||||
"type": "image",
|
||||
"title": "Forsidebilde"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "body",
|
||||
"type": "blockContent",
|
||||
"title": "Brødtekst"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 150
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"description": "Dette er teksten som vil vises på forsiden som forhåndsvisning",
|
||||
"name": "excerpt",
|
||||
"type": "string",
|
||||
"title": "Sammendrag"
|
||||
}
|
||||
],
|
||||
"name": "post",
|
||||
"type": "document",
|
||||
"title": "Blogginnlegg"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 50
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"title": "Navn"
|
||||
},
|
||||
{
|
||||
"name": "boardMember",
|
||||
"type": "boolean",
|
||||
"title": "Styremedlem?"
|
||||
},
|
||||
{
|
||||
"name": "image",
|
||||
"type": "image",
|
||||
"title": "Bilde"
|
||||
},
|
||||
{
|
||||
"fieldsets": [
|
||||
{
|
||||
"name": "translations",
|
||||
"options": {
|
||||
"collapsible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"name": "role",
|
||||
"type": "localeString",
|
||||
"title": "Stilling"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 50
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "contactInfo",
|
||||
"type": "string",
|
||||
"title": "Kontaktinfo (f. eks: Discordbrukernavn eller E-post)"
|
||||
},
|
||||
{
|
||||
"fieldsets": [
|
||||
{
|
||||
"name": "translations",
|
||||
"options": {
|
||||
"collapsible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"name": "bio",
|
||||
"type": "localeString"
|
||||
},
|
||||
{
|
||||
"readOnly": true,
|
||||
"hidden": true,
|
||||
"name": "orderRank",
|
||||
"type": "string"
|
||||
}
|
||||
],
|
||||
"name": "author",
|
||||
"type": "document",
|
||||
"title": "Person"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 50
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "title",
|
||||
"type": "string",
|
||||
"title": "Navn"
|
||||
},
|
||||
{
|
||||
"options": {
|
||||
"source": "title",
|
||||
"maxLength": 96
|
||||
},
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "custom"
|
||||
},
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"description": "Lenke til arrangementet. Sørg for at navnet er unikt og trykk på generate. Hvis ikke, endre denne til noe unikt",
|
||||
"name": "slug",
|
||||
"type": "slug"
|
||||
},
|
||||
{
|
||||
"options": {
|
||||
"dateFormat": "YYYY-MM-DD",
|
||||
"timeFormat": "HH:mm",
|
||||
"timeStep": 15,
|
||||
"calendarTodayLabel": "I dag"
|
||||
},
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "date",
|
||||
"type": "datetime",
|
||||
"title": "Tidspunkt"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 50
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "location",
|
||||
"type": "string",
|
||||
"title": "Sted"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "description",
|
||||
"type": "text",
|
||||
"title": "Beskrivelse"
|
||||
}
|
||||
],
|
||||
"name": "event",
|
||||
"type": "document",
|
||||
"title": "Arrangement"
|
||||
},
|
||||
{
|
||||
"of": [
|
||||
{
|
||||
"marks": {
|
||||
"annotations": [
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "uri",
|
||||
"constraint": {
|
||||
"options": {
|
||||
"scheme": [
|
||||
"/^http$/",
|
||||
"/^https$/"
|
||||
],
|
||||
"allowRelative": false,
|
||||
"relativeOnly": false,
|
||||
"allowCredentials": false
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "href",
|
||||
"type": "url",
|
||||
"title": "URL"
|
||||
}
|
||||
],
|
||||
"name": "link",
|
||||
"type": "object",
|
||||
"title": "URL"
|
||||
}
|
||||
],
|
||||
"decorators": [
|
||||
{
|
||||
"value": "strong",
|
||||
"title": "Strong"
|
||||
},
|
||||
{
|
||||
"value": "em",
|
||||
"title": "Emphasis"
|
||||
}
|
||||
]
|
||||
},
|
||||
"lists": [
|
||||
{
|
||||
"value": "bullet",
|
||||
"title": "Bullet"
|
||||
}
|
||||
],
|
||||
"styles": [
|
||||
{
|
||||
"value": "normal",
|
||||
"title": "Normal"
|
||||
},
|
||||
{
|
||||
"value": "h1",
|
||||
"title": "H1"
|
||||
},
|
||||
{
|
||||
"value": "h2",
|
||||
"title": "H2"
|
||||
},
|
||||
{
|
||||
"value": "h3",
|
||||
"title": "H3"
|
||||
},
|
||||
{
|
||||
"value": "h4",
|
||||
"title": "H4"
|
||||
},
|
||||
{
|
||||
"value": "blockquote",
|
||||
"title": "Quote"
|
||||
}
|
||||
],
|
||||
"of": [],
|
||||
"type": "block"
|
||||
},
|
||||
{
|
||||
"options": {
|
||||
"hotspot": true
|
||||
},
|
||||
"type": "image"
|
||||
}
|
||||
],
|
||||
"name": "blockContent",
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"fields": [
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 200
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "no",
|
||||
"type": "string",
|
||||
"title": "Norsk"
|
||||
},
|
||||
{
|
||||
"validation": [
|
||||
{
|
||||
"rules": [
|
||||
{
|
||||
"flag": "presence",
|
||||
"constraint": "required"
|
||||
},
|
||||
{
|
||||
"flag": "max",
|
||||
"constraint": 200
|
||||
}
|
||||
],
|
||||
"level": "error"
|
||||
}
|
||||
],
|
||||
"name": "en",
|
||||
"type": "string",
|
||||
"title": "English",
|
||||
"fieldset": "translations"
|
||||
}
|
||||
],
|
||||
"fieldsets": [
|
||||
{
|
||||
"name": "translations",
|
||||
"options": {
|
||||
"collapsible": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"name": "localeString",
|
||||
"type": "object",
|
||||
"title": "Localized string"
|
||||
}
|
||||
]
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"title": "Structure",
|
||||
"name": "structure",
|
||||
"type": "sanity/structure",
|
||||
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 25 25\" height=\"1em\" width=\"1em\" data-sanity-icon=\"master-detail\"><path stroke-linejoin=\"round\" stroke-width=\"1.2\" stroke=\"currentColor\" d=\"M7 9.5H10M11.5 6.5V18.5M7 12.5H10M13 9.5H18M7 15.5H10M5.5 6.5H19.5V18.5H5.5V6.5Z\"></path></svg>"
|
||||
},
|
||||
{
|
||||
"title": "Media",
|
||||
"name": "media",
|
||||
"type": null,
|
||||
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 25 25\" height=\"1em\" width=\"1em\" data-sanity-icon=\"image\"><path stroke-linejoin=\"round\" stroke-width=\"1.2\" stroke=\"currentColor\" d=\"M5.5 15.5L8.79289 12.2071C9.18342 11.8166 9.81658 11.8166 10.2071 12.2071L12.8867 14.8867C13.2386 15.2386 13.7957 15.2782 14.1938 14.9796L15.1192 14.2856C15.3601 14.1049 15.6696 14.0424 15.9618 14.1154L19.5 15M5.5 6.5H19.5V18.5H5.5V6.5ZM15.5 10.5C15.5 11.0523 15.0523 11.5 14.5 11.5C13.9477 11.5 13.5 11.0523 13.5 10.5C13.5 9.94772 13.9477 9.5 14.5 9.5C15.0523 9.5 15.5 9.94772 15.5 10.5Z\"></path></svg>"
|
||||
},
|
||||
{
|
||||
"title": "Schedules",
|
||||
"name": "schedules",
|
||||
"type": "sanity/scheduled-publishing",
|
||||
"icon": "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 25 25\" height=\"1em\" width=\"1em\" data-sanity-icon=\"calendar\"><path stroke-linejoin=\"round\" stroke-width=\"1.2\" stroke=\"currentColor\" d=\"M5.5 18.5H19.5V6.5H5.5V18.5Z\"></path><path stroke-linejoin=\"round\" stroke-width=\"1.2\" stroke=\"currentColor\" d=\"M16.5 8V4M8.5 8V4M8 12.5H10M8 15.5H10M11.5 12.5H13.5M11.5 15.5H13.5M15 12.5H17M15 15.5H17M12.5 8V4M5.5 9.5H19.5\"></path></svg>"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
import{j as r,C as c,a as u,S as a,H as x,T as m,c as D,r as v}from"./sanity-D34DDzzj.js";const S="Dev server stopped",E="The development server has stopped. You may need to restart it to continue working.";class f extends Error{constructor(){super(S),this.name="ViteDevServerStoppedError",this.ViteDevServerStoppedError=!0}}const d=void 0,l=e=>!!e,j=()=>{const e=D(5),[i,h]=v.useState(!1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>h(!0),e[0]=t):t=e[0];const p=t;let o,s;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{l(d)&&d.on("vite:ws:disconnect",p)},s=[p],e[1]=o,e[2]=s):(o=e[1],s=e[2]),v.useEffect(o,s);let n;return e[3]!==i?(n={devServerStopped:i},e[3]=i,e[4]=n):n=e[4],n},w=()=>{const{devServerStopped:e}=j();if(e)throw new f;return null},g=()=>l(d)?r.jsx(w,{}):null,T=()=>r.jsx(c,{height:"fill",overflow:"auto",paddingY:[4,5,6,7],paddingX:4,sizing:"border",tone:"critical",children:r.jsx(u,{width:3,children:r.jsxs(a,{space:4,children:[r.jsx(x,{children:S}),r.jsx(c,{border:!0,radius:2,overflow:"auto",padding:4,tone:"inherit",children:r.jsx(a,{space:4,children:r.jsx(m,{size:2,children:E})})})]})})});export{g as DetectViteDevServerStopped,T as DevServerStoppedErrorScreen};
|
||||
Vendored
-10
@@ -1,10 +0,0 @@
|
||||
import{au as Xe,av as qe}from"./sanity-550b6471.js";function Ue(G,Q){for(var y=0;y<Q.length;y++){const T=Q[y];if(typeof T!="string"&&!Array.isArray(T)){for(const _ in T)if(_!=="default"&&!(_ in G)){const h=Object.getOwnPropertyDescriptor(T,_);h&&Object.defineProperty(G,_,h.get?h:{enumerable:!0,get:()=>T[_]})}}}return Object.freeze(Object.defineProperty(G,Symbol.toStringTag,{value:"Module"}))}var de={exports:{}};/** @license
|
||||
* eventsource.js
|
||||
* Available under MIT License (MIT)
|
||||
* https://github.com/Yaffle/EventSource/
|
||||
*/(function(G,Q){(function(y){var T=y.setTimeout,_=y.clearTimeout,h=y.XMLHttpRequest,ue=y.XDomainRequest,ce=y.ActiveXObject,K=y.EventSource,I=y.document,Ae=y.Promise,Z=y.fetch,le=y.Response,J=y.TextDecoder,ve=y.TextEncoder,ee=y.AbortController;if(typeof window<"u"&&typeof I<"u"&&!("readyState"in I)&&I.body==null&&(I.readyState="loading",window.addEventListener("load",function(e){I.readyState="complete"},!1)),h==null&&ce!=null&&(h=function(){return new ce("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function r(){}return r.prototype=e,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),ee==null){var xe=Z;Z=function(e,r){var n=r.signal;return xe(e,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(t){var o=t.body.getReader();return n._reader=o,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return o}}}})},ee=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function he(){this.bitsNeeded=0,this.codePoint=0}he.prototype.decode=function(e){function r(d,u,i){if(i===1)return d>=128>>u&&d<<u<=2047;if(i===2)return d>=2048>>u&&d<<u<=55295||d>=57344>>u&&d<<u<=65535;if(i===3)return d>=65536>>u&&d<<u<=1114111;throw new Error}function n(d,u){if(d===6*1)return u>>6>15?3:u>31?2:1;if(d===6*2)return u>15?3:2;if(d===6*3)return 3;throw new Error}for(var t=65533,o="",a=this.bitsNeeded,s=this.codePoint,c=0;c<e.length;c+=1){var f=e[c];a!==0&&(f<128||f>191||!r(s<<6|f&63,a-6,n(a,s)))&&(a=0,s=t,o+=String.fromCharCode(s)),a===0?(f>=0&&f<=127?(a=0,s=f):f>=192&&f<=223?(a=6*1,s=f&31):f>=224&&f<=239?(a=6*2,s=f&15):f>=240&&f<=247?(a=6*3,s=f&7):(a=0,s=t),a!==0&&!r(s,a,n(a,s))&&(a=0,s=t)):(a-=6,s=s<<6|f&63),a===0&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=s,o};var De=function(){try{return new J().decode(new ve().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(J==null||ve==null||!De())&&(J=he);var R=function(){};function j(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=R,this.onload=R,this.onerror=R,this.onreadystatechange=R,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=R}j.prototype.open=function(e,r){this._abort(!0);var n=this,t=this._xhr,o=1,a=0;this._abort=function(i){n._sendTimeout!==0&&(_(n._sendTimeout),n._sendTimeout=0),(o===1||o===2||o===3)&&(o=4,t.onload=R,t.onerror=R,t.onabort=R,t.onprogress=R,t.onreadystatechange=R,t.abort(),a!==0&&(_(a),a=0),i||(n.readyState=4,n.onabort(null),n.onreadystatechange())),o=0};var s=function(){if(o===1){var i=0,l="",D=void 0;if("contentType"in t)i=200,l="OK",D=t.contentType;else try{i=t.status,l=t.statusText,D=t.getResponseHeader("Content-Type")}catch{i=0,l="",D=void 0}i!==0&&(o=2,n.readyState=2,n.status=i,n.statusText=l,n._contentType=D,n.onreadystatechange())}},c=function(){if(s(),o===2||o===3){o=3;var i="";try{i=t.responseText}catch{}n.readyState=3,n.responseText=i,n.onprogress()}},f=function(i,l){if((l==null||l.preventDefault==null)&&(l={preventDefault:R}),c(),o===1||o===2||o===3){if(o=4,a!==0&&(_(a),a=0),n.readyState=4,i==="load")n.onload(l);else if(i==="error")n.onerror(l);else if(i==="abort")n.onabort(l);else throw new TypeError;n.onreadystatechange()}},d=function(i){t!=null&&(t.readyState===4?(!("onload"in t)||!("onerror"in t)||!("onabort"in t))&&f(t.responseText===""?"error":"load",i):t.readyState===3?"onprogress"in t||c():t.readyState===2&&s())},u=function(){a=T(function(){u()},500),t.readyState===3&&c()};"onload"in t&&(t.onload=function(i){f("load",i)}),"onerror"in t&&(t.onerror=function(i){f("error",i)}),"onabort"in t&&(t.onabort=function(i){f("abort",i)}),"onprogress"in t&&(t.onprogress=c),"onreadystatechange"in t&&(t.onreadystatechange=function(i){d(i)}),("contentType"in t||!("ontimeout"in h.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),t.open(e,r,!0),"readyState"in t&&(a=T(function(){u()},0))},j.prototype.abort=function(){this._abort(!1)},j.prototype.getResponseHeader=function(e){return this._contentType},j.prototype.setRequestHeader=function(e,r){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,r)},j.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},j.prototype.send=function(){if((!("ontimeout"in h.prototype)||!("sendAsBinary"in h.prototype)&&!("mozAnon"in h.prototype))&&I!=null&&I.readyState!=null&&I.readyState!=="complete"){var e=this;e._sendTimeout=T(function(){e._sendTimeout=0,e.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(n){throw n}};function pe(e){rLine truncated
|
||||
`),t=0;t<n.length;t+=1){var o=n[t],a=o.split(": "),s=a.shift(),c=a.join(": ");r[pe(s)]=c}this._map=r}ye.prototype.get=function(e){return this._map[pe(e)]},h!=null&&h.HEADERS_RECEIVED==null&&(h.HEADERS_RECEIVED=2);function ge(){}ge.prototype.open=function(e,r,n,t,o,a,s){e.open("GET",o);var c=0;e.onprogress=function(){var d=e.responseText,u=d.slice(c);c+=u.length,n(u)},e.onerror=function(d){d.preventDefault(),t(new Error("NetworkError"))},e.onload=function(){t(null)},e.onabort=function(){t(null)},e.onreadystatechange=function(){if(e.readyState===h.HEADERS_RECEIVED){var d=e.status,u=e.statusText,i=e.getResponseHeader("Content-Type"),l=e.getAllResponseHeaders();r(d,u,i,new ye(l))}},e.withCredentials=a;for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&e.setRequestHeader(f,s[f]);return e.send(),e};function Ee(e){this._headers=e}Ee.prototype.get=function(e){return this._headers.get(e)};function we(){}we.prototype.open=function(e,r,n,t,o,a,s){var c=null,f=new ee,d=f.signal,u=new J;return Z(o,{headers:s,credentials:a?"include":"same-origin",signal:d,cache:"no-store"}).then(function(i){return c=i.body.getReader(),r(i.status,i.statusText,i.headers.get("Content-Type"),new Ee(i.headers)),new Ae(function(l,D){var $=function(){c.read().then(function(C){if(C.done)l(void 0);else{var E=u.decode(C.value,{stream:!0});n(E),$()}}).catch(function(C){D(C)})};$()})}).catch(function(i){if(i.name!=="AbortError")return i}).then(function(i){t(i)}),{abort:function(){c!=null&&c.cancel(),f.abort()}}};function V(){this._listeners=Object.create(null)}function me(e){T(function(){throw e},0)}V.prototype.dispatchEvent=function(e){e.target=this;var r=this._listeners[e.type];if(r!=null)for(var n=r.length,t=0;t<n;t+=1){var o=r[t];try{typeof o.handleEvent=="function"?o.handleEvent(e):o.call(this,e)}catch(a){me(a)}}},V.prototype.addEventListener=function(e,r){e=String(e);var n=this._listeners,t=n[e];t==null&&(t=[],n[e]=t);for(var o=!1,a=0;a<t.length;a+=1)t[a]===r&&(o=!0);o||t.push(r)},V.prototype.removeEventListener=function(e,r){e=String(e);var n=this._listeners,t=n[e];if(t!=null){for(var o=[],a=0;a<t.length;a+=1)t[a]!==r&&o.push(t[a]);o.length===0?delete n[e]:n[e]=o}};function P(e){this.type=e,this.target=void 0}function Te(e,r){P.call(this,e),this.data=r.data,this.lastEventId=r.lastEventId}Te.prototype=Object.create(P.prototype);function te(e,r){P.call(this,e),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}te.prototype=Object.create(P.prototype);function Ce(e,r){P.call(this,e),this.error=r.error}Ce.prototype=Object.create(P.prototype);var re=-1,H=0,X=1,W=2,ne=-1,L=0,ae=1,Se=2,Fe=3,Oe=/^text\/event\-stream(;.*)?$/i,Ne=1e3,Ie=18e6,oe=function(e,r){var n=e==null?r:parseInt(e,10);return n!==n&&(n=r),ie(n)},ie=function(e){return Math.min(Math.max(e,Ne),Ie)},q=function(e,r,n){try{typeof r=="function"&&r.call(e,n)}catch(t){me(t)}};function A(e,r){V.call(this),r=r||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,je(this,e,r)}function He(){return h!=null&&"withCredentials"in h.prototype||ue==null?new h:new ue}var Le=Z!=null&&le!=null&&"body"in le.prototype;function je(e,r,n){r=String(r);var t=!!n.withCredentials,o=n.lastEventIdQueryParameterName||"lastEventId",a=ie(1e3),s=oe(n.heartbeatTimeout,45e3),c="",f=a,d=!1,u=0,i=n.headers||{},l=n.Transport,D=Le&&l==null?void 0:new j(l!=null?new l:He()),$=l!=null&&typeof l!="string"?new l:D==null?new we:new ge,C=void 0,E=0,x=re,U="",Y="",F="",k="",w=L,se=0,M=0,Me=function(p,v,S,b){if(x===H)if(p===200&&S!=null&&Oe.test(S)){x=X,d=Date.now(),f=a,e.readyState=X;var m=new te("open",{status:p,statusText:v,headers:b});e.dispatchEvent(m),q(e,e.onopen,m)}else{var g="";p!==200?(v&&(v=v.replace(/\s+/g," ")),g="EventSource's response has a status "+p+" "+v+" that is not 200. Aborting the connection."):g="EventSource's response has a Content-Type specifying an unsupported type: "+(S==null?"-":S.replace(/\s+/g," "))+". Aborting the connection.",fe();var m=new te("error",{status:p,statusText:v,headers:b});e.dispatchEvent(m),q(e,e.onerror,m),console.error(g)}},Pe=function(p){if(x===X){for(var v=-1,S=0;S<p.length;S+=1){var b=p.charCodeAt(S);(b===`
|
||||
`.charCodeAt(0)||b==="\r".charCodeAt(0))&&(v=S)}var m=(v!==-1?k:"")+p.slice(0,v+1);k=(v===-1?k:"")+p.slice(v+1),p!==""&&(d=Date.now(),u+=p.length);for(var g=0;g<m.length;g+=1){var b=m.charCodeAt(g);if(w===ne&&b===`
|
||||
`.charCodeAt(0))w=L;else if(w===ne&&(w=L),b==="\r".charCodeAt(0)||b===`
|
||||
`.charCodeAt(0)){if(w!==L){w===ae&&(M=g+1);var O=m.slice(se,M-1),N=m.slice(M+(M<g&&m.charCodeAt(M)===" ".charCodeAt(0)?1:0),g);O==="data"?(U+=`
|
||||
`,U+=N):O==="id"?Y=N:O==="event"?F=N:O==="retry"?(a=oe(N,a),f=a):O==="heartbeatTimeout"&&(s=oe(N,s),E!==0&&(_(E),E=T(function(){z()},s)))}if(w===L){if(U!==""){c=Y,F===""&&(F="message");var B=new Te(F,{data:U.slice(1),lastEventId:Y});if(e.dispatchEvent(B),F==="open"?q(e,e.onopen,B):F==="message"?q(e,e.onmessage,B):F==="error"&&q(e,e.onerror,B),x===W)return}U="",F=""}w=b==="\r".charCodeAt(0)?ne:L}else w===L&&(se=g,w=ae),w===ae?b===":".charCodeAt(0)&&(M=g+1,w=Se):w===Se&&(w=Fe)}}},_e=function(p){if(x===X||x===H){x=re,E!==0&&(_(E),E=0),E=T(function(){z()},f),f=ie(Math.min(a*16,f*2)),e.readyState=H;var v=new Ce("error",{error:p});e.dispatchEvent(v),q(e,e.onerror,v),p!=null&&console.error(p)}},fe=function(){x=W,C!=null&&(C.abort(),C=void 0),E!==0&&(_(E),E=0),e.readyState=W},z=function(){if(E=0,x!==re){if(!d&&C!=null)_e(new Error("No activity within "+s+" milliseconds. "+(x===H?"No response received.":u+" chars received.")+" Reconnecting.")),C!=null&&(C.abort(),C=void 0);else{var p=Math.max((d||Date.now())+s-Date.now(),1);d=!1,E=T(function(){z()},p)}return}d=!1,u=0,E=T(function(){z()},s),x=H,U="",F="",Y=c,k="",se=0,M=0,w=L;var v=r;if(r.slice(0,5)!=="data:"&&r.slice(0,5)!=="blob:"&&c!==""){var S=r.indexOf("?");v=S===-1?r:r.slice(0,S+1)+r.slice(S+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(N,B){return B===o?"":N}),v+=(r.indexOf("?")===-1?"?":"&")+o+"="+encodeURIComponent(c)}var b=e.withCredentials,m={};m.Accept="text/event-stream";var g=e.headers;if(g!=null)for(var O in g)Object.prototype.hasOwnProperty.call(g,O)&&(m[O]=g[O]);try{C=$.open(D,Me,Pe,_e,v,b,m)}catch(N){throw fe(),N}};e.url=r,e.readyState=H,e.withCredentials=t,e.headers=i,e._close=fe,z()}A.prototype=Object.create(V.prototype),A.prototype.CONNECTING=H,A.prototype.OPEN=X,A.prototype.CLOSED=W,A.prototype.close=function(){this._close()},A.CONNECTING=H,A.OPEN=X,A.CLOSED=W,A.prototype.withCredentials=void 0;var be=K;h!=null&&(K==null||!("withCredentials"in K.prototype))&&(be=A),function(e){{var r=e(Q);r!==void 0&&(G.exports=r)}}(function(e){e.EventSourcePolyfill=A,e.NativeEventSource=K,e.EventSource=be})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Xe:globalThis)})(de,de.exports);var Be=de.exports,Re=Be.EventSourcePolyfill;const Ge=qe(Re),We=Ue({__proto__:null,default:Ge},[Re]);export{We as b};
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import{e as Pe,g as Xe}from"./sanity-D34DDzzj.js";var se={exports:{}};/** @license
|
||||
* eventsource.js
|
||||
* Available under MIT License (MIT)
|
||||
* https://github.com/Yaffle/EventSource/
|
||||
*/(function(be,_e){(function(m){var O=m.setTimeout,M=m.clearTimeout,w=m.XMLHttpRequest,fe=m.XDomainRequest,de=m.ActiveXObject,z=m.EventSource,N=m.document,Re=m.Promise,Q=m.fetch,ue=m.Response,K=m.TextDecoder,ce=m.TextEncoder,Y=m.AbortController;if(typeof window<"u"&&typeof N<"u"&&!("readyState"in N)&&N.body==null&&(N.readyState="loading",window.addEventListener("load",function(e){N.readyState="complete"},!1)),w==null&&de!=null&&(w=function(){return new de("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(e){function r(){}return r.prototype=e,new r}),Date.now||(Date.now=function(){return new Date().getTime()}),Y==null){var Ae=Q;Q=function(e,r){var n=r.signal;return Ae(e,{headers:r.headers,credentials:r.credentials,cache:r.cache}).then(function(t){var o=t.body.getReader();return n._reader=o,n._aborted&&n._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return o}}}})},Y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function le(){this.bitsNeeded=0,this.codePoint=0}le.prototype.decode=function(e){function r(d,u,i){if(i===1)return d>=128>>u&&d<<u<=2047;if(i===2)return d>=2048>>u&&d<<u<=55295||d>=57344>>u&&d<<u<=65535;if(i===3)return d>=65536>>u&&d<<u<=1114111;throw new Error}function n(d,u){if(d===6*1)return u>>6>15?3:u>31?2:1;if(d===6*2)return u>15?3:2;if(d===6*3)return 3;throw new Error}for(var t=65533,o="",a=this.bitsNeeded,s=this.codePoint,c=0;c<e.length;c+=1){var f=e[c];a!==0&&(f<128||f>191||!r(s<<6|f&63,a-6,n(a,s)))&&(a=0,s=t,o+=String.fromCharCode(s)),a===0?(f>=0&&f<=127?(a=0,s=f):f>=192&&f<=223?(a=6*1,s=f&31):f>=224&&f<=239?(a=6*2,s=f&15):f>=240&&f<=247?(a=6*3,s=f&7):(a=0,s=t),a!==0&&!r(s,a,n(a,s))&&(a=0,s=t)):(a-=6,s=s<<6|f&63),a===0&&(s<=65535?o+=String.fromCharCode(s):(o+=String.fromCharCode(55296+(s-65535-1>>10)),o+=String.fromCharCode(56320+(s-65535-1&1023))))}return this.bitsNeeded=a,this.codePoint=s,o};var xe=function(){try{return new K().decode(new ce().encode("test"),{stream:!0})==="test"}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1};(K==null||ce==null||!xe())&&(K=le);var b=function(){};function L(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=b,this.onload=b,this.onerror=b,this.onreadystatechange=b,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=b}L.prototype.open=function(e,r){this._abort(!0);var n=this,t=this._xhr,o=1,a=0;this._abort=function(i){n._sendTimeout!==0&&(M(n._sendTimeout),n._sendTimeout=0),(o===1||o===2||o===3)&&(o=4,t.onload=b,t.onerror=b,t.onabort=b,t.onprogress=b,t.onreadystatechange=b,t.abort(),a!==0&&(M(a),a=0),i||(n.readyState=4,n.onabort(null),n.onreadystatechange())),o=0};var s=function(){if(o===1){var i=0,l="",A=void 0;if("contentType"in t)i=200,l="OK",A=t.contentType;else try{i=t.status,l=t.statusText,A=t.getResponseHeader("Content-Type")}catch{i=0,l="",A=void 0}i!==0&&(o=2,n.readyState=2,n.status=i,n.statusText=l,n._contentType=A,n.onreadystatechange())}},c=function(){if(s(),o===2||o===3){o=3;var i="";try{i=t.responseText}catch{}n.readyState=3,n.responseText=i,n.onprogress()}},f=function(i,l){if((l==null||l.preventDefault==null)&&(l={preventDefault:b}),c(),o===1||o===2||o===3){if(o=4,a!==0&&(M(a),a=0),n.readyState=4,i==="load")n.onload(l);else if(i==="error")n.onerror(l);else if(i==="abort")n.onabort(l);else throw new TypeError;n.onreadystatechange()}},d=function(i){t!=null&&(t.readyState===4?(!("onload"in t)||!("onerror"in t)||!("onabort"in t))&&f(t.responseText===""?"error":"load",i):t.readyState===3?"onprogress"in t||c():t.readyState===2&&s())},u=function(){a=O(function(){u()},500),t.readyState===3&&c()};"onload"in t&&(t.onload=function(i){f("load",i)}),"onerror"in t&&(t.onerror=function(i){f("error",i)}),"onabort"in t&&(t.onabort=function(i){f("abort",i)}),"onprogress"in t&&(t.onprogress=c),"onreadystatechange"in t&&(t.onreadystatechange=function(i){d(i)}),("contentType"in t||!("ontimeout"in w.prototype))&&(r+=(r.indexOf("?")===-1?"?":"&")+"padding=true"),t.open(e,r,!0),"readyState"in t&&(a=O(function(){u()},0))},L.prototype.abort=function(){this._abort(!1)},L.prototype.getResponseHeader=function(e){return this._contentType},L.prototype.setRequestHeader=function(e,r){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,r)},L.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},L.prototype.send=function(){if((!("ontimeout"in w.prototype)||!("sendAsBinary"in w.prototype)&&!("mozAnon"in w.prototype))&&N!=null&&N.readyState!=null&&N.readyState!=="complete"){var e=this;e._sendTimeout=O(function(){e._sendTimeout=0,e.send()},4);return}var r=this._xhr;"withCredentials"in r&&(r.withCredentials=this.withCredentials);try{r.send(void 0)}catch(n){throw n}};function ve(e){reLine truncated
|
||||
`),t=0;t<n.length;t+=1){var o=n[t],a=o.split(": "),s=a.shift(),c=a.join(": ");r[ve(s)]=c}this._map=r}he.prototype.get=function(e){return this._map[ve(e)]},w!=null&&w.HEADERS_RECEIVED==null&&(w.HEADERS_RECEIVED=2);function pe(){}pe.prototype.open=function(e,r,n,t,o,a,s){e.open("GET",o);var c=0;e.onprogress=function(){var d=e.responseText,u=d.slice(c);c+=u.length,n(u)},e.onerror=function(d){d.preventDefault(),t(new Error("NetworkError"))},e.onload=function(){t(null)},e.onabort=function(){t(null)},e.onreadystatechange=function(){if(e.readyState===w.HEADERS_RECEIVED){var d=e.status,u=e.statusText,i=e.getResponseHeader("Content-Type"),l=e.getAllResponseHeaders();r(d,u,i,new he(l))}},e.withCredentials=a;for(var f in s)Object.prototype.hasOwnProperty.call(s,f)&&e.setRequestHeader(f,s[f]);return e.send(),e};function ye(e){this._headers=e}ye.prototype.get=function(e){return this._headers.get(e)};function ge(){}ge.prototype.open=function(e,r,n,t,o,a,s){var c=null,f=new Y,d=f.signal,u=new K;return Q(o,{headers:s,credentials:a?"include":"same-origin",signal:d,cache:"no-store"}).then(function(i){return c=i.body.getReader(),r(i.status,i.statusText,i.headers.get("Content-Type"),new ye(i.headers)),new Re(function(l,A){var W=function(){c.read().then(function(T){if(T.done)l(void 0);else{var y=u.decode(T.value,{stream:!0});n(y),W()}}).catch(function(T){A(T)})};W()})}).catch(function(i){if(i.name!=="AbortError")return i}).then(function(i){t(i)}),{abort:function(){c!=null&&c.cancel(),f.abort()}}};function G(){this._listeners=Object.create(null)}function Ee(e){O(function(){throw e},0)}G.prototype.dispatchEvent=function(e){e.target=this;var r=this._listeners[e.type];if(r!=null)for(var n=r.length,t=0;t<n;t+=1){var o=r[t];try{typeof o.handleEvent=="function"?o.handleEvent(e):o.call(this,e)}catch(a){Ee(a)}}},G.prototype.addEventListener=function(e,r){e=String(e);var n=this._listeners,t=n[e];t==null&&(t=[],n[e]=t);for(var o=!1,a=0;a<t.length;a+=1)t[a]===r&&(o=!0);o||t.push(r)},G.prototype.removeEventListener=function(e,r){e=String(e);var n=this._listeners,t=n[e];if(t!=null){for(var o=[],a=0;a<t.length;a+=1)t[a]!==r&&o.push(t[a]);o.length===0?delete n[e]:n[e]=o}};function P(e){this.type=e,this.target=void 0}function we(e,r){P.call(this,e),this.data=r.data,this.lastEventId=r.lastEventId}we.prototype=Object.create(P.prototype);function k(e,r){P.call(this,e),this.status=r.status,this.statusText=r.statusText,this.headers=r.headers}k.prototype=Object.create(P.prototype);function me(e,r){P.call(this,e),this.error=r.error}me.prototype=Object.create(P.prototype);var ee=-1,I=0,X=1,V=2,te=-1,H=0,re=1,Te=2,De=3,Fe=/^text\/event\-stream(;.*)?$/i,Oe=1e3,Ne=18e6,ne=function(e,r){var n=e==null?r:parseInt(e,10);return n!==n&&(n=r),ae(n)},ae=function(e){return Math.min(Math.max(e,Oe),Ne)},q=function(e,r,n){try{typeof r=="function"&&r.call(e,n)}catch(t){Ee(t)}};function _(e,r){G.call(this),r=r||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,Le(this,e,r)}function Ie(){return w!=null&&"withCredentials"in w.prototype||fe==null?new w:new fe}var He=Q!=null&&ue!=null&&"body"in ue.prototype;function Le(e,r,n){r=String(r);var t=!!n.withCredentials,o=n.lastEventIdQueryParameterName||"lastEventId",a=ae(1e3),s=ne(n.heartbeatTimeout,45e3),c="",f=a,d=!1,u=0,i=n.headers||{},l=n.Transport,A=He&&l==null?void 0:new L(l!=null?new l:Ie()),W=l!=null&&typeof l!="string"?new l:A==null?new ge:new pe,T=void 0,y=0,R=ee,U="",Z="",x="",J="",g=H,oe=0,j=0,je=function(h,v,C,S){if(R===I)if(h===200&&C!=null&&Fe.test(C)){R=X,d=Date.now(),f=a,e.readyState=X;var E=new k("open",{status:h,statusText:v,headers:S});e.dispatchEvent(E),q(e,e.onopen,E)}else{var p="";h!==200?(v&&(v=v.replace(/\s+/g," ")),p="EventSource's response has a status "+h+" "+v+" that is not 200. Aborting the connection."):p="EventSource's response has a Content-Type specifying an unsupported type: "+(C==null?"-":C.replace(/\s+/g," "))+". Aborting the connection.",ie();var E=new k("error",{status:h,statusText:v,headers:S});e.dispatchEvent(E),q(e,e.onerror,E),console.error(p)}},Me=function(h){if(R===X){for(var v=-1,C=0;C<h.length;C+=1){var S=h.charCodeAt(C);(S===10||S===13)&&(v=C)}var E=(v!==-1?J:"")+h.slice(0,v+1);J=(v===-1?J:"")+h.slice(v+1),h!==""&&(d=Date.now(),u+=h.length);for(var p=0;p<E.length;p+=1){var S=E.charCodeAt(p);if(g===te&&S===10)g=H;else if(g===te&&(g=H),S===13||S===10){if(g!==H){g===re&&(j=p+1);var D=E.slice(oe,j-1),F=E.slice(j+(j<p&&E.charCodeAt(j)===32?1:0),p);D==="data"?(U+=`
|
||||
`,U+=F):D==="id"?Z=F:D==="event"?x=F:D==="retry"?(a=ne(F,a),f=a):D==="heartbeatTimeout"&&(s=ne(F,s),y!==0&&(M(y),y=O(function(){$()},s)))}if(g===H){if(U!==""){c=Z,x===""&&(x="message");var B=new we(x,{data:U.slice(1),lastEventId:Z});if(e.dispatchEvent(B),x==="open"?q(e,e.onopen,B):x==="message"?q(e,e.onmessage,B):x==="error"&&q(e,e.onerror,B),R===V)return}U="",x=""}g=S===13?te:H}else g===H&&(oe=p,g=re),g===re?S===58&&(j=p+1,g=Te):g===Te&&(g=De)}}},Se=function(h){if(R===X||R===I){R=ee,y!==0&&(M(y),y=0),y=O(function(){$()},f),f=ae(Math.min(a*16,f*2)),e.readyState=I;var v=new me("error",{error:h});e.dispatchEvent(v),q(e,e.onerror,v),h!=null&&console.error(h)}},ie=function(){R=V,T!=null&&(T.abort(),T=void 0),y!==0&&(M(y),y=0),e.readyState=V},$=function(){if(y=0,R!==ee){if(!d&&T!=null)Se(new Error("No activity within "+s+" milliseconds. "+(R===I?"No response received.":u+" chars received.")+" Reconnecting.")),T!=null&&(T.abort(),T=void 0);else{var h=Math.max((d||Date.now())+s-Date.now(),1);d=!1,y=O(function(){$()},h)}return}d=!1,u=0,y=O(function(){$()},s),R=I,U="",x="",Z=c,J="",oe=0,j=0,g=H;var v=r;if(r.slice(0,5)!=="data:"&&r.slice(0,5)!=="blob:"&&c!==""){var C=r.indexOf("?");v=C===-1?r:r.slice(0,C+1)+r.slice(C+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(F,B){return B===o?"":F}),v+=(r.indexOf("?")===-1?"?":"&")+o+"="+encodeURIComponent(c)}var S=e.withCredentials,E={};E.Accept="text/event-stream";var p=e.headers;if(p!=null)for(var D in p)Object.prototype.hasOwnProperty.call(p,D)&&(E[D]=p[D]);try{T=W.open(A,je,Me,Se,v,S,E)}catch(F){throw ie(),F}};e.url=r,e.readyState=I,e.withCredentials=t,e.headers=i,e._close=ie,$()}_.prototype=Object.create(G.prototype),_.prototype.CONNECTING=I,_.prototype.OPEN=X,_.prototype.CLOSED=V,_.prototype.close=function(){this._close()},_.CONNECTING=I,_.OPEN=X,_.CLOSED=V,_.prototype.withCredentials=void 0;var Ce=z;w!=null&&(z==null||!("withCredentials"in z.prototype))&&(Ce=_),function(e){{var r=e(_e);r!==void 0&&(be.exports=r)}}(function(e){e.EventSourcePolyfill=_,e.NativeEventSource=z,e.EventSource=Ce})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:Pe:globalThis)})(se,se.exports);var qe=se.exports,Ue=qe.EventSourcePolyfill;const Be=Xe(Ue),Ve=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));export{Ve as b};
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"version": 2,
|
||||
"createdAt": "2025-01-16T10:34:34.766Z",
|
||||
"workspaces": [
|
||||
{
|
||||
"name": "uiogaming_dot_no-backend",
|
||||
"title": "uiogaming.no backend",
|
||||
"basePath": "/",
|
||||
"projectId": "mmqlu667",
|
||||
"dataset": "production",
|
||||
"icon": "<style data-styled-version=\"6.1.14\" data-styled=\"true\">.kiYPvJ{font-family:Inter,-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",\"Liberation Sans\",Helvetica,Arial,system-ui,sans-serif;font-weight:500;font-size:13px;transform:translateY(1px);}/*!sc*/\ndata-styled.g109[id=\"sc-eddAHl\"]{content:\"kiYPvJ,\"}/*!sc*/\n</style><svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\"><rect fill=\"#721fe5\" rx=\"2\" height=\"32\" width=\"32\"></rect><text class=\"sc-eddAHl kiYPvJ\" fill=\"hsla(265, 79%, 91%, 1)\" alignment-baseline=\"middle\" text-anchor=\"middle\" y=\"50%\" x=\"50%\">UB</text></svg>",
|
||||
"schema": "6ce69c2f.create-schema.json",
|
||||
"tools": "94a5fde3.create-tools.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
import{l as y,c as k,r as H,am as G,an as R,j as u,Y as T,Q as V,ao as g,i as v,a9 as w,a0 as A,ap as L,aq as _,V as q}from"./sanity-D34DDzzj.js";const K=y(V)`
|
||||
position: relative;
|
||||
`;function Q(d){const e=k(3),{children:a}=d,{collapsed:s}=g();let t;return e[0]!==a||e[1]!==s?(t=u.jsx(K,{hidden:s,height:"fill",overflow:"auto",children:a}),e[0]=a,e[1]=s,e[2]=t):t=e[2],t}function W(d){const e=k(11),{actionHandlers:a,index:s,menuItems:t,menuItemGroups:o,title:n}=d,{features:c}=v();if(!(t!=null&&t.length)&&!n)return null;let l;e[0]!==a||e[1]!==o||e[2]!==t?(l=u.jsx(_,{menuItems:t,menuItemGroups:o,actionHandlers:a}),e[0]=a,e[1]=o,e[2]=t,e[3]=l):l=e[3];let i;e[4]!==c.backButton||e[5]!==s?(i=c.backButton&&s>0&&u.jsx(w,{as:A,"data-as":"a",icon:L,mode:"bleed",tooltipProps:{content:"Back"}}),e[4]=c.backButton,e[5]=s,e[6]=i):i=e[6];let r;return e[7]!==l||e[8]!==i||e[9]!==n?(r=u.jsx(q,{actions:l,backButton:i,title:n}),e[7]=l,e[8]=i,e[9]=n,e[10]=r):r=e[10],r}function D(d){const e=k(33);let a,s,t,o;e[0]!==d?({index:a,pane:s,paneKey:t,...o}=d,e[0]=d,e[1]=a,e[2]=s,e[3]=t,e[4]=o):(a=e[1],s=e[2],t=e[3],o=e[4]);let n,c,l,i,r;if(e[5]!==s){const{child:C,component:E,menuItems:S,menuItemGroups:U,type:Y,...$}=s;c=C,n=E,i=S,l=U,r=$,e[5]=s,e[6]=n,e[7]=c,e[8]=l,e[9]=i,e[10]=r}else n=e[6],c=e[7],l=e[8],i=e[9],r=e[10];const[j,b]=H.useState(null),{title:I}=G(s),P=I===void 0?"":I,B=j==null?void 0:j.actionHandlers;let m;e[11]!==a||e[12]!==l||e[13]!==i||e[14]!==B||e[15]!==P?(m=u.jsx(W,{actionHandlers:B,index:a,menuItems:i,menuItemGroups:l,title:P}),e[11]=a,e[12]=l,e[13]=i,e[14]=B,e[15]=P,e[16]=m):m=e[16];let p;e[17]!==n||e[18]!==c||e[19]!==t||e[20]!==r||e[21]!==o?(p=R.isValidElementType(n)&&u.jsx(n,{...o,...r,ref:b,child:c,paneKey:t}),e[17]=n,e[18]=c,e[19]=t,e[20]=r,e[21]=o,e[22]=p):p=e[22];let x;e[23]!==n?(x=H.isValidElement(n)&&n,e[23]=n,e[24]=x):x=e[24];let f;e[25]!==p||e[26]!==x?(f=u.jsxs(Q,{children:[p,x]}),e[25]=p,e[26]=x,e[27]=f):f=e[27];let h;return e[28]!==t||e[29]!==o.isSelected||e[30]!==m||e[31]!==f?(h=u.jsxs(T,{id:t,minWidth:320,selected:o.isSelected,children:[m,f]}),e[28]=t,e[29]=o.isSelected,e[30]=m,e[31]=f,e[32]=h):h=e[32],h}export{D as default};
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
import{p as Ie,q as we,r as x,t as J,v as Y,w as Q,f as A,x as _e,s as pe,y as L,j as o,L as H,z as U,E as be,F as je,G as Se,H as fe,I as Ce,J as Re,K as ke,M as z,N as Te,O as G,Q as Ee,S as De,R as ze,l as Le,T as Me,U as Oe,k as Ne,V as Ve,W as Ae,X as he,Y as Be,Z as E,$ as B,a0 as W,a1 as K,a2 as N,a3 as me,a4 as We,a5 as q,a6 as k,a7 as te,B as V,a8 as xe,i as $e,a9 as Ge,P as Ke,g as Fe,o as He,aa as ne,ab as ae,ac as Ue,ad as qe,ae as re,af as X,ag as Je,ah as Ye,ai as Qe,aj as ye,ak as Xe,al as Ze,am as et,an as tt,ao as M,ap as nt,aq as at,ar as rt,as as st,at as ot}from"./sanity-550b6471.js";function it(){return Ie(function(e,n){var t,s=!1;e.subscribe(we(n,function(c){var f=t;t=c,s&&n.next([f,c]),s=!0}))})}const lt=[];function ct(e){const{children:n,flatIndex:t,index:s,params:c,payload:f,siblingIndex:i}=e,{navigate:l,navigateIntent:a,resolvePathFromState:r}=J(),d=Y(),{panes:u,expand:P}=Le(),h=x.useMemo(()=>(d==null?void 0:d.panes)||lt,[d==null?void 0:d.panes]),y=x.useMemo(()=>u==null?void 0:u[u.length-2],[u]),g=s-1,j=x.useCallback(m=>{const p=h[g]||[],I=p[i],C=m(p,I),T=[...h.slice(0,g),C,...h.slice(g+1)];return{...d||{},panes:T}},[g,h,d,i]),v=x.useCallback(m=>{const p=j(m);return setTimeout(()=>l(p),0),p},[j,l]),w=x.useCallback(m=>{const p=j((I,C)=>[...I.slice(0,i),{...C,params:m},...I.slice(i+1)]);return r(p)},[j,r,i]),S=x.useCallback(m=>{v((p,I)=>[...p.slice(0,i),{...I,payload:m},...p.slice(i+1)])},[v,i]),_=x.useCallback(m=>{v((p,I)=>[...p.slice(0,i),{...I,params:m},...p.slice(i+1)])},[v,i]),b=x.useCallback(m=>{let{id:p,parentRefPath:I,type:C,template:T}=m;l({panes:[...h.slice(0,g+1),[{id:p,params:{template:T.id,parentRefPath:Me(I),type:C},payload:T.params}]]})},[g,l,h]),R=x.useMemo(()=>({index:t,groupIndex:g,siblingIndex:i,payload:f,params:c,hasGroupSiblings:h[g]?h[g].length>1:!1,groupLength:h[g]?h[g].length:0,routerPanesState:h,ChildLink:Oe,BackLink:Ne,ReferenceChildLink:Ve,handleEditReference:b,ParameterizedLink:Ae,replaceCurrent:function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};v(()=>[{id:m.id||"",payload:m.payload,params:m.params||{}}])},closeCurrent:()=>{v((m,p)=>m.length>1?m.filter(I=>I!==p):m)},closeCurrentAndAfter:function(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&y&&P(y.element),l({panes:[...h.slice(0,g)]},{replace:!0})},duplicateCurrent:m=>{v((p,I)=>{const C={...I,payload:(m==null?void 0:m.payload)||I.payload,params:(m==null?void 0:m.params)||I.params};return[...p.slice(0,i),C,...p.slice(i)]})},setView:m=>{const p=he(c,"view");return _(m?{...p,view:m}:p)},setParams:_,setPayload:S,createPathWithParams:w,navigateIntent:a}),[t,g,i,f,c,h,b,_,S,w,a,v,y,l,P]);return o.jsx(Be.Provider,{value:R,children:n})}class D extends Error{constructor(n){let{message:t,context:s,helpId:c,cause:f}=n;super(t),this.context=s,this.helpId=c,this.cause=f}}const se=new WeakMap;function $(e){const n=se.get(e);if(n)return n;const t=rt();return se.set(e,t),t}const ut=e=>!!e&&typeof(e==null?void 0:e.then)=="function",dt=e=>Q(e)?typeof e.serialize=="function":!1,pt=e=>(n,t,s)=>{try{return e(n,t,s)}catch(c){throw c instanceof D?c:new D({message:typeof(c==null?void 0:c.message)=="string"?c.message:"",context:t,cause:c})}},ft=e=>function(){return e(...arguments).pipe(st(1),ot())};function ge(e){const n=pt(ft(e((t,s,c)=>{if(!t)throw new D({message:"Pane returned no child",context:s,helpId:"structure-item-returned-no-child"});return ut(t)||et(t)?tt(t).pipe(X(f=>n(f,s,c))):dt(t)?n(t.serialize(s),s,c):typeof t=="function"?n(t(s.id,s),s,c):M(t)})));return n}const oe=new WeakMap;function ve(e,n){const t=oe.get(e)||new Map;if(t){const f=t.get(n);if(f)return f}const s=e[n];if(typeof s!="function")throw new Error("Expected property `".concat(n,"` to be a function but got ").concat(typeof s," instead."));const c=s.bind(e);return t.set(n,c),oe.set(e,t),c}async function ht(e){const n=new Map,s=ge(a=>(r,d,u)=>{const P=r&&"".concat($(r),"-").concat(d.path.join("__")),h=P&&n.get(P);if(h)return h;const y=a(r,d,u);return P&&n.set(P,y),y}),c=[[{id:"__edit__".concat(e.params.id),params:{...he(e.params,["id"]),type:e.params.type},payload:e.payload}]];async function f(a){let{currentId:r,flatIndex:d,intent:u,params:P,parent:h,path:y,payload:g,unresolvedPane:j,levelIndex:v,structureContext:w}=a;var S;if(!j)return[];const{id:_,type:b,...R}=P,p=await ye(s(j,{id:r,splitIndex:0,parent:h,path:y,index:d,params:{},payload:void 0,structureContext:w},d));return p.type==="document"&&p.id===_?[{panes:[...y.slice(0,y.length-1).map(I=>[{id:I}]),[{id:_,params:R,payload:g}]],depthIndex:y.length,levelIndex:v}]:(S=p.canHandleIntent)!=null&&S.call(p,u,P,{pane:p,index:d})||p.type==="documentList"&&p.schemaTypeName===b&&p.options.filter==="_type == $type"?[{panes:[...y.map(I=>[{id:I}]),[{id:P.id,params:R,payload:g}]],depthIndex:y.length,levelIndex:v}]:p.type==="list"&&p.child&&p.items?(await Promise.all(p.items.map((I,C)=>I.type==="divider"?Promise.resolve([]):f({currentId:I._id||I.id,flatIndex:d+1,intent:u,paramLine truncated
|
||||
&:not(:last-child)::after {
|
||||
content: ' ➝ ';
|
||||
opacity: 0.5;
|
||||
}
|
||||
`])));function St(e){return e.replace(/\(\.\.\.\)\./g,`(...)
|
||||
.`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(new RegExp(" \\(https?:\\/\\/".concat(window.location.host),"g")," (")}function Ct(e){let{error:n}=e;if(!(n instanceof D))throw n;const{cause:t}=n,{t:s}=B(W),c=(t==null?void 0:t.stack)||n.stack,f=c&&!(t instanceof K)&&!n.message.includes("Module build failed:"),i=t instanceof K?t.path:[],l=t instanceof K&&t.helpId||n.helpId,a=x.useCallback(()=>{window.location.reload()},[]);return o.jsx(N,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:o.jsxs(me,{children:[o.jsx(We,{as:"h2",children:s("structure-error.header.text")}),o.jsxs(N,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[i.length>0&&o.jsxs(q,{space:2,children:[o.jsx(k,{size:1,weight:"medium",children:s("structure-error.structure-path.label")}),o.jsx(te,{children:i.slice(1).map((r,d)=>o.jsx(jt,{children:r},"".concat(r,"-").concat(d)))})]}),o.jsxs(q,{marginTop:4,space:2,children:[o.jsx(k,{size:1,weight:"medium",children:s("structure-error.error.label")}),o.jsx(te,{children:f?St(c):n.message})]}),l&&o.jsx(V,{marginTop:4,children:o.jsx(k,{children:o.jsx("a",{href:xe(l),rel:"noopener noreferrer",target:"_blank",children:s("structure-error.docs-link.text")})})}),o.jsx(V,{marginTop:4,children:o.jsx($e,{text:s("structure-error.reload-button.text"),icon:Ge,tone:"primary",onClick:a})})]})]})})}function Rt(e){const{isSelected:n,pane:t,paneKey:s}=e,c=Q(t)&&t.type||null,{t:f}=B(W);return o.jsxs(Ke,{id:s,selected:n,children:[o.jsx(Fe,{title:f("panes.unknown-pane-type.title")}),o.jsx(He,{children:o.jsx(V,{padding:4,children:typeof c=="string"?o.jsx(k,{as:"p",muted:!0,children:o.jsx(ne,{t:f,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:c}})}):o.jsx(k,{as:"p",muted:!0,children:o.jsx(ne,{t:f,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})})]})}const kt={component:x.lazy(()=>L(()=>import("./index-CvUNfby3-82a98b00.js"),["static/index-CvUNfby3-82a98b00.js","static/sanity-550b6471.js"])),document:x.lazy(()=>L(()=>import("./pane-4z62EsJc-ae2fa9b8.js"),["static/pane-4z62EsJc-ae2fa9b8.js","static/sanity-550b6471.js"])),documentList:x.lazy(()=>L(()=>import("./pane-BmmpvOqL-30a9bb0c.js"),["static/pane-BmmpvOqL-30a9bb0c.js","static/sanity-550b6471.js"])),list:x.lazy(()=>L(()=>import("./index-Dkzo_-Bz-08f8f197.js"),["static/index-Dkzo_-Bz-08f8f197.js","static/sanity-550b6471.js"]))},Tt=x.memo(function(n){const{active:t,childItemId:s,groupIndex:c,index:f,itemId:i,pane:l,paneKey:a,params:r,payload:d,path:u,selected:P,siblingIndex:h}=n,y=kt[l.type]||Rt;return o.jsx(ct,{flatIndex:f,index:c,params:r,payload:d,siblingIndex:h,children:o.jsx(x.Suspense,{fallback:o.jsx(H,{paneKey:a,path:u,selected:P}),children:o.jsx(y,{childItemId:s||"",index:f,itemId:i,isActive:t,isSelected:P,paneKey:a,pane:l})})})},(e,n)=>{let{params:t={},payload:s=null,...c}=e,{params:f={},payload:i=null,...l}=n;if(!U(t,f)||!U(s,i))return!1;const a=new Set([...Object.keys(c),...Object.keys(l)]);for(const r of a)if(c[r]!==l[r])return!1;return!0});function Et(){const{t:e}=B(W);return o.jsx(N,{height:"fill",children:o.jsx(ae,{align:"center",height:"fill",justify:"center",padding:4,sizing:"border",children:o.jsx(me,{width:0,children:o.jsx(N,{padding:4,radius:2,shadow:1,tone:"caution",children:o.jsxs(ae,{children:[o.jsx(V,{children:o.jsx(k,{size:1,children:o.jsx(Ue,{})})}),o.jsxs(q,{flex:1,marginLeft:3,space:3,children:[o.jsx(k,{as:"h1",size:1,weight:"medium",children:e("no-document-types-screen.title")}),o.jsx(k,{as:"p",muted:!0,size:1,children:e("no-document-types-screen.subtitle")}),o.jsx(k,{as:"p",muted:!0,size:1,children:o.jsx("a",{href:"https://www.sanity.io/docs/create-a-schema-and-configure-sanity-studio",target:"_blank",rel:"noreferrer",children:e("no-document-types-screen.link-text")})})]})]})})})})})}const Dt=e=>{const{documentId:n,documentType:t}=e,s=Xe(n,t),c=fe(),{t:f}=B(W),i=!(s!=null&&s.published)&&!(s!=null&&s.draft),l=(s==null?void 0:s.draft)||(s==null?void 0:s.published),a=c.get(t),{value:r,isLoading:d}=Ze({enabled:!0,schemaType:a,value:l}),u=i?f("browser-document-title.new-document",{schemaType:(a==null?void 0:a.title)||(a==null?void 0:a.name)}):(r==null?void 0:r.title)||f("browser-document-title.untitled-document"),P=s.ready&&!d,h=Pe(u);return x.useEffect(()=>{P&&(document.title=h)},[u,P,h]),null},F=e=>{const{title:n}=e,t=Pe(n);return x.useEffect(()=>{document.title=t},[t,n]),null},zt=e=>{const{resolvedPanes:n}=e;if(!(n!=null&&n.length))return null;const t=n[n.length-1];return Mt(t)?o.jsx(F,{}):Lt(t)?t!=null&&t.title?o.jsx(F,{title:t.title}):o.jsx(Dt,{documentId:t.options.id,documentType:t.options.type}):o.jsx(F,{title:t==null?void 0:t.title})};function Pe(e){const n=A().structureContext.title;return[e,n].filter(t=>t).join(" | ")}function Lt(e){return e!==z&&e.type==="document"}function Mt(e){return e===z}var ue=Object.freeze,Ot=Object.defineProperty,Nt=(e,n)=>ue(Ot(e,"raw",{value:ue(n||e.slice())})),de;const Vt=pe(be)(de
Line truncated
|
||||
min-height: 100%;
|
||||
min-width: 320px;
|
||||
`]))),At=je("mod+s"),Bt=x.memo(function(n){let{onPaneChange:t}=n;var s;const{push:c}=Se(),f=fe(),{layoutCollapsed:i,setLayoutCollapsed:l}=A(),{paneDataItems:a,resolvedPanes:r}=vt(),d=Y(x.useCallback(v=>typeof v.intent=="string",[])),{sanity:{media:u}}=Ce(),[P,h]=x.useState(null),y=x.useCallback(()=>l(!0),[l]),g=x.useCallback(()=>l(!1),[l]);return x.useEffect(()=>{r.length&&t(r)},[t,r]),x.useEffect(()=>{const v=w=>{At(w)&&(w.preventDefault(),c({closable:!0,id:"auto-save-message",status:"info",title:"Your work is automatically saved!",duration:4e3}))};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[c]),((s=f._original)==null?void 0:s.types.some(Re))?o.jsxs(ke,{element:P||null,children:[o.jsxs(Vt,{flex:1,height:i?void 0:"fill",minWidth:u[1],onCollapse:y,onExpand:g,children:[a.map(v=>{let{active:w,childItemId:S,groupIndex:_,itemId:b,key:R,pane:m,index:p,params:I,path:C,payload:T,siblingIndex:Z,selected:ee}=v;return o.jsx(x.Fragment,{children:m===z?o.jsx(H,{paneKey:R,path:C,selected:ee}):o.jsx(Tt,{active:w,groupIndex:_,index:p,pane:m,childItemId:S,itemId:b,paneKey:R,params:I,payload:T,path:C,selected:ee,siblingIndex:Z})},"".concat(m===z?"loading":m.type,"-").concat(p))}),a.length<=1&&d&&o.jsx(H,{paneKey:"intent-resolver"})]}),o.jsx(zt,{resolvedPanes:r}),o.jsx("div",{"data-portal":"",ref:h})]}):o.jsx(Et,{})});function $t(e){let{tool:{options:n}}=e;const{unstable_sources:t}=Te(),[s]=t,{source:c,defaultDocumentNode:f,structure:i}=n||{};x.useEffect(()=>(G([]),()=>G([])),[]);const[{error:l},a]=x.useState({error:null});return l?o.jsx(Ct,{error:l}):o.jsx(Ee,{onCatch:a,children:o.jsx(De,{name:c||s.name,children:o.jsxs(ze,{defaultDocumentNode:f,structure:i,children:[o.jsx(Bt,{onPaneChange:G}),o.jsx(wt,{})]})})})}export{$t as default};
|
||||
-3
@@ -1,3 +0,0 @@
|
||||
import{s as j,B as h,r as c,u as v,j as n,P as _,c as B,e as I,f as E,g as H,h as b,i as k,k as y,A as C}from"./sanity-550b6471.js";var u=Object.freeze,g=Object.defineProperty,w=(e,t)=>u(g(e,"raw",{value:u(t||e.slice())})),d;const A=j(h)(d||(d=w([`
|
||||
position: relative;
|
||||
`])));function R(e){const{children:t}=e,{collapsed:s}=I();return n.jsx(A,{hidden:s,height:"fill",overflow:"auto",children:t})}function S(e){const{actionHandlers:t,index:s,menuItems:a,menuItemGroups:r,title:i}=e,{features:o}=E();return!(a!=null&&a.length)&&!i?null:n.jsx(H,{actions:n.jsx(b,{menuItems:a,menuItemGroups:r,actionHandlers:t}),backButton:o.backButton&&s>0&&n.jsx(k,{as:y,"data-as":"a",icon:C,mode:"bleed",tooltipProps:{content:"Back"}}),title:i})}function z(e){const{index:t,pane:s,paneKey:a,...r}=e,{child:i,component:o,menuItems:p,menuItemGroups:m,type:T,...f}=s,[l,x]=c.useState(null),{title:P=""}=v(s);return n.jsxs(_,{id:a,minWidth:320,selected:r.isSelected,children:[n.jsx(S,{actionHandlers:l==null?void 0:l.actionHandlers,index:t,menuItems:p,menuItemGroups:m,title:P}),n.jsxs(R,{children:[B.isValidElementType(o)&&c.createElement(o,{...r,...f,ref:x,child:i,paneKey:a}),c.isValidElement(o)&&o]})]})}export{z as default};
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
import{s as P,u as b,j as n,P as g,_ as w,l as B,m as L,r as I,B as k,n as A,o as C,C as T,f as S,e as D,g as G,h as H,i as O,k as W,A as E}from"./sanity-550b6471.js";var f=Object.freeze,z=Object.defineProperty,F=(o,s)=>f(z(o,"raw",{value:f(s||o.slice())})),y;const R=P.hr(y||(y=F([`
|
||||
background-color: var(--card-border-color);
|
||||
height: 1px;
|
||||
margin: 0;
|
||||
border: none;
|
||||
`])));function K(o){const{childItemId:s,items:t,isActive:i,layout:c,showIcons:r,title:l}=o,{collapsed:u}=B(),d=L(t==null?void 0:t.filter(e=>e.type!=="divider")),m=I.useCallback(e=>{var a;return((a=t==null?void 0:t.find((p,x)=>x===e))==null?void 0:a.type)==="divider"},[t]),h=I.useCallback(e=>{var a;const p=(a=e.displayOptions)==null?void 0:a.showIcon;return typeof p<"u"?p!==!1:r!==!1},[r]),v=I.useCallback((e,a)=>{const{virtualIndex:p}=a;if(e.type==="divider")return n.jsx(k,{marginBottom:1,children:n.jsx(R,{})},"divider-".concat(p));const x=!i&&s===e.id,_=i&&s===e.id,j=e._id&&e.schemaType?{_id:e._id,_type:e.schemaType.name,title:e.title}:void 0;return n.jsx(A,{icon:h(e)?e.icon:!1,id:e.id,layout:c,marginBottom:1,pressed:x,schemaType:e.schemaType,selected:_,title:d(e).title,value:j},e.id)},[s,d,i,c,h]);return n.jsx(C,{overflow:u?"hidden":"auto",children:t&&t.length>0&&n.jsx(T,{activeItemDataAttr:"data-hovered",ariaLabel:l,canReceiveFocus:!0,getItemDisabled:m,itemHeight:51,items:t,onlyShowSelectionWhenActive:!0,paddingBottom:1,paddingX:3,renderItem:v,wrapAround:!1})})}const M=o=>{let{index:s,menuItems:t,menuItemGroups:i,title:c}=o;const{features:r}=S(),{collapsed:l,isLast:u}=D(),d=u&&!l?-1:0;return n.jsx(G,{actions:n.jsx(H,{menuItems:t,menuItemGroups:i}),backButton:r.backButton&&s>0&&n.jsx(O,{as:W,"data-as":"a",icon:E,mode:"bleed",tooltipProps:{content:"Back"}}),tabIndex:d,title:c})};function X(o){const{childItemId:s,index:t,isActive:i,isSelected:c,pane:r,paneKey:l}=o,{defaultLayout:u,displayOptions:d,items:m,menuItems:h,menuItemGroups:v}=r,e=(d==null?void 0:d.showIcons)!==!1,{title:a}=b(r);return n.jsxs(g,{currentMaxWidth:350,"data-testid":"structure-tool-list-pane","data-ui":"ListPane",id:l,maxWidth:640,minWidth:320,selected:c,children:[w,n.jsx(M,{index:t,menuItems:h,menuItemGroups:v,title:a}),n.jsx(K,{childItemId:s,isActive:i,items:m,layout:u,showIcons:e,title:a},l)]})}export{X as default};
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import{l as T,c as L,am as A,ar as S,j as x,Y as W,F as $,as as C,at as D,i as G,ao as H,a9 as F,a0 as E,ap as R,Q as q,au as K,W as M,aq as Q,V as U}from"./sanity-D34DDzzj.js";const V=T.hr`
|
||||
background-color: var(--card-border-color);
|
||||
height: 1px;
|
||||
margin: 0;
|
||||
border: none;
|
||||
`;function X(v){const e=L(20),{childItemId:o,items:t,isActive:d,layout:u,showIcons:i,title:r}=v,{collapsed:j}=$();let c;e[0]!==t?(c=t==null?void 0:t.filter(Y),e[0]=t,e[1]=c):c=e[1];const s=C(c);let n;e[2]!==t?(n=a=>{var B;return((B=t==null?void 0:t.find((P,g)=>g===a))==null?void 0:B.type)==="divider"},e[2]=t,e[3]=n):n=e[3];const l=n;let y;e[4]!==i?(y=a=>{var P;const B=(P=a.displayOptions)==null?void 0:P.showIcon;return typeof B<"u"?B!==!1:i!==!1},e[4]=i,e[5]=y):y=e[5];const I=y;let p;e[6]!==o||e[7]!==s||e[8]!==d||e[9]!==u||e[10]!==I?(p=(a,B)=>{const{virtualIndex:P}=B;if(a.type==="divider")return x.jsx(q,{marginBottom:1,children:x.jsx(V,{})},`divider-${P}`);const g=!d&&o===a.id,w=d&&o===a.id,k=a._id&&a.schemaType?{_id:a._id,_type:a.schemaType.name,title:a.title}:void 0;return x.jsx(K,{icon:I(a)?a.icon:!1,id:a.id,layout:u,marginBottom:1,pressed:g,schemaType:a.schemaType,selected:w,title:s(a).title,value:k},a.id)},e[6]=o,e[7]=s,e[8]=d,e[9]=u,e[10]=I,e[11]=p):p=e[11];const m=p,f=j?"hidden":"auto";let h;e[12]!==l||e[13]!==t||e[14]!==m||e[15]!==r?(h=t&&t.length>0&&x.jsx(D,{activeItemDataAttr:"data-hovered",ariaLabel:r,canReceiveFocus:!0,getItemDisabled:l,itemHeight:51,items:t,onlyShowSelectionWhenActive:!0,paddingBottom:1,paddingX:3,renderItem:m,wrapAround:!1}),e[12]=l,e[13]=t,e[14]=m,e[15]=r,e[16]=h):h=e[16];let b;return e[17]!==f||e[18]!==h?(b=x.jsx(M,{overflow:f,children:h}),e[17]=f,e[18]=h,e[19]=b):b=e[19],b}function Y(v){return v.type!=="divider"}const z=v=>{const e=L(11),{index:o,menuItems:t,menuItemGroups:d,title:u}=v,{features:i}=G(),{collapsed:r,isLast:j}=H(),c=j&&!r?-1:0;let s;e[0]!==d||e[1]!==t?(s=x.jsx(Q,{menuItems:t,menuItemGroups:d}),e[0]=d,e[1]=t,e[2]=s):s=e[2];let n;e[3]!==i.backButton||e[4]!==o?(n=i.backButton&&o>0&&x.jsx(F,{as:E,"data-as":"a",icon:R,mode:"bleed",tooltipProps:{content:"Back"}}),e[3]=i.backButton,e[4]=o,e[5]=n):n=e[5];let l;return e[6]!==s||e[7]!==n||e[8]!==c||e[9]!==u?(l=x.jsx(U,{actions:s,backButton:n,tabIndex:c,title:u}),e[6]=s,e[7]=n,e[8]=c,e[9]=u,e[10]=l):l=e[10],l};function N(v){const e=L(21),{childItemId:o,index:t,isActive:d,isSelected:u,pane:i,paneKey:r}=v,{defaultLayout:j,displayOptions:c,items:s,menuItems:n,menuItemGroups:l}=i,y=(c==null?void 0:c.showIcons)!==!1,{title:I}=A(i);let p;e[0]!==i.source?(p=S,e[0]=i.source,e[1]=p):p=e[1];let m;e[2]!==t||e[3]!==l||e[4]!==n||e[5]!==I?(m=x.jsx(z,{index:t,menuItems:n,menuItemGroups:l,title:I}),e[2]=t,e[3]=l,e[4]=n,e[5]=I,e[6]=m):m=e[6];let f;e[7]!==o||e[8]!==j||e[9]!==d||e[10]!==s||e[11]!==r||e[12]!==y||e[13]!==I?(f=x.jsx(X,{childItemId:o,isActive:d,items:s,layout:j,showIcons:y,title:I},r),e[7]=o,e[8]=j,e[9]=d,e[10]=s,e[11]=r,e[12]=y,e[13]=I,e[14]=f):f=e[14];let h;return e[15]!==u||e[16]!==r||e[17]!==p||e[18]!==m||e[19]!==f?(h=x.jsxs(W,{currentMaxWidth:350,"data-testid":"structure-tool-list-pane","data-ui":"ListPane",id:r,maxWidth:640,minWidth:320,selected:u,children:[p,m,f]}),e[15]=u,e[16]=r,e[17]=p,e[18]=m,e[19]=f,e[20]=h):h=e[20],h}export{N as default};
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/index-B07hjxo-.js","static/sanity-D34DDzzj.js","static/index2-BxbGLUws.js"])))=>i.map(i=>d[i]);
|
||||
import{o as Ne,f as Oe,r as v,c as E,u as me,h as he,i as ae,k as Me,l as $e,_ as Z,m as pe,n as Ae,p as Ve,q as Ee,s as Be,t as We,j as p,L as ye,v as Y,w as Ke,x as xe,y as ge,z as se,A as oe,P as He,B as Fe,E as Ge,D as Ue,F as Je,G as Ye,I as Re,J as G,R as qe,K as Qe,M as ke,N as de,S as fe,T as N,O as Pe,Q as ne,U as Te,V as Xe,W as Ze,X as we,Y as et,Z as tt,$ as nt,a0 as rt,a1 as at,a2 as st,a3 as ot,a4 as it,a5 as _e,a6 as Ie,a7 as lt,a8 as ct,H as dt,a9 as ut,aa as pt,C as re,a as Ce,ab as ft,ac as je,ad as mt,ae as ht,af as yt,ag as xt,ah as ee,ai as gt,aj as It,ak as Pt,al as wt}from"./sanity-D34DDzzj.js";function _t(){return Ne(function(t,e){var a,r=!1;t.subscribe(Oe(e,function(n){var i=a;a=n,r&&e.next([i,n]),r=!0}))})}const jt=[];function bt(t){const e=E(60),{children:a,flatIndex:r,index:n,params:i,payload:o,siblingIndex:s}=t,{navigate:l,navigateIntent:c,resolvePathFromState:d}=me(),u=he(),{panes:y,expand:g}=Je();let h;h=(u==null?void 0:u.panes)||jt;const f=h;let I;I=y==null?void 0:y[y.length-2];const P=I,m=n-1;let x;e[0]!==m||e[1]!==f||e[2]!==u||e[3]!==s?(x=j=>{const S=f[m]||[],$=S[s],A=j(S,$),X=[...f.slice(0,m),A,...f.slice(m+1)];return{...u||{},panes:X}},e[0]=m,e[1]=f,e[2]=u,e[3]=s,e[4]=x):x=e[4];const w=x;let _;e[5]!==w||e[6]!==l?(_=j=>{const S=w(j);return setTimeout(()=>l(S),0),S},e[5]=w,e[6]=l,e[7]=_):_=e[7];const b=_;let R;e[8]!==w||e[9]!==d||e[10]!==s?(R=j=>{const S=w(($,A)=>[...$.slice(0,s),{...A,params:j},...$.slice(s+1)]);return d(S)},e[8]=w,e[9]=d,e[10]=s,e[11]=R):R=e[11];const M=R;let T;e[12]!==b||e[13]!==s?(T=j=>{b((S,$)=>[...S.slice(0,s),{...$,payload:j},...S.slice(s+1)])},e[12]=b,e[13]=s,e[14]=T):T=e[14];const L=T;let C;e[15]!==b||e[16]!==s?(C=j=>{b((S,$)=>[...S.slice(0,s),{...$,params:j},...S.slice(s+1)])},e[15]=b,e[16]=s,e[17]=C):C=e[17];const k=C;let z;e[18]!==m||e[19]!==l||e[20]!==f?(z=j=>{const{id:S,parentRefPath:$,type:A,template:X}=j;l({panes:[...f.slice(0,m+1),[{id:S,params:{template:X.id,parentRefPath:nt($),type:A},payload:X.params}]]})},e[18]=m,e[19]=l,e[20]=f,e[21]=z):z=e[21];const O=z;let J;const D=f[m]?f[m].length>1:!1,V=f[m]?f[m].length:0,le=r?rt:void 0;let B,W;e[22]!==b?(B=j=>{const S=j===void 0?{}:j;b(()=>[{id:S.id||"",payload:S.payload,params:S.params||{}}])},W=()=>{b(St)},e[22]=b,e[23]=B,e[24]=W):(B=e[23],W=e[24]);let K;e[25]!==g||e[26]!==m||e[27]!==P||e[28]!==l||e[29]!==f?(K=j=>{(j===void 0||j)&&P&&g(P.element),l({panes:[...f.slice(0,m)]})},e[25]=g,e[26]=m,e[27]=P,e[28]=l,e[29]=f,e[30]=K):K=e[30];let H;e[31]!==b||e[32]!==s?(H=j=>{b((S,$)=>{const A={...$,payload:(j==null?void 0:j.payload)||$.payload,params:(j==null?void 0:j.params)||$.params};return[...S.slice(0,s),A,...S.slice(s)]})},e[31]=b,e[32]=s,e[33]=H):H=e[33];let F;e[34]!==i||e[35]!==k?(F=j=>{const S=Re(i,"view");return k(j?{...S,view:j}:S)},e[34]=i,e[35]=k,e[36]=F):F=e[36];let q;e[37]!==M||e[38]!==r||e[39]!==m||e[40]!==O||e[41]!==c||e[42]!==i||e[43]!==o||e[44]!==f||e[45]!==k||e[46]!==L||e[47]!==s||e[48]!==V||e[49]!==le||e[50]!==B||e[51]!==W||e[52]!==K||e[53]!==H||e[54]!==F||e[55]!==D?(q={index:r,groupIndex:m,siblingIndex:s,payload:o,params:i,hasGroupSiblings:D,groupLength:V,routerPanesState:f,ChildLink:at,BackLink:le,ReferenceChildLink:st,handleEditReference:O,ParameterizedLink:ot,replaceCurrent:B,closeCurrent:W,closeCurrentAndAfter:K,duplicateCurrent:H,setView:F,setParams:k,setPayload:L,createPathWithParams:M,navigateIntent:c},e[37]=M,e[38]=r,e[39]=m,e[40]=O,e[41]=c,e[42]=i,e[43]=o,e[44]=f,e[45]=k,e[46]=L,e[47]=s,e[48]=V,e[49]=le,e[50]=B,e[51]=W,e[52]=K,e[53]=H,e[54]=F,e[55]=D,e[56]=q):q=e[56],J=q;const ce=J;let Q;return e[57]!==a||e[58]!==ce?(Q=p.jsx(Ye.Provider,{value:ce,children:a}),e[57]=a,e[58]=ce,e[59]=Q):Q=e[59],Q}function St(t,e){return t.length>1?t.filter(a=>a!==e):t}class U extends Error{constructor({message:e,context:a,helpId:r,cause:n}){super(e),this.name="PaneResolutionError",this.context=a,this.helpId=r,this.cause=n}}const be=new WeakMap;function ie(t){const e=be.get(t);if(e)return e;const a=It();return be.set(t,a),a}const vt=t=>!!t&&typeof(t==null?void 0:t.then)=="function",$t=t=>ge(t)?typeof t.serialize=="function":!1,Et=t=>(e,a,r)=>{try{return t(e,a,r)}catch(n){throw n instanceof U?n:new U({message:typeof(n==null?void 0:n.message)=="string"?n.message:"",context:a,cause:n})}},Rt=t=>(...e)=>t(...e).pipe(Pt(1),wt());function De(t){const e=Et(Rt(t((a,r,n)=>{if(!a)throw new U({message:"Pane returned no child",context:r,helpId:"structure-item-returned-no-child"});return vt(a)||yt(a)?xt(a).pipe(Ie(i=>e(i,r,n))):$t(a)?e(a.serialize(r),r,n):typeof a=="function"?e(a(r.id,r),r,n):ee(a)})));return e}const Se=new WeakMap;function Le(t,e){const a=Se.get(t)||new Map;if(a){const i=a.get(e);if(i)return i}const r=t[e];if(typeof r!="function")throw new Error(`Expected property \`${e}\` to be a function but got ${typeof r} instead.`);const n=r.bind(t);return a.set(e,n),Se.set(t,a),n}async function kt(t){const e=new Map,a=De(o=>(s,l,c)=>{const d=s&&`${ie(s)}-${l.path.join("__")}`,u=d&&e.get(d);if(u)retuLine truncated
|
||||
&:not(:last-child)::after {
|
||||
content: ' ➝ ';
|
||||
opacity: 0.5;
|
||||
}
|
||||
`;function Gt(t){return t.replace(/\(\.\.\.\)\./g,`(...)
|
||||
.`).replace(/__WEBPACK_IMPORTED_MODULE_\d+_+/g,"").replace(/___default\./g,".").replace(new RegExp(` \\(https?:\\/\\/${window.location.host}`,"g")," (")}function Ut(t){const e=E(37),{error:a}=t;if(!(a instanceof U))throw a;const{cause:r}=a,{t:n}=se(oe),i=(r==null?void 0:r.stack)||a.stack,o=i&&!(r instanceof de)&&!a.message.includes("Module build failed:");let s;e[0]!==r?(s=r instanceof de?r.path:[],e[0]=r,e[1]=s):s=e[1];const l=s,c=r instanceof de&&r.helpId||a.helpId,d=Yt;let u;e[2]!==n?(u=n("structure-error.header.text"),e[2]=n,e[3]=u):u=e[3];let y;e[4]!==u?(y=p.jsx(dt,{as:"h2",children:u}),e[4]=u,e[5]=y):y=e[5];let g;e[6]!==l||e[7]!==n?(g=l.length>0&&p.jsxs(fe,{space:2,children:[p.jsx(N,{size:1,weight:"medium",children:n("structure-error.structure-path.label")}),p.jsx(Pe,{children:l.slice(1).map(Jt)})]}),e[6]=l,e[7]=n,e[8]=g):g=e[8];let h;e[9]!==n?(h=n("structure-error.error.label"),e[9]=n,e[10]=h):h=e[10];let f;e[11]!==h?(f=p.jsx(N,{size:1,weight:"medium",children:h}),e[11]=h,e[12]=f):f=e[12];let I;e[13]!==a.message||e[14]!==o||e[15]!==i?(I=o?Gt(i):a.message,e[13]=a.message,e[14]=o,e[15]=i,e[16]=I):I=e[16];let P;e[17]!==I?(P=p.jsx(Pe,{children:I}),e[17]=I,e[18]=P):P=e[18];let m;e[19]!==f||e[20]!==P?(m=p.jsxs(fe,{marginTop:4,space:2,children:[f,P]}),e[19]=f,e[20]=P,e[21]=m):m=e[21];let x;e[22]!==c||e[23]!==n?(x=c&&p.jsx(ne,{marginTop:4,children:p.jsx(N,{children:p.jsx("a",{href:Te(c),rel:"noopener noreferrer",target:"_blank",children:n("structure-error.docs-link.text")})})}),e[22]=c,e[23]=n,e[24]=x):x=e[24];let w;e[25]!==n?(w=n("structure-error.reload-button.text"),e[25]=n,e[26]=w):w=e[26];let _;e[27]!==w?(_=p.jsx(ne,{marginTop:4,children:p.jsx(ut,{text:w,icon:pt,tone:"primary",onClick:d})}),e[27]=w,e[28]=_):_=e[28];let b;e[29]!==x||e[30]!==_||e[31]!==g||e[32]!==m?(b=p.jsxs(re,{marginTop:4,padding:4,radius:2,overflow:"auto",shadow:1,tone:"inherit",children:[g,m,x,_]}),e[29]=x,e[30]=_,e[31]=g,e[32]=m,e[33]=b):b=e[33];let R;return e[34]!==b||e[35]!==y?(R=p.jsx(re,{height:"fill",overflow:"auto",padding:4,sizing:"border",tone:"critical",children:p.jsxs(Ce,{children:[y,b]})}),e[34]=b,e[35]=y,e[36]=R):R=e[36],R}function Jt(t,e){return p.jsx(Ft,{children:t},`${t}-${e}`)}function Yt(){window.location.reload()}function qt(t){const e=E(14),{isSelected:a,pane:r,paneKey:n}=t;let i;e[0]!==r?(i=ge(r)&&r.type||null,e[0]=r,e[1]=i):i=e[1];const o=i,{t:s}=se(oe);let l;e[2]!==s?(l=s("panes.unknown-pane-type.title"),e[2]=s,e[3]=l):l=e[3];let c;e[4]!==l?(c=p.jsx(Xe,{title:l}),e[4]=l,e[5]=c):c=e[5];let d;e[6]!==s||e[7]!==o?(d=p.jsx(Ze,{children:p.jsx(ne,{padding:4,children:typeof o=="string"?p.jsx(N,{as:"p",muted:!0,children:p.jsx(we,{t:s,i18nKey:"panes.unknown-pane-type.unknown-type.text",values:{type:o}})}):p.jsx(N,{as:"p",muted:!0,children:p.jsx(we,{t:s,i18nKey:"panes.unknown-pane-type.missing-type.text"})})})}),e[6]=s,e[7]=o,e[8]=d):d=e[8];let u;return e[9]!==a||e[10]!==n||e[11]!==c||e[12]!==d?(u=p.jsxs(et,{id:n,selected:a,children:[c,d]}),e[9]=a,e[10]=n,e[11]=c,e[12]=d,e[13]=u):u=e[13],u}const Qt={component:v.lazy(()=>Z(()=>import("./index-B07hjxo-.js"),__vite__mapDeps([0,1]))),document:v.lazy(()=>Z(()=>import("./sanity-D34DDzzj.js").then(t=>t.av),[]).then(function(t){return t.pane})),documentList:v.lazy(()=>Z(()=>import("./sanity-D34DDzzj.js").then(t=>t.av),[]).then(function(t){return t.pane$1})),list:v.lazy(()=>Z(()=>import("./index2-BxbGLUws.js"),__vite__mapDeps([2,1])))},Xt=v.memo(function(t){const e=E(23),{active:a,childItemId:r,groupIndex:n,index:i,itemId:o,pane:s,paneKey:l,params:c,payload:d,path:u,selected:y,siblingIndex:g}=t,h=Qt[s.type]||qt;let f;e[0]!==l||e[1]!==u||e[2]!==y?(f=p.jsx(ye,{paneKey:l,path:u,selected:y}),e[0]=l,e[1]=u,e[2]=y,e[3]=f):f=e[3];const I=r||"";let P;e[4]!==h||e[5]!==a||e[6]!==i||e[7]!==o||e[8]!==s||e[9]!==l||e[10]!==y||e[11]!==I?(P=p.jsx(h,{childItemId:I,index:i,itemId:o,isActive:a,isSelected:y,paneKey:l,pane:s}),e[4]=h,e[5]=a,e[6]=i,e[7]=o,e[8]=s,e[9]=l,e[10]=y,e[11]=I,e[12]=P):P=e[12];let m;e[13]!==f||e[14]!==P?(m=p.jsx(v.Suspense,{fallback:f,children:P}),e[13]=f,e[14]=P,e[15]=m):m=e[15];let x;return e[16]!==n||e[17]!==i||e[18]!==c||e[19]!==d||e[20]!==g||e[21]!==m?(x=p.jsx(bt,{flatIndex:i,index:n,params:c,payload:d,siblingIndex:g,children:m}),e[16]=n,e[17]=i,e[18]=c,e[19]=d,e[20]=g,e[21]=m,e[22]=x):x=e[22],x},({params:t={},payload:e=null,...a},{params:r={},payload:n=null,...i})=>{if(!pe(t,r)||!pe(e,n))return!1;const o=new Set([...Object.keys(a),...Object.keys(i)]);for(const s of o)if(a[s]!==i[s])return!1;return!0});function Zt(){const t=E(17),{t:e}=se(oe);let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a=p.jsx(ne,{children:p.jsx(N,{size:1,children:p.jsx(ft,{})})}),t[0]=a):a=t[0];let r;t[1]!==e?(r=e("no-document-types-screen.title"),t[1]=e,t[2]=r):r=t[2];let n;t[3]!==r?(n=p.jsx(N,{as:"h1",size:1,weight:"medium",children:r}),t[3]=r,t[4]=n):n=t[4];let i;t[5]!==e?(i=e("no-document-types-screen.subtitle"),t[5]=e,t[6]=i):i=t[6];let o;t[7]!==i?(o=p.jsx(N,{as:"p",muted:!0,size:1,childre
Line truncated
|
||||
min-height: 100%;
|
||||
min-width: 320px;
|
||||
`,on=Ae("mod+s"),ln=v.memo(function(t){var J;const e=E(31),{onPaneChange:a}=t,{push:r}=Ve(),n=Ee(),{layoutCollapsed:i,setLayoutCollapsed:o}=ae(),{paneDataItems:s,resolvedPanes:l}=Ot(),c=he(cn),{sanity:d}=Be(),{media:u}=d,[y,g]=v.useState(null);let h;e[0]!==o?(h=()=>o(!0),e[0]=o,e[1]=h):h=e[1];const f=h;let I;e[2]!==o?(I=()=>o(!1),e[2]=o,e[3]=I):I=e[3];const P=I;let m,x;e[4]!==a||e[5]!==l?(m=()=>{l.length&&a(l)},x=[a,l],e[4]=a,e[5]=l,e[6]=m,e[7]=x):(m=e[6],x=e[7]),v.useEffect(m,x);let w,_;if(e[8]!==r?(w=()=>{const D=V=>{on(V)&&(V.preventDefault(),r({closable:!0,id:"auto-save-message",status:"info",title:"Your work is automatically saved!",duration:4e3}))};return window.addEventListener("keydown",D),()=>window.removeEventListener("keydown",D)},_=[r],e[8]=r,e[9]=w,e[10]=_):(w=e[9],_=e[10]),v.useEffect(w,_),!((J=n._original)!=null&&J.types.some(We))){let D;return e[11]===Symbol.for("react.memo_cache_sentinel")?(D=p.jsx(Zt,{}),e[11]=D):D=e[11],D}const b=y||null,R=i?void 0:"fill",M=u[1];let T;e[12]!==s?(T=s.map(dn),e[12]=s,e[13]=T):T=e[13];let L;e[14]!==c||e[15]!==s.length?(L=s.length<=1&&c&&p.jsx(ye,{paneKey:"intent-resolver"}),e[14]=c,e[15]=s.length,e[16]=L):L=e[16];let C;e[17]!==f||e[18]!==P||e[19]!==M||e[20]!==T||e[21]!==L||e[22]!==R?(C=p.jsxs(sn,{flex:1,height:R,minWidth:M,onCollapse:f,onExpand:P,children:[T,L]}),e[17]=f,e[18]=P,e[19]=M,e[20]=T,e[21]=L,e[22]=R,e[23]=C):C=e[23];let k;e[24]!==l?(k=p.jsx(tn,{resolvedPanes:l}),e[24]=l,e[25]=k):k=e[25];let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=p.jsx("div",{"data-portal":"",ref:g}),e[26]=z):z=e[26];let O;return e[27]!==C||e[28]!==k||e[29]!==b?(O=p.jsxs(He,{element:b,children:[C,k,z]}),e[27]=C,e[28]=k,e[29]=b,e[30]=O):O=e[30],O});function cn(t){return typeof t.intent=="string"}function dn(t){const{active:e,childItemId:a,groupIndex:r,itemId:n,key:i,pane:o,index:s,params:l,path:c,payload:d,siblingIndex:u,selected:y}=t;return p.jsx(v.Fragment,{children:o===Y?p.jsx(ye,{paneKey:i,path:c,selected:y}):p.jsx(Xt,{active:e,groupIndex:r,index:s,pane:o,childItemId:a,itemId:n,paneKey:i,params:l,payload:d,path:c,selected:y,siblingIndex:u})},`${o===Y?"loading":o.type}-${s}`)}function mn(t){const e=E(14),{tool:a}=t,{options:r}=a,{unstable_sources:n}=Ke(),[i]=n;let o;e[0]!==r?(o=r||{},e[0]=r,e[1]=o):o=e[1];const{source:s,defaultDocumentNode:l,structure:c}=o;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=[],e[2]=d):d=e[2],v.useEffect(un,d);let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u={error:null},e[3]=u):u=e[3];const[y,g]=v.useState(u),{error:h}=y;if(h){let w;return e[4]!==h?(w=p.jsx(Ut,{error:h}),e[4]=h,e[5]=w):w=e[5],w}const f=s||i.name;let I,P;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=p.jsx(ln,{onPaneChange:xe}),P=p.jsx(Kt,{}),e[6]=I,e[7]=P):(I=e[6],P=e[7]);let m;e[8]!==l||e[9]!==c?(m=p.jsxs(Fe,{defaultDocumentNode:l,structure:c,children:[I,P]}),e[8]=l,e[9]=c,e[10]=m):m=e[10];let x;return e[11]!==f||e[12]!==m?(x=p.jsx(Ge,{onCatch:g,children:p.jsx(Ue,{name:f,children:m})}),e[11]=f,e[12]=m,e[13]=x):x=e[13],x}function un(){return xe([]),pn}function pn(){return xe([])}export{mn as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{D as f}from"./sanity-550b6471.js";export{f as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{a as f}from"./sanity-550b6471.js";export{f as default};
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{d as e}from"./sanity-550b6471.js";const n=e("structure",{"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.label":"Delete","action.delete.running.label":"Deleting…","action.discard-changes.confirm-dialog.confirm-discard-changes":"Are you sure you want to discard all changes since last published?","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.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.label":"Duplicate","action.duplicate.running.label":"Duplicating…","action.publish.already-published.no-time-ago.tooltip":"Already published","action.publish.already-published.tooltip":"Published {{timeSincePublished}} ago","action.publish.disabled.not-ready":"Operation not ready","action.publish.draft.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-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 version","action.restore.label":"Restore","action.restore.tooltip":"Restore to this version","action.unpublish.disabled.not-published":"This document is not published","action.unpublish.disabled.not-ready":"Operation not ready","action.unpublish.label":"Unpublish","action.unpublish.live-edit.disabled":"This document has live edit enabled and cannot be unpublished","banners.deleted-document-banner.restore-button.text":"Restore most recent version","banners.deleted-document-banner.text":"This document has been deleted.","banners.deprecated-document-type-banner.text":"This document type has been deprecated.","banners.permission-check-banner.missing-permission_create_one":"Your role <Roles/> does not have permissions to create this document.","banners.permission-check-banner.missing-permission_create_other":"Your roles <Roles/> do not have permissions to create this document.","banners.permission-check-banner.missing-permission_update_one":"Your role <Roles/> does not have permissions to update this document.","banners.permission-check-banner.missing-permission_update_other":"Your roles <Roles/> do not have permissions to update this document.","banners.reference-changed-banner.reason-changed.reload-button.text":"Reload reference","banners.reference-changed-banner.reason-changed.text":"This reference has changed since you opened it.","banners.reference-changed-banner.reason-removed.close-button.text":"Close reference","banners.reference-changed-banner.reason-removed.text":"This reference has been removed since you opened it.","browser-document-title.new-document":"New {{schemaType}}","browser-document-title.untitled-document":"Untitled","buttons.action-menu-button.aria-label":"Open document actions","buttons.action-menu-button.tooltip":"Document actions","buttons.split-pane-button.aria-label":"Split pane right","buttons.split-pane-button.tooltip":"Split pane right","buttons.split-pane-close-button.title":"Close split pane","buttons.split-pane-close-group-button.title":"Close pane group","confirm-delete-dialog.cancel-button.text":"Cancel","confirm-delete-dialog.cdr-summary.document-count_one":"1 document","confirm-delete-dialog.cdr-summary.document-count_other":"{{count}} documents","confirm-delete-dialog.cdr-summary.subtitle_one":"Dataset: {{datasets}}","confirm-delete-dialog.cdr-summary.subtitle_other":"Datasets: {{datasets}}","confirm-delete-dialog.cdr-summary.subtitle_unavailable_one":"Unavailable dataset","confirm-delete-dialog.cdr-summary.subtitle_unavailable_other":"Unavailable datasets","confirm-delete-dialog.cdr-summary.title_one":"{{documentCount}} in another dataset","confirm-delete-dialog.cdr-summary.title_other":"{{documentCount}} in {{count}} datasets","confirm-delete-dialog.cdr-table.copy-id-button.tooltip":"Copy ID to clipboard","confirm-delete-dialog.cdr-table.dataset.label":"Dataset","confirm-delete-dialog.cdr-table.document-id.label":"Document ID","confirm-delete-dialog.cdr-table.id-copiedLine truncated
|
||||
-1
@@ -1 +0,0 @@
|
||||
import{d as e}from"./sanity-550b6471.js";const o=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","copy-link-success-message":"Copied 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","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.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{o as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{d as e}from"./sanity-D34DDzzj.js";const o=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","copy-link-success-message":"Copied 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.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{o as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{d as t}from"./sanity-D34DDzzj.js";const s=t("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"});export{s as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{d as e}from"./sanity-D34DDzzj.js";const i=e("create",{"start-in-create-link.label":"Start in Create","start-in-create-banner.title":"Get started with Sanity Create","start-in-create-banner.title-badge":"Early access","start-in-create-banner.subtitle":"A free-form, AI-powered editor that syncs directly with your Studio documents.","start-in-create-dialog.cta.learn-more":"Learn more.","start-in-create-dialog.error-toast.unresolved-url":"Unable to determine Sanity Create URL.","linking-in-progress-dialog.header":"Linking to Sanity Create","linking-in-progress-dialog.lede":"Head back to Sanity Create. Your document will sync automatically (usually takes a few seconds).","linking-in-progress-dialog.details":"Once linked, your edits will appear here in real-time.","linking-in-progress-dialog.troubleshooting.button.title":"Linking delayed?","linking-in-progress-dialog.troubleshooting.content":"Check if your Sanity Create window is still open, or if the process seems stuck. If problems persist, try refreshing the Studio and try again.","studio-create-link-banner.text":"This document is linked to Sanity Create","create-link-info.tooltip":"Learn more","create-link-info-popover.eyebrow-title":"Sanity Create","create-link-info-popover.eyebrow-badge":"Early access","create-link-info-popover.header":"Idea-first authoring","create-link-info-popover.text":"Write naturally in an AI-powered editor. Your content automatically maps to Studio fields as you type.","edit-in-create-button.text":"Edit with Sanity Create","unlink-from-create-button.text":"Unlink","unlink-from-create-dialog.header":"Switch editing to Studio?","unlink-from-create-dialog.first-paragraph":"You’re unlinking “<strong>{{title}}</strong>” from Sanity Create so it can be edited here.","unlink-from-create-dialog.second-paragraph":"You’ll keep your content in both places. Any new changes in Sanity Create will stop syncing to this Studio.","unlink-from-create-dialog.cancel.text":"Cancel","unlink-from-create-dialog.document.untitled.text":"Untitled","unlink-from-create-dialog.unlink.text":"Unlink now"});export{i as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{d as e}from"./sanity-D34DDzzj.js";const n=e("structure",{"action.copy-document-url.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.label":"Delete","action.delete.running.label":"Deleting…","action.discard-changes.confirm-dialog.confirm-discard-changes":"Are you sure you want to discard all changes since last published?","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.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.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.draft.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-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.not-published":"This document is not published","action.unpublish.disabled.not-ready":"Operation not ready","action.unpublish.label":"Unpublish","action.unpublish.live-edit.disabled":"This document has live edit enabled and cannot be unpublished","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-edit-draft-banner.discard.tooltip":"Discard draft","banners.live-edit-draft-banner.publish.tooltip":"Publish to continue editing","banners.live-edit-draft-banner.text":"The type <strong>{{schemaType}}</strong> has <code>liveEdit</code> enabled, but a draft version of this document exists. Publish or discard the draft in order to continue live editing it.","banners.permission-check-banner.missing-permission_create_one":"Your role <Roles/> does not have permission to publish this document.","banners.permission-check-banner.missing-permission_create_other":"Your roles <Roles/> do not have permission to publish this document.","banners.permission-check-banner.missing-permission_update_one":"Your role <Roles/> does not have permission to edit this document.","banners.permission-check-banner.missing-permission_update_other":"Your roles <Roles/> do not have permission to edit this document.","banners.permission-check-banner.request-permission-button.sent":"Editor request sent","banners.permission-check-banner.request-permission-button.text":"Ask to edit","banners.reference-changed-banner.reason-changed.reload-button.text":"Reload reference","banners.reference-changed-banner.reason-changed.text":"This reference has changed since you opened it.","banners.reference-changed-banner.reason-removed.close-button.text":"Close reference","banners.reference-changed-banner.reason-removed.text":"This reference has been removed since you opened it.","browser-document-title.new-document":"New {{schemaType}}","browser-document-title.untitled-document":"Untitled","buttons.action-menu-button.aria-label":"Open document actions","buttons.action-menu-button.tooltip":"Document actions","buttons.split-pane-button.aria-label":"Split pane right","buttons.split-pane-button.tooltip":"Split pane right","buttons.split-pane-close-button.title":"Close split pane","buttons.split-pane-close-group-button.title":"Close pane group","changes.from.label":"From","changes.tab.history":"History","changes.tab.review-changes":"Review changes","changes.to.label":"To","confirm-delete-dialog.cancel-button.text":"Cancel","confirm-delete-dialog.cdr-summary.document-count_one":"1 document","confirm-delete-dialog.cdr-summary.document-count_other":"{{count}} documents","confirm-deletLine truncated
|
||||
Vendored
-7094
File diff suppressed because it is too large.
Load diff
Vendored
+10133
File diff suppressed because it is too large.
Load diff
@@ -1,2 +0,0 @@
|
||||
import{b as q}from"./sanity-550b6471.js";const x=/_key\s*==\s*['"](.*)['"]/;function J(e){return typeof e=="string"?x.test(e.trim()):typeof e=="object"&&"_key"in e}function I(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,r,n)=>{const i=typeof r;if(i==="number")return`${t}[${r}]`;if(i==="string")return`${t}${n===0?"":"."}${r}`;if(J(r)&&r._key)return`${t}[_key=="${r._key}"]`;if(Array.isArray(r)){const[s,a]=r;return`${t}[${s}:${a}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(r)}\``)},"")}const j={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},P={"\\f":"\f","\\n":`
|
||||
`,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function v(e){return`$${e.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,r=>j[r])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,r=>j[r])}')]`:`[${t._index}]`).join("")}`}function U(e){const t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let n;for(;(n=r.exec(e))!==null;){if(n[1]!==void 0){const i=n[1].replace(/\\(\\|f|n|r|t|')/g,s=>P[s]);t.push(i);continue}if(n[2]!==void 0){t.push(parseInt(n[2],10));continue}if(n[3]!==void 0){const i=n[3].replace(/\\(\\')/g,s=>P[s]);t.push({_key:i,_index:-1});continue}}return t}function T(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function V(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function G(e,t){if(!(t!=null&&t.mappings))return;const r=v(V(e));if(t.mappings[r]!==void 0)return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};const n=Object.entries(t.mappings).filter(([d])=>r.startsWith(d)).sort(([d],[u])=>u.length-d.length);if(n.length==0)return;const[i,s]=n[0],a=r.substring(i.length);return{mapping:s,matchedPath:i,pathSuffix:a}}function K(e){return e!==null&&Array.isArray(e)}function A(e){return typeof e=="object"&&e!==null}function b(e,t,r=[]){return K(e)?e.map((n,i)=>{if(A(n)){const s=n._key;if(typeof s=="string")return b(n,t,r.concat({_key:s,_index:i}))}return b(n,t,r.concat(i))}):A(e)?Object.fromEntries(Object.entries(e).map(([n,i])=>[n,b(i,t,r.concat(n))])):t(e,r)}function z(e,t,r){return b(e,(n,i)=>{if(typeof n!="string")return n;const s=G(i,t);if(!s)return n;const{mapping:a,matchedPath:d}=s;if(a.type!=="value"||a.source.type!=="documentValue")return n;const u=t.documents[a.source.document],f=t.paths[a.source.path],h=U(d),y=U(f).concat(i.slice(h.length));return r({sourcePath:y,sourceDocument:u,resultPath:i,value:n})})}const E="drafts.";function B(e){return e.startsWith(E)?e.slice(E.length):e}function H(e){const{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:s,path:a,projectId:d,dataset:u}=e;if(!t)throw new Error("baseUrl is required");if(!a)throw new Error("path is required");if(!i)throw new Error("id is required");if(t!=="/"&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");const f=r==="default"?void 0:r,h=n==="default"?void 0:n,y=B(i),_=Array.isArray(a)?I(T(a)):a,o=new URLSearchParams({baseUrl:t,id:y,type:s,path:_});f&&o.set("workspace",f),h&&o.set("tool",h),d&&o.set("projectId",d),u&&o.set("dataset",u),i.startsWith(E)&&o.set("isDraft","");const k=[t==="/"?"":t];f&&k.push(f);const p=["mode=presentation",`id=${y}`,`type=${s}`,`path=${encodeURIComponent(_)}`];return h&&p.push(`tool=${h}`),k.push("intent","edit",`${p.join(";")}?${o}`),k.join("/")}function X(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}const m=({sourcePath:e,value:t})=>{if(Q(t)||Y(t))return!1;const r=e.at(-1);return!(e.at(-2)==="slug"&&r==="current"||typeof r=="string"&&r.startsWith("_")||typeof r=="number"&&e.at(-2)==="marks"||r==="href"&&typeof e.at(-2)=="number"&&e.at(-3)==="markDefs"||r==="style"||r==="listItem"||e.some(n=>n==="meta"||n==="metadata"||n==="openGraph"||n==="seo")||typeof r=="string"&&F.has(r))},F=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","unit","url","username","variant","website"]);function Q(e){return/^\d{4}-\d{2}-\d{2}/.test(e)?!!Date.parse(e):!1}function Y(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}const w=20;function Z(e,t,r){var n,i,s,a,d,u,f,h,y;const{filter:_,logger:o,enabled:k}=r;if(!k){const l="config.enabled must be true, don't call this function otherwise";throw(n=o==null?void 0:o.error)==null||n.call(o,`[@sanity/client]: ${l}`,{result:e,resultSourceMap:t,config:r}),new TypeError(l)}if(!t)return(i=o==null?void 0:o.error)==null||i.call(o,"[@sanity/client]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){const l="config.studioUrl must be defined";throw(s=o==null?void 0:o.error)==null||s.call(o,`[@sanity/client]: ${l}`,{result:e,resultSourceMap:t,config:r}),new TypeError(l)}const p={encoded:[],skipped:[]},C=z(e,t,({sourcePath:l,sourceDocument:g,resultPath:$,value:c})=>{if((typeof _=="function"?_({sourcePath:l,resultPath:$,filterDefault:m,sourceDocument:g,value:c}):m({sourcePath:l,resultPath:$,filterDefault:m,sourceDocument:g,value:c}))===!1)return o&&p.skipped.push({path:R(l),value:`${c.slice(0,w)}${c.length>w?"...":""}`,length:c.length}),c;o&&p.encoded.push({path:R(l
Line truncated
|
||||
@@ -0,0 +1,2 @@
|
||||
import{b as V}from"./sanity-D34DDzzj.js";const C=/_key\s*==\s*['"](.*)['"]/;function G(n){return typeof n=="string"?C.test(n.trim()):typeof n=="object"&&"_key"in n}function W(n){if(!Array.isArray(n))throw new Error("Path is not an array");return n.reduce((t,r,i)=>{const e=typeof r;if(e==="number")return`${t}[${r}]`;if(e==="string")return`${t}${i===0?"":"."}${r}`;if(G(r)&&r._key)return`${t}[_key=="${r._key}"]`;if(Array.isArray(r)){const[s,o]=r;return`${t}[${s}:${o}]`}throw new Error(`Unsupported path segment \`${JSON.stringify(r)}\``)},"")}const x={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},U={"\\f":"\f","\\n":`
|
||||
`,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function K(n){return`$${n.map(t=>typeof t=="string"?`['${t.replace(/[\f\n\r\t'\\]/g,r=>x[r])}']`:typeof t=="number"?`[${t}]`:t._key!==""?`[?(@._key=='${t._key.replace(/['\\]/g,r=>x[r])}')]`:`[${t._index}]`).join("")}`}function A(n){const t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g;let i;for(;(i=r.exec(n))!==null;){if(i[1]!==void 0){const e=i[1].replace(/\\(\\|f|n|r|t|')/g,s=>U[s]);t.push(e);continue}if(i[2]!==void 0){t.push(parseInt(i[2],10));continue}if(i[3]!==void 0){const e=i[3].replace(/\\(\\')/g,s=>U[s]);t.push({_key:e,_index:-1});continue}}return t}function L(n){return n.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function z(n){return n.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error(`invalid segment:${JSON.stringify(t)}`)})}function B(n,t){if(!(t!=null&&t.mappings))return;const r=K(z(n));if(t.mappings[r]!==void 0)return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};const i=Object.entries(t.mappings).filter(([p])=>r.startsWith(p)).sort(([p],[f])=>f.length-p.length);if(i.length==0)return;const[e,s]=i[0],o=r.substring(e.length);return{mapping:s,matchedPath:e,pathSuffix:o}}function H(n){return n!==null&&Array.isArray(n)}function R(n){return typeof n=="object"&&n!==null}function k(n,t,r=[]){if(H(n))return n.map((i,e)=>{if(R(i)){const s=i._key;if(typeof s=="string")return k(i,t,r.concat({_key:s,_index:e}))}return k(i,t,r.concat(e))});if(R(n)){if(n._type==="block"||n._type==="span"){const i={...n};return n._type==="block"?i.children=k(n.children,t,r.concat("children")):n._type==="span"&&(i.text=k(n.text,t,r.concat("text"))),i}return Object.fromEntries(Object.entries(n).map(([i,e])=>[i,k(e,t,r.concat(i))]))}return t(n,r)}function X(n,t,r){return k(n,(i,e)=>{if(typeof i!="string")return i;const s=B(e,t);if(!s)return i;const{mapping:o,matchedPath:p}=s;if(o.type!=="value"||o.source.type!=="documentValue")return i;const f=t.documents[o.source.document],d=t.paths[o.source.path],u=A(p),y=A(d).concat(e.slice(u.length));return r({sourcePath:y,sourceDocument:f,resultPath:e,value:i})})}const S="drafts.";function Q(n){return n.startsWith(S)?n.slice(S.length):n}function Y(n){const{baseUrl:t,workspace:r="default",tool:i="default",id:e,type:s,path:o,projectId:p,dataset:f}=n;if(!t)throw new Error("baseUrl is required");if(!o)throw new Error("path is required");if(!e)throw new Error("id is required");if(t!=="/"&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");const d=r==="default"?void 0:r,u=i==="default"?void 0:i,y=Q(e),$=Array.isArray(o)?W(L(o)):o,h=new URLSearchParams({baseUrl:t,id:y,type:s,path:$});d&&h.set("workspace",d),u&&h.set("tool",u),p&&h.set("projectId",p),f&&h.set("dataset",f),e.startsWith(S)&&h.set("isDraft","");const _=[t==="/"?"":t];d&&_.push(d);const w=["mode=presentation",`id=${y}`,`type=${s}`,`path=${encodeURIComponent($)}`];return u&&w.push(`tool=${u}`),_.push("intent","edit",`${w.join(";")}?${h}`),_.join("/")}function Z(n){let t=typeof n=="string"?n:n.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof n=="string"?{baseUrl:t}:{...n,baseUrl:t}}const m=({sourcePath:n,resultPath:t,value:r})=>{if(g(r)||v(r))return!1;const i=n.at(-1);return!(n.at(-2)==="slug"&&i==="current"||typeof i=="string"&&(i.startsWith("_")||i.endsWith("Id"))||n.some(e=>e==="meta"||e==="metadata"||e==="openGraph"||e==="seo")||T(n)||T(t)||typeof i=="string"&&F.has(i))},F=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","textTheme","unit","url","username","variant","website"]);function g(n){return/^\d{4}-\d{2}-\d{2}/.test(n)?!!Date.parse(n):!1}function v(n){try{new URL(n,n.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function T(n){return n.some(t=>typeof t=="string"&&t.match(/type/i)!==null)}const E=20;function tt(n,t,r){var f,d,u,y,$,h,_,w,P;const{filter:i,logger:e,enabled:s}=r;if(!s){const a="config.enabled must be true, don't call this function otherwise";throw(f=e==null?void 0:e.error)==null||f.call(e,`[@sanity/client]: ${a}`,{result:n,resultSourceMap:t,config:r}),new TypeError(a)}if(!t)return(d=e==null?void 0:e.error)==null||d.call(e,"[@sanity/client]: Missing Content Source Map from response body",{result:n,resultSourceMap:t,config:r}),n;if(!r.studioUrl){const a="config.studioUrl must be defined";throw(u=e==null?void 0:e.error)==null||u.call(e,`[@sanity/client]: ${a}`,{result:n,resultSourceMap:t,config:r}),new TypeError(a)}const o={encoded:[],skipped:[]},p=X(n,t,({sourcePath:a,sourceDocument:l,resultPath:b,value:c})=>{if((typeof i=="function"?i({sourcePath:a,resultPath:b,filterDefault:m,sourceDocument:l,value:c
Line truncated
|
||||
Generated
+15995
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user