sanity-plugin-media 2.2.2 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js DELETED
@@ -1 +0,0 @@
1
- "use strict";var e,t,r,n,o,i,s,a,l,d,c,u,h,p,f,g,m,x,w,v,C,j,y,k,L,M,b,H,V,R,B,T,I,Z,S,W,_,E,z,F,A;function D(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}Object.defineProperty(exports,"__esModule",{value:!0});var q=require("sanity"),O=require("react"),P=require("react/jsx-runtime"),U=require("@sanity/ui"),N=require("is-hotkey"),Q=require("groq"),G=require("react-redux"),X=require("@reduxjs/toolkit"),Y=require("nanoid"),$=require("redux-observable"),K=require("rxjs"),J=require("rxjs/operators"),ee=require("@sanity/uuid"),te=require("styled-components"),re=require("pluralize"),ne=require("@tanem/react-nprogress"),oe=require("react-select"),ie=require("react-virtuoso"),se=require("@hookform/resolvers/zod"),ae=require("react-hook-form"),le=require("zod"),de=require("date-fns/format"),ce=require("filesize"),ue=require("copy-to-clipboard"),he=require("sanity/router"),pe=require("react-file-icon"),fe=require("react-select/creatable"),ge=require("date-fns/formatRelative"),me=require("react-dropzone");function xe(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function we(e){if(e&&"object"==typeof e&&"default"in e)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var ve=xe(N),Ce=xe(Q),je=xe(te),ye=xe(re),ke=xe(oe),Le=we(le),Me=xe(de),be=xe(ce),He=xe(ue),Ve=xe(fe),Re=xe(ge);const Be=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"access-denied",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.1568 6.84315C21.281 9.96734 21.281 15.0327 18.1568 18.1569C15.0326 21.281 9.96733 21.281 6.84313 18.1569C3.71894 15.0327 3.71894 9.96734 6.84313 6.84315C9.96733 3.71895 15.0326 3.71895 18.1568 6.84315ZM18.1568 6.84315L6.844 18.156",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Te=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"activity",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M21 15H19L15.5 7L11 18L8 12L6 15H4",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ie=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"add-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 12.4H17M12.5 8V17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ze=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"add",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 5V20M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Se=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"api",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5.93047 13.2107L6.66782 10.3728H6.73089L7.45854 13.2107H5.93047ZM8.17164 16H9.66089L7.56041 9H5.93047L3.82999 16H5.20767L5.65396 14.2876H7.73505L8.17164 16Z",fill:"currentColor"}),P.jsx("path",{d:"M10.5389 9V16H11.9166V13.7782H13.0323C14.541 13.7782 15.5015 12.8517 15.5015 11.3964C15.5015 9.92654 14.5701 9 13.1003 9H10.5389ZM11.9166 10.1303H12.751C13.6533 10.1303 14.1044 10.5475 14.1044 11.3867C14.1044 12.2308 13.6533 12.6431 12.751 12.6431H11.9166V10.1303Z",fill:"currentColor"}),P.jsx("path",{d:"M21.1675 16V14.8164H19.717V10.1836H21.1675V9H16.8889V10.1836H18.3393V14.8164H16.8889V16H21.1675Z",fill:"currentColor"})]})})),We=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"archive",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.5 10.5V17M20.5 7.5V20.5H4.5V7.5L7.5 4.5H17.5L20.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M4.5 7.5H20.5M16 14L12.5 17.5L9 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),_e=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"arrow-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.5 19.5V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M18 14L12.5 19.5L7 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Ee=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"arrow-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5.5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11 18L5.5 12.5L11 7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),ze=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M19.5 12.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M14 7L19.5 12.5L14 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Fe=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"arrow-top-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M16.5 8.5L7 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M9 8.5H16.5V16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Ae=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"arrow-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M7 11L12.5 5.5L18 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M12.5 5.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),De=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bar-chart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 5V19.5H20M8.5 18V13M11.5 18V9M14.5 18V11M17.5 18V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),qe=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"basket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8.5 10.5H5L6.5 19.5H18.5L20 10.5H16.5M8.5 10.5L10.2721 5.18377C10.4082 4.77543 10.7903 4.5 11.2208 4.5H13.7792C14.2097 4.5 14.5918 4.77543 14.7279 5.18377L16.5 10.5M8.5 10.5H16.5M8.5 10.5L9.5 19.5M16.5 10.5L15.5 19.5M12.5 10.5V19.5M19.5 13.5H5.5M19 16.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Oe=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bell",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 17.5V18.5C10.5 20 11.5 20.5 12.5 20.5C13.5 20.5 14.5 20 14.5 18.5V17.5M5.5 17.5C6.5 16 6.5 15 6.5 12C6.5 8 8.5 5.5 12.5 5.5C16.5 5.5 18.5 8 18.5 12C18.5 15 18.5 16 19.5 17.5H5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Pe=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bill",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M6.50001 5.5C8.50003 5.5 8.50003 8 8.50003 8V9.5M6.50001 5.5C4.5 5.5 4.5 8 4.5 8L4.50001 9.5H8.50003M6.50001 5.5C6.50001 5.5 15.8333 5.5 17.6667 5.5C19.5 5.5 19.5 8.5 19.5 8.5V20L17.6667 19L15.8333 20L14 19L12.1667 20L10.3334 19L8.50003 20V9.5M11 12.5H15M11 9.5H16M11 15.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ue=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"binary-document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M9.5 12.5V17.5M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM12.5 12.5V17.5H15.5V12.5H12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})]})})),Ne=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"block-content",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 7.60002L11 7.60003V6.40003L21 6.40002V7.60002Z",fill:"currentColor"}),P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 11.2667L12.4833 11.2667V10.0667L21 10.0667V11.2667Z",fill:"currentColor"}),P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 14.9334H13.9254V13.7334L21 13.7334V14.9334Z",fill:"currentColor"}),P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 18.6002H4V17.4002H21V18.6002Z",fill:"currentColor"}),P.jsx("path",{d:"M9.86438 15.6H11.2L8.27623 7.60003H6.92377L4 15.6H5.29072L6.0371 13.4767H9.12362L9.86438 15.6ZM7.53546 9.05255H7.63086L8.80374 12.4344H6.35698L7.53546 9.05255Z",fill:"currentColor"})]})})),Qe=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"block-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5 19.5H20M5 5.5H20M6.5 8.5H18.5V16.5H6.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ge=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"blockquote",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10 17.5H19M6 7.5H19M10 12.5H17M6.5 12V18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Xe=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bold",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M13.2087 18C15.5322 18 16.9731 16.793 16.9731 14.8844C16.9731 13.4812 15.9245 12.3949 14.4836 12.2892V12.1534C15.6001 11.9875 16.4526 10.9841 16.4526 9.82991C16.4526 8.14761 15.1927 7.11409 13.0804 7.11409H8.32019V18H13.2087ZM10.5985 8.85674H12.4995C13.5859 8.85674 14.212 9.37727 14.212 10.2448C14.212 11.1199 13.5406 11.6254 12.3109 11.6254H10.5985V8.85674ZM10.5985 16.2574V13.1643H12.575C13.9178 13.1643 14.6496 13.6924 14.6496 14.6882C14.6496 15.7066 13.9404 16.2574 12.6278 16.2574H10.5985Z",fill:"currentColor"})})})),Ye=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"book",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M20.5 17.5V5.5L12.5 6.5M20.5 17.5L12.5 18.5M20.5 17.5V18.5M4.5 17.5V5.5L12.5 6.5M4.5 17.5L12.5 18.5M4.5 17.5V18.5M12.5 18.5L4.5 19.5V18.5M12.5 18.5L20.5 19.5V18.5M12.5 18.5V6.5M12.5 18.5H4.5M12.5 18.5H20.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),$e=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bottle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7.5 17.5L17.5 17.5M17.5 13C17.5 12.087 17.5 11.3518 17.5 11C17.5 8.5 14.5 9 14.5 7.37494L14.5 5.5M17.5 13C17.5 15.1229 17.5 18.7543 17.5 20.5022C17.5 21.0545 17.0523 21.5 16.5 21.5L8.5 21.5C7.94772 21.5 7.5 21.0547 7.5 20.5024C7.5 18.8157 7.5 15.3546 7.5 13M17.5 13L7.5 13M7.5 13C7.5 12.2538 7.5 11.5648 7.5 11C7.5 8.5 10.5 9 10.5 7.37494L10.5 5.5M10.5 5.5L10.5 3.99999C10.5 3.72385 10.7239 3.49999 11 3.49999L14 3.49999C14.2761 3.49999 14.5 3.72385 14.5 3.99999L14.5 5.5M10.5 5.5L14.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ke=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"bulb-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H14V20.5C14 21.0523 13.5523 21.5 13 21.5H12C11.4477 21.5 11 21.0523 11 20.5V19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10C18 11.94 17.3978 12.9767 16.4272 14.3368Z",fill:"currentColor"}),P.jsx("path",{d:"M16.4272 14.3368L15.9388 13.9883L16.4272 14.3368ZM14 19.5V18.9H13.4V19.5H14ZM11 19.5H11.6V18.9H11V19.5ZM8.57284 14.3368L9.06122 13.9883H9.06122L8.57284 14.3368ZM16.1 17.212C16.1 16.3069 16.3868 15.4261 16.9155 14.6853L15.9388 13.9883C15.2678 14.9284 14.9 16.0519 14.9 17.212H16.1ZM16.1 18.5V17.212H14.9V18.5H16.1ZM14.5 20.1C15.3837 20.1 16.1 19.3837 16.1 18.5H14.9C14.9 18.7209 14.7209 18.9 14.5 18.9V20.1ZM14 20.1H14.5V18.9H14V20.1ZM13.4 19.5V20.5H14.6V19.5H13.4ZM13.4 20.5C13.4 20.7209 13.2209 20.9 13 20.9V22.1C13.8837 22.1 14.6 21.3837 14.6 20.5H13.4ZM13 20.9H12V22.1H13V20.9ZM12 20.9C11.7791 20.9 11.6 20.7209 11.6 20.5H10.4C10.4 21.3837 11.1163 22.1 12 22.1V20.9ZM11.6 20.5V19.5H10.4V20.5H11.6ZM10.5 20.1H11V18.9H10.5V20.1ZM8.9 18.5C8.9 19.3837 9.61634 20.1 10.5 20.1V18.9C10.2791 18.9 10.1 18.7209 10.1 18.5H8.9ZM8.9 17.212V18.5H10.1V17.212H8.9ZM8.08446 14.6853C8.61315 15.4261 8.9 16.3069 8.9 17.212H10.1C10.1 16.0519 9.73217 14.9284 9.06122 13.9883L8.08446 14.6853ZM6.4 10C6.4 11.0377 6.56208 11.8595 6.86624 12.611C7.16624 13.3521 7.59495 13.9995 8.08446 14.6853L9.06122 13.9883C8.58004 13.314 8.22233 12.7629 7.97858 12.1607C7.739 11.5688 7.6 10.9023 7.6 10H6.4ZM12.5 3.9C9.16863 3.9 6.4 6.66863 6.4 10H7.6C7.6 7.33137 9.83137 5.1 12.5 5.1V3.9ZM18.6 10C18.6 6.66863 15.8314 3.9 12.5 3.9V5.1C15.1686 5.1 17.4 7.33137 17.4 10H18.6ZM16.9155 14.6853C17.4051 13.9995 17.8338 13.3521 18.1338 12.611C18.4379 11.8595 18.6 11.0377 18.6 10H17.4C17.4 10.9023 17.261 11.5688 17.0214 12.1607C16.7777 12.7629 16.42 13.314 15.9388 13.9883L16.9155 14.6853Z",fill:"currentColor"})]})})),Je=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"bulb-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 16.5H15.5M11 20V20.5C11 21.0523 11.4477 21.5 12 21.5H13C13.5523 21.5 14 21.0523 14 20.5V20M18 10C18 11.94 17.3978 12.9767 16.4272 14.3368C15.8273 15.1773 15.5 16.1794 15.5 17.212V18.5C15.5 19.0523 15.0523 19.5 14.5 19.5H10.5C9.94772 19.5 9.5 19.0523 9.5 18.5V17.212C9.5 16.1794 9.17266 15.1773 8.57284 14.3368C7.60216 12.9767 7 11.94 7 10C7 7 9.5 4.5 12.5 4.5C15.5 4.5 18 7 18 10Z",stroke:"currentColor",strokeWidth:1.2})})})),et=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"calendar",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M4.5 10.5V19.5H20.5V10.5M4.5 10.5V5.5H20.5V10.5M4.5 10.5H12.5H20.5M20.5 13.5H16.5M16.5 13.5H12.5M16.5 13.5V10.5M16.5 13.5V16.5M12.5 13.5H8.5M12.5 13.5V16.5M12.5 13.5V10.5M8.5 13.5H4.5M8.5 13.5V10.5M8.5 13.5V16.5M20.5 16.5H16.5M16.5 16.5H12.5M16.5 16.5V19.5M12.5 16.5H8.5M12.5 16.5V19.5M8.5 16.5H4.5M8.5 16.5V19.5M17.5 8V3M7.5 8V3",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),tt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"case",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9 8.5122V6C9 5.44772 9.44772 5 10 5H15C15.5523 5 16 5.44772 16 6V8.5122M4.5 12V18.5C4.5 19.0523 4.94772 19.5 5.5 19.5H19.5C20.0523 19.5 20.5 19.0523 20.5 18.5V12M4.5 12V9.5122C4.5 8.95991 4.94772 8.5122 5.5 8.5122H19.5C20.0523 8.5122 20.5 8.95991 20.5 9.5122V12M4.5 12L11.7978 14.7367C12.2505 14.9064 12.7495 14.9064 13.2022 14.7367L20.5 12",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),rt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"chart-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 5V19.5H20M7.5 16L11.5 11.5L15.5 14L19.5 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),nt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"checkmark-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 12.1316L11.7414 14.5L16 10M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ot=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"checkmark",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 11.5L10.5 16.5L19.5 7.60001",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),it=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17 10.5L12.5 15L8 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),st=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M14.5 17L10 12.5L14.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),at=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 8L15 12.5L10.5 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),lt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 14.5L12.5 10L17 14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),dt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ct=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"clipboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 5.5H6.5V19.5H18.5V5.5H17M12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ut=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"clipboard-image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 5.5H6.5V19.5H10.5M17 5.5H18.5V11.5M10.5 18.5L12.73 15.8983C13.1327 15.4285 13.8613 15.4335 14.2575 15.909L15.299 17.1588C15.6754 17.6105 16.3585 17.6415 16.7743 17.2257L16.9903 17.0097C17.2947 16.7053 17.7597 16.6298 18.1447 16.8223L20.5 18M10.5 11.5H20.5V21.5H10.5V11.5ZM12.5 3C11.5 3 11.5 4.5 11 4.5C10 4.5 9.5 5 9.5 6.5H15.6C15.6 5 15 4.5 14 4.5C13.5 4.5 13.5 3 12.5 3Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ht=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"clock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 8V12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),pt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"close-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 15.5L12.5 12.5M12.5 12.5L15.5 9.5M12.5 12.5L9.5 9.5M12.5 12.5L15.5 15.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ft=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"close",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18 7L7 18M7 7L18 18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),gt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"code-block",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11 15L8.5 12.5L11 10M14 10L16.5 12.5L14 15M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),mt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"code",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11 16L7.5 12.5L11 9M14 9L17.5 12.5L14 16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),xt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"cog",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M14.2624 5.40607L13.8714 4.42848C13.6471 3.86771 13.104 3.5 12.5 3.5C11.896 3.5 11.3529 3.86771 11.1286 4.42848L10.7376 5.40607C10.5857 5.78585 10.2869 6.08826 9.90901 6.2448C9.53111 6.40133 9.10603 6.39874 8.73006 6.23761L7.76229 5.82285C7.20716 5.58494 6.56311 5.70897 6.13604 6.13604C5.70897 6.56311 5.58494 7.20716 5.82285 7.76229L6.23761 8.73006C6.39874 9.10602 6.40133 9.53111 6.2448 9.90901C6.08826 10.2869 5.78585 10.5857 5.40607 10.7376L4.42848 11.1286C3.86771 11.3529 3.5 11.896 3.5 12.5C3.5 13.104 3.86771 13.6471 4.42848 13.8714L5.40607 14.2624C5.78585 14.4143 6.08826 14.7131 6.2448 15.091C6.40133 15.4689 6.39874 15.894 6.23761 16.2699L5.82285 17.2377C5.58494 17.7928 5.70897 18.4369 6.13604 18.864C6.56311 19.291 7.20716 19.4151 7.76229 19.1772L8.73006 18.7624C9.10603 18.6013 9.53111 18.5987 9.90901 18.7552C10.2869 18.9117 10.5857 19.2141 10.7376 19.5939L11.1286 20.5715C11.3529 21.1323 11.896 21.5 12.5 21.5C13.104 21.5 13.6471 21.1323 13.8714 20.5715L14.2624 19.5939C14.4143 19.2141 14.7131 18.9117 15.091 18.7552C15.4689 18.5987 15.894 18.6013 16.2699 18.7624L17.2377 19.1771C17.7928 19.4151 18.4369 19.291 18.864 18.864C19.291 18.4369 19.4151 17.7928 19.1771 17.2377L18.7624 16.2699C18.6013 15.894 18.5987 15.4689 18.7552 15.091C18.9117 14.7131 19.2141 14.4143 19.5939 14.2624L20.5715 13.8714C21.1323 13.6471 21.5 13.104 21.5 12.5C21.5 11.896 21.1323 11.3529 20.5715 11.1286L19.5939 10.7376C19.2141 10.5857 18.9117 10.2869 18.7552 9.90901C18.5987 9.53111 18.6013 9.10602 18.7624 8.73006L19.1772 7.76229C19.4151 7.20716 19.291 6.56311 18.864 6.13604C18.4369 5.70897 17.7928 5.58494 17.2377 5.82285L16.2699 6.23761C15.894 6.39874 15.4689 6.40133 15.091 6.2448C14.7131 6.08826 14.4143 5.78585 14.2624 5.40607Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16.5 12.5C16.5 14.7091 14.7091 16.5 12.5 16.5C10.2909 16.5 8.5 14.7091 8.5 12.5C8.5 10.2909 10.2909 8.5 12.5 8.5C14.7091 8.5 16.5 10.2909 16.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),wt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"collapse",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M6 14.5L10.5 14.5V19M19 10.5H14.5L14.5 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M10.5 14.5L6 19M14.5 10.5L19 6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),vt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"color-wheel",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.43853 5.10896L11.1606 9.26642M13.8394 15.7336L15.5615 19.891M15.7336 11.1606L19.891 9.43853M9.26642 13.8394L5.10896 15.5615M5.3139 9.52342L9.23359 11.147M15.7664 13.853L19.6861 15.4766M13.853 9.23359L15.4766 5.3139M9.52342 19.6861L11.147 15.7664M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5ZM16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ct=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"comment",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7.5 16.5H9.5V20.5L13.5 16.5H17.5C18.6046 16.5 19.5 15.6046 19.5 14.5V8.5C19.5 7.39543 18.6046 6.5 17.5 6.5H7.5C6.39543 6.5 5.5 7.39543 5.5 8.5V14.5C5.5 15.6046 6.39543 16.5 7.5 16.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),jt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"component",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8.5 8.5L12.5 12.5M12.5 12.5L16.5 16.5M12.5 12.5L16.5 8.5M12.5 12.5L8.5 16.5M12.5 4L21 12.5L12.5 21L4 12.5L12.5 4Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),yt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"compose",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17 6L19 8M14 5.5H5.5V19.5H19.5V11M9 16L9.5 13.5L19 4L21 6L11.5 15.5L9 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),kt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"controls",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M6.5 5V7.5M6.5 7.5C5.39543 7.5 4.5 8.39543 4.5 9.5C4.5 10.6046 5.39543 11.5 6.5 11.5M6.5 7.5C7.60457 7.5 8.5 8.39543 8.5 9.5C8.5 10.6046 7.60457 11.5 6.5 11.5M6.5 11.5V20M12.5 5V13.5M12.5 13.5C11.3954 13.5 10.5 14.3954 10.5 15.5C10.5 16.6046 11.3954 17.5 12.5 17.5M12.5 13.5C13.6046 13.5 14.5 14.3954 14.5 15.5C14.5 16.6046 13.6046 17.5 12.5 17.5M12.5 17.5V20M18.5 5V7.5M18.5 7.5C17.3954 7.5 16.5 8.39543 16.5 9.5C16.5 10.6046 17.3954 11.5 18.5 11.5M18.5 7.5C19.6046 7.5 20.5 8.39543 20.5 9.5C20.5 10.6046 19.6046 11.5 18.5 11.5M18.5 11.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Lt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"copy",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8.5 8.5H5.5V20.5H16.5V16.5M19.5 4.5H8.5V16.5H19.5V4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Mt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"credit-card",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M20.5 9.5H4.5V11.5H20.5V9.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7 15.5H14M5.5 18.5H19.5C20.0523 18.5 20.5 18.0523 20.5 17.5V7.5C20.5 6.94772 20.0523 6.5 19.5 6.5H5.5C4.94772 6.5 4.5 6.94772 4.5 7.5V17.5C4.5 18.0523 4.94772 18.5 5.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),bt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"crop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 5V15.5H20M5 9.5H15.5V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ht=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"dashboard",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M14.5 19.5V12.5M10.5 12.5V5.5M5.5 12.5H19.5M5.5 19.5H19.5V5.5H5.5V19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Vt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"database",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.5 7V17.5C18.5 19.0594 16.0504 20.5 12.5 20.5C8.9496 20.5 6.5 19.0594 6.5 17.5V7M18.5 7C18.5 8.45543 15.8137 9.5 12.5 9.5C9.18629 9.5 6.5 8.45543 6.5 7C6.5 5.54457 9.18629 4.5 12.5 4.5C15.8137 4.5 18.5 5.54457 18.5 7Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Rt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"desktop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M4.5 13.5V15.5C4.5 16.0523 4.94772 16.5 5.5 16.5H12.5M4.5 13.5V6.5C4.5 5.94772 4.94772 5.5 5.5 5.5H19.5C20.0523 5.5 20.5 5.94772 20.5 6.5V13.5M4.5 13.5H20.5M20.5 13.5V15.5C20.5 16.0523 20.0523 16.5 19.5 16.5H12.5M12.5 16.5V19.5M12.5 19.5H8M12.5 19.5H17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Bt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11.5 4.5H18.5V20.5H6.5L6.5 9.5M11.5 4.5L6.5 9.5M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Tt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-pdf",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.7127 13.8012L12.7193 13.77C12.8488 13.2366 13.0117 12.5716 12.8845 11.969C12.7997 11.4937 12.4493 11.3084 12.1503 11.295C11.7977 11.2794 11.483 11.4803 11.4049 11.7726C11.2576 12.3082 11.3893 13.0402 11.6303 13.973C11.3268 14.6961 10.8425 15.7472 10.4877 16.3721C9.8271 16.7135 8.94113 17.2402 8.80946 17.9053C8.78268 18.028 8.81392 18.1842 8.88757 18.3248C8.97014 18.481 9.10181 18.6015 9.25579 18.6596C9.32274 18.6841 9.40308 18.7042 9.49681 18.7042C9.88959 18.7042 10.5256 18.3873 11.3736 16.9322C11.5031 16.8898 11.637 16.8452 11.7664 16.8006C12.3734 16.5953 13.0028 16.381 13.5718 16.2851C14.2012 16.622 14.9175 16.8385 15.404 16.8385C15.8861 16.8385 16.0758 16.5529 16.1472 16.381C16.2722 16.0797 16.2119 15.7004 16.0088 15.4973C15.7143 15.2072 14.9979 15.1313 13.882 15.2696C13.3331 14.9349 12.9738 14.4796 12.7127 13.8012ZM10.2645 17.1911C9.95431 17.6419 9.71998 17.8673 9.59278 17.9655C9.7423 17.691 10.0346 17.4009 10.2645 17.1911ZM12.2195 11.9355C12.3355 12.1341 12.3199 12.7345 12.2306 13.038C12.1213 12.5939 12.1056 11.9645 12.1704 11.8909L12.2195 11.9355ZM12.1837 14.6247C12.4225 15.0376 12.7238 15.3924 13.0563 15.6557C12.5743 15.7651 12.1346 15.9458 11.7419 16.1065C11.6481 16.1445 11.5566 16.1824 11.4674 16.2181C11.7642 15.6803 12.0119 15.071 12.1837 14.6247ZM15.6562 16.0864L15.6428 16.1065C15.6428 16.1065 15.4375 16.2315 14.6497 15.9213C15.5558 15.8789 15.6562 16.0864 15.6562 16.0864Z",fill:"currentColor"}),P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),It=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M6.5 14V20.5H18.5V14M6.5 11V9.5L11.5 4.5H18.5V11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Zt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-sheet",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M10.4 19V16.4M10.4 16.4L10.4 13.4M10.4 16.4H8M10.4 16.4H14.4M10.4 13.4V11M10.4 13.4H8M10.4 13.4H14.4M14.4 19V16.4M14.4 16.4V13.4M14.4 16.4H17M14.4 13.4V11M14.4 13.4H17M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),St=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-text",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16 13H9M14 16H9M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Wt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-video",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 16.5V13.5L14 15L11.5 16.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2}),P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),_t=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-word",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.4699 13.4588H12.5263L13.6328 17H14.5435L16 12H14.9952L14.0656 15.7214H14.0129L12.929 12H12.0672L10.9984 15.7214H10.9419L10.0124 12H9L10.4565 17H11.371L12.4699 13.4588Z",fill:"currentColor"}),P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Et=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"document-zip",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.5 4.5V9.5H6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M15 4.5L13.5 5L15.5 6L13.5 7L15.5 8L13.5 9L15.5 10L13.5 11L14.5 11.5V13M11.5 4.5H18.5V20.5H6.5V9.5L11.5 4.5ZM13.5 13H15.5L16 17H13L13.5 13Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),zt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"documents",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M10.5 4.5V9.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16.5 7.5H19.5V21.5H8.5V18.5M10.5 4.5H16.5V18.5H5.5V9.5L10.5 4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Ft=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"dot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("circle",{cx:12.5,cy:12.5,r:1.5,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2})})})),At=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"double-chevron-down",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17 8.5L12.5 13L8 8.5M17 12.5L12.5 17L8 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Dt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"double-chevron-left",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 17L8 12.5L12.5 8M16.5 17L12 12.5L16.5 8",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),qt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"double-chevron-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 8L17 12.5L12.5 17M8.5 8L13 12.5L8.5 17",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ot=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"double-chevron-up",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 12.5L12.5 8L17 12.5M8 16.5L12.5 12L17 16.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Pt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"download",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M19.5 17V19.5H5.5V17M12.5 16L12.5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Ut=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"drag-handle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M9.5 8C10.3284 8 11 7.32843 11 6.5C11 5.67157 10.3284 5 9.5 5C8.67157 5 8 5.67157 8 6.5C8 7.32843 8.67157 8 9.5 8Z",fill:"currentColor"}),P.jsx("path",{d:"M9.5 14C10.3284 14 11 13.3284 11 12.5C11 11.6716 10.3284 11 9.5 11C8.67157 11 8 11.6716 8 12.5C8 13.3284 8.67157 14 9.5 14Z",fill:"currentColor"}),P.jsx("path",{d:"M11 18.5C11 19.3284 10.3284 20 9.5 20C8.67157 20 8 19.3284 8 18.5C8 17.6716 8.67157 17 9.5 17C10.3284 17 11 17.6716 11 18.5Z",fill:"currentColor"}),P.jsx("path",{d:"M15.5 8C16.3284 8 17 7.32843 17 6.5C17 5.67157 16.3284 5 15.5 5C14.6716 5 14 5.67157 14 6.5C14 7.32843 14.6716 8 15.5 8Z",fill:"currentColor"}),P.jsx("path",{d:"M17 12.5C17 13.3284 16.3284 14 15.5 14C14.6716 14 14 13.3284 14 12.5C14 11.6716 14.6716 11 15.5 11C16.3284 11 17 11.6716 17 12.5Z",fill:"currentColor"}),P.jsx("path",{d:"M15.5 20C16.3284 20 17 19.3284 17 18.5C17 17.6716 16.3284 17 15.5 17C14.6716 17 14 17.6716 14 18.5C14 19.3284 14.6716 20 15.5 20Z",fill:"currentColor"})]})})),Nt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"drop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.5 14.5C18.5 18 16 20.5 12.5 20.5C9 20.5 6.5 18 6.5 14.5C6.5 11 9.5 7.50001 12.5 4.5C15.5 7.5 18.5 11 18.5 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Qt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"earth-americas",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M7 13L5.5 9L10 5H15V10L14 9H11L9.5 11L10.5 12H12V13L13 14.5H15.5L18.5 17L15.5 19.5L10.5 20V17L12.5 15L9 13L7 10.5V13Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("circle",{cx:12.5,cy:12.5,r:8,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Gt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"earth-globe",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 16.5H19.5M5.5 8.5H19.5M4.5 12.5H20.5M12.5 20.5C12.5 20.5 8 18.5 8 12.5C8 6.5 12.5 4.5 12.5 4.5M12.5 4.5C12.5 4.5 17 6.5 17 12.5C17 18.5 12.5 20.5 12.5 20.5M12.5 4.5V20.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Xt=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"edit",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M15 7L18 10M6 19L7 15L17 5L20 8L10 18L6 19Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Yt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"ellipsis-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M6.5 11C7.32843 11 8 11.6716 8 12.5C8 13.3284 7.32843 14 6.5 14C5.67157 14 5 13.3284 5 12.5C5 11.6716 5.67157 11 6.5 11Z",fill:"currentColor"}),P.jsx("path",{d:"M12.5 11C13.3284 11 14 11.6716 14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11Z",fill:"currentColor"}),P.jsx("path",{d:"M18.5 11C19.3284 11 20 11.6716 20 12.5C20 13.3284 19.3284 14 18.5 14C17.6716 14 17 13.3284 17 12.5C17 11.6716 17.6716 11 18.5 11Z",fill:"currentColor"})]})})),$t=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"ellipsis-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M14 6.5C14 7.32843 13.3284 8 12.5 8C11.6716 8 11 7.32843 11 6.5C11 5.67157 11.6716 5 12.5 5C13.3284 5 14 5.67157 14 6.5Z",fill:"currentColor"}),P.jsx("path",{d:"M14 12.5C14 13.3284 13.3284 14 12.5 14C11.6716 14 11 13.3284 11 12.5C11 11.6716 11.6716 11 12.5 11C13.3284 11 14 11.6716 14 12.5Z",fill:"currentColor"}),P.jsx("path",{d:"M14 18.5C14 19.3284 13.3284 20 12.5 20C11.6716 20 11 19.3284 11 18.5C11 17.6716 11.6716 17 12.5 17C13.3284 17 14 17.6716 14 18.5Z",fill:"currentColor"})]})})),Kt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"enter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M6 14.5H19.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M10 18.5L6 14.5L10 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Jt=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"enter-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M19 14.5H5.5V7",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M15 18.5L19 14.5L15 10.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),er=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"envelope",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M20.5 18.5H4.5V6.5H20.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M20.5 18.5L17.75 15.5L15 12.5M4.5 18.5L10 12.5M20.5 6.5L12.5 15L4.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),tr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"equal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M7.5 4.5H3.5V20.5H7.5",stroke:"currentColor",strokeWidth:1.2}),P.jsx("path",{d:"M17.5 20.5L21.5 20.5L21.5 4.5L17.5 4.5",stroke:"currentColor",strokeWidth:1.2}),P.jsx("path",{d:"M9 10.5H16",stroke:"currentColor",strokeWidth:1.2}),P.jsx("path",{d:"M9 14.5H16",stroke:"currentColor",strokeWidth:1.2})]})})),rr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"error-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5ZM13 14.5V16H12V14.5H13ZM12 9V13H13V9H12Z",fill:"currentColor"})})})),nr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"error-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 16V14.5M12.5 9V13M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),or=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"expand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M14 6.5H18.5V11M11 18.5H6.5V14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M18.5 6.5L14 11M6.5 18.5L11 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),ir=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"eye-closed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7 15.5L5.5 17.5M20.5 12.5C19.8612 13.5647 19.041 14.6294 18.0008 15.501M18.0008 15.501C16.5985 16.676 14.7965 17.5 12.5 17.5M18.0008 15.501L18 15.5M18.0008 15.501L19.5 17.5M12.5 17.5C8.5 17.5 6 15 4.5 12.5M12.5 17.5V20M15.5 17L16.5 19.5M9.5 17L8.5 19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),sr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"eye-open",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.39999 12.5C9.39999 10.7879 10.7879 9.39999 12.5 9.39999C14.2121 9.39999 15.6 10.7879 15.6 12.5C15.6 14.2121 14.2121 15.6 12.5 15.6C10.7879 15.6 9.39999 14.2121 9.39999 12.5Z",fill:"currentColor"}),P.jsx("path",{d:"M12.5 7.5C8.5 7.5 6 10 4.5 12.5C6 15 8.5 17.5 12.5 17.5C16.5 17.5 19 15 20.5 12.5C19 10 16.5 7.5 12.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),ar=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"filter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11 12L6 7V6L19 6L19 7L14 12V17L11 19V12Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})})),lr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"folder",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11.5 8.5H19.5V18.5H5.5V5.5H10.5L11.5 8.5ZM11.5 8.5H5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),dr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"generate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M9 5.30423C6.33576 6.60253 4.5 9.33688 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5V14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16 11L12.5 14.5L9 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),cr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"groq",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M13 13H21L13 21L13 13Z",fill:"currentColor"}),P.jsx("path",{d:"M12 12V4L4 12H12Z",fill:"currentColor"}),P.jsx("path",{d:"M12 13H4L12 21V13Z",fill:"currentColor"})]})})),ur=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"heart-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),hr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"heart",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17 16C15.8 17.3235 12.5 20.5 12.5 20.5C12.5 20.5 9.2 17.3235 8 16C5.2 12.9118 4.5 11.7059 4.5 9.5C4.5 7.29412 6.1 5.5 8.5 5.5C10.5 5.5 11.7 6.82353 12.5 8.14706C13.3 6.82353 14.5 5.5 16.5 5.5C18.9 5.5 20.5 7.29412 20.5 9.5C20.5 11.7059 19.8 12.9118 17 16Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),pr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"help-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),fr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"home",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M6.5 8.75V18.5H18.5V8.75M4.5 10L12.5 5L20.5 10M14.5 18.5V11.5H10.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),gr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"ice-cream",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 13.5L12.5 20.5L15.5 13.5M12.5 8.26389C11.9692 7.78885 11.2684 7.5 10.5 7.5C8.84315 7.5 7.5 8.84315 7.5 10.5C7.5 12.1569 8.84315 13.5 10.5 13.5C11.2684 13.5 11.9692 13.2111 12.5 12.7361M9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5M17.5 10.5C17.5 12.1569 16.1569 13.5 14.5 13.5C12.8431 13.5 11.5 12.1569 11.5 10.5C11.5 8.84315 12.8431 7.5 14.5 7.5C16.1569 7.5 17.5 8.84315 17.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),mr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"image",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{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",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),xr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"image-remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 11V6.5H19.5V11M5.5 14V18.5H19.5V14M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),wr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"images",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.5 7.5H20.5V19.5H6.5V17.5M4.5 14.5L7.79289 11.2071C8.18342 10.8166 8.81658 10.8166 9.20711 11.2071L11.8867 13.8867C12.2386 14.2386 12.7957 14.2782 13.1938 13.9796L14.1192 13.2856C14.3601 13.1049 14.6696 13.0424 14.9618 13.1154L18.5 14M4.5 5.5H18.5V17.5H4.5V5.5ZM14.5 9.5C14.5 10.0523 14.0523 10.5 13.5 10.5C12.9477 10.5 12.5 10.0523 12.5 9.5C12.5 8.94772 12.9477 8.5 13.5 8.5C14.0523 8.5 14.5 8.94772 14.5 9.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),vr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"info-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 12.5C21 17.1944 17.1944 21 12.5 21C7.80558 21 4 17.1944 4 12.5C4 7.80558 7.80558 4 12.5 4C17.1944 4 21 7.80558 21 12.5ZM12 10.5V9H13V10.5H12ZM13 16V12H12V16H13Z",fill:"currentColor"})})})),Cr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"info-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 10.5V9M12.5 12V16M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),jr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"inline-element",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 5V20M19.5 5V20M8.5 6.5H16.5V18.5H8.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),yr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"inline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 6.5H19.5V18.5H12.5M12.5 6.5H5.5V18.5H12.5M12.5 6.5V18.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),kr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"insert-above",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M14.5 10.5556L10.5 10.5556M12.5 12.5L12.5 8.5M18.5 5.5L6.5 5.5M18.5 19.5L6.5 19.5L6.5 15.5L18.5 15.5L18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})})),Lr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"insert-below",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 14.5H14.5M12.5 12.5V16.5M6.5 19.5H18.5M6.5 5.5H18.5V9.5H6.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"square",strokeLinejoin:"round"})})})),Mr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"italic",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.43 18H11.7276L13.4551 9.86763H12.1576L10.43 18ZM13.3043 8.29849C13.8022 8.29849 14.2095 7.89112 14.2095 7.39322C14.2095 6.89532 13.8022 6.48795 13.3043 6.48795C12.8064 6.48795 12.399 6.89532 12.399 7.39322C12.399 7.89112 12.8064 8.29849 13.3043 8.29849Z",fill:"currentColor"})})})),br=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"joystick",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 16V14.5H15.5V16M13.5 10.5V14.5M11.5 10.5V14.5M15.5 7.5C15.5 9.15685 14.1569 10.5 12.5 10.5C10.8431 10.5 9.5 9.15685 9.5 7.5C9.5 5.84315 10.8431 4.5 12.5 4.5C14.1569 4.5 15.5 5.84315 15.5 7.5ZM18.5 19.5H6.5C5.94772 19.5 5.5 19.0523 5.5 18.5V17.5C5.5 16.9477 5.94772 16.5 6.5 16.5H18.5C19.0523 16.5 19.5 16.9477 19.5 17.5V18.5C19.5 19.0523 19.0523 19.5 18.5 19.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Hr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"launch",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M14 6.5H5.5V19.5H18.5V11M20.5 4.5L10.5 14.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16 4.5H20.5V9",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Vr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"leave",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M15.5 15V18.5H5.5V6.5H15.5V10M9 12.5H21.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M18.5 9.5L21.5 12.5L18.5 15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Rr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"lemon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.6569 10.3431L6.41422 14.5858C7.58579 15.7574 9.12132 16.3431 10.6569 16.3431M10.6569 10.3431L14.8995 6.1005C16.0711 7.27208 16.6569 8.80761 16.6569 10.3431M10.6569 10.3431L10.6569 16.3431M10.6569 10.3431L16.6569 10.3431M10.6569 10.3431L14.8995 14.5858M14.8995 14.5858C13.7279 15.7574 12.1924 16.3431 10.6569 16.3431M14.8995 14.5858C16.0711 13.4142 16.6569 11.8787 16.6569 10.3431M16.3137 4.68629C19.4379 7.81049 19.4379 12.8758 16.3137 16C13.1895 19.1242 8.12419 19.1242 5 16L16.3137 4.68629Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Br=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"link",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11 12.5L12.5 14C13.281 14.781 14.719 14.781 15.5 14L18.5 11C19.281 10.219 19.281 8.78105 18.5 8L18 7.5C17.2189 6.71895 15.781 6.71895 15 7.5L13 9.5M12 15.5L10 17.5C9.21895 18.281 7.78105 18.281 7 17.5L6.5 17C5.71895 16.219 5.71896 14.781 6.5 14L9.50001 11C10.2811 10.219 11.719 10.2189 12.5 11L14 12.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Tr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"link-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.5 11C19.281 10.219 19.281 8.78108 18.5 8.00003L18 7.50003C17.2189 6.71898 15.781 6.71898 15 7.50003L13 9.50003M15.5 14C14.7189 14.7811 13.281 14.7811 12.5 14M6.5 14C5.71895 14.7811 5.71894 16.219 6.49999 17L6.99999 17.5C7.78104 18.2811 9.21894 18.2811 9.99999 17.5L12 15.5M12.5 11C11.719 10.219 10.281 10.219 9.5 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Ir=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"lock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M15.5 11.5V8.5C15.5 6.5 14 5.5 12.5 5.5C11 5.5 9.5 6.5 9.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Zr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"logo-js",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM12.5254 16.1572C12.5254 17.4189 11.7742 18.1536 10.4792 18.1536C9.24243 18.1536 8.49121 17.4189 8.45801 16.2942V16.261H9.67407V16.2859C9.69897 16.7466 9.9729 17.0703 10.4626 17.0703C10.9939 17.0703 11.272 16.7507 11.272 16.1489V12.011H12.5254V16.1572ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})})),Sr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"logo-ts",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20 5H5V20H20V5ZM11.0769 18H9.82349V13.0444H8.02637V12.011H12.874V13.0444H11.0769V18ZM18.2893 16.2153C18.2893 17.4023 17.3679 18.1536 15.8738 18.1536C14.4419 18.1536 13.5371 17.4688 13.4666 16.4062L13.4624 16.3398H14.6702L14.6743 16.3813C14.72 16.8296 15.2056 17.1326 15.907 17.1326C16.5752 17.1326 17.0359 16.813 17.0359 16.3523V16.3481C17.0359 15.9539 16.7412 15.7339 15.9983 15.5803L15.3674 15.4517C14.1223 15.1985 13.5869 14.6174 13.5869 13.7085V13.7043C13.5869 12.592 14.5415 11.8574 15.8696 11.8574C17.2683 11.8574 18.0901 12.5962 18.1689 13.5964L18.1731 13.6504H16.9944L16.9861 13.6006C16.9155 13.1731 16.5005 12.8743 15.8696 12.8743C15.2512 12.8784 14.8403 13.1606 14.8403 13.6089V13.613C14.8403 14.0032 15.1309 14.2356 15.8364 14.3809L16.4714 14.5095C17.7373 14.771 18.2893 15.2773 18.2893 16.2112V16.2153Z",fill:"currentColor"})})})),Wr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"master-detail",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7 9.5H10M11.5 6.5V18.5M7 12.5H10M13 9.5H18M7 15.5H10M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),_r=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"menu",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M6 7.5H19M6 17.5H19M6 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Er=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"mobile-device",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M7.5 6.5C7.5 5.39543 8.39543 4.5 9.5 4.5H15.5C16.6046 4.5 17.5 5.39543 17.5 6.5V18.5C17.5 19.6046 16.6046 20.5 15.5 20.5H9.5C8.39543 20.5 7.5 19.6046 7.5 18.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M13.5 17.5C13.5 18.0523 13.0523 18.5 12.5 18.5C11.9477 18.5 11.5 18.0523 11.5 17.5C11.5 16.9477 11.9477 16.5 12.5 16.5C13.0523 16.5 13.5 16.9477 13.5 17.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),zr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"moon",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M19.6065 16.1775C18.9417 16.387 18.234 16.5 17.5 16.5C13.634 16.5 10.5 13.366 10.5 9.5C10.5 7.54163 11.3042 5.77109 12.6004 4.50062C12.567 4.50021 12.5335 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C15.5924 20.5 18.275 18.7454 19.6065 16.1775Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Fr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"number",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.0165 17.6336H3.83636V16.4336H21.0165V17.6336Z",fill:"currentColor"}),P.jsx("path",{d:"M7.09808 13.3967V7.508H5.74066L3.83636 8.78241V10.091L5.65277 8.88495H5.74066V13.3967H3.84125V14.5539H8.89984V13.3967H7.09808Z",fill:"currentColor"}),P.jsx("path",{d:"M9.81781 9.63202V9.66132H11.1069V9.62714C11.1069 8.95331 11.5756 8.49432 12.2739 8.49432C12.9575 8.49432 13.4018 8.89471 13.4018 9.50507C13.4018 9.9787 13.1528 10.3498 12.1909 11.3117L9.89594 13.5822V14.5539H14.8618V13.3869H11.7807V13.299L13.1577 11.9855C14.3491 10.843 14.7543 10.1838 14.7543 9.41229C14.7543 8.19159 13.7729 7.36639 12.3178 7.36639C10.8383 7.36639 9.81781 8.28436 9.81781 9.63202Z",fill:"currentColor"}),P.jsx("path",{d:"M17.6694 11.4631H18.5092C19.3198 11.4631 19.8422 11.8683 19.8422 12.4982C19.8422 13.1183 19.3295 13.5139 18.5239 13.5139C17.767 13.5139 17.2592 13.133 17.2104 12.5324H15.9262C15.9897 13.8508 17.0248 14.6955 18.5629 14.6955C20.1401 14.6955 21.2192 13.841 21.2192 12.591C21.2192 11.6584 20.6528 11.0334 19.7006 10.9211V10.8332C20.4721 10.6769 20.9457 10.0666 20.9457 9.23651C20.9457 8.12323 19.9741 7.36639 18.5434 7.36639C17.0541 7.36639 16.1118 8.17694 16.0629 9.50018H17.2983C17.3422 8.88007 17.8061 8.48456 18.4995 8.48456C19.2075 8.48456 19.6567 8.85565 19.6567 9.44159C19.6567 10.0324 19.1977 10.4182 18.4946 10.4182H17.6694V11.4631Z",fill:"currentColor"})]})})),Ar=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"ok-hand",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M15.9957 11.5C14.8197 10.912 11.9957 9 10.4957 9C8.9957 9 5.17825 11.7674 6 13C7 14.5 9.15134 11.7256 10.4957 12C11.8401 12.2744 13 13.5 13 14.5C13 15.5 11.8401 16.939 10.4957 16.5C9.15134 16.061 8.58665 14.3415 7.4957 14C6.21272 13.5984 5.05843 14.6168 5.5 15.5C5.94157 16.3832 7.10688 17.6006 8.4957 19C9.74229 20.2561 11.9957 21.5 14.9957 20C17.9957 18.5 18.5 16.2498 18.5 13C18.5 11.5 13.7332 5.36875 11.9957 4.5C10.9957 4 10 5 10.9957 6.5C11.614 7.43149 13.5 9.27705 14 10.3751M15.5 8C15.5 8 15.3707 7.5 14.9957 6C14.4957 4 15.9957 3.5 16.4957 4.5C17.1281 5.76491 18.2872 10.9147 18.4957 13",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Dr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"olist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10 7.5H19M10 12.5H19M10 17.5H19M5 18.5H7.5L7 17.5L7.5 16.5H5M5 6.5H6.5V8.5M5 8.5H6.5M6.5 8.5H8M8 13.5H6L7 11.5H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),qr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"overage",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M18.5 11V6.5H14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M6.5 18.5L9 16L12 13L18.5 6.5M3 13.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Or=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"package",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 13V22M12.5 13L4.5 8M12.5 13L20.5 8M8.5 5.5L16.5 10.5M4.5 8L12.5 3L20.5 8V17L12.5 22L4.5 17V8Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Pr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"pause",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",fill:"currentColor"}),P.jsx("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",fill:"currentColor"}),P.jsx("path",{d:"M10.5 7.5H8.5V17.5H10.5V7.5Z",stroke:"currentColor",strokeWidth:1.2}),P.jsx("path",{d:"M16.5 7.5H14.5V17.5H16.5V7.5Z",stroke:"currentColor",strokeWidth:1.2})]})})),Ur=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"pin",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 14 15.5 17.5 12.5 20.5C9.5 17.5 6.5 14 6.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M14 10.5C14 11.3284 13.3284 12 12.5 12C11.6716 12 11 11.3284 11 10.5C11 9.67157 11.6716 9 12.5 9C13.3284 9 14 9.67157 14 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Nr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"pin-removed",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7.39787 14C8.51075 16.2897 10.5054 18.5054 12.5 20.5C14.4946 18.5054 16.4892 16.2897 17.6021 14M6.52009 11C6.50681 10.8334 6.5 10.6667 6.5 10.5C6.5 7 9 4.5 12.5 4.5C16 4.5 18.5 7 18.5 10.5C18.5 10.6667 18.4932 10.8334 18.4799 11M3 12.5H22",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Qr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"play",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M7.5 18.5V6.5L17.5 12.5L7.5 18.5Z",fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Gr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"plug",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M13.25 8.5L16.75 5M16.25 11.5L19.75 8M9.25 15.5L5.25 19.5M7.75 14L9.75 12C8.25 10 8.75 9 9.75 8C10.15 7.6 11.25 6.5 11.25 6.5L18.25 13.5C18.25 13.5 17.3825 14.3675 16.75 15C15.75 16 14.75 16.5 12.75 15L10.75 17L7.75 14Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Xr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"presentation",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 18H5.5V8.5H19.5V18H14.5M10.5 18L9 22M10.5 18H14.5M14.5 18L16 22M4.5 8.5H20.5V6.5H4.5V8.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Yr=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"publish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M4.99997 5.50006H20M12.5 9.00005V20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7.5 14L12.5 9.00006L17.5 14",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),$r=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"read-only",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M15 7L18 10M10 12L7 15L6 19L10 18L13 15M12 10L17 5L20 8L15 13M19 19L5 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Kr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"remove-circle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 12.4H17M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Jr=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"remove",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5 12.5H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),en=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"reset",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M4.56189 13.5L4.14285 13.9294C4.25676 14.0406 4.41017 14.1019 4.56932 14.1C4.72847 14.098 4.88032 14.0329 4.99144 13.9189L4.56189 13.5ZM9.92427 15.9243L15.9243 9.92427L15.0757 9.07574L9.07574 15.0757L9.92427 15.9243ZM9.07574 9.92426L15.0757 15.9243L15.9243 15.0757L9.92426 9.07574L9.07574 9.92426ZM19.9 12.5C19.9 16.5869 16.5869 19.9 12.5 19.9V21.1C17.2496 21.1 21.1 17.2496 21.1 12.5H19.9ZM5.1 12.5C5.1 8.41309 8.41309 5.1 12.5 5.1V3.9C7.75035 3.9 3.9 7.75035 3.9 12.5H5.1ZM12.5 5.1C16.5869 5.1 19.9 8.41309 19.9 12.5H21.1C21.1 7.75035 17.2496 3.9 12.5 3.9V5.1ZM5.15728 13.4258C5.1195 13.1227 5.1 12.8138 5.1 12.5H3.9C3.9 12.8635 3.92259 13.2221 3.9665 13.5742L5.15728 13.4258ZM12.5 19.9C9.9571 19.9 7.71347 18.6179 6.38048 16.6621L5.38888 17.3379C6.93584 19.6076 9.54355 21.1 12.5 21.1V19.9ZM4.99144 13.9189L7.42955 11.4189L6.57045 10.5811L4.13235 13.0811L4.99144 13.9189ZM4.98094 13.0706L2.41905 10.5706L1.58095 11.4294L4.14285 13.9294L4.98094 13.0706Z",fill:"currentColor"})})})),tn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"restore",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5.88468 17C7.32466 19.1128 9.75033 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5V13.5M12.5 8V12.5L15.5 15.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7 11L4.5 13.5L2 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),rn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"retrieve",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M16 14L12.5 10.5L9 14M5.5 7.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M12.5 10.5L12.5 17.5M19.5 7.5V19.5H5.5V7.5L7.5 5.5H17.5L19.5 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),nn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"retry",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M20 9L10 9C7.51472 9 5.5 11.0147 5.5 13.5C5.5 15.9853 7.51472 18 10 18H20",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16 13L20 9L16 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),on=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"revert",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5 9L15 9C17.4853 9 19.5 11.0147 19.5 13.5C19.5 15.9853 17.4853 18 15 18H5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M9 13L5 9L9 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),sn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"robot",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 15.5V17.5M12.5 8.5V6.5M12.5 6.5C13.3284 6.5 14 5.82843 14 5C14 4.17157 13.3284 3.5 12.5 3.5C11.6716 3.5 11 4.17157 11 5C11 5.82843 11.6716 6.5 12.5 6.5ZM20.5 20.5V19.5C20.5 18.3954 19.6046 17.5 18.5 17.5H6.5C5.39543 17.5 4.5 18.3954 4.5 19.5V20.5H20.5ZM11.5 12C11.5 12.5523 11.0523 13 10.5 13C9.94772 13 9.5 12.5523 9.5 12C9.5 11.4477 9.94772 11 10.5 11C11.0523 11 11.5 11.4477 11.5 12ZM15.5 12C15.5 12.5523 15.0523 13 14.5 13C13.9477 13 13.5 12.5523 13.5 12C13.5 11.4477 13.9477 11 14.5 11C15.0523 11 15.5 11.4477 15.5 12ZM8.5 15.5H16.5C17.6046 15.5 18.5 14.6046 18.5 13.5V10.5C18.5 9.39543 17.6046 8.5 16.5 8.5H8.5C7.39543 8.5 6.5 9.39543 6.5 10.5V13.5C6.5 14.6046 7.39543 15.5 8.5 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),an=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"rocket",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 20.5L15.5 14M11 9.49999L4.5 12.5M9 14C9 14 7.54688 14.9531 6.5 16C5.5 17 4.5 20.5 4.5 20.5C4.5 20.5 8 19.5 9 18.5C10 17.5 11 16 11 16M9 14C9 14 10.1 9.9 12.5 7.5C15.5 4.5 20.5 4.5 20.5 4.5C20.5 4.5 20.5 9.5 17.5 12.5C15.7492 14.2508 11 16 11 16L9 14ZM16.5 9.99999C16.5 10.8284 15.8284 11.5 15 11.5C14.1716 11.5 13.5 10.8284 13.5 9.99999C13.5 9.17157 14.1716 8.49999 15 8.49999C15.8284 8.49999 16.5 9.17157 16.5 9.99999Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),ln=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"schema",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 9.5V12.5M12.5 12.5H8.5V15.5M12.5 12.5H16.5V15.5M10.5 5.5H14.5V9.5H10.5V5.5ZM6.5 15.5H10.5V19.5H6.5V15.5ZM14.5 15.5H18.5V19.5H14.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),dn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"search",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M15.0355 15.0355L19 19M16.5 11.5C16.5 14.2614 14.2614 16.5 11.5 16.5C8.73858 16.5 6.5 14.2614 6.5 11.5C6.5 8.73858 8.73858 6.5 11.5 6.5C14.2614 6.5 16.5 8.73858 16.5 11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),cn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"select",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M16.5 15.5L12.5 19.5L8.5 15.5M8.5 9.5L12.5 5.5L16.5 9.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),un=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"share",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M15 9.5H18.5V19.5H6.5L6.5 9.5H10M12.5 16V3.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M9.5 6.5L12.5 3.5L15.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),hn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"sort",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8.5 18.5V6M16.5 19V6.5M12 15L8.5 18.5L5 15M13 10L16.5 6.5L20 10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),pn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"sparkle",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 10.5C8.5 12.5 5 12.5 5 12.5C5 12.5 8.5 12.5 10.5 14.5C12.5 16.5 12.5 20 12.5 20C12.5 20 12.5 16.5 14.5 14.5C16.5 12.5 20 12.5 20 12.5C20 12.5 16.5 12.5 14.5 10.5C12.5 8.5 12.5 5 12.5 5C12.5 5 12.5 8.5 10.5 10.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),fn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"sparkles",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M11 3.5V5M11 5V6.5M11 5H12.5M11 5H9.5M9.5 15C9.5 15 12.2308 14.7692 13.5 13.5C14.7692 12.2308 15 9.5 15 9.5C15 9.5 15.2308 12.2308 16.5 13.5C17.7692 14.7692 20.5 15 20.5 15C20.5 15 17.7692 15.2308 16.5 16.5C15.2308 17.7692 15 20.5 15 20.5C15 20.5 14.7692 17.7692 13.5 16.5C12.2308 15.2308 9.5 15 9.5 15ZM4.5 10C4.5 10 5.72308 9.87692 6.3 9.3C6.87692 8.72308 7 7.5 7 7.5C7 7.5 7.12308 8.72308 7.7 9.3C8.27692 9.87692 9.5 10 9.5 10C9.5 10 8.27692 10.1231 7.7 10.7C7.12308 11.2769 7 12.5 7 12.5C7 12.5 6.87692 11.2769 6.3 10.7C5.72308 10.1231 4.5 10 4.5 10Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})})})),gn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"spinner",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),mn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"split-horizontal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M19.5 10.5V20.5H5.5V10.5M19.5 10.5H5.5M19.5 10.5V4.5H5.5V10.5M12.5 13V15.5M12.5 18V15.5M12.5 15.5H15M12.5 15.5H10",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),xn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"split-vertical",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10.5 5.5V19.5M13 12.5H15.5M18 12.5H15.5M15.5 12.5V15M15.5 12.5V10M4.5 5.5H20.5V19.5H4.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),wn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"square",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("rect",{x:5.5,y:5.5,width:14,height:14,stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),vn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"stack-compact",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 15.5V18.5H19.5V15.5M5.5 15.5H19.5M5.5 15.5V9.5M19.5 15.5V9.5M5.5 9.5V6.5H19.5V9.5M5.5 9.5H19.5M5.5 12.5H19.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Cn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"stack",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5.5 12.5H19.5M5.5 18.5H19.5V6.5H5.5V18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),jn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"star",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M13 4L15.2747 9.8691L21.5595 10.2188L16.6806 14.1959L18.2901 20.2812L13 16.87L7.70993 20.2812L9.31941 14.1959L4.44049 10.2188L10.7253 9.8691L13 4Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),yn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"stop",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("rect",{x:7.5,y:7.5,width:10,height:10,fill:"currentColor",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),kn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"strikethrough",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.5656 7.73438C11.0656 7.73438 10.0734 8.48438 10.0734 9.625C10.0734 10.2317 10.3649 10.6613 11.0519 11H8.90358C8.71703 10.6199 8.62813 10.1801 8.62813 9.67188C8.62813 7.75781 10.2297 6.46094 12.6125 6.46094C14.7922 6.46094 16.4172 7.75781 16.5344 9.57812H15.1203C14.925 8.42188 13.9719 7.73438 12.5656 7.73438Z",fill:"currentColor"}),P.jsx("path",{d:"M12.4875 18.2656C10.0969 18.2656 8.44844 17 8.3 15.0547H9.72188C9.89375 16.2344 11.0188 16.9844 12.6203 16.9844C14.1359 16.9844 15.2531 16.1641 15.2531 15.0469C15.2531 14.6375 15.1255 14.292 14.8589 14H16.5912C16.6638 14.266 16.6984 14.5566 16.6984 14.875C16.6984 16.9453 15.0656 18.2656 12.4875 18.2656Z",fill:"currentColor"}),P.jsx("path",{d:"M7 13.1H18V11.9H7V13.1Z",fill:"currentColor"})]})})),Ln=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"string",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M11.6748 15.5227H13.1855L9.87842 6.36304H8.34863L5.0415 15.5227H6.50146L7.3457 13.0916H10.8369L11.6748 15.5227ZM9.04053 8.02612H9.14844L10.4751 11.8982H7.70752L9.04053 8.02612Z",fill:"currentColor"}),P.jsx("path",{d:"M16.8101 14.488C16.0674 14.488 15.5278 14.1262 15.5278 13.5042C15.5278 12.8948 15.9595 12.571 16.9116 12.5076L18.6001 12.3997V12.9773C18.6001 13.8342 17.8384 14.488 16.8101 14.488ZM16.4609 15.637C17.3687 15.637 18.124 15.2434 18.5366 14.5515H18.6445V15.5227H19.9585V10.8C19.9585 9.34009 18.981 8.47681 17.248 8.47681C15.6802 8.47681 14.563 9.23853 14.4233 10.4255H15.7437C15.896 9.93677 16.4229 9.65747 17.1846 9.65747C18.1177 9.65747 18.6001 10.0701 18.6001 10.8V11.3967L16.7275 11.5046C15.0835 11.6062 14.1567 12.3235 14.1567 13.5676C14.1567 14.8308 15.1279 15.637 16.4609 15.637Z",fill:"currentColor"}),P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9585 18.637L5.0415 18.637V17.437L19.9585 17.437V18.637Z",fill:"currentColor"})]})})),Mn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"sun",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M19 12.5H22M3 12.5H6M12.5 6V3M12.5 22V19M17.3891 7.61091L19.5104 5.48959M5.48959 19.5104L7.61091 17.3891M7.61091 7.61091L5.48959 5.48959M19.5104 19.5104L17.3891 17.3891M16 12.5C16 14.433 14.433 16 12.5 16C10.567 16 9 14.433 9 12.5C9 10.567 10.567 9 12.5 9C14.433 9 16 10.567 16 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),bn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"sync",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M13.5 4.5H12.5C8.08172 4.5 4.5 8.08172 4.5 12.5C4.5 15.6631 6.33576 18.3975 9 19.6958M11.5 20.5H12.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 9.33688 18.6642 6.60253 16 5.30423",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M14 17.5619L11.5 20.5L14.5 23.0619M11 7.43811L13.5 4.50001L10.5 1.93811",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Hn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"tag",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.5 20L5 20L5 12.5L12.5 5L20 12.5L12.5 20Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M11 15.5C11 16.3284 10.3284 17 9.5 17C8.67157 17 8 16.3284 8 15.5C8 14.6716 8.67157 14 9.5 14C10.3284 14 11 14.6716 11 15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Vn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"tags",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.1562 7.93179L13.9717 6.11633L20.3553 12.5L13.9717 18.8836L10.6855 18.8836M11.0283 18.8836L17.4119 12.5L11.0283 6.11633L4.64462 12.5L4.64462 18.8836L11.0283 18.8836ZM9.75153 15.0534C9.75153 15.7585 9.17992 16.3302 8.47481 16.3302C7.76969 16.3302 7.19808 15.7585 7.19808 15.0534C7.19808 14.3483 7.76969 13.7767 8.47481 13.7767C9.17992 13.7767 9.75153 14.3483 9.75153 15.0534Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Rn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"terminal",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8.5 9.5L11.5 12.5L8.5 15.5M13 15.5H17M5.5 6.5H19.5V18.5H5.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Bn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"th-large",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 6.5V12.5M12.5 12.5V18.5M12.5 12.5H20.5M12.5 12.5H4.5M4.5 6.5H20.5V18.5H4.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Tn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"th-list",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 6.5V10.5M9.5 10.5V14.5M9.5 10.5H20.5M9.5 10.5H4.5M9.5 14.5V18.5M9.5 14.5H20.5M9.5 14.5H4.5M4.5 6.5H20.5V18.5H4.5V6.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),In=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"tiers",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M16.5 14.5L20.5 16.5L12.5 20.5L4.5 16.5L8.5 14.5M16.5 10.5L20.5 12.5L12.5 16.5L4.5 12.5L8.5 10.5M12.5 12.5L20.5 8.5L12.5 4.5L4.5 8.5L12.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Zn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"toggle-arrow-right",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M10 16.5V8.5L16 12.5L10 16.5Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round"})})})),Sn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"token",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17.5711 12.5C17.5711 15.2614 15.3325 17.5 12.5711 17.5M7.57107 12.5C7.57107 9.73858 9.80964 7.5 12.5711 7.5M20.5 12.5C20.5 16.9183 16.9183 20.5 12.5 20.5C8.08172 20.5 4.5 16.9183 4.5 12.5C4.5 8.08172 8.08172 4.5 12.5 4.5C16.9183 4.5 20.5 8.08172 20.5 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Wn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"transfer",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M19.5 16.5H6M5.5 8.5L19 8.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M16 13L19.5 16.5L16 20M9 12L5.5 8.5L9 5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),_n=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"translate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.4 5.4H4V6.6H13.2189C13.1612 6.78478 13.0895 6.99578 13.0025 7.22211C12.7032 8.00031 12.2402 8.91125 11.5757 9.57574L10 11.1515L9.42426 10.5757C8.72102 9.8725 8.25297 9.16987 7.96199 8.64611C7.81668 8.38455 7.71617 8.16874 7.65305 8.02146C7.62151 7.94787 7.59937 7.89154 7.5857 7.85534C7.57886 7.83725 7.57415 7.8242 7.57144 7.81657L7.56886 7.80922C7.56886 7.80922 7.56921 7.81026 7 8C6.43079 8.18974 6.43091 8.19009 6.43091 8.19009L6.43133 8.19135L6.43206 8.19351L6.4341 8.19948L6.44052 8.21786C6.44587 8.23292 6.45336 8.25357 6.46313 8.27942C6.48266 8.33112 6.5113 8.40369 6.55008 8.49416C6.62758 8.67501 6.74582 8.92795 6.91301 9.22889C7.24703 9.83013 7.77898 10.6275 8.57574 11.4243L9.15147 12L4.57964 16.5718L4.57655 16.5749L4.57577 16.5757L5.4243 17.4242L5.42688 17.4216L10.0368 12.8117L12.6159 14.9609L13.3841 14.0391L10.8888 11.9597L12.4243 10.4243C13.2598 9.58875 13.7968 8.49969 14.1225 7.65289C14.2818 7.23863 14.395 6.87072 14.4696 6.6H16V5.4H10.6V4H9.4V5.4ZM17.4405 10L21.553 19.7672H20.2509L19.1279 17.1H14.8721L13.7491 19.7672H12.447L16.5595 10H17.4405ZM15.3773 15.9H18.6227L17 12.0462L15.3773 15.9Z",fill:"currentColor"})})})),En=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"trash",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5 6.5H20M10 6.5V4.5C10 3.94772 10.4477 3.5 11 3.5H14C14.5523 3.5 15 3.94772 15 4.5V6.5M12.5 9V17M15.5 9L15 17M9.5 9L10 17M18.5 6.5L17.571 18.5767C17.5309 19.0977 17.0965 19.5 16.574 19.5H8.42603C7.90349 19.5 7.46905 19.0977 7.42898 18.5767L6.5 6.5H18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),zn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"trend-upward",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M4.5 18.5L11.5 10.5L13.5 14.5L20.5 6.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M20.5 11V6.5H16",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Fn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"triangle-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M20.5 18.5H4.5L12.5 5.5L20.5 18.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),An=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"trolley",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 17.5L5.81763 6.26772C5.71013 5.81757 5.30779 5.5 4.84498 5.5H3M8 17.5H17M8 17.5C8.82843 17.5 9.5 18.1716 9.5 19C9.5 19.8284 8.82843 20.5 8 20.5C7.17157 20.5 6.5 19.8284 6.5 19C6.5 18.1716 7.17157 17.5 8 17.5ZM17 17.5C17.8284 17.5 18.5 18.1716 18.5 19C18.5 19.8284 17.8284 20.5 17 20.5C16.1716 20.5 15.5 19.8284 15.5 19C15.5 18.1716 16.1716 17.5 17 17.5ZM7.78357 14.5H17.5L19 7.5H6",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Dn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"truncate",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M5 12.5H20M8.5 19.5L12.5 15.5L16.5 19.5M16.5 5.5L12.5 9.5L8.5 5.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),qn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"twitter",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M18.8738 6.65751C18.1994 5.9447 17.2445 5.5 16.1857 5.5C14.1423 5.5 12.4857 7.15655 12.4857 9.2C12.4857 9.55263 12.535 9.89374 12.6272 10.2168C7.0826 9.56422 4.55703 6.02857 4.55703 6.02857C4.55703 6.02857 4.02846 9.2 6.14274 11.3143C5.08571 11.3143 4.55703 10.7857 4.55703 10.7857C4.55703 10.7857 4.55703 13.4286 7.19989 14.4857C6.67143 15.0143 5.61417 14.4857 5.61417 14.4857C5.97533 15.9303 7.45606 16.8562 8.82133 17.1358C6.67298 19.1676 3.5 18.7143 3.5 18.7143C5.14562 19.771 7.21334 20.3 9.31429 20.3C16.1214 20.3 19.8162 15.6315 19.8848 9.37762C20.8722 8.58943 22 7.08571 22 7.08571C22 7.08571 21.277 7.45458 19.6913 7.98315C21.277 6.92601 21.4714 5.5 21.4714 5.5C21.4714 5.5 20.4135 6.55789 18.8738 6.65751Z",fill:"currentColor"})})})),On=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"ulist",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M7.10153 17.5001C7.10153 17.8323 6.83221 18.1016 6.5 18.1016C6.16778 18.1016 5.89847 17.8323 5.89847 17.5001C5.89847 17.1678 6.16778 16.8985 6.5 16.8985C6.83221 16.8985 7.10153 17.1678 7.10153 17.5001Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7.10153 7.5C7.10153 7.83221 6.83221 8.10153 6.5 8.10153C6.16778 8.10153 5.89847 7.83221 5.89847 7.5C5.89847 7.16778 6.16778 6.89847 6.5 6.89847C6.83221 6.89847 7.10153 7.16778 7.10153 7.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7.10153 12.5C7.10153 12.8322 6.83221 13.1015 6.5 13.1015C6.16778 13.1015 5.89847 12.8322 5.89847 12.5C5.89847 12.1678 6.16778 11.8985 6.5 11.8985C6.83221 11.8985 7.10153 12.1678 7.10153 12.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M10 7.5H19M10 17.5H19M10 12.5H19",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Pn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"underline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M9.52791 7.11407H8.17V14.2582C8.17 16.5817 9.79195 18.2565 12.4927 18.2565C15.1934 18.2565 16.8154 16.5817 16.8154 14.2582V7.11407H15.4574V14.1677C15.4574 15.8122 14.3787 17.0042 12.4927 17.0042C10.6067 17.0042 9.52791 15.8122 9.52791 14.1677V7.11407Z",fill:"currentColor"}),P.jsx("path",{d:"M7 20.5H18",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Un=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"undo",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5.88468 17C7.32466 19.1128 9.75033 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5C8.08172 4.5 4.5 8.08172 4.5 12.5V13.5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7 11L4.5 13.5L2 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Nn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"unknown",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 13C12.5 11 14 11.5 14 10C14 9.34375 13.5 8.5 12.5 8.5C11.5 8.5 11 9 10.5 9.5M12.5 16V14.5M5.5 5.5H19.5V19.5H5.5V5.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Qn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"unlock",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M9.5 11.5V8.5C9.5 6.5 8 5.5 6.5 5.5C5 5.5 3.5 6.5 3.5 8.5V11.5M7.5 11.5H17.5V19.5H7.5V11.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Gn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"unpublish",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M5 19.5H20M12.5 16V5",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M17.5 11L12.5 16L7.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Xn=O.forwardRef((function(e,t){return P.jsxs("svg",{"data-sanity-icon":"upload",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:[P.jsx("path",{d:"M12.5 6.00003V15.5M5.5 15.5H19.5V19.5H5.5V15.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"}),P.jsx("path",{d:"M7.5 11L12.5 6.00003L17.5 11",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})]})})),Yn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"user",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M8 14.5C7 15 5.5 16 5.5 19.5H19.5C19.5 16 18.3416 15.1708 17 14.5C16 14 14 14 14 12.5C14 11 15 10.25 15 8.25C15 6.25 14 5.25 12.5 5.25C11 5.25 10 6.25 10 8.25C10 10.25 11 11 11 12.5C11 14 9 14 8 14.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),$n=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"users",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17.5 18.5H21.5C21.5 15 20.8416 14.1708 19.5 13.5C18.5 13 16.5 12.5 16.5 11C16.5 9.5 17.5 9 17.5 7C17.5 5 16.5 4 15 4C13.6628 4 12.723 4.79472 12.5347 6.38415M4.5 20.5C4.5 17 5.5 16 6.5 15.5C7.5 15 9.5 14.5 9.5 13C9.5 11.5 8.5 11 8.5 9C8.5 7 9.5 6 11 6C12.5 6 13.5 7 13.5 9C13.5 11 12.5 11.5 12.5 13C12.5 14.5 14.5 15 15.5 15.5C16.8416 16.1708 17.5 17 17.5 20.5H4.5Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),Kn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"warning-filled",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.741 5.12637C13.7357 3.41737 11.2643 3.41737 10.259 5.12637L3.7558 16.1818C2.73624 17.915 3.98595 20.1 5.99683 20.1H19.0032C21.014 20.1 22.2637 17.915 21.2442 16.1818L14.741 5.12637ZM11.9 9V13H13.1V9H11.9ZM13.1 16V14.5H11.9V16H13.1Z",fill:"currentColor"})})})),Jn=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"warning-outline",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M12.5 9V13M12.5 16V14.5M14.2239 5.43058L20.727 16.486C21.5113 17.8192 20.55 19.5 19.0032 19.5H5.99683C4.45 19.5 3.48869 17.8192 4.27297 16.486L10.7761 5.43058C11.5494 4.11596 13.4506 4.11596 14.2239 5.43058Z",stroke:"currentColor",strokeWidth:1.2,strokeLinejoin:"round"})})})),eo=O.forwardRef((function(e,t){return P.jsx("svg",{"data-sanity-icon":"wrench",width:"1em",height:"1em",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,...e,children:P.jsx("path",{d:"M17.0407 5.14624L17.4649 5.57051C17.6166 5.41887 17.6757 5.19783 17.6202 4.99071C17.5646 4.78359 17.4027 4.62189 17.1955 4.56656L17.0407 5.14624ZM14.4013 7.7856L13.977 7.36134C13.8288 7.50959 13.7687 7.72447 13.8185 7.92813L14.4013 7.7856ZM12.8778 6.26211L12.4535 5.83784V5.83784L12.8778 6.26211ZM11.8309 10.6568L12.2552 11.0811C12.4152 10.9211 12.4716 10.6847 12.401 10.4697L11.8309 10.6568ZM5.63925 16.8485L5.21498 16.4242H5.21498L5.63925 16.8485ZM5.63925 19.935L6.06351 19.5108H6.06351L5.63925 19.935ZM8.72581 19.935L9.15007 20.3593L8.72581 19.935ZM15.1184 13.5425L15.2301 12.953C15.0351 12.916 14.8344 12.9779 14.6941 13.1182L15.1184 13.5425ZM18.9718 12.3561L19.3961 12.7804L18.9718 12.3561ZM20.0877 8.19324L20.6674 8.03843C20.612 7.83125 20.4503 7.66934 20.2432 7.61375C20.0361 7.55816 19.815 7.61734 19.6634 7.76898L20.0877 8.19324ZM17.4483 10.8326L17.3058 11.4154C17.5094 11.4652 17.7243 11.4051 17.8726 11.2569L17.4483 10.8326ZM15 10.2339L14.4172 10.3764C14.4704 10.5938 14.6401 10.7635 14.8575 10.8167L15 10.2339ZM16.6164 4.72198L13.977 7.36134L14.8256 8.20986L17.4649 5.57051L16.6164 4.72198ZM13.3021 6.68637C14.2723 5.71612 15.6467 5.39501 16.8859 5.72593L17.1955 4.56656C15.5595 4.12966 13.7389 4.55245 12.4535 5.83784L13.3021 6.68637ZM12.401 10.4697C11.9779 9.18109 12.2794 7.70907 13.3021 6.68637L12.4535 5.83784C11.0985 7.19284 10.7021 9.14218 11.2608 10.844L12.401 10.4697ZM11.4066 10.2326L5.21498 16.4242L6.06351 17.2727L12.2552 11.0811L11.4066 10.2326ZM5.21498 16.4242C4.12834 17.5109 4.12834 19.2727 5.21498 20.3593L6.06351 19.5108C5.4455 18.8928 5.4455 17.8908 6.06351 17.2727L5.21498 16.4242ZM5.21498 20.3593C6.30163 21.446 8.06343 21.446 9.15007 20.3593L8.30155 19.5108C7.68353 20.1288 6.68153 20.1288 6.06351 19.5108L5.21498 20.3593ZM9.15007 20.3593L15.5426 13.9668L14.6941 13.1182L8.30155 19.5108L9.15007 20.3593ZM18.5475 11.9318C17.6463 12.8331 16.3968 13.1742 15.2301 12.953L15.0066 14.132C16.5466 14.4239 18.2023 13.9741 19.3961 12.7804L18.5475 11.9318ZM19.508 8.34804C19.8389 9.58721 19.5178 10.9616 18.5475 11.9318L19.3961 12.7804C20.6815 11.495 21.1043 9.67445 20.6674 8.03843L19.508 8.34804ZM17.8726 11.2569L20.5119 8.6175L19.6634 7.76898L17.024 10.4083L17.8726 11.2569ZM14.8575 10.8167L17.3058 11.4154L17.5908 10.2498L15.1426 9.65106L14.8575 10.8167ZM13.8185 7.92813L14.4172 10.3764L15.5829 10.0914L14.9841 7.64307L13.8185 7.92813Z",fill:"currentColor"})})})),to={"access-denied":Be,activity:Te,"add-circle":Ie,add:Ze,api:Se,archive:We,"arrow-down":_e,"arrow-left":Ee,"arrow-right":ze,"arrow-top-right":Fe,"arrow-up":Ae,"bar-chart":De,basket:qe,bell:Oe,bill:Pe,"binary-document":Ue,"block-content":Ne,"block-element":Qe,blockquote:Ge,bold:Xe,book:Ye,bottle:$e,"bulb-filled":Ke,"bulb-outline":Je,calendar:et,case:tt,"chart-upward":rt,"checkmark-circle":nt,checkmark:ot,"chevron-down":it,"chevron-left":st,"chevron-right":at,"chevron-up":lt,circle:dt,clipboard:ct,"clipboard-image":ut,clock:ht,"close-circle":pt,close:ft,"code-block":gt,code:mt,cog:xt,collapse:wt,"color-wheel":vt,comment:Ct,component:jt,compose:yt,controls:kt,copy:Lt,"credit-card":Mt,crop:bt,dashboard:Ht,database:Vt,desktop:Rt,document:Bt,"document-pdf":Tt,"document-remove":It,"document-sheet":Zt,"document-text":St,"document-video":Wt,"document-word":_t,"document-zip":Et,documents:zt,dot:Ft,"double-chevron-down":At,"double-chevron-left":Dt,"double-chevron-right":qt,"double-chevron-up":Ot,download:Pt,"drag-handle":Ut,drop:Nt,"earth-americas":Qt,"earth-globe":Gt,edit:Xt,"ellipsis-horizontal":Yt,"ellipsis-vertical":$t,enter:Kt,"enter-right":Jt,envelope:er,equal:tr,"error-filled":rr,"error-outline":nr,expand:or,"eye-closed":ir,"eye-open":sr,filter:ar,folder:lr,generate:dr,groq:cr,"heart-filled":ur,heart:hr,"help-circle":pr,home:fr,"ice-cream":gr,image:mr,"image-remove":xr,images:wr,"info-filled":vr,"info-outline":Cr,"inline-element":jr,inline:yr,"insert-above":kr,"insert-below":Lr,italic:Mr,joystick:br,launch:Hr,leave:Vr,lemon:Rr,link:Br,"link-removed":Tr,lock:Ir,"logo-js":Zr,"logo-ts":Sr,"master-detail":Wr,menu:_r,"mobile-device":Er,moon:zr,number:Fr,"ok-hand":Ar,olist:Dr,overage:qr,package:Or,pause:Pr,pin:Ur,"pin-removed":Nr,play:Qr,plug:Gr,presentation:Xr,publish:Yr,"read-only":$r,"remove-circle":Kr,remove:Jr,reset:en,restore:tn,retrieve:rn,retry:nn,revert:on,robot:sn,rocket:an,schema:ln,search:dn,select:cn,share:un,sort:hn,sparkle:pn,sparkles:fn,spinner:gn,"split-horizontal":mn,"split-vertical":xn,square:wn,"stack-compact":vn,stack:Cn,star:jn,stop:yn,strikethrough:kn,string:Ln,sun:Mn,sync:bn,tag:Hn,tags:Vn,terminal:Rn,"th-large":Bn,"th-list":Tn,tiers:In,"toggle-arrow-right":Zn,token:Sn,transfer:Wn,translate:_n,trash:En,"trend-upward":zn,"triangle-outline":Fn,trolley:An,truncate:Dn,twitter:qn,ulist:On,underline:Pn,undo:Un,unknown:Nn,unlock:Qn,unpublish:Gn,upload:Xn,user:Yn,users:$n,"warning-filled":Kn,"warning-outline":Jn,wrench:eo},ro=O.forwardRef((function(e,t){const{symbol:r,...n}=e,o=to[r];return o?O.createElement(o,{...n,ref:t}):null})),no=(e,t)=>{const r=O.useRef(!1),n=O.useCallback((n=>{ve.default(e,n)&&(r.current=!0,t&&t())}),[e,t]),o=O.useCallback((()=>{r.current=!1}),[]);return O.useEffect((()=>(window.addEventListener("keydown",n),window.addEventListener("keyup",o),()=>{window.removeEventListener("keydown",n),window.removeEventListener("keyup",o)})),[n,o]),r},oo={type:"divider"},io={altText:{assetTypes:["file","image"],field:"altText",name:"altText",operatorType:"empty",operatorTypes:["empty","notEmpty",null,"includes","doesNotInclude"],title:"Alt text",type:"string",value:""},description:{assetTypes:["file","image"],field:"description",name:"description",operatorType:"empty",operatorTypes:["empty","notEmpty",null,"includes","doesNotInclude"],title:"Description",type:"string",value:""},fileName:{assetTypes:["file","image"],field:"originalFilename",name:"filename",operatorType:"includes",operatorTypes:["includes","doesNotInclude"],title:"File name",type:"string",value:""},height:{assetTypes:["image"],field:"metadata.dimensions.height",name:"height",operatorType:"greaterThan",operatorTypes:["greaterThan","greaterThanOrEqualTo","lessThan","lessThanOrEqualTo",null,"equalTo"],title:"Height",type:"number",value:400},inCurrentDocument:{assetTypes:["file","image"],name:"inCurrentDocument",operatorType:"is",options:[{name:"true",title:"True",value:Ce.default(e||(e=D(["_id in $documentAssetIds"])))},{name:"false",title:"False",value:Ce.default(t||(t=D(["!(_id in $documentAssetIds)"])))}],selectOnly:!0,title:"In use in current document",type:"select",value:"true"},inUse:{assetTypes:["file","image"],name:"inUse",operatorType:"is",options:[{name:"true",title:"True",value:Ce.default(r||(r=D(["count(*[references(^._id)]) > 0"])))},{name:"false",title:"False",value:Ce.default(n||(n=D(["count(*[references(^._id)]) == 0"])))}],title:"In use",type:"select",value:"true"},isOpaque:{assetTypes:["image"],field:"metadata.isOpaque",name:"isOpaque",operatorType:"equalTo",options:[{name:"true",title:"True",value:"false"},{name:"false",title:"False",value:"true"}],title:"Has transparency",type:"select",value:"true"},orientation:{assetTypes:["image"],name:"orientation",operatorType:"is",operatorTypes:["is","isNot"],options:[{name:"portrait",title:"Portrait",value:"metadata.dimensions.aspectRatio < 1"},{name:"landscape",title:"Landscape",value:"metadata.dimensions.aspectRatio > 1"},{name:"square",title:"Square",value:"metadata.dimensions.aspectRatio == 1"}],title:"Orientation",type:"select",value:"portrait"},size:{assetTypes:["file","image"],field:"size",modifier:"kb",modifiers:[{name:"kb",title:"KB",fieldModifier:e=>"round(".concat(e," / 1000)")},{name:"mb",title:"MB",fieldModifier:e=>"round(".concat(e," / 1000000)")}],name:"size",operatorType:"greaterThan",operatorTypes:["greaterThan","greaterThanOrEqualTo","lessThan","lessThanOrEqualTo",null,"equalTo"],title:"File size",type:"number",value:0},tag:{assetTypes:["file","image"],field:"opt.media.tags",name:"tag",operatorType:"references",operatorTypes:["references","doesNotReference",null,"empty","notEmpty"],title:"Tags",type:"searchable"},title:{assetTypes:["file","image"],field:"title",name:"title",operatorType:"empty",operatorTypes:["empty","notEmpty",null,"includes","doesNotInclude"],title:"Title",type:"string",value:""},type:{assetTypes:["file","image"],name:"type",operatorType:"is",operatorTypes:["is","isNot"],options:[{name:"image",title:"Image",value:'mimeType match "image*"'},{name:"video",title:"Video",value:'mimeType match "video*"'},{name:"audio",title:"Audio",value:'mimeType match "audio*"'},{name:"pdf",title:"PDF",value:'mimeType == "application/pdf"'}],title:"File type",type:"select",value:"image"},width:{assetTypes:["image"],field:"metadata.dimensions.width",name:"width",operatorType:"greaterThan",operatorTypes:["greaterThan","greaterThanOrEqualTo","lessThan","lessThanOrEqualTo",null,"equalTo"],title:"Width",type:"number",value:400}},so={doesNotInclude:{fn:(e,t)=>e?"!(".concat(t," match '*").concat(e,"*')"):void 0,label:"does not include"},doesNotReference:{fn:(e,t)=>e?"!references('".concat(e,"')"):void 0,label:"does not include"},empty:{fn:(e,t)=>"!defined(".concat(t,")"),hideInput:!0,label:"is empty"},equalTo:{fn:(e,t)=>e?"".concat(t," == ").concat(e):void 0,label:"is equal to"},greaterThan:{fn:(e,t)=>e?"".concat(t," > ").concat(e):void 0,label:"is greater than"},greaterThanOrEqualTo:{fn:(e,t)=>e?"".concat(t," >= ").concat(e):void 0,label:"is greater than or equal to"},includes:{fn:(e,t)=>e?"".concat(t," match '*").concat(e,"*'"):void 0,label:"includes"},is:{fn:(e,t)=>"".concat(e),label:"is"},isNot:{fn:(e,t)=>"!(".concat(e,")"),label:"is not"},lessThan:{fn:(e,t)=>e?"".concat(t," < ").concat(e):void 0,label:"is less than"},lessThanOrEqualTo:{fn:(e,t)=>e?"".concat(t," <= ").concat(e):void 0,label:"is less than or equal to"},notEmpty:{fn:(e,t)=>"defined(".concat(t,")"),hideInput:!0,label:"is not empty"},references:{fn:(e,t)=>e?"references('".concat(e,"')"):void 0,label:"includes"}},ao=[{direction:"desc",field:"_createdAt"},{direction:"asc",field:"_createdAt"},null,{direction:"desc",field:"_updatedAt"},{direction:"asc",field:"_updatedAt"},null,{direction:"asc",field:"originalFilename"},{direction:"desc",field:"originalFilename"},null,{direction:"desc",field:"size"},{direction:"asc",field:"size"}],lo=[io.tag,oo,io.inUse,io.inCurrentDocument,oo,io.title,io.altText,io.description,oo,io.isOpaque,oo,io.fileName,io.size,io.type,oo,io.orientation,io.width,io.height],co="3rem 100px auto 1.5rem",uo="3rem 100px auto 5.5rem 5.5rem 3.5rem 8.5rem 4.75rem 2rem",ho=O.createContext(void 0),po=e=>{const{children:t,onSelect:r}=e,n={onSelect:r};return P.jsx(ho.Provider,{value:n,children:t})},fo=()=>{const e=O.useContext(ho);if(void 0===e)throw new Error("useAssetSourceActions must be used within an AssetSourceDispatchProvider");return e},go=()=>q.useClient({apiVersion:"2022-10-01"}),mo={_createdAt:{asc:"Last created: Oldest first",desc:"Last created: Newest first"},_updatedAt:{asc:"Last updated: Oldest first",desc:"Last updated: Newest first"},mimeType:{asc:"MIME type: A to Z",desc:"MIME type: Z to A"},originalFilename:{asc:"File name: A to Z",desc:"File name: Z to A"},size:{asc:"File size: Smallest first",desc:"File size: Largest first"}},xo=(e,t)=>mo[e][t],wo=e=>function(t){return K.iif((()=>!!e),t.pipe(J.delay(3e3),J.mergeMap((e=>Math.random()>.5?K.throwError({message:"Test error",statusCode:500}):K.of(e)))),t)},vo=e=>{let{assetTypes:t,searchFacets:r,searchQuery:n}=e;const s=t.map((e=>"sanity.".concat(e,"Asset"))),a=Ce.default(o||(o=D(["\n _type in ",' && !(_id in path("drafts.**"))\n '])),JSON.stringify(s)),l=r.reduce(((e,t)=>{var r;if("number"===t.type){const{field:r,modifier:n,modifiers:o,operatorType:i,value:s}=t,a=so[i],l=null==o?void 0:o.find((e=>e.name===n)),d=(null==l?void 0:l.fieldModifier)?l.fieldModifier(r):r,c=a.fn(s,d);c&&e.push(c)}if("searchable"===t.type){const{field:r,operatorType:n,value:o}=t,i=so[n].fn(null==o?void 0:o.value,r);i&&e.push(i)}if("select"===t.type){const{field:n,operatorType:o,options:i,value:s}=t,a=so[o],l=null==(r=null==i?void 0:i.find((e=>e.name===s)))?void 0:r.value,d=a.fn(l,n);d&&e.push(d)}if("string"===t.type){const{field:r,operatorType:n,value:o}=t,i=so[n].fn(o,r);i&&e.push(i)}return e}),[]);return[a,...n?[Ce.default(i||(i=D(["[_id, altText, assetId, description, originalFilename, title, url] match '*","*'"])),n.trim())]:[],...l].join(" && ")},Co=(e,t)=>function(r){return r.pipe(J.mergeMap((()=>K.from(e.fetch(Ce.default(s||(s=D(['count(*[_type == "','" && name.current == $name])'])),"media.tag"),{name:t})))),J.mergeMap((e=>e>0?K.throwError({message:"Tag already exists",statusCode:409}):K.of(!0))))},jo=e=>e.reduce(((e,t)=>{var r;const n=null==t?void 0:t.tag;return n&&e.push({label:null==(r=null==n?void 0:n.name)?void 0:r.current,value:null==n?void 0:n._id}),e}),[]),yo={tagsAddComplete:X.createAction("actions/tagsAddComplete",(function(e){let{assets:t,tag:r}=e;return{payload:{assets:t,tag:r}}})),tagsAddError:X.createAction("actions/tagsAddError",(function(e){let{assets:t,error:r,tag:n}=e;return{payload:{assets:t,error:r,tag:n}}})),tagsAddRequest:X.createAction("actions/tagsAddRequest",(function(e){let{assets:t,tag:r}=e;return{payload:{assets:t,tag:r}}})),tagsRemoveComplete:X.createAction("actions/tagsRemoveComplete",(function(e){let{assets:t,tag:r}=e;return{payload:{assets:t,tag:r}}})),tagsRemoveError:X.createAction("actions/tagsRemoveError",(function(e){let{assets:t,error:r,tag:n}=e;return{payload:{assets:t,error:r,tag:n}}})),tagsRemoveRequest:X.createAction("actions/tagsRemoveRequest",(function(e){let{assets:t,tag:r}=e;return{payload:{assets:t,tag:r}}}))},ko={showTagCreate:X.createAction("dialog/showTagCreate"),showTagEdit:X.createAction("dialog/showTagEdit",(function(e){let{tagId:t}=e;return{payload:{tagId:t}}}))},Lo=X.createSlice({name:"tags",initialState:{allIds:[],byIds:{},creating:!1,creatingError:void 0,fetchCount:-1,fetching:!1,fetchingError:void 0,panelVisible:!0},extraReducers:e=>{e.addCase(ko.showTagCreate,(e=>{delete e.creatingError})).addCase(ko.showTagEdit,((e,t)=>{const{tagId:r}=t.payload;delete e.byIds[r].error})).addMatcher((e=>[yo.tagsAddComplete.type,yo.tagsAddError.type,yo.tagsRemoveComplete.type,yo.tagsRemoveError.type].includes(e.type)),((e,t)=>{const{tag:r}=t.payload;e.byIds[r._id].updating=!1})).addMatcher((e=>[yo.tagsAddRequest.type,yo.tagsRemoveRequest.type].includes(e.type)),((e,t)=>{const{tag:r}=t.payload;e.byIds[r._id].updating=!0}))},reducers:{createComplete(e,t){const{tag:r}=t.payload;e.creating=!1,e.allIds.includes(r._id)||e.allIds.push(r._id),e.byIds[r._id]={_type:"tag",picked:!1,tag:r,updating:!1}},createError(e,t){e.creating=!1,e.creatingError=t.payload.error},createRequest(e,t){e.creating=!0,delete e.creatingError},deleteComplete(e,t){const{tagId:r}=t.payload,n=e.allIds.indexOf(r);n>=0&&e.allIds.splice(n,1),delete e.byIds[r]},deleteError(e,t){const{error:r,tag:n}=t.payload,o=null==n?void 0:n._id;e.byIds[o].error=r,e.byIds[o].updating=!1},deleteRequest(e,t){var r,n;const o=null==(n=null==(r=t.payload)?void 0:r.tag)?void 0:n._id;e.byIds[o].picked=!1,e.byIds[o].updating=!0,Object.keys(e.byIds).forEach((t=>{delete e.byIds[t].error}))},fetchComplete(e,t){const{tags:r}=t.payload;null==r||r.forEach((t=>{e.allIds.push(t._id),e.byIds[t._id]={_type:"tag",picked:!1,tag:t,updating:!1}})),e.fetching=!1,e.fetchCount=r.length||0,delete e.fetchingError},fetchError(e,t){const{error:r}=t.payload;e.fetching=!1,e.fetchingError=r},fetchRequest:{reducer:(e,t)=>{e.fetching=!0,delete e.fetchingError},prepare:()=>({payload:{query:Ce.default(a||(a=D(['\n {\n "items": *[\n _type == "','"\n && !(_id in path("drafts.**"))\n ] {\n _createdAt,\n _updatedAt,\n _id,\n _rev,\n _type,\n name\n } | order(name.current asc),\n }\n '])),"media.tag")}})},listenerCreateQueue(e,t){},listenerCreateQueueComplete(e,t){const{tags:r}=t.payload;null==r||r.forEach((t=>{e.byIds[t._id]={_type:"tag",picked:!1,tag:t,updating:!1},e.allIds.includes(t._id)||e.allIds.push(t._id)}))},listenerDeleteQueue(e,t){},listenerDeleteQueueComplete(e,t){const{tagIds:r}=t.payload;null==r||r.forEach((t=>{const r=e.allIds.indexOf(t);r>=0&&e.allIds.splice(r,1),delete e.byIds[t]}))},listenerUpdateQueue(e,t){},listenerUpdateQueueComplete(e,t){const{tags:r}=t.payload;null==r||r.forEach((t=>{e.byIds[t._id]&&(e.byIds[t._id].tag=t)}))},panelVisibleSet(e,t){const{panelVisible:r}=t.payload;e.panelVisible=r},sort(e){e.allIds.sort(((t,r)=>{const n=e.byIds[t].tag.name.current,o=e.byIds[r].tag.name.current;return n<o?-1:n>o?1:0}))},updateComplete(e,t){const{tag:r}=t.payload;e.byIds[r._id].tag=r,e.byIds[r._id].updating=!1},updateError(e,t){const{error:r,tag:n}=t.payload,o=null==n?void 0:n._id;e.byIds[o].error=r,e.byIds[o].updating=!1},updateRequest(e,t){const{tag:r}=t.payload;e.byIds[null==r?void 0:r._id].updating=!0}}}),Mo=e=>e.tags.byIds,bo=X.createSelector([Mo,e=>e.tags.allIds],((e,t)=>t.map((t=>e[t])))),Ho=X.createSelector([Mo,(e,t)=>t],((e,t)=>e[t])),Vo=Lo.actions;var Ro=Lo.reducer;const Bo=X.createSlice({name:"search",initialState:{facets:[],query:""},reducers:{facetsAdd(e,t){e.facets.push({...t.payload.facet,id:ee.uuid()})},facetsClear(e){e.facets=[]},facetsRemoveByName(e,t){e.facets=e.facets.filter((e=>e.name!==t.payload.facetName))},facetsRemoveByTag(e,t){e.facets=e.facets.filter((e=>{var r;return!("tag"===e.name&&"searchable"===e.type&&("references"===e.operatorType||"doesNotReference"===e.operatorType)&&(null==(r=e.value)?void 0:r.value)===t.payload.tagId)}))},facetsRemoveById(e,t){e.facets=e.facets.filter((e=>e.id!==t.payload.facetId))},facetsUpdate(e,t){const{modifier:r,name:n,operatorType:o,value:i}=t.payload,s=e.facets.find((e=>e.name===n));s&&("number"===s.type&&r&&(s.modifier=r),o&&(s.operatorType=o),void 0!==i&&(s.value=i),e.facets=e.facets.filter((e=>e.name!==s.name||e.id===s.id)))},facetsUpdateById(e,t){const{modifier:r,id:n,operatorType:o,value:i}=t.payload;e.facets.forEach(((t,s)=>{t.id===n&&("number"===t.type&&r&&(t.modifier=r),o&&(t.operatorType=o),void 0!==i&&(e.facets[s].value=i))}))},querySet(e,t){var r;e.query=null==(r=t.payload)?void 0:r.searchQuery}}}),To=X.createSelector([e=>e.search.facets,(e,t)=>t],((e,t)=>e.some((e=>{var r;return"tag"===e.name&&"searchable"===e.type&&("references"===e.operatorType||"doesNotReference"===e.operatorType)&&(null==(r=e.value)?void 0:r.value)===t})))),Io=Bo.actions;var Zo=Bo.reducer;const So={uploadComplete:X.createAction("uploads/uploadComplete",(function(e){let{asset:t}=e;return{payload:{asset:t}}}))},Wo=ao[0],_o={allIds:[],assetTypes:[],byIds:{},fetchCount:-1,fetching:!1,fetchingError:void 0,lastPicked:void 0,order:{direction:Wo.direction,field:Wo.field,title:xo(Wo.field,Wo.direction)},pageIndex:0,pageSize:100,view:"grid"},Eo=X.createSlice({name:"assets",initialState:_o,extraReducers:e=>{e.addCase(So.uploadComplete,((e,t)=>{const{asset:r}=t.payload;e.byIds[r._id]={_type:"asset",asset:r,picked:!1,updating:!1}})).addCase(yo.tagsAddComplete,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!1}))})).addCase(yo.tagsAddError,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!1}))})).addCase(yo.tagsAddRequest,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!0}))})).addCase(yo.tagsRemoveComplete,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!1}))})).addCase(yo.tagsRemoveError,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!1}))})).addCase(yo.tagsRemoveRequest,((e,t)=>{const{assets:r}=t.payload;r.forEach((t=>{e.byIds[t.asset._id].updating=!0}))}))},reducers:{clear(e){e.allIds=[]},deleteComplete(e,t){const{assetIds:r}=t.payload;null==r||r.forEach((t=>{const r=e.allIds.indexOf(t);r>=0&&e.allIds.splice(r,1),delete e.byIds[t]})),e.pageIndex=Math.floor(e.allIds.length/e.pageSize)-1},deleteError(e,t){var r,n,o,i;const{assetIds:s,error:a}=t.payload,l=null==(i=null==(o=null==(n=null==(r=null==a?void 0:a.response)?void 0:r.body)?void 0:n.error)?void 0:o.items)?void 0:i.map((e=>e.error));null==s||s.forEach((t=>{e.byIds[t].updating=!1})),null==l||l.forEach((t=>{e.byIds[t.id].error=t.description}))},deleteRequest(e,t){const{assets:r}=t.payload;r.forEach((t=>{e.byIds[null==t?void 0:t._id].updating=!0})),Object.keys(e.byIds).forEach((t=>{delete e.byIds[t].error}))},fetchComplete(e,t){var r;const n=(null==(r=t.payload)?void 0:r.assets)||[];n&&n.forEach((t=>{e.allIds.includes(t._id)||e.allIds.push(t._id),e.byIds[t._id]={_type:"asset",asset:t,picked:!1,updating:!1}})),e.fetching=!1,e.fetchCount=n.length||0,delete e.fetchingError},fetchError(e,t){const r=t.payload;e.fetching=!1,e.fetchingError=r},fetchRequest:{reducer:(e,t)=>{e.fetching=!0,delete e.fetchingError},prepare:e=>{let{params:t={},queryFilter:r,selector:n="",sort:o=Ce.default(d||(d=D(["order(_updatedAt desc)"])))}=e;const i=o||n?"|":"";return{payload:{params:t,query:Ce.default(c||(c=D(['\n {\n "items": *[',"] {\n _id,\n _type,\n _createdAt,\n _updatedAt,\n altText,\n description,\n extension,\n metadata {\n dimensions,\n exif,\n isOpaque,\n },\n mimeType,\n opt {\n media\n },\n originalFilename,\n size,\n title,\n url\n } "," "," ",",\n }\n "])),r,i,o,n)}}}},insertUploads(e,t){const{results:r}=t.payload;Object.entries(r).forEach((t=>{let[r,n]=t;n&&!e.allIds.includes(r)&&e.allIds.push(n)}))},listenerCreateQueue(e,t){},listenerCreateQueueComplete(e,t){const{assets:r}=t.payload;null==r||r.forEach((t=>{var r;(null==(r=e.byIds[null==t?void 0:t._id])?void 0:r.asset)&&(e.byIds[t._id].asset=t)}))},listenerDeleteQueue(e,t){},listenerDeleteQueueComplete(e,t){const{assetIds:r}=t.payload;null==r||r.forEach((t=>{const r=e.allIds.indexOf(t);r>=0&&e.allIds.splice(r,1),delete e.byIds[t]}))},listenerUpdateQueue(e,t){},listenerUpdateQueueComplete(e,t){const{assets:r}=t.payload;null==r||r.forEach((t=>{var r;(null==(r=e.byIds[null==t?void 0:t._id])?void 0:r.asset)&&(e.byIds[t._id].asset=t)}))},loadNextPage(){},loadPageIndex(e,t){e.pageIndex=t.payload.pageIndex},orderSet(e,t){var r;e.order=null==(r=t.payload)?void 0:r.order,e.pageIndex=0},pick(e,t){const{assetId:r,picked:n}=t.payload;e.byIds[r].picked=n,e.lastPicked=n?r:void 0},pickAll(e){e.allIds.forEach((t=>{e.byIds[t].picked=!0}))},pickClear(e){e.lastPicked=void 0,Object.values(e.byIds).forEach((t=>{e.byIds[t.asset._id].picked=!1}))},pickRange(e,t){const r=e.allIds.findIndex((e=>e===t.payload.startId)),n=e.allIds.findIndex((e=>e===t.payload.endId)),o=[r,n].sort(((e,t)=>e-t));e.allIds.slice(o[0],o[1]+1).forEach((t=>{e.byIds[t].picked=!0})),e.lastPicked=e.allIds[n]},sort(e){e.allIds.sort(((t,r)=>{const n=e.byIds[t].asset[e.order.field],o=e.byIds[r].asset[e.order.field];return n<o?"asc"===e.order.direction?-1:1:n>o?"asc"===e.order.direction?1:-1:0}))},updateComplete(e,t){const{asset:r}=t.payload;e.byIds[r._id].updating=!1,e.byIds[r._id].asset=r},updateError(e,t){const{asset:r,error:n}=t.payload,o=null==r?void 0:r._id;e.byIds[o].error=n.message,e.byIds[o].updating=!1},updateRequest(e,t){var r,n;const o=null==(n=null==(r=t.payload)?void 0:r.asset)?void 0:n._id;e.byIds[o].updating=!0},viewSet(e,t){var r;e.view=null==(r=t.payload)?void 0:r.view}}}),zo=X.createSelector([e=>e.assets.byIds,(e,t)=>t],((e,t)=>{const r=e[t];return r||void 0})),Fo=X.createSelector([e=>e.assets.byIds,e=>e.assets.allIds],((e,t)=>t.map((t=>e[t])))),Ao=X.createSelector([Fo],(e=>e.length)),Do=X.createSelector([Fo],(e=>e.filter((e=>null==e?void 0:e.picked)))),qo=X.createSelector([Do],(e=>e.length)),Oo=Eo.actions;var Po=Eo.reducer;const Uo=te.css(f||(f=D(["\n ::-webkit-scrollbar {\n width: 14px;\n }\n\n ::-webkit-scrollbar-thumb {\n border-radius: 10px;\n border: 4px solid rgba(0, 0, 0, 0);\n background: var(--card-border-color);\n background-clip: padding-box;\n\n &:hover {\n background: var(--card-muted-fg-color);\n background-clip: padding-box;\n }\n }\n"]))),No=te.createGlobalStyle(g||(g=D(["\n .media__custom-scrollbar {\n ",'\n }\n\n // @sanity/ui overrides\n\n // Custom scrollbar on Box (used in Dialogs)\n div[data-ui="Box"] {\n ','\n }\n\n // Dialog background color\n div[data-ui="Dialog"] {\n background-color: rgba(15, 17, 18, 0.9);\n }\n\n'])),Uo,Uo),Qo=G.useSelector,Go=X.createSlice({name:"dialog",initialState:{items:[]},extraReducers:e=>{e.addCase(ko.showTagCreate,(e=>{e.items.push({id:"tagCreate",type:"tagCreate"})})),e.addCase(ko.showTagEdit,((e,t)=>{const{tagId:r}=t.payload;e.items.push({id:r,tagId:r,type:"tagEdit"})}))},reducers:{clear(e){e.items=[]},inlineTagCreate(e,t){const{assetId:r,tag:n}=t.payload;e.items.forEach((e=>{"assetEdit"===e.type&&e.assetId===r&&(e.lastCreatedTag={label:n.name.current,value:n._id})}))},inlineTagRemove(e,t){const{tagIds:r}=t.payload;e.items.forEach((e=>{"assetEdit"===e.type&&(e.lastRemovedTagIds=r)}))},remove(e,t){var r;const n=null==(r=t.payload)?void 0:r.id;e.items=e.items.filter((e=>e.id!==n))},showConfirmAssetsTagAdd(e,t){const{assetsPicked:r,closeDialogId:n,tag:o}=t.payload,i="".concat(r.length," ").concat(ye.default("asset",r.length));e.items.push({closeDialogId:n,confirmCallbackAction:yo.tagsAddRequest({assets:r,tag:o}),confirmText:"Yes, add tag to ".concat(i),title:"Add tag ".concat(o.name.current," to ").concat(i,"?"),id:"confirm",headerTitle:"Confirm tag addition",tone:"primary",type:"confirm"})},showConfirmAssetsTagRemove(e,t){const{assetsPicked:r,closeDialogId:n,tag:o}=t.payload,i="".concat(r.length," ").concat(ye.default("asset",r.length));e.items.push({closeDialogId:n,confirmCallbackAction:yo.tagsRemoveRequest({assets:r,tag:o}),confirmText:"Yes, remove tag from ".concat(i),headerTitle:"Confirm tag removal",id:"confirm",title:"Remove tag ".concat(o.name.current," from ").concat(i,"?"),tone:"critical",type:"confirm"})},showConfirmDeleteAssets(e,t){const{assets:r,closeDialogId:n}=t.payload,o="".concat(r.length," ").concat(ye.default("asset",r.length));e.items.push({closeDialogId:n,confirmCallbackAction:Oo.deleteRequest({assets:r.map((e=>e.asset))}),confirmText:"Yes, delete ".concat(o),description:"This operation cannot be reversed. Are you sure you want to continue?",title:"Permanently delete ".concat(o,"?"),id:"confirm",headerTitle:"Confirm deletion",tone:"critical",type:"confirm"})},showConfirmDeleteTag(e,t){const{closeDialogId:r,tag:n}=t.payload;e.items.push({closeDialogId:r,confirmCallbackAction:Vo.deleteRequest({tag:n}),confirmText:"Yes, delete ".concat("tag"),description:"This operation cannot be reversed. Are you sure you want to continue?",title:"Permanently delete ".concat("tag","?"),id:"confirm",headerTitle:"Confirm deletion",tone:"critical",type:"confirm"})},showAssetEdit(e,t){const{assetId:r}=t.payload;e.items.push({assetId:r,id:r,type:"assetEdit"})},showSearchFacets(e){e.items.push({id:"searchFacets",type:"searchFacets"})},showTags(e){e.items.push({id:"tags",type:"tags"})}}}),Xo=Go.actions;var Yo=Go.reducer;const $o=()=>{const e=G.useDispatch(),t=Qo((e=>e.assets.view));return P.jsxs(U.Inline,{space:0,style:{whiteSpace:"nowrap"},children:[P.jsx(U.Button,{fontSize:1,icon:Bn,mode:"grid"===t?"default":"ghost",onClick:()=>e(Oo.viewSet({view:"grid"})),style:{borderBottomRightRadius:0,borderTopRightRadius:0}}),P.jsx(U.Button,{fontSize:1,icon:Tn,mode:"table"===t?"default":"ghost",onClick:()=>e(Oo.viewSet({view:"table"})),style:{borderBottomLeftRadius:0,borderTopLeftRadius:0}})]})};function Ko(){const e=U.usePortal();return{constrainSize:!0,floatingBoundary:e.element,portal:!0,referenceBoundary:e.element}}const Jo=()=>{var e;const t=G.useDispatch(),r=Qo((e=>e.assets.order)),n=Ko();return P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,icon:hn,mode:"bleed",padding:3,text:xo(r.field,r.direction)}),id:"order",menu:P.jsx(U.Menu,{children:null==(e=ao)?void 0:e.map(((e,n)=>{if(e){const o=r.field===e.field&&r.direction===e.direction;return P.jsx(U.MenuItem,{disabled:o,fontSize:1,iconRight:o,onClick:()=>t(Oo.orderSet({order:{direction:e.direction,field:e.field}})),padding:2,selected:o,space:4,style:{minWidth:"200px"},text:xo(e.field,e.direction)},n)}return P.jsx(U.MenuDivider,{},n)}))}),popover:n})},ei=e=>{const{loading:t}=e,{animationDuration:r,isFinished:n,progress:o}=ne.useNProgress({animationDuration:300,isAnimating:t});return P.jsx(U.Box,{style:{opacity:n?0:1,transition:"opacity ".concat(r,"ms linear")},children:P.jsx(U.Box,{style:{height:"1px",background:"rgba(255, 255, 255, 0.5)",position:"absolute",left:0,top:0,transition:"width ".concat(r,"ms linear"),width:"".concat(100*o,"%")}})})},ti={50:{title:"Gray 50",hex:"#f2f3f5"},100:{title:"Gray 100",hex:"#e6e8ec"},200:{title:"Gray 200",hex:"#ced2d9"},300:{title:"Gray 300",hex:"#b6bcc6"},400:{title:"Gray 400",hex:"#9ea6b3"},500:{title:"Gray 500",hex:"#8690a0"},600:{title:"Gray 600",hex:"#6e7683"},700:{title:"Gray 700",hex:"#565d67"},800:{title:"Gray 800",hex:"#3f434a"},900:{title:"Gray 900",hex:"#272a2e"},950:{title:"Gray 950",hex:"#1b1d20"}},ri="#fff",ni={bg:{dark:ti[950].hex,light:ti[50].hex},bg2:{dark:ti[900].hex,light:ti[100].hex},inputEnabledBorder:{dark:U.studioTheme.color.dark.default.input.default.enabled.border,light:U.studioTheme.color.light.default.input.default.enabled.border},inputHoveredBorder:{dark:U.studioTheme.color.dark.default.input.default.hovered.border,light:U.studioTheme.color.light.default.input.default.hovered.border},mutedHoveredBg:{dark:U.studioTheme.color.dark.primary.muted.primary.hovered.bg,light:U.studioTheme.color.light.primary.muted.primary.hovered.bg},mutedHoveredFg:{dark:U.studioTheme.color.dark.primary.muted.primary.hovered.fg,light:U.studioTheme.color.light.primary.muted.primary.hovered.fg},mutedSelectedBg:{dark:U.studioTheme.color.dark.primary.muted.primary.selected.bg,light:U.studioTheme.color.light.primary.muted.primary.selected.bg},spotBlue:{dark:U.studioTheme.color.dark.primary.spot.blue,light:U.studioTheme.color.light.primary.spot.blue}};function oi(e,t){var r;return null==(r=ni[t])?void 0:r[e]}const ii=je.default(U.Box)((e=>{let{scheme:t,theme:r}=e;return te.css(m||(m=D(["\n background: ",";\n border-radius: ",";\n "])),oi(t,"bg"),U.rem(r.sanity.radius[2]))})),si=e=>{const{children:t,facet:r}=e,{scheme:n}=q.useColorScheme(),o=G.useDispatch();return P.jsx(ii,{padding:[2,2,1],scheme:n,children:P.jsxs(U.Flex,{align:["flex-start","flex-start","center"],direction:["column","column","row"],children:[P.jsx(U.Box,{paddingBottom:[3,3,0],paddingLeft:1,paddingRight:2,paddingTop:[1,1,0],children:P.jsx(U.Label,{size:0,style:{whiteSpace:"nowrap"},children:r.title})}),P.jsxs(U.Flex,{align:"center",children:[t,P.jsx(U.Box,{marginLeft:1,paddingX:2,children:P.jsx(U.Text,{muted:!0,size:0,children:P.jsx(ft,{onClick:()=>{o(Io.facetsRemoveById({facetId:r.id}))}})})})]})]})})},ai=e=>{const{onValueChange:t,value:r,...n}=e;return P.jsx(U.TextInput,{...n,onChange:e=>{const r=e.target.value;(""===r||/^[0-9\b]+$/.test(r))&&t(parseInt(r,10)||"")},value:null!=r?r:""})},li=e=>{let{facet:t}=e;var r;const n=G.useDispatch(),o=Ko(),i=null==t?void 0:t.modifiers,s=(null==t?void 0:t.modifier)?null==i?void 0:i.find((e=>e.name===(null==t?void 0:t.modifier))):null==i?void 0:i[0],a=null!=(r=t.operatorType)?r:"greaterThan";return P.jsxs(si,{facet:t,children:[(null==t?void 0:t.operatorTypes)&&P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:so[a].label}),id:"operators",menu:P.jsx(U.Menu,{children:t.operatorTypes.map(((e,r)=>{if(e){const r=e===a;return P.jsx(U.MenuItem,{disabled:r,fontSize:1,onClick:()=>(e=>{n(Io.facetsUpdateById({id:t.id,operatorType:e}))})(e),padding:2,text:so[e].label},e)}return P.jsx(U.MenuDivider,{},r)}))}),popover:o}),P.jsx(U.Box,{marginX:1,style:{maxWidth:"50px"},children:P.jsx(ai,{fontSize:1,onValueChange:e=>{n(Io.facetsUpdateById({id:t.id,value:e}))},padding:2,radius:2,width:2,value:null==t?void 0:t.value})}),i&&P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:null==s?void 0:s.title}),id:"modifier",menu:P.jsx(U.Menu,{children:i.map((e=>{const r=e.name===t.modifier;return P.jsx(U.MenuItem,{disabled:r,fontSize:1,onClick:()=>(e=>{n(Io.facetsUpdateById({id:t.id,modifier:e.name}))})(e),padding:2,text:e.title},e.name)}))}),popover:o})]})},di=e=>{let{facet:t}=e;var r;const n=G.useDispatch(),o=Ko(),i=null==t?void 0:t.options,s=null==i?void 0:i.find((e=>e.name===(null==t?void 0:t.value))),a=null!=(r=null==t?void 0:t.operatorType)?r:"is";return P.jsxs(si,{facet:t,children:[(null==t?void 0:t.operatorTypes)&&P.jsx(U.MenuButton,{button:P.jsx(U.Box,{marginRight:1,children:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:so[a].label})}),id:"operators",menu:P.jsx(U.Menu,{children:t.operatorTypes.map(((e,r)=>{if(e){const r=e===a;return P.jsx(U.MenuItem,{disabled:r,fontSize:1,onClick:()=>(e=>{n(Io.facetsUpdate({name:t.name,operatorType:e}))})(e),padding:2,text:so[e].label},e)}return P.jsx(U.MenuDivider,{},r)}))}),popover:o}),P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:null==s?void 0:s.title}),id:"list",menu:P.jsx(U.Menu,{children:null==i?void 0:i.map(((e,r)=>{const o=e.name===(null==s?void 0:s.name);return P.jsx(U.MenuItem,{disabled:o,fontSize:1,onClick:()=>{return e=i[r],void n(Io.facetsUpdate({name:t.name,value:e.name}));var e},padding:2,text:e.title},e.name)}))}),popover:o})]})},ci=e=>{let{facet:t}=e;const r=G.useDispatch(),n=Ko(),o=t.operatorType;return P.jsxs(si,{facet:t,children:[(null==t?void 0:t.operatorTypes)&&P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:so[o].label}),id:"operators",menu:P.jsx(U.Menu,{children:t.operatorTypes.map(((e,n)=>{if(e){const n=e===o;return P.jsx(U.MenuItem,{disabled:n,fontSize:1,onClick:()=>(e=>{r(Io.facetsUpdateById({id:t.id,operatorType:e}))})(e),padding:2,text:so[e].label},e)}return P.jsx(U.MenuDivider,{},n)}))}),popover:n}),!so[o].hideInput&&P.jsx(U.Box,{marginLeft:1,style:{maxWidth:"125px"},children:P.jsx(U.TextInput,{fontSize:1,onChange:e=>{r(Io.facetsUpdateById({id:t.id,value:e.target.value}))},padding:2,radius:2,width:2,value:null==t?void 0:t.value})})]})},{fonts:{text:{sizes:ui}},radius:hi,space:pi}=U.studioTheme,fi=e=>({control:(t,r)=>{let{isDisabled:n,isFocused:o}=r,i="inset 0 0 0 1px var(--card-border-color)";return o&&(i="inset 0 0 0 1px ".concat(oi(e,"inputEnabledBorder"),",\n 0 0 0 1px ").concat(oi(e,"bg2"),",\n 0 0 0 3px var(--card-focus-ring-color) !important")),{...t,backgroundColor:"var(--card-bg-color)",color:"inherit",border:"none",borderRadius:hi[2],boxShadow:i,fontSize:ui[1].fontSize,minHeight:"25px",opacity:n?.5:"inherit",outline:"none",transition:"none","&:hover":{boxShadow:"inset 0 0 0 1px ".concat(oi(e,"inputHoveredBorder"))}}},input:e=>({...e,color:"var(--card-fg-color)",fontFamily:U.studioTheme.fonts.text.family,fontSize:ui[1].fontSize,marginLeft:U.rem(pi[2])}),menuList:e=>({...e,padding:0}),noOptionsMessage:e=>({...e,fontFamily:U.studioTheme.fonts.text.family,fontSize:ui[1].fontSize,lineHeight:"1em"}),option:(t,r)=>{let{isFocused:n}=r;return{...t,backgroundColor:n?oi(e,"spotBlue"):"transparent",borderRadius:hi[2],color:n?oi(e,"bg"):"inherit",fontSize:ui[1].fontSize,lineHeight:"1em",margin:0,padding:U.rem(pi[1]),"&:hover":{backgroundColor:oi(e,"spotBlue"),color:oi(e,"bg")}}},placeholder:e=>({...e,fontSize:ui[1].fontSize,marginLeft:U.rem(pi[2]),paddingLeft:0}),singleValue:e=>({...e,alignItems:"center",display:"inline-flex",height:"100%",marginLeft:U.rem(pi[2])}),valueContainer:e=>({...e,margin:0,padding:0})}),gi=e=>P.jsx(U.Box,{padding:1,children:P.jsx(oe.components.Option,{...e,children:P.jsx(U.Box,{paddingY:1,children:P.jsx(U.Text,{size:1,style:{color:"inherit"},textOverflow:"ellipsis",children:e.children})})})}),mi={ClearIndicator:e=>P.jsx(oe.components.ClearIndicator,{...e,children:P.jsx(U.Box,{paddingRight:1,style:{transform:"scale(0.85)"},children:P.jsx(U.Text,{muted:!0,size:0,children:P.jsx(ft,{})})})}),DropdownIndicator:null,IndicatorSeparator:null,Menu:e=>P.jsx(oe.components.Menu,{...e,children:P.jsx(U.Card,{radius:1,shadow:2,children:e.children})}),MenuList:e=>{const{children:t}=e;if(Array.isArray(t)){const e=t.length>5?165:33*t.length;return P.jsx(ie.Virtuoso,{className:"media__custom-scrollbar",itemContent:e=>{const r=t[e];return P.jsx(gi,{...r.props})},style:{height:e},totalCount:t.length})}return P.jsx(oe.components.MenuList,{...e,children:t})},NoOptionsMessage:e=>P.jsx(oe.components.NoOptionsMessage,{...e,children:e.children}),Option:gi,SingleValue:e=>P.jsx(oe.components.SingleValue,{...e,children:P.jsx(U.Text,{size:1,textOverflow:"ellipsis",children:e.children})})},xi=e=>{let{facet:t}=e;const{scheme:r}=q.useColorScheme(),n=G.useDispatch(),o=Qo((e=>bo(e))),i=Qo((e=>e.tags.fetching)),s=jo(o),a=Ko(),l=t.operatorType;return P.jsxs(si,{facet:t,children:[(null==t?void 0:t.operatorTypes)&&P.jsx(U.MenuButton,{button:P.jsx(U.Button,{fontSize:1,iconRight:cn,padding:2,text:so[l].label}),id:"operators",menu:P.jsx(U.Menu,{children:t.operatorTypes.map(((e,r)=>{if(e){const r=e===l;return P.jsx(U.MenuItem,{disabled:r,fontSize:1,onClick:()=>(e=>{n(Io.facetsUpdateById({id:t.id,operatorType:e}))})(e),padding:2,space:4,style:{minWidth:"150px"},text:so[e].label},e)}return P.jsx(U.MenuDivider,{},r)}))}),popover:a}),!so[l].hideInput&&P.jsx(U.Box,{marginX:1,style:{width:"160px"},children:P.jsx(ke.default,{components:mi,instanceId:"facet-searchable",isClearable:!0,isDisabled:i,isSearchable:!0,name:"tags",noOptionsMessage:()=>"No tags",onChange:e=>{return r=e,void n(Io.facetsUpdateById({id:t.id,value:r}));var r},options:s,placeholder:i?"Loading...":"Select...",styles:fi(r),value:null==t?void 0:t.value})})]})},wi=je.default(U.Flex)((e=>{let{theme:t}=e;return te.css(x||(x=D(["\n > * {\n margin-bottom: ",";\n }\n "])),U.rem(t.sanity.space[2]))})),vi=e=>{const{layout:t="inline"}=e,r=Qo((e=>e.search.facets)),n=r.map((e=>{const t=e.id;return"number"===e.type?P.jsx(li,{facet:e},t):"searchable"===e.type?P.jsx(xi,{facet:e},t):"select"===e.type?P.jsx(di,{facet:e},t):"string"===e.type?P.jsx(ci,{facet:e},t):null}));if("inline"===t)return 0===r.length?null:P.jsx(U.Box,{marginBottom:2,children:P.jsx(U.Inline,{space:2,children:n})});if("stack"===t)return P.jsx(wi,{align:"flex-start",direction:"column",children:n});throw Error("Invalid layout")},Ci=()=>{const e=G.useDispatch(),t=Qo((e=>e.assets.assetTypes)),r=Qo((e=>e.search.facets)),n=Qo((e=>e.selected.document)),o=Ko(),i=!n,s=lo.filter((e=>{if("group"===e.type||"divider"===e.type)return!0;if(i)return!(null==e?void 0:e.selectOnly);return e.assetTypes.filter((e=>t.includes(e))).length>0})).filter(((e,t,r)=>{const n=r[t-1];return("divider"!==e.type||0!==t&&t!==r.length-1)&&("divider"!==e.type||"divider"!==(null==n?void 0:n.type))})),a=s.length>0,l=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return P.jsx(P.Fragment,{children:null==t?void 0:t.map(((t,o)=>{if("divider"===t.type)return P.jsx(U.MenuDivider,{},o);if("group"===t.type)return P.jsx(U.MenuGroup,{text:t.title,title:t.title,children:l(t.facets,n+1)},"group-".concat(n,"-").concat(o));if(t){const n=!t.operatorTypes&&!!r.find((e=>e.name===t.name));return P.jsx(U.MenuItem,{disabled:n,fontSize:1,onClick:()=>e(Io.facetsAdd({facet:t})),padding:2,text:t.title},t.name)}return null}))})};return P.jsxs(U.Flex,{children:[P.jsx(U.MenuButton,{button:P.jsx(U.Button,{disabled:!a,fontSize:1,icon:Ze,mode:"bleed",space:2,text:"Add filter",tone:"primary"}),id:"facets",menu:P.jsx(U.Menu,{children:l(s)}),popover:{...o,placement:"right-start"}}),r.length>0&&P.jsx(U.Button,{fontSize:1,mode:"bleed",onClick:()=>e(Io.facetsClear()),text:"Clear"})]})},ji=()=>P.jsxs("svg",{"data-sanity-icon":"media__tag",fill:"currentColor",height:"1em",stroke:"currentColor",strokeWidth:"0",viewBox:"0 0 512 512",width:"1em",children:[P.jsx("path",{d:"M435.25 48h-122.9a14.46 14.46 0 00-10.2 4.2L56.45 297.9a28.85 28.85 0 000 40.7l117 117a28.85 28.85 0 0040.7 0L459.75 210a14.46 14.46 0 004.2-10.2v-123a28.66 28.66 0 00-28.7-28.8z",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32"}),P.jsx("path",{d:"M384 160a32 32 0 1132-32 32 32 0 01-32 32z"})]}),yi=()=>{const e=Qo((e=>e.search.query)),t=G.useDispatch();return P.jsxs(U.Box,{style:{position:"relative"},children:[P.jsx(U.TextInput,{fontSize:1,icon:dn,onChange:e=>{t(Io.querySet({searchQuery:e.currentTarget.value}))},placeholder:"Search",radius:2,value:e}),e.length>0&&P.jsx(U.Flex,{align:"center",justify:"center",onClick:()=>{t(Io.querySet({searchQuery:""}))},style:{cursor:"pointer",height:"100%",opacity:.75,position:"absolute",right:0,top:0,width:"2em",zIndex:1},children:P.jsx(ft,{})})]})},ki=()=>{const e=G.useDispatch(),t=Qo((e=>e.assets.fetching)),r=Qo((e=>e.assets.pageIndex)),n=Qo((e=>e.search.facets)),o=Qo((e=>e.tags.panelVisible)),i=U.useMediaIndex();return P.jsxs(U.Box,{paddingY:2,style:{borderBottom:"1px solid var(--card-border-color)",zIndex:2},children:[P.jsx(U.Box,{marginBottom:2,children:P.jsx(U.Flex,{align:"flex-start",direction:["column","column","column","column","row"],justify:"space-between",children:P.jsxs(U.Flex,{flex:1,style:{alignItems:"flex-start",flex:1,height:"100%",justifyContent:i<2?"space-between":"flex-start",position:"relative",width:"100%"},children:[P.jsx(U.Box,{marginX:2,style:{minWidth:"200px"},children:P.jsx(yi,{})}),P.jsxs(U.Box,{display:["none","none","block"],children:[P.jsx(vi,{}),P.jsx(Ci,{})]}),P.jsx(U.Box,{display:["block","block","none"],marginX:2,children:P.jsxs(U.Inline,{space:2,style:{whiteSpace:"nowrap"},children:[P.jsx(U.Button,{fontSize:1,mode:"ghost",onClick:()=>{e(Xo.showSearchFacets())},text:"Filters".concat(n.length>0?" (".concat(n.length,")"):""),tone:"primary"}),P.jsx(U.Button,{fontSize:1,mode:"ghost",onClick:()=>{e(Xo.showTags())},text:"Tags",tone:"primary"})]})})]})})}),P.jsx(U.Box,{children:P.jsxs(U.Flex,{align:"center",justify:["space-between"],children:[P.jsx(U.Box,{marginX:2,children:P.jsx($o,{})}),P.jsxs(U.Flex,{marginX:2,children:[P.jsx(Jo,{}),P.jsx(U.Box,{display:["none","none","block"],marginLeft:2,children:P.jsx(U.Button,{fontSize:1,icon:P.jsx(U.Box,{style:{transform:"scale(0.75)"},children:P.jsx(ji,{})}),onClick:()=>{e(Vo.panelVisibleSet({panelVisible:!o}))},mode:o?"default":"ghost",text:o?"Tags":""})})]})]})}),P.jsx(ei,{loading:t},r)]})},Li=X.createSlice({name:"debug",initialState:{badConnection:!1,enabled:!1},reducers:{setBadConnection(e,t){e.badConnection=t.payload},toggleEnabled(e){e.enabled=!e.enabled}}}),Mi=Li.actions;var bi=Li.reducer;const Hi=()=>{const e=G.useDispatch(),t=Qo((e=>e.debug.badConnection)),r=Qo((e=>e.debug.enabled));return no("alt+ctrl+shift+/",(()=>{e(Mi.toggleEnabled())})),r?P.jsx(U.Box,{padding:4,style:{bottom:0,left:0,pointerEvents:"none",position:"fixed",width:"100%"},children:P.jsxs(U.Flex,{align:"center",children:[P.jsx(U.Box,{marginRight:3,children:P.jsx(U.Text,{muted:!0,size:1,children:P.jsx(Gr,{})})}),P.jsx(U.Tooltip,{content:P.jsx(U.Box,{padding:2,children:P.jsx(U.Text,{muted:!0,size:1,children:t?"Bad connection: +3000ms & 50% chance to fail":"No connection throttling"})}),fallbackPlacements:["right","left"],placement:"bottom",portal:!0,children:P.jsx(U.Switch,{checked:t,onChange:t=>{const r=t.target.checked;e(Mi.setBadConnection(r))},style:{pointerEvents:"auto"}})})]})}):null},Vi=Le.object({label:Le.string().trim().min(1,{message:"Label cannot be empty"}),value:Le.string().trim().min(1,{message:"Value cannot be empty"})}),Ri=Le.object({altText:Le.string().trim().optional(),description:Le.string().trim().optional(),opt:Le.object({media:Le.object({tags:Le.array(Vi).nullable()})}),originalFilename:Le.string().trim().min(1,{message:"Filename cannot be empty"}),title:Le.string().trim().optional()}),Bi=Le.object({name:Le.string().min(1,{message:"Name cannot be empty"})});function Ti(e){const t=e.reduce(((e,t)=>t._id.startsWith("drafts.")?e.concat(t._id.slice(7)):e),[]);return e.filter((e=>!t.includes(e._id)))}const Ii=(e,t)=>{const r="undefined"!=typeof window&&window.devicePixelRatio?Math.round(window.devicePixelRatio):1,n=(null==t?void 0:t.height)?(null==t?void 0:t.height)*Math.max(1,r):void 0,o=t.width*Math.max(1,r),i=new URLSearchParams;return i.append("fit","max"),i.append("w",o.toString()),n&&i.append("h",n.toString()),"".concat(e.url,"?").concat(i.toString())},Zi=e=>Object.keys(e).reduce(((t,r)=>{const n=e[r];return"object"==typeof n&&null!==n&&n.constructor!==Array?t[r]=Zi(n):""===n||void 0===n||0===(null==n?void 0:n.length)?t[r]=null:t[r]="string"==typeof n&&n?e[r].trim():e[r],t}),{}),Si=e=>"sanity.fileAsset"===e._type,Wi=e=>"sanity.imageAsset"===e._type,_i=e=>"".concat(e.metadata.dimensions.width,"x").concat(e.metadata.dimensions.height,"px"),Ei=e=>{let{disabled:t,url:r}=e;const n=Ko(),o=O.useRef(),[i,s]=O.useState(!1);return O.useEffect((()=>()=>{o.current&&clearTimeout(o.current)}),[]),P.jsx(U.Popover,{content:P.jsx(U.Text,{muted:!0,size:1,children:"Copied!"}),open:i,padding:2,placement:"top",radius:1,...n,children:P.jsx(U.Button,{disabled:t,fontSize:1,icon:ct,mode:"ghost",onClick:()=>{o.current&&clearTimeout(o.current),s(!0),He.default(r),o.current=setTimeout((()=>{s(!1)}),1250)},text:"Copy URL"})})},zi=e=>{let{label:t,value:r}=e;return P.jsxs(U.Flex,{justify:"space-between",children:[P.jsx(U.Text,{size:1,style:{opacity:.8,width:"40%"},textOverflow:"ellipsis",children:t}),P.jsx(U.Text,{size:1,style:{opacity:.4,textAlign:"right",width:"60%"},textOverflow:"ellipsis",children:r})]})},Fi=e=>{var t;const{asset:r,item:n}=e,o=null==(t=null==r?void 0:r.metadata)?void 0:t.exif;return P.jsxs(U.Box,{marginTop:3,children:[P.jsx(U.Box,{children:P.jsxs(U.Stack,{space:3,children:[P.jsx(zi,{label:"Size",value:be.default(null==r?void 0:r.size,{base:10,round:0})}),P.jsx(zi,{label:"MIME type",value:null==r?void 0:r.mimeType}),P.jsx(zi,{label:"Extension",value:(null==r?void 0:r.extension).toUpperCase()}),Wi(r)&&P.jsx(zi,{label:"Dimensions",value:_i(r)})]})}),o&&(o.DateTimeOriginal||o.FNumber||o.FocalLength||o.ExposureTime||o.ISO)&&P.jsxs(P.Fragment,{children:[P.jsx(U.Box,{marginY:4,style:{background:"var(--card-border-color)",height:"1px",width:"100%"}}),P.jsx(U.Box,{children:P.jsxs(U.Stack,{space:3,children:[o.ISO&&P.jsx(zi,{label:"ISO",value:o.ISO}),o.FNumber&&P.jsx(zi,{label:"Aperture",value:"ƒ/".concat(o.FNumber)}),o.FocalLength&&P.jsx(zi,{label:"Focal length",value:"".concat(o.FocalLength,"mm")}),o.ExposureTime&&P.jsx(zi,{label:"Exposure time",value:"1/".concat(1/o.ExposureTime)}),o.DateTimeOriginal&&P.jsx(zi,{label:"Original date",value:Me.default(new Date(o.DateTimeOriginal),"PPp")})]})})]}),P.jsx(U.Box,{marginTop:5,children:P.jsxs(U.Inline,{space:2,children:[P.jsx(U.Button,{disabled:!n||(null==n?void 0:n.updating),fontSize:1,icon:Pt,mode:"ghost",onClick:()=>{window.location.href="".concat(r.url,"?dl=").concat(r.originalFilename)},text:"Download"}),P.jsx(Ei,{disabled:!n||(null==n?void 0:n.updating),url:r.url})]})})]})},Ai=e=>P.jsx(U.Dialog,{...e,style:{position:"fixed"}}),Di=e=>{let{documents:t,isLoading:r}=e;const n=q.useSchema();return r?P.jsx(U.Text,{muted:!0,size:1,children:"Loading..."}):0===t.length?P.jsx(U.Text,{muted:!0,size:1,children:"No documents are referencing this asset"}):P.jsx(U.Card,{flex:1,marginBottom:2,padding:2,radius:2,shadow:1,children:P.jsx(U.Stack,{space:2,children:null==t?void 0:t.map((e=>P.jsx(qi,{doc:e,schemaType:n.get(e._type)},e._id)))})})},qi=e=>{const{doc:t,schemaType:r}=e,{onClick:n}=he.useIntentLink({intent:"edit",params:{id:t._id}});return r?P.jsx(U.Button,{mode:"bleed",onClick:n,padding:2,style:{width:"100%"},children:P.jsx(q.Preview,{layout:"default",schemaType:r,value:t})},t._id):P.jsx(U.Box,{padding:2,children:P.jsxs(U.Text,{size:1,children:["A document of the unknown type ",P.jsx("em",{children:t._type})]})})},Oi=je.default(U.Box)((e=>{let{theme:t}=e;return te.css(w||(w=D(["\n text {\n font-family: "," !important;\n font-size: 8px !important;\n font-weight: 500 !important;\n }\n "])),t.sanity.fonts.text.family)})),Pi=e=>{const{extension:t,onClick:r,width:n}=e;return P.jsx(U.Flex,{align:"center",justify:"center",onClick:r,style:{height:"100%"},children:P.jsx(Oi,{style:{width:n},children:t?P.jsx(pe.FileIcon,{extension:t,...pe.defaultStyles[t]}):P.jsx(pe.FileIcon,{})})})},Ui=e=>{const{asset:t}=e;return 0===t.mimeType.search("audio")?P.jsx(U.Flex,{align:"center",justify:"center",style:{height:"100%"},children:P.jsx("audio",{controls:!0,src:t.url,style:{width:"100%"}})}):0===t.mimeType.search("video")?P.jsx("video",{controls:!0,src:t.url,style:{height:"100%",width:"100%"}}):P.jsx(Pi,{extension:t.extension,width:"50%"})},{radius:Ni,space:Qi}=U.studioTheme,Gi=e=>({control:(t,r)=>{let{isFocused:n}=r,o="inset 0 0 0 1px var(--card-border-color)";return n&&(o="inset 0 0 0 1px ".concat(oi(e,"inputEnabledBorder"),",\n 0 0 0 1px var(--card-bg-color),\n 0 0 0 3px var(--card-focus-ring-color) !important")),{...t,backgroundColor:"var(--card-bg-color)",color:"inherit",border:"none",borderRadius:Ni[1],boxShadow:o,margin:0,minHeight:"35px",outline:"none",padding:U.rem(Qi[1]),transition:"none","&:hover":{boxShadow:"inset 0 0 0 1px ".concat(oi(e,"inputHoveredBorder"))}}},indicatorsContainer:(e,t)=>{let{isDisabled:r}=t;return{...e,opacity:r?.25:1}},input:e=>({...e,color:"var(--card-fg-color)",fontFamily:U.studioTheme.fonts.text.family,marginLeft:U.rem(Qi[2])}),menuList:e=>({...e}),multiValue:(t,r)=>{let{isDisabled:n}=r;return{...t,backgroundColor:oi(e,"mutedHoveredBg"),borderRadius:Ni[2],opacity:n?.5:1}},multiValueLabel:()=>({color:oi(e,"mutedHoveredFg"),fontSize:"inherit",padding:0}),multiValueRemove:t=>({...t,borderTopLeftRadius:0,borderBottomLeftRadius:0,svg:{color:oi(e,"mutedHoveredFg")},"&:hover":{backgroundColor:oi(e,"mutedSelectedBg")}}),noOptionsMessage:e=>({...e,fontFamily:U.studioTheme.fonts.text.family,lineHeight:"1em"}),option:(t,r)=>{let{isFocused:n}=r;return{...t,backgroundColor:n?oi(e,"spotBlue"):"transparent",borderRadius:Ni[2],color:n?oi(e,"bg"):"inherit",padding:"".concat(U.rem(Qi[1])," ").concat(U.rem(Qi[2])),"&:hover":{backgroundColor:oi(e,"spotBlue"),color:oi(e,"bg")}}},placeholder:e=>({...e,marginLeft:U.rem(Qi[2])}),valueContainer:e=>({...e,margin:0,padding:0})}),Xi=e=>P.jsx(U.Box,{paddingX:1,paddingY:1,children:P.jsx(oe.components.Option,{...e,children:P.jsxs(U.Flex,{align:"center",children:[e.data.__isNew__&&P.jsx(Ze,{style:{marginRight:"3px"}}),e.children]})})}),Yi={DropdownIndicator:e=>P.jsx(oe.components.DropdownIndicator,{...e,children:P.jsx(U.Box,{paddingX:2,children:P.jsx(U.Text,{size:1,children:P.jsx(it,{})})})}),IndicatorSeparator:null,Menu:e=>P.jsx(oe.components.Menu,{...e,children:P.jsx(U.Card,{radius:1,shadow:2,children:e.children})}),MenuList:e=>{const{children:t}=e;if(Array.isArray(t)){const e=t.length>5?185:37*t.length;return P.jsx(ie.Virtuoso,{className:"media__custom-scrollbar",itemContent:e=>{const r=t[e];return P.jsx(Xi,{...r.props})},style:{height:e},totalCount:t.length})}return P.jsx(oe.components.MenuList,{...e,children:t})},MultiValueLabel:e=>P.jsx(U.Box,{padding:2,paddingRight:1,children:P.jsx(U.Text,{size:1,weight:"medium",children:P.jsx(oe.components.MultiValueLabel,{...e})})}),MultiValueRemove:e=>P.jsx(oe.components.MultiValueRemove,{...e,children:P.jsx(ft,{color:"#1f2123"})}),Option:Xi},$i=je.default(nr)((e=>{let{theme:t}=e;return{color:t.sanity.color.spot.red}})),Ki=e=>{const{description:t,error:r,label:n,name:o}=e;return P.jsxs(P.Fragment,{children:[P.jsx(U.Box,{marginY:3,children:P.jsxs(U.Inline,{space:2,children:[P.jsx(U.Text,{as:"label",htmlFor:o,size:1,weight:"semibold",children:n}),r&&P.jsx(U.Text,{size:1,children:P.jsx(U.Tooltip,{content:P.jsx(U.Box,{padding:2,children:P.jsxs(U.Text,{muted:!0,size:1,children:[P.jsx($i,{style:{marginRight:"0.1em"}}),r]})}),fallbackPlacements:["top","left"],placement:"right",portal:!0,children:P.jsx($i,{})})})]})}),t&&P.jsx(U.Box,{marginY:3,children:P.jsx(U.Text,{htmlFor:o,muted:!0,size:1,children:t})})]})},Ji=e=>{const{control:t,description:r,disabled:n,error:o,label:i,name:s,onCreateTag:a,options:l,placeholder:d,value:c}=e,{scheme:u}=q.useColorScheme(),h=Qo((e=>e.tags.creating)),p=Qo((e=>e.tags.fetching));return P.jsxs(U.Box,{style:{zIndex:2},children:[P.jsx(Ki,{description:r,error:o,label:i,name:s}),P.jsx(ae.Controller,{control:t,defaultValue:c,name:s,render:e=>{let{field:t}=e;const{onBlur:r,onChange:o,value:i}=t;return P.jsx(Ve.default,{components:Yi,instanceId:"tags",isClearable:!1,isDisabled:h||n||p,isLoading:h,isMulti:!0,name:s,noOptionsMessage:()=>"No tags",onBlur:r,onChange:o,onCreateOption:a,options:l,placeholder:p?"Loading...":d,styles:Gi(u),value:i})}})]})},es=O.forwardRef(((e,t)=>{const{description:r,disabled:n,error:o,label:i,name:s,placeholder:a,value:l,...d}=e;return P.jsxs(U.Box,{children:[P.jsx(Ki,{description:r,error:o,label:i,name:s}),P.jsx(U.TextInput,{...d,autoComplete:"off",autoFocus:!0,defaultValue:l,disabled:n,id:s,name:s,placeholder:a,ref:t})]})})),ts=O.forwardRef(((e,t)=>{const{description:r,disabled:n,error:o,label:i,name:s,placeholder:a,rows:l,value:d,...c}=e;return P.jsxs(U.Box,{children:[P.jsx(Ki,{description:r,error:o,label:i,name:s}),P.jsx(U.TextArea,{...c,autoComplete:"off",defaultValue:d,disabled:n,id:s,name:s,placeholder:a,ref:t,rows:l})]})})),rs=e=>{const{disabled:t,isValid:r,lastUpdated:n,onClick:o}=e;let i;return i=r?n?P.jsxs(P.Fragment,{children:["Last updated",P.jsx("br",{})," ",Me.default(new Date(n),"PPp")]}):"No unpublished changes":"There are validation errors that need to be fixed before this document can be published",P.jsx(U.Tooltip,{content:P.jsx(U.Box,{padding:3,style:{maxWidth:"185px"},children:P.jsx(U.Text,{muted:!0,size:1,children:i})}),disabled:"ontouchstart"in window,placement:"top",portal:!0,children:P.jsx(U.Box,{children:P.jsx(U.Button,{disabled:t,fontSize:1,onClick:o,text:"Save and close",tone:"primary"})})})},ns=je.default.img(v||(v=D(["\n --checkerboard-color: ",";\n\n display: block;\n width: 100%;\n height: 100%;\n object-fit: contain;\n\n ","\n"])),(e=>e.scheme?oi(e.scheme,"bg2"):"inherit"),(e=>e.showCheckerboard&&te.css(C||(C=D(["\n background-image: linear-gradient(45deg, var(--checkerboard-color) 25%, transparent 25%),\n linear-gradient(-45deg, var(--checkerboard-color) 25%, transparent 25%),\n linear-gradient(45deg, transparent 75%, var(--checkerboard-color) 75%),\n linear-gradient(-45deg, transparent 75%, var(--checkerboard-color) 75%);\n background-size: 20px 20px;\n background-position: 0 0, 0 10px, 10px -10px, -10px 0;\n "]))))),os=e=>{var t;const{children:r,dialog:{assetId:n,id:o,lastCreatedTag:i,lastRemovedTagIds:s}}=e,a=go(),{scheme:l}=q.useColorScheme(),d=q.useDocumentStore(),c=G.useDispatch(),u=Qo((e=>zo(e,String(n)))),h=Qo(bo),p=O.useRef(void 0),[f,g]=O.useState(null==u?void 0:u.asset),[m,x]=O.useState("details"),w=u?null==u?void 0:u.asset:f,v=jo(h),C=Qo((y=w,e=>{var t,r,n;const o=null==(n=null==(r=null==(t=null==y?void 0:y.opt)?void 0:t.media)?void 0:r.tags)?void 0:n.reduce(((t,r)=>{const n=e.tags.byIds[r._ref];return(null==n?void 0:n.tag)&&t.push(n),t}),[]);return o&&(null==o?void 0:o.length)>0?jo(o):null}));var y;const k=O.useCallback((e=>({altText:(null==e?void 0:e.altText)||"",description:(null==e?void 0:e.description)||"",originalFilename:(null==e?void 0:e.originalFilename)||"",opt:{media:{tags:C}},title:(null==e?void 0:e.title)||""})),[C]),{control:L,formState:{errors:M,isDirty:b,isValid:H},getValues:V,handleSubmit:R,register:B,reset:T,setValue:I}=ae.useForm({defaultValues:k(null==u?void 0:u.asset),mode:"onChange",resolver:se.zodResolver(Ri)}),Z=!u||(null==u?void 0:u.updating),S=O.useCallback((()=>{c(Xo.remove({id:o}))}),[c,o]),W=O.useCallback((()=>{(null==u?void 0:u.asset)&&c(Xo.showConfirmDeleteAssets({assets:[u],closeDialogId:null==u?void 0:u.asset._id}))}),[u,c]),_=O.useCallback((e=>{const{result:t,transition:r}=e;t&&"update"===r&&g(t)}),[]),E=O.useCallback((e=>{c(Vo.createRequest({assetId:null==w?void 0:w._id,name:e}))}),[null==w?void 0:w._id,c]),z=O.useCallback((e=>{var t;if(!(null==u?void 0:u.asset))return;const r=Zi(e);c(Oo.updateRequest({asset:null==u?void 0:u.asset,closeDialogId:null==u?void 0:u.asset._id,formData:{...r,opt:{media:{...r.opt.media,tags:(null==(t=r.opt.media.tags)?void 0:t.map((e=>({_ref:e.value,_type:"reference",_weak:!0}))))||null}}}}))}),[null==u?void 0:u.asset,c]);O.useEffect((()=>{if(!(null==u?void 0:u.asset))return;const e=a.listen(Ce.default(j||(j=D(["*[_id == $id]"]))),{id:null==u?void 0:u.asset._id}).subscribe(_);return()=>{null==e||e.unsubscribe()}}),[null==u?void 0:u.asset,a,_]),O.useEffect((()=>{if(i){const e=(V("opt.media.tags")||[]).concat([i]);I("opt.media.tags",e,{shouldDirty:!0})}}),[V,i,I]),O.useEffect((()=>{if(s){const e=(V("opt.media.tags")||[]).filter((e=>!s.includes(e.value)));I("opt.media.tags",e,{shouldDirty:!0})}}),[V,s,I]),O.useEffect((()=>{p.current!==(null==u?void 0:u.asset._updatedAt)&&T(k(null==u?void 0:u.asset)),p.current=null==u?void 0:u.asset._updatedAt}),[null==u?void 0:u.asset,k,T]);const F=()=>P.jsx(U.Box,{padding:3,children:P.jsxs(U.Flex,{justify:"space-between",children:[P.jsx(U.Button,{disabled:Z,fontSize:1,mode:"bleed",onClick:W,text:"Delete",tone:"critical"}),P.jsx(rs,{disabled:Z||!b||!H,isValid:H,lastUpdated:null==w?void 0:w._updatedAt,onClick:R(z)})]})});return w?P.jsxs(Ai,{footer:P.jsx(F,{}),header:"Asset details",id:o,onClose:S,width:3,children:[P.jsxs(U.Flex,{direction:["column-reverse","column-reverse","row-reverse"],children:[P.jsx(U.Box,{flex:1,marginTop:[5,5,0],padding:4,children:P.jsx(q.WithReferringDocuments,{documentStore:d,id:w._id,children:e=>{let{isLoading:t,referringDocuments:r}=e;var n,o,i,s,a,l,d;const c=Ti(r);return P.jsxs(P.Fragment,{children:[P.jsxs(U.TabList,{space:2,children:[P.jsx(U.Tab,{"aria-controls":"details-panel",disabled:Z,id:"details-tab",label:"Details",onClick:()=>x("details"),selected:"details"===m,size:2}),P.jsx(U.Tab,{"aria-controls":"references-panel",disabled:Z,id:"references-tab",label:"References".concat(!t&&Array.isArray(c)?" (".concat(c.length,")"):""),onClick:()=>x("references"),selected:"references"===m,size:2})]}),P.jsxs(U.Box,{as:"form",marginTop:4,onSubmit:R(z),children:[!u&&P.jsx(U.Card,{marginBottom:3,padding:3,radius:2,shadow:1,tone:"critical",children:P.jsx(U.Text,{size:1,children:"This file cannot be found – it may have been deleted."})}),P.jsx("button",{style:{display:"none"},tabIndex:-1,type:"submit"}),P.jsx(U.TabPanel,{"aria-labelledby":"details",hidden:"details"!==m,id:"details-panel",children:P.jsxs(U.Stack,{space:3,children:[P.jsx(Ji,{control:L,disabled:Z,error:null==(i=null==(o=null==(n=null==M?void 0:M.opt)?void 0:n.media)?void 0:o.tags)?void 0:i.message,label:"Tags",name:"opt.media.tags",onCreateTag:E,options:v,placeholder:"Select or create...",value:C}),P.jsx(es,{...B("originalFilename"),disabled:Z,error:null==(s=null==M?void 0:M.originalFilename)?void 0:s.message,label:"Filename",name:"originalFilename",value:null==w?void 0:w.originalFilename}),P.jsx(es,{...B("title"),disabled:Z,error:null==(a=null==M?void 0:M.title)?void 0:a.message,label:"Title",name:"title",value:null==w?void 0:w.title}),P.jsx(es,{...B("altText"),disabled:Z,error:null==(l=null==M?void 0:M.altText)?void 0:l.message,label:"Alt Text",name:"altText",value:null==w?void 0:w.altText}),P.jsx(ts,{...B("description"),disabled:Z,error:null==(d=null==M?void 0:M.description)?void 0:d.message,label:"Description",name:"description",rows:5,value:null==w?void 0:w.description})]})}),P.jsx(U.TabPanel,{"aria-labelledby":"references",hidden:"references"!==m,id:"references-panel",children:P.jsx(U.Box,{marginTop:5,children:(null==u?void 0:u.asset)&&P.jsx(Di,{documents:c,isLoading:t})})})]})]})}})}),P.jsxs(U.Box,{flex:1,padding:4,children:[P.jsxs(U.Box,{style:{aspectRatio:"1"},children:[Si(w)&&P.jsx(Ui,{asset:w}),Wi(w)&&P.jsx(ns,{draggable:!1,scheme:l,showCheckerboard:!(null==(t=null==w?void 0:w.metadata)?void 0:t.isOpaque),src:Ii(w,{height:600,width:600})})]}),w&&P.jsx(U.Box,{marginTop:4,children:P.jsx(Fi,{asset:w,item:u})})]})]}),r]}):null},is=e=>{const{children:t,dialog:r}=e,n=G.useDispatch(),o=()=>{n(Xo.remove({id:null==r?void 0:r.id}))},i=()=>{(null==r?void 0:r.closeDialogId)&&n(Xo.remove({id:null==r?void 0:r.closeDialogId})),(null==r?void 0:r.confirmCallbackAction)&&n(r.confirmCallbackAction),o()},s=()=>P.jsx(U.Box,{padding:3,children:P.jsxs(U.Flex,{justify:"space-between",children:[P.jsx(U.Button,{fontSize:1,mode:"bleed",onClick:o,text:"Cancel"}),P.jsx(U.Button,{fontSize:1,onClick:i,text:null==r?void 0:r.confirmText,tone:null==r?void 0:r.tone})]})}),a=()=>P.jsxs(U.Flex,{align:"center",children:[P.jsx(U.Box,{paddingX:1,children:P.jsx(Jn,{})}),P.jsx(U.Box,{marginLeft:2,children:null==r?void 0:r.headerTitle})]});return P.jsxs(Ai,{footer:P.jsx(s,{}),header:P.jsx(a,{}),id:"confirm",onClose:o,width:1,children:[P.jsx(U.Box,{paddingX:4,paddingY:4,children:P.jsxs(U.Stack,{space:3,children:[(null==r?void 0:r.title)&&P.jsx(U.Text,{size:1,children:r.title}),(null==r?void 0:r.description)&&P.jsx(U.Text,{muted:!0,size:1,children:P.jsx("em",{children:r.description})})]})}),t]})},ss=e=>{const{children:t,dialog:{id:r}}=e,n=G.useDispatch(),o=O.useCallback((()=>{n(Xo.clear())}),[]);return P.jsxs(Ai,{header:"Filters",id:r,onClose:o,width:1,children:[P.jsxs(U.Box,{padding:3,children:[P.jsx(vi,{layout:"stack"}),P.jsx(Ci,{})]}),t]})},as=e=>{var t;const{children:r,dialog:{id:n}}=e,o=G.useDispatch(),i=Qo((e=>e.tags.creating)),s=Qo((e=>e.tags.creatingError)),{formState:{errors:a,isDirty:l,isValid:d},handleSubmit:c,register:u,setError:h}=ae.useForm({defaultValues:{name:""},mode:"onChange",resolver:se.zodResolver(Bi)}),p=i,f=e=>{const t=Zi(e);o(Vo.createRequest({name:t.name}))};O.useEffect((()=>{s&&h("name",{message:null==s?void 0:s.message})}),[s,h]);const g=()=>P.jsx(U.Box,{padding:3,children:P.jsx(U.Flex,{justify:"flex-end",children:P.jsx(rs,{disabled:p||!l||!d,isValid:d,onClick:c(f)})})});return P.jsxs(Ai,{footer:P.jsx(g,{}),header:"Create Tag",id:n,onClose:()=>{o(Xo.clear())},width:1,children:[P.jsxs(U.Box,{as:"form",padding:4,onSubmit:c(f),children:[P.jsx("button",{style:{display:"none"},tabIndex:-1,type:"submit"}),P.jsx(es,{...u("name"),disabled:p,error:null==(t=null==a?void 0:a.name)?void 0:t.message,label:"Name",name:"name"})]}),r]})},ls=e=>{var t;const{children:r,dialog:{id:n,tagId:o}}=e,i=go(),s=G.useDispatch(),a=Qo((e=>Ho(e,String(o)))),[l,d]=O.useState(null==a?void 0:a.tag),c=a?null==a?void 0:a.tag:l,u=e=>{var t;return{name:(null==(t=null==e?void 0:e.name)?void 0:t.current)||""}},{formState:{errors:h,isDirty:p,isValid:f},handleSubmit:g,register:m,reset:x,setError:w}=ae.useForm({defaultValues:u(null==a?void 0:a.tag),mode:"onChange",resolver:se.zodResolver(Bi)}),v=!a||(null==a?void 0:a.updating),C=e=>{var t;if(!(null==a?void 0:a.tag))return;const r=Zi(e);s(Vo.updateRequest({closeDialogId:null==(t=null==a?void 0:a.tag)?void 0:t._id,formData:{name:{_type:"slug",current:r.name}},tag:null==a?void 0:a.tag}))},j=()=>{var e;(null==a?void 0:a.tag)&&s(Xo.showConfirmDeleteTag({closeDialogId:null==(e=null==a?void 0:a.tag)?void 0:e._id,tag:null==a?void 0:a.tag}))},k=O.useCallback((e=>{const{result:t,transition:r}=e;t&&"update"===r&&(d(t),x(u(t)))}),[x]);O.useEffect((()=>{var e;(null==a?void 0:a.error)&&w("name",{message:null==(e=a.error)?void 0:e.message})}),[w,a.error]),O.useEffect((()=>{if(!(null==a?void 0:a.tag))return;const e=i.listen(Ce.default(y||(y=D(["*[_id == $id]"]))),{id:null==a?void 0:a.tag._id}).subscribe(k);return()=>{null==e||e.unsubscribe()}}),[i,k,null==a?void 0:a.tag]);const L=()=>{var e;return P.jsx(U.Box,{padding:3,children:P.jsxs(U.Flex,{justify:"space-between",children:[P.jsx(U.Button,{disabled:v,fontSize:1,mode:"bleed",onClick:j,text:"Delete",tone:"critical"}),P.jsx(rs,{disabled:v||!p||!f,isValid:f,lastUpdated:null==(e=null==a?void 0:a.tag)?void 0:e._updatedAt,onClick:g(C)})]})})};return c?P.jsxs(Ai,{footer:P.jsx(L,{}),header:"Edit Tag",id:n,onClose:()=>{s(Xo.remove({id:n}))},width:1,children:[P.jsxs(U.Box,{as:"form",padding:4,onSubmit:g(C),children:[!a&&P.jsx(U.Card,{marginBottom:3,padding:3,radius:2,shadow:1,tone:"critical",children:P.jsx(U.Text,{size:1,children:"This tag cannot be found – it may have been deleted."})}),P.jsx("button",{style:{display:"none"},tabIndex:-1,type:"submit"}),P.jsx(es,{...m("name"),disabled:v,error:null==(t=null==h?void 0:h.name)?void 0:t.message,label:"Name",name:"name"})]}),r]}):null},ds=je.default(U.Flex)(k||(k=D(["\n height: ","px;\n"])),32),cs=je.default(U.Flex)(L||(L=D(["\n @media (pointer: fine) {\n visibility: hidden;\n }\n\n @media (hover: hover) and (pointer: fine) {\n ",":hover & {\n visibility: visible;\n }\n }\n"])),ds),us=e=>{const{disabled:t,icon:r,onClick:n,tone:o,tooltip:i}=e;return P.jsx(U.Tooltip,{content:P.jsx(U.Container,{padding:2,width:0,children:P.jsx(U.Text,{muted:!0,size:1,children:i})}),disabled:"ontouchstart"in window,placement:"top",portal:!0,children:P.jsx(U.Button,{disabled:t,fontSize:1,icon:r,mode:"bleed",onClick:n,padding:2,tone:o})})},hs=e=>{var t,r;const{actions:n,tag:o}=e,i=G.useDispatch(),s=Qo(Do),a=Qo((e=>{var t;return To(e,null==(t=null==o?void 0:o.tag)?void 0:t._id)}));return P.jsxs(ds,{align:"center",flex:1,justify:"space-between",paddingLeft:3,children:[P.jsx(U.Box,{flex:1,children:P.jsx(U.Text,{muted:!0,size:1,style:{opacity:(null==o?void 0:o.updating)?.5:1,userSelect:"none"},textOverflow:"ellipsis",children:null==(r=null==(t=null==o?void 0:o.tag)?void 0:t.name)?void 0:r.current})}),P.jsxs(cs,{align:"center",style:{flexShrink:0},children:[(null==n?void 0:n.includes("search"))&&P.jsx(us,{disabled:null==o?void 0:o.updating,icon:a?P.jsx(ft,{}):P.jsx(dn,{}),onClick:a?()=>{i(Io.facetsRemoveByTag({tagId:o.tag._id}))}:()=>{var e,t,r;const n={...io.tag,value:{label:null==(t=null==(e=null==o?void 0:o.tag)?void 0:e.name)?void 0:t.current,value:null==(r=null==o?void 0:o.tag)?void 0:r._id}};i(a?Io.facetsUpdate({name:"tag",operatorType:"references",value:n.value}):Io.facetsAdd({facet:n}))},tooltip:a?"Remove filter":"Filter by tag"}),(null==n?void 0:n.includes("edit"))&&P.jsx(us,{disabled:null==o?void 0:o.updating,icon:P.jsx(Xt,{}),onClick:()=>{var e;i(ko.showTagEdit({tagId:null==(e=null==o?void 0:o.tag)?void 0:e._id}))},tone:"primary",tooltip:"Edit tag"}),(null==n?void 0:n.includes("applyAll"))&&P.jsx(us,{disabled:null==o?void 0:o.updating,icon:P.jsx(Ae,{}),onClick:()=>{i(Xo.showConfirmAssetsTagAdd({assetsPicked:s,tag:o.tag}))},tone:"primary",tooltip:"Add tag to selected assets"}),(null==n?void 0:n.includes("removeAll"))&&P.jsx(us,{disabled:null==o?void 0:o.updating,icon:P.jsx(_e,{}),onClick:()=>{i(Xo.showConfirmAssetsTagRemove({assetsPicked:s,tag:o.tag}))},tone:"critical",tooltip:"Remove tag from selected assets"}),(null==n?void 0:n.includes("delete"))&&P.jsx(us,{disabled:null==o?void 0:o.updating,icon:P.jsx(En,{}),onClick:()=>{i(Xo.showConfirmDeleteTag({tag:o.tag}))},tone:"critical",tooltip:"Delete tag"})]})]})},ps=O.memo((e=>{let{isScrolling:t,item:r}=e;var n;return"string"==typeof r?P.jsx(U.Flex,{align:"center",justify:"space-between",paddingX:3,style:{height:"".concat(32,"px")},children:P.jsx(U.Label,{size:0,children:r})},r):P.jsx(hs,{actions:t?void 0:r.actions,tag:r},null==(n=r.tag)?void 0:n._id)})),fs=()=>{const e=Qo(Do),t=Qo(bo),[r,n]=O.useState(!1),o=null==e?void 0:e.reduce(((e,t)=>{var r,n,o,i;const s=(null==(i=null==(o=null==(n=null==(r=null==t?void 0:t.asset)?void 0:r.opt)?void 0:n.media)?void 0:o.tags)?void 0:i.map((e=>e._ref)))||[];return e=e.concat(s)}),[]),i=[...new Set(o)],s=i.reduce(((t,r)=>(e.every((e=>{var t,n,o,i;return(null!=(i=null==(o=null==(n=null==(t=e.asset.opt)?void 0:t.media)?void 0:n.tags)?void 0:o.findIndex((e=>e._ref===r)))?i:-1)>=0}))?t.appliedToAll.push(r):t.appliedToSome.push(r),t)),{appliedToAll:[],appliedToSome:[]}),a=t.filter((e=>s.appliedToAll.includes(e.tag._id))).map((e=>({...e,actions:["delete","edit","removeAll","search"]}))),l=t.filter((e=>s.appliedToSome.includes(e.tag._id))).map((e=>({...e,actions:["applyAll","delete","edit","removeAll","search"]}))),d=t.filter((e=>!i.includes(e.tag._id))).map((e=>({...e,actions:["applyAll","delete","edit","search"]})));let c=[];return 0===e.length?c=t.map((e=>({...e,actions:["delete","edit","search"]}))):((null==a?void 0:a.length)>0&&(c=[...c,1===e.length?"Used":"Used by all",...a]),(null==l?void 0:l.length)>0&&(c=[...c,"Used by some",...l]),(null==d?void 0:d.length)>0&&(c=[...c,"Unused",...d])),P.jsx(ie.Virtuoso,{className:"media__custom-scrollbar",computeItemKey:e=>{const t=c[e];return"string"==typeof t?t:t.tag._id},isScrolling:n,itemContent:e=>P.jsx(ps,{isScrolling:r,item:c[e]}),style:{flex:1,overflowX:"hidden"},totalCount:c.length})},gs=e=>{let{allowCreate:t,light:r,title:n}=e;const{scheme:o}=q.useColorScheme(),i=G.useDispatch(),s=Qo((e=>e.tags.creating)),a=Qo((e=>e.tags.fetching));return P.jsx(P.Fragment,{children:P.jsxs(U.Flex,{align:"center",justify:"space-between",paddingLeft:3,style:{background:r?oi(o,"bg"):"inherit",borderBottom:"1px solid var(--card-border-color)",flexShrink:0,height:"".concat(32,"px")},children:[P.jsxs(U.Inline,{space:2,children:[P.jsx(U.Label,{size:0,children:n}),a&&P.jsx(U.Label,{size:0,style:{opacity:.3},children:"Loading..."})]}),t&&P.jsx(U.Box,{marginRight:1,children:P.jsx(U.Button,{disabled:s,fontSize:1,icon:yt,mode:"bleed",onClick:()=>{i(ko.showTagCreate())},style:{background:"transparent",boxShadow:"none"}})})]})})},ms=()=>{const e=Qo(qo),t=Qo(bo),r=Qo((e=>e.tags.fetching)),n=-1!==Qo((e=>e.tags.fetchCount)),o=!r&&(null==t?void 0:t.length)>0,i=!!(e>0);return P.jsxs(U.Flex,{direction:"column",flex:1,height:"fill",children:[P.jsx(gs,{allowCreate:!0,light:i,title:i?"Tags (in selection)":"Tags"}),n&&!o&&P.jsx(U.Box,{padding:3,children:P.jsx(U.Text,{muted:!0,size:1,children:P.jsx("em",{children:"No tags"})})}),o&&P.jsx(fs,{})]})},xs=e=>{const{children:t,dialog:{id:r}}=e,n=G.useDispatch(),o=O.useCallback((()=>{n(Xo.clear())}),[]);return P.jsxs(Ai,{header:"All Tags",id:r,onClose:o,width:1,children:[P.jsx(U.Box,{style:{height:"100%",minHeight:"420px"},children:P.jsx(ms,{})}),t]})},ws=()=>{const e=Qo((e=>e.dialog.items)),t=(e,r)=>{if(0===e.length||r>=e.length)return null;const n=e[r],o=t(e,r+1);return"assetEdit"===n.type?P.jsx(os,{dialog:n,children:o},r):"confirm"===n.type?P.jsx(is,{dialog:n,children:o},r):"searchFacets"===n.type?P.jsx(ss,{dialog:n,children:o},r):"tagCreate"===n.type?P.jsx(as,{dialog:n,children:o},r):"tagEdit"===n.type?P.jsx(ls,{dialog:n,children:o},r):"tags"===n.type?P.jsx(xs,{dialog:n,children:o},r):null};return t(e,0)},vs=O.createContext(void 0),Cs=e=>{const{children:t,open:r}=e,n={open:r};return P.jsx(vs.Provider,{value:n,children:t})},js=e=>{const{onClose:t}=e,{open:r}=(()=>{const e=O.useContext(vs);if(void 0===e)throw new Error("useDropzoneActions must be used within an DropzoneDispatchProvider");return e})(),{onSelect:n}=fo(),o=Qo((e=>e.assets.assetTypes)),i=Qo((e=>e.selected.document));return P.jsx(U.Box,{paddingY:2,children:P.jsxs(U.Flex,{align:"center",justify:"space-between",children:[P.jsx(U.Box,{flex:1,marginX:3,children:P.jsxs(U.Inline,{style:{whiteSpace:"nowrap"},children:[P.jsx(U.Text,{textOverflow:"ellipsis",weight:"semibold",children:P.jsx("span",{children:n?"Insert ".concat(o.join(" or ")):"Browse Assets"})}),i&&P.jsx(U.Box,{display:["none","none","block"],children:P.jsxs(U.Text,{children:[P.jsx("span",{style:{margin:"0 0.5em"},children:P.jsx(ro,{symbol:"arrow-right"})}),P.jsx("span",{style:{textTransform:"capitalize"},children:i._type})]})})]})}),P.jsxs(U.Flex,{marginX:2,children:[P.jsx(U.Button,{fontSize:1,icon:Xn,mode:"bleed",onClick:r,text:"Upload ".concat(1===o.length?ye.default(o[0]):"assets"),tone:"primary"}),t&&P.jsx(U.Box,{style:{flexShrink:0},children:P.jsx(U.Button,{disabled:!t,icon:ft,mode:"bleed",onClick:t,radius:2})})]})]})})},ys=X.createSelector([e=>e.assets.allIds,e=>e.uploads.allIds],((e,t)=>{const r=e.map((e=>({id:e,type:"asset"})));return[...t.map((e=>({id:e,type:"upload"}))),...r]})),ks=je.default(U.Flex)(M||(M=D(["\n box-sizing: border-box;\n height: 100%;\n overflow: hidden;\n position: relative;\n width: 100%;\n"]))),Ls=je.default(U.Flex)((e=>{let{picked:t,theme:r,updating:n}=e;return te.css(b||(b=D(["\n border: 1px solid transparent;\n height: 100%;\n pointer-events: ",";\n position: relative;\n transition: all 300ms;\n user-select: none;\n width: 100%;\n\n border: ",";\n\n ","\n "])),n?"none":"auto",t?"1px solid ".concat(r.sanity.color.spot.orange," !important"):"1px solid inherit",!n&&te.css(H||(H=D(["\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n border: 1px solid var(--card-border-color);\n }\n }\n "]))))})),Ms=je.default(U.Flex)((e=>{let{scheme:t}=e;return te.css(V||(V=D(["\n cursor: pointer;\n height: ","px;\n transition: all 300ms;\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ",";\n }\n }\n "])),32,oi(t,"bg"))})),bs=je.default(Kn)((e=>{let{theme:t}=e;return{color:t.sanity.color.spot.red}}));var Hs=O.memo((e=>{var t,r;const{id:n,selected:o}=e,{scheme:i}=q.useColorScheme(),s=no("shift"),a=G.useDispatch(),l=Qo((e=>e.assets.lastPicked)),d=Qo((e=>zo(e,n))),c=null==d?void 0:d.asset,u=null==d?void 0:d.error,h=null==(r=null==(t=null==d?void 0:d.asset)?void 0:t.metadata)?void 0:r.isOpaque,p=null==d?void 0:d.picked,f=null==d?void 0:d.updating,{onSelect:g}=fo();if(!c)return null;const m=f?.5:1,x=o||f?.25:1;return P.jsx(ks,{padding:1,children:P.jsxs(Ls,{direction:"column",picked:p,updating:d.updating,children:[P.jsxs(U.Box,{flex:1,style:{cursor:o?"default":"pointer",position:"relative"},children:[P.jsxs("div",{onClick:e=>{e.stopPropagation(),g?g([{kind:"assetDocumentId",value:c._id}]):s.current?a(p?Oo.pick({assetId:c._id,picked:!p}):Oo.pickRange({startId:l||c._id,endId:c._id})):a(Xo.showAssetEdit({assetId:c._id}))},style:{height:"100%",opacity:x},children:[Si(c)&&P.jsx(Pi,{extension:c.extension,width:"80px"}),Wi(c)&&P.jsx(ns,{draggable:!1,scheme:i,showCheckerboard:!h,src:Ii(c,{height:250,width:250}),style:{draggable:!1,transition:"opacity 1000ms"}})]}),o&&!f&&P.jsx(U.Flex,{align:"center",justify:"center",style:{height:"100%",left:0,opacity:m,position:"absolute",top:0,width:"100%"},children:P.jsx(U.Text,{size:2,children:P.jsx(nt,{})})}),f&&P.jsx(U.Flex,{align:"center",justify:"center",style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},children:P.jsx(U.Spinner,{})})]}),P.jsxs(Ms,{align:"center",onClick:e=>{e.stopPropagation(),g?a(Xo.showAssetEdit({assetId:c._id})):s.current&&!p?a(Oo.pickRange({startId:l||c._id,endId:c._id})):a(Oo.pick({assetId:c._id,picked:!p}))},paddingX:1,scheme:i,style:{opacity:m},children:[g?P.jsx(Xt,{style:{flexShrink:0,opacity:.5}}):P.jsx(U.Checkbox,{checked:p,readOnly:!0,style:{flexShrink:0,pointerEvents:"none",transform:"scale(0.8)"}}),P.jsx(U.Box,{marginLeft:2,children:P.jsx(U.Text,{muted:!0,size:0,textOverflow:"ellipsis",children:c.originalFilename})})]}),u&&P.jsx(U.Box,{padding:3,style:{position:"absolute",right:0,top:0},children:P.jsx(U.Tooltip,{content:P.jsx(U.Container,{padding:2,width:0,children:P.jsx(U.Text,{size:1,children:u})}),placement:"left",portal:!0,children:P.jsx(U.Text,{size:1,children:P.jsx(bs,{color:"critical"})})})})]})})}));const Vs=async e=>{const t=await(e=>new Promise((t=>{const r=window.URL.createObjectURL(e),n=new Image;n.onload=()=>{window.URL.revokeObjectURL(r),t(n)},n.src=r})))(e),r=await(n=t,new Promise((e=>{const t=n.width/n.height,r=document.createElement("canvas");r.width=180,r.height=Math.max(180/t,1);try{const o=r.getContext("2d");null==o||o.drawImage(n,0,0,180,180/t),r.toBlob(e,"image/jpeg")}catch(e){console.warn("Unable to generate preview image:",e)}})));var n;if(!r)throw Error("Unable to generate file Blob");return window.URL.createObjectURL(r)};function Rs(e,t){const r=e.indexOf(t);return r>-1&&e.splice(r,1),e}const Bs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4;const t=[],r=[],n=new K.Subject;function o(s){return new K.Observable((a=>{if(t.length>=e)return i(s).pipe(J.mergeMap(o)).subscribe(a);const l=s.subscribe(a);return t.push(l),()=>{for(Rs(t,l),Rs(r,s),l.unsubscribe();r.length>0&&t.length<e;)n.next(r.shift())}}))}function i(e){return r.push(e),n.asObservable().pipe(J.first((t=>t===e)))}return o},Ts=e=>Array.prototype.map.call(new Uint8Array(e),(e=>"00".concat(e.toString(16)).slice(-2))).join(""),Is=e=>window.crypto&&window.crypto.subtle&&window.FileReader?(e=>new K.Observable((t=>{const r=new FileReader;return r.onload=()=>{t.next(r.result),t.complete()},r.onerror=e=>{t.error(e)},r.readAsArrayBuffer(e),()=>{r.abort()}})))(e).pipe(J.mergeMap((e=>window.crypto.subtle.digest("SHA-1",e))),J.map(Ts)):K.throwError({message:"Unable to generate hash: uploads are only allowed in secure contexts",statusCode:500}),Zs=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;const r=Bs(t);return function(){return K.from(r(e(...arguments)))}}(((e,t,r,n)=>K.of(null).pipe(J.mergeMap((()=>((e,t,r)=>e.observable.fetch("*[_type == $documentType && sha1hash == $hash][0]",{documentType:t,hash:r}))(e,"sanity.".concat(t,"Asset"),n))),J.mergeMap((e=>e?K.throwError({message:"Asset already exists",statusCode:409}):K.of(null))),J.mergeMap((()=>e.observable.assets.upload(t,r,{extract:["blurhash","exif","location","lqip","palette"],preserveFilename:!0}).pipe(J.map((e=>"response"===e.type?{asset:e.body.document,id:e.body.document._id,type:"complete"}:e)))))))),Ss=X.createSlice({name:"uploads",initialState:{allIds:[],byIds:{}},extraReducers:e=>{e.addCase(So.uploadComplete,((e,t)=>{const{asset:r}=t.payload;e.byIds[r.sha1hash]&&(e.byIds[r.sha1hash].status="complete")}))},reducers:{checkRequest(e,t){},checkComplete(e,t){const{results:r}=t.payload;Object.keys(r).forEach((t=>{const r=e.allIds.indexOf(t);if(r>=0&&e.allIds.splice(r,1),e.byIds[t]){const r=e.byIds[t].objectUrl;r&&window.URL.revokeObjectURL(r),delete e.byIds[t]}}))},previewReady(e,t){const{blobUrl:r,hash:n}=t.payload;e.byIds[n]&&(e.byIds[n].objectUrl=r)},uploadCancel(e,t){const{hash:r}=t.payload,n=e.allIds.indexOf(r);n>=0&&e.allIds.splice(n,1),e.byIds[r]&&delete e.byIds[r]},uploadError(e,t){const{hash:r}=t.payload,n=e.allIds.indexOf(r);n>=0&&e.allIds.splice(n,1),delete e.byIds[r]},uploadRequest(e,t){},uploadProgress(e,t){const{event:r,uploadHash:n}=t.payload;e.byIds[n].percent=r.percent,e.byIds[n].status="uploading"},uploadStart(e,t){const{uploadItem:r}=t.payload;e.allIds.includes(r.hash)||e.allIds.push(r.hash),e.byIds[r.hash]=r}}}),Ws=X.createSelector([e=>e.uploads.byIds,(e,t)=>t],((e,t)=>e[t]));X.createSelector([e=>e.uploads.byIds,e=>e.uploads.allIds],((e,t)=>t.map((t=>e[t]))));const _s=Ss.actions;var Es=Ss.reducer;const zs=je.default(U.Flex)(B||(B=D(["\n box-sizing: border-box;\n height: 100%;\n overflow: hidden;\n position: relative;\n width: 100%;\n"]))),Fs=e=>{const{id:t}=e,{scheme:r}=q.useColorScheme(),n=G.useDispatch(),o=Qo((e=>Ws(e,t)));if(!o)return null;const i=be.default(o.size,{base:10,round:0}),s=Math.round(o.percent||0),a="complete"===o.status,l="uploading"===o.status,d="queued"===o.status;let c;a&&(c="Verifying"),l&&(c="".concat(s,"%")),d&&(c="Queued");return P.jsx(zs,{padding:1,children:P.jsxs(U.Flex,{direction:"column",flex:1,style:{background:oi(r,"bg"),border:"1px solid transparent",height:"100%",position:"relative"},children:[P.jsx("div",{style:{background:"var(--card-fg-color)",bottom:0,height:"1px",left:0,position:"absolute",width:"100%",transform:"scaleX(".concat(.01*s,")"),transformOrigin:"bottom left",transition:"all 1000ms ease-out"}}),P.jsxs(U.Box,{flex:1,style:{position:"relative"},children:["image"===o.assetType&&(null==o?void 0:o.objectUrl)&&P.jsx(ns,{draggable:!1,scheme:r,src:o.objectUrl,style:{opacity:.4}}),"file"===o.assetType&&P.jsx("div",{style:{height:"100%",opacity:.1},children:P.jsx(Pi,{width:"80px"})}),!a&&100!==s&&P.jsx(U.Flex,{align:"center",direction:"column",justify:"center",style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},children:P.jsx(U.Button,{fontSize:4,icon:ft,mode:"bleed",onClick:()=>{n(_s.uploadCancel({hash:o.hash}))},padding:2,style:{background:"none",boxShadow:"none"},tone:"critical"})})]}),P.jsxs(U.Flex,{align:"center",justify:"space-between",paddingX:2,style:{height:"".concat(32,"px")},children:[P.jsx(U.Box,{flex:1,marginRight:1,children:P.jsxs(U.Text,{size:0,textOverflow:"ellipsis",children:[o.name," (",i,")"]})}),P.jsx(U.Text,{size:0,style:{flexShrink:0},weight:"semibold",children:c})]})]})})},As=O.memo((e=>{let{item:t,selected:r}=e;return"asset"===(null==t?void 0:t.type)?P.jsx(Hs,{id:t.id,selected:r}):"upload"===(null==t?void 0:t.type)?P.jsx(Fs,{id:t.id}):null})),Ds=je.default.div(T||(T=D(["\n height: ","px;\n width: ","px;\n"])),220,240),qs=je.default.div(I||(I=D(["\n display: grid;\n grid-template-columns: repeat(auto-fill, ","px);\n grid-template-rows: repeat(auto-fill, ","px);\n justify-content: center;\n margin: 0 auto;\n"])),240,220),Os=e=>{const{items:t,onLoadMore:r}=e,n=Qo((e=>e.selected.assets)),o=n&&n.map((e=>e._id))||[],i=null==t?void 0:t.length;return 0===i?null:P.jsx(ie.VirtuosoGrid,{className:"media__custom-scrollbar",computeItemKey:e=>{const r=t[e];return null==r?void 0:r.id},components:{Item:Ds,List:qs},endReached:r,itemContent:e=>{const r=t[e],n=o.includes(null==r?void 0:r.id);return P.jsx(As,{item:r,selected:n})},overscan:48,style:{overflowX:"hidden",overflowY:"scroll"},totalCount:i})},Ps=e=>{const{field:t,title:r}=e,n=G.useDispatch(),o=Qo((e=>e.assets.order)),i=o.field===t;return P.jsx(U.Label,{muted:!t,size:0,children:P.jsxs(U.Box,{onClick:t?()=>{if(t&&r)if(i){const e="asc"===o.direction?"desc":"asc";n(Oo.orderSet({order:{field:t,direction:e}}))}else n(Oo.orderSet({order:{field:t,direction:"asc"}}))}:void 0,style:{cursor:t?"pointer":"default",display:"inline",whiteSpace:"nowrap"},children:[P.jsx("span",{style:{marginRight:"0.4em"},children:r}),i&&"asc"===(null==o?void 0:o.direction)&&P.jsx(lt,{}),i&&"desc"===(null==o?void 0:o.direction)&&P.jsx(it,{})]})})},Us=je.default(U.Flex)((e=>{let{scheme:t}=e;return te.css(Z||(Z=D(["\n cursor: pointer;\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ",";\n }\n }\n "])),oi(t,"bg"))})),Ns=()=>{const{scheme:e}=q.useColorScheme(),t=G.useDispatch(),r=Qo((e=>e.assets.fetching)),n=Qo(Ao),o=Qo(qo),i=U.useMediaIndex(),{onSelect:s}=fo(),a=o===n;return P.jsxs(U.Grid,{style:{alignItems:"center",background:"var(--card-bg-color)",borderBottom:"1px solid var(--card-border-color)",gridColumnGap:i<3?0:"16px",gridTemplateColumns:uo,height:i<3?0:"".concat(32,"px"),letterSpacing:"0.025em",position:"sticky",textTransform:"uppercase",top:0,visibility:i<3?"hidden":"visible",width:"100%",zIndex:1},children:[s?P.jsx(Ps,{}):P.jsx(Us,{align:"center",justify:"center",onClick:e=>{e.stopPropagation(),t(a?Oo.pickClear():Oo.pickAll())},scheme:e,style:{height:"100%",position:"relative"},children:P.jsx(U.Checkbox,{checked:!r&&a,readOnly:!0,style:{pointerEvents:"none",transform:"scale(0.8)"}})}),P.jsx(Ps,{}),P.jsx(Ps,{field:"originalFilename",title:"Filename"}),P.jsx(Ps,{title:"Resolution"}),P.jsx(Ps,{field:"mimeType",title:"MIME type"}),P.jsx(Ps,{field:"size",title:"Size"}),P.jsx(Ps,{field:"_updatedAt",title:"Last updated"}),P.jsx(Ps,{title:"References"}),P.jsx(Ps,{})]})},Qs=je.default(U.Grid)((e=>{let{scheme:t,selected:r,updating:n}=e;return te.css(S||(S=D(["\n align-items: center;\n cursor: ",";\n height: 100%;\n pointer-events: ",";\n user-select: none;\n white-space: nowrap;\n\n ","\n "])),r?"default":"pointer",n?"none":"auto",!n&&te.css(W||(W=D(["\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ",";\n }\n }\n "])),oi(t,"bg")))})),Gs=je.default(U.Flex)((e=>{let{scheme:t}=e;return te.css(_||(_=D(["\n cursor: pointer;\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ",";\n }\n }\n "])),oi(t,"bg2"))})),Xs=je.default(Kn)((e=>{let{theme:t}=e;return{color:t.sanity.color.spot.red}}));var Ys=O.memo((e=>{var t,r;const{id:n,selected:o}=e,{scheme:i}=q.useColorScheme(),s=no("shift"),[a,l]=O.useState(!1),d=O.useRef(),c=G.useDispatch(),u=Qo((e=>e.assets.lastPicked)),h=Qo((e=>zo(e,n))),p=U.useMediaIndex(),f=null==h?void 0:h.asset,g=null==h?void 0:h.error,m=null==(r=null==(t=null==h?void 0:h.asset)?void 0:t.metadata)?void 0:r.isOpaque,x=null==h?void 0:h.picked,w=null==h?void 0:h.updating,{onSelect:v}=fo(),C=O.useCallback((e=>{e.stopPropagation(),f&&(v?c(Xo.showAssetEdit({assetId:f._id})):s.current&&!x?c(Oo.pickRange({startId:u||f._id,endId:f._id})):c(Oo.pick({assetId:f._id,picked:!x})))}),[f,c,u,v,x,s]),j=O.useCallback((e=>{e.stopPropagation(),f&&(v?v([{kind:"assetDocumentId",value:f._id}]):s.current?c(x?Oo.pick({assetId:f._id,picked:!x}):Oo.pickRange({startId:u||f._id,endId:f._id})):c(Xo.showAssetEdit({assetId:f._id})))}),[f,c,u,v,x,s]),y=w?.5:1,k=o||w?.1:1;return O.useEffect((()=>(d.current=setTimeout((()=>l(!0)),750),()=>{d.current&&clearTimeout(d.current)})),[]),f?P.jsxs(Qs,{onClick:o?void 0:j,scheme:i,selected:o,style:{gridColumnGap:p<3?0:"16px",gridRowGap:0,gridTemplateColumns:p<3?co:uo,gridTemplateRows:p<3?"auto":"1fr"},updating:h.updating,children:[P.jsx(Gs,{onClick:C,scheme:i,style:{alignItems:"center",gridColumn:1,gridRowStart:1,gridRowEnd:"span 5",height:"100%",justifyContent:"center",opacity:y,position:"relative"},children:v?P.jsx(Xt,{style:{flexShrink:0,opacity:.5}}):P.jsx(U.Checkbox,{checked:x,readOnly:!0,style:{pointerEvents:"none",transform:"scale(0.8)"}})}),P.jsx(U.Box,{style:{gridColumn:2,gridRowStart:1,gridRowEnd:"span 5",height:"90px",width:"100px"},children:P.jsxs(U.Flex,{align:"center",justify:"center",style:{height:"100%",position:"relative"},children:[P.jsxs(U.Box,{style:{height:"100%",opacity:k,position:"relative"},children:[Si(f)&&P.jsx(Pi,{extension:f.extension,width:"40px"}),Wi(f)&&P.jsx(ns,{draggable:!1,scheme:i,showCheckerboard:!m,src:Ii(f,{height:100,width:100})})]}),w&&P.jsx(U.Flex,{align:"center",justify:"center",style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},children:P.jsx(U.Spinner,{})}),o&&!w&&P.jsx(U.Flex,{align:"center",justify:"center",style:{height:"100%",left:0,position:"absolute",top:0,width:"100%"},children:P.jsx(U.Text,{size:2,children:P.jsx(nt,{})})})]})}),P.jsx(U.Box,{marginLeft:p<3?3:0,style:{gridColumn:3,gridRow:p<3?2:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:f.originalFilename})}),P.jsx(U.Box,{marginLeft:p<3?3:0,style:{gridColumn:p<3?3:4,gridRow:p<3?3:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:Wi(f)&&_i(f)})}),P.jsx(U.Box,{style:{display:p<3?"none":"block",gridColumn:5,gridRow:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:f.mimeType})}),P.jsx(U.Box,{style:{display:p<3?"none":"block",gridColumn:6,gridRow:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:be.default(f.size,{base:10,round:0})})}),P.jsx(U.Box,{marginLeft:p<3?3:0,style:{gridColumn:p<3?3:7,gridRow:p<3?4:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:Re.default(new Date(f._updatedAt),new Date)})}),P.jsx(U.Box,{style:{display:p<3?"none":"block",gridColumn:8,gridRow:"auto",opacity:y},children:P.jsx(U.Text,{muted:!0,size:1,style:{lineHeight:"2em"},textOverflow:"ellipsis",children:a?P.jsx(q.WithReferringDocuments,{id:n,children:e=>{let{isLoading:t,referringDocuments:r}=e;const n=Ti(r);return t?P.jsx(P.Fragment,{children:"-"}):P.jsx(P.Fragment,{children:Array.isArray(n)?n.length:0})}}):P.jsx(P.Fragment,{children:"-"})})}),P.jsx(U.Flex,{align:"center",justify:"center",style:{gridColumn:p<3?4:9,gridRowStart:"1",gridRowEnd:p<3?"span 5":"auto",opacity:y},children:g&&P.jsx(U.Box,{padding:2,children:P.jsx(U.Tooltip,{content:P.jsx(U.Container,{padding:2,width:0,children:P.jsx(U.Text,{size:1,children:g})}),placement:"left",portal:!0,children:P.jsx(U.Text,{size:1,children:P.jsx(Xs,{color:"critical"})})})})})]}):null}));const $s=e=>{const{id:t}=e,{scheme:r}=q.useColorScheme(),n=G.useDispatch(),o=Qo((e=>Ws(e,t))),i=U.useMediaIndex();if(!o)return null;const s=be.default(o.size,{base:10,round:0}),a=Math.round(o.percent||0),l="complete"===o.status,d="uploading"===o.status,c="queued"===o.status;let u;l&&(u="Verifying"),d&&(u="".concat(a,"%")),c&&(u="Queued");return P.jsxs(U.Grid,{style:{alignItems:"center",background:oi(r,"bg"),gridColumnGap:i<3?0:"16px",gridRowGap:0,gridTemplateColumns:i<3?co:uo,gridTemplateRows:i<3?"auto":"1fr",height:"100%",position:"relative"},children:[P.jsx("div",{style:{background:"var(--card-fg-color)",bottom:0,height:"1px",left:0,position:"absolute",width:"100%",transform:"scaleX(".concat(.01*a,")"),transformOrigin:"bottom left",transition:"all 1000ms ease-out"}}),P.jsx(U.Box,{style:{gridColumn:2,gridRowStart:i<3?1:"auto",gridRowEnd:i<3?"span 4":"auto",height:"90px",width:"100px"},children:P.jsxs(U.Box,{style:{height:"100%",position:"relative"},children:["image"===o.assetType&&(null==o?void 0:o.objectUrl)&&P.jsx(ns,{draggable:!1,scheme:r,src:o.objectUrl,style:{opacity:.25}}),"file"===o.assetType&&P.jsx("div",{style:{height:"100%",opacity:.1},children:P.jsx(Pi,{width:"40px"})}),!l&&100!==a&&P.jsx(U.Flex,{align:"center",justify:"center",style:{position:"absolute",height:"100%",left:0,top:0,width:"100%"},children:P.jsx(U.Button,{fontSize:3,icon:ft,mode:"bleed",onClick:()=>{n(_s.uploadCancel({hash:o.hash}))},padding:2,style:{background:"none",boxShadow:"none"},tone:"critical"})})]})}),P.jsx(U.Box,{style:{gridColumn:i<3?3:"3/8",gridRow:i<3?"2/4":"auto",marginLeft:i<3?3:0},children:P.jsxs(U.Stack,{space:3,children:[P.jsxs(U.Text,{muted:!0,size:1,textOverflow:"ellipsis",children:[o.name," (",s,")"]}),P.jsx(U.Text,{size:1,textOverflow:"ellipsis",weight:"semibold",children:u})]})})]})},Ks=O.memo((e=>{let{item:t,selected:r}=e;return"asset"===(null==t?void 0:t.type)?P.jsx(U.Box,{style:{height:"100px"},children:P.jsx(Ys,{id:t.id,selected:r})}):"upload"===(null==t?void 0:t.type)?P.jsx(U.Box,{style:{height:"100px"},children:P.jsx($s,{id:t.id})}):null})),Js=e=>{const{items:t,onLoadMore:r}=e,n=Qo((e=>e.selected.assets)),o=n&&n.map((e=>e._id))||[],i=null==t?void 0:t.length;return 0===i?null:P.jsx(ie.GroupedVirtuoso,{className:"media__custom-scrollbar",computeItemKey:e=>{const r=t[e];return(null==r?void 0:r.id)||e},endReached:r,groupCounts:Array(1).fill(i),groupContent:()=>P.jsx(Ns,{}),itemContent:e=>{const r=t[e],n=o.includes(null==r?void 0:r.id);return P.jsx(Ks,{item:r,selected:n})},style:{overflowX:"hidden"}})},ea=()=>{const e=G.useDispatch(),t=Qo((e=>e.assets.fetchCount)),r=Qo((e=>e.assets.fetching)),n=Qo((e=>e.tags.panelVisible)),o=Qo((e=>e.assets.view)),i=Qo(ys),s=(()=>{var e,t;const r=null==(t=null==(e=U.studioTheme)?void 0:e.container)?void 0:t.map((e=>window.matchMedia("(max-width: ".concat(e,"px)")))),n=()=>r.findIndex((e=>e.matches)),[o,i]=O.useState(n());return O.useEffect((()=>{const e=()=>{i(n)};return r.forEach((t=>{try{t.addEventListener("change",e)}catch(r){try{t.addListener(e)}catch(e){}}})),()=>{try{r.forEach((t=>t.removeEventListener("change",e)))}catch(t){try{r.forEach((t=>t.removeListener(e)))}catch(e){}}}}),[]),o})(),a=t>=0,l=i.length>0,d=()=>{r||e(Oo.loadNextPage())};O.useEffect((()=>{s<=1&&n&&e(Vo.panelVisibleSet({panelVisible:!1}))}),[s]);const c=!l&&a&&!r;return P.jsx(U.Box,{flex:1,style:{width:"100%"},children:c?P.jsx(U.Box,{padding:4,children:P.jsx(U.Text,{size:1,weight:"semibold",children:"No results for the current query"})}):P.jsxs(P.Fragment,{children:["grid"===o&&P.jsx(Os,{items:i,onLoadMore:d}),"table"===o&&P.jsx(Js,{items:i,onLoadMore:d})]})})},ta=()=>{const e=Qo((e=>e.notifications.items)),t=U.useToast();return O.useEffect((()=>{if(e.length>0){const r=e[e.length-1];t.push({closable:!0,status:r.status,title:r.title})}}),[e.length]),null},ra=()=>{const{scheme:e}=q.useColorScheme(),t=G.useDispatch(),r=Qo(Do);return 0===r.length?null:P.jsx(U.Flex,{align:"center",justify:"flex-start",style:{background:oi(e,"bg"),borderBottom:"1px solid var(--card-border-color)",height:"".concat(32,"px"),position:"relative",width:"100%"},children:P.jsxs(U.Flex,{align:"center",paddingX:3,children:[P.jsx(U.Box,{paddingRight:2,children:P.jsxs(U.Label,{size:0,style:{color:"inherit"},children:[r.length," ",ye.default("asset",r.length)," selected"]})}),P.jsx(U.Button,{mode:"bleed",onClick:()=>{t(Oo.pickClear())},padding:2,style:{background:"none",boxShadow:"none"},tone:"default",children:P.jsx(U.Label,{size:0,children:"Deselect"})}),P.jsx(U.Button,{mode:"bleed",onClick:()=>{t(Xo.showConfirmDeleteAssets({assets:r}))},padding:2,style:{background:"none",boxShadow:"none"},tone:"critical",children:P.jsx(U.Label,{size:0,children:"Delete"})})]})})};var na=X.createSlice({name:"selected",initialState:{assets:[],document:void 0,documentAssetIds:[]},reducers:{}}).reducer;const oa=X.createSlice({name:"notifications",initialState:{items:[]},reducers:{add(e,t){const{asset:r,status:n,title:o}=t.payload;e.items.push({asset:r,status:n,title:o})}}}),ia=oa.actions;var sa=oa.reducer;const aa=$.combineEpics(((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Oo.deleteRequest.match),J.mergeMap((e=>{const{assets:t}=e.payload,r=t.map((e=>e._id));return K.of(t).pipe(J.mergeMap((()=>n.observable.delete({query:Ce.default(u||(u=D(["*[_id in ","]"])),JSON.stringify(r))}))),J.mergeMap((()=>K.of(Oo.deleteComplete({assetIds:r})))),J.catchError((e=>K.of(Oo.deleteError({assetIds:r,error:e})))))})))}),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Oo.fetchRequest.match),J.withLatestFrom(t),J.switchMap((e=>{let[t,r]=e;var o,i;const s=null==(o=t.payload)?void 0:o.params,a=null==(i=t.payload)?void 0:i.query;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>n.observable.fetch(a,s))),J.mergeMap((e=>{const{items:t}=e;return K.of(Oo.fetchComplete({assets:t}))})),J.catchError((e=>K.of(Oo.fetchError({message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500})))))})))}),((e,t)=>e.pipe(J.filter(Oo.deleteComplete.match),J.withLatestFrom(t),J.switchMap((e=>{let[t,r]=e;if(0===r.assets.allIds.length){const e=Math.floor(r.assets.allIds.length/r.assets.pageSize);return K.of(Oo.loadPageIndex({pageIndex:e}))}return K.empty()})))),((e,t)=>e.pipe(J.filter(Oo.loadNextPage.match),J.withLatestFrom(t),J.switchMap((e=>{let[t,r]=e;return K.of(Oo.loadPageIndex({pageIndex:r.assets.pageIndex+1}))})))),((e,t)=>e.pipe(J.filter(Oo.loadPageIndex.match),J.withLatestFrom(t),J.switchMap((e=>{let[t,r]=e;var n,o,i,s,a,l;const d=r.assets.pageSize,c=t.payload.pageIndex*d,u=c+d,f=null==(n=null==r?void 0:r.selected.document)?void 0:n._id,g=null==(o=null==r?void 0:r.selected)?void 0:o.documentAssetIds,m=vo({assetTypes:r.assets.assetTypes,searchFacets:r.search.facets,searchQuery:r.search.query}),x={...f?{documentId:f}:{},documentAssetIds:g};return K.of(Oo.fetchRequest({params:x,queryFilter:m,selector:Ce.default(h||(h=D(["[","...","]"])),c,u),sort:Ce.default(p||(p=D(["order("," ",")"])),null==(s=null==(i=r.assets)?void 0:i.order)?void 0:s.field,null==(l=null==(a=r.assets)?void 0:a.order)?void 0:l.direction)}))})))),(e=>e.pipe(J.filter(Oo.listenerCreateQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.asset));return K.of(Oo.listenerCreateQueueComplete({assets:t}))})))),(e=>e.pipe(J.filter(Oo.listenerDeleteQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.assetId));return K.of(Oo.listenerDeleteQueueComplete({assetIds:t}))})))),(e=>e.pipe(J.filter(Oo.listenerUpdateQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.asset));return K.of(Oo.listenerUpdateQueueComplete({assets:t}))})))),(e=>e.pipe(J.filter(Oo.orderSet.match),J.mergeMap((()=>K.of(Oo.clear(),Oo.loadPageIndex({pageIndex:0})))))),(e=>e.pipe($.ofType(Io.facetsAdd.type,Io.facetsClear.type,Io.facetsRemoveById.type,Io.facetsRemoveByName.type,Io.facetsRemoveByTag.type,Io.facetsUpdate.type,Io.facetsUpdateById.type,Io.querySet.type),J.debounceTime(400),J.mergeMap((()=>K.of(Oo.clear(),Oo.loadPageIndex({pageIndex:0})))))),(e=>e.pipe($.ofType(Oo.insertUploads.type,Oo.listenerUpdateQueueComplete.type,Oo.updateComplete.type),J.mergeMap((()=>K.of(Oo.sort()))))),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(yo.tagsAddRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{assets:o,tag:i}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>{const e=Do(r),t=null==e?void 0:e.filter((e=>t=>{var r,n,o,i,s;return(null!=(s=null==(i=null==(o=null==(n=null==(r=null==t?void 0:t.asset)?void 0:r.opt)?void 0:n.media)?void 0:o.tags)?void 0:i.findIndex((t=>t._ref===(null==e?void 0:e._id))))?s:-1)<0})(i)),o=t.reduce(((e,t)=>{var r;return e.patch(null==(r=null==t?void 0:t.asset)?void 0:r._id,(e=>{let{tag:t}=e;return e=>e.setIfMissing({opt:{}}).setIfMissing({"opt.media":{}}).setIfMissing({"opt.media.tags":[]}).append("opt.media.tags",[{_key:Y.nanoid(),_ref:null==t?void 0:t._id,_type:"reference",_weak:!0}])})({tag:i}))}),n.transaction());return K.from(o.commit())})),J.mergeMap((()=>K.of(yo.tagsAddComplete({assets:o,tag:i})))),J.catchError((e=>K.of(yo.tagsAddError({assets:o,error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},tag:i})))))})))}),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(yo.tagsRemoveRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{assets:o,tag:i}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>{const e=Do(r).reduce(((e,t)=>{var r;return e.patch(null==(r=null==t?void 0:t.asset)?void 0:r._id,(e=>{let{asset:t,tag:r}=e;return e=>{var n;return e.ifRevisionId(null==(n=null==t?void 0:t.asset)?void 0:n._rev).unset(['opt.media.tags[_ref == "'.concat(r._id,'"]')])}})({asset:t,tag:i}))}),n.transaction());return K.from(e.commit())})),J.mergeMap((()=>K.of(yo.tagsRemoveComplete({assets:o,tag:i})))),J.catchError((e=>K.of(yo.tagsRemoveError({assets:o,error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},tag:i})))))})))}),(e=>e.pipe($.ofType(Oo.orderSet.type,Oo.viewSet.type,Io.facetsAdd.type,Io.facetsClear.type,Io.facetsRemoveById.type,Io.facetsRemoveByName.type,Io.facetsRemoveByTag.type,Io.facetsUpdate.type,Io.facetsUpdateById.type,Io.querySet.type),J.mergeMap((()=>K.of(Oo.pickClear()))))),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Oo.updateRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{asset:o,closeDialogId:i,formData:s}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>K.from(n.patch(o._id).setIfMissing({opt:{}}).setIfMissing({"opt.media":{}}).set(s).commit()))),J.mergeMap((e=>K.of(Oo.updateComplete({asset:e,closeDialogId:i})))),J.catchError((e=>K.of(Oo.updateError({asset:o,error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500}})))))})))}),(e=>e.pipe($.ofType(Oo.deleteComplete.type,Oo.updateComplete.type,Vo.deleteComplete.type,Vo.updateComplete.type),J.filter((e=>{var t;return!!(null==(t=null==e?void 0:e.payload)?void 0:t.closeDialogId)})),J.mergeMap((e=>{var t;const r=null==(t=null==e?void 0:e.payload)?void 0:t.closeDialogId;return r?K.of(Go.actions.remove({id:r})):K.empty()})))),(e=>e.pipe(J.filter(Vo.createComplete.match),J.mergeMap((e=>{const{assetId:t,tag:r}=null==e?void 0:e.payload;return t?K.of(Go.actions.inlineTagCreate({tag:r,assetId:t})):r._id?K.of(Go.actions.remove({id:"tagCreate"})):K.empty()})))),(e=>e.pipe(J.filter(Vo.listenerDeleteQueueComplete.match),J.mergeMap((e=>{const{tagIds:t}=null==e?void 0:e.payload;return K.of(Go.actions.inlineTagRemove({tagIds:t}))})))),(e=>e.pipe(J.filter(Oo.deleteError.match),J.mergeMap((e=>{const{assetIds:t}=e.payload,r=t.length;return K.of(oa.actions.add({status:"error",title:"Unable to delete ".concat(r," ").concat(ye.default("asset",r),". Please review any asset errors and try again.")}))})))),(e=>e.pipe(J.filter(Oo.deleteComplete.match),J.mergeMap((e=>{const{assetIds:t}=e.payload,r=t.length;return K.of(oa.actions.add({status:"info",title:"".concat(r," ").concat(ye.default("asset",r)," deleted")}))})))),(e=>e.pipe(J.filter(yo.tagsAddComplete.match),J.mergeMap((e=>{var t,r;const n=null==(r=null==(t=null==e?void 0:e.payload)?void 0:t.assets)?void 0:r.length;return K.of(oa.actions.add({status:"info",title:"Tag added to ".concat(n," ").concat(ye.default("asset",n))}))})))),(e=>e.pipe(J.filter(yo.tagsRemoveComplete.match),J.mergeMap((e=>{var t,r;const n=null==(r=null==(t=null==e?void 0:e.payload)?void 0:t.assets)?void 0:r.length;return K.of(oa.actions.add({status:"info",title:"Tag removed from ".concat(n," ").concat(ye.default("asset",n))}))})))),(e=>e.pipe(J.filter(Oo.updateComplete.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=e.length;return K.of(oa.actions.add({status:"info",title:"".concat(t," ").concat(ye.default("asset",t)," updated")}))})))),(e=>e.pipe($.ofType(Oo.fetchError.type,Oo.updateError.type,Vo.createError.type,Vo.deleteError.type,Vo.fetchError.type,Vo.updateError.type,_s.uploadError.type),J.mergeMap((e=>{var t;const r=null==(t=e.payload)?void 0:t.error;return K.of(oa.actions.add({status:"error",title:"An error occured: ".concat(r.message)}))})))),(e=>e.pipe(J.filter(Vo.createComplete.match),J.mergeMap((()=>K.of(oa.actions.add({status:"info",title:"Tag created"})))))),(e=>e.pipe(J.filter(Vo.deleteComplete.match),J.mergeMap((()=>K.of(oa.actions.add({status:"info",title:"Tag deleted"})))))),(e=>e.pipe(J.filter(Vo.updateComplete.match),J.mergeMap((()=>K.of(oa.actions.add({status:"info",title:"Tag updated"})))))),((e,t)=>e.pipe(J.filter(Vo.updateComplete.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;var n,o,i,s,a;const{tag:l}=t.payload,d=null==(n=r.search.facets)?void 0:n.find((e=>"tag"===e.name)),c=r.tags.byIds[l._id];return"searchable"===(null==d?void 0:d.type)&&(null==(o=d.value)?void 0:o.value)===l._id?K.of(Bo.actions.facetsUpdate({name:"tag",value:{label:null==(s=null==(i=null==c?void 0:c.tag)?void 0:i.name)?void 0:s.current,value:null==(a=null==c?void 0:c.tag)?void 0:a._id}})):K.empty()})))),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Lo.actions.createRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{assetId:o,name:i}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),Co(n,i),J.mergeMap((()=>n.observable.create({_type:"media.tag",name:{_type:"slug",current:i}}))),J.mergeMap((e=>K.of(Lo.actions.createComplete({assetId:o,tag:e})))),J.catchError((e=>K.of(Lo.actions.createError({error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},name:i})))))})))}),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Lo.actions.deleteRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{tag:o}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>n.observable.fetch(Ce.default(l||(l=D(['*[\n _type in ["sanity.fileAsset", "sanity.imageAsset"]\n && references(*[_type == "media.tag" && name.current == $tagName]._id)\n ] {\n _id,\n _rev,\n opt\n }']))),{tagName:o.name.current}))),J.mergeMap((e=>{const t=e.map((e=>({id:e._id,patch:{ifRevisionID:e._rev,unset:['opt.media.tags[_ref == "'.concat(o._id,'"]')]}}))).reduce(((e,t)=>e.patch(t.id,t.patch)),n.transaction());return t.delete(o._id),K.from(t.commit())})),J.mergeMap((()=>K.of(Lo.actions.deleteComplete({tagId:o._id})))),J.catchError((e=>K.of(Lo.actions.deleteError({error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},tag:o})))))})))}),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Lo.actions.fetchRequest.match),J.withLatestFrom(t),J.switchMap((e=>{let[t,r]=e;const{query:o}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),J.mergeMap((()=>n.observable.fetch(o))),J.mergeMap((e=>{const{items:t}=e;return K.of(Lo.actions.fetchComplete({tags:t}))})),J.catchError((e=>K.of(Lo.actions.fetchError({error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500}})))))})))}),(e=>e.pipe(J.filter(Lo.actions.listenerCreateQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.tag));return K.of(Lo.actions.listenerCreateQueueComplete({tags:t}))})))),(e=>e.pipe(J.filter(Lo.actions.listenerDeleteQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.tagId));return K.of(Lo.actions.listenerDeleteQueueComplete({tagIds:t}))})))),(e=>e.pipe(J.filter(Lo.actions.listenerUpdateQueue.match),J.bufferTime(2e3),J.filter((e=>e.length>0)),J.mergeMap((e=>{const t=null==e?void 0:e.map((e=>e.payload.tag));return K.of(Lo.actions.listenerUpdateQueueComplete({tags:t}))})))),(e=>e.pipe($.ofType(Lo.actions.listenerCreateQueueComplete.type,Lo.actions.listenerUpdateQueueComplete.type),J.bufferTime(1e3),J.filter((e=>e.length>0)),J.mergeMap((()=>K.of(Lo.actions.sort()))))),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(Lo.actions.updateRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;var o;const{closeDialogId:i,formData:s,tag:a}=t.payload;return K.of(t).pipe(wo(r.debug.badConnection),Co(n,null==(o=null==s?void 0:s.name)?void 0:o.current),J.mergeMap((()=>K.from(n.patch(a._id).set({name:{_type:"slug",current:null==s?void 0:s.name.current}}).commit()))),J.mergeMap((e=>K.of(Lo.actions.updateComplete({closeDialogId:i,tag:e})))),J.catchError((e=>K.of(Lo.actions.updateError({error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},tag:a})))))})))}),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(_s.uploadStart.match),J.mergeMap((t=>{const{file:r,uploadItem:o}=t.payload;return K.merge(K.of(null).pipe(J.mergeMap((()=>(e=>K.of(null).pipe(J.mergeMap((()=>K.from(Vs(e))))))(r))),J.mergeMap((e=>K.of(_s.previewReady({blobUrl:e,hash:o.hash}))))),K.of(null).pipe(J.mergeMap((()=>Zs(n,o.assetType,r,o.hash))),J.takeUntil(e.pipe(J.filter(_s.uploadCancel.match),J.filter((e=>e.payload.hash===o.hash)))),J.mergeMap((e=>"complete"===(null==e?void 0:e.type)?K.of(So.uploadComplete({asset:e.asset})):"progress"===(null==e?void 0:e.type)&&"upload"===(null==e?void 0:e.stage)?K.of(_s.uploadProgress({event:e,uploadHash:o.hash})):K.empty())),J.catchError((e=>K.of(_s.uploadError({error:{message:(null==e?void 0:e.message)||"Internal error",statusCode:(null==e?void 0:e.statusCode)||500},hash:o.hash}))))))})))}),((e,t)=>e.pipe(J.filter(_s.uploadRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{file:n,forceAsAssetType:o}=t.payload;return K.of(t).pipe(J.mergeMap((()=>Is(n))),J.filter((e=>!!!r.uploads.byIds[e])),J.mergeMap((e=>{const t={_type:"upload",assetType:o||(n.type.indexOf("image")>=0?"image":"file"),hash:e,name:n.name,size:n.size,status:"queued"};return K.of(_s.uploadStart({file:n,uploadItem:t}))})))})))),((e,t,r)=>{let{client:n}=r;return e.pipe(J.filter(_s.checkRequest.match),J.withLatestFrom(t),J.mergeMap((e=>{let[t,r]=e;const{assets:o}=t.payload,i=o.map((e=>e._id)),s=vo({assetTypes:r.assets.assetTypes,searchFacets:r.search.facets,searchQuery:r.search.query}),a=Ce.default(R||(R=D(["\n *["," && _id in $documentIds].sha1hash\n "])),s);return K.of(t).pipe(J.delay(1e3),J.mergeMap((()=>n.observable.fetch(a,{documentIds:i}))),J.mergeMap((e=>{const t=o.reduce(((t,r)=>(t[r.sha1hash]=e.includes(r.sha1hash)?r._id:null,t)),{});return K.of(_s.checkComplete({results:t}),Oo.insertUploads({results:t}))})))})))}),(e=>e.pipe(J.filter(So.uploadComplete.match),J.mergeMap((e=>K.of(_s.checkRequest({assets:[e.payload.asset]}))))))),la={assets:Po,debug:bi,dialog:Yo,notifications:sa,search:Zo,selected:na,tags:Ro,uploads:Es},da=X.combineReducers(la),ca=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),ua=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];var r,n;return Array.isArray(e)&&e.forEach((e=>{ua(e,t)})),ca(e)&&("reference"===(null==(r=null==e?void 0:e.asset)?void 0:r._type)&&(null==(n=null==e?void 0:e.asset)?void 0:n._ref)&&t.push(e.asset._ref),Object.values(e).forEach((e=>{ua(e,t)}))),t},ha=e=>{const t=ua(e);return[...new Set(t.sort())]};class pa extends O.Component{constructor(e){super(e);const t=$.createEpicMiddleware({dependencies:{client:e.client}});this.store=X.configureStore({reducer:da,middleware:e=>e({serializableCheck:!1,thunk:!1}).prepend(t),devTools:!0,preloadedState:{assets:{..._o,assetTypes:(null==e?void 0:e.assetType)?[e.assetType]:["file","image"]},selected:{assets:e.selectedAssets||[],document:e.document,documentAssetIds:e.document?ha(e.document):[]}}}),t.run(aa)}render(){return P.jsx(G.Provider,{store:this.store,children:this.props.children})}}const fa=()=>Qo((e=>e.tags.panelVisible))?P.jsx(U.Box,{style:{position:"relative",width:250},children:P.jsx(U.Box,{className:"media__custom-scrollbar",style:{borderLeft:"1px solid var(--card-border-color)",height:"100%",overflowX:"hidden",overflowY:"auto",position:"absolute",right:0,top:0,width:"100%"},children:P.jsx(ms,{})})}):null,ga=je.default.div(E||(E=D(["\n color: white;\n height: 100%;\n min-height: 100%;\n right: 0;\n top: 0;\n width: 100%;\n\n &:focus {\n outline: none;\n }\n"]))),ma=je.default.div(z||(z=D(["\n align-items: center;\n background: rgba(0, 0, 0, 0.75);\n display: flex;\n height: 100%;\n justify-content: center;\n position: absolute;\n right: 0;\n top: 0;\n width: 100%;\n z-index: 3;\n"])));const xa=e=>{const{children:t}=e,{onSelect:r}=fo(),n=G.useDispatch(),o=Qo((e=>e.assets.assetTypes)),i=1===o.length&&"image"===o[0],{getRootProps:s,getInputProps:a,isDragActive:l,open:d}=me.useDropzone({accept:i?"image/*":"",getFilesFromEvent:async e=>{var t;let r;if("drop"===e.type&&"dataTransfer"in e&&(r=null==(t=null==e?void 0:e.dataTransfer)?void 0:t.files),"change"===e.type){const t=null==e?void 0:e.target;(null==t?void 0:t.files)&&(r=t.files)}if(!r)return[];const o=await async function(e){const t=Array.from(e),r=[];for(const e of t)try{await e.slice(0,1).arrayBuffer(),r.push(e)}catch(e){}return r}(r);return(null==r?void 0:r.length)!==o.length&&n(ia.add({status:"error",title:"Unable to upload some items (folders and packages aren't supported)"})),o},noClick:!0,noDrag:!!r,onDrop:async e=>{e.forEach((e=>n(_s.uploadRequest({file:e,forceAsAssetType:1===o.length?o[0]:void 0}))))}});return P.jsx(Cs,{open:d,children:P.jsxs(ga,{...s(),children:[P.jsx("input",{...a()}),l&&P.jsx(ma,{children:P.jsx(U.Flex,{direction:"column",justify:"center",style:{color:ri},children:P.jsx(U.Text,{size:3,style:{color:"inherit"},children:"Drop files to upload"})})}),t]})})},wa=e=>{let{onClose:t}=e;const r=go(),[n,o]=O.useState(null),i=G.useDispatch(),s=e=>{const{documentId:t,result:r,transition:n}=e;"appear"===n&&i(Oo.listenerCreateQueue({asset:r})),"disappear"===n&&i(Oo.listenerDeleteQueue({assetId:t})),"update"===n&&i(Oo.listenerUpdateQueue({asset:r}))},a=e=>{const{documentId:t,result:r,transition:n}=e;"appear"===n&&i(Vo.listenerCreateQueue({tag:r})),"disappear"===n&&i(Vo.listenerDeleteQueue({tagId:t})),"update"===n&&i(Vo.listenerUpdateQueue({tag:r}))};return O.useEffect((()=>{i(Oo.loadPageIndex({pageIndex:0})),i(Vo.fetchRequest());const e=r.listen(Ce.default(F||(F=D(['*[_type in ["sanity.fileAsset", "sanity.imageAsset"] && !(_id in path("drafts.**"))]'])))).subscribe(s),t=r.listen(Ce.default(A||(A=D(['*[_type == "','" && !(_id in path("drafts.**"))]'])),"media.tag")).subscribe(a);return()=>{null==e||e.unsubscribe(),null==t||t.unsubscribe()}}),[]),P.jsx(U.PortalProvider,{element:n,children:P.jsxs(xa,{children:[P.jsx(ws,{}),P.jsx(ta,{}),P.jsx(U.Card,{display:"flex",height:"fill",ref:o,children:P.jsxs(U.Flex,{direction:"column",flex:1,children:[P.jsx(js,{onClose:t}),P.jsx(ki,{}),P.jsxs(U.Flex,{flex:1,children:[P.jsxs(U.Flex,{align:"flex-end",direction:"column",flex:1,style:{position:"relative"},children:[P.jsx(ra,{}),P.jsx(ea,{})]}),P.jsx(fa,{})]}),P.jsx(Hi,{})]})})]})})},va=e=>{const t=go(),{scheme:r}=q.useColorScheme();return P.jsx(pa,{assetType:null==e?void 0:e.assetType,client:t,document:null==e?void 0:e.document,selectedAssets:null==e?void 0:e.selectedAssets,children:P.jsx(U.ThemeProvider,{scheme:r,theme:U.studioTheme,children:P.jsx(U.ToastProvider,{children:P.jsxs(po,{onSelect:null==e?void 0:e.onSelect,children:[P.jsx(No,{}),P.jsx(wa,{onClose:null==e?void 0:e.onClose})]})})})})},Ca=()=>{const[e]=O.useState((()=>document.createElement("div")));return O.useEffect((()=>(e.classList.add("media-portal"),document.body.appendChild(e),()=>{document.body.removeChild(e)})),[e]),e};var ja={title:"Media Tag",icon:ji,name:"media.tag",type:"document",fields:[{title:"Name",name:"name",type:"slug"}],preview:{select:{name:"name"},prepare(e){const{name:t}=e;return{media:ji,title:null==t?void 0:t.current}}}};const ya={icon:mr,name:"media",title:"Media"},ka={...ya,component:e=>{const{onClose:t}=e,r=Ca(),n=q.useFormValue([]);no("escape",t);const o=e=>{e.nativeEvent.stopImmediatePropagation(),e.stopPropagation()},{zIndex:i}=U.useLayer();return P.jsx(U.PortalProvider,{element:r,children:P.jsx(U.Portal,{children:P.jsx(U.Box,{onDragEnter:o,onDragLeave:o,onDragOver:o,onDrop:o,onMouseUp:o,style:{bottom:0,height:"auto",left:0,position:"fixed",top:0,width:"100%",zIndex:i},children:P.jsx(va,{document:n,...e})})})})}},La={...ya,component:()=>P.jsx(U.Flex,{direction:"column",height:"fill",flex:1,children:P.jsx(va,{})})},Ma=q.definePlugin({name:"media",form:{file:{assetSources:e=>[...e,ka]},image:{assetSources:e=>[...e,ka]}},schema:{types:[ja]},tools:e=>[...e,La]});exports.media=Ma,exports.mediaAssetSource=ka;//# sourceMappingURL=index.js.map