slice-machine-ui 1.19.3-dev-rename-and-delete-variations.3 → 1.19.3-dev-next-release.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/out/404.html +1 -1
- package/out/_next/static/{wgRdmUXHM2qAI86cLasqd → 0Lwj5aWsM8JhkX_oWgDHj}/_buildManifest.js +1 -1
- package/out/_next/static/chunks/{958-9a56a0b83f7dc035.js → 958-c90d60818f1c468a.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-da47c2703568a811.js → _app-d42e615a839b8752.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-7c811c2c79f01a25.js +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +4 -4
- package/src/features/slices/sliceBuilder/actions/renameVariation.ts +4 -1
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +2 -2
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-3ec81b566a720ea4.js +0 -1
- /package/out/_next/static/{wgRdmUXHM2qAI86cLasqd → 0Lwj5aWsM8JhkX_oWgDHj}/_ssgManifest.js +0 -0
package/out/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>Slice Machine</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/412af4286eb0b283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/412af4286eb0b283.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>Slice Machine</title><meta name="next-head-count" content="3"/><link rel="preload" href="/_next/static/css/412af4286eb0b283.css" as="style"/><link rel="stylesheet" href="/_next/static/css/412af4286eb0b283.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/_next/static/chunks/webpack-2f903acb0cccbf9e.js" defer=""></script><script src="/_next/static/chunks/framework-cdccea7a52cc6e81.js" defer=""></script><script src="/_next/static/chunks/main-5e6780279ca21cb9.js" defer=""></script><script src="/_next/static/chunks/pages/_app-d42e615a839b8752.js" defer=""></script><script src="/_next/static/chunks/pages/_error-69b4f498bafdd188.js" defer=""></script><script src="/_next/static/0Lwj5aWsM8JhkX_oWgDHj/_buildManifest.js" defer=""></script><script src="/_next/static/0Lwj5aWsM8JhkX_oWgDHj/_ssgManifest.js" defer=""></script></head><body><div id="__next"><style data-emotion="css-global 413pep">html{--theme-ui-colors-text:#25252D;--theme-ui-colors-textClear:#6F6E77;--theme-ui-colors-grayLight:#E8E8ED;--theme-ui-colors-hoverBackground:#f2f2f2;--theme-ui-colors-background:#FFF;--theme-ui-colors-backgroundClear:#FFF;--theme-ui-colors-primary:#5D40F7;--theme-ui-colors-purpleLight:#F6F1FC;--theme-ui-colors-purpleLight01:#6548FF1A;--theme-ui-colors-purple12:#F1EEFE;--theme-ui-colors-purpleStrong:#5842C3;--theme-ui-colors-whiteButtonText:#1A1523;--theme-ui-colors-codeBlockBackground:#32275F;--theme-ui-colors-failedConnectText:#86848D;--theme-ui-colors-changesWarning-background:#FFECC7;--theme-ui-colors-changesWarning-color:#5C0C17;--theme-ui-colors-greyIcon:#6F6E77;--theme-ui-colors-greyIconDisabled:#C9D0D8;--theme-ui-colors-missingScreenshotBanner-color:#5C0C17;--theme-ui-colors-missingScreenshotBanner-bg:#FFECC7;--theme-ui-colors-badge-new-bg:#DBEDDB;--theme-ui-colors-badge-new-color:#05644D;--theme-ui-colors-badge-modified-bg:#FFECC7;--theme-ui-colors-badge-modified-color:#5C0C17;--theme-ui-colors-badge-synced-bg:purple12;--theme-ui-colors-badge-synced-color:#5842C3;--theme-ui-colors-badge-deleted-bg:rgba(203, 36, 49, 0.1);--theme-ui-colors-badge-unknown-bg:#F3F5F7;--theme-ui-colors-badge-unknown-color:#9AA4AF;--theme-ui-colors-codeBlockBorder:#545454;--theme-ui-colors-secondary:#F9FAFB;--theme-ui-colors-danger:#CB2431;--theme-ui-colors-highlight:hsl(10, 40%, 90%);--theme-ui-colors-purple:#5B3DF5;--theme-ui-colors-purple08:#5842C3;--theme-ui-colors-muted:#F9F9FB;--theme-ui-colors-icons:#8091A5;--theme-ui-colors-gray:#F8F9FA;--theme-ui-colors-grey01:#F3F5F7;--theme-ui-colors-grey02:#E6E6EA;--theme-ui-colors-grey03:#F4F2F4;--theme-ui-colors-grey04:#9AA4AF;--theme-ui-colors-grey05:#667587;--theme-ui-colors-grey07:#F9F8F9;--theme-ui-colors-grey10:#86848D;--theme-ui-colors-grey12:#1A1523;--theme-ui-colors-greyTransparent:rgba(37, 37, 45, 0.4);--theme-ui-colors-borders:#E4E2E4;--theme-ui-colors-bordersFocused:#6E56CF;--theme-ui-colors-deep:#0E2150;--theme-ui-colors-deep1:#A0ADE7;--theme-ui-colors-lightGreen:#EBF8F1;--theme-ui-colors-lightOrange:#FDF4EC;--theme-ui-colors-darkOrange:#C17C10;--theme-ui-colors-error:#E55737;--theme-ui-colors-success:#3AB97A;--theme-ui-colors-headSection:#fff;--theme-ui-colors-warning:#E67E22;--theme-ui-colors-warning02:#ED811C;--theme-ui-colors-sidebar:#F1F1F4;--theme-ui-colors-link:#6E56CF;--theme-ui-colors-choggleBox:#5163BA;--theme-ui-colors-darkBorder:#DCDBDD;--theme-ui-colors-code-border:#DFE1E5;--theme-ui-colors-code-blue:#3B41BD;--theme-ui-colors-code-gray:#667587;--theme-ui-colors-code-orange:#EA6D46;--theme-ui-colors-code-green:#3AB97A;color:var(--theme-ui-colors-text);background-color:var(--theme-ui-colors-background);}html.theme-ui-light,.theme-ui-light html{--theme-ui-colors-text:#25252D;--theme-ui-colors-textClear:#6F6E77;--theme-ui-colors-grayLight:#E8E8ED;--theme-ui-colors-hoverBackground:#f2f2f2;--theme-ui-colors-background:#FFF;--theme-ui-colors-backgroundClear:#FFF;--theme-ui-colors-primary:#5D40F7;--theme-ui-colors-purpleLight:#F6F1FC;--theme-ui-colors-purpleLight01:#6548FF1A;--theme-ui-colors-purple12:#F1EEFE;--theme-ui-colors-purpleStrong:#5842C3;--theme-ui-colors-whiteButtonText:#1A1523;--theme-ui-colors-codeBlockBackground:#32275F;--theme-ui-colors-failedConnectText:#86848D;--theme-ui-colors-changesWarning-background:#FFECC7;--theme-ui-colors-changesWarning-color:#5C0C17;--theme-ui-colors-greyIcon:#6F6E77;--theme-ui-colors-greyIconDisabled:#C9D0D8;--theme-ui-colors-missingScreenshotBanner-color:#5C0C17;--theme-ui-colors-missingScreenshotBanner-bg:#FFECC7;--theme-ui-colors-badge-new-bg:#DBEDDB;--theme-ui-colors-badge-new-color:#05644D;--theme-ui-colors-badge-modified-bg:#FFECC7;--theme-ui-colors-badge-modified-color:#5C0C17;--theme-ui-colors-badge-synced-bg:purple12;--theme-ui-colors-badge-synced-color:#5842C3;--theme-ui-colors-badge-deleted-bg:rgba(203, 36, 49, 0.1);--theme-ui-colors-badge-unknown-bg:#F3F5F7;--theme-ui-colors-badge-unknown-color:#9AA4AF;--theme-ui-colors-codeBlockBorder:#545454;--theme-ui-colors-secondary:#F9FAFB;--theme-ui-colors-danger:#CB2431;--theme-ui-colors-highlight:hsl(10, 40%, 90%);--theme-ui-colors-purple:#5B3DF5;--theme-ui-colors-purple08:#5842C3;--theme-ui-colors-muted:#F9F9FB;--theme-ui-colors-icons:#8091A5;--theme-ui-colors-gray:#F8F9FA;--theme-ui-colors-grey01:#F3F5F7;--theme-ui-colors-grey02:#E6E6EA;--theme-ui-colors-grey03:#F4F2F4;--theme-ui-colors-grey04:#9AA4AF;--theme-ui-colors-grey05:#667587;--theme-ui-colors-grey07:#F9F8F9;--theme-ui-colors-grey10:#86848D;--theme-ui-colors-grey12:#1A1523;--theme-ui-colors-greyTransparent:rgba(37, 37, 45, 0.4);--theme-ui-colors-borders:#E4E2E4;--theme-ui-colors-bordersFocused:#6E56CF;--theme-ui-colors-deep:#0E2150;--theme-ui-colors-deep1:#A0ADE7;--theme-ui-colors-lightGreen:#EBF8F1;--theme-ui-colors-lightOrange:#FDF4EC;--theme-ui-colors-darkOrange:#C17C10;--theme-ui-colors-error:#E55737;--theme-ui-colors-success:#3AB97A;--theme-ui-colors-headSection:#fff;--theme-ui-colors-warning:#E67E22;--theme-ui-colors-warning02:#ED811C;--theme-ui-colors-sidebar:#F1F1F4;--theme-ui-colors-link:#6E56CF;--theme-ui-colors-choggleBox:#5163BA;--theme-ui-colors-darkBorder:#DCDBDD;--theme-ui-colors-code-border:#DFE1E5;--theme-ui-colors-code-blue:#3B41BD;--theme-ui-colors-code-gray:#667587;--theme-ui-colors-code-orange:#EA6D46;--theme-ui-colors-code-green:#3AB97A;}html.theme-ui-dark,.theme-ui-dark html{--theme-ui-colors-text:#fff;--theme-ui-colors-textClear:#6E707B;--theme-ui-colors-hoverBackground:#202020;--theme-ui-colors-grey02:#E6E6EA;--theme-ui-colors-background:#202022;--theme-ui-colors-backgroundClear:#28282C;--theme-ui-colors-primary:#4E54D7;--theme-ui-colors-secondary:#28282C;--theme-ui-colors-icons:#5D5D71;--theme-ui-colors-gray:#1D1D1F;--theme-ui-colors-borders:#3A3A46;--theme-ui-colors-deep:#28282C;--theme-ui-colors-headSection:#28282C;--theme-ui-colors-warning:#E67E22;--theme-ui-colors-sidebar:#28282C;--theme-ui-colors-code-border:#5D5D6F;--theme-ui-colors-code-blue:#3B41BD;--theme-ui-colors-code-gray:#667587;--theme-ui-colors-code-orange:#EA6D46;--theme-ui-colors-code-green:#3AB97A;--theme-ui-colors-link:#A9A9C6;--theme-ui-colors-choggleBox:#fff;}</style><style data-emotion="css-global h19pgh">*{box-sizing:border-box;}html{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;line-height:1.5;font-weight:400;}body{margin:0;}</style><style data-emotion="css yvak7d">.css-yvak7d{box-sizing:border-box;margin:0;min-width:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:calc(100vh - 57px);width:100vw;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}</style><div class="css-yvak7d"><style data-emotion="css uqm8ih">.css-uqm8ih{box-sizing:border-box;margin:0;min-width:0;color:var(--theme-ui-colors-primary);overflow:visible;}</style><svg stroke-width="4" viewBox="0 0 32 32" width="48" height="48" fill="none" stroke="currentColor" role="img" id="spinner" class="css-uqm8ih"><title>Loading</title><circle stroke-width="4" r="12" cx="16" cy="16" fill="none" opacity="0.125"></circle><circle stroke-width="4" r="12" cx="16" cy="16" fill="none" stroke-dasharray="20 110"><animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 16 16" to="360 16 16" dur="750ms" repeatCount="indefinite"></animateTransform></circle></svg></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"0Lwj5aWsM8JhkX_oWgDHj","runtimeConfig":{"sentryEnvironment":"alpha"},"nextExport":true,"isFallback":false,"gip":true,"appGip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST=function(s,c,e,
|
|
1
|
+
self.__BUILD_MANIFEST=function(s,c,a,e,t,i,b,n,f,u){return{__rewrites:{beforeFiles:[],afterFiles:[],fallback:[]},"/":[c,i,b,"static/chunks/pages/index-941b44c74dd339e4.js"],"/_error":["static/chunks/pages/_error-69b4f498bafdd188.js"],"/changelog":["static/chunks/870-0c7a8a9622de78b7.js","static/chunks/pages/changelog-fa36b9995c26e1d7.js"],"/changes":[a,"static/chunks/8eec4907-b712959d9f984b68.js","static/chunks/918-38d08f1e885b222d.js",s,e,"static/css/51597cd1f01c4889.css","static/chunks/pages/changes-e388be4457a43c3a.js"],"/custom-types":[c,i,b,"static/chunks/pages/custom-types-2f5664d9492b13fb.js"],"/custom-types/[customTypeId]":[n,s,c,t,f,u,"static/chunks/pages/custom-types/[customTypeId]-3a37eb3373bb8823.js"],"/labs":["static/chunks/pages/labs-ebce03a4e7a95a4e.js"],"/page-types/[pageTypeId]":[n,s,c,t,f,u,"static/chunks/pages/page-types/[pageTypeId]-733f3890c0466a05.js"],"/slices":[a,s,e,"static/css/867d8d7ab4a75762.css","static/chunks/pages/slices-22db04643850c1d8.js"],"/slices/[lib]/[sliceName]/[variation]":[a,s,e,t,"static/css/6e4843007ff41825.css","static/chunks/pages/slices/[lib]/[sliceName]/[variation]-7c811c2c79f01a25.js"],"/slices/[lib]/[sliceName]/[variation]/simulator":[a,"static/chunks/72585f70-28b4d7d5384b3703.js","static/chunks/18539003-371d86ea83e7293b.js","static/chunks/125-f0e2eb84ee39757a.js","static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-79a62d775e64898c.js"],sortedPages:["/","/_app","/_error","/changelog","/changes","/custom-types","/custom-types/[customTypeId]","/labs","/page-types/[pageTypeId]","/slices","/slices/[lib]/[sliceName]/[variation]","/slices/[lib]/[sliceName]/[variation]/simulator"]}}("static/chunks/958-c90d60818f1c468a.js","static/chunks/550-e72c08c598051224.js","static/chunks/c8eae200-966ce352f7b5d2b9.js","static/chunks/80-821a0b5d4ad61185.js","static/chunks/482-39cef3a713901788.js","static/chunks/840-884e41a48b92e5d3.js","static/css/16b41648cd1de03b.css","static/chunks/474-2393e400314474be.js","static/chunks/904-69cc3c4be2bff626.js","static/css/3e88bd24e38f18d0.css"),self.__BUILD_MANIFEST_CB&&self.__BUILD_MANIFEST_CB();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{24804:function(e,t,n){"use strict";n.d(t,{Zb:function(){return p},T$:function(){return C},eW:function(){return b},ZB:function(){return f},Lm:function(){return x}});var o=n(67557),c=n(62230),i=n(85244),d=n(98240),s=n(52322),a=n(50002),r=n(22715),l=n(6277),u=n(2784);n(9131);var h={solid:"_1ecs97d3c _1ecs97dap _1ecs97d4fs _1ecs97d4n5",outlined:"_1ecs97d2i _1ecs97d9v _1ecs97dw _1ecs97d89 _1ecs97d2w _1ecs97da9 _1ecs97d4ey _1ecs97d4mb _1ecs97d4ek _1ecs97d4lx"},
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[958],{24804:function(e,t,n){"use strict";n.d(t,{Zb:function(){return p},T$:function(){return C},eW:function(){return b},ZB:function(){return f},Lm:function(){return x}});var o=n(67557),c=n(62230),i=n(85244),d=n(98240),s=n(52322),a=n(50002),r=n(22715),l=n(6277),u=n(2784);n(9131);var h={solid:"_1ecs97d3c _1ecs97dap _1ecs97d4fs _1ecs97d4n5",outlined:"_1ecs97d2i _1ecs97d9v _1ecs97dw _1ecs97d89 _1ecs97d2w _1ecs97da9 _1ecs97d4ey _1ecs97d4mb _1ecs97d4ek _1ecs97d4lx"},m={div:"_1ecs97de7i _1ecs97de7l _1ecs97de7v",img:"kedahr9 _1ecs97defl _1ecs97de85"},v={small:"kedahr2",medium:"kedahr3"},_={solid:"kedahr4 _1ecs97d1u _1ecs97d97 _1ecs97d4fm _1ecs97d4mz",outlined:"kedahr5 _1ecs97d18 _1ecs97d8l _1ecs97d4ee _1ecs97d4lr"},p=function(e){var t,n=e.checked,r=e.size,m=e.variant,p=void 0===m?"solid":m,f=(e.interactive,e.disabled,e.onClick,e.href,e.component),C=void 0===f?"a":f,b=(e.replace,(0,d.Z)(e,["checked","size","variant","interactive","disabled","onClick","href","component","replace"])),x=(0,i.Z)((0,c.Z)({},b),{className:(0,l.W)("_1ecs97de7i _1ecs97de7k _1ecs97de7t _1ecs97d39c _1ecs97d3gp _1ecs97de99 _1ecs97deal _1ecs97deaz _1ecs97de7j _1ecs97de89 _1ecs97de8d",v[void 0===r?"medium":r],_[p],(t={},(0,o.Z)(t,"kedahr6",e.interactive),(0,o.Z)(t,h[p],e.interactive),t)),"data-state":!0===(void 0!==n&&n)?"checked":void 0});return!0===e.interactive&&void 0===e.href?(0,s.jsx)("div",(0,i.Z)((0,c.Z)({},x),{"data-disabled":!0===e.disabled?"":void 0,onClick:function(t){if(!0!==e.disabled&&void 0!==e.onClick){var n=t.target;(0,a.JY)(n)===t.currentTarget&&e.onClick(t)}},tabIndex:!0===e.disabled?void 0:0})):!0===e.interactive?(0,u.createElement)(C,(0,c.Z)((0,i.Z)((0,c.Z)({},x),{href:e.href,onClick:function(e){var t=e.target;(0,a.JY)(t)!==e.currentTarget&&e.preventDefault()}}),"a"===C?{}:{replace:e.replace})):(0,s.jsx)("div",(0,c.Z)({},x))},f=function(e){var t=e.className,n=e.component,o=void 0===n?"img":n,a=e.overlay,r=(0,d.Z)(e,["className","component","overlay"]);return(0,s.jsxs)("div",{className:"kedahr7 _1ecs97de7i _1ecs97de7k _1ecs97de7t _1ecs97de7w _1ecs97de7v _1ecs97defr _1ecs97de8d",children:[(0,u.createElement)(o,(0,i.Z)((0,c.Z)({},r),{className:(0,l.W)(m[o],t)})),Boolean(a)?(0,s.jsx)("div",{className:"kedahra _1ecs97de7i _1ecs97de7l _1ecs97dehq _1ecs97de8b _1ecs97de90",children:a}):void 0]})},C=function(e){return(0,s.jsx)("div",(0,i.Z)((0,c.Z)({},e),{className:"kedahrc kedahrb _1ecs97de7i _1ecs97de7k _1ecs97de7q _1ecs97de7j _1ecs97de7u _1ecs97deff _1ecs97de80"}))},b=function(e){var t=e.action,n=e.subtitle,o=e.title,a=(0,d.Z)(e,["action","subtitle","title"]);return(0,s.jsxs)("div",(0,i.Z)((0,c.Z)({},a),{className:"kedahrd kedahrb _1ecs97de7i _1ecs97de7k _1ecs97de7q _1ecs97de7j _1ecs97de7u _1ecs97dehg _1ecs97defh",children:[(0,s.jsxs)("div",{className:"kedahre _1ecs97de7i _1ecs97de7k _1ecs97de7t _1ecs97de7w _1ecs97de7v _1ecs97dedf",children:[(0,s.jsx)(r.xv,{component:"span",noWrap:!0,variant:"bold",children:o}),(0,s.jsx)(r.xv,{color:"grey11",component:"span",noWrap:!0,variant:"small",children:n})]}),t]}))},x=function(e){var t=e.children,n=(0,d.Z)(e,["children"]);return(0,s.jsx)("div",(0,i.Z)((0,c.Z)({},n),{className:"kedahrf _1ecs97de7i _1ecs97de7k _1ecs97de7t _1ecs97def9 _1ecs97deje _1ecs97de7z _1ecs97depd _1ecs97de8b",children:(0,s.jsx)(r.xv,{align:"center",color:"inherit",component:"span",noWrap:!0,variant:"smallBold",children:t})}))}},34728:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var o=n(52322),c=n(22715),i=n(32681),d=n(79096),s=function(e){var t=function(e){var t=a[e.modelType];switch(e.modelStatus){case i.G.New:return{badgeColor:"green",badgeTitle:"New",tooltipContent:"This ".concat(t," exists only locally. Upon sync, it will be pushed to your remote repository.")};case i.G.Modified:return{badgeColor:"amber",badgeTitle:"Modified",tooltipContent:"This ".concat(t," has been modified locally. Upon sync, changes will be pushed to your remote repository.")};case i.G.Synced:return{badgeColor:"purple",badgeTitle:"Synced",tooltipContent:"This ".concat(t," is in sync with the remote repository.")};case i.G.Deleted:return{badgeColor:"tomato",badgeTitle:"Deleted",tooltipContent:"This ".concat(t," has been deleted locally.")};case i.G.Unknown:if(!e.isOnline)return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (no internet connection)."};if(e.authStatus===d.t.UNAUTHORIZED)return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (not connected to Prismic)."};if(e.authStatus===d.t.FORBIDDEN)return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (you don't have access to the repository)."};default:return{badgeColor:"grey",badgeTitle:"Unknown",tooltipContent:"Data from the remote repository could not be fetched (unknown error)."}}}(e),n=t.badgeColor,s=t.badgeTitle,r=t.tooltipContent;return(0,o.jsx)(c.u,{content:r,side:"bottom",children:(0,o.jsx)(c.Ct,{color:n,title:s})})},a={CustomType:"type",Slice:"slice"}},65958:function(e,t,n){"use strict";n.d(t,{b:function(){return _}});var o=n(62230),c=n(85244),i=n(52322),d=n(22715),s=n(39097),a=n.n(s),r=n(30180),l=n(24804),u=n(5479),h=n(34728),m=n(49451),v=function(e){return(0,i.jsx)("svg",(0,c.Z)((0,o.Z)({width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),{children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 5.5C4 4.67157 4.67157 4 5.5 4H18.5C19.3284 4 20 4.67157 20 5.5V12.4413C20 12.4512 19.9997 12.461 19.9991 12.4707C20.0072 12.6083 19.9586 12.7485 19.8536 12.8536C19.6583 13.0488 19.3417 13.0488 19.1464 12.8536L16.3536 10.0607C16.1583 9.8654 15.8417 9.8654 15.6464 10.0607L11.8536 13.8536C11.6583 14.0488 11.3417 14.0488 11.1464 13.8536L9.35355 12.0607C9.15829 11.8654 8.84171 11.8654 8.64645 12.0607L5 15.7071V18.5C5 18.7761 5.22386 19 5.5 19H12.5C12.7761 19 13 19.2239 13 19.5C13 19.7761 12.7761 20 12.5 20H5.5C4.67157 20 4 19.3284 4 18.5V15.5003V15.4997V5.5ZM11.5 12.7929L14.9393 9.35355C15.5251 8.76777 16.4749 8.76777 17.0607 9.35355L19 11.2929V5.5C19 5.22386 18.7761 5 18.5 5H5.5C5.22386 5 5 5.22386 5 5.5V14.2929L7.93934 11.3536C8.52513 10.7678 9.47487 10.7678 10.0607 11.3536L11.5 12.7929ZM16.5 13C16.7761 13 17 13.2239 17 13.5V16H19.5C19.7761 16 20 16.2239 20 16.5C20 16.7761 19.7761 17 19.5 17H17V19.5C17 19.7761 16.7761 20 16.5 20C16.2239 20 16 19.7761 16 19.5V17H13.5C13.2239 17 13 16.7761 13 16.5C13 16.2239 13.2239 16 13.5 16H16V13.5C16 13.2239 16.2239 13 16.5 13Z",fill:"currentColor"})}))},_=function(e){var t,n=e.action,s=e.isComingSoon,_=void 0!==s&&s,C=e.isDeleted,b=e.onUpdateScreenshot,x=e.selected,g=void 0!==x&&x,j=e.slice,k=e.variant,y=e.variationId,Z=r.dN.variation(j,y);if(!Z)return null;var w=(0,u.d7)(j,Z),N=_||void 0!==C&&C,T=!N&&!!b,S="outlined"===k,D=void 0!==y;return t="selection"===e.mode?{disabled:N,interactive:!0,onClick:function(){e.onSelectedChange(!g)}}:N?{interactive:!1}:{component:a(),href:m.Y.getBuilderPagePathname({libraryName:j.href,sliceName:j.model.name,variationId:Z.id}),interactive:!0,replace:e.replace},(0,i.jsxs)(l.Zb,(0,c.Z)((0,o.Z)({"aria-label":"".concat(j.model.name," ").concat(Z.name," slice card"),checked:g,"data-cy":"shared-slice-card-".concat(j.model.id),"data-testid":"shared-slice-card"},t,"outlined"===k?{size:"small",variant:"outlined"}:{}),{children:[void 0!==w?(0,i.jsx)(l.ZB,{alt:"Preview image",overlay:T&&!S?(0,i.jsx)(d.xu,{alignItems:"center",justifyContent:"center",children:(0,i.jsx)(p,{onClick:b})}):void 0,src:w}):(0,i.jsx)(l.ZB,{component:"div",children:(0,i.jsxs)(d.xu,{alignItems:"center",flexDirection:"column",gap:8,justifyContent:"center",children:[(0,i.jsx)(d.xv,{color:"grey11",component:"span",children:"No screenshot available"}),T&&!S?(0,i.jsx)(p,{onClick:b}):void 0]})}),(0,i.jsx)(l.eW,{action:"checkbox"===n.type&&"selection"===e.mode?(0,i.jsx)("div",{onClick:function(e){return e.stopPropagation()},children:(0,i.jsx)(d.XZ,{checked:g,disabled:N,onCheckedChange:e.onSelectedChange})}):"menu"===n.type?(0,i.jsxs)(d.h_,{modal:!0,children:[(0,i.jsx)(d.$F,{disabled:N,children:(0,i.jsx)(d.hU,{"data-cy":"slice-action-icon",icon:"moreVert"})}),(0,i.jsxs)(d.AW,{align:"end","data-cy":"slice-action-icon-dropdown",children:[T&&S?(0,i.jsx)(d.Xi,{onSelect:b,startIcon:(0,i.jsx)(v,{}),children:"Update screenshot"}):void 0,(0,i.jsx)(d.Xi,{onSelect:n.onRename,startIcon:(0,i.jsx)(d.I5,{name:"edit"}),children:"Rename"}),!0===n.removeDisabled&&D?(0,i.jsx)(d.u,{content:"The slice needs to have at least one variation.",side:"bottom",stableMount:!0,children:(0,i.jsx)(f,{disabled:!0,onSelect:n.onRemove})}):(0,i.jsx)(f,{disabled:!0===n.removeDisabled,onSelect:n.onRemove})]})]}):"remove"===n.type?(0,i.jsx)(d.hU,{icon:"close",onClick:function(){return!N&&n.onRemove()}}):"status"===n.type?(0,i.jsx)(h.O,{authStatus:n.authStatus,isOnline:n.isOnline,modelStatus:n.modelStatus,modelType:"Slice"}):void 0,subtitle:(0,i.jsxs)(i.Fragment,{children:[D?Z.id:"".concat(j.model.variations.length," variation").concat(j.model.variations.length>1?"s":""),_?(0,i.jsxs)(d.xv,{color:"purple11",component:"span",variant:"small",children:[" ","• (coming soon)"]}):void 0]}),title:D?Z.name:j.model.name}),T&&!D&&(0,u.cx)(j)>0?(0,i.jsx)(l.Lm,{children:"Missing screenshot"}):void 0]}))},p=function(e){return(0,i.jsx)(d.zx,{onClick:e.onClick,renderStartIcon:function(){return(0,i.jsx)(v,{color:d.TV.color.greyLight11})},variant:"secondary",children:"Update screenshot"})},f=function(e){return(0,i.jsx)(d.Xi,(0,c.Z)((0,o.Z)({},e),{color:"tomato",startIcon:(0,i.jsx)(d.I5,{name:"delete"}),children:"Delete"}))}},49451:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var o={getBuilderPagePathname:function(e){return"/slices/".concat(e.libraryName.replaceAll("/","--"),"/").concat(e.sliceName,"/").concat(e.variationId)}}},9131:function(){}}]);
|