slice-machine-ui 2.7.2-beta.2 → 2.8.0
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/NHNPoIm5ZybAGepO-LVh5/_buildManifest.js +1 -0
- package/out/_next/static/chunks/{150-84da9b485587e8c4.js → 150-96a0c443c430ec4b.js} +1 -1
- package/out/_next/static/chunks/18539003-9b393c900c89e552.js +22 -0
- package/out/_next/static/chunks/372-cfee53700e416e09.js +1 -0
- package/out/_next/static/chunks/441-76bd8e7cf8cc22da.js +12 -0
- package/out/_next/static/chunks/588-d017e0fe2a651a87.js +1 -0
- package/out/_next/static/chunks/{918-38ab72e6ee071fec.js → 591-a272f15a4bf9830a.js} +2 -2
- package/out/_next/static/chunks/{479-6205c85aa978fc0b.js → 627-092c9e4c99442c08.js} +2 -2
- package/out/_next/static/chunks/750-aa35f21031ee1f96.js +1 -0
- package/out/_next/static/chunks/{772-58d0c8f8ae1c6791.js → 772-db5f72095641ec1d.js} +1 -1
- package/out/_next/static/chunks/{882-1ccb9dbd9bd4734b.js → 882-32959ffa63fa455c.js} +1 -1
- package/out/_next/static/chunks/pages/{_app-8405076cd58a41f0.js → _app-51bef5d3c62d085e.js} +156 -154
- package/out/_next/static/chunks/pages/{changelog-f9055af0d38a0c24.js → changelog-86f30b15d852e710.js} +1 -1
- package/out/_next/static/chunks/pages/changes-6c05ef623617785e.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-2eb64c9ea82fcd0a.js → [customTypeId]-fd2416081ef2ffca.js} +1 -1
- package/out/_next/static/chunks/pages/{custom-types-ddc20cfdd8049c04.js → custom-types-5de2dd7b9b93236e.js} +1 -1
- package/out/_next/static/chunks/pages/{index-17f953c11b46cb20.js → index-2d7f95201a656c12.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-867606e5aff179cd.js → labs-81cf5c5f09fa0bda.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-e5a5e6b345081e0a.js → [pageTypeId]-59e143620505f73f.js} +1 -1
- package/out/_next/static/chunks/pages/settings-80e0d6f1c79282d3.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/{simulator-783b6577bd4e3728.js → simulator-908e779f6d24760d.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-0b6162eb591ee324.js +1 -0
- package/out/_next/static/chunks/pages/{slices-0f6e50acfb5957ed.js → slices-317ec2bd3451566e.js} +1 -1
- package/out/_next/static/css/{22103e0fe77e9b53.css → 4e475d945cf8a890.css} +1 -1
- package/out/_next/static/css/850c81be38195a0f.css +1 -0
- package/out/_next/static/css/{00e9fba6d8022425.css → 9d17b7d9f44c5c5d.css} +1 -1
- package/out/_next/static/css/{cc20f7c46912c5dc.css → e5c7f63f02ff4d0f.css} +1 -1
- package/out/_next/static/css/{7f2ebc8f03a13272.css → e5f781f20e24a5ea.css} +1 -1
- 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/settings.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 +9 -10
- package/src/components/BlankSlate/BlankSlate.module.css +0 -10
- package/src/components/BlankSlate/BlankSlate.module.css.d.ts +0 -1
- package/src/components/BlankSlate/BlankSlate.tsx +2 -2
- package/src/components/Breadcrumb/Breadcrumb.module.css +0 -4
- package/src/components/Breadcrumb/Breadcrumb.module.css.d.ts +0 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/components/ContentTabs/ContentTabs.tsx +2 -1
- package/src/components/FieldSet/FieldSet.module.css +0 -8
- package/src/components/FieldSet/FieldSet.module.css.d.ts +0 -2
- package/src/components/FieldSet/FieldSet.tsx +2 -7
- package/src/components/SideNav/SideNavEnvironmentSelector.tsx +2 -1
- package/src/features/builder/AddFieldDropdown.tsx +1 -1
- package/src/features/documentation/MarkdownRenderer/index.tsx +4 -2
- package/src/features/onboarding/OnboardingProgressStepper.tsx +2 -1
- package/src/features/sync/components/AutoSyncStatusIndicator.tsx +5 -1
- package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +3 -0
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +3 -0
- package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +3 -0
- package/src/legacy/lib/models/common/widgets/Link/Form.jsx +43 -3
- package/src/legacy/lib/models/common/widgets/Link/components.tsx +56 -0
- package/src/legacy/lib/models/common/widgets/Link/index.ts +8 -3
- package/src/legacy/lib/models/common/widgets/LinkToMedia/Form.jsx +14 -1
- package/src/legacy/lib/models/common/widgets/LinkToMedia/index.ts +1 -0
- package/out/_next/static/E30Hv5Nt7vNi3zj5fcpLn/_buildManifest.js +0 -1
- package/out/_next/static/chunks/18539003-080f6b8eec027936.js +0 -22
- package/out/_next/static/chunks/372-a86e2c479a721702.js +0 -1
- package/out/_next/static/chunks/441-126d623f1b578785.js +0 -12
- package/out/_next/static/chunks/50-586dc7ab5e584e76.js +0 -1
- package/out/_next/static/chunks/764-e040bcebe6027fea.js +0 -1
- package/out/_next/static/chunks/pages/changes-72a49635f1ee5057.js +0 -1
- package/out/_next/static/chunks/pages/settings-0edb6f6c78439c20.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-68074c174d83cf1e.js +0 -1
- package/out/_next/static/css/34067e4b880866ca.css +0 -1
- /package/out/_next/static/{E30Hv5Nt7vNi3zj5fcpLn → NHNPoIm5ZybAGepO-LVh5}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[50],{81207:function(e){e.exports=function(e,t,n,o){var i=-1,r=null==e?0:e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}},45981:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},6435:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},83126:function(e,t,n){var o=n(23895),i=n(33880),r=n(8435),a=n(66188);e.exports=function(e){return function(t){var n=i(t=a(t))?r(t):void 0,u=n?n[0]:t.charAt(0),s=n?o(n,1).join(""):t.slice(1);return u[e]()+s}}},34311:function(e,t,n){var o=n(81207),i=n(97329),r=n(11618),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(r(i(t).replace(a,"")),e,"")}}},61655:function(e,t,n){var o=n(6435)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=o},83559:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},75304:function(e){var t="\ud800-\udfff",n="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",u="["+r+"]",s="["+o+"]",l="[^"+t+r+"\\d+"+n+o+i+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",p="["+i+"]",f="(?:"+s+"|"+l+")",h="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",m="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",b="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+g+v+")*",y="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+b),O=RegExp([p+"?"+s+"+"+h+"(?="+[u,p,"$"].join("|")+")","(?:"+p+"|"+l+")+"+m+"(?="+[u,p+f,"$"].join("|")+")",p+"?"+f+"+"+h,p+"+"+m,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",y].join("|"),"g");e.exports=function(e){return e.match(O)||[]}},96009:function(e,t,n){var o=n(82108),i=n(34311)(function(e,t,n){return t=t.toLowerCase(),e+(n?o(t):t)});e.exports=i},82108:function(e,t,n){var o=n(66188),i=n(23779);e.exports=function(e){return i(o(e).toLowerCase())}},97329:function(e,t,n){var o=n(61655),i=n(66188),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(r,o).replace(a,"")}},23779:function(e,t,n){var o=n(83126)("toUpperCase");e.exports=o},11618:function(e,t,n){var o=n(45981),i=n(83559),r=n(66188),a=n(75304);e.exports=function(e,t,n){return(e=r(e),void 0===(t=n?void 0:t))?i(e)?a(e):o(e):e.match(t)||[]}},36131:function(e,t,n){"use strict";n.d(t,{ZP:function(){return ta}});var o,i,r,a=n(33028),u=n(59147);function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,i,r,a,u=[],s=!0,l=!1;try{if(r=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(u.push(o.value),u.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,t)||(0,u.Z)(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var l=n(59740),c=n(2784),d=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],p=n(7896),f=n(9249),h=n(87371),m=n(45754),v=n(4309),g=n(51171),b=n(28165),y=n(86522),O=n(56666),x=n(28316);function C(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Z(e){return C(e).getComputedStyle(e)}function w(e){return e instanceof C(e).Node}function I(e){return w(e)?(e.nodeName||"").toLowerCase():""}function S(e){return e instanceof C(e).HTMLElement}function V(e){return e instanceof C(e).Element}function E(e){return"undefined"!=typeof ShadowRoot&&(e instanceof C(e).ShadowRoot||e instanceof ShadowRoot)}function M(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(i)}["top","right","bottom","left"].reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);let R=Math.round;function L(e){return V(e)?e:e.contextElement}let k={x:1,y:1};function D(e){let t=L(e);if(!S(t))return k;let n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=function(e){let t=Z(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=S(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=R(n)!==r||R(o)!==a;return u&&(n=r,o=a),{width:n,height:o,fallback:u}}(t),a=(r?R(n.width):n.width)/o,u=(r?R(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let P={x:0,y:0};function F(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),a=L(e),u=k;t&&(o?V(o)&&(u=D(o)):u=D(e));let s=function(e,t,n){var o,i;if(void 0===t&&(t=!0),!(!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")))return P;let r=e?C(e):window;return!n||t&&n!==r?P:{x:(null==(o=r.visualViewport)?void 0:o.offsetLeft)||0,y:(null==(i=r.visualViewport)?void 0:i.offsetTop)||0}}(a,n,o),l=(r.left+s.x)/u.x,c=(r.top+s.y)/u.y,d=r.width/u.x,p=r.height/u.y;if(a){let e=C(a),t=o&&V(o)?C(o):o,n=e.frameElement;for(;n&&o&&t!==e;){let e=D(n),t=n.getBoundingClientRect(),o=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(o.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(o.paddingTop))*e.y,l*=e.x,c*=e.y,d*=e.x,p*=e.y,l+=t.x,c+=t.y,n=C(n).frameElement}}return{...i={width:d,height:p,x:l,y:c},top:i.y,left:i.x,right:i.x+i.width,bottom:i.y+i.height}}function T(e,t){var n;void 0===t&&(t=[]);let o=function e(t){let n=function(e){if("html"===I(e))return e;let t=e.assignedSlot||e.parentNode||E(e)&&e.host||((w(e)?e.ownerDocument:e.document)||window.document).documentElement;return E(t)?t.host:t}(t);return["html","body","#document"].includes(I(n))?n.ownerDocument.body:S(n)&&M(n)?n:e(n)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=C(o);return i?t.concat(r,r.visualViewport||[],M(o)?o:[]):t.concat(o,T(o))}var A=c.useLayoutEffect,H=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],U=function(){};function z(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];var r=[].concat(o);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&r.push("".concat(a?"-"===a[0]?e+a:e+"__"+a:e));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var N=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===(0,y.Z)(e)&&null!==e?[e]:[]},B=function(e){e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme;var t=(0,l.Z)(e,H);return(0,a.Z)({},t)},j=function(e,t,n){var o=e.cx,i=e.getStyles,r=e.getClassNames,a=e.className;return{css:i(t,e),className:o(null!=n?n:{},r(t,e),a)}};function W(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Y(e){return W(e)?window.pageYOffset:e.scrollTop}function G(e,t){if(W(e)){window.scrollTo(0,t);return}e.scrollTop=t}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:U,i=Y(e),r=t-i,a=0;!function t(){var u;a+=10,G(e,r*((u=(u=a)/n-1)*u*u+1)+i),a<n?window.requestAnimationFrame(t):o(e)}()}function X(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?G(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&G(e,Math.max(t.offsetTop-i,0))}function q(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var K=!1,J="undefined"!=typeof window?window:{};J.addEventListener&&J.removeEventListener&&(J.addEventListener("p",U,{get passive(){return K=!0}}),J.removeEventListener("p",U,!1));var $=K;function Q(e){return null!=e}var ee=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Object.entries(e).filter(function(e){var t=s(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=s(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},et=function(e){return"auto"===e?"bottom":e},en=(0,c.createContext)(null),eo=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,i=e.menuPlacement,r=e.menuPosition,u=e.menuShouldScrollIntoView,l=e.theme,d=((0,c.useContext)(en)||{}).setPortalPlacement,p=(0,c.useRef)(null),f=s((0,c.useState)(o),2),h=f[0],m=f[1],v=s((0,c.useState)(null),2),g=v[0],b=v[1],y=l.spacing.controlHeight;return A(function(){var e=p.current;if(e){var t="fixed"===r,a=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,i=e.placement,r=e.shouldScroll,a=e.isFixedPosition,u=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),l={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return l;var c=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,f=d.height,h=d.top,m=n.offsetParent.getBoundingClientRect().top,v=a?window.innerHeight:W(s)?window.innerHeight:s.clientHeight,g=Y(s),b=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=m-y,x=v-h,C=O+g,Z=c-g-h,w=p-v+g+b,I=g+h-y;switch(i){case"auto":case"bottom":if(x>=f)return{placement:"bottom",maxHeight:t};if(Z>=f&&!a)return r&&_(s,w,160),{placement:"bottom",maxHeight:t};if(!a&&Z>=o||a&&x>=o)return r&&_(s,w,160),{placement:"bottom",maxHeight:a?x-b:Z-b};if("auto"===i||a){var S=t,V=a?O:C;return V>=o&&(S=Math.min(V-b-u,t)),{placement:"top",maxHeight:S}}if("bottom"===i)return r&&G(s,w),{placement:"bottom",maxHeight:t};break;case"top":if(O>=f)return{placement:"top",maxHeight:t};if(C>=f&&!a)return r&&_(s,I,160),{placement:"top",maxHeight:t};if(!a&&C>=o||a&&O>=o){var E=t;return(!a&&C>=o||a&&O>=o)&&(E=a?O-y:C-y),r&&_(s,I,160),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:i,shouldScroll:u&&!t,isFixedPosition:t,controlHeight:y});m(a.maxHeight),b(a.placement),null==d||d(a.placement)}},[o,i,r,u,n,d,y]),t({ref:p,placerProps:(0,a.Z)((0,a.Z)({},e),{},{placement:g||et(i),maxHeight:h})})},ei=function(e,t){var n=e.theme,o=n.spacing.baseUnit,i=n.colors;return(0,a.Z)({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},er=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};er.defaultProps={children:"No options"};var ea=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};ea.defaultProps={children:"Loading..."};var eu=["size"],es={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},el=function(e){var t=e.size,n=(0,l.Z)(e,eu);return(0,b.tZ)("svg",(0,p.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:es},n))},ec=function(e){return(0,b.tZ)(el,(0,p.Z)({size:20},e),(0,b.tZ)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ed=function(e){return(0,b.tZ)(el,(0,p.Z)({size:20},e),(0,b.tZ)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},ep=function(e,t){var n=e.isFocused,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return(0,a.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*i,":hover":{color:n?r.neutral80:r.neutral40}})},ef=(0,b.F4)(r||(o=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}})))),eh=function(e){var t=e.delay,n=e.offset;return(0,b.tZ)("span",{css:(0,b.iv)({animation:"".concat(ef," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},em=function(e){var t=e.innerProps,n=e.isRtl;return(0,b.tZ)("div",(0,p.Z)({},j(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,b.tZ)(eh,{delay:0,offset:n}),(0,b.tZ)(eh,{delay:160,offset:!0}),(0,b.tZ)(eh,{delay:320,offset:!n}))};em.defaultProps={size:4};var ev=["data"],eg=["innerRef","isDisabled","isHidden","inputClassName"],eb={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ey={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,a.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eb)},eO=function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",n,t)},ex={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,b.tZ)(ec,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return(0,b.tZ)("div",(0,p.Z)({ref:i},j(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,b.tZ)(ed,null))},DownChevron:ed,CrossIcon:ec,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,i=e.getClassNames,r=e.Heading,a=e.headingProps,u=e.innerProps,s=e.label,l=e.theme,c=e.selectProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"group",{group:!0}),u),(0,b.tZ)(r,(0,p.Z)({},a,{selectProps:c,theme:l,getStyles:o,getClassNames:i,cx:n}),s),(0,b.tZ)("div",null,t))},GroupHeading:function(e){var t=B(e);t.data;var n=(0,l.Z)(t,ev);return(0,b.tZ)("div",(0,p.Z)({},j(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return(0,b.tZ)("span",(0,p.Z)({},t,j(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=B(e),i=o.innerRef,r=o.isDisabled,u=o.isHidden,s=o.inputClassName,c=(0,l.Z)(o,eg);return(0,b.tZ)("div",(0,p.Z)({},j(e,"input",{"input-container":!0}),{"data-value":n||""}),(0,b.tZ)("input",(0,p.Z)({className:t({input:!0},s),ref:i,style:(0,a.Z)({label:"input",color:"inherit",background:0,opacity:u?0:1,width:"100%"},eb),disabled:r},c)))},LoadingIndicator:em,Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return(0,b.tZ)("div",(0,p.Z)({},j(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,i=e.innerProps,r=e.menuPlacement,u=e.menuPosition,l=(0,c.useRef)(null),d=(0,c.useRef)(null),f=s((0,c.useState)(et(r)),2),h=f[0],m=f[1],v=(0,c.useMemo)(function(){return{setPortalPlacement:m}},[]),g=s((0,c.useState)(null),2),y=g[0],O=g[1],C=(0,c.useCallback)(function(){if(o){var e,t={bottom:(e=o.getBoundingClientRect()).bottom,height:e.height,left:e.left,right:e.right,top:e.top,width:e.width},n="fixed"===u?0:window.pageYOffset,i=t[h]+n;(i!==(null==y?void 0:y.offset)||t.left!==(null==y?void 0:y.rect.left)||t.width!==(null==y?void 0:y.rect.width))&&O({offset:i,rect:t})}},[o,u,h,null==y?void 0:y.offset,null==y?void 0:y.rect.left,null==y?void 0:y.rect.width]);A(function(){C()},[C]);var Z=(0,c.useCallback)(function(){"function"==typeof d.current&&(d.current(),d.current=null),o&&l.current&&(d.current=function(e,t,n,o){void 0===o&&(o={});let{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=!0,animationFrame:u=!1}=o,s=i||r?[...V(e)?T(e):e.contextElement?T(e.contextElement):[],...T(t)]:[];s.forEach(e=>{let t=!V(e)&&e.toString().includes("V");i&&(!u||t)&&e.addEventListener("scroll",n,{passive:!0}),r&&e.addEventListener("resize",n)});let l,c=null;a&&(c=new ResizeObserver(()=>{n()}),V(e)&&!u&&c.observe(e),V(e)||!e.contextElement||u||c.observe(e.contextElement),c.observe(t));let d=u?F(e):null;return u&&function t(){let o=F(e);d&&(o.x!==d.x||o.y!==d.y||o.width!==d.width||o.height!==d.height)&&n(),d=o,l=requestAnimationFrame(t)}(),n(),()=>{var e;s.forEach(e=>{i&&e.removeEventListener("scroll",n),r&&e.removeEventListener("resize",n)}),null==(e=c)||e.disconnect(),c=null,u&&cancelAnimationFrame(l)}}(o,l.current,C,{elementResize:"ResizeObserver"in window}))},[o,C]);A(function(){Z()},[Z]);var w=(0,c.useCallback)(function(e){l.current=e,Z()},[Z]);if(!t&&"fixed"!==u||!y)return null;var I=(0,b.tZ)("div",(0,p.Z)({ref:w},j((0,a.Z)((0,a.Z)({},e),{},{offset:y.offset,position:u,rect:y.rect}),"menuPortal",{"menu-portal":!0}),i),n);return(0,b.tZ)(en.Provider,{value:v},t?(0,x.createPortal)(I,t):I)},LoadingMessage:ea,NoOptionsMessage:er,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,i=e.innerProps,r=e.isDisabled,u=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,b.tZ)(l,{data:o,innerProps:(0,a.Z)((0,a.Z)({},j(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":r})),i),selectProps:s},(0,b.tZ)(c,{data:o,innerProps:(0,a.Z)({},j(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,b.tZ)(d,{data:o,innerProps:(0,a.Z)((0,a.Z)({},j(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:s}))},MultiValueContainer:eO,MultiValueLabel:eO,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({role:"button"},n),t||(0,b.tZ)(ec,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.innerRef,a=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":i}),{ref:r,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return(0,b.tZ)("div",(0,p.Z)({},j(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,b.tZ)("div",(0,p.Z)({},j(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return(0,b.tZ)("div",(0,p.Z)({},j(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)}},eC=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function eZ(e,t){if(e.length!==t.length)return!1;for(var n,o,i=0;i<e.length;i++)if(!((n=e[i])===(o=t[i])||eC(n)&&eC(o)))return!1;return!0}for(var ew={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},eI=function(e){return(0,b.tZ)("span",(0,p.Z)({css:ew},e))},eS={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,i=e.labels,r=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return r?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,i=e.label,r=void 0===i?"":i,a=e.selectValue,u=e.isDisabled,s=e.isSelected,l=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(r," focused, ").concat(l(a,n),".");if("menu"===t){var c="".concat(s?"selected":"focused").concat(u?" disabled":"");return"option ".concat(r," ").concat(c,", ").concat(l(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},eV=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,i=e.focusableOptions,r=e.isFocused,u=e.selectValue,s=e.selectProps,l=e.id,d=s.ariaLiveMessages,p=s.getOptionLabel,f=s.inputValue,h=s.isMulti,m=s.isOptionDisabled,v=s.isSearchable,g=s.menuIsOpen,y=s.options,O=s.screenReaderStatus,x=s.tabSelectsValue,C=s["aria-label"],Z=s["aria-live"],w=(0,c.useMemo)(function(){return(0,a.Z)((0,a.Z)({},eS),d||{})},[d]),I=(0,c.useMemo)(function(){var e="";if(t&&w.onChange){var n=t.option,o=t.options,i=t.removedValue,r=t.removedValues,s=t.value,l=i||n||(Array.isArray(s)?null:s),c=l?p(l):"",d=o||r||void 0,f=d?d.map(p):[],h=(0,a.Z)({isDisabled:l&&m(l,u),label:c,labels:f},t);e=w.onChange(h)}return e},[t,w,m,u,p]),S=(0,c.useMemo)(function(){var e="",t=n||o,r=!!(n&&u&&u.includes(n));if(t&&w.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,u),isSelected:r,options:i,context:t===n?"menu":"value",selectValue:u};e=w.onFocus(a)}return e},[n,o,p,m,w,i,u]),V=(0,c.useMemo)(function(){var e="";if(g&&y.length&&w.onFilter){var t=O({count:i.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e},[i,f,g,w,y,O]),E=(0,c.useMemo)(function(){var e="";if(w.guidance){var t=o?"value":g?"menu":"input";e=w.guidance({"aria-label":C,context:t,isDisabled:n&&m(n,u),isMulti:h,isSearchable:v,tabSelectsValue:x})}return e},[C,n,o,h,m,v,g,w,u,x]),M="".concat(S," ").concat(V," ").concat(E),R=(0,b.tZ)(c.Fragment,null,(0,b.tZ)("span",{id:"aria-selection"},I),(0,b.tZ)("span",{id:"aria-context"},M)),L=(null==t?void 0:t.action)==="initial-input-focus";return(0,b.tZ)(c.Fragment,null,(0,b.tZ)(eI,{id:l},L&&R),(0,b.tZ)(eI,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text"},r&&!L&&R))},eE=[{base:"A",letters:"AⒶA\xc0\xc1\xc2ẦẤẪẨ\xc3ĀĂẰẮẴẲȦǠ\xc4ǞẢ\xc5ǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"\xc6ǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČ\xc7ḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺE\xc8\xc9\xcaỀẾỄỂẼĒḔḖĔĖ\xcbẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾI\xcc\xcd\xceĨĪĬİ\xcfḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃ\xd1ṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄO\xd2\xd3\xd4ỒỐỖỔ\xd5ṌȬṎŌṐṒŎȮȰ\xd6ȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬ\xd8ǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊU\xd9\xda\xdbŨṸŪṺŬ\xdcǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲ\xddŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚ\xe0\xe1\xe2ầấẫẩ\xe3āăằắẵẳȧǡ\xe4ǟả\xe5ǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"\xe6ǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċč\xe7ḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔe\xe8\xe9\xeaềếễểẽēḕḗĕė\xebẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘi\xec\xed\xeeĩīĭ\xefḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹń\xf1ṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞo\xf2\xf3\xf4ồốỗổ\xf5ṍȭṏōṑṓŏȯȱ\xf6ȫỏőǒȍȏơờớỡởợọộǫǭ\xf8ǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢs\xdfśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤu\xf9\xfa\xfbũṹūṻŭ\xfcǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳ\xfdŷỹȳẏ\xffỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],eM=RegExp("["+eE.map(function(e){return e.letters}).join("")+"]","g"),eR={},eL=0;eL<eE.length;eL++)for(var ek=eE[eL],eD=0;eD<ek.letters.length;eD++)eR[ek.letters[eD]]=ek.base;var eP=function(e){return e.replace(eM,function(e){return eR[e]})},eF=function(e,t){void 0===t&&(t=eZ);var n=null;function o(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var r=e.apply(this,o);return n={lastResult:r,lastArgs:o,lastThis:this},r}return o.clear=function(){n=null},o}(eP),eT=function(e){return e.replace(/^\s+|\s+$/g,"")},eA=function(e){return"".concat(e.label," ").concat(e.value)},eH=["innerRef"];function eU(e){var t=e.innerRef,n=ee((0,l.Z)(e,eH),"onExited","in","enter","exit","appear");return(0,b.tZ)("input",(0,p.Z)({ref:t},n,{css:(0,b.iv)({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ez=function(e){e.preventDefault(),e.stopPropagation()},eN=["boxSizing","height","overflow","paddingRight","position"],eB={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ej(e){e.preventDefault()}function eW(e){e.stopPropagation()}function eY(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function eG(){return"ontouchstart"in window||navigator.maxTouchPoints}var e_=!!("undefined"!=typeof window&&window.document&&window.document.createElement),eX=0,eq={capture:!1,passive:!1},eK=function(){return document.activeElement&&document.activeElement.blur()},eJ={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function e$(e){var t,n,o,i,r,a,u,s,l,d,p,f,h,m,v,g,y,O,x,C,Z,w,I,S,V=e.children,E=e.lockEnabled,M=e.captureEnabled,R=(n=(t={isEnabled:void 0===M||M,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,a=t.onTopLeave,u=(0,c.useRef)(!1),s=(0,c.useRef)(!1),l=(0,c.useRef)(0),d=(0,c.useRef)(null),p=(0,c.useCallback)(function(e,t){if(null!==d.current){var n=d.current,l=n.scrollTop,c=n.scrollHeight,p=n.clientHeight,f=d.current,h=t>0,m=c-p-l,v=!1;m>t&&u.current&&(i&&i(e),u.current=!1),h&&s.current&&(a&&a(e),s.current=!1),h&&t>m?(o&&!u.current&&o(e),f.scrollTop=c,v=!0,u.current=!0):!h&&-t>l&&(r&&!s.current&&r(e),f.scrollTop=0,v=!0,s.current=!0),v&&ez(e)}},[o,i,r,a]),f=(0,c.useCallback)(function(e){p(e,e.deltaY)},[p]),h=(0,c.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),m=(0,c.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;p(e,t)},[p]),v=(0,c.useCallback)(function(e){if(e){var t=!!$&&{passive:!1};e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),g=(0,c.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]),(0,c.useEffect)(function(){if(n){var e=d.current;return v(e),function(){g(e)}}},[n,v,g]),function(e){d.current=e}),L=(O=(y={isEnabled:E}).isEnabled,C=void 0===(x=y.accountForScrollbars)||x,Z=(0,c.useRef)({}),w=(0,c.useRef)(null),I=(0,c.useCallback)(function(e){if(e_){var t=document.body,n=t&&t.style;if(C&&eN.forEach(function(e){var t=n&&n[e];Z.current[e]=t}),C&&eX<1){var o=parseInt(Z.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,r=window.innerWidth-i+o||0;Object.keys(eB).forEach(function(e){var t=eB[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(r,"px"))}t&&eG()&&(t.addEventListener("touchmove",ej,eq),e&&(e.addEventListener("touchstart",eY,eq),e.addEventListener("touchmove",eW,eq))),eX+=1}},[C]),S=(0,c.useCallback)(function(e){if(e_){var t=document.body,n=t&&t.style;eX=Math.max(eX-1,0),C&&eX<1&&eN.forEach(function(e){var t=Z.current[e];n&&(n[e]=t)}),t&&eG()&&(t.removeEventListener("touchmove",ej,eq),e&&(e.removeEventListener("touchstart",eY,eq),e.removeEventListener("touchmove",eW,eq)))}},[C]),(0,c.useEffect)(function(){if(O){var e=w.current;return I(e),function(){S(e)}}},[O,I,S]),function(e){w.current=e});return(0,b.tZ)(c.Fragment,null,E&&(0,b.tZ)("div",{onClick:eK,css:eJ}),V(function(e){R(e),L(e)}))}var eQ={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},e0=function(e){var t=e.name,n=e.onFocus;return(0,b.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:eQ,value:"",onChange:function(){}})},e1={clearIndicator:ep,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.theme,r=i.colors,u=i.borderRadius,s=i.spacing;return(0,a.Z)({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:s.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?r.neutral5:r.neutral0,borderColor:n?r.neutral10:o?r.primary:r.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(r.primary):void 0,"&:hover":{borderColor:o?r.primary:r.neutral30}})},dropdownIndicator:ep,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,i=n.spacing;return(0,a.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing.baseUnit,r=o.colors;return(0,a.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?r.neutral10:r.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,o=e.value,i=e.theme,r=i.spacing,u=i.colors;return(0,a.Z)((0,a.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},ey),t?{}:{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,color:u.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,i=e.theme,r=i.colors,u=i.spacing.baseUnit;return(0,a.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?r.neutral60:r.neutral20,padding:2*u})},loadingMessage:ei,menu:function(e,t){var n,o=e.placement,i=e.theme,r=i.borderRadius,u=i.spacing,s=i.colors;return(0,a.Z)((n={label:"menu"},(0,O.Z)(n,o?({bottom:"top",top:"bottom"})[o]:"bottom","100%"),(0,O.Z)(n,"position","absolute"),(0,O.Z)(n,"width","100%"),(0,O.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:r,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:u.menuGutter,marginTop:u.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,a.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors;return(0,a.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:r.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,i=n.colors,r=e.cropWithEllipsis;return(0,a.Z)({overflow:"hidden",textOverflow:r||void 0===r?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,i=n.borderRadius,r=n.colors,u=e.isFocused;return(0,a.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:u?r.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:r.dangerLight,color:r.danger}})},noOptionsMessage:ei,option:function(e,t){var n=e.isDisabled,o=e.isFocused,i=e.isSelected,r=e.theme,u=r.spacing,s=r.colors;return(0,a.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,i=n.colors;return(0,a.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,i=o.spacing,r=o.colors;return(0,a.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?r.neutral40:r.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,i=e.hasValue,r=e.selectProps.controlShouldRenderValue;return(0,a.Z)({alignItems:"center",display:o&&i&&r?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},e2={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},e6={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:q(),captureMenuScroll:!q(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,a.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:eA,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,i=n.ignoreAccents,r=n.stringify,u=n.trim,s=n.matchFrom,l=u?eT(t):t,c=u?eT(r(e)):r(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),i&&(l=eF(l),c=eP(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function e4(e,t,n,o){var i=te(e,t,n),r=tt(e,t,n),a=e8(e,t),u=e7(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:a,value:u,index:o}}function e3(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return e4(e,n,t,o)}).filter(function(t){return e9(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=e4(e,n,t,o);return e9(e,r)?r:void 0}).filter(Q)}function e5(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,g.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function e9(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,r=t.label,a=t.value;return(!to(e)||!i)&&tn(e,{label:r,value:a,data:o},void 0===n?"":n)}var e8=function(e,t){return e.getOptionLabel(t)},e7=function(e,t){return e.getOptionValue(t)};function te(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tt(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=e7(e,t);return n.some(function(t){return e7(e,t)===o})}function tn(e,t,n){return!e.filterOption||e.filterOption(t,n)}var to=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ti=1,tr=function(e){(0,m.Z)(n,e);var t=(0,v.Z)(n);function n(e){var o;if((0,f.Z)(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.instancePrefix="",o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,i=n.onChange,r=n.name;t.name=r,o.ariaOnChange(e,t),i(e,t)},o.setValue=function(e,t,n){var i=o.props,r=i.closeMenuOnSelect,a=i.isMulti,u=i.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:u}),r&&(o.setState({inputIsHiddenAfterUpdate:!a}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,i=t.isMulti,r=t.name,a=o.state.selectValue,u=i&&o.isOptionSelected(e,a),s=o.isOptionDisabled(e,a);if(u){var l=o.getOptionValue(e);o.setValue(a.filter(function(e){return o.getOptionValue(e)!==l}),"deselect-option",e)}else if(s){o.ariaOnChange(e,{action:"select-option",option:e,name:r});return}else i?o.setValue([].concat((0,g.Z)(a),[e]),"select-option",e):o.setValue(e,"select-option");n&&o.blurInput()},o.removeValue=function(e){var t,n=o.props.isMulti,i=o.state.selectValue,r=o.getOptionValue(e),a=i.filter(function(e){return o.getOptionValue(e)!==r}),u=(t=a[0]||null,n?a:t);o.onChange(u,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e,t,n=o.state.selectValue;o.onChange((e=o.props.isMulti,t=[],e?t:null),{action:"clear",removedValues:n})},o.popValue=function(){var e,t=o.props.isMulti,n=o.state.selectValue,i=n[n.length-1],r=n.slice(0,n.length-1),a=(e=r[0]||null,t?r:e);o.onChange(a,{action:"pop-value",removedValue:i})},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return e8(o.props,e)},o.getOptionValue=function(e){return e7(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=e1[e](t,n);i.boxSizing="border-box";var r=o.props.styles[e];return r?r(i,t):i},o.getClassNames=function(e,t){var n,i;return null===(n=(i=o.props.classNames)[e])||void 0===n?void 0:n.call(i,t)},o.getElementId=function(e){return"".concat(o.instancePrefix,"-").concat(e)},o.getComponents=function(){var e;return e=o.props,(0,a.Z)((0,a.Z)({},ex),e.components)},o.buildCategorizedOptions=function(){return e3(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return e5(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,a.Z)({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!o.props.isDisabled){var t=o.props,n=t.isMulti,i=t.menuIsOpen;o.focusInput(),i?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&W(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var i=Math.abs(n.clientX-o.initialTouchX),r=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=i>5||r>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(e){o.blockOptionHover||o.state.focusedOption===e||o.setState({focusedOption:e})},o.shouldHideSelectedOptions=function(){return to(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,i=t.backspaceRemovesValue,r=t.escapeClearsValue,a=t.inputValue,u=t.isClearable,s=t.isDisabled,l=t.menuIsOpen,c=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=o.state,h=f.focusedOption,m=f.focusedValue,v=f.selectValue;if(!s){if("function"==typeof c&&(c(e),e.defaultPrevented))return;switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;o.focusValue("previous");break;case"ArrowRight":if(!n||a)return;o.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(m)o.removeValue(m);else{if(!i)return;n?o.popValue():u&&o.clearValue()}break;case"Tab":if(o.isComposing||e.shiftKey||!l||!d||!h||p&&o.isOptionSelected(h,v))return;o.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(l){if(!h||o.isComposing)return;o.selectOption(h);break}return;case"Escape":l?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:a}),o.onMenuClose()):u&&r&&o.clearValue();break;case" ":if(a)return;if(!l){o.openMenu("first");break}if(!h)return;o.selectOption(h);break;case"ArrowUp":l?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":l?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!l)return;o.focusOption("pageup");break;case"PageDown":if(!l)return;o.focusOption("pagedown");break;case"Home":if(!l)return;o.focusOption("first");break;case"End":if(!l)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.instancePrefix="react-select-"+(o.props.instanceId||++ti),o.state.selectValue=N(e.value),e.menuIsOpen&&o.state.selectValue.length){var i=o.buildFocusableOptions(),r=i.indexOf(o.state.selectValue[0]);o.state.focusedOption=i[r]}return o}return(0,h.Z)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&X(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&o&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(X(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,i=n.isFocused,r=this.buildFocusableOptions(),a="first"===e?0:r.length-1;if(!this.props.isMulti){var u=r.indexOf(o[0]);u>-1&&(a=u)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:r[a]},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(o);o||(i=-1);var r=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===i?0:-1===i?r:i-1;break;case"next":i>-1&&i<r&&(a=i+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var i=0,r=o.indexOf(n);n||(r=-1),"up"===e?i=r>0?r-1:o.length-1:"down"===e?i=(r+1)%o.length:"pageup"===e?(i=r-t)<0&&(i=0):"pagedown"===e?(i=r+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(e2):(0,a.Z)((0,a.Z)({},e2),this.props.theme):e2}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,i=this.getValue,r=this.selectOption,a=this.setValue,u=this.props,s=u.isMulti,l=u.isRtl,c=u.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:i,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:r,selectProps:u,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return te(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tt(this.props,e,t)}},{key:"filterOption",value:function(e,t){return tn(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"!=typeof this.props.formatOptionLabel)return this.getOptionLabel(e);var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,i=e.inputValue,r=e.tabIndex,u=e.form,s=e.menuIsOpen,l=e.required,d=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),b=(0,a.Z)((0,a.Z)((0,a.Z)({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox"},s&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?(null==m?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?c.createElement(d,(0,p.Z)({},v,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:r,form:u,type:"text",value:i},b)):c.createElement(eU,(0,p.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:U,onFocus:this.onInputFocus,disabled:t,tabIndex:r,inputMode:"none",form:u,value:""},b))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,i=t.MultiValueLabel,r=t.MultiValueRemove,a=t.SingleValue,u=t.Placeholder,s=this.commonProps,l=this.props,d=l.controlShouldRenderValue,f=l.isDisabled,h=l.isMulti,m=l.inputValue,v=l.placeholder,g=this.state,b=g.selectValue,y=g.focusedValue,O=g.isFocused;if(!this.hasValue()||!d)return m?null:c.createElement(u,(0,p.Z)({},s,{key:"placeholder",isDisabled:f,isFocused:O,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map(function(t,a){var u=t===y,l="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return c.createElement(n,(0,p.Z)({},s,{components:{Container:o,Label:i,Remove:r},isFocused:u,isDisabled:f,key:l,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(m)return null;var x=b[0];return c.createElement(a,(0,p.Z)({},s,{data:x,isDisabled:f}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||i)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,p.Z)({},t,{innerProps:a,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,i=n.isLoading,r=this.state.isFocused;return e&&i?c.createElement(e,(0,p.Z)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,i=this.props.isDisabled,r=this.state.isFocused;return c.createElement(n,(0,p.Z)({},o,{isDisabled:i,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return c.createElement(e,(0,p.Z)({},t,{innerProps:i,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e,t=this,n=this.getComponents(),o=n.Group,i=n.GroupHeading,r=n.Menu,a=n.MenuList,u=n.MenuPortal,s=n.LoadingMessage,l=n.NoOptionsMessage,d=n.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,b=m.isLoading,y=m.loadingMessage,O=m.minMenuHeight,x=m.maxMenuHeight,C=m.menuIsOpen,Z=m.menuPlacement,w=m.menuPosition,I=m.menuPortalTarget,S=m.menuShouldBlockScroll,V=m.menuShouldScrollIntoView,E=m.noOptionsMessage,M=m.onMenuScrollToTop,R=m.onMenuScrollToBottom;if(!C)return null;var L=function(e,n){var o=e.type,i=e.data,r=e.isDisabled,a=e.isSelected,u=e.label,s=e.value,l=h===i,m=r?void 0:function(){return t.onOptionHover(i)},v=r?void 0:function(){return t.selectOption(i)},g="".concat(t.getElementId("option"),"-").concat(n);return c.createElement(d,(0,p.Z)({},f,{innerProps:{id:g,onClick:v,onMouseMove:m,onMouseOver:m,tabIndex:-1},data:i,isDisabled:r,isSelected:a,key:g,label:u,type:o,value:s,isFocused:l,innerRef:l?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(e.data,"menu"))};if(this.hasOptions())e=this.getCategorizedOptions().map(function(e){if("group"===e.type){var n=e.data,r=e.options,a=e.index,u="".concat(t.getElementId("group"),"-").concat(a),s="".concat(u,"-heading");return c.createElement(o,(0,p.Z)({},f,{key:u,data:n,options:r,Heading:i,headingProps:{id:s,data:e.data},label:t.formatGroupLabel(e.data)}),e.options.map(function(e){return L(e,"".concat(a,"-").concat(e.index))}))}if("option"===e.type)return L(e,"".concat(e.index))});else if(b){var k=y({inputValue:g});if(null===k)return null;e=c.createElement(s,f,k)}else{var D=E({inputValue:g});if(null===D)return null;e=c.createElement(l,f,D)}var P={minMenuHeight:O,maxMenuHeight:x,menuPlacement:Z,menuPosition:w,menuShouldScrollIntoView:V},F=c.createElement(eo,(0,p.Z)({},f,P),function(n){var o=n.ref,i=n.placerProps,u=i.placement,s=i.maxHeight;return c.createElement(r,(0,p.Z)({},f,P,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:b,placement:u}),c.createElement(e$,{captureEnabled:v,onTopArrive:M,onBottomArrive:R,lockEnabled:S},function(n){return c.createElement(a,(0,p.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:b,maxHeight:s,focusedOption:h}),e)}))});return I||"fixed"===w?c.createElement(u,(0,p.Z)({},f,{appendTo:I,controlElement:this.controlRef,menuPlacement:Z,menuPosition:w}),F):F}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,i=t.isMulti,r=t.name,a=t.required,u=this.state.selectValue;if(a&&!this.hasValue()&&!o)return c.createElement(e0,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(i){if(n){var s=u.map(function(t){return e.getOptionValue(t)}).join(n);return c.createElement("input",{name:r,type:"hidden",value:s})}var l=u.length>0?u.map(function(t,n){return c.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):c.createElement("input",{name:r,type:"hidden",value:""});return c.createElement("div",null,l)}var d=u[0]?this.getOptionValue(u[0]):"";return c.createElement("input",{name:r,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,i=t.focusedValue,r=t.isFocused,a=t.selectValue,u=this.getFocusableOptions();return c.createElement(eV,(0,p.Z)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:i,isFocused:r,selectValue:a,focusableOptions:u}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,i=e.ValueContainer,r=this.props,a=r.className,u=r.id,s=r.isDisabled,l=r.menuIsOpen,d=this.state.isFocused,f=this.commonProps=this.getCommonProps();return c.createElement(o,(0,p.Z)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),c.createElement(t,(0,p.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:l}),c.createElement(i,(0,p.Z)({},f,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),c.createElement(n,(0,p.Z)({},f,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,i=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,u=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=e.options,d=e.value,p=e.menuIsOpen,f=e.inputValue,h=e.isMulti,m=N(d),v={};if(o&&(d!==o.value||c!==o.options||p!==o.menuIsOpen||f!==o.inputValue)){var g,b=p?e5(e3(e,m)):[],y=i?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,m):null;v={selectValue:m,focusedOption:(g=t.focusedOption)&&b.indexOf(g)>-1?g:b[0],focusedValue:y,clearFocusValueOnUpdate:!1}}var O=null!=r&&e!==o?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},x=u,C=s&&l;return s&&!C&&(x={value:(n=m[0]||null,h?m:n),options:m,action:"initial-input-focus"},C=!l),(null==u?void 0:u.action)==="initial-input-focus"&&(x=null),(0,a.Z)((0,a.Z)((0,a.Z)({},v),O),{},{prevProps:e,ariaSelection:x,prevWasFocused:C})}}]),n}(c.Component);tr.defaultProps=e6,n(2107);var ta=(0,c.forwardRef)(function(e,t){var n,o,i,r,u,f,h,m,v,g,b,y,O,x,C,Z,w,I,S,V,E,M,R,L,k,D,P,F=(n=e.defaultInputValue,o=e.defaultMenuIsOpen,i=e.defaultValue,r=e.inputValue,u=e.menuIsOpen,f=e.onChange,h=e.onInputChange,m=e.onMenuClose,v=e.onMenuOpen,g=e.value,b=(0,l.Z)(e,d),O=(y=s((0,c.useState)(void 0!==r?r:void 0===n?"":n),2))[0],x=y[1],Z=(C=s((0,c.useState)(void 0!==u?u:void 0!==o&&o),2))[0],w=C[1],S=(I=s((0,c.useState)(void 0!==g?g:void 0===i?null:i),2))[0],V=I[1],E=(0,c.useCallback)(function(e,t){"function"==typeof f&&f(e,t),V(e)},[f]),M=(0,c.useCallback)(function(e,t){var n;"function"==typeof h&&(n=h(e,t)),x(void 0!==n?n:e)},[h]),R=(0,c.useCallback)(function(){"function"==typeof v&&v(),w(!0)},[v]),L=(0,c.useCallback)(function(){"function"==typeof m&&m(),w(!1)},[m]),k=void 0!==r?r:O,D=void 0!==u?u:Z,P=void 0!==g?g:S,(0,a.Z)((0,a.Z)({},b),{},{inputValue:k,menuIsOpen:D,onChange:E,onInputChange:M,onMenuClose:L,onMenuOpen:R,value:P}));return c.createElement(tr,(0,p.Z)({ref:t},F))})},926:function(e,t,n){"use strict";function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}n.d(t,{Z:function(){return o}})},9249:function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return o}})},87371:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(32802);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,o.Z)(i.key),i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4309:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var o=n(95058),i=n(70352),r=n(86522),a=n(80753);function u(e){var t=(0,i.Z)();return function(){var n,i=(0,o.Z)(e);return n=t?Reflect.construct(i,arguments,(0,o.Z)(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,a.Z)(e)}(this,n)}}},45754:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(88960);function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,o.Z)(e,t)}},59740:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(31461);function i(e,t){if(null==e)return{};var n,i,r=(0,o.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}},51171:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var o=n(926),i=n(59147);function r(e){return function(e){if(Array.isArray(e))return(0,o.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},59147:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var o=n(926);function i(e,t){if(e){if("string"==typeof e)return(0,o.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,o.Z)(e,t)}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[764],{5726:function(e,l,t){t.d(l,{F:function(){return V}});var r=t(52322),n=t(33760),a=t(97729),s=t.n(a),i=t(2784),c=t(23335),o=t(30988),d=t(77507),u=t(28948),x=t(5632),h=t(56580),p=t(75289),j=t(93216),m=t(88932),g=t(93188),f=t(91133);async function v(e){let{id:l,label:t,repeatable:r,format:n,onSuccess:a}=e,s=d.$[n],i=(0,j.Ue)({id:l,label:t,repeatable:r,format:n});try{let{errors:e}=await (0,g.KA)(i);if(e.length>0)throw e;g.Xe.track({event:"custom-type:created",id:i.id,name:t,format:n,type:r?"repeatable":"single",origin:"table"}),await a(i),m.Am.success((0,f.GX)({message:"".concat(s.name({start:!0,plural:!1})," saved successfully at "),path:"./customtypes/".concat(i.id,"/index.json")}))}catch(l){let e="Internal Error: ".concat(s.name({start:!0,plural:!1})," not saved");console.error(e,l),m.Am.error(e)}}var b=t(63447),y=t(80546),C=t(1490),S=t(17186),w=t(99510),k=t(40572),I=t(41067),R=t(28801),z=t(63397);let L=e=>{let{selected:l,...t}=e;return(0,r.jsx)(p.kC,{sx:{p:"24px",mb:3,alignItems:"top",cursor:"pointer",borderRadius:"6px",backgroundColor:"grayLight",boxShadow:l?e=>{var l;return"0 0 0 2px ".concat(String(null===(l=e.colors)||void 0===l?void 0:l.primary))}:"none","&:hover":{boxShadow:e=>{var l;return"0 0 0 2px ".concat(String(null===(l=e.colors)||void 0===l?void 0:l.primary))}}},...t})},T=e=>{let{format:l}=e,[t,,n]=(0,z.U$)("repeatable"),a=d.$[l];return(0,r.jsxs)(p.xu,{mb:2,children:[(0,r.jsxs)(L,{selected:t.value,onClick:()=>n.setValue(!0),children:[(0,r.jsx)(p.Y8,{checked:t.value,onChange:()=>{},"data-testid":"repeatable-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Reusable type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintRepeatable})]})]}),(0,r.jsxs)(L,{selected:!t.value,onClick:()=>n.setValue(!1),children:[(0,r.jsx)(p.Y8,{checked:!t.value,onChange:()=>{},"data-testid":"single-type-radio-btn"}),(0,r.jsxs)(p.xu,{sx:{marginLeft:2},children:["Single type",(0,r.jsx)(p.xu,{as:"p",sx:{fontSize:"12px",color:"textClear",mt:1},children:a.hintSingle})]})]})]})},_=e=>{let{format:l,isCreating:t,isOpen:n,origin:a="table",onCreateChange:s,onOpenChange:c}=e,{createCustomTypeSuccess:o}=(0,I.Z)(),{customTypeIds:u,customTypeLabels:m}=(0,h.v9)(e=>({customTypeIds:(0,k.W6)(e),customTypeLabels:(0,k.YS)(e)})),g=d.$[l],[f,z]=(0,i.useState)(!0),{syncChanges:L}=(0,y.g)(),_=(0,x.useRouter)(),N=async e=>{let{id:t,label:r,repeatable:n}=e;s(!0),await v({format:l,id:t,label:r,origin:a,repeatable:n,onSuccess:async e=>{o(e);let l=(0,j.y6)(e),r=b.cd[l];z(!0),await _.push({pathname:r.getBuilderPagePathname(t)}),L()}}),s(!1),c(!1)},A=(e,l,t)=>{t(f?{...l,label:e.target.value,id:(0,w.lV)(e.target.value)}:{...l,label:e.target.value})},D=(e,l)=>{l("id",e.target.value),z(!1)};return(0,r.jsx)(C.Z,{testId:"create-ct-modal",isOpen:n,widthInPx:"530px",formId:"create-custom-type",buttonLabel:"Create",close:()=>{c(!1),z(!0)},onSubmit:e=>{N(e)},isLoading:t,initialValues:{repeatable:!0,id:"",label:""},validate:e=>{let{id:l,label:t}=e,r={};return t&&t.length||(r.label="Cannot be empty."),!r.label&&m.includes(t)&&(r.label="".concat(g.name({start:!0,plural:!1})," name is already taken.")),l&&l.length||(r.id="ID cannot be empty."),r.id||!l||S.xo.exec(l)||(r.id="Invalid id: No special characters allowed."),!r.id&&l&&u.map(e=>e.toLowerCase()).includes(l)&&(r.id='ID "'.concat(l,'" exists already.')),Object.keys(r).length>0?r:void 0},content:{title:"Create a new ".concat(g.name({start:!1,plural:!1}))},children:e=>{let{errors:t,setValues:n,setFieldValue:a,values:s,touched:i}=e;return(0,r.jsxs)(p.xu,{children:[(0,r.jsx)(T,{format:l}),(0,r.jsx)(R.W,{name:"label",label:"".concat(g.name({start:!0,plural:!1})," Name"),testId:"ct-name-input",placeholder:"A display name for the ".concat(g.name({start:!1,plural:!1})),error:i.label?t.label:void 0,onChange:e=>A(e,s,n)}),(0,r.jsx)(R.W,{name:"id",testId:"ct-id-input",label:"".concat(g.name({start:!0,plural:!1})," ID"),placeholder:g.inputPlaceholder,error:i.id?t.id:void 0,onChange:e=>D(e,a)})]})}})};var N=t(28574);let A=e=>(0,r.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf"}),(0,r.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc"}),(0,r.jsx)("path",{d:"m10.0912 8c-2.8118 0-5.0912 2.2794-5.0912 5.0912s2.2794 5.0912 5.0912 5.0912c1.8851 0 3.5303-1.0247 4.4098-2.5452.1553-.2684.2868-.5523.3916-.8489.092-.2604-.0444-.5461-.3048-.6381-.2603-.092-.546.0445-.638.3048-.0841.238-.1897.4659-.3144.6815-.7081 1.2241-2.0305 2.0459-3.5442 2.0459-2.2595 0-4.0912-1.8317-4.0912-4.0912s1.8317-4.0912 4.0912-4.0912c1.3566 0 2.5595.66 3.3043 1.6782h-1.7739c-.2761 0-.5.2239-.5.5 0 .2762.2239.5.5.5h2.6782c.2762 0 .5-.2238.5-.5v-2.6782c0-.2761-.2238-.5-.5-.5-.2761 0-.5.2239-.5.5v1.1032c-.9281-.9865-2.2462-1.6032-3.7086-1.6032z",fill:"#fff"})]}),D=e=>(0,r.jsxs)("svg",{viewBox:"0 0 20 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,r.jsx)("path",{d:"m2 24h16c1.1046 0 2-.8954 2-2v-17l-5-5h-13c-1.10457 0-2 .89543-2 2v20c0 1.1046.89543 2 2 2z",fill:"#6e56cf",fillRule:"nonzero"}),(0,r.jsx)("path",{d:"m17 5h3l-5-5v3c0 1.10457.8954 2 2 2z",fill:"#9e8cfc",fillRule:"nonzero"}),(0,r.jsx)("path",{d:"m8.0869 10.6818.5758-2.3031c.0556-.2226.2556-.3787.485-.3787.3253 0 .564.3057.4851.6213l-.5151 2.0605h2.6055l.5758-2.3031c.0557-.2226.2557-.3787.4851-.3787.3253 0 .564.3057.4851.6213l-.5152 2.0605h2.246c.2761 0 .5.2239.5.5 0 .2762-.2239.5-.5.5h-2.496l-.6591 2.6364h2.1551c.2761 0 .5.2238.5.5 0 .2761-.2239.5-.5.5h-2.4051l-.5757 2.3031c-.0557.2226-.2557.3787-.4851.3787-.3253 0-.564-.3057-.4851-.6213l.5152-2.0605h-2.6056l-.5758 2.3031c-.0556.2226-.2556.3787-.4851.3787-.3253 0-.5639-.3057-.485-.6213l.5151-2.0605h-1.9278c-.2761 0-.5-.2239-.5-.5 0-.2762.2239-.5.5-.5h2.1778l.6591-2.6364h-1.8369c-.2761 0-.5-.2238-.5-.5 0-.2761.2239-.5.5-.5zm2.7273 3.6364.659-2.6364h-2.6055l-.6591 2.6364z",fill:"#fff"})]});var E=t(64910),P=t(18566),$=t(95799),O=t(1744),W=t(70647);async function B(e){let{errors:l,models:t}=await W.j.customTypes.readAllCustomTypes({format:e});if(l.length>0)throw l;return t.map(e=>{let{model:l}=e;return l})}let M=e=>{let{format:l,isCreatingCustomType:t,openCreateCustomTypeModal:a}=e,s=(0,x.useRouter)(),{customTypes:c,updateCustomTypes:o}=function(e){let l=(0,i.useCallback)(l=>(0,P.VA)(B,[e],l),[e]);return{customTypes:(0,P.QT)(B,[e]),updateCustomTypes:l}}(l),u=c.sort((e,l)=>e.id.localeCompare(l.id)),p=b.cd[l],j=d.$[l];return(!function(e,l,t){let{storeCustomTypes:r}=(0,h.v9)(e=>({storeCustomTypes:(0,k.Ch)(e).filter(O.TG)}));(0,i.useEffect)(()=>{let n=r.filter(e=>{let{local:t}=e;return t.format===l});(n.length!==e.length||n.some(l=>{let t=e.find(e=>e.id===l.local.id);return!t||JSON.stringify($.Dc.fromSM(l.local))!==JSON.stringify(t)}))&&t(n.map(e=>{let{local:l}=e;return $.Dc.fromSM(l)}))},[l,t,e,r])}(c,l,o),0===u.length)?(0,r.jsxs)(N.R$,{"data-testid":"blank-slate",style:{alignSelf:"center",marginTop:n.rS.space[72]},children:[(0,r.jsx)(N.u2,{children:(0,r.jsx)(n.Ee,{src:p.blankSlateImage,sizing:"cover"})}),(0,r.jsxs)(N.T9,{children:[(0,r.jsx)(N._T,{children:j.name({start:!0,plural:!0})}),(0,r.jsx)(N.nf,{children:j.blankSlateDescription}),(0,r.jsx)(N.Qj,{children:(0,r.jsx)(n.zx,{onClick:a,loading:t,children:"Create"})})]})]}):(0,r.jsx)("div",{children:(0,r.jsxs)(n.iA,{columnLayout:"28px 1fr 1fr 1fr 42px",children:[(0,r.jsx)(n.ss,{children:(0,r.jsxs)(n.SC,{children:[(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.I5,{name:"notes",size:"medium"})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{color:"grey11",variant:"small",children:"Label"})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{color:"grey11",variant:"small",children:"API ID"})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{color:"grey11",variant:"small",children:"Limit"})}),(0,r.jsx)(n.pj,{})]})}),(0,r.jsx)(n.RM,{children:u.map(e=>{let{repeatable:t,label:a,id:i}=e;return(0,r.jsxs)(n.SC,{onClick:()=>{s.push(b.cd[l].getBuilderPagePathname(i))},children:[(0,r.jsx)(n.pj,{children:t?(0,r.jsx)(A,{width:n.rS.space[20]}):(0,r.jsx)(D,{width:n.rS.space[20]})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{variant:"bold",noWrap:!0,children:a})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{color:"grey11",noWrap:!0,children:i})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(n.xv,{color:"grey11",noWrap:!0,children:t?"Reusable":"Single"})}),(0,r.jsx)(n.pj,{children:(0,r.jsx)(E._,{isChangesLocal:!1,format:l,customType:e})})]},i)})})]})})},V=e=>{let{format:l}=e,t=d.$[l],[a,x]=(0,i.useState)(!1),[h,p]=(0,i.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsxs)("title",{children:[t.name({start:!0,plural:!0})," - Slice Machine"]})}),(0,r.jsx)(o.S,{renderError:()=>(0,r.jsx)(u.LN,{children:(0,r.jsx)(u.RN,{children:(0,r.jsx)(n.xu,{alignItems:"center",justifyContent:"center",children:(0,r.jsx)(n.Iq,{title:"Request failed",description:"An error occurred while fetching your ".concat(t.name({start:!1,plural:!0}),".")})})})}),children:(0,r.jsx)(i.Suspense,{fallback:(0,r.jsxs)(u.LN,{children:[(0,r.jsxs)(u.wd,{children:[(0,r.jsx)(u.Cx,{children:(0,r.jsx)(c.g,{children:t.name({start:!0,plural:!0})})}),(0,r.jsx)(u.K2,{children:(0,r.jsx)(n.zx,{disabled:!0,startIcon:"add",children:"Create"})})]}),(0,r.jsx)(u.RN,{children:(0,r.jsx)(n._3,{})})]}),children:(0,r.jsxs)(u.LN,{children:[(0,r.jsxs)(u.wd,{children:[(0,r.jsx)(u.Cx,{children:(0,r.jsx)(c.g,{children:t.name({start:!0,plural:!0})})}),(0,r.jsx)(u.K2,{children:(0,r.jsx)(n.zx,{"data-testid":"create-ct",loading:a,onClick:()=>{p(!0)},startIcon:"add",children:"Create"})})]}),(0,r.jsx)(u.RN,{children:(0,r.jsxs)(n.xu,{flexDirection:"column",children:[(0,r.jsx)(M,{format:l,isCreatingCustomType:a,openCreateCustomTypeModal:()=>{p(!0)}}),(0,r.jsx)(_,{format:l,isCreating:a,isOpen:h,onCreateChange:x,onOpenChange:p})]})})]})})})]})}},76805:function(e,l,t){t.d(l,{Z:function(){return s}});var r=t(52322);t(2784);var n=t(75289);let a=e=>{let{bg:l,background:t,sx:a,withRadius:s,radius:i,children:c}=e;return(0,r.jsx)(n.xu,{sx:{p:4,bg:l||t,...s?{borderBottomLeftRadius:i,borderBottomRightRadius:i}:null,...a},children:c})};var s=e=>{let{Header:l=null,SubHeader:t=null,Body:s=null,Footer:i=null,borderFooter:c=!1,radius:o="6px",bodySx:d={},footerSx:u={},sx:x=null,bg:h,background:p,children:j,...m}=e;return(0,r.jsxs)(n.Zb,{sx:{border:e=>{var l;return"1px solid ".concat(String(null===(l=e.colors)||void 0===l?void 0:l.borders))},borderRadius:o,...x},...m,children:[l?(0,r.jsx)(l,{radius:o}):null,t?(0,r.jsx)(t,{radius:o}):null,(0,r.jsxs)(a,{bg:h,background:p,sx:d,withRadius:!i,children:[s?(0,r.jsx)(s,{}):null,j||null]}),i?(0,r.jsx)(a,{bg:h,background:p,sx:{...c?{borderTop:e=>{let{colors:l}=e;return"1px solid ".concat(String(null==l?void 0:l.borders))}}:null,...u},radius:o,withRadius:!0,children:"object"==typeof i?i:(0,r.jsx)(i,{})}):null]})}},17186:function(e,l,t){t.d(l,{Sn:function(){return i},lS:function(){return r},nG:function(){return n},pq:function(){return c},rd:function(){return s},xo:function(){return a}});let r=["components"],n=["png","jpg","jpeg"],a=/^[A-Za-z0-9]+(?:_[A-Za-z0-9]+)*$/,s="placeholders/What_are_Slices_mrvome",i="SM_HELP_VIDEOS/mock_data",c="slice-machine-simulator"}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[849],{21985:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/changes",function(){return n(79566)}])},28574:function(e,t,n){"use strict";n.d(t,{R$:function(){return a},Qj:function(){return h},T9:function(){return d},nf:function(){return x},u2:function(){return c},_T:function(){return u}});var i=n(52322),s=n(33760),r=n(6277),l=n(43217),o=n.n(l);let a=e=>{let{backgroundImage:t,style:n,...s}=e,l=void 0!==t;return(0,i.jsx)("article",{...s,className:(0,r.W)(o().root,{[o().withBackground]:l}),style:{backgroundImage:l?"url(".concat(t,")"):void 0,...n}})},c=e=>(0,i.jsx)("div",{...e,className:o().image}),d=e=>(0,i.jsx)("div",{...e,className:o().content}),u=e=>(0,i.jsx)(s.xv,{...e,className:o().title}),x=e=>(0,i.jsx)(s.xv,{...e,className:o().desc,color:"grey11"}),h=e=>(0,i.jsx)("div",{...e,className:o().actions,color:"grey"})},68587:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});let i={GitHub:"gitHub"};var s=n(52322),r=n(70647);let l={gitHub:{connect:async()=>await o("gitHub"),Icon:e=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{d:"M12 4C7.57486 4 4 7.57486 4 12C4 15.5246 6.30057 18.5257 9.47429 19.6C9.87429 19.6754 10.0251 19.4251 10.0251 19.2251V17.8754C7.8 18.3497 7.32457 16.8 7.32457 16.8C6.94971 15.8743 6.42514 15.6251 6.42514 15.6251C5.70057 15.1246 6.47543 15.1497 6.47543 15.1497C7.27543 15.2 7.69943 15.9749 7.69943 15.9749C8.42514 17.2 9.57486 16.8503 10.0251 16.6491C10.1006 16.1246 10.2994 15.7749 10.5246 15.5749C8.74971 15.3749 6.87543 14.6754 6.87543 11.6251C6.87543 10.7497 7.17486 10.0503 7.69943 9.47543C7.62514 9.27543 7.34971 8.45029 7.77486 7.34971C7.77486 7.34971 8.44914 7.12457 9.97486 8.17486C10.6266 7.99627 11.2991 7.90405 11.9749 7.90057C12.6491 7.90057 13.3497 8 13.9749 8.17486C15.5006 7.14971 16.1749 7.34971 16.1749 7.34971C16.6 8.45029 16.3246 9.27543 16.2503 9.47543C16.776 10.024 17.0754 10.7497 17.0754 11.624C17.0754 14.6994 15.2 15.3749 13.4251 15.5749C13.6994 15.8251 13.9749 16.2994 13.9749 17.0491V19.2503C13.9749 19.4754 14.1246 19.7246 14.5246 19.6251C17.7006 18.5246 20 15.5246 20 12C20 7.57486 16.4251 4 12 4Z",fill:"currentColor"})}),name:"GitHub",supported:a("gitHub")},bitbucket:{connect:async()=>await o("bitbucket"),Icon:e=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77596 5.47599C4.84147 5.44648 4.91265 5.43167 4.9845 5.4326L19.3525 5.43506C19.4243 5.43413 19.4955 5.44894 19.561 5.47845C19.6265 5.50796 19.6848 5.55146 19.7317 5.60588C19.7786 5.6603 19.8131 5.72433 19.8326 5.79348C19.8521 5.86262 19.8563 5.93521 19.8448 6.00614L19.1802 10.0751H9.71803L10.5722 14.6018H11.1162L11.1162 14.6018H13.7846L14.56 10.0751H19.1803L17.7575 18.8357C17.7387 18.9522 17.6786 19.058 17.5882 19.1339C17.4979 19.2098 17.3832 19.2507 17.2652 19.2492H7.23692C7.2134 19.249 7.19001 19.2476 7.16682 19.2449C7.03392 19.2298 6.90803 19.175 6.80603 19.0868C6.68704 18.9851 6.60772 18.8448 6.58203 18.6904L4.49219 6.00367C4.48069 5.93275 4.48485 5.86016 4.50438 5.79102C4.52392 5.72187 4.55835 5.65784 4.60527 5.60342C4.65218 5.54899 4.71044 5.5055 4.77596 5.47599Z",fill:"currentColor"})}),name:"Bitbucket",supported:a("bitbucket")},gitLab:{connect:async()=>await o("gitLab"),Icon:e=>(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7881 10.5954L16.5431 5.20756C16.6328 4.93081 17.0594 4.93081 17.1492 5.20756L18.9076 10.5954H14.7881ZM6.6192 5.20756L4.86353 10.5954H8.97968L7.22468 5.20756C7.1349 4.93081 6.70898 4.93081 6.6192 5.20756ZM4.0299 13.2981L4.86352 10.5954H4.86353H8.979H14.7881H18.9076L19.7392 13.2981C19.7796 13.4207 19.7802 13.553 19.7408 13.676C19.7014 13.799 19.624 13.9063 19.5198 13.9826L11.893 19.5257L11.8879 19.5319L11.8923 19.5378L11.8865 19.5336L11.8835 19.5371L11.8852 19.5326L4.24927 13.9826C4.0299 13.8246 3.95092 13.5458 4.0299 13.2981Z",fill:"currentColor"})}),name:"GitLab",supported:a("gitLab")}};async function o(e){if(!a(e))throw Error("Not implemented.");let t=await r.j.git.getProviderAppInstallURL({provider:e});window.open(t,"git-provider-app-installation")}function a(e){return!!Object.values(i).includes(e)}},6407:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var i=n(18566),s=n(29806),r=n(70647);function l(){let[e]=(0,s.f)();return{linkedGitRepos:(0,i.QT)(o,[e.repositoryName]),linkRepo:async t=>{await r.j.git.linkRepo({prismic:{domain:e.repositoryName},git:t}),await (0,i.gw)(o,[e.repositoryName])},unlinkRepo:async t=>{await r.j.git.unlinkRepo({prismic:{domain:e.repositoryName},git:t}),await (0,i.gw)(o,[e.repositoryName])}}}async function o(e){return await r.j.git.fetchLinkedRepos({prismic:{domain:e}})}},29806:function(e,t,n){"use strict";n.d(t,{f:function(){return r}});var i=n(18566),s=n(70647);function r(){return[(0,i.QT)(l,[]),async e=>{await s.j.project.writeSliceMachineConfig({config:e}),(0,i.VA)(l,[],e)}]}async function l(){return s.j.project.getSliceMachineConfig()}},47861:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});var i=n(52322),s=n(2784),r=n(75289);let l=(e,t)=>e?"".concat(e,"-").concat(t):"",o=e=>{switch(e){case"white":case"secondaryMedium":case"secondarySmall":case"secondary":return"#1A1523";default:return"grey01"}},a=(0,s.forwardRef)((e,t)=>{let{label:n,Icon:s,type:a,form:c,isLoading:d=!1,disabled:u=!1,onClick:x,sx:h={},iconSize:m=16,iconFill:p,variant:g="primary",...j}=e;return(0,i.jsx)(r.zx,{ref:t,sx:{...h,display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",...d?{cursor:"wait !important"}:{}},type:a,form:c,disabled:u||d,onClick:d?void 0:x,variant:g,...j,children:d?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r.$j,{size:m,color:o(g),"data-testid":l(j["data-testid"],"spinner")}),s&&n]}):(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsx)(s,{size:m,fill:p,"data-testid":l(j["data-testid"],"icon")}),n]})})})},42849:function(e,t,n){"use strict";var i=n(52322),s=n(75289);t.Z=function(e){let{elems:t,renderElem:n,defineElementKey:r,gridTemplateMinPx:l="320px",gridGap:o="16px",sx:a}=e;return(0,i.jsx)(s.xu,{as:"section",sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(".concat(l,", 1fr))"),gridGap:o,pt:2,...a},children:t.map((e,t)=>e?(0,i.jsx)("span",{children:n(e,t)},"".concat(r(e),"-").concat(t+1)):null)})}},79566:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ep}});var i=n(52322),s=n(33760),r=n(97729),l=n.n(r),o=n(5632),a=n(2784),c=n(88932),d=n(65077),u=n(93188),x=n(23335),h=n(28574);function m(e){let{isPostPush:t,documentsListEndpoint:n}=e,r=t?g:p;return(0,i.jsxs)(h.R$,{style:{alignSelf:"center",marginTop:s.rS.space[72]},children:[(0,i.jsx)(h.u2,{children:(0,i.jsx)(s.Ee,{src:r.img,sizing:"cover"})}),(0,i.jsxs)(h.T9,{children:[(0,i.jsx)(h._T,{children:r.title}),(0,i.jsx)(h.nf,{children:r.description}),t&&(0,i.jsx)(h.Qj,{children:(0,i.jsx)(s.zx,{onClick:()=>{u.Xe.track({event:"post-push:empty-state-cta-clicked"}),window.open(n,"_blank")},size:"large",children:"Create content in the Page Builder"})})]})]})}let p={img:"/blank-slate-changes-uptodate.png",title:"Everything is up-to-date",description:"No changes are staged. Saved updates will appear here, ready to be pushed to the Page Builder."},g={img:"/blank-slate-push-success.png",title:"Success! Your changes have been pushed to the Page Builder.",description:"Add content to your website to bring it to life!"};var j=n(30988),f=n(68587),v=n(52677),y=n(6407);let b=e=>(0,i.jsx)(j.S,{renderError:S,children:(0,i.jsx)(a.Suspense,{fallback:(0,i.jsx)(_,{}),children:(0,i.jsx)(C,{...e})})}),C=e=>(0,v.M)().eligible?(0,i.jsx)(w,{...e}):(0,i.jsx)(k,{...e}),w=e=>{let{linkedGitRepos:t}=(0,y.G)();if(!(t.length>0))return(0,i.jsx)(k,{...e});{let e=f.Q[t[0].provider];return(0,i.jsx)(s.u,{content:"This project uses the Git workflow. Update Prismic by pushing your changes to ".concat(e.name,"."),side:"bottom",children:(0,i.jsx)(k,{disabled:!0})})}},k=(0,a.forwardRef)((e,t)=>(0,i.jsx)(s.zx,{...e,ref:t,startIcon:"upload",children:"Push"}));function S(){return(0,i.jsx)(s.u,{content:"An error occurred while fetching the list of connected Git repositories.",side:"bottom",children:(0,i.jsx)(k,{disabled:!0})})}let _=()=>(0,i.jsx)(s.Od,{height:32,width:71.32});var D=n(6529),T=n(80546),L=n(65821),R=n(52762),B=n(85647),N=n(99579),O=n(28948),I=n(58161),F=n(41067);let H=e=>{let{authStatus:t}=e,{openLoginModal:n}=(0,F.Z)();return(0,i.jsxs)(s.xu,{flexDirection:"column",height:"100%",alignItems:"center",justifyContent:"center",gap:8,children:[t===I.t.FORBIDDEN?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.xv,{variant:"h3",align:"center",children:"It seems like you are logged out"}),(0,i.jsx)(s.xv,{align:"center",children:"Log in to connect to your repository."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.xv,{variant:"h3",align:"center",children:"It seems like you don't have access to this repository"}),(0,i.jsx)(s.xv,{align:"center",children:"Check that the repository name is correct, then contact your repository administrator."})]}),(0,i.jsxs)(s.xv,{align:"center",children:["If that doesn't work, it's possible that Slice Machine is having trouble accessing Prismic's servers."," ",(0,i.jsx)(s.xv,{href:"https://community.prismic.io/",children:"Contact our support team"}),"."]}),t===I.t.FORBIDDEN&&(0,i.jsx)(s.zx,{onClick:()=>n(),children:"Log in to Prismic"})]})};var E=n(91914),z=n(75289);let P=()=>(0,i.jsx)(z.kC,{sx:{justifyContent:"center",alignItems:"center",flex:1},children:(0,i.jsxs)(z.kC,{sx:{flexDirection:"column",alignItems:"center",transform:"translateY(-50%)"},children:[(0,i.jsx)(E.wQ1,{size:48}),(0,i.jsx)(z.xv,{sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",mb:"8px",mt:"2px",textAlign:"center"},children:"No internet connection"}),(0,i.jsx)(z.xv,{sx:{fontSize:"13px",lineHeight:"24px",textAlign:"center"},children:"Connect to the internet to sync your changes."})]})});var A=n(951),Z=n(3181),G=n(53850),M=n(76787);let W=e=>{let{children:t}=e;return(0,i.jsx)(z.kC,{sx:{alignItems:"center",justifyContent:"space-between",mt:"8px",bg:"grey02",borderRadius:4,padding:"12px 16px",width:"100%"},children:t})};var X=n(39097),U=n.n(X),Q=n(51159),Y=n(63447),V=n(1744);let J=e=>{let{ct:t,status:n,authStatus:s,isOnline:r}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.xu,{as:"td",style:{width:"40%"},children:(0,i.jsx)(z.xv,{sx:{fontWeight:500},children:t.label})}),(0,i.jsx)(z.xu,{as:"td",style:{width:"40%"},children:t.id}),(0,i.jsx)(z.xu,{as:"td",style:{width:"20%"},children:(0,i.jsx)(Q.O,{authStatus:s,isOnline:r,modelStatus:n,modelType:"CustomType"})})]})},q=e=>{let{customTypes:t,modelsStatuses:n,authStatus:s,isOnline:r}=e;return(0,i.jsxs)(z.xu,{as:"table","data-legacy-component":!0,children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{className:"transparent small",children:[(0,i.jsx)(z.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"Name"}),(0,i.jsx)(z.xu,{as:"th",sx:{width:"40%",fontWeight:600},children:"API ID"}),(0,i.jsx)(z.xu,{as:"th",sx:{width:"20%",fontWeight:600},children:"Status"})]})}),(0,i.jsx)("tbody",{children:t.map(e=>(0,V.TG)(e)?(0,i.jsx)(U(),{passHref:!0,href:Y.cd[e.local.format].getBuilderPagePathname(e.local.id),legacyBehavior:!0,children:(0,i.jsx)("tr",{tabIndex:0,"data-testid":"custom-type-".concat(e.local.id),children:(0,i.jsx)(J,{ct:e.local,status:n.customTypes[e.local.id],authStatus:s,isOnline:r},e.local.id)})},e.local.id):(0,i.jsx)("tr",{tabIndex:0,className:"disabled","data-testid":"custom-type-".concat(e.remote.id),children:(0,i.jsx)(J,{ct:e.remote,status:n.customTypes[e.remote.id],authStatus:s,isOnline:r},e.remote.id)},e.remote.id))})]})};var K=n(42849),$=n(39283),ee=n(5274),et=n(53085);function en(){let e=(0,et.L)("slicemachine-dev-collaboration"),[t,n]=(0,a.useState)(!1),r=null==e?void 0:e.payload;return((0,a.useEffect)(()=>{(null==e?void 0:e.value)==="on"&&void 0!==r&&u.Xe.track({event:"dev-collab:workflow-stub-displayed"})},[e,r]),(null==e?void 0:e.value)!=="on"||void 0===r)?null:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(s.xu,{alignItems:"flex-start",border:{bottom:!0,left:!0,right:!0,top:!0},borderRadius:6,borderStyle:"dashed",flexDirection:"column",flexShrink:0,gap:8,padding:16,width:320,children:[(0,i.jsxs)(s.xu,{flexDirection:"column",gap:2,children:[(0,i.jsx)(s.xv,{variant:"smallBold",children:r.cardTitle}),(0,i.jsx)(s.xv,{color:"grey11",variant:"small",children:r.cardDescription})]}),(0,i.jsx)(s.zx,{color:"grey",onClick:()=>{u.Xe.track({event:"dev-collab:set-up-workflow-opened"}),n(!0)},children:r.cardButtonLabel})]}),(0,i.jsxs)(s.Vq,{onOpenChange:e=>{e||n(!1)},open:t,size:{height:"auto",width:448},children:[(0,i.jsx)(s.fK,{title:r.dialogTitle}),(0,i.jsx)(s.cZ,{children:(0,i.jsxs)(s.xu,{flexDirection:"column",children:[(0,i.jsx)(s.xu,{flexDirection:"column",padding:16,children:(0,i.jsx)(s.xv,{children:r.dialogDescription})}),(0,i.jsxs)(s.kX,{children:[(0,i.jsx)(s.PO,{size:"medium"}),(0,i.jsx)(s._d,{size:"medium",onClick:()=>{u.Xe.track({event:"dev-collab:join-beta-clicked"}),window.open(r.dialogButtonLink,"_blank"),n(!1)},children:r.dialogButtonLabel})]})]})})]})]})}let ei=e=>{let{unSyncedCustomTypes:t,unSyncedSlices:n,modelsStatuses:r,authStatus:l,isOnline:o}=e,{modalPayload:c,onOpenModal:d}=(0,M.H)(),{sliceFilterFn:u,defaultVariationSelector:x}=c,h=n.filter(e=>r.slices[e.model.id]!==ee.GJ.Deleted);return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(s.xu,{gap:16,alignItems:"flex-start",children:[(0,i.jsxs)(s.xu,{flexDirection:"column",flexGrow:1,children:[t.length>0&&(0,i.jsxs)(s.xu,{flexDirection:"column",children:[(0,i.jsx)(W,{children:(0,i.jsxs)(s.xu,{children:[(0,i.jsx)(s.xv,{variant:"h5",children:"Types"}),(0,i.jsx)(s.xv,{variant:"h5",sx:{marginLeft:8},children:t.length})]})}),(0,i.jsx)(q,{customTypes:t,modelsStatuses:r,authStatus:l,isOnline:o})]}),n.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.xu,{padding:{bottom:8},children:(0,i.jsxs)(W,{children:[(0,i.jsxs)(s.xu,{children:[(0,i.jsx)(s.xv,{variant:"h5",children:"Slices"}),(0,i.jsx)(s.xv,{variant:"h5",sx:{marginLeft:8},children:n.length})]}),(0,i.jsxs)(s.xu,{children:[n.some(e=>(0,Z.cx)(e)>0&&r.slices[e.model.id]!==ee.GJ.Deleted)&&(0,i.jsxs)(s.xv,{color:"amber11",sx:{marginRight:8,alignSelf:"center"},children:[(0,i.jsx)(A.sQg,{size:16,style:{marginRight:"4px",position:"relative",top:"3px"}}),"Missing Screenshots"]}),(0,i.jsxs)(s.zx,{color:"dark",onClick:()=>d({sliceFilterFn:e=>e}),children:[(0,i.jsx)(A.hOO,{style:{color:"#FFF",fontSize:"15px",position:"relative",top:"3px",marginRight:"4px"}})," ","Update all screenshots"]})]})]})}),(0,i.jsx)(K.Z,{gridGap:"32px 16px",elems:n,gridTemplateMinPx:"305px",defineElementKey:e=>e.model.name,renderElem:e=>{let t=r.slices[e.model.id];return(0,i.jsx)(G.b,{action:{type:"status",authStatus:l,isOnline:o,modelStatus:t},isDeleted:t===ee.GJ.Deleted,mode:"navigation",onUpdateScreenshot:()=>{d({sliceFilterFn:t=>t.filter(t=>t.model.id===e.model.id)})},slice:e,variant:"solid"})}}),(0,i.jsx)($.Z,{slices:u(h),defaultVariationSelector:x})]})]}),(0,i.jsx)(j.S,{children:(0,i.jsx)(a.Suspense,{children:(0,i.jsx)(en,{})})})]})})};var es=n(56580),er=n(47861),el=n(79797),eo=n(76805);let ea=e=>{let{isOpen:t,title:n,footer:s,explanations:r,onClose:l}=e;return(0,i.jsx)(el.Z,{placement:"right",open:t,level:null,onClose:l,width:496,children:(0,i.jsx)(eo.Z,{radius:"0px",bodySx:{bg:"white",padding:24,flex:1,display:"flex",flexDirection:"column",overflow:"scroll"},footerSx:{p:0},sx:{flexDirection:"column",display:"flex",height:"100%",border:"none"},borderFooter:!0,Header:()=>(0,i.jsxs)(z.kC,{sx:{p:"16px",alignItems:"center",justifyContent:"space-between",borderBottom:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.borders))}},children:[(0,i.jsx)(z.kC,{sx:{alignItems:"center"},children:(0,i.jsx)(z.X6,{sx:{fontSize:"14px",fontWeight:"bold",ml:1},children:n})}),(0,i.jsx)(z.x8,{type:"button",onClick:()=>l()})]}),Footer:()=>(0,i.jsx)(z.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center",paddingRight:16,borderTop:e=>{var t;return"1px solid ".concat(String(null===(t=e.colors)||void 0===t?void 0:t.darkBorders))},backgroundColor:"white",padding:20},children:s}),children:r})})};var ec=n(40572);n(77507);let ed=e=>{let{ctName:t,numberOfDocuments:n,link:s,isOverLimit:r=!1}=e;return(0,i.jsxs)(z.Zb,{sx:{mb:12},variant:"drawerCard","data-testid":"AssociatedDocumentsCard-".concat(t),children:[(0,i.jsxs)(z.kC,{sx:{flexDirection:"column"},children:[(0,i.jsx)(z.xv,{children:t}),(0,i.jsxs)(z.xv,{sx:{color:"textClear",fontSize:"12px",lineHeight:"16px"},children:[n," documents"]})]}),(0,i.jsx)(z.rU,{href:s,target:"_blank",variant:"cardSmall",sx:{color:r?"danger":"purple08"},children:"View documents"})]})},eu=e=>{let{pushChanges:t,modalData:n,onClose:s}=e,{remoteOnlyCustomTypes:r}=(0,es.v9)(e=>({remoteOnlyCustomTypes:(0,ec.Ch)(e).filter(V.yp)}));if((null==n?void 0:n.type)!=="HARD")return null;let l=n.details.customTypes.map(e=>{var t;let n=r.find(t=>(0,V.n5)(t)===e.id);return void 0===n?null:(0,i.jsx)(ed,{isOverLimit:!0,ctName:null!==(t=n.remote.label)&&void 0!==t?t:n.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,i.jsx)(ea,{isOpen:"HARD"===n.type,title:"Manual action required",onClose:s,footer:(0,i.jsx)(er.z,{label:"Try again",variant:"primary",onClick:()=>{t(!1)},sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}}),explanations:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(z.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:["Your type",n.details.customTypes.length>1&&"s"," cannot be deleted."]}),(0,i.jsxs)(z.xv,{sx:{mb:24},children:[n.details.customTypes.length>1?"These types have":"This type has"," ","too many associated Documents. Archive and delete these Documents manually and then try deleting the types again."]}),l]})})},ex=e=>{let{onToggle:t,isConfirmed:n,sx:s}=e;return(0,i.jsxs)(z.kC,{sx:{borderRadius:6,flexDirection:"column",backgroundColor:"grey03",padding:12,width:"100%",...s},children:[(0,i.jsx)(z.xv,{sx:{fontWeight:"bold",mb:2},children:"Are you sure to proceed?"}),(0,i.jsxs)(z.__,{sx:{mt:"4px",py:1},variant:"large",children:[(0,i.jsx)(z.XZ,{defaultChecked:n,onChange:t,variant:"forms.checkbox.dark"}),"Delete these Documents"]})]})},eh=e=>{let{pushChanges:t,modalData:n,onClose:s}=e,[r,l]=(0,a.useState)(!1),{remoteOnlyCustomTypes:o}=(0,es.v9)(e=>({remoteOnlyCustomTypes:(0,ec.Ch)(e).filter(V.yp)}));if((null==n?void 0:n.type)!=="SOFT")return null;let c=n.details.customTypes.map(e=>{var t;let n=o.find(t=>(0,V.n5)(t)===e.id);return void 0===n?null:(0,i.jsx)(ed,{isOverLimit:!0,ctName:null!==(t=n.remote.label)&&void 0!==t?t:n.remote.id,link:e.url,numberOfDocuments:e.numberOfDocuments},e.id)});return(0,i.jsx)(ea,{isOpen:"SOFT"===n.type,title:"Confirm deletion",onClose:s,footer:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ex,{onToggle:()=>{l(!r)},isConfirmed:r,sx:{mb:10}}),(0,i.jsx)(er.z,{label:"Push changes",variant:"primary",onClick:()=>{t(r)},disabled:!r,sx:{fontWeight:"bold",color:"white",borderRadius:6,width:"100%"}})]}),explanations:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(z.xv,{sx:{fontWeight:"bold",mb:1,lineHeight:"24px"},children:"This action will also delete Documents."}),(0,i.jsxs)(z.xv,{sx:{mb:24},children:[n.details.customTypes.length>1?"These types have":"This type has"," ","associated Documents, which will also be deleted. This might create broken links in your repository."]}),c]})})},em=e=>"https://".concat(e,".prismic.io/documents/working");var ep=()=>{let{unSyncedSlices:e,unSyncedCustomTypes:t,changedCustomTypes:n,changedSlices:r,modelsStatuses:h}=(0,L.X)(),p=(0,B.L)(),g=(0,R.n)(),{pushChangesSuccess:j,refreshState:f}=(0,F.Z)(),[v,y]=(0,a.useState)(!1),[C,w]=(0,a.useState)(void 0),{autoSyncStatus:k}=(0,T.g)(),S=(0,o.useRouter)(),[_,E]=(0,a.useState)(!1),[z,A]=(0,a.useState)(!1),{repositoryName:Z}=(0,N.U)(),G=em(Z),M=e.length+t.length;(0,a.useEffect)(()=>{("synced"===k||"failed"===k||"syncing"===k)&&S.push("/")},[k,S]);let W=async e=>{try{y(!0),w(void 0);let t=await (0,D.t)({confirmDeleteDocuments:e,changedCustomTypes:n,changedSlices:r});if(void 0!==t)w(t);else{let e=await (0,u.y0)();f(e),j(),E(!0),A(!0)}}catch(e){console.error("Something went wrong when manually pushing your changes",e),c.Am.error("Something went wrong when pushing your changes. Check your terminal logs.")}y(!1)},X=(0,a.useMemo)(()=>p?g===I.t.UNAUTHORIZED||g===I.t.FORBIDDEN?(0,i.jsx)(H,{authStatus:g}):0===M?(0,i.jsx)(m,{isPostPush:_,documentsListEndpoint:G}):(0,i.jsx)(ei,{unSyncedSlices:e,unSyncedCustomTypes:t,modelsStatuses:h,authStatus:g,isOnline:p}):(0,i.jsx)(P,{}),[p,g,M,e,t,h,_,G]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{children:(0,i.jsx)("title",{children:"Changes - Slice Machine"})}),(0,i.jsxs)(O.LN,{children:[(0,i.jsxs)(O.wd,{children:[(0,i.jsx)(O.Cx,{children:(0,i.jsx)(x.g,{children:"Changes"})}),(0,i.jsxs)(O.K2,{children:[(0,i.jsx)(b,{disabled:0===M||!p||g===I.t.UNAUTHORIZED||g===I.t.FORBIDDEN||v,loading:v,onClick:()=>{W(!1)}}),(0,i.jsx)(s.FN,{anchor:(0,i.jsx)(s.xu,{position:"fixed",top:32,right:32,width:322}),open:z,variant:"card",seconds:20,title:"Success! \uD83C\uDF89",subtitle:"Your changes have been pushed.",action:{title:"Create content in the Page Builder",onClick:()=>{u.Xe.track({event:"post-push:toast-cta-clicked"}),window.open(G,"_blank")}},cancel:{onClick:()=>A(!1)},onOpenChange:A})]})]}),(0,i.jsx)(O.RN,{children:(0,i.jsxs)(d.xR,{sx:{display:"flex",flexDirection:"column"},children:[X,(0,i.jsx)(eh,{pushChanges:e=>void W(e),modalData:C,onClose:()=>w(void 0)}),(0,i.jsx)(eu,{pushChanges:e=>void W(e),modalData:C,onClose:()=>w(void 0)})]})})]})]})}},43217:function(e){e.exports={column:"BlankSlate_column__genEe",root:"BlankSlate_root__CmSqW BlankSlate_column__genEe",fadeIn:"BlankSlate_fadeIn__mAfi5",withBackground:"BlankSlate_withBackground__mLYij",image:"BlankSlate_image__Jn90S BlankSlate_column__genEe",content:"BlankSlate_content__0Yt2d BlankSlate_column__genEe",title:"BlankSlate_title__08TNY",desc:"BlankSlate_desc___Dl7e",actions:"BlankSlate_actions__OYRj4"}}},function(e){e.O(0,[898,789,123,918,772,639,888,774,179],function(){return e(e.s=21985)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[662],{24994:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings",function(){return n(99176)}])},68587:function(e,t,n){"use strict";n.d(t,{Q:function(){return l}});let i={GitHub:"gitHub"};var r=n(52322),o=n(70647);let l={gitHub:{connect:async()=>await s("gitHub"),Icon:e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{d:"M12 4C7.57486 4 4 7.57486 4 12C4 15.5246 6.30057 18.5257 9.47429 19.6C9.87429 19.6754 10.0251 19.4251 10.0251 19.2251V17.8754C7.8 18.3497 7.32457 16.8 7.32457 16.8C6.94971 15.8743 6.42514 15.6251 6.42514 15.6251C5.70057 15.1246 6.47543 15.1497 6.47543 15.1497C7.27543 15.2 7.69943 15.9749 7.69943 15.9749C8.42514 17.2 9.57486 16.8503 10.0251 16.6491C10.1006 16.1246 10.2994 15.7749 10.5246 15.5749C8.74971 15.3749 6.87543 14.6754 6.87543 11.6251C6.87543 10.7497 7.17486 10.0503 7.69943 9.47543C7.62514 9.27543 7.34971 8.45029 7.77486 7.34971C7.77486 7.34971 8.44914 7.12457 9.97486 8.17486C10.6266 7.99627 11.2991 7.90405 11.9749 7.90057C12.6491 7.90057 13.3497 8 13.9749 8.17486C15.5006 7.14971 16.1749 7.34971 16.1749 7.34971C16.6 8.45029 16.3246 9.27543 16.2503 9.47543C16.776 10.024 17.0754 10.7497 17.0754 11.624C17.0754 14.6994 15.2 15.3749 13.4251 15.5749C13.6994 15.8251 13.9749 16.2994 13.9749 17.0491V19.2503C13.9749 19.4754 14.1246 19.7246 14.5246 19.6251C17.7006 18.5246 20 15.5246 20 12C20 7.57486 16.4251 4 12 4Z",fill:"currentColor"})}),name:"GitHub",supported:c("gitHub")},bitbucket:{connect:async()=>await s("bitbucket"),Icon:e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.77596 5.47599C4.84147 5.44648 4.91265 5.43167 4.9845 5.4326L19.3525 5.43506C19.4243 5.43413 19.4955 5.44894 19.561 5.47845C19.6265 5.50796 19.6848 5.55146 19.7317 5.60588C19.7786 5.6603 19.8131 5.72433 19.8326 5.79348C19.8521 5.86262 19.8563 5.93521 19.8448 6.00614L19.1802 10.0751H9.71803L10.5722 14.6018H11.1162L11.1162 14.6018H13.7846L14.56 10.0751H19.1803L17.7575 18.8357C17.7387 18.9522 17.6786 19.058 17.5882 19.1339C17.4979 19.2098 17.3832 19.2507 17.2652 19.2492H7.23692C7.2134 19.249 7.19001 19.2476 7.16682 19.2449C7.03392 19.2298 6.90803 19.175 6.80603 19.0868C6.68704 18.9851 6.60772 18.8448 6.58203 18.6904L4.49219 6.00367C4.48069 5.93275 4.48485 5.86016 4.50438 5.79102C4.52392 5.72187 4.55835 5.65784 4.60527 5.60342C4.65218 5.54899 4.71044 5.5055 4.77596 5.47599Z",fill:"currentColor"})}),name:"Bitbucket",supported:c("bitbucket")},gitLab:{connect:async()=>await s("gitLab"),Icon:e=>(0,r.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,r.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7881 10.5954L16.5431 5.20756C16.6328 4.93081 17.0594 4.93081 17.1492 5.20756L18.9076 10.5954H14.7881ZM6.6192 5.20756L4.86353 10.5954H8.97968L7.22468 5.20756C7.1349 4.93081 6.70898 4.93081 6.6192 5.20756ZM4.0299 13.2981L4.86352 10.5954H4.86353H8.979H14.7881H18.9076L19.7392 13.2981C19.7796 13.4207 19.7802 13.553 19.7408 13.676C19.7014 13.799 19.624 13.9063 19.5198 13.9826L11.893 19.5257L11.8879 19.5319L11.8923 19.5378L11.8865 19.5336L11.8835 19.5371L11.8852 19.5326L4.24927 13.9826C4.0299 13.8246 3.95092 13.5458 4.0299 13.2981Z",fill:"currentColor"})}),name:"GitLab",supported:c("gitLab")}};async function s(e){if(!c(e))throw Error("Not implemented.");let t=await o.j.git.getProviderAppInstallURL({provider:e});window.open(t,"git-provider-app-installation")}function c(e){return!!Object.values(i).includes(e)}},6407:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var i=n(18566),r=n(29806),o=n(70647);function l(){let[e]=(0,r.f)();return{linkedGitRepos:(0,i.QT)(s,[e.repositoryName]),linkRepo:async t=>{await o.j.git.linkRepo({prismic:{domain:e.repositoryName},git:t}),await (0,i.gw)(s,[e.repositoryName])},unlinkRepo:async t=>{await o.j.git.unlinkRepo({prismic:{domain:e.repositoryName},git:t}),await (0,i.gw)(s,[e.repositoryName])}}}async function s(e){return await o.j.git.fetchLinkedRepos({prismic:{domain:e}})}},29806:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var i=n(18566),r=n(70647);function o(){return[(0,i.QT)(l,[]),async e=>{await r.j.project.writeSliceMachineConfig({config:e}),(0,i.VA)(l,[],e)}]}async function l(){return r.j.project.getSliceMachineConfig()}},99176:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return er}});var i=n(52322),r=n(33760),o=n(97729),l=n.n(o),s=n(5632),c=n(2784),a=n(23335),d=n(37792),u=n(17783),x=n.n(u);let h=e=>(0,i.jsx)("div",{...e,className:x().root}),j=e=>{let{children:t,...n}=e;return(0,i.jsx)("div",{...n,className:x().legend,children:(0,i.jsx)(r.xv,{color:"grey11",component:"span",noWrap:!0,variant:"smallBold",children:t})})},m=e=>(0,i.jsx)("div",{...e,className:x().header}),g=e=>(0,i.jsx)("div",{...e,className:x().content}),_=e=>(0,i.jsx)("ul",{...e,className:x().list}),p=e=>{let{action:t,children:n,...o}=e;return(0,i.jsxs)("li",{...o,className:x().listItem,children:[(0,i.jsx)(r.xv,{className:x().listItemText,component:"span",noWrap:!0,variant:"bold",children:n}),t]})},f=e=>{let{action:t,children:n,...o}=e;return(0,i.jsxs)("div",{...o,className:x().footer,children:[(0,i.jsx)(r.xv,{className:x().footerText,color:"grey11",component:"span",noWrap:!0,variant:"small",children:n}),t]})};var w=n(30988);let v=e=>{let{title:t,description:n,action:o}=e;return(0,i.jsxs)(r.xu,{flexDirection:"column",padding:{block:72,inline:100},children:[(0,i.jsx)(r.xv,{align:"center",variant:"emphasized",children:t}),(0,i.jsx)(r.xv,{align:"center",color:"grey11",children:n}),o?(0,i.jsx)(r.hE,{sx:{alignSelf:"center",marginTop:8},children:o}):void 0]})};var C=n(98863),b=n(88932),y=n(68587);let S=()=>(0,i.jsx)(r.hE,{children:(0,C.XP)(y.Q).map(e=>(0,i.jsx)(k,{provider:e,sx:{flexBasis:0,flexGrow:1}},e))}),k=e=>{let{provider:t,sx:n}=e,{connect:o,Icon:l,name:s,supported:a}=y.Q[t],[d,u]=(0,c.useState)(!1);return(0,i.jsxs)(r.zx,{color:"grey",disabled:!a,loading:d,onClick:()=>{(async()=>{u(!0);try{await o()}catch(t){let e="Could not connect to ".concat(s);console.error(e,t),b.Am.error(e),u(!1)}})()},renderStartIcon:()=>(0,i.jsx)(l,{color:r.rS.color.grey11}),sx:n,children:[s,a?void 0:(0,i.jsx)(r.xv,{color:"inherit",variant:"small",children:" (soon)"})]})},F=e=>{let{date:t,...n}=e;return(0,i.jsx)(r.xv,{...n,color:"inherit",variant:"inherit",children:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return L.format(Math.round((+I(e)-+I(t))/864e5),"day")}(t)})},L=new Intl.RelativeTimeFormat("en",{numeric:"auto",style:"narrow"});function I(e){let t=new Date(e);return t.setHours(0,0,0,0),t}var T=n(63397),Z=n(29806),N=n(70647),H=n(99579);let P=e=>{let{linkRepo:t,repo:n,trigger:o}=e,l=y.Q[n.provider],{updateToken:s}=function(e){let[t]=(0,Z.f)();return{updateToken:async n=>{await N.j.git.updateWriteAPIToken({prismic:{domain:t.repositoryName},git:e.git,token:n})}}}({git:n}),{repositoryUrl:c}=(0,H.U)();return(0,i.jsxs)(r.Vq,{size:{width:448,height:"auto"},trigger:o,children:[(0,i.jsx)(r.fK,{title:"Prismic Write API token required"}),(0,i.jsx)(r.cZ,{children:(0,i.jsx)(T.J9,{initialValues:{writeAPIToken:""},validate:e=>{if(0===e.writeAPIToken.length)return{writeAPIToken:"Cannot be empty"}},onSubmit:async e=>{try{await t(n),await s(e.writeAPIToken)}catch(t){let e="Could not connect to ".concat(n.name);console.error(e,t),b.Am.error(e)}},children:e=>(0,i.jsxs)("form",{onSubmit:e.handleSubmit,children:[(0,i.jsxs)(r.xu,{flexDirection:"column",gap:4,padding:16,children:[(0,i.jsx)(r.yt,{disabled:e.isSubmitting,error:"string"==typeof e.errors.writeAPIToken,label:"Paste your Write API token",onValueChange:t=>{e.setFieldValue("writeAPIToken",t)},placeholder:"Write API token",value:e.values.writeAPIToken}),(0,i.jsxs)(r.xv,{color:"grey11",children:["Required to sync models from ",l.name," to Prismic."]})]}),(0,i.jsxs)(r.kX,{children:[(0,i.jsx)(r.Bb,{href:new URL("/settings/apps",c).href,children:"Create a Prismic Write API token"}),(0,i.jsx)(r.PO,{size:"medium"}),(0,i.jsx)(r._d,{disabled:!e.isValid,loading:e.isSubmitting,onClick:()=>void e.submitForm(),size:"medium",children:"Save Token"})]})]})})})]})},R=e=>{let{repo:t,trigger:n,unlinkRepo:o}=e,[l,s]=(0,c.useState)(!1);return(0,i.jsxs)(r.Vq,{size:{width:448,height:"auto"},trigger:n,children:[(0,i.jsx)(r.fK,{title:"Remove Git Connection"}),(0,i.jsx)(r.cZ,{children:(0,i.jsx)(r.xu,{flexDirection:"column",padding:16,children:(0,i.jsx)(r.xv,{children:"You will not be able to push your code alongside your models anymore. Note that you can reconnect your Git repository at any time. Are you sure you want to continue?"})})}),(0,i.jsxs)(r.kX,{children:[(0,i.jsx)(r.PO,{size:"medium"}),(0,i.jsx)(r._d,{size:"medium",color:"tomato",loading:l,onClick:()=>{(async()=>{s(!0);try{await o(t)}catch(n){let e="Could not disconnect from ".concat(t.name);console.error(e,n),b.Am.error(e)}s(!1)})()},children:"Disconnect"})]})]})};var A=n(6407);let W=e=>{let{mode:t,repos:n}=e,{linkRepo:o,unlinkRepo:l}=(0,A.G)();return(0,i.jsx)(_,{children:"link"===t?n.map(e=>(0,i.jsxs)(p,{action:(0,i.jsx)(P,{linkRepo:o,repo:e,trigger:(0,i.jsx)(r.zx,{color:"grey",children:"Connect"})}),children:[e.name,(0,i.jsxs)(r.xv,{color:"grey11",children:[" • ",(0,i.jsx)(F,{date:e.pushedAt})]})]},"".concat(e.provider,"@").concat(e.id))):n.map(e=>(0,i.jsx)(p,{action:(0,i.jsx)(R,{repo:e,trigger:(0,i.jsx)(r.zx,{color:"grey",children:"Disconnect"}),unlinkRepo:l}),children:e.name},"".concat(e.provider,"@").concat(e.owner,"/").concat(e.name)))})},D=()=>(0,i.jsx)(_,{children:[...[,,,,].keys()].map(e=>(0,i.jsx)(p,{action:(0,i.jsx)(r.Od,{height:32,width:67.59}),children:(0,i.jsx)(r.Od,{height:24,sx:{verticalAlign:"middle"},width:129.92})},e))}),z=e=>{let{disabled:t,owners:n=[],selectedOwner:o,onSelectedOwnerChange:l,sx:s}=e;return(0,i.jsx)(r.Ph,{color:"grey",constrainContentWidth:!0,disabled:t,flexContent:!0,onValueChange:e=>{let[t,i]=e.split("@"),r=n.find(e=>e.provider===t&&e.id===i);r&&(null==l||l(r))},placeholder:"Owner",renderStartIcon:()=>(0,i.jsx)(G,{owner:o}),size:"large",sx:s,value:o?M(o):void 0,children:n.map(e=>(0,i.jsx)(r.Ql,{renderStartIcon:()=>(0,i.jsx)(G,{owner:e}),size:"large",value:M(e),children:e.name},M(e)))})},G=e=>{var t;let{owner:n}=e,{Icon:o}=y.Q[null!==(t=null==n?void 0:n.provider)&&void 0!==t?t:"gitHub"];return(0,i.jsx)(o,{color:r.rS.color.grey11})};function M(e){return"".concat(e.provider,"@").concat(e.id)}var V=n(18566);async function O(e,t,n,i){return await N.j.git.fetchRepos({provider:e,owner:t,query:n,page:i})}let B=e=>{let{owners:t}=e,[n,r]=(0,c.useState)(t[0]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(m,{children:(0,i.jsx)(z,{owners:t,selectedOwner:n,onSelectedOwnerChange:r,sx:{width:"calc(50% - 8px)"}})}),(0,i.jsx)(c.Suspense,{fallback:(0,i.jsx)(E,{gitOwnerSelect:!1}),children:(0,i.jsx)(Q,{owner:n})})]})},Q=e=>{var t;let{owner:n}=e,r=(t={provider:n.provider,owner:n.name},(0,V.QT)(O,[t.provider,t.owner,t.query,t.page]));return r.length>0?(0,i.jsx)(W,{mode:"link",repos:r}):(0,i.jsx)(g,{children:(0,i.jsx)(v,{title:"No Results Found",description:"Try selecting a different Git account or organization on the top left."})})},E=e=>{let{gitOwnerSelect:t}=e;return(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsx)(m,{children:(0,i.jsx)(z,{disabled:!0,sx:{width:"calc(50% - 8px)"}})}):void 0,(0,i.jsx)(D,{})]})};async function K(){return await N.j.git.fetchOwners()}var q=n(41067);let U=()=>(0,i.jsxs)(h,{children:[(0,i.jsx)(j,{children:"Connected Git Repository"}),(0,i.jsx)(w.S,{renderError:J,children:(0,i.jsx)(c.Suspense,{fallback:(0,i.jsx)(E,{gitOwnerSelect:!0}),children:(0,i.jsx)(X,{})})}),(0,i.jsx)(f,{action:(0,i.jsx)(r.u,{content:"Documentation is coming soon.",side:"bottom",children:(0,i.jsx)(r.hU,{disabled:!0,icon:"openInNew"})}),children:"Learn more about Prismic for Git"})]}),X=()=>{let{linkedGitRepos:e}=(0,A.G)();return e.length>0?(0,i.jsx)(W,{mode:"unlink",repos:e}):(0,i.jsx)(Y,{})},Y=()=>{let e=(0,V.QT)(K,[]);return e.length>0?(0,i.jsx)(B,{owners:e}):(0,i.jsx)(g,{children:(0,i.jsx)(S,{})})};function J(e,t){return(0,d.ff)(e)?(0,i.jsx)($,{}):(0,d.TW)(e)?(0,i.jsx)(ee,{}):(0,i.jsx)(et,{reset:t})}let $=()=>{let{openLoginModal:e}=(0,q.Z)();return(0,i.jsx)(g,{children:(0,i.jsx)(v,{title:"It seems like you are logged out",description:"Log in to connect a Git repository.",action:(0,i.jsx)(r.zx,{onClick:e,children:"Log in to Prismic"})})})},ee=()=>(0,i.jsx)(g,{children:(0,i.jsx)(v,{title:"It seems like you do not have permission",description:"An owner or admin is required to connect a Git repository."})}),et=e=>{let{reset:t}=e;return(0,i.jsx)(g,{children:(0,i.jsx)(v,{title:"Unable to fetch data",description:"An error occurred while fetching the list of connected Git repositories.",action:(0,i.jsx)(r.zx,{color:"grey",onClick:t,children:"Retry"})})})};var en=n(52677),ei=n(28948);let er=()=>{let e=(0,en.M)(),t=(0,s.useRouter)();return((0,c.useEffect)(()=>{e.eligible||t.replace("/")},[e.eligible,t]),e.eligible)?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l(),{children:(0,i.jsx)("title",{children:"Settings - Slice Machine"})}),(0,i.jsxs)(ei.LN,{children:[(0,i.jsx)(ei.wd,{children:(0,i.jsx)(ei.Cx,{children:(0,i.jsx)(a.g,{children:"Settings"})})}),(0,i.jsx)(ei.RN,{children:(0,i.jsx)(r.xu,{flexDirection:"column",maxWidth:600,children:(0,i.jsx)(U,{})})})]})]}):null}},17783:function(e){e.exports={flex:"FieldSet_flex__r2Zbg",column:"FieldSet_column__esHjW FieldSet_flex__r2Zbg",root:"FieldSet_root__MYqY8 FieldSet_column__esHjW FieldSet_flex__r2Zbg",row:"FieldSet_row__DZZjD FieldSet_flex__r2Zbg",borderBottom:"FieldSet_borderBottom__WVCMK",legend:"FieldSet_legend__4k9_l FieldSet_row__DZZjD FieldSet_flex__r2Zbg FieldSet_borderBottom__WVCMK",header:"FieldSet_header__cR_f3 FieldSet_row__DZZjD FieldSet_flex__r2Zbg FieldSet_borderBottom__WVCMK",content:"FieldSet_content__WzxRs FieldSet_column__esHjW FieldSet_flex__r2Zbg",list:"FieldSet_list__mILoo FieldSet_column__esHjW FieldSet_flex__r2Zbg",listItem:"FieldSet_listItem__QOhSB FieldSet_row__DZZjD FieldSet_flex__r2Zbg FieldSet_borderBottom__WVCMK",listItemText:"FieldSet_listItemText__Gz9iH",borderTop:"FieldSet_borderTop__KfoL_",footer:"FieldSet_footer__1VWxY FieldSet_row__DZZjD FieldSet_flex__r2Zbg FieldSet_borderTop__KfoL_",footerText:"FieldSet_footerText__HN3ma"}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=24994)}),_N_E=e.O()}]);
|
package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-68074c174d83cf1e.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{31314:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/slices/[lib]/[sliceName]/[variation]",function(){return n(6988)}])},44570:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i=n(5632),o=n(56580),r=n(68916);let a=(e,t,n)=>{var i;let o=null===(i=(0,r.Sd)(e))||void 0===i?void 0:i.find(e=>e.name.replace(/\//g,"--")===t);return null==o?void 0:o.components.find(e=>e.model.name===n)};var l=()=>{let e=(0,i.useRouter)(),{slice:t}=(0,o.v9)(t=>({slice:a(t,e.query.lib,e.query.sliceName)}));if(!t)return{};let n=t.model.variations.find(t=>t.id===e.query.variation);return n?{slice:t,variation:n}:{}}},6988:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return eR}});var i=n(52322),o=n(97729),r=n.n(o),a=n(5632),l=n(74217),s=n(2784),d=n(93188),c=n(80546),u=n(43874),m=n(41067);let h=(0,s.createContext)(void 0);function p(e){let{children:t,initialSlice:n}=e,o=(0,a.useRouter)(),[r,p]=(0,s.useState)(n),{actionQueueStatus:v,setNextAction:f}=(0,u.c)({errorMessage:"Failed to save slice. Check your browser's console for more information."}),{saveSliceSuccess:x}=(0,m.Z)(),y=(0,l.R9)(x),{syncChanges:g}=(0,c.g)(),j=(0,s.useMemo)(()=>{let e=o.query.variation,t=r.model.variations.find(t=>t.id===e);if(t)return t;throw Error("Variation not found")},[r,o]),b=(0,s.useCallback)((e,t)=>{p(e),f(async()=>{let{errors:n}=await (0,d.Ve)(e);if(n.length>0)throw n;let{errors:i,mocks:o}=await (0,d.pL)({libraryID:e.from,sliceID:e.model.id});if(i.length>0)throw i;y({...e,mocks:o}),g(),null==t||t()})},[f,y,g]),w=(0,s.useMemo)(()=>({actionQueueStatus:v,slice:r,setSlice:b,variation:j}),[v,r,b,j]);return(0,i.jsx)(h.Provider,{value:w,children:"function"==typeof t?t(w):t})}function v(){let e=(0,s.useContext)(h);if(!e)throw Error("SliceBuilderProvider not found");return e}var f=n(44570),x=n(33760),y=n(23335),g=n(6697),j=n(30988),b=n(18566),w=n(70647);async function C(e){let{errors:t,model:n}=await w.j.customTypes.readCustomType({id:e});if(t.length>0)throw t;return n}var I=n(63447),S=n(5813),k=n(10635);let T=e=>(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M9.5 12L6 9.5L9.5 7V9.5V12Z",fill:"currentColor"}),(0,i.jsx)("path",{d:"M6 9.5H11C14.3 9.5 17 12.2 17 15.5V17.5M6 9.5L9.5 12V9.5V7L6 9.5Z",stroke:"currentColor",strokeLinecap:"round"})]}),R=()=>{let{source:e}=(0,S.l)(),t=function(e){let t=(0,I.Ag)(e.query);return void 0!==t&&(0,I.ne)(e.asPath,t)?t:void 0}(e);return void 0!==t?(0,i.jsx)(j.S,{children:(0,i.jsx)(s.Suspense,{children:(0,i.jsx)(x.xu,{bottom:32,justifyContent:"center",position:"fixed",right:0,width:"100vw",children:(0,i.jsx)(E,{sourceCustomTypeId:t})})})}):null},E=e=>{let{sourceCustomTypeId:t}=e,n=(0,b.QT)(C,[t]),[o,r]=(0,s.useState)(!0),l=(0,a.useRouter)();if(void 0===n||!o)return null;{let{format:e,id:t}=n,o=I.cd[e].getBuilderPagePathname(t);return(0,i.jsxs)(x.hE,{density:"compact",color:"dark",children:[(0,i.jsxs)(x.zx,{onClick:()=>{l.push(o)},renderStartIcon:()=>(0,i.jsx)(T,{}),children:["Return to ",n.label]}),(0,i.jsx)(x.zx,{onClick:()=>{r(!1)},renderStartIcon:()=>(0,i.jsx)(k.T,{})})]})}};var A=n(28948),D=n(56580),L=n(33710),N=n(99044);let O=e=>(0,i.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 16C23 19.866 19.866 23 16 23C12.134 23 9 19.866 9 16C9 12.134 12.134 9 16 9C19.866 9 23 12.134 23 16ZM24 16C24 20.4183 20.4183 24 16 24C11.5817 24 8 20.4183 8 16C8 11.5817 11.5817 8 16 8C20.4183 8 24 11.5817 24 16ZM14.75 18.5981L18.5 16L14.75 13.4019V18.5981Z",fill:"currentColor"})});var F=n(17186),V=n(17467);let _=e=>{let{children:t,open:n,onClose:o}=e;return(0,i.jsxs)(N.zs,{open:n,trigger:t,onClose:o,children:[(0,i.jsx)(N.Ev,{children:"Simulate your slices"}),(0,i.jsx)(N.LB,{component:"video",cloudName:"dmtf1daqp",loop:!1,autoPlay:!1,publicId:F.Sn,poster:"/simulator-video-thumbnail.png",controls:!0,onPlay:()=>{d.Xe.track({event:"open-video-tutorials",video:F.Sn})}}),(0,i.jsx)(N.OJ,{children:"Minimize context-switching by previewing your Slice components in the simulator."}),(0,i.jsx)(N.Rp,{children:"Got it"})]})};var z=e=>{let{disabled:t}=e,n=(0,a.useRouter)(),o=(0,s.useRef)(null),{setSeenSimulatorToolTip:r}=(0,m.Z)(),{hasSeenSimulatorTooltip:l}=(0,D.v9)(e=>({hasSeenSimulatorTooltip:(0,V.bv)(e)}));(0,s.useEffect)(()=>{let e=o.current;e&&!l&&setTimeout(()=>L.Z.show(e),5e3)},[l]);let d=()=>{if(r(),o.current){let{current:e}=o;L.Z.hide(e)}};return(0,i.jsx)("span",{"data-tip":!0,"data-tip-disable":!1,"data-for":"simulator-button-tooltip",ref:o,children:(0,i.jsx)(_,{open:!l,onClose:d,children:(0,i.jsx)(x.zx,{"data-tip":!0,"data-testid":"simulator-open-button",onClick:()=>{d(),window.open("".concat(n.asPath,"/simulator"),F.pq)},disabled:t,renderStartIcon:()=>(0,i.jsx)(O,{color:x.rS.color.grey1,height:"24px",style:{transform:"scale(calc(4 / 3))"},width:"24px"}),children:"Simulate"})})})},M=n(88866),P=n(28316),Z=n(88932),K=n(80775),q=n(3181),H=n(64602),B=n(18183),X=n(2439),G=n(80410),W=n(94599),U=n(85357),Y=n(99510),J=n(46622);let $=[W.C.Image,W.C.Text,W.C.StructuredText,W.C.Link,W.C.Select,W.C.Boolean,W.C.Number,W.C.Color,W.C.Date,W.C.Embed,W.C.Timestamp,W.C.GeoPoint,W.C.ContentRelationship,W.C.LinkToMedia],Q=[W.C.Group,...$];var ee=()=>{let{slice:e,setSlice:t,variation:n}=v(),[o,r]=(0,s.useState)(!1),a=!!(n.items&&Object.keys(n.items).length>0),l=i=>o=>{if(i===G.Rt.Items&&n.items&&Object.keys(n.items).length<=1){r(!0);return}t((0,q.AK)({slice:e,variationId:n.id,widgetArea:i,fieldId:o}))},c=(i,o)=>{let{apiId:r,newKey:a,value:l,isNewGroupField:s}=o;t((0,q.L4)({slice:e,variationId:n.id,widgetArea:i,previousFieldId:r,newFieldId:a,newField:l}),()=>{!0===s&&Z.Am.success("Group added")})},u=(i,o)=>{var r;let{apiId:a,value:l}=o,{type:s,config:c}=l,u=null!==(r=null==c?void 0:c.label)&&void 0!==r?r:"",m=Q.find(e=>e.CUSTOM_NAME===s||e.TYPE_NAME===s);if(!m)throw Error("Unsupported Field Type: ".concat(s));try{m.schema.validateSync(l,{stripUnknown:!1})}catch(e){throw Error('Model is invalid for widget "'.concat(l.type,'".'))}t((0,q.xS)({slice:e,variationId:n.id,widgetArea:i,newFieldId:a,newField:l.type===M.GroupFieldType?X.Fl.fromSM(l):l}),()=>{Z.Am.success("".concat("Group"===s?"Group":"Field"," added"))}),d.Xe.track({event:"field:added",id:a,name:u,type:l.type,isInAGroup:!1,contentType:(0,J.T)(window.location.pathname)})},m=e=>t=>""===t.apiId?u(e,{...t,apiId:t.newKey}):c(e,t),h=i=>o=>{if((0,U.uS)(o))return;let{source:r,destination:a}=o;if(!a)return;let l=(0,q.gR)({slice:e,variationId:n.id,widgetArea:i,sourceIndex:r.index,destinationIndex:a.index});(0,P.flushSync)(()=>t(l))};return(0,i.jsxs)(K.aV,{children:[(0,i.jsx)(B.Z,{zoneType:"slice",zoneTypeFormat:void 0,tabId:void 0,title:"Fields",dataTip:" The non-repeatable zone\n is for fields<br/> that should appear once, like a<br/>\n section title.\n",fields:n.primary,EditModal:H.Z,widgetsArray:Q,onDeleteItem:l(G.Rt.Primary),onSave:m(G.Rt.Primary),onDragEnd:h(G.Rt.Primary),poolOfFieldsToCheck:n.primary||[],renderHintBase:e=>{let{item:t}=e;return"slice.primary".concat((0,Y.Ti)(t.key))},renderFieldAccessor:e=>"slice.primary".concat((0,Y.Ti)(e)),testId:"static-zone-content",isRepeatableCustomType:void 0,emptyStateHeading:void 0}),a?(0,i.jsx)(B.Z,{zoneType:"slice",zoneTypeFormat:void 0,tabId:void 0,isRepeatable:!0,title:"Repeatable Zone",dataTip:"The repeatable zone is for a group<br/>\n of fields that you want to be able to repeat an<br/>\n indeterminate number of times, like FAQs",widgetsArray:$,fields:n.items,EditModal:H.Z,onDeleteItem:l(G.Rt.Items),onSave:m(G.Rt.Items),onDragEnd:h(G.Rt.Items),poolOfFieldsToCheck:n.items||[],renderHintBase:e=>{let{item:t}=e;return"item".concat((0,Y.Ti)(t.key))},renderFieldAccessor:e=>"slice.items[i]".concat((0,Y.Ti)(e)),testId:"slice-repeatable-zone",isRepeatableCustomType:void 0,emptyStateHeading:"No fields"}):null,(0,i.jsxs)(x.Vq,{size:"small",open:o,onOpenChange:e=>r(e),children:[(0,i.jsx)(x.fK,{icon:"delete",title:"Delete field"}),(0,i.jsxs)(x.cZ,{children:[(0,i.jsx)(x.xu,{padding:24,gap:12,flexDirection:"column",children:e.model.variations.length>1?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:["This action will permanently remove the repeatable zone from the ",e.model.name," slice ",n.name," variation."]}),(0,i.jsx)("div",{children:"Other variations will be left untouched. To reimplement repeatable fields later, use a group field instead of the repeatable zone."})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("strong",{children:["This action will permanently remove the repeatable zone from the ",e.model.name,"."]}),(0,i.jsx)("div",{children:"To reimplement repeatable fields later, use a group field instead of the repeatable zone."})]})}),(0,i.jsxs)(x.kX,{children:[(0,i.jsx)(x.PO,{}),(0,i.jsx)(x._d,{color:"tomato",onClick:()=>{t((0,q.Oh)({slice:e,variationId:n.id})),r(!1)},children:"Delete"})]})]})]})]})},et=n(20659),en=n(53850),ei=n(89513),eo=n(76787);async function er(e){try{let{errors:t}=await (0,d.Ve)(e.component);if(t.length>0)throw t;let{errors:n}=await (0,d.Xi)({libraryID:e.component.from,sliceID:e.component.model.id,variationID:e.variation.id});if(n.length>0)throw n;let{slice:i,errors:o}=await (0,d.X$)(e.component.from,e.component.model.id);if(o.length>0)throw o;if(!i)throw Error("Could not read variation `".concat(e.variation.name,"`"));let{mocks:r}=await (0,d.pL)({libraryID:e.component.from,sliceID:e.component.model.id}),a=ei.Y.getBuilderPagePathname({libraryName:e.component.href,sliceName:i.name,variationId:i.variations[0].id});await e.router.replace(a);let l={...e.component,model:i,mocks:r};return e.saveSliceSuccess(l),l}catch(n){let t="Could not delete variation `".concat(e.variation.name,"`");throw console.error(t,n),Z.Am.error(t),n}}let ea=e=>{let{isOpen:t,onClose:n,slice:o,variation:r}=e,l=(0,a.useRouter)(),[d,c]=(0,s.useState)(!1),{saveSliceSuccess:u}=(0,m.Z)(),{setSlice:h}=v();return(0,i.jsxs)(x.Vq,{open:t,onOpenChange:e=>!e&&n(),size:{width:448,height:"auto"},children:[(0,i.jsx)(x.fK,{icon:"delete",title:"Delete variation"}),(0,i.jsx)(x.cZ,{children:(0,i.jsxs)(x.xu,{flexDirection:"column",children:[(0,i.jsxs)(x.xv,{color:"grey11",sx:{marginBlock:16,marginInline:16},children:["This action will remove the variation from the slice model and delete associated files. When you push your changes, the variation will disappear from your repository. This update will"," ",(0,i.jsx)(el,{children:"not"})," affect your documents until you ",(0,i.jsx)(el,{children:"edit"})," ","them manually."]}),(0,i.jsxs)(x.kX,{children:[(0,i.jsx)(x.PO,{size:"medium"}),(0,i.jsx)(x._d,{size:"medium",color:"tomato",onClick:()=>{r&&(async()=>{c(!0);try{let e=await er({component:o,router:l,saveSliceSuccess:u,variation:r});h(e)}catch(e){}c(!1),n()})()},loading:d,children:"Delete"})]})]})})]})},el=e=>(0,i.jsx)(x.xv,{...e,color:"inherit",component:"span",variant:"bold"});var es=n(63397);async function ed(e){try{let{errors:t}=await (0,d.Ve)(e.component);if(t.length>0)throw t;let{errors:n}=await (0,d.eH)(e.component,{...e.variation,name:e.variationName});if(n.length>0)throw n;let{slice:i,errors:o}=await (0,d.X$)(e.component.from,e.component.model.id);if(o.length>0)throw o;if(!i)throw Error("Could not read variation `".concat(e.variation.name,"`"));let{mocks:r}=await (0,d.pL)({libraryID:e.component.from,sliceID:e.component.model.id}),a={...e.component,model:i,mocks:r};return e.saveSliceSuccess(a),a}catch(n){let t="Could not rename variation `".concat(e.variation.name,"`");throw console.error(t,n),Z.Am.error(t),n}}var ec=n(16387),eu=n.n(ec);let em=e=>{var t;let{isOpen:n,onClose:o,slice:r,variation:a}=e,[l,d]=(0,s.useState)(!1),{setSlice:c}=v(),{saveSliceSuccess:u}=(0,m.Z)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(x.Vq,{open:n,onOpenChange:e=>!e&&o(),size:{width:448,height:"auto"},children:[(0,i.jsx)(x.fK,{icon:"edit",title:"Rename variation"}),(0,i.jsx)(x.cZ,{children:(0,i.jsx)(es.J9,{validateOnMount:!0,initialValues:{variationName:null!==(t=null==a?void 0:a.name)&&void 0!==t?t:""},validate:e=>{if(0===e.variationName.length)return{variationName:"Cannot be empty"}},onSubmit:async e=>{if(a){d(!0);try{let t=await ed({component:r,saveSliceSuccess:u,variation:a,variationName:e.variationName.trim()});c(t)}catch(e){}d(!1),o()}},children:e=>(0,i.jsxs)("form",{children:[(0,i.jsxs)(x.xu,{flexDirection:"column",gap:8,padding:16,children:[(0,i.jsx)(x.xv,{variant:"normal",color:"grey11",children:"This action will rename the variation in the slice model. When you push your changes, the variation will be renamed in your repository."}),(0,i.jsxs)(x.xu,{flexDirection:"column",gap:4,children:[(0,i.jsxs)("label",{className:eu().label,children:[(0,i.jsx)(x.xv,{variant:"bold",children:"Variation name*"}),"string"==typeof e.errors.variationName?(0,i.jsx)(x.xv,{variant:"small",color:"tomato10",children:e.errors.variationName}):null]}),(0,i.jsx)(x.yt,{placeholder:"Variation name",error:"string"==typeof e.errors.variationName,value:e.values.variationName,onValueChange:t=>void e.setFieldValue("variationName",t.slice(0,30))})]})]}),(0,i.jsxs)(x.kX,{children:[(0,i.jsx)(x.PO,{size:"medium"}),(0,i.jsx)(x._d,{size:"medium",onClick:()=>void e.submitForm(),loading:l,disabled:!e.isValid,children:"Rename"})]})]})})})]})})};var eh=n(39283),ep=n(96009),ev=n.n(ep),ef=n(36131),ex=n(75289),ey=n(76805),eg=e=>{let{children:t,FooterContent:n,HeaderContent:o,close:r,sx:a={},headerSx:l={}}=e;return(0,i.jsx)(ey.Z,{borderFooter:!0,footerSx:{p:0},bodySx:{pt:2,pb:4,px:4},sx:{border:"none",...a},Header:e=>{let{radius:t}=e;return(0,i.jsxs)(ex.kC,{sx:{p:3,pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:t,borderTopRightRadius:t,borderBottom:e=>{var t;return"1px solid ".concat(null===(t=e.colors)||void 0===t?void 0:t.borders)},...l},children:[o,r?(0,i.jsx)(ex.x8,{onClick:r,type:"button"}):null]})},Footer:n?(0,i.jsxs)(ex.kC,{sx:{alignItems:"space-between",bg:"headSection",p:3},children:[(0,i.jsx)(ex.xu,{sx:{ml:"auto"}}),n]}):null,children:t})},ej=n(11104);let eb=e=>{let{msg:t}=e;return(0,i.jsx)(ex.xv,{as:"span",sx:{fontSize:12,color:"error",mt:"5px",ml:2},children:t||"Error!"})};var ew=e=>{let{isOpen:t,onClose:n,onSubmit:o,initialVariation:r,variations:a}=e,[l,d]=(0,s.useState)({}),[c,u]=(0,s.useState)(""),[m,h]=(0,s.useState)(!0),[p,v]=(0,s.useState)(""),[f,y]=(0,s.useState)({value:r.id,label:r.name}),[g,j]=(0,s.useState)(!1);function b(){w(),n()}function w(){u(""),v(""),d({}),h(!0),y({value:r.id,label:r.name})}async function C(){let e=function(e){let{id:t,name:n,origin:i}=e,o=t&&t.length?null:{id:"Required!"},r=a.find(e=>e.id===t)?{id:"This id already exists!"}:null,l=n&&n.length?null:{name:"Required!"},s=i.value.length&&a.find(e=>e.id===i.value)?null:{id:"You must select an existing variation!"},d=t&&t.length&&!/^[A-Za-z0-9]+([A-Za-z0-9]+)*$/.exec(t)&&{id:"No special characters allowed"};return{...o,...r,...l,...s,...d}}({id:c,name:p,origin:f});if(Object.keys(e).length)d(e);else{let e=a.find(e=>e.id===f.value);e&&(j(!0),await o(c,p,e),j(!1),b())}}return(0,s.useEffect)(()=>{w()},[r,t]),(0,i.jsx)(ej.Z,{isOpen:t,shouldCloseOnOverlayClick:!0,onRequestClose:()=>b(),contentLabel:"Widget Form Modal",style:{content:{maxWidth:"700px"}},children:(0,i.jsx)(es.J9,{initialValues:{id:c,name:p,origin:f},onSubmit:C,children:(0,i.jsx)(es.l0,{id:"variation-add",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),C())},children:(0,i.jsx)(x.xu,{children:(0,i.jsxs)(eg,{sx:{textAlign:"left"},HeaderContent:(0,i.jsx)(ex.xv,{as:"h2",children:"Add new Variation"}),FooterContent:(0,i.jsxs)(x.xu,{gap:16,alignItems:"center",children:[(0,i.jsx)(x.zx,{onClick:b,color:"grey",children:"Cancel"}),(0,i.jsx)(x.zx,{loading:g,children:"Submit"})]}),close:b,children:[(0,i.jsxs)(x.xu,{flexDirection:"column",padding:{block:16},children:[(0,i.jsxs)(ex.__,{htmlFor:"name",sx:{mb:1},children:["Variation name*",l.name?(0,i.jsx)(eb,{msg:l.name}):""]}),(0,i.jsx)(es.gN,{autoComplete:"off",id:"name",name:"name",placeholder:"e.g. Grid - With Icon",as:ex.II,maxLength:30,value:p,onChange:e=>{var t;v(t=e.currentTarget.value),m&&u(ev()(t))}}),(0,i.jsx)(ex.xv,{children:"It will appear here in Slice Machine, and in the page editor in Prismic"})]}),(0,i.jsxs)(x.xu,{flexDirection:"column",padding:{bottom:16},children:[(0,i.jsxs)(ex.__,{htmlFor:"id",sx:{mb:1},children:["Variation ID*",l.id?(0,i.jsx)(eb,{msg:l.id}):""]}),(0,i.jsx)(es.gN,{autoComplete:"off",id:"id",name:"id",placeholder:"e.g. GridWithIcon",as:ex.II,maxLength:30,value:c,onChange:e=>{var t;return t=e.currentTarget.value,void(h(!1),u(ev()(t)))}}),(0,i.jsx)(ex.xv,{children:"It's generated automatically based on the variation name and will appear in the API responses."})]}),(0,i.jsxs)(x.xu,{flexDirection:"column",padding:{bottom:8},children:[(0,i.jsx)(ex.__,{htmlFor:"origin",sx:{mb:1},children:"Duplicate from"}),(0,i.jsx)(ef.ZP,{name:"origin",options:a.map(e=>({value:e.id,label:e.name})),onChange:e=>{e&&y(e)},defaultValue:f,maxMenuHeight:150,theme:e=>({...e,colors:{...e.colors,text:"text",primary:"background"}})})]})]})})})})})},eC=n(828),eI=n.n(eC);let eS=e=>{let{horizontalScroll:t=!1}=e,{slice:n,variation:o,setSlice:r}=v(),[l,c]=(0,s.useState)(),u=(0,eo.H)(),{sliceFilterFn:h,defaultVariationSelector:p,onUploadSuccess:f}=u.modalPayload,y=(0,a.useRouter)(),{saveSliceSuccess:g}=(0,m.Z)(),j=n.model.variations.length;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.xu,{flexDirection:"column",gap:16,children:t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(et.i,{variant:"edgeFaded",color:"grey6"}),(0,i.jsxs)(x.xu,{justifyContent:"space-between",children:[(0,i.jsxs)(x.xv,{color:"grey11",children:[j," variation",1!==j&&"s"]}),(0,i.jsx)(x.zx,{onClick:()=>{c({type:"ADD_VARIATION"})},startIcon:"add",color:"grey",children:"Add a variation"})]}),(0,i.jsx)("div",{className:eI().hideScrollbar,style:{height:"240px",position:"relative",marginRight:"-32px",overflowX:"scroll",scrollSnapType:"x mandatory"},children:(0,i.jsx)("div",{style:{position:"absolute",paddingRight:"32px"},children:(0,i.jsx)(x.xu,{flexDirection:"row",gap:16,children:(0,i.jsx)(ek,{screenshotChangesModal:u,setDialog:c,width:320})})})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ek,{screenshotChangesModal:u,setDialog:c}),(0,i.jsx)("div",{style:{bottom:x.rS.space[0],marginBottom:"-".concat(x.rS.space[16]),position:"sticky"},children:(0,i.jsxs)(x.xu,{backgroundColor:"grey2",flexDirection:"column",padding:{bottom:40,inline:24},children:[(0,i.jsx)(x.ph,{sx:{left:0,position:"absolute",right:0}}),(0,i.jsx)(x.zx,{color:"grey",onClick:()=>{c({type:"ADD_VARIATION"})},startIcon:"add",sx:{position:"relative"},children:"Add a variation"})]})})]})}),(0,i.jsx)(eh.Z,{slices:h([n]),defaultVariationSelector:p,onUploadSuccess:f}),(0,i.jsx)(em,{isOpen:(null==l?void 0:l.type)==="RENAME_VARIATION",onClose:()=>{c(void 0)},slice:n,variation:null==l?void 0:l.variation}),(0,i.jsx)(ea,{isOpen:(null==l?void 0:l.type)==="DELETE_VARIATION",onClose:()=>{c(void 0)},slice:n,variation:null==l?void 0:l.variation}),(0,i.jsx)(ew,{initialVariation:o,isOpen:(null==l?void 0:l.type)==="ADD_VARIATION",onClose:()=>{c(void 0)},onSubmit:async(e,t,i)=>{try{let{slice:o,variation:a}=(0,q.Kp)({slice:n,id:e,name:t,copiedVariation:i});await (0,d.Ve)(o),g(o),r(o);let l=ei.Y.getBuilderPagePathname({libraryName:o.href,sliceName:o.model.name,variationId:a.id});y.replace(l)}catch(n){let e="Could not add variation `".concat(t,"`");console.error(e,n),Z.Am.error(e)}},variations:n.model.variations})]})},ek=e=>{let{screenshotChangesModal:t,setDialog:n,width:o}=e,{slice:r,variation:a,setSlice:l}=v(),s={scrollSnapAlign:"start"};return(0,i.jsx)(i.Fragment,{children:r.model.variations.map(e=>(0,i.jsx)("div",{style:void 0!==o?{...s,width:o}:s,children:(0,i.jsx)(en.b,{action:{type:"menu",onRename:()=>{n({type:"RENAME_VARIATION",variation:e})},onRemove:()=>{n({type:"DELETE_VARIATION",variation:e})},removeDisabled:r.model.variations.length<=1},mode:"navigation",onUpdateScreenshot:()=>{t.onOpenModal({sliceFilterFn:e=>e,defaultVariationSelector:{sliceID:r.model.id,variationID:e.id},onUploadSuccess:e=>{l(e)}})},replace:!0,selected:e.id===a.id,slice:r,variant:"outlined",variationId:e.id},e.id)},e.id))})};var eT=()=>{let{slice:e,actionQueueStatus:t}=v(),n=(0,x.ac)({max:"large"});return(0,i.jsxs)(A.LN,{children:[(0,i.jsxs)(A.wd,{children:[(0,i.jsx)(A.Xq,{url:"/slices"}),(0,i.jsxs)(A.Cx,{children:[(0,i.jsx)(y.g,{children:"Slices"}),(0,i.jsx)(y.g,{active:!0,children:e.model.name})]}),(0,i.jsxs)(A.K2,{children:[(0,i.jsx)(g.X,{status:t}),(0,i.jsx)(z,{disabled:"done"!==t})]})]}),(0,i.jsxs)(A.RN,{children:[(0,i.jsxs)(x.xu,{display:"grid",alignItems:"flex-start",gap:16,...n?{gridTemplateRows:"304px 1fr"}:{gridTemplateColumns:"320px 1fr"},children:[(0,i.jsx)(eS,{horizontalScroll:n}),(0,i.jsx)(ee,{})]}),(0,i.jsx)(R,{})]})]})};function eR(){let e=(0,a.useRouter)(),{slice:t,variation:n}=(0,f.Z)();return void 0===t||void 0===n?(e.replace("/"),null):(0,i.jsx)(p,{initialSlice:t,children:e=>{let{slice:t}=e;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r(),{children:(0,i.jsxs)("title",{children:[t.model.name," - Slice Machine"]})}),(0,i.jsx)(eT,{})]})}})}},16387:function(e){e.exports={label:"RenameVariationModal_label__LI5jL"}},828:function(e){e.exports={hideScrollbar:"VariationsList_hideScrollbar__cHCIS"}},76473:function(e,t,n){"use strict";n.d(t,{y1:function(){return j}});var i=n(2784);function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}n(52322);var r=["shift","alt","meta","mod","ctrl"],a={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function l(e){return(a[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function s(e,t){return void 0===t&&(t=","),e.split(t)}function d(e,t,n){void 0===t&&(t="+");var i=e.toLocaleLowerCase().split(t).map(function(e){return l(e)}),a={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod")},s=i.filter(function(e){return!r.includes(e)});return o({},a,{keys:s,description:n})}"undefined"!=typeof document&&(document.addEventListener("keydown",function(e){void 0!==e.key&&m([l(e.key),l(e.code)])}),document.addEventListener("keyup",function(e){void 0!==e.key&&h([l(e.key),l(e.code)])})),"undefined"!=typeof window&&window.addEventListener("blur",function(){c.clear()});var c=new Set;function u(e){return Array.isArray(e)}function m(e){var t=Array.isArray(e)?e:[e];c.has("meta")&&c.forEach(function(e){return!r.includes(e)&&c.delete(e.toLowerCase())}),t.forEach(function(e){return c.add(e.toLowerCase())})}function h(e){var t=Array.isArray(e)?e:[e];"meta"===e?c.clear():t.forEach(function(e){return c.delete(e.toLowerCase())})}function p(e,t){var n=e.target;void 0===t&&(t=!1);var i=n&&n.tagName;return u(t)?!!(i&&t&&t.some(function(e){return e.toLowerCase()===i.toLowerCase()})):!!(i&&t&&!0===t)}var v=function(e,t,n){void 0===n&&(n=!1);var i,o=t.alt,r=t.meta,a=t.mod,s=t.shift,d=t.ctrl,m=t.keys,h=e.key,p=e.code,v=e.ctrlKey,f=e.metaKey,x=e.shiftKey,y=e.altKey,g=l(p),j=h.toLowerCase();if(!n){if(!y===o&&"alt"!==j||!x===s&&"shift"!==j)return!1;if(a){if(!f&&!v)return!1}else if(!f===r&&"meta"!==j&&"os"!==j||!v===d&&"ctrl"!==j&&"control"!==j)return!1}return!!(m&&1===m.length&&(m.includes(j)||m.includes(g)))||(m?(void 0===i&&(i=","),(u(m)?m:m.split(i)).every(function(e){return c.has(e.trim().toLowerCase())})):!m)},f=(0,i.createContext)(void 0),x=(0,i.createContext)({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),y=function(e){e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},g="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function j(e,t,n,o){var r,a=(0,i.useRef)(null),c=(0,i.useRef)(!1),j=n instanceof Array?o instanceof Array?void 0:o:n,b=u(e)?e.join(null==j?void 0:j.splitKey):e,w=n instanceof Array?n:o instanceof Array?o:void 0,C=(0,i.useCallback)(t,null!=w?w:[]),I=(0,i.useRef)(C);w?I.current=C:I.current=t;var S=(!function e(t,n){return t&&n&&"object"==typeof t&&"object"==typeof n?Object.keys(t).length===Object.keys(n).length&&Object.keys(t).reduce(function(i,o){return i&&e(t[o],n[o])},!0):t===n}((r=(0,i.useRef)(void 0)).current,j)&&(r.current=j),r.current),k=(0,i.useContext)(x).enabledScopes,T=(0,i.useContext)(f);return g(function(){if((null==S?void 0:S.enabled)!==!1&&(e=null==S?void 0:S.scopes,0===k.length&&e?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):!!(!e||k.some(function(t){return e.includes(t)})||k.includes("*")))){var e,t=function(e,t){var n;if(void 0===t&&(t=!1),!(p(e,["input","textarea","select"])&&!p(e,null==S?void 0:S.enableOnFormTags)||null!=S&&null!=S.ignoreEventWhen&&S.ignoreEventWhen(e))){if(null!==a.current&&document.activeElement!==a.current&&!a.current.contains(document.activeElement)){y(e);return}(null==(n=e.target)||!n.isContentEditable||null!=S&&S.enableOnContentEditable)&&s(b,null==S?void 0:S.splitKey).forEach(function(n){var i,o,r,a=d(n,null==S?void 0:S.combinationKey);if(v(e,a,null==S?void 0:S.ignoreModifiers)||null!=(r=a.keys)&&r.includes("*")){if(t&&c.current)return;if(("function"==typeof(i=null==S?void 0:S.preventDefault)&&i(e,a)||!0===i)&&e.preventDefault(),"function"==typeof(o=null==S?void 0:S.enabled)?!o(e,a):!0!==o&&void 0!==o){y(e);return}I.current(e,a),t||(c.current=!0)}})}},n=function(e){void 0!==e.key&&(m(l(e.code)),((null==S?void 0:S.keydown)===void 0&&(null==S?void 0:S.keyup)!==!0||null!=S&&S.keydown)&&t(e))},i=function(e){void 0!==e.key&&(h(l(e.code)),c.current=!1,null!=S&&S.keyup&&t(e,!0))},o=a.current||(null==j?void 0:j.document)||document;return o.addEventListener("keyup",i),o.addEventListener("keydown",n),T&&s(b,null==S?void 0:S.splitKey).forEach(function(e){return T.addHotkey(d(e,null==S?void 0:S.combinationKey,null==S?void 0:S.description))}),function(){o.removeEventListener("keyup",i),o.removeEventListener("keydown",n),T&&s(b,null==S?void 0:S.splitKey).forEach(function(e){return T.removeHotkey(d(e,null==S?void 0:S.combinationKey,null==S?void 0:S.description))})}}},[b,S,k]),a}}},function(e){e.O(0,[898,789,917,525,461,139,183,50,349,772,882,639,888,774,179],function(){return e(e.s=31314)}),_N_E=e.O()}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.BlankSlate_column__genEe{all:unset;box-sizing:border-box;display:flex;flex-direction:column}.BlankSlate_root__CmSqW{max-width:498px;min-height:400px;animation:BlankSlate_fadeIn__mAfi5 ease-in-out 300;border-color:var(--grey6);border-radius:6px;border-style:solid;border-width:1px;overflow:hidden;background-color:var(--light-grey1)}.BlankSlate_withBackground__mLYij{width:100%;max-width:100%;height:100%;text-align:center;background-size:cover;background-color:transparent;border-radius:0;border-style:none}.BlankSlate_image__Jn90S{border-bottom:1px solid var(--grey6);overflow:hidden}.BlankSlate_content__0Yt2d{padding:32px}.BlankSlate_withBackground__mLYij .BlankSlate_content__0Yt2d{padding:64px}.BlankSlate_title__08TNY{font-size:18px;font-weight:600;line-height:32px}.BlankSlate_desc___Dl7e{font-weight:400;line-height:24px}.BlankSlate_withBackground__mLYij .BlankSlate_desc___Dl7e{max-width:464px;align-self:center}.BlankSlate_actions__OYRj4{all:unset;align-items:center;box-sizing:border-box;display:flex;gap:16px;margin-top:16px}.BlankSlate_withBackground__mLYij .BlankSlate_actions__OYRj4{justify-content:center}.Card_flex__opby1{all:unset;display:flex}.Card_grid__VAvIS{all:unset;display:grid}.Card_column__W4ACG{flex-direction:column}.Card_root__YVuvU{position:relative;box-sizing:border-box;border-color:var(--grey6);border-radius:6px;border-style:solid;border-width:1px;overflow-x:hidden}.Card_size-small__aIlxd{height:240px}.Card_size-medium__xegz0{height:320px}.Card_solid__GNGar{background-color:var(--grey3)}.Card_solid__GNGar[data-state=checked]{border-color:var(--purple10)}.Card_outlined__W_dxI{background-color:var(--grey2)}.Card_outlined__W_dxI[data-state=checked]{border-color:var(--purple8)}.Card_interactive__rXw5L:focus-visible{box-shadow:var(--box-shadow-purple-focus)}.Card_interactive__rXw5L[data-disabled]{opacity:.5}.Card_interactive__rXw5L:not([data-disabled]){cursor:pointer}.Card_interactive__rXw5L.Card_solid__GNGar:focus-visible{background-color:var(--grey5);border-color:var(--purple10)}.Card_interactive__rXw5L.Card_outlined__W_dxI:active{background-color:var(--grey4);border-color:var(--purple9)}.Card_interactive__rXw5L.Card_outlined__W_dxI:focus-visible{background-color:var(--grey1);border-color:var(--purple8)}.Card_interactive__rXw5L.Card_outlined__W_dxI:hover{background-color:var(--grey4)}.Card_media__l0kHL{flex-basis:0;flex-grow:1;min-height:0;position:relative;order:0}.Card_solid__GNGar>.Card_media__l0kHL{padding:32px}.Card_outlined__W_dxI>.Card_media__l0kHL{background-color:var(--light-grey3);margin-inline:16px;margin-top:16px;padding:16px}.Card_mediaComponent-div__Y2_PZ{flex-grow:1}.Card_mediaComponent-img__ezOTu{height:100%;-o-object-fit:contain;object-fit:contain}.Card_mediaComponent-img__ezOTu:not([src]){visibility:hidden}.Card_mediaOverlay__Aa__Q{inset:0;position:absolute;visibility:hidden}.Card_mediaOverlay__Aa__Q:before{background-color:var(--light-grey12);content:"";inset:0;opacity:.1;position:absolute}.Card_interactive__rXw5L:focus-visible .Card_mediaOverlay__Aa__Q,.Card_interactive__rXw5L:not([data-disabled]) .Card_mediaOverlay__Aa__Q:has(:focus-visible),.Card_interactive__rXw5L:not([data-disabled]) .Card_media__l0kHL:hover>.Card_mediaOverlay__Aa__Q{visibility:visible}.Card_nonMedia__Fv3Mz{align-items:center;box-sizing:border-box;flex-direction:row}.Card_solid__GNGar>.Card_nonMedia__Fv3Mz{background-color:var(--light-grey1)}.Card_solid__GNGar>.Card_nonMedia__Fv3Mz:not(:first-child){border-top-color:var(--light-grey6);border-top-style:solid;border-top-width:inherit}.Card_actions__XdhOt{height:48px;justify-content:space-between;order:1}.Card_solid__GNGar>.Card_actions__XdhOt{padding-left:12px;padding-right:8px}.Card_outlined__W_dxI>.Card_actions__XdhOt{padding-inline:16px}.Card_footer__U0HS1{gap:8px;height:60px;order:2}.Card_solid__GNGar>.Card_footer__U0HS1{padding-inline:12px}.Card_outlined__W_dxI>.Card_footer__U0HS1{padding-inline:16px}.Card_footerTexts__rTXup{flex-basis:0;flex-grow:1;min-width:0;margin-bottom:4px}.Card_status__PNN2a{height:24px;inset-inline:0;justify-content:center;padding-inline:8px;position:absolute;background-color:var(--purple4);color:var(--purple11)}.Kbd_root__LRA1F{background-color:var(--grey2);border-color:var(--grey6);border-radius:3px;border-style:solid;border-width:1px;color:var(--grey11);padding-inline:4px}
|
|
File without changes
|