slice-machine-ui 2.1.1-alpha.lh-delete-repeatable-zone-model-warning.1 → 2.1.1-beta.1
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/.depcheckrc +0 -1
- package/next.config.mjs +1 -4
- package/out/404.html +1 -1
- package/out/_next/static/chunks/152-c40fcb226b0df27f.js +1 -0
- package/out/_next/static/chunks/{18539003-32a73014bab3a789.js → 18539003-eda642ad962ef598.js} +2 -2
- package/out/_next/static/chunks/212-8e3e36f1dcc00ef3.js +1 -0
- package/out/_next/static/chunks/264-4bb6f3fb14863ef3.js +1 -0
- package/out/_next/static/chunks/465-47a6d2a5f66f521e.js +1 -0
- package/out/_next/static/chunks/{50-cfc2514205b86001.js → 50-8d014b6d3cc35e30.js} +1 -1
- package/out/_next/static/chunks/574-6039c48fbc93b4a8.js +1 -0
- package/out/_next/static/chunks/{210-aee6116139329803.js → 66-d37d30551288858b.js} +2 -2
- package/out/_next/static/chunks/{756-b11a3060cdc2f2d3.js → 756-1e44fe84bedc262b.js} +3 -3
- package/out/_next/static/chunks/816-68d4db26c0adab2e.js +1 -0
- package/out/_next/static/chunks/{918-5bb55fb464e34768.js → 918-09e9e4a012d48a3a.js} +1 -1
- package/out/_next/static/chunks/main-207ecb3e9b995dd9.js +1 -0
- package/out/_next/static/chunks/pages/{_app-d4c2ab4b34c34f31.js → _app-b7213f76f15347d1.js} +133 -133
- package/out/_next/static/chunks/pages/{_error-69b4f498bafdd188.js → _error-6aa4c7b8478d35e3.js} +1 -1
- package/out/_next/static/chunks/pages/changelog-d309ea186a0e56bf.js +1 -0
- package/out/_next/static/chunks/pages/changes-1bb1a7b784a22151.js +1 -0
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-74be2c0ac9c854c7.js +1 -0
- package/out/_next/static/chunks/pages/custom-types-bac97f007a5ca743.js +1 -0
- package/out/_next/static/chunks/pages/{index-41fcbf4361de7317.js → index-785a0ab6e2a4fc27.js} +1 -1
- package/out/_next/static/chunks/pages/{labs-ef915adf4601f422.js → labs-2e4f3a5f68e65b93.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-d35c87b9aaec445a.js +1 -0
- package/out/_next/static/chunks/pages/settings-25eb02893ed871b7.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-b47a72d5e94bd946.js +1 -0
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-921f459ea4e05117.js +1 -0
- package/out/_next/static/chunks/pages/slices-cc44eeccd58d23a9.js +1 -0
- package/out/_next/static/css/b3bb731ce567d63f.css +1 -0
- package/out/_next/static/css/d0dd8015d7f5ea89.css +1 -0
- package/out/_next/static/kx68cYFRoqnjYCat1ymxQ/_buildManifest.js +1 -0
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/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 +6 -10
- package/src/components/Card/Card.stories.tsx +4 -6
- package/src/components/FieldSet/FieldSet.stories.tsx +6 -12
- package/src/features/changes/BlankSlates/NoChangesBlankSlate.tsx +2 -2
- package/src/features/customTypes/customTypesTable/CustomTypesTable.tsx +1 -2
- package/src/features/settings/git/GitOwnerSelect.tsx +2 -2
- package/src/features/settings/git/GitProviderConnectButtons.tsx +2 -2
- package/src/features/slices/sliceCards/SharedSliceCard.tsx +2 -4
- package/src/legacy/components/Changelog/navigation/index.tsx +3 -3
- package/src/legacy/components/Changelog/versionDetails/index.tsx +2 -2
- package/src/legacy/lib/builders/CustomTypeBuilder/index.tsx +7 -6
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +3 -3
- package/src/legacy/lib/builders/SliceBuilder/SimulatorButton/index.tsx +4 -4
- package/vite.config.ts +1 -2
- package/out/_next/static/chunks/188-ee59edb19bc752c3.js +0 -1
- package/out/_next/static/chunks/339-905c2ce3609b74fe.js +0 -1
- package/out/_next/static/chunks/569-2ae3e9666f3bf991.js +0 -1
- package/out/_next/static/chunks/614-5130fbdbcfab2d35.js +0 -1
- package/out/_next/static/chunks/661-aa0b760bb52a7edf.js +0 -1
- package/out/_next/static/chunks/90-2d4bdae13d031364.js +0 -1
- package/out/_next/static/chunks/main-5e6780279ca21cb9.js +0 -1
- package/out/_next/static/chunks/pages/changelog-fa4f69f69dafb8f0.js +0 -1
- package/out/_next/static/chunks/pages/changes-86bf0b1b09af60fa.js +0 -1
- package/out/_next/static/chunks/pages/custom-types/[customTypeId]-982ecf1d799b6bcf.js +0 -1
- package/out/_next/static/chunks/pages/custom-types-19c4fe4abeca8a48.js +0 -1
- package/out/_next/static/chunks/pages/page-types/[pageTypeId]-886fc28240831dae.js +0 -1
- package/out/_next/static/chunks/pages/settings-99f7a183397cb097.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]/simulator-9bdb355306fca592.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-32c97336b8c78b43.js +0 -1
- package/out/_next/static/chunks/pages/slices-f65c48ab547692c4.js +0 -1
- package/out/_next/static/css/037ba37d121d4afe.css +0 -1
- package/out/_next/static/css/a6b6600e19e1c0c1.css +0 -1
- package/out/_next/static/xFdyuD34TKZYdrWaIdvso/_buildManifest.js +0 -1
- package/src/components/Window/Window.css.ts +0 -165
- package/src/components/Window/Window.stories.tsx +0 -135
- package/src/components/Window/Window.tsx +0 -119
- package/src/components/Window/index.ts +0 -8
- /package/out/_next/static/{xFdyuD34TKZYdrWaIdvso → kx68cYFRoqnjYCat1ymxQ}/_ssgManifest.js +0 -0
|
@@ -1 +1 @@
|
|
|
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){t=a(t);var n=i(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,i=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=i},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+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+b),y=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+",x].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},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 tY}});var o,i=n(33028),r=n(59147);function a(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(c){l=!0,i=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,t)||(0,r.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 u=n(59740),s=n(2784),l=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],c=n(7896),d=n(9249),p=n(87371),f=n(45754),h=n(4309),m=n(51171),v=n(28165),g=n(86522),b=n(56666),x=n(28316);function y(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){return y(e).getComputedStyle(e)}function C(e){return e instanceof y(e).Node}function Z(e){return C(e)?(e.nodeName||"").toLowerCase():""}function w(e){return e instanceof y(e).HTMLElement}function I(e){return e instanceof y(e).Element}function S(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=O(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 E=Math.round;function M(e){return I(e)?e:e.contextElement}let R={x:1,y:1};function L(e){let t=M(e);if(!w(t))return R;let n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=function(e){let t=O(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=w(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=E(n)!==r||E(o)!==a;return u&&(n=r,o=a),{width:n,height:o,fallback:u}}(t),a=(r?E(n.width):n.width)/o,u=(r?E(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let k={x:0,y:0};function D(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),a=M(e),u=R;t&&(o?I(o)&&(u=L(o)):u=L(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 k;let r=e?y(e):window;return!n||t&&n!==r?k:{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 f=y(a),h=o&&I(o)?y(o):o,m=f.frameElement;for(;m&&o&&h!==f;){let v=L(m),g=m.getBoundingClientRect(),b=getComputedStyle(m);g.x+=(m.clientLeft+parseFloat(b.paddingLeft))*v.x,g.y+=(m.clientTop+parseFloat(b.paddingTop))*v.y,l*=v.x,c*=v.y,d*=v.x,p*=v.y,l+=g.x,c+=g.y,m=y(m).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 P(e,t){var n;void 0===t&&(t=[]);let o=function e(t){var n;let o=function(e){var t;if("html"===Z(e))return e;let n=e.assignedSlot||e.parentNode||S(e)&&e.host||((C(e)?e.ownerDocument:e.document)||window.document).documentElement;return S(n)?n.host:n}(t);return["html","body","#document"].includes(Z(o))?o.ownerDocument.body:w(o)&&V(o)?o:e(o)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=y(o);return i?t.concat(r,r.visualViewport||[],V(o)?o:[]):t.concat(o,P(o))}var F=s.useLayoutEffect,T=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],A=function(){};function H(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function U(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(H(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var z=function(e){var t;return(t=e,Array.isArray(t))?e.filter(Boolean):"object"===(0,g.Z)(e)&&null!==e?[e]:[]},N=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,u.Z)(e,T);return(0,i.Z)({},t)},B=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 j(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function W(e){return j(e)?window.pageYOffset:e.scrollTop}function Y(e,t){if(j(e)){window.scrollTo(0,t);return}e.scrollTop=t}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=W(e),r=t-i,a=0;!function t(){a+=10;var u,s,l,c,d=(u=a,r*((u=u/n-1)*u*u+1)+i);Y(e,d),a<n?window.requestAnimationFrame(t):o(e)}()}function _(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?Y(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&Y(e,Math.max(t.offsetTop-i,0))}function X(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var q="undefined"!=typeof window?window:{};q.addEventListener&&q.removeEventListener&&(q.addEventListener("p",A,{get passive(){return!0}}),q.removeEventListener("p",A,!1));function K(e){return null!=e}var J=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=a(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=a(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},$=function(e){return"auto"===e?"bottom":e},Q=function(e,t){var n,o,r=e.placement,a=e.theme,u=a.borderRadius,s=a.spacing,l=a.colors;return(0,i.Z)((n={label:"menu"},(0,b.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,b.Z)(n,"position","absolute"),(0,b.Z)(n,"width","100%"),(0,b.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ee=(0,s.createContext)(null),et=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=((0,s.useContext)(ee)||{}).setPortalPlacement,p=(0,s.useRef)(null),f=(0,s.useState)(o),h=a(f,2),m=h[0],v=h[1],g=a((0,s.useState)(null),2),b=g[0],x=g[1],y=c.spacing.controlHeight;return F(function(){var e=p.current;if(e){var t="fixed"===u,i=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,d=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:j(s)?window.innerHeight:s.clientHeight,b=W(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=v-y,C=g-m,Z=O+b,w=d-b-m,I=f-g+b+x,S=b+m-y;switch(i){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(w>=h&&!a)return r&&G(s,I,160),{placement:"bottom",maxHeight:t};if(!a&&w>=o||a&&C>=o)return r&&G(s,I,160),{placement:"bottom",maxHeight:a?C-x:w-x};if("auto"===i||a){var V=t,E=a?O:Z;return E>=o&&(V=Math.min(E-x-u,t)),{placement:"top",maxHeight:V}}if("bottom"===i)return r&&Y(s,I),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(Z>=h&&!a)return r&&G(s,S,160),{placement:"top",maxHeight:t};if(!a&&Z>=o||a&&O>=o){var M=t;return(!a&&Z>=o||a&&O>=o)&&(M=a?O-y:Z-y),r&&G(s,S,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});v(i.maxHeight),x(i.placement),null==d||d(i.placement)}},[o,r,u,l,n,d,y]),t({ref:p,placerProps:(0,i.Z)((0,i.Z)({},e),{},{placement:b||$(r),maxHeight:m})})},en=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menu",{menu:!0}),{ref:n},o),t)},eo=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ei=function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},er=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return(0,i.Z)({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ea=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};ea.defaultProps={children:"No options"};var eu=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};eu.defaultProps={children:"Loading..."};var es,el,ec=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}},ed=function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=(0,s.useRef)(null),p=(0,s.useRef)(null),f=(0,s.useState)($(u)),h=a(f,2),m=h[0],g=h[1],b=(0,s.useMemo)(function(){return{setPortalPlacement:g}},[]),y=a((0,s.useState)(null),2),O=y[0],C=y[1],Z=(0,s.useCallback)(function(){if(o){var e,t,n={bottom:(t=o.getBoundingClientRect()).bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width},i="fixed"===l?0:window.pageYOffset,r=n[m]+i;(r!==(null==O?void 0:O.offset)||n.left!==(null==O?void 0:O.rect.left)||n.width!==(null==O?void 0:O.rect.width))&&C({offset:r,rect:n})}},[o,l,m,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);F(function(){Z()},[Z]);var w=(0,s.useCallback)(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&d.current&&(p.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?[...I(e)?P(e):e.contextElement?P(e.contextElement):[],...P(t)]:[];s.forEach(e=>{let t=!I(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()}),I(e)&&!u&&c.observe(e),I(e)||!e.contextElement||u||c.observe(e.contextElement),c.observe(t));let d=u?D(e):null;return u&&function t(){let o=D(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,d.current,Z,{elementResize:"ResizeObserver"in window}))},[o,Z]);F(function(){w()},[w]);var S=(0,s.useCallback)(function(e){d.current=e,w()},[w]);if(!t&&"fixed"!==l||!O)return null;var V=(0,v.tZ)("div",(0,c.Z)({ref:S},B((0,i.Z)((0,i.Z)({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),r),n);return(0,v.tZ)(ee.Provider,{value:b},t?(0,x.createPortal)(V,t):V)},ep=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ef=function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},eh=function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},em=function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return(0,v.tZ)("div",(0,c.Z)({},B(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)},ev=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eg=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"indicatorsContainer",{indicators:!0}),n),t)},eb=["size"],ex={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ey=function(e){var t=e.size,n=(0,u.Z)(e,eb);return(0,v.tZ)("svg",(0,c.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ex},n))},eO=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.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"}))},eC=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.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"}))},eZ=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},ew=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,v.tZ)(eC,null))},eI=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,v.tZ)(eO,null))},eS=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},eV=function(e){var t=e.innerProps;return(0,v.tZ)("span",(0,c.Z)({},t,B(e,"indicatorSeparator",{"indicator-separator":!0})))},eE=(0,v.F4)(o||(es=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],el||(el=es.slice(0)),o=Object.freeze(Object.defineProperties(es,{raw:{value:Object.freeze(el)}})))),eM=function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,u=r.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*u})},eR=function(e){var t=e.delay,n=e.offset;return(0,v.tZ)("span",{css:(0,v.iv)({animation:"".concat(eE," 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"},"","")})},eL=function(e){var t=e.innerProps,n=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,v.tZ)(eR,{delay:0,offset:n}),(0,v.tZ)(eR,{delay:160,offset:!0}),(0,v.tZ)(eR,{delay:320,offset:!n}))};eL.defaultProps={size:4};var ek,eD,eP,eF,eT,eA=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,u=r.borderRadius,s=r.spacing;return(0,i.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?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},eH=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return(0,v.tZ)("div",(0,c.Z)({ref:i},B(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r),t)},eU=["data"],ez=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},eN=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,d=e.selectProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"group",{group:!0}),u),(0,v.tZ)(r,(0,c.Z)({},a,{selectProps:d,theme:l,getStyles:o,getClassNames:i,cx:n}),s),(0,v.tZ)("div",null,t))},eB=function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},ej=function(e){var t=N(e);t.data;var n=(0,u.Z)(t,eU);return(0,v.tZ)("div",(0,c.Z)({},B(e,"groupHeading",{"group-heading":!0}),n))},eW=["innerRef","isDisabled","isHidden","inputClassName"],eY=function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,u=r.colors;return(0,i.Z)((0,i.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},e_),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},eG={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},e_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eG)},eX=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},eq=function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},eK=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,u=e.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},eJ=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",n,t)},e$=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,u=a.spacing,s=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},eQ=function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},e0=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},e1={ClearIndicator:eI,Control:eH,DropdownIndicator:ew,DownChevron:eC,CrossIcon:eO,Group:eN,GroupHeading:ej,IndicatorsContainer:eg,IndicatorSeparator:eV,Input:function(e){var t,n=e.cx,o=e.value,r=N(e),a=r.innerRef,s=r.isDisabled,l=r.isHidden,d=r.inputClassName,p=(0,u.Z)(r,eW);return(0,v.tZ)("div",(0,c.Z)({},B(e,"input",{"input-container":!0}),{"data-value":o||""}),(0,v.tZ)("input",(0,c.Z)({className:n({input:!0},d),ref:a,style:(0,i.Z)({label:"input",color:"inherit",background:0,opacity:l?0:1,width:"100%"},eG),disabled:s},p)))},LoadingIndicator:eL,Menu:en,MenuList:ei,MenuPortal:ed,LoadingMessage:eu,NoOptionsMessage:ea,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,a=e.isDisabled,u=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,v.tZ)(l,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),r),selectProps:s},(0,v.tZ)(c,{data:o,innerProps:(0,i.Z)({},B(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,v.tZ)(d,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:s}))},MultiValueContainer:eJ,MultiValueLabel:eJ,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({role:"button"},n),t||(0,v.tZ)(eO,{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,v.tZ)("div",(0,c.Z)({},B(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,v.tZ)("div",(0,c.Z)({},B(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:ef,SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:em},e2=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function e6(e,t){return!!(e===t||e2(e)&&e2(t))}function e4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e6(e[n],t[n]))return!1;return!0}for(var e3={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"},e5=function(e){return(0,v.tZ)("span",(0,c.Z)({css:e3},e))},e9={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue,r=e.context;switch(r){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:"",".")}},e8=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,a=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,x=l.options,y=l.screenReaderStatus,O=l.tabSelectsValue,C=l["aria-label"],Z=l["aria-live"],w=(0,s.useMemo)(function(){return(0,i.Z)((0,i.Z)({},e9),d||{})},[d]),I=(0,s.useMemo)(function(){var e="";if(t&&w.onChange){var n,o=t.option,r=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||o||(Array.isArray(l)?null:l),d=c?p(c):"",f=r||s||void 0,h=f?f.map(p):[],v=(0,i.Z)({isDisabled:c&&m(c,u),label:d,labels:h},t);e=w.onChange(v)}return e},[t,w,m,u,p]),S=(0,s.useMemo)(function(){var e="",t=n||o,i=!!(n&&u&&u.includes(n));if(t&&w.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,u),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:u};e=w.onFocus(a)}return e},[n,o,p,m,w,r,u]),V=(0,s.useMemo)(function(){var e="";if(b&&x.length&&w.onFilter){var t=y({count:r.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e},[r,f,b,w,x,y]),E=(0,s.useMemo)(function(){var e="";return w.guidance&&(e=w.guidance({"aria-label":C,context:o?"value":b?"menu":"input",isDisabled:n&&m(n,u),isMulti:h,isSearchable:g,tabSelectsValue:O})),e},[C,n,o,h,m,g,b,w,u,O]),M="".concat(S," ").concat(V," ").concat(E),R=(0,v.tZ)(s.Fragment,null,(0,v.tZ)("span",{id:"aria-selection"},I),(0,v.tZ)("span",{id:"aria-context"},M)),L=(null==t?void 0:t.action)==="initial-input-focus";return(0,v.tZ)(s.Fragment,null,(0,v.tZ)(e5,{id:c},L&&R),(0,v.tZ)(e5,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text"},a&&!L&&R))},e7=[{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źẑżžẓẕƶȥɀⱬꝣ"}],te=RegExp("["+e7.map(function(e){return e.letters}).join("")+"]","g"),tt={},tn=0;tn<e7.length;tn++)for(var to=e7[tn],ti=0;ti<to.letters.length;ti++)tt[to.letters[ti]]=to.base;var tr=function(e){return e.replace(te,function(e){return tt[e]})},ta=function(e,t){void 0===t&&(t=e4);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}(tr),tu=function(e){return e.replace(/^\s+|\s+$/g,"")},ts=function(e){return"".concat(e.label," ").concat(e.value)},tl=["innerRef"];function tc(e){var t=e.innerRef,n=(0,u.Z)(e,tl),o=J(n,"onExited","in","enter","exit","appear");return(0,v.tZ)("input",(0,c.Z)({ref:t},o,{css:(0,v.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 td=function(e){e.preventDefault(),e.stopPropagation()},tp=["boxSizing","height","overflow","paddingRight","position"],tf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function th(e){e.preventDefault()}function tm(e){e.stopPropagation()}function tv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function tg(){return"ontouchstart"in window||navigator.maxTouchPoints}var tb=!!("undefined"!=typeof window&&window.document&&window.document.createElement),tx=0,ty={capture:!1,passive:!1},tO=function(){return document.activeElement&&document.activeElement.blur()},tC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tZ(e){var t,n,o,i,r,a,u,l,c,d,p,f,h,m,g,b,x,y,O,C,Z,w,I,S,V,E=e.children,M=e.lockEnabled,R=e.captureEnabled,L=e.onBottomArrive,k=e.onBottomLeave,D=(n=(t={isEnabled:void 0===R||R,onBottomArrive:L,onBottomLeave:k,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,a=t.onTopLeave,u=(0,s.useRef)(!1),l=(0,s.useRef)(!1),c=(0,s.useRef)(0),d=(0,s.useRef)(null),p=(0,s.useCallback)(function(e,t){if(null!==d.current){var n=d.current,s=n.scrollTop,c=n.scrollHeight,p=n.clientHeight,f=d.current,h=t>0,m=c-p-s,v=!1;m>t&&u.current&&(i&&i(e),u.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(o&&!u.current&&o(e),f.scrollTop=c,v=!0,u.current=!0):!h&&-t>s&&(r&&!l.current&&r(e),f.scrollTop=0,v=!0,l.current=!0),v&&td(e)}},[o,i,r,a]),f=(0,s.useCallback)(function(e){p(e,e.deltaY)},[p]),h=(0,s.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,s.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;p(e,t)},[p]),g=(0,s.useCallback)(function(e){if(e){var t=!1;e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),b=(0,s.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]),(0,s.useEffect)(function(){if(n){var e=d.current;return g(e),function(){b(e)}}},[n,g,b]),function(e){d.current=e}),P=(y=(x={isEnabled:M}).isEnabled,C=void 0===(O=x.accountForScrollbars)||O,Z=(0,s.useRef)({}),w=(0,s.useRef)(null),I=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;if(C&&tp.forEach(function(e){var t=n&&n[e];Z.current[e]=t}),C&&tx<1){var o=parseInt(Z.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,r=window.innerWidth-i+o||0;Object.keys(tf).forEach(function(e){var t=tf[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(r,"px"))}t&&tg()&&(t.addEventListener("touchmove",th,ty),e&&(e.addEventListener("touchstart",tv,ty),e.addEventListener("touchmove",tm,ty))),tx+=1}},[C]),S=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;tx=Math.max(tx-1,0),C&&tx<1&&tp.forEach(function(e){var t=Z.current[e];n&&(n[e]=t)}),t&&tg()&&(t.removeEventListener("touchmove",th,ty),e&&(e.removeEventListener("touchstart",tv,ty),e.removeEventListener("touchmove",tm,ty)))}},[C]),(0,s.useEffect)(function(){if(y){var e=w.current;return I(e),function(){S(e)}}},[y,I,S]),function(e){w.current=e}),F=function(e){D(e),P(e)};return(0,v.tZ)(s.Fragment,null,M&&(0,v.tZ)("div",{onClick:tO,css:tC}),E(F))}var tw={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tI=function(e){var t=e.name,n=e.onFocus;return(0,v.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tw,value:"",onChange:function(){}})},tS=function(e){return e.label},tV=function(e){return e.label},tE=function(e){return e.value},tM=function(e){return!!e.isDisabled},tR={clearIndicator:eZ,container:ep,control:eA,dropdownIndicator:eZ,group:ez,groupHeading:eB,indicatorsContainer:ev,indicatorSeparator:eS,input:eY,loadingIndicator:eM,loadingMessage:er,menu:Q,menuList:eo,menuPortal:ec,multiValue:eX,multiValueLabel:eq,multiValueRemove:eK,noOptionsMessage:er,option:e$,placeholder:eQ,singleValue:e0,valueContainer:eh},tL={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}},tk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:X(),captureMenuScroll:!X(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:ts,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,u=n.trim,s=n.matchFrom,l=u?tu(t):t,c=u?tu(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=ta(l),c=tr(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:tS,getOptionLabel:tV,getOptionValue:tE,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:tM,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 tD(e,t,n,o){var i=tU(e,t,n),r=tz(e,t,n),a=tA(e,t),u=tH(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:a,value:u,index:o}}function tP(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return tD(e,n,t,o)}).filter(function(t){return tT(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=tD(e,n,t,o);return tT(e,r)?r:void 0}).filter(K)}function tF(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,m.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tT(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,r=t.label,a=t.value;return(!tB(e)||!i)&&tN(e,{label:r,value:a,data:o},void 0===n?"":n)}var tA=function(e,t){return e.getOptionLabel(t)},tH=function(e,t){return e.getOptionValue(t)};function tU(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tz(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=tH(e,t);return n.some(function(t){return tH(e,t)===o})}function tN(e,t,n){return!e.filterOption||e.filterOption(t,n)}var tB=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tj=1,tW=function(e){(0,f.Z)(n,e);var t=(0,h.Z)(n);function n(e){var o;if((0,d.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,n,i,r=o.props,a=r.blurInputOnSelect,u=r.isMulti,s=r.name,l=o.state.selectValue,c=u&&o.isOptionSelected(e,l),d=o.isOptionDisabled(e,l);if(c){var p,f=o.getOptionValue(e);o.setValue(p=l.filter(function(e){return o.getOptionValue(e)!==f}),"deselect-option",e)}else if(d){o.ariaOnChange(t=e,{action:"select-option",option:e,name:s});return}else u?o.setValue(n=[].concat((0,m.Z)(l),[e]),"select-option",e):o.setValue(i=e,"select-option");a&&o.blurInput()},o.removeValue=function(e){var t,n,i,r=o.props.isMulti,a=o.state.selectValue,u=o.getOptionValue(e),s=a.filter(function(e){return o.getOptionValue(e)!==u}),l=(i=s[0]||null,r?s:i);o.onChange(l,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e,t,n=o.state.selectValue;o.onChange((e=o.props.isMulti)?[]:null,{action:"clear",removedValues:n})},o.popValue=function(){var e,t,n,i=o.props.isMulti,r=o.state.selectValue,a=r[r.length-1],u=r.slice(0,r.length-1),s=(n=u[0]||null,i?u:n);o.onChange(s,{action:"pop-value",removedValue:a})},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 U.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return tA(o.props,e)},o.getOptionValue=function(e){return tH(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=tR[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,i.Z)((0,i.Z)({},e1),e.components)},o.buildCategorizedOptions=function(){return tP(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return tF(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,i.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&&j(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 tB(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||++tj),o.state.selectValue=z(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusedOption=r[a]}return o}return(0,p.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&&_(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&&(_(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(tL):(0,i.Z)((0,i.Z)({},tL),this.props.theme):tL}},{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 tU(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tz(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,r=e.inputValue,a=e.tabIndex,u=e.form,l=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),b=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":l,"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":d,role:"combobox"},l&&{"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?s.createElement(p,(0,c.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:a,form:u,type:"text",value:r},b)):s.createElement(tc,(0,c.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,disabled:t,tabIndex:a,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,l=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,v=d.placeholder,g=this.state,b=g.selectValue,x=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!p)return m?null:s.createElement(u,(0,c.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map(function(t,a){var u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,(0,c.Z)({},l,{components:{Container:o,Label:i,Remove:r},isFocused:t===x,isDisabled:f,key:u,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 O=b[0];return s.createElement(a,(0,c.Z)({},l,{data:O,isDisabled:f}),this.formatOptionLabel(O,"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 s.createElement(e,(0,c.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?s.createElement(e,(0,c.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 s.createElement(n,(0,c.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 s.createElement(e,(0,c.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,l=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,b=m.isLoading,x=m.loadingMessage,y=m.minMenuHeight,O=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,l=e.value,d=h===i,m=r?void 0:function(){return t.onOptionHover(i)},v="".concat(t.getElementId("option"),"-").concat(n);return s.createElement(p,(0,c.Z)({},f,{innerProps:{id:v,onClick:r?void 0:function(){return t.selectOption(i)},onMouseMove:m,onMouseOver:m,tabIndex:-1},data:i,isDisabled:r,isSelected:a,key:v,label:u,type:o,value:l,isFocused:d,innerRef:d?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),l="".concat(u,"-heading");return s.createElement(o,(0,c.Z)({},f,{key:u,data:n,options:r,Heading:i,headingProps:{id:l,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=x({inputValue:g});if(null===k)return null;e=s.createElement(l,f,k)}else{var D=E({inputValue:g});if(null===D)return null;e=s.createElement(d,f,D)}var P={minMenuHeight:y,maxMenuHeight:O,menuPlacement:Z,menuPosition:w,menuShouldScrollIntoView:V},F=s.createElement(et,(0,c.Z)({},f,P),function(n){var o=n.ref,i=n.placerProps,u=i.placement,l=i.maxHeight;return s.createElement(r,(0,c.Z)({},f,P,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:b,placement:u}),s.createElement(tZ,{captureEnabled:v,onTopArrive:M,onBottomArrive:R,lockEnabled:S},function(n){return s.createElement(a,(0,c.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:b,maxHeight:l,focusedOption:h}),e)}))});return I||"fixed"===w?s.createElement(u,(0,c.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 s.createElement(tI,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:r,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:r,type:"hidden",value:""});return s.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return s.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 s.createElement(e8,(0,c.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,l=r.isDisabled,d=r.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return s.createElement(o,(0,c.Z)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),s.createElement(t,(0,c.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:d}),s.createElement(i,(0,c.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,(0,c.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r,a=t.prevProps,u=t.clearFocusValueOnUpdate,s=t.inputIsHiddenAfterUpdate,l=t.ariaSelection,c=t.isFocused,d=t.prevWasFocused,p=e.options,f=e.value,h=e.menuIsOpen,m=e.inputValue,v=e.isMulti,g=z(f),b={};if(a&&(f!==a.value||p!==a.options||h!==a.menuIsOpen||m!==a.inputValue)){var x,y,O,C,Z,w=h?tF(tP(e,g)):[],I=u?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,g):null,S=(Z=t.focusedOption)&&w.indexOf(Z)>-1?Z:w[0];b={selectValue:g,focusedOption:S,focusedValue:I,clearFocusValueOnUpdate:!1}}var V=l,E=c&&d;return c&&!E&&(V={value:(n=v,o=g,r=g[0]||null,n?o:r),options:g,action:"initial-input-focus"},E=!d),(null==l?void 0:l.action)==="initial-input-focus"&&(V=null),(0,i.Z)((0,i.Z)((0,i.Z)({},b),null!=s&&e!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{}),{},{prevProps:e,ariaSelection:V,prevWasFocused:E})}}]),n}(s.Component);tW.defaultProps=tk,n(2107);var tY=(0,s.forwardRef)(function(e,t){var n,o,r,d,p,f,h,m,v,g,b,x,y,O,C,Z,w,I,S,V,E,M,R,L,k,D,P,F,T=(o=e.defaultInputValue,r=e.defaultMenuIsOpen,d=e.defaultValue,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,b=e.value,x=(0,u.Z)(e,l),y=(0,s.useState)(void 0!==p?p:void 0===o?"":o),C=(O=a(y,2))[0],Z=O[1],w=(0,s.useState)(void 0!==f?f:void 0!==r&&r),S=(I=a(w,2))[0],V=I[1],E=(0,s.useState)(void 0!==b?b:void 0===d?null:d),R=(M=a(E,2))[0],L=M[1],k=(0,s.useCallback)(function(e,t){"function"==typeof h&&h(e,t),L(e)},[h]),D=(0,s.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),Z(void 0!==n?n:e)},[m]),P=(0,s.useCallback)(function(){"function"==typeof g&&g(),V(!0)},[g]),F=(0,s.useCallback)(function(){"function"==typeof v&&v(),V(!1)},[v]),(0,i.Z)((0,i.Z)({},x),{},{inputValue:void 0!==p?p:C,menuIsOpen:void 0!==f?f:S,onChange:k,onInputChange:D,onMenuClose:F,onMenuOpen:P,value:void 0!==b?b:R}));return s.createElement(tW,(0,c.Z)({ref:t},T))})},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(98621),r=n(86522),a=n(80753);function u(e){var t=(0,i.Z)();return function(){var n,i=(0,o.Z)(e);if(t){var u=(0,o.Z)(this).constructor;n=Reflect.construct(i,arguments,u)}else n=i.apply(this,arguments);return 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
|
+
(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){t=a(t);var n=i(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,i=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=i},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+")*",x="(?:"+["["+n+"]",c,d].join("|")+")"+(g+v+b),y=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+",x].join("|"),"g");e.exports=function(e){return e.match(y)||[]}},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 tY}});var o,i=n(33028),r=n(59147);function a(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(c){l=!0,i=c}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return u}}(e,t)||(0,r.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 u=n(59740),s=n(2784),l=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],c=n(7896),d=n(9249),p=n(87371),f=n(45754),h=n(4309),m=n(51171),v=n(28165),g=n(86522),b=n(56666),x=n(28316);function y(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function O(e){return y(e).getComputedStyle(e)}function C(e){return e instanceof y(e).Node}function Z(e){return C(e)?(e.nodeName||"").toLowerCase():""}function w(e){return e instanceof y(e).HTMLElement}function I(e){return e instanceof y(e).Element}function S(e){return"undefined"!=typeof ShadowRoot&&(e instanceof y(e).ShadowRoot||e instanceof ShadowRoot)}function V(e){let{overflow:t,overflowX:n,overflowY:o,display:i}=O(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 E=Math.round;function M(e){return I(e)?e:e.contextElement}let R={x:1,y:1};function L(e){let t=M(e);if(!w(t))return R;let n=t.getBoundingClientRect(),{width:o,height:i,fallback:r}=function(e){let t=O(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=w(e),r=i?e.offsetWidth:n,a=i?e.offsetHeight:o,u=E(n)!==r||E(o)!==a;return u&&(n=r,o=a),{width:n,height:o,fallback:u}}(t),a=(r?E(n.width):n.width)/o,u=(r?E(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let k={x:0,y:0};function D(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let r=e.getBoundingClientRect(),a=M(e),u=R;t&&(o?I(o)&&(u=L(o)):u=L(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 k;let r=e?y(e):window;return!n||t&&n!==r?k:{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 f=y(a),h=o&&I(o)?y(o):o,m=f.frameElement;for(;m&&o&&h!==f;){let v=L(m),g=m.getBoundingClientRect(),b=getComputedStyle(m);g.x+=(m.clientLeft+parseFloat(b.paddingLeft))*v.x,g.y+=(m.clientTop+parseFloat(b.paddingTop))*v.y,l*=v.x,c*=v.y,d*=v.x,p*=v.y,l+=g.x,c+=g.y,m=y(m).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 P(e,t){var n;void 0===t&&(t=[]);let o=function e(t){var n;let o=function(e){var t;if("html"===Z(e))return e;let n=e.assignedSlot||e.parentNode||S(e)&&e.host||((C(e)?e.ownerDocument:e.document)||window.document).documentElement;return S(n)?n.host:n}(t);return["html","body","#document"].includes(Z(o))?o.ownerDocument.body:w(o)&&V(o)?o:e(o)}(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),r=y(o);return i?t.concat(r,r.visualViewport||[],V(o)?o:[]):t.concat(o,P(o))}var F=s.useLayoutEffect,T=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],A=function(){};function H(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function U(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(H(e,a)));return r.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var z=function(e){var t;return(t=e,Array.isArray(t))?e.filter(Boolean):"object"===(0,g.Z)(e)&&null!==e?[e]:[]},N=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,u.Z)(e,T);return(0,i.Z)({},t)},B=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 j(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function W(e){return j(e)?window.pageYOffset:e.scrollTop}function Y(e,t){if(j(e)){window.scrollTo(0,t);return}e.scrollTop=t}function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:A,i=W(e),r=t-i,a=0;!function t(){a+=10;var u,s,l,c,d=(u=a,r*((u=u/n-1)*u*u+1)+i);Y(e,d),a<n?window.requestAnimationFrame(t):o(e)}()}function _(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),i=t.offsetHeight/3;o.bottom+i>n.bottom?Y(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):o.top-i<n.top&&Y(e,Math.max(t.offsetTop-i,0))}function X(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var q="undefined"!=typeof window?window:{};q.addEventListener&&q.removeEventListener&&(q.addEventListener("p",A,{get passive(){return!0}}),q.removeEventListener("p",A,!1));function K(e){return null!=e}var J=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=a(e,1)[0];return!n.includes(t)}).reduce(function(e,t){var n=a(t,2),o=n[0],i=n[1];return e[o]=i,e},{})},$=function(e){return"auto"===e?"bottom":e},Q=function(e,t){var n,o,r=e.placement,a=e.theme,u=a.borderRadius,s=a.spacing,l=a.colors;return(0,i.Z)((n={label:"menu"},(0,b.Z)(n,r?({bottom:"top",top:"bottom"})[r]:"bottom","100%"),(0,b.Z)(n,"position","absolute"),(0,b.Z)(n,"width","100%"),(0,b.Z)(n,"zIndex",1),n),t?{}:{backgroundColor:l.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},ee=(0,s.createContext)(null),et=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,u=e.menuPosition,l=e.menuShouldScrollIntoView,c=e.theme,d=((0,s.useContext)(ee)||{}).setPortalPlacement,p=(0,s.useRef)(null),f=(0,s.useState)(o),h=a(f,2),m=h[0],v=h[1],g=a((0,s.useState)(null),2),b=g[0],x=g[1],y=c.spacing.controlHeight;return F(function(){var e=p.current;if(e){var t="fixed"===u,i=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,d=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,g=a?window.innerHeight:j(s)?window.innerHeight:s.clientHeight,b=W(s),x=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),O=v-y,C=g-m,Z=O+b,w=d-b-m,I=f-g+b+x,S=b+m-y;switch(i){case"auto":case"bottom":if(C>=h)return{placement:"bottom",maxHeight:t};if(w>=h&&!a)return r&&G(s,I,160),{placement:"bottom",maxHeight:t};if(!a&&w>=o||a&&C>=o)return r&&G(s,I,160),{placement:"bottom",maxHeight:a?C-x:w-x};if("auto"===i||a){var V=t,E=a?O:Z;return E>=o&&(V=Math.min(E-x-u,t)),{placement:"top",maxHeight:V}}if("bottom"===i)return r&&Y(s,I),{placement:"bottom",maxHeight:t};break;case"top":if(O>=h)return{placement:"top",maxHeight:t};if(Z>=h&&!a)return r&&G(s,S,160),{placement:"top",maxHeight:t};if(!a&&Z>=o||a&&O>=o){var M=t;return(!a&&Z>=o||a&&O>=o)&&(M=a?O-y:Z-y),r&&G(s,S,160),{placement:"top",maxHeight:M}}return{placement:"bottom",maxHeight:t};default:throw Error('Invalid placement provided "'.concat(i,'".'))}return l}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});v(i.maxHeight),x(i.placement),null==d||d(i.placement)}},[o,r,u,l,n,d,y]),t({ref:p,placerProps:(0,i.Z)((0,i.Z)({},e),{},{placement:b||$(r),maxHeight:m})})},en=function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menu",{menu:!0}),{ref:n},o),t)},eo=function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return(0,i.Z)({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},ei=function(e){var t=e.children,n=e.innerProps,o=e.innerRef,i=e.isMulti;return(0,v.tZ)("div",(0,c.Z)({},B(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},n),t)},er=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return(0,i.Z)({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},ea=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};ea.defaultProps={children:"No options"};var eu=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};eu.defaultProps={children:"Loading..."};var es,el,ec=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}},ed=function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,u=e.menuPlacement,l=e.menuPosition,d=(0,s.useRef)(null),p=(0,s.useRef)(null),f=(0,s.useState)($(u)),h=a(f,2),m=h[0],g=h[1],b=(0,s.useMemo)(function(){return{setPortalPlacement:g}},[]),y=a((0,s.useState)(null),2),O=y[0],C=y[1],Z=(0,s.useCallback)(function(){if(o){var e,t,n={bottom:(t=o.getBoundingClientRect()).bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width},i="fixed"===l?0:window.pageYOffset,r=n[m]+i;(r!==(null==O?void 0:O.offset)||n.left!==(null==O?void 0:O.rect.left)||n.width!==(null==O?void 0:O.rect.width))&&C({offset:r,rect:n})}},[o,l,m,null==O?void 0:O.offset,null==O?void 0:O.rect.left,null==O?void 0:O.rect.width]);F(function(){Z()},[Z]);var w=(0,s.useCallback)(function(){"function"==typeof p.current&&(p.current(),p.current=null),o&&d.current&&(p.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?[...I(e)?P(e):e.contextElement?P(e.contextElement):[],...P(t)]:[];s.forEach(e=>{let t=!I(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()}),I(e)&&!u&&c.observe(e),I(e)||!e.contextElement||u||c.observe(e.contextElement),c.observe(t));let d=u?D(e):null;return u&&function t(){let o=D(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,d.current,Z,{elementResize:"ResizeObserver"in window}))},[o,Z]);F(function(){w()},[w]);var S=(0,s.useCallback)(function(e){d.current=e,w()},[w]);if(!t&&"fixed"!==l||!O)return null;var V=(0,v.tZ)("div",(0,c.Z)({ref:S},B((0,i.Z)((0,i.Z)({},e),{},{offset:O.offset,position:l,rect:O.rect}),"menuPortal",{"menu-portal":!0}),r),n);return(0,v.tZ)(ee.Provider,{value:b},t?(0,x.createPortal)(V,t):V)},ep=function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},ef=function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,i=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"container",{"--is-disabled":o,"--is-rtl":i}),n),t)},eh=function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return(0,i.Z)({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})},em=function(e){var t=e.children,n=e.innerProps,o=e.isMulti,i=e.hasValue;return(0,v.tZ)("div",(0,c.Z)({},B(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),n),t)},ev=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},eg=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"indicatorsContainer",{indicators:!0}),n),t)},eb=["size"],ex={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ey=function(e){var t=e.size,n=(0,u.Z)(e,eb);return(0,v.tZ)("svg",(0,c.Z)({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:ex},n))},eO=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.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"}))},eC=function(e){return(0,v.tZ)(ey,(0,c.Z)({size:20},e),(0,v.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"}))},eZ=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},ew=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||(0,v.tZ)(eC,null))},eI=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||(0,v.tZ)(eO,null))},eS=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return(0,i.Z)({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},eV=function(e){var t=e.innerProps;return(0,v.tZ)("span",(0,c.Z)({},t,B(e,"indicatorSeparator",{"indicator-separator":!0})))},eE=(0,v.F4)(o||(es=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],el||(el=es.slice(0)),o=Object.freeze(Object.defineProperties(es,{raw:{value:Object.freeze(el)}})))),eM=function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,u=r.spacing.baseUnit;return(0,i.Z)({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*u})},eR=function(e){var t=e.delay,n=e.offset;return(0,v.tZ)("span",{css:(0,v.iv)({animation:"".concat(eE," 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"},"","")})},eL=function(e){var t=e.innerProps,n=e.isRtl;return(0,v.tZ)("div",(0,c.Z)({},B(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),(0,v.tZ)(eR,{delay:0,offset:n}),(0,v.tZ)(eR,{delay:160,offset:!0}),(0,v.tZ)(eR,{delay:320,offset:!n}))};eL.defaultProps={size:4};var ek,eD,eP,eF,eT,eA=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,u=r.borderRadius,s=r.spacing;return(0,i.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?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:u,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},eH=function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,i=e.innerRef,r=e.innerProps,a=e.menuIsOpen;return(0,v.tZ)("div",(0,c.Z)({ref:i},B(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":a}),r),t)},eU=["data"],ez=function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},eN=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,d=e.selectProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"group",{group:!0}),u),(0,v.tZ)(r,(0,c.Z)({},a,{selectProps:d,theme:l,getStyles:o,getClassNames:i,cx:n}),s),(0,v.tZ)("div",null,t))},eB=function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return(0,i.Z)({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},ej=function(e){var t=N(e);t.data;var n=(0,u.Z)(t,eU);return(0,v.tZ)("div",(0,c.Z)({},B(e,"groupHeading",{"group-heading":!0}),n))},eW=["innerRef","isDisabled","isHidden","inputClassName"],eY=function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,u=r.colors;return(0,i.Z)((0,i.Z)({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},e_),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:u.neutral80})},eG={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},e_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":(0,i.Z)({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},eG)},eX=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return(0,i.Z)({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},eq=function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return(0,i.Z)({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},eK=function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,u=e.isFocused;return(0,i.Z)({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:u?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},eJ=function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",n,t)},e$=function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,u=a.spacing,s=a.colors;return(0,i.Z)({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?s.primary:o?s.primary25:"transparent",color:n?s.neutral20:r?s.neutral0:"inherit",padding:"".concat(2*u.baseUnit,"px ").concat(3*u.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?s.primary:s.primary50}})},eQ=function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return(0,i.Z)({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},e0=function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return(0,i.Z)({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},e1={ClearIndicator:eI,Control:eH,DropdownIndicator:ew,DownChevron:eC,CrossIcon:eO,Group:eN,GroupHeading:ej,IndicatorsContainer:eg,IndicatorSeparator:eV,Input:function(e){var t,n=e.cx,o=e.value,r=N(e),a=r.innerRef,s=r.isDisabled,l=r.isHidden,d=r.inputClassName,p=(0,u.Z)(r,eW);return(0,v.tZ)("div",(0,c.Z)({},B(e,"input",{"input-container":!0}),{"data-value":o||""}),(0,v.tZ)("input",(0,c.Z)({className:n({input:!0},d),ref:a,style:(0,i.Z)({label:"input",color:"inherit",background:0,opacity:l?0:1,width:"100%"},eG),disabled:s},p)))},LoadingIndicator:eL,Menu:en,MenuList:ei,MenuPortal:ed,LoadingMessage:eu,NoOptionsMessage:ea,MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,a=e.isDisabled,u=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,d=n.Remove;return(0,v.tZ)(l,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),r),selectProps:s},(0,v.tZ)(c,{data:o,innerProps:(0,i.Z)({},B(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),(0,v.tZ)(d,{data:o,innerProps:(0,i.Z)((0,i.Z)({},B(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},u),selectProps:s}))},MultiValueContainer:eJ,MultiValueLabel:eJ,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({role:"button"},n),t||(0,v.tZ)(eO,{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,v.tZ)("div",(0,c.Z)({},B(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,v.tZ)("div",(0,c.Z)({},B(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:ef,SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return(0,v.tZ)("div",(0,c.Z)({},B(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:em},e2=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function e6(e,t){return!!(e===t||e2(e)&&e2(t))}function e4(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e6(e[n],t[n]))return!1;return!0}for(var e3={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"},e5=function(e){return(0,v.tZ)("span",(0,c.Z)({css:e3},e))},e9={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.isDisabled,i=e.tabSelectsValue,r=e.context;switch(r){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:"",".")}},e8=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,a=e.isFocused,u=e.selectValue,l=e.selectProps,c=e.id,d=l.ariaLiveMessages,p=l.getOptionLabel,f=l.inputValue,h=l.isMulti,m=l.isOptionDisabled,g=l.isSearchable,b=l.menuIsOpen,x=l.options,y=l.screenReaderStatus,O=l.tabSelectsValue,C=l["aria-label"],Z=l["aria-live"],w=(0,s.useMemo)(function(){return(0,i.Z)((0,i.Z)({},e9),d||{})},[d]),I=(0,s.useMemo)(function(){var e="";if(t&&w.onChange){var n,o=t.option,r=t.options,a=t.removedValue,s=t.removedValues,l=t.value,c=a||o||(Array.isArray(l)?null:l),d=c?p(c):"",f=r||s||void 0,h=f?f.map(p):[],v=(0,i.Z)({isDisabled:c&&m(c,u),label:d,labels:h},t);e=w.onChange(v)}return e},[t,w,m,u,p]),S=(0,s.useMemo)(function(){var e="",t=n||o,i=!!(n&&u&&u.includes(n));if(t&&w.onFocus){var a={focused:t,label:p(t),isDisabled:m(t,u),isSelected:i,options:r,context:t===n?"menu":"value",selectValue:u};e=w.onFocus(a)}return e},[n,o,p,m,w,r,u]),V=(0,s.useMemo)(function(){var e="";if(b&&x.length&&w.onFilter){var t=y({count:r.length});e=w.onFilter({inputValue:f,resultsMessage:t})}return e},[r,f,b,w,x,y]),E=(0,s.useMemo)(function(){var e="";return w.guidance&&(e=w.guidance({"aria-label":C,context:o?"value":b?"menu":"input",isDisabled:n&&m(n,u),isMulti:h,isSearchable:g,tabSelectsValue:O})),e},[C,n,o,h,m,g,b,w,u,O]),M="".concat(S," ").concat(V," ").concat(E),R=(0,v.tZ)(s.Fragment,null,(0,v.tZ)("span",{id:"aria-selection"},I),(0,v.tZ)("span",{id:"aria-context"},M)),L=(null==t?void 0:t.action)==="initial-input-focus";return(0,v.tZ)(s.Fragment,null,(0,v.tZ)(e5,{id:c},L&&R),(0,v.tZ)(e5,{"aria-live":Z,"aria-atomic":"false","aria-relevant":"additions text"},a&&!L&&R))},e7=[{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źẑżžẓẕƶȥɀⱬꝣ"}],te=RegExp("["+e7.map(function(e){return e.letters}).join("")+"]","g"),tt={},tn=0;tn<e7.length;tn++)for(var to=e7[tn],ti=0;ti<to.letters.length;ti++)tt[to.letters[ti]]=to.base;var tr=function(e){return e.replace(te,function(e){return tt[e]})},ta=function(e,t){void 0===t&&(t=e4);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}(tr),tu=function(e){return e.replace(/^\s+|\s+$/g,"")},ts=function(e){return"".concat(e.label," ").concat(e.value)},tl=["innerRef"];function tc(e){var t=e.innerRef,n=(0,u.Z)(e,tl),o=J(n,"onExited","in","enter","exit","appear");return(0,v.tZ)("input",(0,c.Z)({ref:t},o,{css:(0,v.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 td=function(e){e.preventDefault(),e.stopPropagation()},tp=["boxSizing","height","overflow","paddingRight","position"],tf={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function th(e){e.preventDefault()}function tm(e){e.stopPropagation()}function tv(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function tg(){return"ontouchstart"in window||navigator.maxTouchPoints}var tb=!!("undefined"!=typeof window&&window.document&&window.document.createElement),tx=0,ty={capture:!1,passive:!1},tO=function(){return document.activeElement&&document.activeElement.blur()},tC={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function tZ(e){var t,n,o,i,r,a,u,l,c,d,p,f,h,m,g,b,x,y,O,C,Z,w,I,S,V,E=e.children,M=e.lockEnabled,R=e.captureEnabled,L=e.onBottomArrive,k=e.onBottomLeave,D=(n=(t={isEnabled:void 0===R||R,onBottomArrive:L,onBottomLeave:k,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}).isEnabled,o=t.onBottomArrive,i=t.onBottomLeave,r=t.onTopArrive,a=t.onTopLeave,u=(0,s.useRef)(!1),l=(0,s.useRef)(!1),c=(0,s.useRef)(0),d=(0,s.useRef)(null),p=(0,s.useCallback)(function(e,t){if(null!==d.current){var n=d.current,s=n.scrollTop,c=n.scrollHeight,p=n.clientHeight,f=d.current,h=t>0,m=c-p-s,v=!1;m>t&&u.current&&(i&&i(e),u.current=!1),h&&l.current&&(a&&a(e),l.current=!1),h&&t>m?(o&&!u.current&&o(e),f.scrollTop=c,v=!0,u.current=!0):!h&&-t>s&&(r&&!l.current&&r(e),f.scrollTop=0,v=!0,l.current=!0),v&&td(e)}},[o,i,r,a]),f=(0,s.useCallback)(function(e){p(e,e.deltaY)},[p]),h=(0,s.useCallback)(function(e){c.current=e.changedTouches[0].clientY},[]),m=(0,s.useCallback)(function(e){var t=c.current-e.changedTouches[0].clientY;p(e,t)},[p]),g=(0,s.useCallback)(function(e){if(e){var t=!1;e.addEventListener("wheel",f,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",m,t)}},[m,h,f]),b=(0,s.useCallback)(function(e){e&&(e.removeEventListener("wheel",f,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",m,!1))},[m,h,f]),(0,s.useEffect)(function(){if(n){var e=d.current;return g(e),function(){b(e)}}},[n,g,b]),function(e){d.current=e}),P=(y=(x={isEnabled:M}).isEnabled,C=void 0===(O=x.accountForScrollbars)||O,Z=(0,s.useRef)({}),w=(0,s.useRef)(null),I=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;if(C&&tp.forEach(function(e){var t=n&&n[e];Z.current[e]=t}),C&&tx<1){var o=parseInt(Z.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,r=window.innerWidth-i+o||0;Object.keys(tf).forEach(function(e){var t=tf[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(r,"px"))}t&&tg()&&(t.addEventListener("touchmove",th,ty),e&&(e.addEventListener("touchstart",tv,ty),e.addEventListener("touchmove",tm,ty))),tx+=1}},[C]),S=(0,s.useCallback)(function(e){if(tb){var t=document.body,n=t&&t.style;tx=Math.max(tx-1,0),C&&tx<1&&tp.forEach(function(e){var t=Z.current[e];n&&(n[e]=t)}),t&&tg()&&(t.removeEventListener("touchmove",th,ty),e&&(e.removeEventListener("touchstart",tv,ty),e.removeEventListener("touchmove",tm,ty)))}},[C]),(0,s.useEffect)(function(){if(y){var e=w.current;return I(e),function(){S(e)}}},[y,I,S]),function(e){w.current=e}),F=function(e){D(e),P(e)};return(0,v.tZ)(s.Fragment,null,M&&(0,v.tZ)("div",{onClick:tO,css:tC}),E(F))}var tw={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},tI=function(e){var t=e.name,n=e.onFocus;return(0,v.tZ)("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:tw,value:"",onChange:function(){}})},tS=function(e){return e.label},tV=function(e){return e.label},tE=function(e){return e.value},tM=function(e){return!!e.isDisabled},tR={clearIndicator:eZ,container:ep,control:eA,dropdownIndicator:eZ,group:ez,groupHeading:eB,indicatorsContainer:ev,indicatorSeparator:eS,input:eY,loadingIndicator:eM,loadingMessage:er,menu:Q,menuList:eo,menuPortal:ec,multiValue:eX,multiValueLabel:eq,multiValueRemove:eK,noOptionsMessage:er,option:e$,placeholder:eQ,singleValue:e0,valueContainer:eh},tL={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}},tk={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:X(),captureMenuScroll:!X(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=(0,i.Z)({ignoreCase:!0,ignoreAccents:!0,stringify:ts,trim:!0,matchFrom:"any"},void 0),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,u=n.trim,s=n.matchFrom,l=u?tu(t):t,c=u?tu(a(e)):a(e);return o&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=ta(l),c=tr(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:tS,getOptionLabel:tV,getOptionValue:tE,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:tM,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 tD(e,t,n,o){var i=tU(e,t,n),r=tz(e,t,n),a=tA(e,t),u=tH(e,t);return{type:"option",data:t,isDisabled:i,isSelected:r,label:a,value:u,index:o}}function tP(e,t){return e.options.map(function(n,o){if("options"in n){var i=n.options.map(function(n,o){return tD(e,n,t,o)}).filter(function(t){return tT(e,t)});return i.length>0?{type:"group",data:n,options:i,index:o}:void 0}var r=tD(e,n,t,o);return tT(e,r)?r:void 0}).filter(K)}function tF(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,(0,m.Z)(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function tT(e,t){var n=e.inputValue,o=t.data,i=t.isSelected,r=t.label,a=t.value;return(!tB(e)||!i)&&tN(e,{label:r,value:a,data:o},void 0===n?"":n)}var tA=function(e,t){return e.getOptionLabel(t)},tH=function(e,t){return e.getOptionValue(t)};function tU(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function tz(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=tH(e,t);return n.some(function(t){return tH(e,t)===o})}function tN(e,t,n){return!e.filterOption||e.filterOption(t,n)}var tB=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},tj=1,tW=function(e){(0,f.Z)(n,e);var t=(0,h.Z)(n);function n(e){var o;if((0,d.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,n,i,r=o.props,a=r.blurInputOnSelect,u=r.isMulti,s=r.name,l=o.state.selectValue,c=u&&o.isOptionSelected(e,l),d=o.isOptionDisabled(e,l);if(c){var p,f=o.getOptionValue(e);o.setValue(p=l.filter(function(e){return o.getOptionValue(e)!==f}),"deselect-option",e)}else if(d){o.ariaOnChange(t=e,{action:"select-option",option:e,name:s});return}else u?o.setValue(n=[].concat((0,m.Z)(l),[e]),"select-option",e):o.setValue(i=e,"select-option");a&&o.blurInput()},o.removeValue=function(e){var t,n,i,r=o.props.isMulti,a=o.state.selectValue,u=o.getOptionValue(e),s=a.filter(function(e){return o.getOptionValue(e)!==u}),l=(i=s[0]||null,r?s:i);o.onChange(l,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e,t,n=o.state.selectValue;o.onChange((e=o.props.isMulti)?[]:null,{action:"clear",removedValues:n})},o.popValue=function(){var e,t,n,i=o.props.isMulti,r=o.state.selectValue,a=r[r.length-1],u=r.slice(0,r.length-1),s=(n=u[0]||null,i?u:n);o.onChange(s,{action:"pop-value",removedValue:a})},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 U.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return tA(o.props,e)},o.getOptionValue=function(e){return tH(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,i=tR[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,i.Z)((0,i.Z)({},e1),e.components)},o.buildCategorizedOptions=function(){return tP(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return tF(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:(0,i.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&&j(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 tB(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||++tj),o.state.selectValue=z(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.buildFocusableOptions(),a=r.indexOf(o.state.selectValue[0]);o.state.focusedOption=r[a]}return o}return(0,p.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&&_(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&&(_(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(tL):(0,i.Z)((0,i.Z)({},tL),this.props.theme):tL}},{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 tU(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return tz(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,r=e.inputValue,a=e.tabIndex,u=e.form,l=e.menuIsOpen,d=e.required,p=this.getComponents().Input,f=this.state,h=f.inputIsHidden,m=f.ariaSelection,v=this.commonProps,g=o||this.getElementId("input"),b=(0,i.Z)((0,i.Z)((0,i.Z)({"aria-autocomplete":"list","aria-expanded":l,"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":d,role:"combobox"},l&&{"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?s.createElement(p,(0,c.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:a,form:u,type:"text",value:r},b)):s.createElement(tc,(0,c.Z)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:A,onFocus:this.onInputFocus,disabled:t,tabIndex:a,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,l=this.commonProps,d=this.props,p=d.controlShouldRenderValue,f=d.isDisabled,h=d.isMulti,m=d.inputValue,v=d.placeholder,g=this.state,b=g.selectValue,x=g.focusedValue,y=g.isFocused;if(!this.hasValue()||!p)return m?null:s.createElement(u,(0,c.Z)({},l,{key:"placeholder",isDisabled:f,isFocused:y,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return b.map(function(t,a){var u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(n,(0,c.Z)({},l,{components:{Container:o,Label:i,Remove:r},isFocused:t===x,isDisabled:f,key:u,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 O=b[0];return s.createElement(a,(0,c.Z)({},l,{data:O,isDisabled:f}),this.formatOptionLabel(O,"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 s.createElement(e,(0,c.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?s.createElement(e,(0,c.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 s.createElement(n,(0,c.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 s.createElement(e,(0,c.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,l=n.LoadingMessage,d=n.NoOptionsMessage,p=n.Option,f=this.commonProps,h=this.state.focusedOption,m=this.props,v=m.captureMenuScroll,g=m.inputValue,b=m.isLoading,x=m.loadingMessage,y=m.minMenuHeight,O=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,l=e.value,d=h===i,m=r?void 0:function(){return t.onOptionHover(i)},v="".concat(t.getElementId("option"),"-").concat(n);return s.createElement(p,(0,c.Z)({},f,{innerProps:{id:v,onClick:r?void 0:function(){return t.selectOption(i)},onMouseMove:m,onMouseOver:m,tabIndex:-1},data:i,isDisabled:r,isSelected:a,key:v,label:u,type:o,value:l,isFocused:d,innerRef:d?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),l="".concat(u,"-heading");return s.createElement(o,(0,c.Z)({},f,{key:u,data:n,options:r,Heading:i,headingProps:{id:l,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=x({inputValue:g});if(null===k)return null;e=s.createElement(l,f,k)}else{var D=E({inputValue:g});if(null===D)return null;e=s.createElement(d,f,D)}var P={minMenuHeight:y,maxMenuHeight:O,menuPlacement:Z,menuPosition:w,menuShouldScrollIntoView:V},F=s.createElement(et,(0,c.Z)({},f,P),function(n){var o=n.ref,i=n.placerProps,u=i.placement,l=i.maxHeight;return s.createElement(r,(0,c.Z)({},f,P,{innerRef:o,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:b,placement:u}),s.createElement(tZ,{captureEnabled:v,onTopArrive:M,onBottomArrive:R,lockEnabled:S},function(n){return s.createElement(a,(0,c.Z)({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:b,maxHeight:l,focusedOption:h}),e)}))});return I||"fixed"===w?s.createElement(u,(0,c.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 s.createElement(tI,{name:r,onFocus:this.onValueInputFocus});if(r&&!o){if(i){if(n){var l=u.map(function(t){return e.getOptionValue(t)}).join(n);return s.createElement("input",{name:r,type:"hidden",value:l})}var c=u.length>0?u.map(function(t,n){return s.createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})}):s.createElement("input",{name:r,type:"hidden",value:""});return s.createElement("div",null,c)}var d=u[0]?this.getOptionValue(u[0]):"";return s.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 s.createElement(e8,(0,c.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,l=r.isDisabled,d=r.menuIsOpen,p=this.state.isFocused,f=this.commonProps=this.getCommonProps();return s.createElement(o,(0,c.Z)({},f,{className:a,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:p}),this.renderLiveRegion(),s.createElement(t,(0,c.Z)({},f,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:p,menuIsOpen:d}),s.createElement(i,(0,c.Z)({},f,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(n,(0,c.Z)({},f,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r,a=t.prevProps,u=t.clearFocusValueOnUpdate,s=t.inputIsHiddenAfterUpdate,l=t.ariaSelection,c=t.isFocused,d=t.prevWasFocused,p=e.options,f=e.value,h=e.menuIsOpen,m=e.inputValue,v=e.isMulti,g=z(f),b={};if(a&&(f!==a.value||p!==a.options||h!==a.menuIsOpen||m!==a.inputValue)){var x,y,O,C,Z,w=h?tF(tP(e,g)):[],I=u?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,g):null,S=(Z=t.focusedOption)&&w.indexOf(Z)>-1?Z:w[0];b={selectValue:g,focusedOption:S,focusedValue:I,clearFocusValueOnUpdate:!1}}var V=l,E=c&&d;return c&&!E&&(V={value:(n=v,o=g,r=g[0]||null,n?o:r),options:g,action:"initial-input-focus"},E=!d),(null==l?void 0:l.action)==="initial-input-focus"&&(V=null),(0,i.Z)((0,i.Z)((0,i.Z)({},b),null!=s&&e!==a?{inputIsHidden:s,inputIsHiddenAfterUpdate:void 0}:{}),{},{prevProps:e,ariaSelection:V,prevWasFocused:E})}}]),n}(s.Component);tW.defaultProps=tk,n(2107);var tY=(0,s.forwardRef)(function(e,t){var n,o,r,d,p,f,h,m,v,g,b,x,y,O,C,Z,w,I,S,V,E,M,R,L,k,D,P,F,T=(o=e.defaultInputValue,r=e.defaultMenuIsOpen,d=e.defaultValue,p=e.inputValue,f=e.menuIsOpen,h=e.onChange,m=e.onInputChange,v=e.onMenuClose,g=e.onMenuOpen,b=e.value,x=(0,u.Z)(e,l),y=(0,s.useState)(void 0!==p?p:void 0===o?"":o),C=(O=a(y,2))[0],Z=O[1],w=(0,s.useState)(void 0!==f?f:void 0!==r&&r),S=(I=a(w,2))[0],V=I[1],E=(0,s.useState)(void 0!==b?b:void 0===d?null:d),R=(M=a(E,2))[0],L=M[1],k=(0,s.useCallback)(function(e,t){"function"==typeof h&&h(e,t),L(e)},[h]),D=(0,s.useCallback)(function(e,t){var n;"function"==typeof m&&(n=m(e,t)),Z(void 0!==n?n:e)},[m]),P=(0,s.useCallback)(function(){"function"==typeof g&&g(),V(!0)},[g]),F=(0,s.useCallback)(function(){"function"==typeof v&&v(),V(!1)},[v]),(0,i.Z)((0,i.Z)({},x),{},{inputValue:void 0!==p?p:C,menuIsOpen:void 0!==f?f:S,onChange:k,onInputChange:D,onMenuClose:F,onMenuOpen:P,value:void 0!==b?b:R}));return s.createElement(tW,(0,c.Z)({ref:t},T))})},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);if(t){var u=(0,o.Z)(this).constructor;n=Reflect.construct(i,arguments,u)}else n=i.apply(this,arguments);return 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)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[574],{85513:function(e,n,t){"use strict";t.d(n,{aV:function(){return u},Bu:function(){return f}});var i=t(62230),r=t(85244),o=t(98240),l=t(52322),a=t(22715),s=t(6277),c=t(41350),d=t.n(c),u=function(e){var n=e.border,t=(0,o.Z)(e,["border"]);return(0,l.jsx)("div",(0,r.Z)((0,i.Z)({},t),{className:(0,s.Z)(d().root,(void 0===n||n)&&d()["root-border"])}))},f=function(e){var n=e.actions,t=e.children,s=e.toggle,c=(0,o.Z)(e,["actions","children","toggle"]);return(0,l.jsxs)("div",(0,r.Z)((0,i.Z)({},c),{className:d().header,children:[(0,l.jsx)(a.xv,{color:"grey11",component:"span",noWrap:!0,variant:"bold",children:t}),s,Boolean(n)?(0,l.jsx)("div",{className:d().headerActions,children:n}):null]}))}},90104:function(e,n,t){"use strict";t.d(n,{X:function(){return o}});var i=t(52322),r=t(22715),o=function(e){var n,t=e.status;switch(t){case"pending":n={icon:(0,i.jsx)(r._3,{color:"grey11"}),text:"Saving..."};break;case"failed":n={icon:(0,i.jsx)(r.I5,{name:"close",color:"tomato11",size:"medium"}),text:"Failed to save"};break;case"done":n={icon:(0,i.jsx)(r.I5,{name:"check",color:"green11",size:"medium"}),text:"Auto-saved"}}return(0,i.jsxs)(r.xu,{gap:8,alignItems:"center",children:[n.icon,(0,i.jsx)(r.xv,{color:"grey11",children:n.text})]})}},51279:function(e,n,t){"use strict";t.d(n,{Z:function(){return d}});var i=t(62230),r=t(52322),o=t(61183);t(2784);var l=t(59326),a=t(75289),s=function(e){return{subLanguage:"xml",contains:[e.COMMENT("<!--","-->",{relevance:10}),{begin:/^(\s*)(<script(\s*context="module")?>)/gm,end:/^(\s*)(<\/script>)/gm,subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,contains:[{begin:/^(\s*)(\$:)/gm,end:/(\s*)/gm,className:"keyword"},]},{begin:/^(\s*)(<style.*>)/gm,end:/^(\s*)(<\/style>)/gm,subLanguage:"css",excludeBegin:!0,excludeEnd:!0},{begin:/\{/gm,end:/\}/gm,subLanguage:"javascript",contains:[{begin:/[\{]/,end:/[\}]/,skip:!0},{begin:/([#:\/@])(if|else|each|await|then|catch|debug|html)/gm,className:"keyword",relevance:10},]},]}};o.Z.registerLanguage("svelte",s);var c=["javascript","bash","xml","html","json"],d=function(e){var n,t=e.children,s=e.lang,d=e.sx,u=e.codeStyle,f=e.codeClass,p=e.Header,x=(0,l.B7)().theme,m=s?o.Z.highlight(t,{language:"vue"===s?"html":s}).value:o.Z.highlightAuto(t,c).value;return(0,r.jsxs)(a.kC,{as:"pre",sx:d,children:[p?(0,r.jsx)(p,{}):null,(0,r.jsx)("code",{className:"hljs".concat(f?" ".concat(f):""),style:(0,i.Z)({overflowX:"auto",padding:"3px 5px",borderRadius:"6px",border:"1px solid",borderColor:String(null===(n=x.colors)||void 0===n?void 0:n.textClear)},u),dangerouslySetInnerHTML:{__html:m}})]})}},26950:function(e,n,t){"use strict";t.d(n,{J:function(){return c},k:function(){return s}});var i=t(62230),r=t(85244),o=t(98240),l=t(52322);t(2784);var a=t(75289),s=function(e){var n=e.children,t=e.sx,s=(0,o.Z)(e,["children","sx"]);return(0,l.jsx)(a.xu,(0,r.Z)((0,i.Z)({sx:(0,i.Z)({display:["block","block","flex"],flexWrap:"wrap",justifyContent:"space-between"},t)},s),{children:n}))},c=function(e){var n=e.children,t=e.cols;return(0,l.jsx)(a.xu,{sx:{flex:"0 ".concat(100/(void 0===t?2:t)-1,"%"),mb:1},children:n})}},35549:function(e,n,t){"use strict";t.d(n,{$w:function(){return i},Hq:function(){return u},tM:function(){return d}});var i,r=t(62230),o=t(85244),l=t(52322),a=t(63397);t(2784);var s,c=t(75289);(s=i||(i={}))[s.ERROR=0]="ERROR",s[s.DISABLED=1]="DISABLED",s[s.WARNING=2]="WARNING";var d=function(e){var n={"&::placeholder":{color:"#C9D0D8"}};switch(e){case i.DISABLED:return(0,o.Z)((0,r.Z)({},n),{border:"1px solid #E6E6EA",backgroundColor:"#F3F5F7"});case i.ERROR:return(0,o.Z)((0,r.Z)({},n),{border:"1px solid #E26049","&:focus":{outline:"none",borderColor:"#E26049",boxShadow:"0 0 0 3px rgba(226, 96, 73, 0.2), inset 0 1px 2px rgba(226, 96, 73, 0.2)"}});case i.WARNING:return(0,o.Z)((0,r.Z)({},n),{border:"1px solid orange","&:focus":{outline:"none",borderColor:"orange",boxShadow:"0 0 0 3px rgba(255, 165, 0, 0.2), inset 0 1px 2px rgba(255, 165, 0, 0.2)"}});default:return n}},u=function(e){var n=e.sx,t=e.field,s=e.meta,u=e.formField,f=e.fieldName,p=e.fields,x=e.initialValues,m=e.isDisabled,h=s.error?i.ERROR:m||u.disabled?i.DISABLED:void 0;return(0,l.jsxs)(c.xu,{sx:void 0===n?{}:n,children:[(0,l.jsxs)(c.__,{variant:"label.primary",htmlFor:f,children:[u.label||f,s.touched&&s.error?(0,l.jsx)(c.xv,{as:"span",variant:"text.labelError",children:s.error}):null]}),(0,l.jsx)(a.gN,(0,o.Z)((0,r.Z)({id:f,name:f,type:"text",placeholder:u.placeholder||u.label||f},u.fieldLevelValidation&&x?{validate:function(e){return u.fieldLevelValidation&&u.fieldLevelValidation({value:e,fields:p,initialId:x.id})}}:null,t),{as:c.II,sx:d(h),disabled:m||u.disabled}))]})}},20180:function(e,n,t){"use strict";t.d(n,{kp:function(){return c},sP:function(){return u},w8:function(){return f},Hq:function(){return p.Hq}});var i=t(62230),r=t(85244),o=t(52322),l=t(63397),a=t(2784),s=t(75289),c=function(e){var n=e.field,t=e.meta,c=e.fieldName,d=e.label,u=e.focusOnNewEntry,f=void 0===u||u,p=e.inputPlaceholder,x=e.buttonLabel,m=(0,a.useState)(t.value.length),h=m[0],v=m[1],g=(0,a.useRef)(Array(t.value.length));return(0,a.useEffect)(function(){g.current=g.current.slice(0,t.value.length)},[t.value.length]),(0,a.useEffect)(function(){var e=g.current.length;f&&e>h&&g.current[e-1].focus(),v(e)},[g.current.length,f,h]),(0,o.jsxs)(a.Fragment,{children:[(0,o.jsxs)(s.__,{variant:"label.primary",htmlFor:c,children:[d,t.touched&&t.error?(0,o.jsx)(s.xv,{as:"span",variant:"text.labelError",children:t.error}):null]}),(0,o.jsx)(l.F2,(0,r.Z)((0,i.Z)({name:c,id:c},n),{render:function(e){return(0,o.jsxs)("div",{children:[n.value&&n.value.length>0?n.value.map(function(n,t){return(0,o.jsxs)(s.kC,{my:2,children:[(0,o.jsx)(s.II,{placeholder:p,name:"".concat(c,".").concat(t),value:n,ref:function(e){return g.current[t]=e},onChange:function(n){var i=n.target.value;return e.replace(t,i)}}),(0,o.jsx)(s.zx,{ml:2,type:"button",variant:"secondary",onClick:function(){return e.remove(t)},children:"-"})]},"".concat(c,"-").concat(+t+1))}):null,(0,o.jsx)(s.zx,{type:"button",onClick:function(){return e.insert(n.value.length,"")},children:x})]})}}))]})},d=t(98240),u=function(e){e.initialValues;var n=e.meta,t=e.label,a=e.fieldName,c=e.onChange,u=(0,d.Z)(e,["initialValues","meta","label","fieldName","onChange"]);return(0,o.jsxs)(s.__,(0,r.Z)((0,i.Z)({variant:"label.border"},u),{children:[(0,o.jsx)(l.gN,{as:s.XZ,type:"checkbox",name:a,onChange:function(){return c(!n.value)},checked:n.value}),t]}))},f=function(e){var n=e.field,t=e.label,i=e.defaultValue,r=e.onChange,l=e.controlledValue,s=e.setControlledValue,c=e.buildControlledValue,d=(0,a.useState)(i||n.defaultValue||!1),f=d[0],p=d[1];return(0,a.useEffect)(function(){c?s(c(l,f)):s(c)},[f,l,c]),(0,o.jsx)(u,{meta:{value:f},fieldName:n.name,onChange:function(e){return p(e)&&r&&r(e)},label:"function"==typeof t?t(l,f):t})},p=t(35549)},82004:function(e,n,t){"use strict";var i=t(62230),r=t(85244),o=t(98240),l=t(52322),a=t(2784),s=t(75289),c=(0,a.forwardRef)(function(e,n){var t=e.children,a=e.Component,c=void 0===a?s.kC:a,d=e.sx,u=(0,o.Z)(e,["children","Component","sx"]);return(0,l.jsx)(c,(0,r.Z)((0,i.Z)({as:"li",sx:(0,i.Z)({p:3,mx:3,alignItems:"center",variant:"styles.listItem"},void 0===d?{}:d),ref:n},u),{children:t}))});n.Z=c},1225:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var i=t(62230),r=t(85244),o=t(52322),l=t(5446),a=t(2784),s=t(40023),c=t(951),d=t(8799),u=t(18978),f=t(59326),p=t(75289),x=t(82004),m=t(26474),h=t(98240),v=t(33710),g=t(79401),b=function(e){var n=e.text,t=e.as,l=e.sx,s=(0,h.Z)(e,["text","as","sx"]),c=(0,a.useRef)(null),d=(0,a.useState)(null),u=d[0],f=d[1],x=function(){f(c.current&&c.current.offsetWidth<c.current.scrollWidth)};return(0,a.useEffect)(function(){return x(),window.addEventListener("resize",x),function(){window.removeEventListener("resize",x)}},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.xv,(0,r.Z)((0,i.Z)({"data-for":n,"data-tip":!0,sx:(0,i.Z)({flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},void 0===l?{}:l),as:t,ref:c},s),{children:n})),u&&(0,o.jsx)(g.X,{children:(0,o.jsx)(v.Z,{id:n,type:"dark",multiline:!0,border:!0,borderColor:"black",place:"bottom",effect:"solid",children:n})})]})},y=function(e){var n,t,i=e.text,r=e.sliceFieldName,l=e.theme,a=e.WidgetIcon;return(0,o.jsxs)(p.kC,{sx:{alignItems:"center",position:"relative"},children:[(0,o.jsx)(a,{size:28,style:{color:null===(n=l.colors)||void 0===n?void 0:n.primary,marginRight:"8px",borderRadius:"4px",padding:"4px",border:"2px solid",borderColor:null===(t=l.colors)||void 0===t?void 0:t.primary}}),(0,o.jsx)(b,{text:i,as:"p",sx:{py:0,px:1,fontWeight:"label",fontSize:"15px"},"data-testid":"field-name"}),(0,o.jsx)(p.xv,{as:"p",sx:{display:["none","none","initial"],fontSize:"14px",ml:1,color:"textClear"},"data-testid":"field-id",children:r})]})},j=function(e){var n=e.item,t=e.index,h=e.deleteItem,v=e.enterEditMode,g=e.modelFieldName,b=e.renderFieldAccessor,j=e.HintElement,Z=e.CustomEditElement,k=e.CustomEditElements,C=e.widget,I=e.draggableId,S=e.testId,F=e.isRepeatableCustomType,E=e.children,w=(0,f.B7)().theme,T=n.key,_=n.value,A=_.config,M=_.type;return(0,o.jsx)(a.Fragment,{children:(0,o.jsx)(s._l,{draggableId:I,index:t,children:function(e){var s,f,I,_,N;return(0,o.jsx)(a.Fragment,{children:(0,o.jsxs)(x.Z,(0,r.Z)((0,i.Z)({"data-testid":S,ref:e.innerRef},e.draggableProps),{Component:p.xu,sx:{p:0,mx:0,my:3},children:[(0,o.jsxs)(p.kC,{sx:{width:"100%"},children:[(0,o.jsx)(m.Z,(0,i.Z)({label:"Reorder slice field (drag and drop)",Icon:u.Fm7,color:null===(s=w.colors)||void 0===s?void 0:s.icons,mr:1,mt:3},e.dragHandleProps)),(0,o.jsxs)(p.xu,{sx:{bg:"headSection",width:"100%",borderRadius:"3px",border:function(e){var n;return"1px solid ".concat(String(null===(n=e.colors)||void 0===n?void 0:n.borders))}},children:[(0,o.jsxs)(p.kC,{sx:{p:3,alignItems:"center",justifyContent:"space-between",width:"100%"},children:[(0,o.jsx)(y,{theme:w,text:(null==A?void 0:A.label)||T,sliceFieldName:b&&b(T),WidgetIcon:C.Meta.icon}),(0,o.jsxs)(p.kC,{children:[k||null,Z||(0,o.jsx)(m.Z,{size:22,Icon:c.$iz,label:"Edit field",sx:{cursor:"pointer",color:null===(f=w.colors)||void 0===f?void 0:f.icons},onClick:function(){return v([T,n.value],g,t)}}),!(!0===F&&"UID"==M)&&(0,o.jsxs)(l.v2,{children:[(0,o.jsx)(l.j2,{className:"sliceMenuButton","data-testid":"field-menu-button",style:{padding:"0",cursor:"pointer",width:"32px",height:"32px",border:"none",background:"transparent",outline:"0"},children:(0,o.jsx)(d.FQA,{size:20,color:null===(I=w.colors)||void 0===I?void 0:I.icons,style:{pointerEvents:"none"}})}),(0,o.jsx)(l.qy,{style:{background:null===(_=w.colors)||void 0===_?void 0:_.gray,border:"1px solid",borderRadius:"3px",borderColor:null===(N=w.colors)||void 0===N?void 0:N.borders,outline:"0"},children:(0,o.jsx)(l.sN,{style:{padding:"6px",cursor:"pointer"},onSelect:function(){return h(T)},children:"Delete field"})})]})]})]}),j||null]})]}),E]}))})}})})}},26474:function(e,n,t){"use strict";var i=t(62230),r=t(85244),o=t(98240),l=t(52322),a=t(75289),s=function(e,n){return n?{border:function(e){var n=e.colors;return"1px solid ".concat(n.error)}}:e?{border:function(e){var n=e.colors;return"1px solid ".concat(n.primary)}}:{border:function(e){var n=e.colors;return"1px solid ".concat(n.borders)}}},c=function(e){var n=e.sx,t=e.onClick,c=e.label,d=e.Icon,u=e.error,f=e.size,p=void 0===f?16:f,x=e.fitButton,m=e.active,h=e.useActive,v=e.activeSx,g=(0,o.Z)(e,["sx","onClick","label","Icon","error","size","fitButton","active","useActive","activeSx"]);return(0,l.jsx)(a.hU,(0,r.Z)((0,i.Z)({onClick:void 0===t?function(){return null}:t,"aria-label":c,type:"button",sx:(0,i.Z)({},void 0!==x&&x?{width:p,height:p}:null,void 0!==h&&h&&(void 0===v?s:v)(void 0!==m&&m,void 0===u?null:u),void 0===n?null:n)},g),{children:(0,l.jsx)(d,{size:p})}))};n.Z=c},79474:function(e,n,t){"use strict";var i=t(62230),r=t(17064),o=t(52322),l=t(63397),a=t(2784),s=t(75289),c=t(20180),d=t(33413),u=function(e){var n=e.fieldName,t=e.formField,u=e.fields,f=e.initialValues,p=(0,r.Z)((0,l.U$)(n),3),x=p[0],m=p[1],h=p[2],v=t.component;return(0,o.jsx)(s.xu,{sx:(0,i.Z)({mt:2,alignItems:"center"},t.type===d.h.CHECKBOX?{display:"flex",height:"130%"}:null),children:v?(0,o.jsx)(v,{meta:m,field:x,helpers:h,fieldName:n,formField:t,initialValues:f}):(0,o.jsxs)(a.Fragment,{children:[t.type===d.h.INPUT?(0,o.jsx)(c.Hq,{meta:m,field:x,fields:u,formField:t,fieldName:n,initialValues:f}):null,t.type===d.h.CHECKBOX&&(0,o.jsx)(c.sP,{meta:m,label:t.label,fieldName:n,initialValues:f,onChange:function(e){return h.setValue(e)}})]})})};n.Z=u},1411:function(e,n,t){"use strict";t.d(n,{Z:function(){return B}});var i=t(62230),r=t(85244),o=t(17064),l=t(52322),a=t(37149),s=t.n(a),c=t(59326),d=t(75289),u=t(65413),f=t(2784),p=t(92928),x=t(2978),m=t(98240),h=function(e){var n=e.children,t=(0,m.Z)(e,["children"]);return(0,l.jsx)(d.xu,(0,r.Z)((0,i.Z)({as:"ul",sx:{p:0,m:0,px:function(e){return"calc(".concat(e.space[3],"px + 8px)")},borderBottom:"1px solid #DFE1E5",position:"relative"}},t),{children:n}))};h.tabsRole="TabList";var v=function(e){var n=e.children,t=(0,m.Z)(e,["children"]),o=(0,c.B7)().theme;return(0,l.jsx)(p.OK,(0,r.Z)((0,i.Z)({},t),{style:(0,i.Z)({margin:"0 32px 0 0",top:"0",padding:"8px 0px",border:"none",bottom:"-1px",opacity:"0.8",transition:"all 150ms cubic-bezier(0.215,0.60,0.355,1)",borderRadius:"0"},t.selected?{borderBottom:"3px solid ".concat(o.colors.primary),color:o.colors.text,fontWeight:"500",opacity:"1",backgroundColor:"transparent"}:{borderBottom:"3px solid transparent"}),children:n}))};v.tabsRole="Tab";var g=function(e){var n=e.children,t=e.Footer,r=e.Header,o=e.tabs,a=e.bodySx,s=e.footerSx,c=e.defaultIndex,u=void 0===c?0:c,m=(0,f.useState)(u),g=m[0],b=m[1];return(0,l.jsx)(x.Z,{borderFooter:!0,footerSx:(0,i.Z)({p:0},s),bodySx:(0,i.Z)({p:0},a),sx:{border:"none"},Header:r,Footer:t,children:(0,l.jsxs)(p.mQ,{defaultIndex:u,onSelect:function(e){return b(e)},children:[(0,l.jsx)(h,{children:(o||[]).map(function(e){return(0,l.jsx)(v,{children:e},e)})}),f.Children.map(n,function(e,n){return(0,l.jsx)(d.xu,{sx:{p:function(e){return"calc(".concat(e.space[3],"px + 8px)")},display:n===g?"block":"none"},children:(0,l.jsx)(p.x4,{children:e})})})]})})},b=(0,f.memo)(g),y=t(26950),j=function(e){var n,t,i=e.text,r=e.sliceFieldName,o=e.theme,a=e.WidgetIcon;return(0,l.jsxs)(d.kC,{sx:{alignItems:"center"},children:[(0,l.jsx)(a,{size:28,style:{color:null===(n=o.colors)||void 0===n?void 0:n.primary,marginRight:"8px",borderRadius:"4px",padding:"4px",border:"2px solid",borderColor:null===(t=o.colors)||void 0===t?void 0:t.primary}}),(0,l.jsx)(d.xv,{as:"p","data-testid":"item-header-text",sx:{py:0,px:1,fontWeight:"label",fontSize:"15px"},children:i}),(0,l.jsx)(d.xv,{as:"p",sx:{display:["none","none","initial"],fontSize:"14px",ml:1,color:"textClear"},children:r})]})},Z=t(28199),k=t(86163),C=t(5632),I=t(65186),S=t(25978),F=function(){var e=(0,C.useRouter)();return(0,l.jsxs)(d.xu,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"60px"},children:[(0,l.jsx)(I.wr$,{size:48,color:"#C9D0D8"}),(0,l.jsx)(d.xu,{sx:{height:"12px"}}),(0,l.jsx)(d.xv,{color:"text",sx:{fontWeight:600,fontSize:"24px",lineHeight:"32px",textAlign:"center"},children:"Your mock data has moved"}),(0,l.jsx)(d.xu,{sx:{height:"8px"}}),(0,l.jsx)(d.xv,{color:"text",sx:{fontWeight:400,fontSize:"14px",lineHeight:"24px",textAlign:"center"},children:"You can now edit directly your mock data in the new Slice Simulator."}),(0,l.jsx)(d.xu,{sx:{height:"24px"}}),(0,l.jsx)(d.zx,{onClick:function(n){n.preventDefault(),window.open("".concat(e.asPath,"/simulator"),S.pq)},children:"Go to the Slice Simulator"})]})},E=t(40826),w=t(50535),T=t(69114),_=t(79474),A=t(67557),M=t(77033),N=t(63397),R=function(e){var n=e.formId,t=e.initialValues,a=e.validationSchema,s=e.onSave,c=e.FormFields,u=e.children;return(0,l.jsx)(d.xu,{children:(0,l.jsx)(N.J9,{initialValues:t,validationSchema:a,onSubmit:function(e,n){var t;s({newKey:e.id,value:Object.entries((0,m.Z)(e,["id"])).reduce(function(e,n){var t=(0,o.Z)(n,2),l=t[0],a=t[1];if((void 0===a?"undefined":(0,M.Z)(a))!==Boolean&&!a){var s,d=null===(s=c[l])||void 0===s?void 0:s.defaultValue;if(void 0!==d)return(0,r.Z)((0,i.Z)({},e),(0,A.Z)({},l,d))}return(0,r.Z)((0,i.Z)({},e),(0,A.Z)({},l,a))},{})})},children:function(e){return(0,l.jsx)(N.l0,{id:n,children:u((0,r.Z)((0,i.Z)({},e),{initialValues:t}))})}})})},L=(0,f.memo)(R);s().setAppElement("#__next");var B=function(e){var n=e.close,t=e.data,a=e.fields,s=e.onSave,f=e.zoneType,p=(0,c.B7)().theme;if(!t.isOpen)return null;var x=(0,o.Z)(t.field,2),m=x[0],h=x[1],v=(0,T.t)(E,h.config,h.type);if(!v)return(0,l.jsxs)("div",{children:[h.type," not found"]});var g=v.Meta.icon,C=v.FormFields,I=v.Form,S=v.schema,A=(0,i.Z)({},(0,k.f7)((0,w.B9)(C,"id")),v.prepareInitialValues?v.prepareInitialValues(h.config):h.config),M=function(){try{return{res:S.validateSync({type:h.type,config:A},{stripUnknown:!0})}}catch(e){return{err:e}}}(),N=M.res,R=M.err;R&&(console.error("[EditModal] Failed to validate field of type ".concat(h.type,".\n Please update model.json accordingly.")),console.error(R));var B={id:m,config:N?N.config:A},O=(0,o.Z)(C.id.validate.matches,2),V=O[0],q=O[1],D=u.object().shape({id:u.string().matches(V,q).min(3).max(35).required(),config:S.fields.config}),z="".concat("edit-modal-form","-").concat(Math.random().toString());return(0,l.jsx)(Z.Z,{isOpen:!0,shouldCloseOnOverlayClick:!0,onRequestClose:n,contentLabel:"Widget Form Modal",children:(0,l.jsx)(L,{apiId:m,formId:z,initialValues:B,validationSchema:D,FormFields:C,onSave:function(e){var t=e.newKey,r=e.value;s({apiId:m,newKey:t,value:(0,i.Z)({},h,r)}),n()},children:function(e){var t=e.values,s=t.id,c=t.config.label,u=e.isValid,x=e.isSubmitting,m=e.initialValues,h=I?(0,l.jsx)(I,(0,r.Z)((0,i.Z)({},e),{fields:a}),"field-model-tab-content"):(0,l.jsx)(y.k,{children:Object.entries(C).map(function(e){var n=(0,o.Z)(e,2),t=n[0],i=n[1];return(0,l.jsx)(y.J,{children:(0,l.jsx)(_.Z,{fieldName:(0,k.lm)(t),formField:i,fields:a,initialValues:m})},t)})},"field-model-tab-content"),v=["Field Model"],Z=[h];if("slice"===f){var S=(0,l.jsx)(d.xu,{children:(0,l.jsx)(F,{})},"mock-data-tab-content");v.push("Mock Data"),Z.push(S)}return(0,l.jsx)(b,{borderFooter:!0,footerSx:{position:"sticky",bottom:0,p:0},tabs:v,Header:function(e){var t=e.radius;return(0,l.jsxs)(d.kC,{sx:{position:"sticky",zIndex:1,top:0,p:3,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:t,borderTopRightRadius:t},children:[(0,l.jsx)(j,{theme:p,text:c||s,WidgetIcon:g}),(0,l.jsx)(d.x8,{onClick:n,type:"button"})]})},Footer:(0,l.jsxs)(d.kC,{sx:{position:"sticky",bottom:0,alignItems:"space-between",bg:"headSection",p:3},children:[(0,l.jsx)(d.xu,{sx:{ml:"auto"}}),(0,l.jsx)(d.zx,{mr:2,type:"button",onClick:n,variant:"secondary",children:"Cancel"}),(0,l.jsx)(d.zx,{form:z,type:"submit",disabled:!u&&x,sx:{fontWeight:"400",paddingBlock:"8px",paddingInline:"16px",fontSize:"14px",borderRadius:"4px"},children:"Done"})]}),children:Z})}})})}},14424:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(62230),r=t(85244),o=t(52322),l=t(37149),a=t.n(l),s=t(75289),c=t(2978),d=t(26950),u=t(28199),f=t(59326),p=function(e){var n=e.title,t=e.description,i=e.icon,r=e.onSelect,l=(0,f.B7)().theme;return(0,o.jsxs)(s.kC,{sx:{p:3,my:2,alignItems:"center",cursor:"pointer",borderRadius:"3px",border:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)},"&:hover":{border:function(e){var n=e.colors;return"1px solid ".concat(n.primary)},boxShadow:"0 0 0 3px rgba(81, 99, 186, 0.2)"}},"data-testid":n,onClick:r,children:[(0,o.jsx)(i,{label:'Select field of type "'.concat(n,'"'),style:{color:l.colors.primary,marginRight:"8px",borderRadius:"4px",padding:"5px",border:"2px solid",borderColor:l.colors.primary},size:32}),(0,o.jsxs)(s.xu,{ml:1,children:[(0,o.jsx)(s.X6,{as:"h4",sx:{fontSize:1},children:(0,o.jsx)("b",{children:n})}),(0,o.jsx)(s.xv,{as:"p",variant:"xs",children:t})]})]})};a().setAppElement("#__next");var x=function(e){var n=e.data,t=e.close,l=e.onSelect,a=e.widgetsArray;return n.isOpen?(0,o.jsx)(u.Z,{isOpen:!0,shouldCloseOnOverlayClick:!0,onRequestClose:t,contentLabel:"Widget Form Modal",children:(0,o.jsx)(c.Z,{borderFooter:!0,footerSx:{p:3},bodySx:{pt:2,pb:4,px:4},sx:{border:"none"},Header:function(e){var n=e.radius;return(0,o.jsxs)(s.kC,{sx:{position:"sticky",top:0,zIndex:1,p:3,pl:4,bg:"headSection",alignItems:"center",justifyContent:"space-between",borderTopLeftRadius:n,borderTopRightRadius:n,borderBottom:function(e){var n;return"1px solid ".concat(null===(n=e.colors)||void 0===n?void 0:n.borders)}},children:[(0,o.jsx)(s.X6,{children:"Add a new field"}),(0,o.jsx)(s.x8,{onClick:t})]})},children:(0,o.jsx)(d.k,{children:a.filter(function(e){return e}).map(function(e){var n=e.Meta,t=e.TYPE_NAME,a=e.CUSTOM_NAME;return(0,o.jsx)(d.J,{children:(0,o.jsx)(p,(0,r.Z)((0,i.Z)({},n),{onSelect:function(){return l(a||t)}}))},a||t)})})})}):null}},63928:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var i=t(22710),r=t(99267),o=t(52322),l=t(2784),a=t(49857),s=t(7604),c=t(77245),d=t(8799),u=t(65186),f=t(59326),p=t(75289),x=t(51279),m={position:"relative",top:"3px"},h=function(e){var n,t,i,r=e.code,a=e.lang,s=(0,f.B7)().theme,h=(0,l.useState)(!1),v=h[0],g=h[1],b=function(){r&&navigator.clipboard.writeText(r).then(function(){g(!0),setTimeout(function(){g(!1)},1200)})};return r?(0,o.jsxs)(p.kC,{sx:{p:2,px:3,alignItems:"center",borderTop:"1px solid",borderColor:"borders",justifyContent:"space-between"},children:[(0,o.jsxs)(p.kC,{sx:{alignItems:"center",display:["none","none","flex"],maxWidth:"80%"},children:[(0,o.jsx)(d.vcz,{size:26,color:null==s?void 0:null===(n=s.colors)||void 0===n?void 0:n.icons,style:{border:"1px solid",borderColor:null==s?void 0:null===(t=s.colors)||void 0===t?void 0:t.borders,borderRadius:"3px",padding:"4px",marginRight:"2px"}}),(0,o.jsx)(x.Z,{sx:{margin:"0px 8px",border:"none",borderRadius:"3px",fontSize:"13px"},lang:a,children:r})]}),(0,o.jsx)(p.xu,{children:(0,o.jsxs)(p.zx,{"aria-label":v?"Code snippet copied":"Copy code snippet",onClick:b,variant:"textButton",children:[v?(0,o.jsx)(u.HhX,{size:16,color:null==s?void 0:null===(i=s.colors)||void 0===i?void 0:i.success,style:m}):(0,o.jsx)(c.LhG,{size:16,style:m}),(0,o.jsx)(p.xv,{as:"span",sx:{display:["none","inline","none","inline"]},children:"\xa0Copy"})]})})]}):null},v=function(e){var n=e.show,t=e.renderHintBase,l=e.item,c=t({item:l}),d=(0,a.ZP)(c,(0,i.Z)(function(){return(0,r.__generator)(this,function(e){switch(e.label){case 0:return[4,s.j.snippets.readSnippets({fieldPath:c.split("."),model:l.value})];case 1:return[2,e.sent()]}})})),u=d.data,f=d.error;if(f&&console.error(f),!u||f)return null;var p=u.snippets||[];return p[0]?(0,o.jsx)("div",{style:{display:n?"initial":"none"},children:(0,o.jsx)(h,{code:p[0].code,lang:p[0].language})}):null}},8033:function(e,n,t){"use strict";t.d(n,{Z:function(){return Z}});var i=t(62230),r=t(85244),o=t(98240),l=t(52322),a=t(22715),s=t(63397),c=t(2784),d=t(75289),u=t(59326),f=t(35549),p=t(86163),x=t(58428),m=t(40826),h=t(55197),v=t(18978),g=t(33710),b=t(79401),y=function(e){var n=e.error;return n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.X,{children:(0,l.jsx)(g.Z,{type:"light",multiline:!0,border:!0,borderColor:"tomato"})}),(0,l.jsx)(v.Zlu,{color:"tomato","data-tip":n,style:{position:"absolute",right:"8px"},size:16})]}):null},j=function(e){var n=e.innerRef,t=(0,o.Z)(e,["innerRef"]);return(0,l.jsx)(d.II,(0,r.Z)((0,i.Z)({},t),{ref:n}))},Z=function(e){var n=e.widgetTypeName,t=e.fields,o=e.onSave,v=e.onCancelNewField,g=(0,c.useRef)(null),b=(0,u.B7)().theme,Z=(0,c.useState)(!0),k=Z[0],C=Z[1];(0,c.useEffect)(function(){g.current&&g.current.focus()},[g]);var I=m[n];if(!I)return console.error('Widget of type "'.concat(n,'" not found. This is a problem on our side!')),(0,l.jsx)("div",{children:"Unexpected error. Contact us for more info."});var S=I.FormFields,F=I.Meta.icon,E={id:S.id,label:S.label},w=(0,r.Z)((0,i.Z)({},(0,p.f7)(E),"UID"===n?{id:"uid"}:{}),{widgetTypeName:n}),T=(0,p.gc)(E),_=function(e,n,t){t(k&&!E.id.disabled?(0,r.Z)((0,i.Z)({},n),{label:e.target.value,id:(0,h.lV)(e.target.value)}):(0,r.Z)((0,i.Z)({},n),{label:e.target.value}))},A=function(e,n){n("id",e.target.value),C(!1)};return(0,l.jsx)(s.J9,{onSubmit:o,validationSchema:T,initialValues:w,children:function(e){var n,o,c=e.errors,u=e.values,p=e.setValues,m=e.setFieldValue,h=e.submitForm;return(0,l.jsx)(s.l0,{"data-testid":"new-field-form",children:(0,l.jsxs)(d.kC,{as:"li",sx:{bg:"white",p:3,px:3,mx:0,ml:"34px",alignItems:"center",variant:"styles.listItem",border:function(e){var n,t;return"1px solid ".concat((null===(n=e.colors)||void 0===n?void 0:null===(t=n.borders)||void 0===t?void 0:t.toString())||"")},flexWrap:"wrap",gap:"12px",justifyContent:"flex-start"},children:[(0,l.jsx)(F,{style:{color:null===(n=b.colors)||void 0===n?void 0:n.primary,borderRadius:"4px",padding:"4px",border:"2px solid",borderColor:null===(o=b.colors)||void 0===o?void 0:o.primary},size:28}),(0,l.jsxs)(d.kC,{sx:{alignItems:"center",flexGrow:1,gap:2,position:"relative"},children:[(0,l.jsx)(d.xv,{as:"p",sx:{fontWeight:500,whiteSpace:"nowrap"},children:"Field Name"}),(0,l.jsx)(s.gN,{onChange:function(e){return _(e,u,p)},onKeyDown:function(e){"Enter"===e.key&&h()},name:"label",placeholder:"Field Name",type:"text",validate:function(e){if(!e.length)return"This field is required"},as:j,innerRef:g,sx:(0,r.Z)((0,i.Z)({},(0,f.tM)(E.label.disabled?f.$w.DISABLED:c.label?f.$w.ERROR:void 0)),{flexGrow:1,minWidth:"128px",width:"initial"}),"aria-label":"label-input","data-testid":"new-field-name-input"}),(0,l.jsx)(y,{error:c.label})]}),(0,l.jsxs)(d.kC,{sx:{alignItems:"center",flexGrow:1,gap:2,position:"relative"},children:[(0,l.jsx)(d.xv,{as:"p",sx:{fontWeight:500,whiteSpace:"nowrap"},children:"Field ID"}),(0,l.jsx)(s.gN,{onChange:function(e){return A(e,m)},onKeyDown:function(e){"Enter"===e.key&&h()},name:"id",placeholder:"e.g. buttonLink",type:"text",disabled:E.id.disabled,validate:function(e){return(0,x.u)({value:e,fields:t,initialId:null})},as:j,sx:(0,r.Z)((0,i.Z)({},(0,f.tM)(E.id.disabled?f.$w.DISABLED:c.id?f.$w.ERROR:void 0)),{flexGrow:1,minWidth:"128px",width:"initial"}),"data-testid":"new-field-id-input"}),(0,l.jsx)(y,{error:c.id})]}),(0,l.jsxs)(d.kC,{sx:{gap:2},children:[(0,l.jsx)(a.zx,{onClick:v,color:"grey",children:"Cancel"}),(0,l.jsx)(a.zx,{onClick:function(){h()},children:"Add"})]})]})})}})}},75843:function(e,n,t){"use strict";t.d(n,{Z:function(){return w}});var i=t(62230),r=t(85244),o=t(17064),l=t(81541),a=t(52322),s=t(22715),c=t(13980),d=t(2784),u=t(65077),f=t(12189),p=t(85513),x=t(21112),m=t(14424),h=t(40023),v=t(75289),g=t(82004),b=t(1225),y=t(40826),j=t(69114),Z=t(63928),k=function(e){var n=e.fields,t=e.title,o=e.tabId,l=e.enterEditMode,s=e.enterSelectMode,c=e.onDragEnd,d=e.renderFieldAccessor,u=e.onDeleteItem,f=e.onSave,p=e.showHints,x=e.newField,m=e.renderHintBase,k=e.isRepeatable,C=e.testId,I=e.isRepeatableCustomType;return(0,a.jsx)(h.Z5,{onDragEnd:c,children:(0,a.jsx)(h.bK,{droppableId:t,children:function(e,t){return(0,a.jsxs)(v.xu,(0,r.Z)((0,i.Z)({as:"ul",ref:e.innerRef},e.droppableProps),{"data-testid":C,sx:{paddingInline:"16px !important"},children:[n.map(function(e,n){var c=e.value,x=c.config,h=c.type,C=(0,j.t)(y,x,h);if(!C)return(0,a.jsx)(g.Z,{children:(0,a.jsxs)(v.xv,{children:['Field type "',h,'" not supported']})});var S={item:e,index:n,tabId:o,widget:C,showHints:p,key:e.key,enterSelectMode:s,renderFieldAccessor:d,enterEditMode:l,parentSnapshot:t,deleteItem:u,saveItem:f,draggableId:"list-item-".concat(e.key),isRepeatableCustomType:I,testId:"list-item-".concat(e.key)},F=(0,a.jsx)(Z.Z,{item:e,show:p,isRepeatable:k,renderHintBase:m,Widgets:y,typeName:C.CUSTOM_NAME||C.TYPE_NAME});if(C.CustomListItem){var E=C.CustomListItem;return(0,a.jsx)(E,(0,r.Z)((0,i.Z)({},S),{HintElement:F}))}return(0,a.jsx)(b.Z,(0,r.Z)((0,i.Z)({},S),{HintElement:F}))}),e.placeholder,x]}))}})})},C=t(8033),I=t(73539),S=t.n(I),F=function(e){var n=e.zoneType,t=e.heading,i=void 0===t?"Your ".concat(n," has no fields yet"):t,r=e.onActionClick,o=e.actionTestId;return(0,a.jsxs)("div",{className:S().root,children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(s.xv,{variant:"bold",children:i}),(0,a.jsx)(s.xv,{color:"grey11",children:"A field is an input for content (e.g. text, images, links)."})]}),(0,a.jsx)(s.zx,{color:"grey",onClick:function(){return r()},"data-testid":o,startIcon:"add",children:"Add a field"})]})},E=function(e){var n,t,c=e.zoneType,h=e.zoneTypeFormat,v=e.tabId,g=e.title,b=e.fields,y=e.poolOfFieldsToCheck,j=e.widgetsArray,Z=e.isRepeatable,I=e.onDeleteItem,S=e.onSaveNewField,E=e.onDragEnd,w=e.EditModal,T=e.onSave,_=e.dataTip,A=e.renderHintBase,M=e.renderFieldAccessor,N=e.testId,R=e.isRepeatableCustomType,L=e.emptyStateHeading,B=e.emptyStateActionTestId,O=Object.entries(y).find(function(e){return"UID"===(0,o.Z)(e,2)[1].value.type})?j.filter(function(e){return"UID"!==e.TYPE_NAME}):j,V=(0,d.useState)(!1),q=V[0],D=V[1],z=(0,d.useState)({isOpen:!1}),P=z[0],J=z[1],H=(0,d.useState)({isOpen:!1}),W=H[0],U=H[1],$=(0,d.useState)(null),G=$[0],Y=$[1],K=function(e){J({isOpen:!0,field:e});var n=(0,o.Z)(e,2),t=n[0],i=n[1];f.Xe.track({event:"field:settings-opened",id:t,name:i.config.label,type:i.type,isInAGroup:!1,contentType:(0,x.T)(window.location.pathname)})},X=function(){U({isOpen:!0})},Q=function(){J({isOpen:!1})},ee=function(){return U({isOpen:!1})},en=function(e){Y({widgetTypeName:e,fields:b}),U({isOpen:!1})},et=function(){return Y(null)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p.Bu,{actions:b.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.xv,{color:"grey11",component:"span",noWrap:!0,children:"Show code snippets?"}),(0,a.jsx)(s.rs,{checked:q,onCheckedChange:D,size:"small",style:{flexShrink:0},"data-testid":"code-snippets-switch"}),(0,a.jsx)(s.zx,{"data-testid":"add-".concat(Z?"Repeatable":"Static","-field"),onClick:X,startIcon:"add",color:"grey",disabled:null!==G,children:"Add a field"})]}):void 0,children:g}),0!==b.length||G?b.length>0||G?(0,a.jsx)(u.xR,{children:(0,a.jsx)(k,{tabId:v,isRepeatable:Z,fields:b,showHints:q,dataTip:_,title:g,renderFieldAccessor:M,renderHintBase:A,enterEditMode:K,enterSelectMode:X,onDragEnd:E,onDeleteItem:I,onSave:T,testId:N,isRepeatableCustomType:R,newField:G&&(0,a.jsx)(C.Z,(0,r.Z)((0,i.Z)({},G),{fields:y||b,onSave:function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];S.apply(void 0,(0,l.Z)(n)),Y(null)},onCancelNewField:et}))})}):void 0:(0,a.jsx)(F,{zoneType:(n=c,t=h,"customType"===n?"page"===t?"page type":"custom type":n),heading:L,onActionClick:function(){return X()},actionTestId:B}),(0,a.jsx)(w,{data:P,close:Q,onSave:T,fields:y,zoneType:c}),(0,a.jsx)(m.Z,{data:W,close:ee,onSelect:en,widgetsArray:O})]})};E.propTypes={isRepeatable:c.bool,title:c.string.isRequired,dataTip:c.string.isRequired,onSave:c.func.isRequired,onSaveNewField:c.func.isRequired,onDragEnd:c.func.isRequired,onDeleteItem:c.func.isRequired,poolOfFieldsToCheck:(0,c.arrayOf)((0,c.shape)({key:c.string,value:c.object})),renderHintBase:c.func.isRequired,renderFieldAccessor:c.func.isRequired,widgetsArray:c.array.isRequired,fields:(0,c.arrayOf)((0,c.shape)({key:c.string.isRequired,value:(0,c.shape)({config:c.object,fields:c.array,type:c.string.isRequired})}))};var w=E},69114:function(e,n,t){"use strict";t.d(n,{t:function(){return i}});var i=function(e,n,t){if("Link"===t)switch(null==n?void 0:n.select){case"document":return e.ContentRelationship;case"media":return e.LinkToMedia;default:return e.Link}return e[t]}},58428:function(e,n,t){"use strict";t.d(n,{J:function(){return l},u:function(){return o}});var i=t(25978),r=t(77362),o=function(e){var n=e.value,t=e.fields,i=e.initialId;return n?t.find(function(e){return e.key===n})&&n!==i?'Field "'.concat(n,'" already exists.'):void 0:"Field is required"},l={label:(0,r.II)("Label",{required:"This field is required",max:!0},void 0,void 0,"Label for content creators (defaults to field type)"),id:(0,r.II)("API ID*",{min:!0,max:!0,required:"This field is required",matches:[i.xo,"No special characters allowed (except _)"]},o,void 0,"A unique identifier for the field (e.g. buttonLink)"),placeholder:(0,r.II)("Placeholder",{required:"This field is required",max:[100,"String is too long. Max: 100"]},void 0,void 0,"Placeholder text for content creators")}},77362:function(e,n,t){"use strict";t.d(n,{II:function(){return c},Jg:function(){return o}});var i=t(86163),r=t(33413),o=function(e){var n=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return{type:r.h.CHECKBOX,validate:{required:(0,i.MJ)(n,s)},required:n,label:e,defaultValue:t,yupType:"boolean"}},l=[3,"String is too short. Min: 3"],a=[35,"String is too long. Max: 35"],s=["Field is required"],c=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{min:l,max:a,required:s},t=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0,d=n||{},u=d.min,f=d.max,p=d.required,x=d.matches;return{type:r.h.INPUT,label:e,validate:{required:(0,i.MJ)(p,s),min:(0,i.MJ)(u,l),max:(0,i.MJ)(f,a),matches:x},defaultValue:o,fieldLevelValidation:t,yupType:"string",placeholder:c}}},86163:function(e,n,t){"use strict";t.d(n,{MJ:function(){return u},f7:function(){return f},gc:function(){return p},lm:function(){return d}});var i=t(67557),r=t(62230),o=t(85244),l=t(17064),a=t(81541),s=t(65413),c=t(33413),d=function(e){return"id"===e?"id":"config.".concat(e)},u=function(e,n){return Array.isArray(e)?e:"boolean"==typeof e&&e?n:null},f=function(e){return Object.entries(e).reduce(function(e,n){var t,a=(0,l.Z)(n,2),s=a[0],d=null===(t=a[1]).defaultValue?void 0:void 0!==t.defaultValue?t.defaultValue:t.type===c.h.CHECKBOX||(t.type===c.h.INPUT?"":t.type===c.h.SELECT?[]:void 0);return void 0!==d?(0,o.Z)((0,r.Z)({},e),(0,i.Z)({},s,d)):e},{})},p=function(e){return s.object().shape(Object.entries(e).filter(function(e){return e}).reduce(function(e,n){var t=(0,l.Z)(n,2),c=t[0],d=t[1],u=d.validate,f=d.yupType;if(!u)return e;if("function"==typeof u)return(0,o.Z)((0,r.Z)({},e),(0,i.Z)({},c,u(c,d)));var p=s[f]();return Object.entries(u).filter(function(e){return e&&e[1]}).forEach(function(e){var n,t=(0,l.Z)(e,2),i=t[0],r=t[1];if(r&&p[i]){p=(n=p)[i].apply(n,(0,a.Z)(Array.isArray(r)?r:[r]));return}console.warn('Invalid Yup validator for field "'.concat(c,'"'))}),(0,o.Z)((0,r.Z)({},e),(0,i.Z)({},c,p))},{})).required().default(void 0).noUnknown(!0)}},33413:function(e,n,t){"use strict";var i,r;t.d(n,{h:function(){return i}}),(r=i||(i={})).CHECKBOX="checkbox",r.INPUT="input",r.SELECT="select"},27594:function(e,n,t){"use strict";var i=t(64831);n.Z=[i.StructuredText,i.Image,i.Link,i.LinkToMedia,i.ContentRelationship,i.Select,i.Boolean,i.Date,i.Timestamp,i.Embed,i.Number,i.GeoPoint,i.Color,i.Text,]},64831:function(e,n,t){"use strict";t.r(n),t.d(n,{Boolean:function(){return v},Color:function(){return Z},ContentRelationship:function(){return H},Date:function(){return $},Embed:function(){return K},GeoPoint:function(){return Q},Image:function(){return eh},Link:function(){return B},LinkToMedia:function(){return ej},Number:function(){return eI},Select:function(){return eA},StructuredText:function(){return eG},Text:function(){return eX},Timestamp:function(){return e0},UID:function(){return e3}});var i,r,o,l,a,s=t(8799),c=t(65413),d=t(86163),u=t(58428),f=t(77362),p=t(50535),x={icon:s.XGl,title:"Boolean",description:"An input that is either true or false"},m={label:u.J.label,id:u.J.id,placeholder_false:(0,f.II)("False Placeholder",{required:!1},null,"false","Value the content creator sees (Output as 'false' in the API)."),placeholder_true:(0,f.II)("True Placeholder",{required:!1},null,"true","Value the content creator sees (Output as 'true' in the API)"),default_value:(0,f.Jg)("Default to true")},h=c.object().shape({type:c.string().matches(/^Boolean$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(m,"id"))}),v={TYPE_NAME:"Boolean",create:function(e){return{type:"Boolean",config:{label:e,default_value:!1,placeholder_true:"true",placeholder_false:"false"}}},Meta:x,schema:h,FormFields:m},g=t(65186),b={icon:g.jqW,title:"Color",description:"A color picker"},y=(0,p.zg)("Color"),j=y.TYPE_NAME,Z={create:function(e){return{type:"Color",config:{label:e,placeholder:""}}},FormFields:y.FormFields,TYPE_NAME:j,schema:y.schema,Meta:b},k=t(62230),C=t(85244),I=t(56580),S=t(93290),F=t(7781),E=t(34543),w=t(17064),T=t(52322),_=t(26950),A=t(79474),M=(0,C.Z)((0,k.Z)({},u.J),{allowTargetBlank:(0,f.Jg)("Allow target blank",!1,!1)}),N=function(e){var n=e.initialValues,t=e.fields;return(0,T.jsx)(_.k,{children:Object.entries(M).map(function(e){var i=(0,w.Z)(e,2),r=i[0],o=i[1];return(0,T.jsx)(_.J,{children:(0,T.jsx)(A.Z,{fieldName:(0,d.lm)(r),formField:o,fields:t,initialValues:n})},r)})})},R={icon:E.eR7,title:"Link",description:"A link to web, media or Prismic document"},L=c.object().shape({label:c.string().optional(),useAsTitle:c.boolean().optional(),placeholder:c.string().optional(),select:c.string().optional().oneOf(["media","document","web",null]).nullable(),customtypes:c.array(c.string()).strict().optional(),masks:c.array(c.string()).optional(),tags:c.array(c.string()).optional(),allowTargetBlank:c.boolean().strict().optional()}).required().default(void 0).noUnknown(!0),B={Meta:R,FormFields:M,schema:c.object().shape({type:c.string().matches(/^Link$/,{excludeEmptyString:!0}).required(),config:L.optional()}),Form:N,create:function(e){return{type:"Link",config:{label:e,placeholder:"",select:null}}},TYPE_NAME:"Link"},O=t(36131),V=t(75289),q={label:u.J.label,id:u.J.id,customtypes:{validate:function(){return c.array().of(c.string())}}},D=function(e){var n=e.initialValues,t=e.values,i=e.fields,r=e.setFieldValue,o=(0,I.v9)(F.Ch).filter(S.TG),l=o.map(function(e){return{value:e.local.id,label:e.local.label}}),a=t.config.customtypes?t.config.customtypes.map(function(e){var n=o.find(function(n){return n.local.id===e});return{value:null==n?void 0:n.local.id,label:null==n?void 0:n.local.label}}):null;return(0,T.jsxs)(_.k,{children:[Object.entries(q).filter(function(e){return"customtypes"!==e[0]}).map(function(e){var t=(0,w.Z)(e,2),r=t[0],o=t[1];return(0,T.jsx)(_.J,{children:(0,T.jsx)(A.Z,{fieldName:(0,d.lm)(r),formField:o,fields:i,initialValues:n})},r)}),(0,T.jsx)(_.J,{children:(0,T.jsxs)(V.xu,{sx:{mt:2,alignItems:"center"},children:[(0,T.jsx)(V.__,{htmlFor:"origin",mb:"1",children:"Types"}),(0,T.jsx)(O.ZP,{isMulti:!0,name:"origin",options:l,onChange:function(e){e&&r("config.customtypes",e.map(function(e){return e.value}))},value:a,theme:function(e){return(0,C.Z)((0,k.Z)({},e),{colors:(0,C.Z)((0,k.Z)({},e.colors),{text:"text",primary:"background"})})}})]})})]})},z={icon:g.I2R,title:"Content Relationship",description:"Define content relations & internal links"},P=L.shape({label:c.string().max(35,"String is too long. Max: 35"),select:c.string().required().matches(/^document$/,{excludeEmptyString:!0}),customtypes:c.array(c.string()).strict().optional()}),J=c.object().shape({type:c.string().matches(/^Link$/,{excludeEmptyString:!0}).required(),config:P}),H={create:function(e){return{type:"Link",config:{label:e,select:"document"}}},Meta:z,schema:J,TYPE_NAME:"Link",FormFields:q,CUSTOM_NAME:"ContentRelationship",Form:D,prepareInitialValues:function(e){var n=(0,I.v9)(F.Ch).filter(S.TG);return(null==e?void 0:e.customtypes)?(0,C.Z)((0,k.Z)({},e),{customtypes:e.customtypes.filter(function(e){return n.find(function(n){return n.local.id===e})})}):e}},W=(0,p.zg)("Date"),U=W.FormFields,$={create:function(e){return{type:"Date",config:{label:e,placeholder:""}}},FormFields:U,TYPE_NAME:"Date",schema:W.schema,Meta:{icon:g.f$3,title:"Date",description:"A calendar date picker"}},G=(0,p.zg)("Embed"),Y=G.FormFields,K={create:function(e){return{type:"Embed",config:{label:e,placeholder:""}}},FormFields:Y,TYPE_NAME:"Embed",schema:G.schema,Meta:{icon:E.xqv,title:"Embed",description:"Embed videos, songs, tweets, slides, …"}},X={label:u.J.label,id:u.J.id},Q={create:function(e){return{type:"GeoPoint",config:{label:e}}},FormFields:X,TYPE_NAME:"GeoPoint",schema:c.object().shape({type:c.string().matches(/^GeoPoint$/,{excludeEmptyString:!0}).required(),config:c.object().shape({label:c.string()}).required().default(void 0).noUnknown(!0)}),Meta:{icon:g.c7Z,title:"GeoPoint",description:"A field for storing geo-coordinates"}},ee=t(2784),en=t(63397),et=t(98240),ei=t(20180),er=t(26474),eo=function(e){var n=e.onClick,t=e.error,i=e.onDelete,r=e.active,o=e.text,l=e.sx;return(0,T.jsx)(er.Z,{useActive:!0,fitButton:!0,error:t,onClick:n,active:r,sx:(0,k.Z)({position:"relative",width:"64px",height:"64px"},l),Icon:function(){return(0,T.jsxs)(ee.Fragment,{children:[(0,T.jsxs)(V.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[(0,T.jsx)(s.jnY,{size:22}),(0,T.jsx)(V.xv,{mt:1,children:o})]}),i?(0,T.jsx)(V.Ct,{onClick:i,variant:"circle-right",children:(0,T.jsx)(g.B4e,{})}):null]})}})},el=function(e){var n=e.onClick;return(0,T.jsx)(er.Z,{fitButton:!0,onClick:n,sx:{width:"64px",height:"64px",border:function(e){var n=e.colors;return"1px solid ".concat(String(null==n?void 0:n.borders))}},Icon:function(){return(0,T.jsx)(V.kC,{sx:{flexDirection:"column",justifyContent:"center",alignItems:"center"},children:(0,T.jsx)(s.iTs,{size:34,color:"#5263BA","aria-label":"Add a thumbnail"})})}})},ea=function(e){var n=e.prefix,t=e.required,i=e.display,r=(0,w.Z)((0,en.U$)(n),2),o=(r[0],r[1]),l=void 0!==t&&t?"*":"";return i?(0,T.jsxs)(ee.Fragment,{children:[(0,T.jsx)(es,{name:"".concat(n,".name"),label:"Name".concat(l),placeholder:"main",sx:{mb:3},isConstraint:"config.constraint"===n,meta:o}),(0,T.jsx)(ec,{name:"".concat(n,".width"),label:"Width (px)".concat(l),placeholder:" ",sx:{mb:3}}),(0,T.jsx)(ec,{name:"".concat(n,".height"),label:"Height (px)".concat(l),placeholder:" "})]}):null},es=function(e){var n=e.name,t=e.label,i=e.placeholder,r=e.meta,o=e.isConstraint,l=(0,et.Z)(e,["name","label","placeholder","meta","isConstraint"]),a=(0,w.Z)((0,en.U$)(n),1)[0];return(0,T.jsx)(ei.Hq,(0,C.Z)((0,k.Z)({},l),{fieldName:n,meta:r,formField:{label:t,placeholder:i},field:o?{value:"main",readOnly:!0}:{value:a.value},variant:o?"disabled":"primary"}))},ec=function(e){var n=e.name,t=e.label,i=e.placeholder,r=(0,et.Z)(e,["name","label","placeholder"]),o=(0,w.Z)((0,en.U$)(n),2),l=o[0],a=o[1];return(0,T.jsx)(ei.Hq,(0,C.Z)((0,k.Z)({},r),{fieldName:n,formField:{label:t,placeholder:i},meta:a,field:{min:0,type:"number",value:l.value||"",onKeyDown:function(e){("e"===e.key||"-"===e.key||"+"===e.key)&&e.preventDefault()}}}))},ed=function(){return c.number().nullable().transform(function(e,n){return""===n?null:e})},eu={label:u.J.label,id:u.J.id,constraint:{validate:function(){return c.object().defined().shape({width:ed(),height:ed()})}},thumbnails:{validate:function(){return c.array().defined().of(c.object().test({name:"Thumbnails",message:"Must set name and width or height at minimum",test:function(e){if(!e.name)return!1;var n="number"==typeof e.width&&e.width,t="number"==typeof e.height&&e.height;return e.name&&(n||t)}}))}}},ef={name:"",width:"",height:""},ep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!i||n||t?n||t?"".concat(n||"auto","x").concat(t||"auto"):"...":"auto"},ex=function(e){var n=e.initialValues,t=e.values,i=e.errors,r=e.fields,o=e.touched,l=(0,ee.useState)(0),a=l[0],s=l[1],c=t.config,u=c.thumbnails,f=c.constraint;return(0,ee.useEffect)(function(){s(u.length)},[u.length]),(0,T.jsxs)(_.k,{children:[Object.entries(eu).map(function(e){var t=(0,w.Z)(e,2),i=t[0],o=t[1];return(0,T.jsx)(_.J,{children:(0,T.jsx)(A.Z,{fieldName:(0,d.lm)(i),formField:o,fields:r,initialValues:n})},i)}),(0,T.jsxs)(_.J,{children:[(0,T.jsx)(V.__,{htmlFor:"thumbnails",variant:"label.primary",sx:{mt:1,display:"flex",alignItems:"center"},children:"Responsive views*"}),(0,T.jsx)(V.Zb,{p:3,children:(0,T.jsx)(en.F2,{name:"config.thumbnails",render:function(n){var t=n.push,r=n.remove;return(0,T.jsxs)(ee.Fragment,{children:[(0,T.jsxs)(V.kC,{mb:3,children:[(0,T.jsx)(eo,{active:0===a,text:ep(f,!0),sx:{mr:2},onClick:function(){return s(0)}}),u.map(function(e,n){return(0,T.jsx)(eo,{sx:{mr:3},active:a===+n+1,text:ep(e),error:!!i.thumbnails&&!!o.thumbnails&&!!o.thumbnails[n]&&!!i.thumbnails&&!!i.thumbnails[n],onDelete:function(){return r(n)},onClick:function(){return s(+n+1)}},"thumbnail-button-".concat(+n+1))}),(0,T.jsx)(el,{onClick:function(){t(ef)}})]}),(0,T.jsx)(ea,(0,C.Z)((0,k.Z)({},e),{display:0===a,prefix:"config.constraint"})),u.map(function(n,t){return(0,ee.createElement)(ea,(0,C.Z)((0,k.Z)({},e),{required:!0,key:"thumbnail-".concat(+t+1),display:a===+t+1,prefix:"config.thumbnails[".concat(t,"]")}))})]})}})})]})]})},em=c.object().shape({type:c.string().matches(/^Image$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(eu,"id"))}),eh={Meta:{icon:s.jnY,title:"Image",description:"A responsive image field with constraints"},Form:ex,schema:em,create:function(e){return{type:"Image",config:{label:e,constraint:{},thumbnails:[]}}},FormFields:eu,TYPE_NAME:"Image"},ev=(0,k.Z)({},u.J),eg=function(e){var n=e.initialValues,t=e.fields;return(0,T.jsx)(_.k,{children:Object.entries(ev).map(function(e){var i=(0,w.Z)(e,2),r=i[0],o=i[1];return(0,T.jsx)(_.J,{children:(0,T.jsx)(A.Z,{fieldName:(0,d.lm)(r),formField:o,fields:t,initialValues:n})},r)})})},eb={icon:g.x2k,title:"Link to media",description:"A link to files, document and media"},ey=L.shape({select:c.string().required().matches(/^media$/,{excludeEmptyString:!0})}),ej={Meta:eb,FormFields:ev,schema:c.object().shape({type:c.string().matches(/^Link$/,{excludeEmptyString:!0}).required(),config:ey.optional()}),Form:eg,create:function(e){return{type:"Link",config:{label:e,placeholder:"",select:"media"}}},TYPE_NAME:"Link",CUSTOM_NAME:"LinkToMedia"},eZ=t(951),ek=(0,p.zg)("Number"),eC=ek.FormFields,eI={create:function(e){return{type:"Number",config:{label:e,placeholder:""}}},FormFields:eC,TYPE_NAME:"Number",schema:ek.schema,Meta:{icon:eZ.JUs,title:"Number",description:"A number input field"}},eS=t(33413),eF=function(e){return"use first value as default ".concat(e?'("'.concat(e,'")'):"")},eE=function(e,n){return n?e:void 0},ew=(0,C.Z)((0,k.Z)({},u.J),{default_value:{type:eS.h.CHECKBOX,yupType:"string",defaultValue:null,validate:function(){return c.string().test({name:"default_value",message:'Default value is not part of field "options" in Select',test:function(e){return void 0===e||this.parent&&this.parent.options&&this.parent.options.find(function(n){return n===e})}})},component:function(e){var n,t=null===(n=(0,en.u6)().values.config)||void 0===n?void 0:n.options[0];return(0,T.jsx)(ei.w8,(0,C.Z)((0,k.Z)({},e),{defaultValue:e.field.value,controlledValue:t,setControlledValue:e.helpers.setValue,buildControlledValue:eE,label:eF}))}},options:{yupType:"array",defaultValue:["1","2"],validate:{required:["Select requires a minimum of 2 options"],min:[2,"Choose at least 2 options"],test:{name:"non-empty values",message:"Values cannot be empty",test:function(e){return!e.some(function(e){return!e||!e.length})}}},component:function(e){return(0,T.jsx)(ei.kp,(0,k.Z)({label:"Options",inputPlaceholder:"Select option output in API (e.g. 'blueTheme')",buttonLabel:"Add option"},e))}}}),eT={icon:g.dzP,title:"Select",description:"A dropdown field of options for content creators."},e_=c.object().shape({type:c.string().matches(/^Select$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(ew,"id"))}),eA={FormFields:ew,create:function(e){return{type:"Select",config:{label:e,placeholder:"",options:["1","2"]}}},schema:e_,Meta:eT,TYPE_NAME:"Select"},eM=t(81541),eN=t(47927),eR=t(76635),eL=function(e){return function(n){var t=n.size;return(0,T.jsx)("span",{style:{fontSize:t},children:e})}},eB=[{value:"paragraph",label:"P",icon:eL("p")},{value:"preformatted",label:"PRE",icon:eL("pre")},{value:"heading1",label:"H1",icon:eL("h1")},{value:"heading2",label:"H2",icon:eL("h2")},{value:"heading3",label:"H3",icon:eL("h3")},{value:"heading4",label:"H4",icon:eL("h4")},{value:"heading5",label:"H5",icon:eL("h5")},{value:"heading6",label:"H6",icon:eL("h6")},{value:"strong",label:"Strong",icon:eL((0,T.jsx)("b",{children:"b"}))},{value:"em",label:"em",icon:eL((0,T.jsx)("em",{style:{fontFamily:"serif"},children:"I"}))},{value:"hyperlink",label:"hyperlink",icon:eL((0,T.jsx)(E.eR7,{}))},{value:"image",label:"image",icon:eL((0,T.jsx)(E.LFN,{}))},{value:"embed",label:"embed",icon:eL((0,T.jsx)(E.xqv,{}))},{value:"list-item",label:"list",icon:eL((0,T.jsx)(E.SnF,{}))},{value:"o-list-item",label:"o",icon:eL((0,T.jsx)(s.KyO,{}))},{value:"rtl",label:"rtl",icon:eL("rtl")},],eO=eB.map(function(e){return e.value}),eV=function(e){return!eO.find(function(n){return!e.includes(n)})},eq=function(e){var n=e.split(",");return eB.reduce(function(e,t){var i=t.value;return n.includes(i)?(0,eM.Z)(e).concat([i]):e},[])};function eD(e,n){return(0,eN.has)("parent",e)&&(0,eR.isObject)(e.parent)&&(0,eN.has)(n,e.parent)&&(0,eR.isString)(e.parent[n])?e.parent[n]:null}function ez(e){return function(){return c.string().test({name:e,message:"Options cannot be empty",test:function(n,t){var i=eD(t,e),r=eD(t,"single"===e?"multi":"single");return!!r&&"string"==typeof r||"string"==typeof i&&(!!i&&!!i.length||!!r&&!!r.length)&&!i.split(",").find(function(e){return!eO.includes(e)})}})}}var eP,eJ=(0,C.Z)((0,k.Z)({},u.J),{allowTargetBlank:(0,f.Jg)("Allow target blank for links"),single:{validate:ez("single")},multi:{validate:ez("multi")}}),eH=["config.single","config.multi"],eW=function(e){var n,t=e.initialValues,i=e.values,r=e.errors,o=e.fields,l=e.setFieldValue,a=i.config,s=a.single,c=a.multi,u=s?eq(s):c&&eq(c)||eO,f=(0,ee.useState)(!s),p=f[0],x=f[1],m=(0,ee.useState)(u),h=m[0],v=m[1];return(0,ee.useEffect)(function(){var e=p?1:0;l(eH[e],h.join(",")),setTimeout(function(){l(eH[1-e],void 0)},100)},[p,h]),(0,T.jsxs)(_.k,{children:[Object.entries(eJ).map(function(e){var n=(0,w.Z)(e,2),i=n[0],r=n[1];return(0,T.jsx)(_.J,{children:(0,T.jsx)(A.Z,{fieldName:(0,d.lm)(i),formField:r,fields:o,initialValues:t})},i)}),(0,T.jsxs)(_.J,{children:[(0,T.jsxs)(V.__,{htmlFor:"accept",variant:"label.primary",sx:{mt:1,display:"flex",alignItems:"center"},children:["Accept*",(0,T.jsx)(V.zx,{type:"button",variant:"buttons.textButton",onClick:function(){if(eV(h))return v([]);v(eO)},children:eV(h)?"Unselect All":"Select all"})]}),eB.map(function(e){return(0,T.jsx)(er.Z,{fitButton:!0,useActive:!0,label:e.label,size:14,Icon:e.icon,sx:{p:"16px",mb:2,mr:2,variant:"buttons.selectIcon"},active:h.includes(e.value),onClick:function(){if(h.find(function(n){return n===e.value}))return v(h.filter(function(n){return n!==e.value}));v((0,eM.Z)(h).concat([e.value]))}},e.value)}),(null===(n=r.config)||void 0===n?void 0:n[p?"multi":"single"])?(0,T.jsx)(V.xu,{sx:{position:"absolute"},children:(0,T.jsx)(V.xv,{as:"span",variant:"text.labelError",pl:0,children:r.config[p?"multi":"single"]})}):null]}),(0,T.jsx)(_.J,{children:(0,T.jsx)(V.kC,{sx:{mt:2,alignItems:"center",height:"100%"},children:(0,T.jsxs)(V.__,{variant:"label.border",children:[(0,T.jsx)(V.XZ,{checked:p,onChange:function(){return x(!p)}}),"Allow multiple paragraphs"]})})})]})},eU={icon:g.BAW,title:"Rich Text",description:"A rich text field with formatting options"},e$=c.object().shape({type:c.string().matches(/^StructuredText$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)((0,k.Z)({},eJ,{labels:{yupType:"array",validate:{}}}),"id"))}),eG={create:function(e){return{type:"StructuredText",config:{label:e,placeholder:"",allowTargetBlank:!0,multi:eO.join(",")}}},FormFields:eJ,Meta:eU,schema:e$,TYPE_NAME:"StructuredText",Form:eW},eY=u.J,eK=c.object().shape({type:c.string().matches(/^Text$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(eY,"id"))}),eX={create:function(e){return{type:"Text",config:{label:e,placeholder:""}}},Meta:{icon:g.SQS,title:"Key Text",description:"A simple text string field"},schema:eK,TYPE_NAME:"Text",FormFields:eY},eQ=u.J,e0={create:function(e){return{type:"Timestamp",config:{label:e,placeholder:""}}},schema:c.object().shape({type:c.string().matches(/^Timestamp$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(eQ,"id"))}),FormFields:eQ,TYPE_NAME:"Timestamp",Meta:{icon:g.f$3,title:"Timestamp",description:"A calendar date picker with time"}},e2={label:u.J.label,id:(0,C.Z)((0,k.Z)({},u.J.id),{validate:{required:"This field is required",matches:[/^uid$/,"Api ID must be 'uid' for this field."]},disabled:!0}),placeholder:u.J.placeholder},e1=c.object().shape({type:c.string().matches(/^UID$/,{excludeEmptyString:!0}).required(),config:(0,d.gc)((0,p.B9)(e2,"id"))}),e3={create:function(e){return{type:"UID",config:{label:e,placeholder:""}}},Meta:{icon:g.izl,title:"UID",description:"Unique Identifier"},schema:e1,TYPE_NAME:"UID",FormFields:e2}},40826:function(e,n,t){"use strict";t.r(n),t.d(n,{Boolean:function(){return l.Boolean},Color:function(){return l.Color},ContentRelationship:function(){return l.ContentRelationship},Date:function(){return l.Date},Embed:function(){return l.Embed},GeoPoint:function(){return l.GeoPoint},Group:function(){return V},Image:function(){return l.Image},Link:function(){return l.Link},LinkToMedia:function(){return l.LinkToMedia},Number:function(){return l.Number},Select:function(){return l.Select},StructuredText:function(){return l.StructuredText},Text:function(){return l.Text},Timestamp:function(){return l.Timestamp},UID:function(){return l.UID}});var i,r,o,l=t(64831),a=t(65186),s=t(65413),c=t(62230),d=t(85244),u=t(17064),f=t(52322),p=t(75289),x=t(26950),m=t(79474),h=t(86163),v=t(58428),g=t(77362),b=(0,d.Z)((0,c.Z)({},v.J),{repeat:(0,g.Jg)("Repeatable",!1,!0)}),y=function(e){var n=e.initialValues,t=e.fields,i=e.values,r=e.setFieldValue,o=i.config.repeat;return(0,f.jsxs)(x.k,{children:[Object.entries(b).filter(function(e){return"repeat"!==(0,u.Z)(e,1)[0]}).map(function(e){var i=(0,u.Z)(e,2),r=i[0],o=i[1];return(0,f.jsx)(x.J,{children:(0,f.jsx)(m.Z,{fieldName:(0,h.lm)(r),formField:o,fields:t,initialValues:n})},r)}),(0,f.jsx)(x.J,{children:(0,f.jsx)(p.xu,{sx:{mt:2,alignItems:"center",display:"flex",height:"130%"},children:(0,f.jsxs)(p.__,{variant:"label.border",sx:{mb:0},children:[(0,f.jsx)(p.XZ,{checked:o,onChange:function(){return r("config.repeat",!o)}}),"Repeatable"]})})})]})},j=t(98240),Z=t(81541),k=t(2784),C=t(40023),I=t(28316),S=t(12189),F=t(1225),E=t(1411),w=t(14424),T=t(63928),_=t(8033),A=t(69114),M=t(63987),N=t(27594),R=t(50535),L=t(55197),B=t(21112),O=function(e){var n=e.tabId,t=e.widget,o=(e.parentSnapshot,e.showHints),a=e.isRepeatable,s=e.item,x=e.draggableId,m=e.saveItem,h=e.HintElement,v=(0,j.Z)(e,["tabId","widget","parentSnapshot","showHints","isRepeatable","item","draggableId","saveItem","HintElement"]),g=(0,k.useState)(!1),b=g[0],y=g[1],O=(0,k.useState)(null),V=O[0],q=O[1],D=(0,k.useState)({isOpen:!1}),z=D[0],P=D[1],J=function(e){q({widgetTypeName:e}),y(!1)},H=function(){q(null)},W=function(){P({isOpen:!1})},U=function(e){var n,t,o,a,c=e.id,d=e.label,u=l[e.widgetTypeName].create(d),f=(n={group:M.Fl.fromSM(s.value),fieldId:c,field:u},null!==(t=(i=a=structuredClone(n.group)).config)&&void 0!==t||(i.config={}),null!==(o=(r=a.config).fields)&&void 0!==o||(r.fields={}),a.config.fields[n.fieldId]=n.field,a);m({apiId:s.key,newKey:s.key,value:M.Fl.toSM(f)}),S.Xe.track({event:"field:added",id:c,name:d,type:u.type,isInAGroup:!0,contentType:(0,B.T)(window.location.pathname)})},$=function(e){var n=e.apiId,t=e.newKey,i=e.value,r=function(e){var n,t,i=structuredClone(e.group);if(!(null===(n=i.config)||void 0===n?void 0:n.fields)||!(null===(t=e.group.config)||void 0===t?void 0:t.fields))return i;for(var r in i.config.fields={},e.group.config.fields)r===e.previousFieldId?i.config.fields[e.newFieldId]=e.field:i.config.fields[r]=e.group.config.fields[r];return i}({group:M.Fl.fromSM(s.value),previousFieldId:n,newFieldId:t,field:i});m({apiId:s.key,newKey:s.key,value:M.Fl.toSM(r)})},G=function(e){if(!(0,R.uS)(e)){var n=e.source,t=e.destination;if(t){var i=n.index,r=t.index,o=function(e){var n,t=structuredClone(e.group);if(!(null===(n=t.config)||void 0===n?void 0:n.fields))return t;var i=Object.entries(t.config.fields),r=(0,u.Z)(i.splice(e.sourceIndex,1),1)[0];return i.splice(e.destinationIndex,0,r),t.config.fields=Object.fromEntries(i),t}({group:M.Fl.fromSM(s.value),sourceIndex:i,destinationIndex:r});(0,I.flushSync)(function(){m({apiId:s.key,newKey:s.key,value:M.Fl.toSM(o)})})}}},Y=function(e){var n,t,i,r,o=(n={group:M.Fl.fromSM(s.value),fieldId:e},null===(t=(r=structuredClone(n.group)).config)||void 0===t||null===(i=t.fields)||void 0===i||delete i[n.fieldId],r);m({apiId:s.key,newKey:s.key,value:M.Fl.toSM(o)})},K=function(e){P({isOpen:!0,field:e});var n=(0,u.Z)(e,2),t=n[0],i=n[1];S.Xe.track({event:"field:settings-opened",id:t,name:i.config.label,type:i.type,isInAGroup:!0,contentType:(0,B.T)(window.location.pathname)})};return(0,f.jsxs)(k.Fragment,{children:[(0,f.jsx)(F.Z,(0,d.Z)((0,c.Z)({item:s,widget:t,draggableId:x},v),{HintElement:h,CustomEditElements:[(0,f.jsx)(p.zx,{mr:2,variant:"buttons.darkSmall",onClick:function(){return y(!0)},children:"Add Field"},"custom-edit-element-".concat(s.key)),],children:(0,f.jsx)(p.xu,{sx:{ml:4},children:(0,f.jsx)(C.Z5,{onDragEnd:G,children:(0,f.jsx)(C.bK,{droppableId:"".concat(n,"-").concat(s.key,"-zone"),children:function(e){return(0,f.jsxs)("ul",(0,d.Z)((0,c.Z)({ref:e.innerRef},e.droppableProps),{children:[s.value.config.fields.map(function(e,n){var t=e.value,i=t.config,r=t.type,u=(0,A.t)(l,i,r);if(!u)return null;var p={item:e,index:n,widget:u,key:e.key,enterEditMode:K,deleteItem:Y,renderFieldAccessor:function(n){return"item".concat((0,L.Ti)(e.key))},draggableId:"group-".concat(s.key,"-").concat(e.key,"-").concat(n),testId:"list-item-group-".concat(s.key,"-").concat(e.key)},x=(0,f.jsx)(T.Z,{item:e,show:o,isRepeatable:a,renderHintBase:function(e){var n=e.item;return"item".concat((0,L.Ti)(n.key))},Widgets:l,typeName:u.CUSTOM_NAME||u.TYPE_NAME});return(0,f.jsx)(F.Z,(0,d.Z)((0,c.Z)({},p),{HintElement:x}))}),e.placeholder,V&&(0,f.jsx)(_.Z,(0,d.Z)((0,c.Z)({},V),{fields:s.value.config.fields||[],onSave:function(){for(var e=arguments.length,n=Array(e),t=0;t<e;t++)n[t]=arguments[t];U.apply(void 0,(0,Z.Z)(n)),q(null)},onCancelNewField:H}))]}))}})})})})),(0,f.jsx)(w.Z,{data:{isOpen:b},close:function(){return y(!1)},onSelect:J,widgetsArray:N.Z}),(0,f.jsx)(E.Z,{data:z,close:W,onSave:$,fields:s.value.config.fields})]})},V={Meta:{icon:a.cC1,title:"Group",description:"A repeatable set of fields"},Form:y,FormFields:b,schema:s.object().shape({type:s.string().matches(/^Group$/,{excludeEmptyString:!0}).required(),config:s.object().shape({fields:s.array(),label:s.string(),placeholder:s.string(),repeat:s.boolean().optional()})}),create:function(e){return{type:"Group",config:{label:e,repeat:!0,fields:[]}}},CustomListItem:O,TYPE_NAME:"Group"}},50535:function(e,n,t){"use strict";t.d(n,{B9:function(){return s},Ss:function(){return d},uS:function(){return c},zg:function(){return u}});var i=t(98240),r=t(9849),o=t(65413),l=t(86163),a=t(58428),s=function(e,n){return e[n],(0,i.Z)(e,[n].map(r.Z))},c=function(e){return!e.destination||e.source.index===e.destination.index||e.source.droppableId!==e.destination.droppableId},d=function(e,n){return!e[n]&&(console.log('Could not find widget with type name "'.concat(n,'".')),!0)},u=function(e){return{TYPE_NAME:e,FormFields:a.J,schema:o.object().shape({type:o.string().test({name:"type",test:function(n){return n===e}}),config:(0,l.gc)(s(a.J,"id"))}),create:function(){return{type:e,config:(0,l.f7)(s(a.J,"id"))}}}}},21112:function(e,n,t){"use strict";function i(e){if(e.startsWith("/slices/"))return"slice";if(e.startsWith("/custom-types/"))return"custom type";if(e.startsWith("/page-types/"))return"page type";throw Error("Did not detect a content type from: ".concat(e))}t.d(n,{T:function(){return i}})},41350:function(e){e.exports={flex:"List_flex__v0QQS",row:"List_row__sBVx1 List_flex__v0QQS",root:"List_root__f9klF List_flex__v0QQS","root-border":"List_root-border__2nh4p",child:"List_child__O_eM9 List_row__sBVx1 List_flex__v0QQS",header:"List_header__J5e8m List_child__O_eM9 List_row__sBVx1 List_flex__v0QQS",headerActions:"List_headerActions__FqUvW List_row__sBVx1 List_flex__v0QQS",item:"List_item__t5SQz List_child__O_eM9 List_row__sBVx1 List_flex__v0QQS"}},73539:function(e){e.exports={root:"ZoneEmptyState_root__K6dwt"}}}]);
|