@salesforce/design-system-react 0.10.44 → 0.10.47
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/components/button/__tests__/button.browser-test.jsx +0 -1
- package/components/combobox/combobox.d.ts +3 -0
- package/components/combobox/combobox.jsx +4 -1
- package/components/component-docs.json +6 -3
- package/components/data-table/cell.jsx +2 -2
- package/components/data-table/index.jsx +134 -85
- package/components/data-table/private/context-helper.js +26 -14
- package/components/data-table/private/head.jsx +269 -260
- package/components/data-table/private/header-cell.jsx +204 -230
- package/components/data-table/private/row.jsx +140 -105
- package/components/data-table/row-actions.jsx +2 -2
- package/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/components/pill-container/private/selected-listbox.jsx +1 -0
- package/components/popover/__tests__/popover.browser-test.jsx +28 -0
- package/components/progress-indicator.d.ts +29 -8
- package/components/slider.d.ts +10 -4
- package/components/utilities/truncate/index.jsx +1 -1
- package/design-system-react-components.js +62406 -0
- package/design-system-react-components.js.map +1 -0
- package/design-system-react-components.min.js +3 -0
- package/design-system-react-components.min.js.LICENSE.txt +83 -0
- package/design-system-react-components.min.js.map +1 -0
- package/design-system-react.js +73800 -0
- package/design-system-react.js.map +1 -0
- package/design-system-react.min.js +3 -0
- package/design-system-react.min.js.LICENSE.txt +83 -0
- package/design-system-react.min.js.map +1 -0
- package/lib/components/button/__tests__/button.browser-test.jsx +0 -1
- package/lib/components/combobox/combobox.d.ts +3 -0
- package/lib/components/combobox/combobox.js +4 -1
- package/lib/components/component-docs.json +6 -3
- package/lib/components/data-table/cell.js +6 -6
- package/lib/components/data-table/index.js +131 -99
- package/lib/components/data-table/private/context-helper.js +13 -14
- package/lib/components/data-table/private/head.js +233 -252
- package/lib/components/data-table/private/header-cell.js +185 -221
- package/lib/components/data-table/private/row.js +97 -89
- package/lib/components/data-table/row-actions.js +6 -6
- package/lib/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/lib/components/pill-container/private/selected-listbox.js +3 -0
- package/lib/components/popover/__tests__/popover.browser-test.jsx +28 -0
- package/lib/components/progress-indicator.d.ts +29 -8
- package/lib/components/slider.d.ts +10 -4
- package/lib/components/utilities/truncate/index.js +2 -2
- package/lib/design-system-react-components.min.js.LICENSE.txt +83 -0
- package/lib/design-system-react.min.js.LICENSE.txt +83 -0
- package/lib/package.json +5 -5
- package/lib/utilities/keyboard-navigable-dialog.js +6 -1
- package/module/components/button/__tests__/button.browser-test.js +0 -1
- package/module/components/button/__tests__/button.browser-test.js.map +1 -1
- package/module/components/combobox/combobox.d.ts +3 -0
- package/module/components/combobox/combobox.js +4 -1
- package/module/components/combobox/combobox.js.map +1 -1
- package/module/components/component-docs.json +6 -3
- package/module/components/data-table/cell.js +6 -6
- package/module/components/data-table/cell.js.map +1 -1
- package/module/components/data-table/index.js +124 -95
- package/module/components/data-table/index.js.map +1 -1
- package/module/components/data-table/private/context-helper.js +12 -12
- package/module/components/data-table/private/context-helper.js.map +1 -1
- package/module/components/data-table/private/head.js +230 -255
- package/module/components/data-table/private/head.js.map +1 -1
- package/module/components/data-table/private/header-cell.js +184 -225
- package/module/components/data-table/private/header-cell.js.map +1 -1
- package/module/components/data-table/private/row.js +95 -87
- package/module/components/data-table/private/row.js.map +1 -1
- package/module/components/data-table/row-actions.js +6 -6
- package/module/components/data-table/row-actions.js.map +1 -1
- package/module/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/module/components/pill-container/private/selected-listbox.js +3 -0
- package/module/components/pill-container/private/selected-listbox.js.map +1 -1
- package/module/components/popover/__tests__/popover.browser-test.js +25 -0
- package/module/components/popover/__tests__/popover.browser-test.js.map +1 -1
- package/module/components/progress-indicator.d.ts +29 -8
- package/module/components/slider.d.ts +10 -4
- package/module/components/utilities/truncate/index.js +1 -1
- package/module/components/utilities/truncate/index.js.map +1 -1
- package/module/utilities/keyboard-navigable-dialog.js +4 -1
- package/module/utilities/keyboard-navigable-dialog.js.map +1 -1
- package/package.json +5 -5
- package/utilities/keyboard-navigable-dialog.js +3 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see design-system-react-components.min.js.LICENSE.txt */
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["design-system-react"]=t(require("react"),require("react-dom")):e["design-system-react"]=t(e.React,e.ReactDOM)}(window,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=61)}([function(e,t,n){e.exports=n(62)()},function(t,n){t.exports=e},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";e.exports=n(64)},function(e,t){var n=9007199254740991,r="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",i=/^(?:0|[1-9]\d*)$/;function s(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var l,c,u=Object.prototype,p=u.hasOwnProperty,f=u.toString,d=u.propertyIsEnumerable,h=(l=Object.keys,c=Object,function(e){return l(c(e))}),m=Math.max,b=!d.call({valueOf:1},"valueOf");function y(e,t){var n=x(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&w(e)}(e)&&p.call(e,"callee")&&(!d.call(e,"callee")||f.call(e)==r)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],o=n.length,a=!!o;for(var i in e)!t&&!p.call(e,i)||a&&("length"==i||g(i,o))||n.push(i);return n}function v(e,t,n){var r=e[t];p.call(e,t)&&_(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function g(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||i.test(e))&&e>-1&&e%1==0&&e<t}function O(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||u)}function _(e,t){return e===t||e!=e&&t!=t}var x=Array.isArray;function w(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}(e.length)&&!function(e){var t=S(e)?f.call(e):"";return t==o||t==a}(e)}function S(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var E,C=(E=function(e,t){if(b||O(t)||w(t))!function(e,t,n,r){n||(n={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=r?r(n[i],e[i],i,n,e):void 0;v(n,i,void 0===s?e[i]:s)}}(t,function(e){return w(e)?y(e):function(e){if(!O(e))return h(e);var t=[];for(var n in Object(e))p.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}(t),e);else for(var n in t)p.call(t,n)&&v(e,n,t[n])},function(e,t){return t=m(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,o=m(n.length-t,0),a=Array(o);++r<o;)a[r]=n[t+r];r=-1;for(var i=Array(t+1);++r<t;)i[r]=n[r];return i[t]=a,s(e,this,i)}}((function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(o=E.length>3&&"function"==typeof o?(r--,o):void 0,a&&function(e,t,n){if(!S(n))return!1;var r=typeof t;return!!("number"==r?w(n)&&g(t,n.length):"string"==r&&t in n)&&_(n[t],e)}(t[0],t[1],a)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var i=t[n];i&&E(e,i,n,o)}return e})));e.exports=C},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t,r="object"==typeof self&&self&&self.Object===Object&&self,o=n||r||Function("return this")(),a=Object.prototype,i=a.hasOwnProperty,s=a.toString,l=o.Symbol,c=l?l.toStringTag:void 0;function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":c&&c in Object(e)?function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=s.call(e);r&&(t?e[c]=n:delete e[c]);return o}(e):function(e){return s.call(e)}(e)}e.exports=function(e){if(!function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}(e))return!1;var t=u(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}).call(this,n(10))},function(e,n){e.exports=t},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",o=9007199254740991,a="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",u="[object Function]",p="[object Map]",f="[object Number]",d="[object Object]",h="[object Promise]",m="[object RegExp]",b="[object Set]",y="[object String]",v="[object Symbol]",g="[object WeakMap]",O="[object ArrayBuffer]",_="[object DataView]",x=/^\[object .+?Constructor\]$/,w=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[a]=S[i]=S[O]=S[s]=S[_]=S[l]=S[c]=S[u]=S[p]=S[f]=S[d]=S[m]=S[b]=S[y]=S[g]=!1;var E="object"==typeof e&&e&&e.Object===Object&&e,C="object"==typeof self&&self&&self.Object===Object&&self,j=E||C||Function("return this")(),N=t&&!t.nodeType&&t,T=N&&"object"==typeof n&&n&&!n.nodeType&&n,P=T&&T.exports===N,k=P&&E.process,R=function(){try{return k&&k.binding&&k.binding("util")}catch(e){}}(),I=R&&R.isTypedArray;function D(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function A(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var B,F,M,H=Array.prototype,q=Function.prototype,K=Object.prototype,W=j["__core-js_shared__"],V=q.toString,z=K.hasOwnProperty,U=(B=/[^.]+$/.exec(W&&W.keys&&W.keys.IE_PROTO||""))?"Symbol(src)_1."+B:"",G=K.toString,Y=RegExp("^"+V.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),X=P?j.Buffer:void 0,Q=j.Symbol,J=j.Uint8Array,Z=K.propertyIsEnumerable,$=H.splice,ee=Q?Q.toStringTag:void 0,te=Object.getOwnPropertySymbols,ne=X?X.isBuffer:void 0,re=(F=Object.keys,M=Object,function(e){return F(M(e))}),oe=Re(j,"DataView"),ae=Re(j,"Map"),ie=Re(j,"Promise"),se=Re(j,"Set"),le=Re(j,"WeakMap"),ce=Re(Object,"create"),ue=Le(oe),pe=Le(ae),fe=Le(ie),de=Le(se),he=Le(le),me=Q?Q.prototype:void 0,be=me?me.valueOf:void 0;function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Oe(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new ve(e);this.size=t.size}function xe(e,t){var n=Me(e),r=!n&&Fe(e),o=!n&&!r&&He(e),a=!n&&!r&&!o&&ze(e),i=n||r||o||a,s=i?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)!t&&!z.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ae(c,l))||s.push(c);return s}function we(e,t){for(var n=e.length;n--;)if(Be(e[n][0],t))return n;return-1}function Se(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ee&&ee in Object(e)?function(e){var t=z.call(e,ee),n=e[ee];try{e[ee]=void 0;var r=!0}catch(e){}var o=G.call(e);r&&(t?e[ee]=n:delete e[ee]);return o}(e):function(e){return G.call(e)}(e)}function Ee(e){return Ve(e)&&Se(e)==a}function Ce(e,t,n,r,o){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!=e&&t!=t:function(e,t,n,r,o,u){var h=Me(e),g=Me(t),x=h?i:De(e),w=g?i:De(t),S=(x=x==a?d:x)==d,E=(w=w==a?d:w)==d,C=x==w;if(C&&He(e)){if(!He(t))return!1;h=!0,S=!1}if(C&&!S)return u||(u=new _e),h||ze(e)?Te(e,t,n,r,o,u):function(e,t,n,r,o,a,i){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case O:return!(e.byteLength!=t.byteLength||!a(new J(e),new J(t)));case s:case l:case f:return Be(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case p:var u=A;case b:var d=1&r;if(u||(u=L),e.size!=t.size&&!d)return!1;var h=i.get(e);if(h)return h==t;r|=2,i.set(e,t);var g=Te(u(e),u(t),r,o,a,i);return i.delete(e),g;case v:if(be)return be.call(e)==be.call(t)}return!1}(e,t,x,n,r,o,u);if(!(1&n)){var j=S&&z.call(e,"__wrapped__"),N=E&&z.call(t,"__wrapped__");if(j||N){var T=j?e.value():e,P=N?t.value():t;return u||(u=new _e),o(T,P,n,r,u)}}if(!C)return!1;return u||(u=new _e),function(e,t,n,r,o,a){var i=1&n,s=Pe(e),l=s.length,c=Pe(t).length;if(l!=c&&!i)return!1;var u=l;for(;u--;){var p=s[u];if(!(i?p in t:z.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<l;){var m=e[p=s[u]],b=t[p];if(r)var y=i?r(b,m,p,t,e,a):r(m,b,p,e,t,a);if(!(void 0===y?m===b||o(m,b,n,r,a):y)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,u)}(e,t,n,r,Ce,o))}function je(e){return!(!We(e)||function(e){return!!U&&U in e}(e))&&(qe(e)?Y:x).test(Le(e))}function Ne(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||K,t!==r)return re(e);var t,n,r,o=[];for(var a in Object(e))z.call(e,a)&&"constructor"!=a&&o.push(a);return o}function Te(e,t,n,r,o,a){var i=1&n,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,p=!0,f=2&n?new Oe:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],h=t[u];if(r)var m=i?r(h,d,u,t,e,a):r(d,h,u,e,t,a);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!D(t,(function(e,t){if(i=t,!f.has(i)&&(d===e||o(d,e,n,r,a)))return f.push(t);var i}))){p=!1;break}}else if(d!==h&&!o(d,h,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function Pe(e){return function(e,t,n){var r=t(e);return Me(e)?r:function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}(r,n(e))}(e,Ue,Ie)}function ke(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return je(n)?n:void 0}ye.prototype.clear=function(){this.__data__=ce?ce(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(ce){var n=t[e];return n===r?void 0:n}return z.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return ce?void 0!==t[e]:z.call(t,e)},ye.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ce&&void 0===t?r:t,this},ve.prototype.clear=function(){this.__data__=[],this.size=0},ve.prototype.delete=function(e){var t=this.__data__,n=we(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},ve.prototype.get=function(e){var t=this.__data__,n=we(t,e);return n<0?void 0:t[n][1]},ve.prototype.has=function(e){return we(this.__data__,e)>-1},ve.prototype.set=function(e,t){var n=this.__data__,r=we(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(ae||ve),string:new ye}},ge.prototype.delete=function(e){var t=ke(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return ke(this,e).get(e)},ge.prototype.has=function(e){return ke(this,e).has(e)},ge.prototype.set=function(e,t){var n=ke(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Oe.prototype.add=Oe.prototype.push=function(e){return this.__data__.set(e,r),this},Oe.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new ve,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ve){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Ie=te?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}(te(e),(function(t){return Z.call(e,t)})))}:function(){return[]},De=Se;function Ae(e,t){return!!(t=null==t?o:t)&&("number"==typeof e||w.test(e))&&e>-1&&e%1==0&&e<t}function Le(e){if(null!=e){try{return V.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Be(e,t){return e===t||e!=e&&t!=t}(oe&&De(new oe(new ArrayBuffer(1)))!=_||ae&&De(new ae)!=p||ie&&De(ie.resolve())!=h||se&&De(new se)!=b||le&&De(new le)!=g)&&(De=function(e){var t=Se(e),n=t==d?e.constructor:void 0,r=n?Le(n):"";if(r)switch(r){case ue:return _;case pe:return p;case fe:return h;case de:return b;case he:return g}return t});var Fe=Ee(function(){return arguments}())?Ee:function(e){return Ve(e)&&z.call(e,"callee")&&!Z.call(e,"callee")},Me=Array.isArray;var He=ne||function(){return!1};function qe(e){if(!We(e))return!1;var t=Se(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function We(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var ze=I?function(e){return function(t){return e(t)}}(I):function(e){return Ve(e)&&Ke(e.length)&&!!S[Se(e)]};function Ue(e){return null!=(t=e)&&Ke(t.length)&&!qe(t)?xe(e):Ne(e);var t}n.exports=function(e,t){return Ce(e,t)}}).call(this,n(10),n(16)(e))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",o=1/0,a=9007199254740991,i=17976931348623157e292,s=NaN,l="[object Arguments]",c="[object Array]",u="[object Boolean]",p="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",m="[object Number]",b="[object Object]",y="[object Promise]",v="[object RegExp]",g="[object Set]",O="[object String]",_="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,j=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/^\s+|\s+$/g,P=/\\(\\)?/g,k=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,I=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,A=/^(?:0|[1-9]\d*)$/,L={};L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[l]=L[c]=L[w]=L[u]=L[S]=L[p]=L[f]=L[d]=L[h]=L[m]=L[b]=L[v]=L[g]=L[O]=L[x]=!1;var B=parseInt,F="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,H=F||M||Function("return this")(),q=t&&!t.nodeType&&t,K=q&&"object"==typeof n&&n&&!n.nodeType&&n,W=K&&K.exports===q&&F.process,V=function(){try{return W&&W.binding("util")}catch(e){}}(),z=V&&V.isTypedArray;function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function X(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Q,J,Z,$=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=H["__core-js_shared__"],re=(Q=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",oe=ee.toString,ae=te.hasOwnProperty,ie=te.toString,se=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=H.Symbol,ce=H.Uint8Array,ue=te.propertyIsEnumerable,pe=$.splice,fe=(J=Object.keys,Z=Object,function(e){return J(Z(e))}),de=Math.max,he=Ve(H,"DataView"),me=Ve(H,"Map"),be=Ve(H,"Promise"),ye=Ve(H,"Set"),ve=Ve(H,"WeakMap"),ge=Ve(Object,"create"),Oe=Ze(he),_e=Ze(me),xe=Ze(be),we=Ze(ye),Se=Ze(ve),Ee=le?le.prototype:void 0,Ce=Ee?Ee.valueOf:void 0,je=Ee?Ee.toString:void 0;function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.__data__=new Pe;++t<n;)this.add(e[t])}function Re(e){this.__data__=new Te(e)}function Ie(e,t){var n=nt(e)||tt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!ae.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}function De(e,t){for(var n=e.length;n--;)if(et(e[n][0],t))return n;return-1}function Ae(e,t){for(var n=0,r=(t=Ge(t,e)?[t]:qe(t)).length;null!=e&&n<r;)e=e[Je(t[n++])];return n&&n==r?e:void 0}function Le(e,t){return null!=e&&t in Object(e)}function Be(e,t,n,r,o){return e===t||(null==e||null==t||!it(e)&&!st(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var i=nt(e),s=nt(t),d=c,y=c;i||(d=(d=ze(e))==l?b:d);s||(y=(y=ze(t))==l?b:y);var x=d==b&&!G(e),E=y==b&&!G(t),C=d==y;if(C&&!x)return a||(a=new Re),i||ct(e)?Ke(e,t,n,r,o,a):function(e,t,n,r,o,a,i){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new ce(e),new ce(t)));case u:case p:case m:return et(+e,+t);case f:return e.name==t.name&&e.message==t.message;case v:case O:return e==t+"";case h:var s=Y;case g:var l=2&a;if(s||(s=X),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=1,i.set(e,t);var d=Ke(s(e),s(t),r,o,a,i);return i.delete(e),d;case _:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,d,n,r,o,a);if(!(2&o)){var j=x&&ae.call(e,"__wrapped__"),N=E&&ae.call(t,"__wrapped__");if(j||N){var T=j?e.value():e,P=N?t.value():t;return a||(a=new Re),n(T,P,r,o,a)}}if(!C)return!1;return a||(a=new Re),function(e,t,n,r,o,a){var i=2&o,s=ut(e),l=s.length,c=ut(t).length;if(l!=c&&!i)return!1;var u=l;for(;u--;){var p=s[u];if(!(i?p in t:ae.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<l;){var m=e[p=s[u]],b=t[p];if(r)var y=i?r(b,m,p,t,e,a):r(m,b,p,e,t,a);if(!(void 0===y?m===b||n(m,b,r,o,a):y)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,a)}(e,t,Be,n,r,o))}function Fe(e){return!(!it(e)||function(e){return!!re&&re in e}(e))&&(ot(e)||G(e)?se:I).test(Ze(e))}function Me(e){return"function"==typeof e?e:null==e?pt:"object"==typeof e?nt(e)?function(e,t){if(Ge(e)&&Ye(t))return Xe(Je(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ge(t,e)?[t]:qe(t);var r,o=-1,a=t.length;for(;++o<a;){var i=Je(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}if(r)return r;return!!(a=e?e.length:0)&&at(a)&&Ue(i,a)&&(nt(e)||tt(e))}(e,t,Le)}(n,e):Be(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ut(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ye(o)]}return t}(e);if(1==t.length&&t[0][2])return Xe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=n[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new Re;if(r)var f=r(c,u,l,e,t,p);if(!(void 0===f?Be(u,c,r,3,p):f))return!1}}return!0}(n,e,t)}}(e):Ge(t=e)?(n=Je(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ae(t,e)}}(t);var t,n}function He(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||te,t!==r)return fe(e);var t,n,r,o=[];for(var a in Object(e))ae.call(e,a)&&"constructor"!=a&&o.push(a);return o}function qe(e){return nt(e)?e:Qe(e)}function Ke(e,t,n,r,o,a){var i=2&o,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,p=!0,f=1&o?new ke:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],h=t[u];if(r)var m=i?r(h,d,u,t,e,a):r(d,h,u,e,t,a);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!U(t,(function(e,t){if(!f.has(t)&&(d===e||n(d,e,r,o,a)))return f.add(t)}))){p=!1;break}}else if(d!==h&&!n(d,h,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function We(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ne.prototype.clear=function(){this.__data__=ge?ge(null):{}},Ne.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ne.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===r?void 0:n}return ae.call(t,e)?t[e]:void 0},Ne.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:ae.call(t,e)},Ne.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?r:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=De(t,e);return!(n<0)&&(n==t.length-1?t.pop():pe.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return De(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=De(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ne,map:new(me||Te),string:new Ne}},Pe.prototype.delete=function(e){return We(this,e).delete(e)},Pe.prototype.get=function(e){return We(this,e).get(e)},Pe.prototype.has=function(e){return We(this,e).has(e)},Pe.prototype.set=function(e,t){return We(this,e).set(e,t),this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,r),this},ke.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.clear=function(){this.__data__=new Te},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!me||r.length<199)return r.push([e,t]),this;n=this.__data__=new Pe(r)}return n.set(e,t),this};var ze=function(e){return ie.call(e)};function Ue(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t){if(nt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!lt(e))||(C.test(e)||!E.test(e)||null!=t&&e in Object(t))}function Ye(e){return e==e&&!it(e)}function Xe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(he&&ze(new he(new ArrayBuffer(1)))!=S||me&&ze(new me)!=h||be&&ze(be.resolve())!=y||ye&&ze(new ye)!=g||ve&&ze(new ve)!=x)&&(ze=function(e){var t=ie.call(e),n=t==b?e.constructor:void 0,r=n?Ze(n):void 0;if(r)switch(r){case Oe:return S;case _e:return h;case xe:return y;case we:return g;case Se:return x}return t});var Qe=$e((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(lt(e))return je?je.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return j.test(e)&&n.push(""),e.replace(N,(function(e,t,r,o){n.push(r?o.replace(P,"$1"):t||e)})),n}));function Je(e){if("string"==typeof e||lt(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $e(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new($e.Cache||Pe),n}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return st(e)&&rt(e)}(e)&&ae.call(e,"callee")&&(!ue.call(e,"callee")||ie.call(e)==l)}$e.Cache=Pe;var nt=Array.isArray;function rt(e){return null!=e&&at(e.length)&&!ot(e)}function ot(e){var t=it(e)?ie.call(e):"";return t==d||"[object GeneratorFunction]"==t}function at(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function it(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==typeof e}function lt(e){return"symbol"==typeof e||st(e)&&ie.call(e)==_}var ct=z?function(e){return function(t){return e(t)}}(z):function(e){return st(e)&&at(e.length)&&!!L[ie.call(e)]};function ut(e){return rt(e)?Ie(e):He(e)}function pt(e){return e}n.exports=function(e,t,n){var r=e?e.length:0;if(!r)return-1;var a,l,c=null==n?0:(a=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(lt(e))return s;if(it(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=it(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(T,"");var n=R.test(e);return n||D.test(e)?B(e.slice(2),n?2:8):k.test(e)?s:+e}(e))===o||e===-1/0?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}(n),l=a%1,a==a?l?a-l:a:0);return c<0&&(c=de(r+c,0)),function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,Me(t),c)}}).call(this,n(10),n(16)(e))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){(function(t){var n="[object Symbol]",r=/[\\^$.*+?()[\]{}|]/g,o=RegExp(r.source),a="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,s=a||i||Function("return this")(),l=Object.prototype.toString,c=s.Symbol,u=c?c.prototype:void 0,p=u?u.toString:void 0;function f(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&l.call(e)==n}(e))return p?p.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}e.exports=function(e){var t;return(e=null==(t=e)?"":f(t))&&o.test(e)?e.replace(r,"\\$&"):e}}).call(this,n(10))},function(e,t,n){(function(e,n){var r="__lodash_hash_undefined__",o=1/0,a=9007199254740991,i=17976931348623157e292,s=NaN,l="[object Arguments]",c="[object Array]",u="[object Boolean]",p="[object Date]",f="[object Error]",d="[object Function]",h="[object Map]",m="[object Number]",b="[object Object]",y="[object Promise]",v="[object RegExp]",g="[object Set]",O="[object String]",_="[object Symbol]",x="[object WeakMap]",w="[object ArrayBuffer]",S="[object DataView]",E=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/,j=/^\./,N=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,T=/^\s+|\s+$/g,P=/\\(\\)?/g,k=/^[-+]0x[0-9a-f]+$/i,R=/^0b[01]+$/i,I=/^\[object .+?Constructor\]$/,D=/^0o[0-7]+$/i,A=/^(?:0|[1-9]\d*)$/,L={};L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L[l]=L[c]=L[w]=L[u]=L[S]=L[p]=L[f]=L[d]=L[h]=L[m]=L[b]=L[v]=L[g]=L[O]=L[x]=!1;var B=parseInt,F="object"==typeof e&&e&&e.Object===Object&&e,M="object"==typeof self&&self&&self.Object===Object&&self,H=F||M||Function("return this")(),q=t&&!t.nodeType&&t,K=q&&"object"==typeof n&&n&&!n.nodeType&&n,W=K&&K.exports===q&&F.process,V=function(){try{return W&&W.binding("util")}catch(e){}}(),z=V&&V.isTypedArray;function U(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function Y(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function X(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var Q,J,Z,$=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=H["__core-js_shared__"],re=(Q=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+Q:"",oe=ee.toString,ae=te.hasOwnProperty,ie=te.toString,se=RegExp("^"+oe.call(ae).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=H.Symbol,ce=H.Uint8Array,ue=te.propertyIsEnumerable,pe=$.splice,fe=(J=Object.keys,Z=Object,function(e){return J(Z(e))}),de=Math.max,he=Ve(H,"DataView"),me=Ve(H,"Map"),be=Ve(H,"Promise"),ye=Ve(H,"Set"),ve=Ve(H,"WeakMap"),ge=Ve(Object,"create"),Oe=Ze(he),_e=Ze(me),xe=Ze(be),we=Ze(ye),Se=Ze(ve),Ee=le?le.prototype:void 0,Ce=Ee?Ee.valueOf:void 0,je=Ee?Ee.toString:void 0;function Ne(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Pe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ke(e){var t=-1,n=e?e.length:0;for(this.__data__=new Pe;++t<n;)this.add(e[t])}function Re(e){this.__data__=new Te(e)}function Ie(e,t){var n=ot(e)||rt(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!ae.call(e,a)||o&&("length"==a||Ue(a,r))||n.push(a);return n}function De(e,t){for(var n=e.length;n--;)if(nt(e[n][0],t))return n;return-1}function Ae(e,t){for(var n=0,r=(t=Ge(t,e)?[t]:qe(t)).length;null!=e&&n<r;)e=e[Je(t[n++])];return n&&n==r?e:void 0}function Le(e,t){return null!=e&&t in Object(e)}function Be(e,t,n,r,o){return e===t||(null==e||null==t||!lt(e)&&!ct(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var i=ot(e),s=ot(t),d=c,y=c;i||(d=(d=ze(e))==l?b:d);s||(y=(y=ze(t))==l?b:y);var x=d==b&&!G(e),E=y==b&&!G(t),C=d==y;if(C&&!x)return a||(a=new Re),i||pt(e)?Ke(e,t,n,r,o,a):function(e,t,n,r,o,a,i){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!r(new ce(e),new ce(t)));case u:case p:case m:return nt(+e,+t);case f:return e.name==t.name&&e.message==t.message;case v:case O:return e==t+"";case h:var s=Y;case g:var l=2&a;if(s||(s=X),e.size!=t.size&&!l)return!1;var c=i.get(e);if(c)return c==t;a|=1,i.set(e,t);var d=Ke(s(e),s(t),r,o,a,i);return i.delete(e),d;case _:if(Ce)return Ce.call(e)==Ce.call(t)}return!1}(e,t,d,n,r,o,a);if(!(2&o)){var j=x&&ae.call(e,"__wrapped__"),N=E&&ae.call(t,"__wrapped__");if(j||N){var T=j?e.value():e,P=N?t.value():t;return a||(a=new Re),n(T,P,r,o,a)}}if(!C)return!1;return a||(a=new Re),function(e,t,n,r,o,a){var i=2&o,s=ft(e),l=s.length,c=ft(t).length;if(l!=c&&!i)return!1;var u=l;for(;u--;){var p=s[u];if(!(i?p in t:ae.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<l;){var m=e[p=s[u]],b=t[p];if(r)var y=i?r(b,m,p,t,e,a):r(m,b,p,e,t,a);if(!(void 0===y?m===b||n(m,b,r,o,a):y)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,a)}(e,t,Be,n,r,o))}function Fe(e){return!(!lt(e)||function(e){return!!re&&re in e}(e))&&(it(e)||G(e)?se:I).test(Ze(e))}function Me(e){return"function"==typeof e?e:null==e?dt:"object"==typeof e?ot(e)?function(e,t){if(Ge(e)&&Ye(t))return Xe(Je(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=Ge(t,e)?[t]:qe(t);var r,o=-1,a=t.length;for(;++o<a;){var i=Je(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}if(r)return r;return!!(a=e?e.length:0)&&st(a)&&Ue(i,a)&&(ot(e)||rt(e))}(e,t,Le)}(n,e):Be(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=ft(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ye(o)]}return t}(e);if(1==t.length&&t[0][2])return Xe(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=n[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new Re;if(r)var f=r(c,u,l,e,t,p);if(!(void 0===f?Be(u,c,r,3,p):f))return!1}}return!0}(n,e,t)}}(e):Ge(t=e)?(n=Je(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ae(t,e)}}(t);var t,n}function He(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||te,t!==r)return fe(e);var t,n,r,o=[];for(var a in Object(e))ae.call(e,a)&&"constructor"!=a&&o.push(a);return o}function qe(e){return ot(e)?e:Qe(e)}function Ke(e,t,n,r,o,a){var i=2&o,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,p=!0,f=1&o?new ke:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],h=t[u];if(r)var m=i?r(h,d,u,t,e,a):r(d,h,u,e,t,a);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!U(t,(function(e,t){if(!f.has(t)&&(d===e||n(d,e,r,o,a)))return f.add(t)}))){p=!1;break}}else if(d!==h&&!n(d,h,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function We(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ve(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(n)?n:void 0}Ne.prototype.clear=function(){this.__data__=ge?ge(null):{}},Ne.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Ne.prototype.get=function(e){var t=this.__data__;if(ge){var n=t[e];return n===r?void 0:n}return ae.call(t,e)?t[e]:void 0},Ne.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:ae.call(t,e)},Ne.prototype.set=function(e,t){return this.__data__[e]=ge&&void 0===t?r:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=De(t,e);return!(n<0)&&(n==t.length-1?t.pop():pe.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return De(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=De(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Pe.prototype.clear=function(){this.__data__={hash:new Ne,map:new(me||Te),string:new Ne}},Pe.prototype.delete=function(e){return We(this,e).delete(e)},Pe.prototype.get=function(e){return We(this,e).get(e)},Pe.prototype.has=function(e){return We(this,e).has(e)},Pe.prototype.set=function(e,t){return We(this,e).set(e,t),this},ke.prototype.add=ke.prototype.push=function(e){return this.__data__.set(e,r),this},ke.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.clear=function(){this.__data__=new Te},Re.prototype.delete=function(e){return this.__data__.delete(e)},Re.prototype.get=function(e){return this.__data__.get(e)},Re.prototype.has=function(e){return this.__data__.has(e)},Re.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!me||r.length<199)return r.push([e,t]),this;n=this.__data__=new Pe(r)}return n.set(e,t),this};var ze=function(e){return ie.call(e)};function Ue(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Ge(e,t){if(ot(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ut(e))||(C.test(e)||!E.test(e)||null!=t&&e in Object(t))}function Ye(e){return e==e&&!lt(e)}function Xe(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(he&&ze(new he(new ArrayBuffer(1)))!=S||me&&ze(new me)!=h||be&&ze(be.resolve())!=y||ye&&ze(new ye)!=g||ve&&ze(new ve)!=x)&&(ze=function(e){var t=ie.call(e),n=t==b?e.constructor:void 0,r=n?Ze(n):void 0;if(r)switch(r){case Oe:return S;case _e:return h;case xe:return y;case we:return g;case Se:return x}return t});var Qe=tt((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ut(e))return je?je.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return j.test(e)&&n.push(""),e.replace(N,(function(e,t,r,o){n.push(r?o.replace(P,"$1"):t||e)})),n}));function Je(e){if("string"==typeof e||ut(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ze(e){if(null!=e){try{return oe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $e,et=($e=function(e,t,n){var r=e?e.length:0;if(!r)return-1;var a,l,c=null==n?0:(a=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(ut(e))return s;if(lt(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=lt(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(T,"");var n=R.test(e);return n||D.test(e)?B(e.slice(2),n?2:8):k.test(e)?s:+e}(e))===o||e===-1/0?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}(n),l=a%1,a==a?l?a-l:a:0);return c<0&&(c=de(r+c,0)),function(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}(e,Me(t),c)},function(e,t,n){var r=Object(e);if(!at(e)){var o=Me(t);e=ft(e),t=function(e){return o(r[e],e,r)}}var a=$e(e,t,n);return a>-1?r[o?e[a]:a]:void 0});function tt(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(tt.Cache||Pe),n}function nt(e,t){return e===t||e!=e&&t!=t}function rt(e){return function(e){return ct(e)&&at(e)}(e)&&ae.call(e,"callee")&&(!ue.call(e,"callee")||ie.call(e)==l)}tt.Cache=Pe;var ot=Array.isArray;function at(e){return null!=e&&st(e.length)&&!it(e)}function it(e){var t=lt(e)?ie.call(e):"";return t==d||"[object GeneratorFunction]"==t}function st(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function lt(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ct(e){return!!e&&"object"==typeof e}function ut(e){return"symbol"==typeof e||ct(e)&&ie.call(e)==_}var pt=z?function(e){return function(t){return e(t)}}(z):function(e){return ct(e)&&st(e.length)&&!!L[ie.call(e)]};function ft(e){return at(e)?Ie(e):He(e)}function dt(e){return e}n.exports=et}).call(this,n(10),n(16)(e))},function(e){e.exports=JSON.parse('{"component":"app-launcher","status":"prod","display-name":"App Launcher","classKey":"AppLauncher","SLDS-component-path":"/components/app-launcher","dependencies":[{"component":"expandable-section","classKey":"AppLauncherExpandableSection"},{"component":"link","classKey":"AppLauncherLink"},{"component":"tile","classKey":"AppLauncherTile"}],"site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"app-launcher"}')},function(e,t){e.exports={colorBackgroundRowActive:"rgb(236, 235, 234)",colorBackgroundModalBrand:"rgb(0, 112, 210)",colorBackgroundNotification:"rgb(255, 255, 255)",colorBackgroundNotificationNew:"rgb(243, 242, 242)",colorBackgroundNotificationBadgeActive:"rgb(0, 57, 107)",colorBackgroundNotificationBadgeHover:"rgb(0, 95, 178)",colorContrastPrimary:"rgb(243, 242, 242)",colorBackgroundRowHover:"rgb(243, 242, 242)",colorForegroundPrimary:"rgb(255, 255, 255)",colorBackgroundErrorDark:"rgb(194, 57, 52)",colorBackgroundInfo:"rgb(112, 110, 107)",colorBackgroundTempModalTint:"rgba(43, 40, 38, 0.6)",colorBackgroundReminderHover:"rgb(255, 255, 255)",brandBandColorBackgroundSecondaryTransparent:"rgba(253, 253, 253, 0)",colorBackgroundNotificationBadge:"rgb(194, 57, 52)",colorBackgroundIndicatorDot:"rgb(22, 50, 92)",cardWrapperColorBackground:"rgb(255, 255, 255)",colorBackgroundAltInverse:"rgb(22, 50, 92)",popoverWalkthroughHeaderImage:"/assets/images/popovers/popover-header.png",colorBackgroundInputDisabled:"rgb(236, 235, 234)",colorBackgroundRowNew:"rgb(217, 255, 223)",colorBackgroundToggleHover:"rgb(150, 148, 146)",popoverWalkthroughColorBackground:"rgb(3, 46, 97)",colorBackgroundSuccessDark:"rgb(4, 132, 75)",colorBackgroundReminder:"rgb(244, 246, 249)",colorBackgroundStencil:"rgb(243, 242, 242)",colorBackgroundAlt2:"rgb(243, 242, 242)",colorBackgroundWarning:"rgb(255, 183, 93)",colorBackgroundButtonSuccessHover:"rgb(4, 132, 75)",popoverWalkthroughAltImage:"/assets/images/popovers/popover-action.png",colorBackgroundUtilityBarHover:"rgb(236, 235, 234)",progressColorBorderShade:"rgb(243, 242, 242)",colorBackgroundHighlightSearch:"rgb(255, 240, 63)",colorBackgroundToggle:"rgb(176, 173, 171)",colorBackgroundAnchor:"rgb(243, 242, 242)",popoverWalkthroughAltNubbinColorBackground:"rgb(33, 92, 160)",colorBackgroundDestructiveHover:"rgb(166, 26, 20)",progressColorBackgroundShade:"rgb(243, 242, 242)",colorBackground:"rgb(243, 242, 242)",colorBrandDark:"rgb(0, 112, 210)",colorBackgroundButtonSuccess:"rgb(75, 202, 129)",colorBackgroundBackdrop:"rgba(255, 255, 255, 0.75)",colorBrand:"rgb(21, 137, 238)",colorBackgroundChromeDesktop:"rgb(255, 255, 255)",pageHeaderColorBackground:"rgb(243, 242, 242)",colorBackgroundModalButtonActive:"rgba(0, 0, 0, 0.16)",colorBackgroundDestructive:"rgb(194, 57, 52)",colorBackgroundInputCheckboxSelected:"rgb(21, 137, 238)",colorBackgroundInputCheckbox:"rgb(255, 255, 255)",colorBackgroundPrimary:"rgb(243, 242, 242)",colorBackgroundSuccess:"rgb(75, 202, 129)",colorBackgroundInputCheckboxDisabled:"rgb(221, 219, 218)",colorBackgroundPill:"rgb(255, 255, 255)",colorBackgroundSpinnerDot:"rgb(176, 173, 171)",colorBackgroundBrandPrimaryFocus:"rgb(0, 95, 178)",colorBackgroundOffline:"rgb(62, 62, 60)",tableColorBackgroundHeaderHover:"rgb(255, 255, 255)",colorBackgroundBackdropTint:"rgb(250, 250, 249)",colorBackgroundBrandPrimaryActive:"rgb(0, 95, 178)",colorBackgroundInputActive:"rgb(255, 255, 255)",popoverWalkthroughColorBackgroundAlt:"rgb(22, 74, 133)",brandBandColorBackgroundSecondary:"rgb(253, 253, 253)",tableColorBackgroundHeader:"rgb(250, 250, 249)",colorBackgroundStencilAlt:"rgb(236, 235, 234)",colorBackgroundScrollbar:"rgb(236, 235, 234)",colorBackgroundToggleDisabled:"rgb(176, 173, 171)",colorBackgroundToast:"rgb(112, 110, 107)",colorBackgroundBrandPrimaryHover:"rgb(0, 95, 178)",colorBackgroundChromeMobile:"rgb(0, 112, 210)",brandBandColorBackgroundPrimaryTransparent:"rgba(253, 253, 253, 0)",colorBackgroundCustomer:"rgb(255, 154, 60)",colorBackgroundError:"rgb(212, 80, 76)",colorContrastSecondary:"rgb(243, 242, 242)",colorBackgroundBrowser:"rgb(112, 110, 107)",colorBackgroundAlt:"rgb(255, 255, 255)",colorBackgroundPost:"rgb(250, 250, 249)",colorBackgroundBrandPrimary:"rgb(0, 112, 210)",colorBackgroundRowSelected:"rgb(236, 235, 234)",colorBackgroundInput:"rgb(255, 255, 255)",colorBackgroundToastSuccess:"rgb(4, 132, 75)",colorBackgroundImageOverlay:"rgba(0, 0, 0, 0.4)",colorBrandDarker:"rgb(0, 95, 178)",colorBackgroundTempModal:"rgb(150, 148, 146)",colorBackgroundSelection:"rgb(216, 237, 255)",colorBackgroundShade:"rgb(236, 235, 234)",colorBackgroundModal:"rgb(255, 255, 255)",colorBackgroundDestructiveActive:"rgb(135, 5, 0)",colorBackgroundToggleActiveHover:"rgb(0, 95, 178)",colorBackgroundPayload:"rgb(250, 250, 249)",colorBackgroundModalButton:"rgba(0, 0, 0, 0.07)",colorBackgroundUtilityBarActive:"rgb(21, 137, 238)",colorBackgroundButtonSuccessActive:"rgb(4, 132, 75)",buttonColorBackgroundPrimary:"rgb(255, 255, 255)",colorBackgroundToastError:"rgb(194, 57, 52)",colorBackgroundOrgSwitcherArrow:"rgb(6, 28, 63)",colorBackgroundInverse:"rgb(6, 28, 63)",colorBackgroundToggleActive:"rgb(0, 112, 210)",colorPickerSliderThumbColorBackground:"rgb(243, 242, 242)",pageColorBackgroundPrimary:"rgb(253, 253, 253)",colorBackgroundShadeDark:"rgb(221, 219, 218)",colorBackgroundNotificationBadgeFocus:"rgb(0, 95, 178)",colorBackgroundActionbarIconUtility:"rgb(112, 110, 107)",colorBackgroundScrollbarTrack:"rgb(201, 199, 197)",colorBackgroundInputError:"rgb(255, 221, 225)",brandBandColorBackgroundPrimary:"rgb(253, 253, 253)",colorBackgroundHighlight:"rgb(250, 255, 189)",colorBackgroundSecondary:"rgb(255, 255, 255)",popoverWalkthroughHeaderColorBackground:"rgb(22, 74, 133)",brandBandDefaultImage:"/assets/images/themes/oneSalesforce/banner-brand-default.png",bannerUserDefaultImage:"/assets/images/themes/oneSalesforce/banner-user-default.png",bannerGroupDefaultImage:"/assets/images/themes/oneSalesforce/banner-group-public-default.png",colorBorderInputCheckboxSelectedCheckmark:"rgb(255, 255, 255)",colorBorderButtonInverseDisabled:"rgba(255, 255, 255, 0.15)",colorBorderIconInverseHintHover:"rgba(255, 255, 255, 0.75)",colorBorderErrorDark:"rgb(234, 130, 136)",colorBorderIconInverseHint:"rgba(255, 255, 255, 0.5)",colorBorderBrandDark:"rgb(0, 112, 210)",colorBorderInfo:"rgb(112, 110, 107)",colorBorderWarning:"rgb(255, 183, 93)",colorBorderTabActive:"rgb(255, 255, 255)",colorStrokeDisabled:"rgb(236, 235, 234)",colorBorderDestructiveHover:"rgb(166, 26, 20)",colorBorder:"rgb(221, 219, 218)",colorBorderInputDisabled:"rgb(201, 199, 197)",colorBorderSuccessDark:"rgb(4, 132, 75)",colorBorderReminder:"rgb(236, 235, 234)",colorStrokeBrandActive:"rgb(22, 50, 92)",colorBorderButtonBrandDisabled:"rgba(0, 0, 0, 0)",pageHeaderColorBorder:"rgb(221, 219, 218)",colorBorderDestructive:"rgb(194, 57, 52)",colorBorderPrimary:"rgb(221, 219, 218)",colorBorderButtonDefault:"rgb(221, 219, 218)",colorBorderSeparatorAlt2:"rgb(201, 199, 197)",colorBorderOffline:"rgb(62, 62, 60)",colorBorderBrandPrimaryFocus:"rgb(0, 95, 178)",colorBorderSuccess:"rgb(75, 202, 129)",colorBorderSeparator:"rgb(243, 242, 242)",colorBorderBrand:"rgb(21, 137, 238)",colorBorderBrandPrimaryHover:"rgb(0, 95, 178)",colorBorderSelectionActive:"rgb(243, 242, 242)",colorBorderButtonBrand:"rgb(0, 112, 210)",colorBorderError:"rgb(194, 57, 52)",colorBorderSelectionHover:"rgb(21, 137, 238)",colorBorderBrandPrimaryActive:"rgb(0, 95, 178)",colorBorderInputActive:"rgb(21, 137, 238)",colorBorderInput:"rgb(221, 219, 218)",colorBorderBrandPrimary:"rgb(0, 112, 210)",colorBorderToggleChecked:"rgb(255, 255, 255)",colorBorderRowSelectedHover:"rgb(21, 137, 238)",colorBorderCustomer:"rgb(255, 154, 60)",colorBorderSelection:"rgb(0, 112, 210)",colorBorderCanvasElementSelectionHover:"rgb(0, 95, 178)",cardColorBorder:"rgb(221, 219, 218)",colorBorderRowSelected:"rgb(0, 112, 210)",buttonColorBorderPrimary:"rgb(221, 219, 218)",colorBorderSeparatorAlt:"rgb(221, 219, 218)",colorBorderCanvasElementSelection:"rgb(94, 180, 255)",colorStrokeBrandHover:"rgb(0, 112, 210)",colorBorderInverse:"rgb(6, 28, 63)",colorStrokeHeaderButton:"rgb(176, 173, 171)",colorBorderDestructiveActive:"rgb(135, 5, 0)",colorBorderErrorAlt:"rgb(234, 130, 136)",pageHeaderJoinedColorBorder:"rgb(221, 219, 218)",colorStrokeBrand:"rgb(0, 112, 210)",colorBorderTabSelected:"rgb(0, 112, 210)",cardFooterColorBorder:"rgb(221, 219, 218)",colorBorderSeparatorInverse:"rgb(42, 66, 108)",pageHeaderBorderRadius:"0.25rem",tableBorderRadius:"0 0 0.25rem 0.25rem",pageHeaderShadow:"0 2px 2px 0 rgba(0, 0, 0, 0.1)",shadowSoftPrimaryHover:"rgba(0, 0, 0, 0.20) 0 3px 6px",shadowButtonFocus:"0 0 3px #0070D2",shadowHeader:"0 2px 4px rgba(0, 0, 0, 0.07)",shadowSoftPrimary:"rgba(0, 0, 0, 0.1) 0 2px 2px",shadowHardPrimary:"rgba(0, 0, 0, 0.1) 0 2px 0",shadowActionOverflowFooter:"0 -2px 4px #fafaf9",cardShadow:"0 2px 2px 0 rgba(0, 0, 0, 0.1)",shadowReminder:"0 2px 3px 0 rgba(0, 0, 0, 0.20)",shadowDocked:"0 -2px 2px 0 rgba(0, 0, 0, 0.16)",shadowInlineEdit:"0 2px 4px 4px rgba(0, 0, 0, 0.16)",shadowDrag:"0 2px 4px 0 rgba(0, 0, 0, 0.40)",shadowDropDown:"0 2px 3px 0 rgba(0, 0, 0, 0.16)",shadowFocusInset:"0 0 2px 2px #1589EE inset",shadowSoftPrimaryActive:"rgba(0, 0, 0, 0.20) 0 1px 1px",shadowButtonFocusInverse:"0 0 3px #ecebea",shadowImage:"0 1px 1px rgba(0, 0, 0, 0.16)",formLabelFontSize:".75rem",inputStaticFontSize:"0.875rem",inputStaticFontWeight:"400",tabsFontWeight:"700",cardFontWeight:"700",pageHeaderTitleFontWeight:"700",componentSpacingMargin:"0.75rem",componentSpacingPadding:"1rem",templateGutters:"0.75rem",templateProfileGutters:"8rem 0.75rem 0.75rem",tableCellSpacing:"0.25rem 0.5rem",cardSpacingMargin:"0.75rem",cardFooterPadding:"0.75rem 1rem",cardFooterTextAlign:"center",colorTextIconInverse:"rgb(255, 255, 255)",colorTextActionLabel:"rgb(112, 110, 107)",colorTextLinkInverse:"rgb(255, 255, 255)",colorTextButtonInverseDisabled:"rgba(255, 255, 255, 0.15)",colorTextIconInverseHintHover:"rgba(255, 255, 255, 0.75)",colorTextInputIcon:"rgb(176, 173, 171)",colorTextLinkInverseActive:"rgba(255, 255, 255, 0.5)",colorTextActionLabelActive:"rgb(62, 62, 60)",colorTextIconInverseActive:"rgb(255, 255, 255)",colorTextTabLabelSelected:"rgb(0, 112, 210)",colorTextWarning:"rgb(255, 183, 93)",colorTextIconInverseHint:"rgba(255, 255, 255, 0.5)",colorTextTabLabelDisabled:"rgb(236, 235, 234)",colorTextButtonDefaultHover:"rgb(0, 112, 210)",colorTextInputDisabled:"rgb(112, 110, 107)",colorTextTertiary:"rgb(150, 148, 146)",colorTextLinkFocus:"rgb(0, 95, 178)",colorTextButtonDefault:"rgb(0, 112, 210)",colorTextIconDefaultDisabled:"rgb(221, 219, 218)",colorTextLinkDisabled:"rgb(22, 50, 92)",colorTextDefault:"rgb(62, 62, 60)",colorTextInverseActive:"rgb(94, 180, 255)",colorTextButtonBrandDisabled:"rgb(255, 255, 255)",colorTextPrimary:"rgb(62, 62, 60)",colorTextLinkPrimaryFocus:"rgb(0, 95, 178)",colorTextButtonBrandHover:"rgb(255, 255, 255)",colorTextLinkHover:"rgb(0, 95, 178)",colorTextTabLabelFocus:"rgb(0, 95, 178)",colorTextSuccess:"rgb(2, 126, 70)",colorTextWeak:"rgb(112, 110, 107)",colorTextPlaceholderInverse:"rgb(236, 235, 234)",colorTextIconDefaultHover:"rgb(0, 112, 210)",colorTextIconDefaultHintBorderless:"rgb(236, 235, 234)",colorTextPill:"rgb(0, 112, 210)",colorTextLinkPrimaryHover:"rgb(0, 95, 178)",colorTextLink:"rgb(0, 109, 204)",colorTextWarningAlt:"rgb(132, 72, 0)",colorTextButtonBrand:"rgb(255, 255, 255)",colorTextTabLabelActive:"rgb(0, 57, 107)",colorTextIconDefault:"rgb(112, 110, 107)",colorTextBrand:"rgb(21, 137, 238)",colorTextTabLabelHover:"rgb(0, 95, 178)",colorTextButtonDefaultDisabled:"rgb(221, 219, 218)",colorTextToast:"rgb(236, 235, 234)",colorTextToggleDisabled:"rgb(221, 219, 218)",colorTextBrowser:"rgb(255, 255, 255)",colorTextLinkPrimaryActive:"rgb(0, 95, 178)",colorTextError:"rgb(194, 57, 52)",colorTextLinkPrimary:"rgb(0, 112, 210)",colorTextBrowserActive:"rgba(0, 0, 0, 0.4)",colorTextTabLabel:"rgb(22, 50, 92)",colorTextCustomer:"rgb(255, 154, 60)",colorTextIconDefaultActive:"rgb(0, 57, 107)",colorTextBrandPrimary:"rgb(255, 255, 255)",colorTextLinkActive:"rgb(0, 57, 107)",colorTextIconDefaultHint:"rgb(176, 173, 171)",colorTextButtonBrandActive:"rgb(255, 255, 255)",colorTextRequired:"rgb(194, 57, 52)",colorTextIconBrand:"rgb(0, 112, 210)",colorTextInverseHover:"rgb(176, 173, 171)",colorTextModal:"rgb(255, 255, 255)",colorTextButtonInverse:"rgb(236, 235, 234)",buttonColorTextPrimary:"rgb(255, 255, 255)",colorTextModalButton:"rgb(112, 110, 107)",colorTextLinkInverseDisabled:"rgba(255, 255, 255, 0.15)",colorTextInverse:"rgb(255, 255, 255)",colorTextButtonDefaultActive:"rgb(0, 112, 210)",colorTextIconInverseDisabled:"rgba(255, 255, 255, 0.15)",colorTextButtonDefaultHint:"rgb(176, 173, 171)",colorTextIconUtility:"rgb(176, 173, 171)",colorTextIconInverseHover:"rgb(255, 255, 255)",colorTextPlaceholder:"rgb(112, 110, 107)",colorTextInverseWeak:"rgb(176, 173, 171)",colorTextSecondary:"rgb(112, 110, 107)",colorTextInputFocusInverse:"rgb(22, 50, 92)",colorTextStageLeft:"rgb(236, 235, 234)",colorTextLinkInverseHover:"rgba(255, 255, 255, 0.75)",colorTextSuccessInverse:"rgb(75, 202, 129)",colorTextLabel:"rgb(112, 110, 107)"}},function(e,t,n){(function(e,n){var r="Expected a function",o="__lodash_hash_undefined__",a=9007199254740991,i="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",p="[object Function]",f="[object Map]",d="[object Number]",h="[object Object]",m="[object Promise]",b="[object RegExp]",y="[object Set]",v="[object String]",g="[object Symbol]",O="[object WeakMap]",_="[object ArrayBuffer]",x="[object DataView]",w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,S=/^\w*$/,E=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,j=/\\(\\)?/g,N=/^\[object .+?Constructor\]$/,T=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[i]=P[s]=P[_]=P[l]=P[x]=P[c]=P[u]=P[p]=P[f]=P[d]=P[h]=P[b]=P[y]=P[v]=P[O]=!1;var k="object"==typeof e&&e&&e.Object===Object&&e,R="object"==typeof self&&self&&self.Object===Object&&self,I=k||R||Function("return this")(),D=t&&!t.nodeType&&t,A=D&&"object"==typeof n&&n&&!n.nodeType&&n,L=A&&A.exports===D&&k.process,B=function(){try{return L&&L.binding("util")}catch(e){}}(),F=B&&B.isTypedArray;function M(e,t){for(var n=-1,r=e?e.length:0,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function H(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function q(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function K(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var V,z,U,G=Array.prototype,Y=Function.prototype,X=Object.prototype,Q=I["__core-js_shared__"],J=(V=/[^.]+$/.exec(Q&&Q.keys&&Q.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",Z=Y.toString,$=X.hasOwnProperty,ee=X.toString,te=RegExp("^"+Z.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=I.Symbol,re=I.Uint8Array,oe=X.propertyIsEnumerable,ae=G.splice,ie=(z=Object.keys,U=Object,function(e){return z(U(e))}),se=Ke(I,"DataView"),le=Ke(I,"Map"),ce=Ke(I,"Promise"),ue=Ke(I,"Set"),pe=Ke(I,"WeakMap"),fe=Ke(Object,"create"),de=Qe(se),he=Qe(le),me=Qe(ce),be=Qe(ue),ye=Qe(pe),ve=ne?ne.prototype:void 0,ge=ve?ve.valueOf:void 0,Oe=ve?ve.toString:void 0;function _e(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function xe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function we(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Se(e){var t=-1,n=e?e.length:0;for(this.__data__=new we;++t<n;)this.add(e[t])}function Ee(e){this.__data__=new xe(e)}function Ce(e,t){var n=et(e)||$e(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!$.call(e,a)||o&&("length"==a||Ve(a,r))||n.push(a);return n}function je(e,t){for(var n=e.length;n--;)if(Ze(e[n][0],t))return n;return-1}_e.prototype.clear=function(){this.__data__=fe?fe(null):{}},_e.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},_e.prototype.get=function(e){var t=this.__data__;if(fe){var n=t[e];return n===o?void 0:n}return $.call(t,e)?t[e]:void 0},_e.prototype.has=function(e){var t=this.__data__;return fe?void 0!==t[e]:$.call(t,e)},_e.prototype.set=function(e,t){return this.__data__[e]=fe&&void 0===t?o:t,this},xe.prototype.clear=function(){this.__data__=[]},xe.prototype.delete=function(e){var t=this.__data__,n=je(t,e);return!(n<0)&&(n==t.length-1?t.pop():ae.call(t,n,1),!0)},xe.prototype.get=function(e){var t=this.__data__,n=je(t,e);return n<0?void 0:t[n][1]},xe.prototype.has=function(e){return je(this.__data__,e)>-1},xe.prototype.set=function(e,t){var n=this.__data__,r=je(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},we.prototype.clear=function(){this.__data__={hash:new _e,map:new(le||xe),string:new _e}},we.prototype.delete=function(e){return qe(this,e).delete(e)},we.prototype.get=function(e){return qe(this,e).get(e)},we.prototype.has=function(e){return qe(this,e).has(e)},we.prototype.set=function(e,t){return qe(this,e).set(e,t),this},Se.prototype.add=Se.prototype.push=function(e){return this.__data__.set(e,o),this},Se.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.clear=function(){this.__data__=new xe},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof xe){var r=n.__data__;if(!le||r.length<199)return r.push([e,t]),this;n=this.__data__=new we(r)}return n.set(e,t),this};var Ne,Te,Pe=(Ne=function(e,t){return e&&Re(e,t,lt)},function(e,t){if(null==e)return e;if(!tt(e))return Ne(e,t);for(var n=e.length,r=Te?n:-1,o=Object(e);(Te?r--:++r<n)&&!1!==t(o[r],r,o););return e});function ke(e,t){var n=[];return Pe(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}var Re=function(e){return function(t,n,r){for(var o=-1,a=Object(t),i=r(t),s=i.length;s--;){var l=i[e?s:++o];if(!1===n(a[l],l,a))break}return t}}();function Ie(e,t){for(var n=0,r=(t=ze(t,e)?[t]:Me(t)).length;null!=e&&n<r;)e=e[Xe(t[n++])];return n&&n==r?e:void 0}function De(e,t){return null!=e&&t in Object(e)}function Ae(e,t,n,r,o){return e===t||(null==e||null==t||!ot(e)&&!at(t)?e!=e&&t!=t:function(e,t,n,r,o,a){var p=et(e),m=et(t),O=s,w=s;p||(O=(O=We(e))==i?h:O);m||(w=(w=We(t))==i?h:w);var S=O==h&&!q(e),E=w==h&&!q(t),C=O==w;if(C&&!S)return a||(a=new Ee),p||st(e)?He(e,t,n,r,o,a):function(e,t,n,r,o,a,i){switch(n){case x:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!r(new re(e),new re(t)));case l:case c:case d:return Ze(+e,+t);case u:return e.name==t.name&&e.message==t.message;case b:case v:return e==t+"";case f:var s=K;case y:var p=2&a;if(s||(s=W),e.size!=t.size&&!p)return!1;var h=i.get(e);if(h)return h==t;a|=1,i.set(e,t);var m=He(s(e),s(t),r,o,a,i);return i.delete(e),m;case g:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,O,n,r,o,a);if(!(2&o)){var j=S&&$.call(e,"__wrapped__"),N=E&&$.call(t,"__wrapped__");if(j||N){var T=j?e.value():e,P=N?t.value():t;return a||(a=new Ee),n(T,P,r,o,a)}}if(!C)return!1;return a||(a=new Ee),function(e,t,n,r,o,a){var i=2&o,s=lt(e),l=s.length,c=lt(t).length;if(l!=c&&!i)return!1;var u=l;for(;u--;){var p=s[u];if(!(i?p in t:$.call(t,p)))return!1}var f=a.get(e);if(f&&a.get(t))return f==t;var d=!0;a.set(e,t),a.set(t,e);var h=i;for(;++u<l;){var m=e[p=s[u]],b=t[p];if(r)var y=i?r(b,m,p,t,e,a):r(m,b,p,e,t,a);if(!(void 0===y?m===b||n(m,b,r,o,a):y)){d=!1;break}h||(h="constructor"==p)}if(d&&!h){var v=e.constructor,g=t.constructor;v==g||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof g&&g instanceof g||(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,o,a)}(e,t,Ae,n,r,o))}function Le(e){return!(!ot(e)||function(e){return!!J&&J in e}(e))&&(nt(e)||q(e)?te:N).test(Qe(e))}function Be(e){return"function"==typeof e?e:null==e?ct:"object"==typeof e?et(e)?function(e,t){if(ze(e)&&Ue(t))return Ge(Xe(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ie(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=ze(t,e)?[t]:Me(t);var r,o=-1,a=t.length;for(;++o<a;){var i=Xe(t[o]);if(!(r=null!=e&&n(e,i)))break;e=e[i]}if(r)return r;return!!(a=e?e.length:0)&&rt(a)&&Ve(i,a)&&(et(e)||$e(e))}(e,t,De)}(n,e):Ae(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=lt(e),n=t.length;for(;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ue(o)]}return t}(e);if(1==t.length&&t[0][2])return Ge(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var o=n.length,a=o,i=!r;if(null==e)return!a;for(e=Object(e);o--;){var s=n[o];if(i&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++o<a;){var l=(s=n[o])[0],c=e[l],u=s[1];if(i&&s[2]){if(void 0===c&&!(l in e))return!1}else{var p=new Ee;if(r)var f=r(c,u,l,e,t,p);if(!(void 0===f?Ae(u,c,r,3,p):f))return!1}}return!0}(n,e,t)}}(e):ze(t=e)?(n=Xe(t),function(e){return null==e?void 0:e[n]}):function(e){return function(t){return Ie(t,e)}}(t);var t,n}function Fe(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||X,t!==r)return ie(e);var t,n,r,o=[];for(var a in Object(e))$.call(e,a)&&"constructor"!=a&&o.push(a);return o}function Me(e){return et(e)?e:Ye(e)}function He(e,t,n,r,o,a){var i=2&o,s=e.length,l=t.length;if(s!=l&&!(i&&l>s))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var u=-1,p=!0,f=1&o?new Se:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var d=e[u],h=t[u];if(r)var m=i?r(h,d,u,t,e,a):r(d,h,u,e,t,a);if(void 0!==m){if(m)continue;p=!1;break}if(f){if(!H(t,(function(e,t){if(!f.has(t)&&(d===e||n(d,e,r,o,a)))return f.add(t)}))){p=!1;break}}else if(d!==h&&!n(d,h,r,o,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function qe(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function Ke(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Le(n)?n:void 0}var We=function(e){return ee.call(e)};function Ve(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||T.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t){if(et(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!it(e))||(S.test(e)||!w.test(e)||null!=t&&e in Object(t))}function Ue(e){return e==e&&!ot(e)}function Ge(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(se&&We(new se(new ArrayBuffer(1)))!=x||le&&We(new le)!=f||ce&&We(ce.resolve())!=m||ue&&We(new ue)!=y||pe&&We(new pe)!=O)&&(We=function(e){var t=ee.call(e),n=t==h?e.constructor:void 0,r=n?Qe(n):void 0;if(r)switch(r){case de:return x;case he:return f;case me:return m;case be:return y;case ye:return O}return t});var Ye=Je((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(it(e))return Oe?Oe.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return E.test(e)&&n.push(""),e.replace(C,(function(e,t,r,o){n.push(r?o.replace(j,"$1"):t||e)})),n}));function Xe(e){if("string"==typeof e||it(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qe(e){if(null!=e){try{return Z.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Je(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i),i};return n.cache=new(Je.Cache||we),n}function Ze(e,t){return e===t||e!=e&&t!=t}function $e(e){return function(e){return at(e)&&tt(e)}(e)&&$.call(e,"callee")&&(!oe.call(e,"callee")||ee.call(e)==i)}Je.Cache=we;var et=Array.isArray;function tt(e){return null!=e&&rt(e.length)&&!nt(e)}function nt(e){var t=ot(e)?ee.call(e):"";return t==p||"[object GeneratorFunction]"==t}function rt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function ot(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function at(e){return!!e&&"object"==typeof e}function it(e){return"symbol"==typeof e||at(e)&&ee.call(e)==g}var st=F?function(e){return function(t){return e(t)}}(F):function(e){return at(e)&&rt(e.length)&&!!P[ee.call(e)]};function lt(e){return tt(e)?Ce(e):Fe(e)}function ct(e){return e}n.exports=function(e,t){return(et(e)?M:ke)(e,function(e){if("function"!=typeof e)throw new TypeError(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}(Be(t)))}}).call(this,n(10),n(16)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=JSON.parse('{"component":"setup-assistant","status":"prod","display-name":"Setup Assistant","classKey":"SetupAssistant","SLDS-component-path":"/components/setup-assistant","dependencies":[{"component":"step","classKey":"SetupAssistantStep"}],"site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"Step Progress Indicator","path":"/__examples__/step-progress.jsx"},{"heading":"Expandable Steps","path":"/__examples__/hub-expandable-steps.jsx"},{"heading":"With Card","path":"/__examples__/card.jsx"}],"url-slug":"setup-assistant"}')},function(e,t,n){"use strict";var r,o,a,i=n(65),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){a=!1}function c(e){if(e){if(e!==r){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+t.join(", "));r=e,l()}}else r!==s&&(r=s,l())}function u(){return a||(a=function(){r||c(s);for(var e,t=r.split(""),n=[],o=i.nextValue();t.length>0;)o=i.nextValue(),e=Math.floor(o*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return r||s},characters:function(e){return c(e),r},seed:function(e){i.seed(e),o!==e&&(l(),o=e)},lookup:function(e){return u()[e]},shuffled:u}},function(e,t){e.exports=function(e,t){return function(n,r,o){if("function"!=typeof e)return new Error("Invalid react-required-if prop type supplied to "+o+". Validation failed.");if("function"!=typeof t)return new Error("Invalid react-required-if condition supplied to "+o+". Validation failed.");var a=t(n)?e.isRequired:e;return a.apply(this,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(72),a=(r=o)&&r.__esModule?r:{default:r};t.default=a.default,e.exports=t.default},function(e){e.exports=JSON.parse('{"component":"input","status":"prod","display-name":"Inputs","classKey":"Input","last-accessibility-review":{"date-iso-8601":"2017/09/22","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"dependencies":[{"component":"search","classKey":"InputSearch"}],"SLDS-component-path":"/components/input","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"With Icons","path":"/__examples__/icons.jsx"},{"heading":"Error State","path":"/__examples__/error.jsx"},{"heading":"Disabled","path":"/__examples__/inactiveInputs.jsx"},{"heading":"With Inline Help","path":"/__examples__/inline-help.jsx"},{"heading":"With Field Level Help","path":"/__examples__/field-level-help.jsx"},{"heading":"Counter","path":"/__examples__/counter-input.jsx"}],"url-slug":"inputs"}')},function(e){e.exports=JSON.parse('{"component":"global-navigation-bar","status":"prod","display-name":"Global Navigation Bar","classKey":"GlobalNavigationBar","last-accessibility-review":{"date-iso-8601":"2017/05/02","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/global-navigation","dependencies":[{"component":"button","classKey":"GlobalNavigationBarButton"},{"component":"dropdown","classKey":"GlobalNavigationBarDropdown"},{"component":"label","classKey":"GlobalNavigationBarLabel"},{"component":"link","classKey":"GlobalNavigationBarLink"},{"component":"region","classKey":"GlobalNavigationBarRegion"}],"site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"global-navigation-bar"}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,o=n(76);var a=((r=o)&&r.__esModule?r:{default:r}).default,i=a.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=a.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=a.canUseDOM?window.NodeList:{},t.canUseDOM=a.canUseDOM;t.default=i},function(e,t,n){"use strict";var r=n(1),o=n(83);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},function(e,t,n){var r=n(1),o=n(80),a=n(81),i=n(82),s=n(24),l=n(0);function c(e,t){if(!String.prototype.normalize)return e;if(t){var n=t.split("");return e.normalize("NFD").replace(/.[\u0300-\u036f]+/g,(function(e){return n.indexOf(e.normalize())>-1?e.normalize():e[0]}))}return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}var u=s({displayName:"Highlighter",count:0,propTypes:{search:l.oneOfType([l.string,l.number,l.bool,o]).isRequired,caseSensitive:l.bool,ignoreDiacritics:l.bool,diacriticsBlacklist:l.string,matchElement:l.oneOfType([l.string,l.func]),matchClass:l.string,matchStyle:l.object},render:function(){var e=i(this.props,"search","caseSensitive","ignoreDiacritics","diacriticsBlacklist","matchElement","matchClass","matchStyle");return r.createElement("span",e,this.renderElement(this.props.children))},renderElement:function(e){if(this.isScalar()&&this.hasSearch()){var t=this.getSearch();return this.highlightChildren(e,t)}return this.props.children},isScalar:function(){return/string|number|boolean/.test(typeof this.props.children)},hasSearch:function(){return void 0!==this.props.search&&this.props.search},getSearch:function(){if(this.props.search instanceof RegExp)return this.props.search;var e="";this.props.caseSensitive||(e+="i");var t=this.props.search;return"string"==typeof this.props.search&&(t=a(t)),this.props.ignoreDiacritics&&(t=c(t,this.props.diacriticsBlacklist)),new RegExp(t,e)},getMatchBoundaries:function(e,t){var n=t.exec(e);if(n)return{first:n.index,last:n.index+n[0].length}},highlightChildren:function(e,t){for(var n=[],r=e;r;){var o=this.props.ignoreDiacritics?c(r,this.props.diacriticsBlacklist):r;if(!t.test(o))return n.push(this.renderPlain(r)),n;var a=this.getMatchBoundaries(o,t);if(0===a.first&&0===a.last)return n;var i=r.slice(0,a.first);i&&n.push(this.renderPlain(i));var s=r.slice(a.first,a.last);s&&n.push(this.renderHighlight(s)),r=r.slice(a.last)}return n},renderPlain:function(e){return this.count++,r.createElement("span",{key:this.count,children:e})},renderHighlight:function(e){return this.count++,r.createElement(this.props.matchElement,{key:this.count,className:this.props.matchClass,style:this.props.matchStyle,children:e})}});u.defaultProps={caseSensitive:!1,ignoreDiacritics:!1,diacriticsBlacklist:"",matchElement:"mark",matchClass:"highlight",matchStyle:{}},e.exports=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter(i)};var r=/input|select|textarea|button|object/;function o(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var n=window.getComputedStyle(e);return t?"visible"!==n.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0:"none"==n.getPropertyValue("display")}catch(e){return console.warn("Failed to inspect element style"),!1}}function a(e,t){var n=e.nodeName.toLowerCase();return(r.test(n)&&!e.disabled||"a"===n&&e.href||t)&&function(e){for(var t=e;t&&t!==document.body;){if(o(t))return!1;t=t.parentNode}return!0}(e)}function i(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&a(e,!n)}e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){s&&(s.removeAttribute?s.removeAttribute("aria-hidden"):null!=s.length?s.forEach((function(e){return e.removeAttribute("aria-hidden")})):document.querySelectorAll(s).forEach((function(e){return e.removeAttribute("aria-hidden")})));s=null},t.log=function(){return void 0;var e=s||{};console.log("ariaAppHider ----------"),console.log(e.nodeName,e.className,e.id),console.log("end ariaAppHider ----------")},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&i.canUseDOM){var n=document.querySelectorAll(t);l(n,t),t=n}return s=t||s},t.validateElement=c,t.hide=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){o.value.setAttribute("aria-hidden","true")}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.show=function(e){var t=!0,n=!1,r=void 0;try{for(var o,a=c(e)[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){o.value.removeAttribute("aria-hidden")}}catch(e){n=!0,r=e}finally{try{!t&&a.return&&a.return()}finally{if(n)throw r}}},t.documentNotReadyOrSSRTesting=function(){s=null};var r,o=n(8),a=(r=o)&&r.__esModule?r:{default:r},i=n(23);var s=null;function l(e,t){if(!e||!e.length)throw new Error("react-modal: No elements were found for selector "+t+".")}function c(e){var t=e||s;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,a.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach((function(e){return console.log(e)})),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new r};var r=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var n=t.openInstances.indexOf(e);-1!==n&&(t.openInstances.splice(n,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach((function(n){return n(e,t.openInstances.slice())}))},this.openInstances=[],this.subscribers=[]},o=new r;t.default=o},function(e){e.exports=JSON.parse('{"component":"button","status":"prod","display-name":"Buttons","classKey":"Button","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/buttons","site-stories":[{"heading":"Base Neutral","path":"/__examples__/base-neutral.jsx"},{"heading":"Variants","path":"/__examples__/brand-disabled-destructive-inverse.jsx"},{"heading":"Button Icons","path":"/__examples__/button-icons.jsx"}],"url-slug":"buttons"}')},function(e,t,n){"use strict";(function(e){for(var n="undefined"!=typeof window&&"undefined"!=typeof document,r=["Edge","Trident","Firefox"],o=0,a=0;a<r.length;a+=1)if(n&&navigator.userAgent.indexOf(r[a])>=0){o=1;break}var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),o))}};function s(e){return e&&"[object Function]"==={}.toString.call(e)}function l(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function c(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function u(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=l(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll)/.test(n+o+r)?e:u(c(e))}function p(e){var t=e&&e.offsetParent,n=t&&t.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===l(t,"position")?p(t):t:e?e.ownerDocument.documentElement:document.documentElement}function f(e){return null!==e.parentNode?f(e.parentNode):e}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(o,0);var i,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||r.contains(o))return"BODY"===(s=(i=l).nodeName)||"HTML"!==s&&p(i.firstElementChild)!==i?p(l):l;var c=f(e);return c.host?d(c.host,t):d(e,f(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||o;return a[n]}return e[n]}function m(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}var b=void 0,y=function(){return void 0===b&&(b=-1!==navigator.appVersion.indexOf("MSIE 10")),b};function v(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],y()?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function g(){var e=document.body,t=document.documentElement,n=y()&&getComputedStyle(t);return{height:v("Height",e,t,n),width:v("Width",e,t,n)}}var O=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},_=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},w=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e){return w({},e,{right:e.left+e.width,bottom:e.top+e.height})}function E(e){var t={};if(y())try{t=e.getBoundingClientRect();var n=h(e,"top"),r=h(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}catch(e){}else t=e.getBoundingClientRect();var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?g():{},i=a.width||e.clientWidth||o.right-o.left,s=a.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-i,u=e.offsetHeight-s;if(c||u){var p=l(e);c-=m(p,"x"),u-=m(p,"y"),o.width-=c,o.height-=u}return S(o)}function C(e,t){var n=y(),r="HTML"===t.nodeName,o=E(e),a=E(t),i=u(e),s=l(t),c=parseFloat(s.borderTopWidth,10),p=parseFloat(s.borderLeftWidth,10),f=S({top:o.top-a.top-c,left:o.left-a.left-p,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!n&&r){var d=parseFloat(s.marginTop,10),m=parseFloat(s.marginLeft,10);f.top-=c-d,f.bottom-=c-d,f.left-=p-m,f.right-=p-m,f.marginTop=d,f.marginLeft=m}return(n?t.contains(i):t===i&&"BODY"!==i.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(t,"top"),o=h(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=o*a,e.right+=o*a,e}(f,t)),f}function j(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===l(e,"position")||j(c(e)))}function N(e,t,n,r){var o={top:0,left:0},a=d(e,t);if("viewport"===r)o=function(e){var t=e.ownerDocument.documentElement,n=C(e,t),r=Math.max(t.clientWidth,window.innerWidth||0),o=Math.max(t.clientHeight,window.innerHeight||0),a=h(t),i=h(t,"left");return S({top:a-n.top+n.marginTop,left:i-n.left+n.marginLeft,width:r,height:o})}(a);else{var i=void 0;"scrollParent"===r?"BODY"===(i=u(c(t))).nodeName&&(i=e.ownerDocument.documentElement):i="window"===r?e.ownerDocument.documentElement:r;var s=C(i,a);if("HTML"!==i.nodeName||j(a))o=s;else{var l=g(),p=l.height,f=l.width;o.top+=s.top-s.marginTop,o.bottom=p+s.top,o.left+=s.left-s.marginLeft,o.right=f+s.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function T(e){return e.width*e.height}function P(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var i=N(n,r,a,o),s={top:{width:i.width,height:t.top-i.top},right:{width:i.right-t.right,height:i.height},bottom:{width:i.width,height:i.bottom-t.bottom},left:{width:t.left-i.left,height:i.height}},l=Object.keys(s).map((function(e){return w({key:e},s[e],{area:T(s[e])})})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=e.split("-")[1];return u+(p?"-"+p:"")}function k(e,t,n){return C(n,d(t,n))}function R(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function I(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function D(e,t,n){n=n.split("-")[0];var r=R(e),o={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),i=a?"top":"left",s=a?"left":"top",l=a?"height":"width",c=a?"width":"height";return o[i]=t[i]+t[l]/2-r[l]/2,o[s]=n===s?t[s]-r[c]:t[I(s)],o}function A(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function L(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=A(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&s(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.offsets.popper=D(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=L(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function M(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length-1;r++){var o=t[r],a=o?""+o+n:e;if(void 0!==document.body.style[a])return a}return null}function H(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[M("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function q(e){var t=e.ownerDocument;return t?t.defaultView:window}function K(e,t,n,r){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),o||K(u(a.parentNode),t,n,r),r.push(a)}function W(e,t,n,r){n.updateBound=r,q(e).addEventListener("resize",n.updateBound,{passive:!0});var o=u(e);return K(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function V(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function z(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,q(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function U(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function G(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&U(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function Y(e,t,n){var r=A(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var a="`"+t+"`",i="`"+n+"`";console.warn(i+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return o}var X=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=X.slice(3);function J(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(e),r=Q.slice(n+1).concat(Q.slice(0,n));return t?r.reverse():r}var Z="flip",$="clockwise",ee="counterclockwise";function te(e,t,n,r){var o=[0,0],a=-1!==["right","left"].indexOf(r),i=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=i.indexOf(A(i,(function(e){return-1!==e.search(/,|\s/)})));i[s]&&-1===i[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[i.slice(0,s).concat([i[s].split(l)[0]]),[i[s].split(l)[1]].concat(i.slice(s+1))]:[i];return(c=c.map((function(e,r){var o=(1===r?!a:a)?"height":"width",i=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,i=!0,e):i?(e[e.length-1]+=t,i=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],i=o[2];if(!a)return e;if(0===i.indexOf("%")){var s=void 0;switch(i){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*a}if("vh"===i||"vw"===i)return("vh"===i?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,o,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){U(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var ne={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,a=o.reference,i=o.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:x({},l,a[l]),end:x({},l,a[l]+a[c]-i[c])};e.offsets.popper=w({},i,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,a=o.popper,i=o.reference,s=r.split("-")[0],l=void 0;return l=U(+n)?[+n,0]:te(n,a,i,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||p(e.instance.popper);e.instance.reference===n&&(n=p(n));var r=N(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=r;var o=t.priority,a=e.offsets.popper,i={primary:function(e){var n=a[e];return a[e]<r[e]&&!t.escapeWithReference&&(n=Math.max(a[e],r[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",o=a[n];return a[e]>r[e]&&!t.escapeWithReference&&(o=Math.min(a[n],r[e]-("right"===e?a.width:a.height))),x({},n,o)}};return o.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";a=w({},a,i[t](e))})),e.offsets.popper=a,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],a=Math.floor,i=-1!==["top","bottom"].indexOf(o),s=i?"right":"bottom",l=i?"left":"top",c=i?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Y(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],a=e.offsets,i=a.popper,s=a.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",p=c?"Top":"Left",f=p.toLowerCase(),d=c?"left":"top",h=c?"bottom":"right",m=R(r)[u];s[h]-m<i[f]&&(e.offsets.popper[f]-=i[f]-(s[h]-m)),s[f]+m>i[h]&&(e.offsets.popper[f]+=s[f]+m-i[h]),e.offsets.popper=S(e.offsets.popper);var b=s[f]+s[u]/2-m/2,y=l(e.instance.popper),v=parseFloat(y["margin"+p],10),g=parseFloat(y["border"+p+"Width"],10),O=b-e.offsets.popper[f]-v-g;return O=Math.max(Math.min(i[u]-m,O),0),e.arrowElement=r,e.offsets.arrow=(x(n={},f,Math.round(O)),x(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=N(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),r=e.placement.split("-")[0],o=I(r),a=e.placement.split("-")[1]||"",i=[];switch(t.behavior){case Z:i=[r,o];break;case $:i=J(r);break;case ee:i=J(r,!0);break;default:i=t.behavior}return i.forEach((function(s,l){if(r!==s||i.length===l+1)return e;r=e.placement.split("-")[0],o=I(r);var c=e.offsets.popper,u=e.offsets.reference,p=Math.floor,f="left"===r&&p(c.right)>p(u.left)||"right"===r&&p(c.left)<p(u.right)||"top"===r&&p(c.bottom)>p(u.top)||"bottom"===r&&p(c.top)<p(u.bottom),d=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),b=p(c.bottom)>p(n.bottom),y="left"===r&&d||"right"===r&&h||"top"===r&&m||"bottom"===r&&b,v=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(v&&"start"===a&&d||v&&"end"===a&&h||!v&&"start"===a&&m||!v&&"end"===a&&b);(f||y||g)&&(e.flipped=!0,(f||y)&&(r=i[l+1]),g&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=w({},e.offsets.popper,D(e.instance.popper,e.offsets.reference,e.placement)),e=L(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,a=r.reference,i=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[i?"left":"top"]=a[n]-(s?o[i?"width":"height"]:0),e.placement=I(t),e.offsets.popper=S(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Y(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=A(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,a=A(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var i=void 0!==a?a:t.gpuAcceleration,s=E(p(e.instance.popper)),l={position:o.position},c={left:Math.floor(o.left),top:Math.floor(o.top),bottom:Math.floor(o.bottom),right:Math.floor(o.right)},u="bottom"===n?"top":"bottom",f="right"===r?"left":"right",d=M("transform"),h=void 0,m=void 0;if(m="bottom"===u?-s.height+c.bottom:c.top,h="right"===f?-s.width+c.right:c.left,i&&d)l[d]="translate3d("+h+"px, "+m+"px, 0)",l[u]=0,l[f]=0,l.willChange="transform";else{var b="bottom"===u?-1:1,y="right"===f?-1:1;l[u]=m*b,l[f]=h*y,l.willChange=u+", "+f}var v={"x-placement":e.placement};return e.attributes=w({},v,e.attributes),e.styles=w({},l,e.styles),e.arrowStyles=w({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return G(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&G(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var a=k(0,t,e),i=P(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",i),G(t,{position:"absolute"}),n},gpuAcceleration:void 0}}},re=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};O(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=w({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(w({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=w({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return w({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&s(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return _(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return V.call(this)}},{key:"disableEventListeners",value:function(){return z.call(this)}}]),e}();re.Utils=("undefined"!=typeof window?window:e).PopperUtils,re.placements=X,re.Defaults=ne,t.a=re}).call(this,n(10))},function(e){e.exports=JSON.parse('{"component":"icon","status":"prod","display-name":"Icons","classKey":"Icon","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/icons","site-stories":[{"heading":"Category Options","path":"/__examples__/categories.jsx"},{"heading":"Color Options","path":"/__examples__/colors.jsx"},{"heading":"Size Options","path":"/__examples__/sizes.jsx"}],"url-slug":"icons"}')},function(e,t){e.exports={"global-setup":"#2A739E","service-cloud":"#7f2443","industry-cloud":"#4c2248","sales-cloud":"#00857d","commerce-cloud":"#41693d","community-cloud":"#ffc20e","marketing-cloud":"#ea7600",quip:"#cf451d"}},function(e){e.exports=JSON.parse('{"component":"tooltip","status":"prod","display-name":"Tooltips","classKey":"Tooltip","SLDS-component-path":"/components/tooltips","site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"Button Trigger","path":"/__examples__/button.jsx"},{"heading":"Button Group Trigger","path":"/__examples__/button-group.jsx"},{"heading":"Learn more","path":"/__examples__/learn-more.jsx"}],"url-slug":"tooltips"}')},function(e){e.exports=JSON.parse('{"component":"alert","status":"prod","display-name":"Alerts","classKey":"Alert","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/alert","dependencies":[{"component":"container","classKey":"AlertContainer"}],"site-stories":[{"heading":"Informational","path":"/__examples__/info.jsx"},{"heading":"Warning","path":"/__examples__/warning.jsx"},{"heading":"System Status","path":"/__examples__/offline.jsx"},{"heading":"Error","path":"/__examples__/error.jsx"},{"heading":"Dismissable","path":"/__examples__/dismissable.jsx"}],"url-slug":"alerts"}')},function(e){e.exports=JSON.parse('{"component":"modal","status":"prod","display-name":"Modals and Prompts","classKey":"Modal","SLDS-component-path":"/components/modals","site-stories":[{"heading":"Default","path":"/__examples__/menu-contents.jsx"},{"heading":"With header and footer","path":"/__examples__/header-footer.jsx"},{"heading":"With Tagline","path":"/__examples__/taglines.jsx"},{"heading":"Prompt","path":"/__examples__/prompt.jsx"},{"heading":"Various sizes","path":"/__examples__/sizes.jsx"}],"url-slug":"modals"}')},function(e){e.exports=JSON.parse('{"component":"avatar","status":"prod","display-name":"Avatars","classKey":"Avatar","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/avatar","site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"User Initials","path":"/__examples__/user-initials.jsx"},{"heading":"User Icon","path":"/__examples__/user-icon.jsx"},{"heading":"Entity Initials","path":"/__examples__/entity-initials.jsx"},{"heading":"Entity Icon","path":"/__examples__/entity-icon.jsx"}],"url-slug":"avatars"}')},function(e){e.exports=JSON.parse('{"component":"breadcrumb","status":"prod","display-name":"Breadcrumbs","classKey":"Breadcrumb","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/breadcrumb","site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"One Item","path":"/__examples__/one-item.jsx"},{"heading":"With Overflow Menu","path":"/__examples__/base-with-overflow-menu.jsx"}],"url-slug":"breadcrumbs"}')},function(e){e.exports=JSON.parse('{"component":"menu-dropdown","status":"prod","display-name":"Dropdown Menus","classKey":"MenuDropdown","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/menus#flavor-dropdown","dependencies":[{"component":"button-trigger","classKey":"MenuDropdownButtonTrigger"}],"site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"With Icon Label","path":"/__examples__/default-icon-label.jsx"},{"heading":"With Subheadings","path":"/__examples__/sub-heading.jsx"},{"heading":"Custom trigger","path":"/__examples__/custom-trigger.jsx"},{"heading":"Checkmark Selection","path":"/__examples__/checkmark.jsx"}],"url-slug":"menu-dropdowns"}')},function(e){e.exports=JSON.parse('{"component":"button-stateful","status":"prod","display-name":"Stateful Buttons","classKey":"ButtonStateful","SLDS-component-path":"/components/button/#flavor-stateful","site-stories":[{"heading":"Icon Only","path":"/__examples__/icon.jsx"},{"heading":"Icon and Text","path":"/__examples__/icon-text.jsx"}],"url-slug":"stateful-buttons"}')},function(e){e.exports=JSON.parse('{"component":"spinner","status":"prod","display-name":"Spinners","classKey":"Spinner","SLDS-component-path":"/components/spinner","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"spinners"}')},function(e){e.exports=JSON.parse('{"component":"checkbox","status":"prod","display-name":"Checkboxes","classKey":"Checkbox","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/checkbox","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"Error State","path":"/__examples__/error.jsx"},{"heading":"Toggle","path":"/__examples__/toggle.jsx"},{"heading":"Grouped with Tri-State","path":"/__examples__/grouped-with-tristate.jsx"}],"url-slug":"checkboxes"}')},function(e){e.exports=JSON.parse('{"component":"radio","status":"prod","display-name":"Radios","classKey":"Radio","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"Disabled","path":"/__examples__/disabled.jsx"}],"SLDS-component-path":"/components/radio-group/","url-slug":"radios"}')},function(e){e.exports=JSON.parse('{"component":"popover","status":"prod","display-name":"Popovers","classKey":"Popover","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/popovers","site-stories":[{"heading":"With Header","path":"/__examples__/header.jsx"},{"heading":"With Alternative Header","path":"/__examples__/alternative-header.jsx"},{"heading":"Controlled State with Footer","path":"/__examples__/controlled-with-footer.jsx"},{"heading":"Custom Target","path":"/__examples__/custom-target.jsx"},{"heading":"Error Theme","path":"/__examples__/error.jsx"},{"heading":"Feature","path":"/__examples__/feature.jsx"},{"heading":"Walkthrough","path":"/__examples__/walkthrough.jsx"},{"heading":"Walkthrough Action","path":"/__examples__/walkthrough-action.jsx"},{"heading":"Warning","path":"/__examples__/warning.jsx"},{"heading":"Edit Dialog","path":"/__examples__/edit-dialog.jsx"}],"url-slug":"popovers"}')},function(e){e.exports=JSON.parse('{"component":"color-picker","status":"prod","display-name":"Color Pickers","classKey":"ColorPicker","SLDS-component-path":"/components/color-picker","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"color-picker"}')},function(e){e.exports=JSON.parse('{"component":"combobox","status":"prod","display-name":"Comboboxes","classKey":"Combobox","last-accessibility-review":{"date-iso-8601":"2017/08/21","commit-sha":"295a4766f712a5f93743c4ecd3ba62d91c1fc153"},"SLDS-component-path":"/components/combobox","site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"Base: With subheader","path":"/__examples__/base-menu-subheader.jsx"},{"heading":"Base: Inherit Menu Width","path":"/__examples__/base-inherit-menu-width.jsx"},{"heading":"Base: Predefined options only","path":"/__examples__/base-predefined-options-only.jsx"},{"heading":"Base With Scroll","path":"/__examples__/base-with-scroll.jsx"},{"heading":"Base: With dialog","path":"/__examples__/dialog.jsx"},{"heading":"Inline single selection","path":"/__examples__/inline-single.jsx"},{"heading":"Inline: Single Selection with Entity Selection","path":"/__examples__/inline-single-entity-combobox.jsx"},{"heading":"Inline: Single Selection with Search and Add Menu Items","path":"/__examples__/inline-single-search-add-entities.jsx"},{"heading":"Inline: Multiple Selection with Loading State","path":"/__examples__/inline-multiple-loading.jsx"},{"heading":"Read-only: Single Selection (Picklist)","path":"/__examples__/readonly-single.jsx"},{"heading":"Read-only: Multiple Selection (Picklist)","path":"/__examples__/readonly-multiple.jsx"},{"heading":"Required Input and Error State","path":"/__examples__/required-input-error-state.jsx"}],"url-slug":"comboboxes"}')},function(e,t,n){var r;r=function(){return(()=>{"use strict";var e={67:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c});var r=n(887),o=n.n(r);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s,l=(s=0,function(){return s++}),c=function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(this,e),i(this,"ID","id"),i(this,"PX","px"),i(this,"RESIZABLE","grip-resizable"),i(this,"FLEX","grip-flex"),i(this,"legacyIE",navigator.userAgent.indexOf("Trident/4.0")>0),i(this,"reset",(function(e){return n.init(e)})),i(this,"onResize",(function(){var e=n.tb;if(e.classList.remove(n.RESIZABLE),e.opt.fixed){e.tableWidth=Number(window.getComputedStyle(e).width.replace(/px/,"")).valueOf();for(var t=0,r=0;r<e.columnCnt;r++)t+=e.columns[r].w;for(var o=0;o<e.columnCnt;o++)e.columns[o].style.width=Math.round(1e3*e.columns[o].w/t)/10+"%",e.columns[o].locked=!0}else n.applyBounds(),"flex"===e.opt.resizeMode&&e.opt.serialize&&n.serializeStore();e.classList.add(n.RESIZABLE),n.syncGrips()})),i(this,"onGripMouseDown",(function(e){var t=e.target.parentNode.data,r=n.tb,o=r.grips[t.i],a=e.touches;if(o.ox=a?a[0].pageX:e.pageX,o.l=o.offsetLeft,o.x=o.l,n.createStyle(document.querySelector("head"),"*{cursor:"+r.opt.dragCursor+"!important}"),document.addEventListener("touchmove",n.onGripDrag),document.addEventListener("mousemove",n.onGripDrag),document.addEventListener("touchend",n.onGripDragOver),document.addEventListener("mouseup",n.onGripDragOver),o.classList.add(r.opt.draggingClass),n.grip=o,r.columns[t.i].locked)for(var i,s=0;s<r.columnCnt;s++)(i=r.columns[s]).locked=!1,i.w=Number(window.getComputedStyle(i).width.replace(/px/,"")).valueOf();e.preventDefault()})),i(this,"onGripDrag",(function(e){var t=n.grip;if(t){var r=t.t,o=e.touches,a=(o?o[0].pageX:e.pageX)-t.ox+t.l,i=r.opt.minWidth,s=t.i,l=1.5*r.cellSpace+i+r.borderSpace,c=s===r.columnCnt-1,u=s?r.grips[s-1].offsetLeft+r.cellSpace+i:l,p=r.opt.fixed?s===r.columnCnt-1?r.tableWidth-l:r.grips[s+1].offsetLeft-r.cellSpace-i:1/0;if(a=Math.max(u,Math.min(p,a)),t.x=a,t.style.left=a+n.PX,c&&(t.w=r.columns[s].w+a-t.l),r.opt.liveDrag){c?(r.columns[s].style.width=t.w+n.PX,!r.opt.fixed&&r.opt.overflow?r.style.minWidth=r.tableWidth+a-t.l+n.PX:r.tableWidth=Number(window.getComputedStyle(r).width.replace(/px/,"")).valueOf()):n.syncCols(r,s,!1,r.opt),n.syncGrips();var f=r.opt.onDrag;f&&f(e)}e.preventDefault()}})),i(this,"onGripDragOver",(function(e){var t=n.grip;document.removeEventListener("touchend",n.onGripDragOver),document.removeEventListener("mouseup",n.onGripDragOver),document.removeEventListener("touchmove",n.onGripDrag),document.removeEventListener("mousemove",n.onGripDrag);var r=document.querySelector("head").lastChild;if(r.parentNode.removeChild(r),t){if(t.classList.remove(t.t.opt.draggingClass),t.x-t.l!=0){var o=t.t,a=o.opt.onResize,i=t.i;if(i===o.columnCnt-1){var s=o.columns[i];s.style.width=t.w+n.PX,s.w=t.w}else n.syncCols(o,i,!0,o.opt);o.opt.fixed||n.applyBounds(),n.syncGrips(),a&&a(e),o.opt.serialize&&n.serializeStore()}n.grip=null}})),i(this,"init",(function(e){if(e.disable)return n.destroy();var t=n.tb,r=t.getAttribute(n.ID)||n.RESIZABLE+l();if(!t.matches("table")||t.extended&&!e.partialRefresh)return null;var o=document.querySelector("head");if(n.createStyle(o," .grip-resizable{table-layout:fixed;} .grip-resizable > tbody > tr > td, .grip-resizable > tbody > tr > th{overflow:hidden} .grip-padding > tbody > tr > td, .grip-padding > tbody > tr > th{padding-left:0!important; padding-right:0!important;} .grip-container{ height:0px; position:relative;} .grip-handle{margin-left:-5px; position:absolute; z-index:5; } .grip-handle .grip-resizable{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: col-resize;top:0px} .grip-lastgrip{position:absolute; width:1px; } .grip-drag{ border-left:1px dotted black;\t} .grip-flex{width:auto!important;} .grip-handle.grip-disabledgrip .grip-resizable{cursor:default; display:none;}"),e.hoverCursor&&"col-resize"!==e.hoverCursor){var a=".grip-handle .grip-resizable:hover{cursor:"+e.hoverCursor+"!important}";n.createStyle(o,a)}t.setAttribute(n.ID,r);var i=t.opt;t.opt=n.extendOptions(e);var s=n.getTableHeaders(t);if(n.extendTable(s),e.remoteTable&&e.remoteTable.matches("table")){var c=n.getTableHeaders(t.opt.remoteTable);s.length===c.length?n.extendRemoteTable(t.opt.remoteTable,c,t):console.warn("column count for remote table did not match")}return i})),i(this,"applyBounds",(function(){var e=n.tb,t=e.columns.map((function(e){return window.getComputedStyle(e).width}));e.style.width=window.getComputedStyle(e).width,e.tableWidth=Number(e.style.width.replace(/px/,"")).valueOf(),e.classList.remove(n.FLEX),e.columns.forEach((function(e,n){e.style.width=t[n],e.w=Number(t[n].replace(/px/,"")).valueOf()})),e.classList.add(n.FLEX)})),i(this,"serializeStore",(function(){var e=n.store,t=n.tb;e[t.getAttribute(n.ID)]="";for(var r=0,o=0;o<t.columns.length;o++){var a=window.getComputedStyle(t.columns[o]).width.replace(/px/,"");e[t.getAttribute(n.ID)]+=a+";",r+=Number(a).valueOf()}e[t.getAttribute(n.ID)]+=r.toString(),t.opt.fixed||(e[t.getAttribute(n.ID)]+=";"+window.getComputedStyle(t).width.replace(/px/,""))})),i(this,"syncGrips",(function(){var e=n.tb;e.gripContainer.style.width=e.tableWidth+n.PX;for(var t=0;t<e.columnCnt;t++){var r=e.columns[t],o=r.getBoundingClientRect(),a=e.getBoundingClientRect();e.grips[t].style.left=o.left-a.left+r.offsetWidth+e.cellSpace/2+n.PX,e.grips[t].style.height=(e.opt.headerOnly?e.columns[0].offsetHeight:e.offsetHeight)+n.PX}})),i(this,"destroy",(function(){var e=n.tb,t=e.getAttribute(n.ID);return t?(n.store[t]="",e.classList.remove(n.RESIZABLE),e.classList.remove(n.FLEX),e.remote&&(e.remote.classList.remove(n.RESIZABLE),e.remote.classList.remove(n.FLEX)),e.gripContainer&&e.gripContainer.parentNode&&e.gripContainer.parentNode.removeChild(e.gripContainer),delete e.extended,e.opt):null})),i(this,"createStyle",(function(e,t){var n=o()(t).toString(),r=e.querySelectorAll("style");if(!Array.from(r).filter((function(e){return e.gripid===n})).length){var a=document.createElement("style");a.type="text/css",a.gripid=n,a.styleSheet?a.styleSheet.cssText=t:a.appendChild(document.createTextNode(t)),e.appendChild(a)}})),i(this,"extendOptions",(function(t){var n=Object.assign({},e.DEFAULTS,t);switch(n.fixed=!0,n.overflow=!1,n.resizeMode){case"flex":n.fixed=!1;break;case"overflow":n.fixed=!1,n.overflow=!0}return n})),i(this,"getTableHeaders",(function(e){var t="#"+e.id,r=Array.from(e.querySelectorAll(t+">thead>tr:nth-of-type(1)>th"));return(r=r.concat(Array.from(e.querySelectorAll(t+">thead>tr:nth-of-type(1)>td")))).length||(r=(r=(r=(r=Array.from(e.querySelectorAll(t+">tbody>tr:nth-of-type(1)>th"))).concat(Array.from(e.querySelectorAll(t+">tr:nth-of-type(1)>th")))).concat(Array.from(e.querySelectorAll(t+">tbody>tr:nth-of-type(1)>td")))).concat(Array.from(e.querySelectorAll(t+">tr:nth-of-type(1)>td")))),n.filterInvisible(r,!1)})),i(this,"filterInvisible",(function(e,t){return e.filter((function(e){var n=t?-1:e.offsetWidth,r=t?-1:e.offsetHeight;return!(0===n&&0===r||e.style&&e.style.display&&"none"===window.getComputedStyle(e).display)}))})),i(this,"extendTable",(function(e){var t=n.tb;t.opt.removePadding&&t.classList.add("grip-padding"),t.classList.add(n.RESIZABLE),t.insertAdjacentHTML("beforebegin",'<div class="grip-container"/>'),t.grips=[],t.columns=[],t.tableWidth=Number(window.getComputedStyle(t).width.replace(/px/,"")).valueOf(),t.gripContainer=t.previousElementSibling,t.opt.marginLeft&&(t.gripContainer.style.marginLeft=t.opt.marginLeft),t.opt.marginRight&&(t.gripContainer.style.marginRight=t.opt.marginRight),t.cellSpace=parseInt(n.legacyIE?t.cellSpacing||t.currentStyle.borderSpacing:window.getComputedStyle(t).borderSpacing.split(" ")[0].replace(/px/,""))||2,t.borderSpace=parseInt(n.legacyIE?t.border||t.currentStyle.borderLeftWidth:window.getComputedStyle(t).borderLeftWidth.replace(/px/,""))||1,t.extended=!0,n.createGrips(e)})),i(this,"extendRemoteTable",(function(e,t,r){r.opt.removePadding&&e.classList.add("grip-padding"),e.classList.add(n.RESIZABLE),e.getAttribute(n.ID)||e.setAttribute(n.ID,r.getAttribute(n.ID)+"remote"),e.columns=[],t.forEach((function(o,a){var i=t[a];i.w=r.columns[a].w,i.style.width=i.w+n.PX,i.removeAttribute("width"),e.columns.push(i)})),e.tableWidth=r.tableWidth,e.cellSpace=r.cellSpace,e.borderSpace=r.borderSpace;var o=Array.from(e.querySelectorAll("col"));e.columnGrp=n.filterInvisible(o,!0),e.columnGrp.forEach((function(e,t){e.removeAttribute("width"),e.style.width=r.columnGrp[t].style.width})),r.remote=e})),i(this,"createGrips",(function(e){var t=n.tb;t.columnGrp=n.filterInvisible(Array.from(t.querySelectorAll("col")),!0),t.columnGrp.forEach((function(e){e.removeAttribute("width")})),t.columnCnt=e.length;var r=!1;n.store[t.getAttribute(n.ID)]&&(n.deserializeStore(e),r=!0),t.opt.widths||(t.opt.widths=[]),e.forEach((function(o,a){var i=e[a],s=-1!==t.opt.disabledColumns.indexOf(a);n.createDiv(t.gripContainer,"grip-handle");var l=t.gripContainer.lastChild;!s&&t.opt.gripInnerHtml&&(l.innerHTML=t.opt.gripInnerHtml),n.createDiv(l,n.RESIZABLE),a===t.columnCnt-1&&(l.classList.add("grip-lastgrip"),t.opt.fixed&&(l.innerHTML="")),l.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",n.onGripMouseDown,!0),s?l.classList.add("grip-disabledgrip"):(l.classList.remove("grip-disabledgrip"),l.addEventListener("touchstart",n.onGripMouseDown,{capture:!0,passive:!0}),l.addEventListener("mousedown",n.onGripMouseDown,!0)),l.t=t,l.i=a,t.opt.widths[a]?i.w=t.opt.widths[a]:i.w=r?Number(i.style.width.replace(/px/,"")).valueOf():Number(window.getComputedStyle(i).width.replace(/px/,"")).valueOf(),i.style.width=i.w+n.PX,i.removeAttribute("width"),l.data={i:a,t:t.getAttribute(n.ID),last:a===t.columnCnt-1},t.grips.push(l),t.columns.push(i)}));var o=Array.from(t.querySelectorAll("td"));o.concat(Array.from(t.querySelectorAll("th"))),(o=(o=o.filter((function(t){for(var n=0;n<e.length;n++)if(e[n]===t)return!1;return!0}))).filter((function(e){return!(e.querySelectorAll("table th").length||e.querySelectorAll("table td").length)}))).forEach((function(e){e.removeAttribute("width")})),t.opt.fixed||(t.removeAttribute("width"),t.classList.add(n.FLEX)),n.syncGrips()})),i(this,"deserializeStore",(function(e){var t=n.tb;if(t.columnGrp.forEach((function(e){e.removeAttribute("width")})),t.opt.flush)n.store[t.getAttribute(n.ID)]="";else{var r=n.store[t.getAttribute(n.ID)].split(";"),o=r[t.columnCnt+1];!t.opt.fixed&&o&&(t.style.width=o+n.PX,t.opt.overflow&&(t.style.minWidth=o+n.PX,t.tableWidth=Number(o).valueOf()));for(var a=0;a<t.columnCnt;a++)e[a].style.width=r[a]+n.PX,t.columnGrp[a]&&(t.columnGrp[a].style.width=100*Number(r[a]).valueOf()/Number(r[t.columnCnt]).valueOf()+"%")}})),i(this,"createDiv",(function(e,t,n){var r=document.createElement("div");r.classList.add(t),n&&(r.innerHTML=n),e.appendChild(r)})),i(this,"syncCols",(function(e,t,r,o){var a=e.remote,i=n.grip.x-n.grip.l,s=e.columns[t],l=e.columns[t+1];if(s&&l){var c=s.w+i,u=l.w-i,p=c+n.PX;if(s.style.width=p,e.columnGrp[t]&&e.columnGrp[t].style.width&&(e.columnGrp[t].style.width=p),a&&(a.columns[t].style.width=p,a.columnGrp[t]&&a.columnGrp[t].style.width&&(a.columnGrp[t].style.width=p)),o.fixed){var f=u+n.PX;l.style.width=f,e.columnGrp[t+1]&&e.columnGrp[t+1].style.width&&(e.columnGrp[t+1].style.width=f),a&&(a.columns[t+1].style.width=f,a.columnGrp[t+1]&&a.columnGrp[t+1].style.width&&(a.columnGrp[t+1].style.width=f))}else o.overflow&&(e.style.minWidth=e.tableWidth+i+n.PX);r&&(s.w=c,l.w=o.fixed?u:l.w,a&&(a.columns[t].w=c,a.columns[t+1].w=o.fixed?u:l.w))}}));try{this.store=sessionStorage}catch(t){this.store={}}this.grip=null,this.tb=t,window.addEventListener("resize",this.onResize),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector),this.init(r)};c.DEFAULTS={resizeMode:"fit",draggingClass:"grip-drag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"col-resize",dragCursor:"col-resize",flush:!1,marginLeft:null,marginRight:null,remoteTable:null,disable:!1,partialRefresh:!1,disabledColumns:[],removePadding:!0,widths:[],serialize:!0,onDrag:null,onResize:null}},887:e=>{e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}}},t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}return n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(67)})()},e.exports=r()},function(e){e.exports=JSON.parse('{"component":"data-table","status":"prod","display-name":"Data Tables","classKey":"DataTable","last-accessibility-review":{"date-iso-8601":"2017/01/01","deprecated-accessibility":"true","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/data-tables","dependencies":[{"component":"cell","classKey":"DataTableCell"},{"component":"column","classKey":"DataTableColumn"},{"component":"highlight-cell","classKey":"DataTableHighlightCell"},{"component":"row-actions","classKey":"DataTableRowActions"}],"site-stories":[{"heading":"Basic","path":"/__examples__/basic-fluid.jsx"},{"heading":"Basic: Fluid and Striped","path":"/__examples__/basic-fluid-striped.jsx"},{"heading":"Basic: No row hover","path":"/__examples__/basic-fluid-no-row-hover.jsx"},{"heading":"Basic: Columns bordered","path":"/__examples__/basic-fluid-column-bordered.jsx"},{"heading":"Basic: Headless","path":"/__examples__/basic-fluid-headless.jsx"},{"heading":"Fixed Layout","path":"/__examples__/basic-fixed-layout.jsx"},{"heading":"Advanced","path":"/__examples__/advanced.jsx"},{"heading":"Advanced: Single Selection","path":"/__examples__/advanced-single-select.jsx"},{"heading":"Advanced: Fixed Header","path":"/__examples__/fixed-header.jsx"},{"heading":"Advanced: Joined with Page Header","path":"/__examples__/joined-with-page-header.jsx"},{"heading":"Infinite Scrolling","path":"/__examples__/infinite-scrolling.jsx"},{"heading":"Resizable Columns","path":"/__examples__/resizable-columns.jsx"}],"url-slug":"data-tables"}')},function(e,t){e.exports={brandHeaderContrastWeakDisabled:"rgba(166, 166, 166, 0.25)",colorGray11:"rgb(62, 62, 60)",brandPrimaryTransparent10:"rgba(21, 137, 238, 0.1)",colorGray12:"rgb(43, 40, 38)",brandBackgroundDarkTransparent:"rgba(221, 219, 218, 0)",brandHeader:"rgb(255, 255, 255)",brandLightActive:"rgb(227, 229, 237)",brandHeaderContrastWarm:"rgb(191, 2, 1)",brandHeaderIconDisabled:"rgba(145, 145, 145, 0.25)",brandHeaderContrastActive:"rgb(80, 80, 80)",brandBackgroundPrimary:"rgb(250, 250, 249)",brandPrimary:"rgb(21, 137, 238)",brandHeaderContrastWeakActive:"rgb(129, 129, 129)",brandContrastActive:"rgb(13, 14, 18)",brandHeaderContrastCool:"rgb(0, 85, 131)",brandHeaderContrastInverse:"rgb(255, 255, 255)",brandDark:"rgb(24, 35, 55)",brandAccessible:"rgb(0, 112, 210)",brandBackgroundDark:"rgb(232, 232, 232)",brandTextLinkActive:"rgb(0, 95, 178)",colorGray1:"rgb(255, 255, 255)",colorGray2:"rgb(250, 250, 249)",brandHeaderIconActive:"rgb(129, 129, 129)",colorGray3:"rgb(243, 242, 242)",brandHeaderIcon:"rgb(145, 145, 145)",brandDisabled:"rgb(201, 199, 197)",brandTextLink:"rgb(0, 109, 204)",colorGray4:"rgb(236, 235, 234)",colorGray5:"rgb(221, 219, 218)",colorGray6:"rgb(201, 199, 197)",brandAccessibleActive:"rgb(0, 95, 178)",colorGray7:"rgb(176, 173, 171)",brandDarkActive:"rgb(37, 48, 69)",colorGray8:"rgb(150, 148, 146)",brandHeaderContrastInverseActive:"rgb(238, 238, 238)",brandHeaderContrastCoolActive:"rgb(0, 85, 131)",colorGray9:"rgb(112, 110, 107)",brandContrast:"rgb(26, 27, 30)",brandHeaderContrastWeak:"rgb(145, 145, 145)",brandPrimaryActive:"rgb(0, 122, 221)",brandBackgroundPrimaryTransparent:"rgba(250, 250, 249, 0)",brandHeaderContrast:"rgb(94, 94, 94)",brandPrimaryTransparent:"rgba(21, 137, 238, 0.1)",brandHeaderContrastWarmActive:"rgb(172, 0, 0)",brandPrimaryTransparent40:"rgba(21, 137, 238, 0.4)",brandLight:"rgb(244, 246, 254)",colorGray10:"rgb(81, 79, 77)"}},function(e){e.exports=JSON.parse('{"component":"date-picker","status":"prod","display-name":"Datepickers","classKey":"DatePicker","last-accessibility-review":{"date-iso-8601":"2017/01/20","commit-sha":"568f503b19ddc039207e4b5c2636461de937f5f0"},"SLDS-component-path":"/components/datepickers","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"date-pickers"}')},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__assign||function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),l=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},c=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var p=l(n(1)),f=u(n(85)),d=l(n(0));function h(e){return e&&e.replace(/ |\u202F|\u00A0/g," ")}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.lastHtml=t.props.html,t.el="function"==typeof t.props.innerRef?{current:null}:p.createRef(),t.getEl=function(){return(t.props.innerRef&&"function"!=typeof t.props.innerRef?t.props.innerRef:t.el).current},t.emitChange=function(e){var n=t.getEl();if(n){var r=n.innerHTML;if(t.props.onChange&&r!==t.lastHtml){var o=Object.assign({},e,{target:{value:r}});t.props.onChange(o)}t.lastHtml=r}},t}return o(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.tagName,r=t.html,o=t.innerRef,i=c(t,["tagName","html","innerRef"]);return p.createElement(n||"div",a(a({},i),{ref:"function"==typeof o?function(t){o(t),e.el.current=t}:o||this.el,onInput:this.emitChange,onBlur:this.props.onBlur||this.emitChange,onKeyUp:this.props.onKeyUp||this.emitChange,onKeyDown:this.props.onKeyDown||this.emitChange,contentEditable:!this.props.disabled,dangerouslySetInnerHTML:{__html:r}}),this.props.children)},t.prototype.shouldComponentUpdate=function(e){var t=this.props,n=this.getEl();return!n||(h(e.html)!==h(n.innerHTML)||(t.disabled!==e.disabled||t.tagName!==e.tagName||t.className!==e.className||t.innerRef!==e.innerRef||!f.default(t.style,e.style)))},t.prototype.componentDidUpdate=function(){var e=this.getEl();e&&(this.props.html!==e.innerHTML&&(e.innerHTML=this.props.html),this.lastHtml=this.props.html,function(e){var t=document.createTextNode("");e.appendChild(t);var n=document.activeElement===e;if(null!==t&&null!==t.nodeValue&&n){var r=window.getSelection();if(null!==r){var o=document.createRange();o.setStart(t,t.nodeValue.length),o.collapse(!0),r.removeAllRanges(),r.addRange(o)}e instanceof HTMLElement&&e.focus()}}(e))},t.propTypes={html:d.string.isRequired,onChange:d.func,disabled:d.bool,tagName:d.string,className:d.string,style:d.object,innerRef:d.oneOfType([d.object,d.func])},t}(p.Component);t.default=m},function(e){e.exports=JSON.parse('{"component":"global-header","status":"prod","display-name":"Global Header","classKey":"GlobalHeader","SLDS-component-path":"/components/global-header#flavor-base","dependencies":[{"component":"favorites","classKey":"GlobalHeaderFavorites"},{"component":"help","classKey":"GlobalHeaderHelp"},{"component":"notifications","classKey":"GlobalHeaderNotifications"},{"component":"profile","classKey":"GlobalHeaderProfile"},{"component":"search","classKey":"GlobalHeaderSearch"},{"component":"setup","classKey":"GlobalHeaderSetup"},{"component":"task","classKey":"GlobalHeaderTask"}],"site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"global-headers"}')},function(e){e.exports=JSON.parse('{"component":"illustration","is-deprecated":true,"status":"prototype","display-name":"Illustrations","classKey":"Illustration","SLDS-component-path":"/components/illustration","site-stories":[{"heading":"Small Image with Text","path":"/__examples__/small-image-text.jsx"},{"heading":"Large Image with Text","path":"/__examples__/large-image-text.jsx"},{"heading":"With Heading and message","path":"/__examples__/heading-message.jsx"},{"heading":"Heading Only","path":"/__examples__/heading-only.jsx"},{"heading":"Message Only","path":"/__examples__/message-only.jsx"}],"url-slug":"illustrations"}')},function(e){e.exports=JSON.parse('{"component":"vertical-navigation","status":"prod","display-name":"Vertical Navigation","classKey":"VerticalNavigation","SLDS-component-path":"/components/vertical-navigation","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"Items with Icons","path":"/__examples__/icons.jsx"},{"heading":"Items with Notifications","path":"/__examples__/notifications.jsx"}],"url-slug":"vertical-navigation"}')},function(e){e.exports=JSON.parse('{"component":"page-header","status":"prod","display-name":"Page Headers","classKey":"PageHeader","SLDS-component-path":"/components/page-headers","dependencies":[{"component":"control","classKey":"PageHeaderControl"}],"site-stories":[{"heading":"Record Home","path":"/__examples__/record-home.jsx"},{"heading":"Object Home","path":"/__examples__/object-home.jsx"},{"heading":"Related list","path":"/__examples__/related-list.jsx"},{"heading":"Setup","path":"/__examples__/setup.jsx"}],"url-slug":"page-headers"}')},function(e){e.exports=JSON.parse('{"component":"scoped-notification","status":"prod","display-name":"Scoped Notifications","classKey":"ScopedNotification","SLDS-component-path":"/components/scoped-notification","site-stories":[{"heading":"Base","path":"/__examples__/base.jsx"},{"heading":"Light","path":"/__examples__/light.jsx"},{"heading":"Dark","path":"/__examples__/dark.jsx"},{"heading":"With Custom Icon","path":"/__examples__/custom-icon.jsx"}],"url-slug":"scoped-notifications"}')},function(e){e.exports=JSON.parse('{"component":"textarea","status":"prod","display-name":"Textareas","classKey":"Textarea","SLDS-component-path":"/components/forms#flavor-textarea","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"},{"heading":"Error","path":"/__examples__/error.jsx"},{"heading":"Disabled","path":"/__examples__/disabled.jsx"}],"url-slug":"textareas"}')},function(e,t,n){(function(e,n){var r="object"==typeof e&&e&&e.Object===Object&&e,o=t&&!t.nodeType&&t,a=o&&"object"==typeof n&&n&&!n.nodeType&&n,i=a&&a.exports===o&&r.process,s=function(){try{return i&&i.binding("util")}catch(e){}}(),l=s&&s.isDate;var c=Object.prototype.toString;var u,p=l?(u=l,function(e){return u(e)}):function(e){return function(e){return!!e&&"object"==typeof e}(e)&&"[object Date]"==c.call(e)};n.exports=p}).call(this,n(10),n(16)(e))},function(e){e.exports=JSON.parse('{"component":"time-picker","status":"prod","display-name":"Timepickers","classKey":"TimePicker","SLDS-component-path":"/components/timepicker","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"timepickers"}')},function(e){e.exports=JSON.parse('{"component":"toast","status":"prod","display-name":"Toasts","classKey":"Toast","last-accessibility-review":{"date-iso-8601":"2018/01/18","commit-sha":"ad6b6c6523ee21cada11be5f7ea4d99abc530726"},"SLDS-component-path":"/components/toast","dependencies":[{"component":"container","classKey":"ToastContainer"}],"site-stories":[{"heading":"Informational","path":"/__examples__/info.jsx"},{"heading":"Success","path":"/__examples__/success.jsx"},{"heading":"Warning","path":"/__examples__/warning.jsx"},{"heading":"Error","path":"/__examples__/error.jsx"},{"heading":"Error with Details","path":"/__examples__/error-with-details.jsx"}],"url-slug":"toasts"}')},function(e){e.exports=JSON.parse('{"component":"tree","status":"prod","display-name":"Tree","classKey":"Tree","last-accessibility-review":{"date-iso-8601":"2018/05/04","commit-sha":"5fdeb31982a42cbd37a70d96d6257142cd7eec72"},"last-slds-markup-review":{"date-iso-8601":"2018/05/04","commit-sha":"5fdeb31982a42cbd37a70d96d6257142cd7eec72"},"SLDS-component-path":"/components/trees","site-stories":[{"heading":"Default","path":"/__examples__/default.jsx"}],"url-slug":"tree"}')},function(e,t,n){e.exports=n(86)},function(e,t,n){"use strict";var r=n(63);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(18),o=n(66),a=n(70),i=n(71)||0;function s(){return o(i)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return r.seed(t),e.exports},e.exports.worker=function(t){return i=t,e.exports},e.exports.characters=function(e){return void 0!==e&&r.characters(e),r.shuffled()},e.exports.isValid=a},function(e,t,n){"use strict";var r=1;e.exports={nextValue:function(){return(r=(9301*r+49297)%233280)/233280},seed:function(e){r=e}}},function(e,t,n){"use strict";var r,o,a=n(67);n(18);e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===o?r++:(r=0,o=n),t+=a(7),t+=a(e),r>0&&(t+=a(r)),t+=a(n)}},function(e,t,n){"use strict";var r=n(18),o=n(68),a=n(69);e.exports=function(e){for(var t,n=0,i="";!t;)i+=a(o,r.get(),1),t=e<Math.pow(16,n+1),n++;return i}},function(e,t,n){"use strict";var r,o="object"==typeof window&&(window.crypto||window.msCrypto);r=o&&o.getRandomValues?function(e){return o.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=r},function(e,t){e.exports=function(e,t,n){for(var r=(2<<Math.log(t.length-1)/Math.LN2)-1,o=-~(1.6*r*n/t.length),a="";;)for(var i=e(o),s=o;s--;)if((a+=t[i[s]&r]||"").length===+n)return a}},function(e,t,n){"use strict";var r=n(18);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+r.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},function(e,t,n){"use strict";e.exports=0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),i=h(a),s=h(n(6)),l=h(n(0)),c=h(n(73)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27)),p=n(23),f=h(p),d=n(79);function h(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var y=t.portalClassName="ReactModalPortal",v=t.bodyOpenClassName="ReactModal__Body--open",g=p.canUseDOM&&void 0!==s.default.createPortal,O=function(e){return document.createElement(e)},_=function(){return g?s.default.createPortal:s.default.unstable_renderSubtreeIntoContainer};function x(e){return e()}var w=function(e){function t(){var e,n,o;m(this,t);for(var a=arguments.length,l=Array(a),u=0;u<a;u++)l[u]=arguments[u];return n=o=b(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),o.removePortal=function(){!g&&s.default.unmountComponentAtNode(o.node);var e=x(o.props.parentSelector);e&&e.contains(o.node)?e.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(e){o.portal=e},o.renderPortal=function(e){var n=_()(o,i.default.createElement(c.default,r({defaultStyles:t.defaultStyles},e)),o.node);o.portalRef(n)},b(o,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){p.canUseDOM&&(g||(this.node=O("div")),this.node.className=this.props.portalClassName,x(this.props.parentSelector).appendChild(this.node),!g&&this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:x(e.parentSelector),nextParent:x(this.props.parentSelector)}}},{key:"componentDidUpdate",value:function(e,t,n){if(p.canUseDOM){var r=this.props,o=r.isOpen,a=r.portalClassName;e.portalClassName!==a&&(this.node.className=a);var i=n.prevParent,s=n.nextParent;s!==i&&(i.removeChild(this.node),s.appendChild(this.node)),(e.isOpen||o)&&!g&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(p.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),n=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);n?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,n-t)):this.removePortal()}}},{key:"render",value:function(){return p.canUseDOM&&g?(!this.node&&g&&(this.node=O("div")),_()(i.default.createElement(c.default,r({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(a.Component);w.propTypes={isOpen:l.default.bool.isRequired,style:l.default.shape({content:l.default.object,overlay:l.default.object}),portalClassName:l.default.string,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,className:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),overlayClassName:l.default.oneOfType([l.default.string,l.default.shape({base:l.default.string.isRequired,afterOpen:l.default.string.isRequired,beforeClose:l.default.string.isRequired})]),appElement:l.default.oneOfType([l.default.instanceOf(f.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(f.default))]),onAfterOpen:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,ariaHideApp:l.default.bool,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,parentSelector:l.default.func,aria:l.default.object,data:l.default.object,role:l.default.string,contentLabel:l.default.string,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func},w.defaultProps={isOpen:!1,portalClassName:y,bodyOpenClassName:v,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return i.default.createElement("div",e,t)},contentElement:function(e,t){return i.default.createElement("div",e,t)}},w.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,d.polyfill)(w),t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(1),s=b(n(0)),l=m(n(74)),c=b(n(75)),u=m(n(27)),p=m(n(77)),f=n(23),d=b(f),h=b(n(28));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function b(e){return e&&e.__esModule?e:{default:e}}n(78);var y={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},v=0,g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.setOverlayRef=function(e){n.overlay=e,n.props.overlayRef&&n.props.overlayRef(e)},n.setContentRef=function(e){n.content=e,n.props.contentRef&&n.props.contentRef(e)},n.afterClose=function(){var e=n.props,t=e.appElement,r=e.ariaHideApp,o=e.htmlOpenClassName,a=e.bodyOpenClassName;a&&p.remove(document.body,a),o&&p.remove(document.getElementsByTagName("html")[0],o),r&&v>0&&0===(v-=1)&&u.show(t),n.props.shouldFocusAfterRender&&(n.props.shouldReturnFocusAfterClose?(l.returnFocus(n.props.preventScroll),l.teardownScopedFocus()):l.popWithoutFocus()),n.props.onAfterClose&&n.props.onAfterClose(),h.default.deregister(n)},n.open=function(){n.beforeOpen(),n.state.afterOpen&&n.state.beforeClose?(clearTimeout(n.closeTimer),n.setState({beforeClose:!1})):(n.props.shouldFocusAfterRender&&(l.setupScopedFocus(n.node),l.markForFocusLater()),n.setState({isOpen:!0},(function(){n.openAnimationFrame=requestAnimationFrame((function(){n.setState({afterOpen:!0}),n.props.isOpen&&n.props.onAfterOpen&&n.props.onAfterOpen({overlayEl:n.overlay,contentEl:n.content})}))})))},n.close=function(){n.props.closeTimeoutMS>0?n.closeWithTimeout():n.closeWithoutTimeout()},n.focusContent=function(){return n.content&&!n.contentHasFocus()&&n.content.focus({preventScroll:!0})},n.closeWithTimeout=function(){var e=Date.now()+n.props.closeTimeoutMS;n.setState({beforeClose:!0,closesAt:e},(function(){n.closeTimer=setTimeout(n.closeWithoutTimeout,n.state.closesAt-Date.now())}))},n.closeWithoutTimeout=function(){n.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},n.afterClose)},n.handleKeyDown=function(e){9===e.keyCode&&(0,c.default)(n.content,e),n.props.shouldCloseOnEsc&&27===e.keyCode&&(e.stopPropagation(),n.requestClose(e))},n.handleOverlayOnClick=function(e){null===n.shouldClose&&(n.shouldClose=!0),n.shouldClose&&n.props.shouldCloseOnOverlayClick&&(n.ownerHandlesClose()?n.requestClose(e):n.focusContent()),n.shouldClose=null},n.handleContentOnMouseUp=function(){n.shouldClose=!1},n.handleOverlayOnMouseDown=function(e){n.props.shouldCloseOnOverlayClick||e.target!=n.overlay||e.preventDefault()},n.handleContentOnClick=function(){n.shouldClose=!1},n.handleContentOnMouseDown=function(){n.shouldClose=!1},n.requestClose=function(e){return n.ownerHandlesClose()&&n.props.onRequestClose(e)},n.ownerHandlesClose=function(){return n.props.onRequestClose},n.shouldBeClosed=function(){return!n.state.isOpen&&!n.state.beforeClose},n.contentHasFocus=function(){return document.activeElement===n.content||n.content.contains(document.activeElement)},n.buildClassName=function(e,t){var r="object"===(void 0===t?"undefined":o(t))?t:{base:y[e],afterOpen:y[e]+"--after-open",beforeClose:y[e]+"--before-close"},a=r.base;return n.state.afterOpen&&(a=a+" "+r.afterOpen),n.state.beforeClose&&(a=a+" "+r.beforeClose),"string"==typeof t&&t?a+" "+t:a},n.attributesFromObject=function(e,t){return Object.keys(t).reduce((function(n,r){return n[e+"-"+r]=t[r],n}),{})},n.state={afterOpen:!1,beforeClose:!1},n.shouldClose=null,n.moveFromContentToOverlay=null,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,n=e.ariaHideApp,r=e.htmlOpenClassName,o=e.bodyOpenClassName;o&&p.add(document.body,o),r&&p.add(document.getElementsByTagName("html")[0],r),n&&(v+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.className,o=e.overlayClassName,a=e.defaultStyles,i=e.children,s=n?{}:a.content,l=o?{}:a.overlay;if(this.shouldBeClosed())return null;var c={ref:this.setOverlayRef,className:this.buildClassName("overlay",o),style:r({},l,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=r({id:t,ref:this.setContentRef,style:r({},s,this.props.style.content),className:this.buildClassName("content",n),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",r({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),p=this.props.contentElement(u,i);return this.props.overlayElement(c,p)}}]),t}(i.Component);g.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},g.propTypes={isOpen:s.default.bool.isRequired,defaultStyles:s.default.shape({content:s.default.object,overlay:s.default.object}),style:s.default.shape({content:s.default.object,overlay:s.default.object}),className:s.default.oneOfType([s.default.string,s.default.object]),overlayClassName:s.default.oneOfType([s.default.string,s.default.object]),bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,ariaHideApp:s.default.bool,appElement:s.default.oneOfType([s.default.instanceOf(d.default),s.default.instanceOf(f.SafeHTMLCollection),s.default.instanceOf(f.SafeNodeList),s.default.arrayOf(s.default.instanceOf(d.default))]),onAfterOpen:s.default.func,onAfterClose:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,role:s.default.string,contentLabel:s.default.string,aria:s.default.object,data:s.default.object,children:s.default.node,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func,testId:s.default.string},t.default=g,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){i=[]},t.log=function(){return void 0;console.log("focusManager ----------"),i.forEach((function(e){var t=e||{};console.log(t.nodeName,t.className,t.id)})),console.log("end focusManager ----------")},t.handleBlur=c,t.handleFocus=u,t.markForFocusLater=function(){i.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{return void(0!==i.length&&(t=i.pop()).focus({preventScroll:e}))}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){i.length>0&&i.pop()},t.setupScopedFocus=function(e){s=e,window.addEventListener?(window.addEventListener("blur",c,!1),document.addEventListener("focus",u,!0)):(window.attachEvent("onBlur",c),document.attachEvent("onFocus",u))},t.teardownScopedFocus=function(){s=null,window.addEventListener?(window.removeEventListener("blur",c),document.removeEventListener("focus",u)):(window.detachEvent("onBlur",c),document.detachEvent("onFocus",u))};var r,o=n(26),a=(r=o)&&r.__esModule?r:{default:r};var i=[],s=null,l=!1;function c(){l=!0}function u(){if(l){if(l=!1,!s)return;setTimeout((function(){s.contains(document.activeElement)||((0,a.default)(s)[0]||s).focus()}),0)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=(0,a.default)(e);if(!n.length)return void t.preventDefault();var r=void 0,o=t.shiftKey,i=n[0],s=n[n.length-1];if(e===document.activeElement){if(!o)return;r=s}s!==document.activeElement||o||(r=i);i===document.activeElement&&o&&(r=s);if(r)return t.preventDefault(),void r.focus();var l=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null==l||"Chrome"==l[1]||null!=/\biPod\b|\biPad\b/g.exec(navigator.userAgent))return;var c=n.indexOf(document.activeElement);c>-1&&(c+=o?-1:1);if(void 0===(r=n[c]))return t.preventDefault(),void(r=o?s:i).focus();t.preventDefault(),r.focus()};var r,o=n(26),a=(r=o)&&r.__esModule?r:{default:r};e.exports=t.default},function(e,t,n){var r;!function(){"use strict";var o=!("undefined"==typeof window||!window.document||!window.document.createElement),a={canUseDOM:o,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:o&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:o&&!!window.screen};void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in r)a(e,r[t]);var n=document.body;for(var i in o)a(n,o[i]);r={},o={}},t.log=function(){return void 0;var e=document.getElementsByTagName("html")[0].className,t="Show tracked classes:\n\n";for(var n in t+="<html /> ("+e+"):\n",r)t+=" "+n+" "+r[n]+"\n";for(var a in e=document.body.className,t+="\n\ndoc.body ("+e+"):\n",o)t+=" "+a+" "+o[a]+"\n";t+="\n",console.log(t)};var r={},o={};function a(e,t){e.classList.remove(t)}t.add=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(a,e),n.add(e)}));var n,a},t.remove=function(e,t){return n=e.classList,a="html"==e.nodeName.toLowerCase()?r:o,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(a,e),0===a[e]&&n.remove(e)}));var n,a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[i,s],t=0;t<e.length;t++){var n=e[t];n&&(n.parentNode&&n.parentNode.removeChild(n))}i=s=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[i,s],t=0;t<e.length;t++){var n=e[t]||{};console.log(n.nodeName,n.className,n.id)}console.log("edn bodyTrap ----------")};var r,o=n(28),a=(r=o)&&r.__esModule?r:{default:r};var i=void 0,s=void 0,l=[];function c(){0!==l.length&&l[l.length-1].focusContent()}a.default.subscribe((function(e,t){i||s||((i=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",c),(s=i.cloneNode()).addEventListener("focus",c)),(l=t).length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==s&&document.body.appendChild(s)):(i.parentElement&&i.parentElement.removeChild(i),s.parentElement&&s.parentElement.removeChild(s))}))},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function a(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==s){var l=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=a;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0},function(e,t){e.exports=function(e,t,n,r){if(!(e[t]instanceof RegExp)){var o=typeof e[t];return new Error("Invalid "+r+" `"+t+"` of type `"+o+"` supplied to `"+n+"`, expected `RegExp`.")}}},function(e,t,n){"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}},function(e,t){e.exports=function(e){var t={},n=arguments[1];if("string"==typeof n){n={};for(var r=1;r<arguments.length;r++)n[arguments[r]]=!0}for(var o in e)n[o]||(t[o]=e[o]);return t}},function(e,t,n){"use strict";var r=n(84),o={};function a(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var i="mixins";e.exports=function(e,t,n){var s=[],l={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},c={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)f(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(a(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return a("DEFINE_MANY_MERGED"===(c.hasOwnProperty(n)?c[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=h(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function p(e,t){var n=l.hasOwnProperty(t)?l[t]:null;g.hasOwnProperty(t)&&a("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&a("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function f(e,n){if(n){a("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),a(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var s in n.hasOwnProperty(i)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(s)&&s!==i){var c=n[s],f=r.hasOwnProperty(s);if(p(f,s),u.hasOwnProperty(s))u[s](e,c);else{var d=l.hasOwnProperty(s);if("function"==typeof c&&!d&&!f&&!1!==n.autobind)o.push(s,c),r[s]=c;else if(f){var b=l[s];a(d&&("DEFINE_MANY_MERGED"===b||"DEFINE_MANY"===b),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",b,s),"DEFINE_MANY_MERGED"===b?r[s]=h(r[s],c):"DEFINE_MANY"===b&&(r[s]=m(r[s],c))}else r[s]=c}}}else;}function d(e,t){for(var n in a(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(a(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return d(o,n),d(o,r),o}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function b(e,t){return t.bind(e)}var y={componentDidMount:function(){this.__isMounted=!0}},v={componentWillUnmount:function(){this.__isMounted=!1}},g={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},O=function(){};return r(O.prototype,e.prototype,g),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=b(e,o)}}(this),this.props=e,this.context=r,this.refs=o,this.updater=i||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;a("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new O,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],s.forEach(f.bind(null,t)),f(t,y),f(t,e),f(t,v),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),a(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),l)t.prototype[r]||(t.prototype[r]=null);return t}}},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(l[s[p]]=n[s[p]])}}return l}},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,a=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var i,s,l,c=r(t),u=r(n);if(c&&u){if((s=t.length)!=n.length)return!1;for(i=s;0!=i--;)if(!e(t[i],n[i]))return!1;return!0}if(c!=u)return!1;var p=t instanceof Date,f=n instanceof Date;if(p!=f)return!1;if(p&&f)return t.getTime()==n.getTime();var d=t instanceof RegExp,h=n instanceof RegExp;if(d!=h)return!1;if(d&&h)return t.toString()==n.toString();var m=o(t);if((s=m.length)!==o(n).length)return!1;for(i=s;0!=i--;)if(!a.call(n,m[i]))return!1;for(i=s;0!=i--;)if(!e(t[l=m[i]],n[l]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){"use strict";n.r(t),n.d(t,"Accordion",(function(){return Ne})),n.d(t,"SLDSAccordion",(function(){return Ne})),n.d(t,"AccordionPanel",(function(){return lr})),n.d(t,"SLDSAccordionPanel",(function(){return lr})),n.d(t,"Alert",(function(){return wr})),n.d(t,"SLDSAlert",(function(){return wr})),n.d(t,"AlertContainer",(function(){return Ir})),n.d(t,"SLDSAlertContainer",(function(){return Ir})),n.d(t,"AppLauncher",(function(){return wo})),n.d(t,"SLDSAppLauncher",(function(){return wo})),n.d(t,"AppLauncherExpandableSection",(function(){return Go})),n.d(t,"SLDSAppLauncherExpandableSection",(function(){return Go})),n.d(t,"AppLauncherLink",(function(){return sa})),n.d(t,"SLDSAppLauncherLink",(function(){return sa})),n.d(t,"AppLauncherTile",(function(){return Ba})),n.d(t,"SLDSAppLauncherTile",(function(){return Ba})),n.d(t,"Avatar",(function(){return Za})),n.d(t,"SLDSAvatar",(function(){return Za})),n.d(t,"Badge",(function(){return ii})),n.d(t,"SLDSBadge",(function(){return ii})),n.d(t,"BrandBand",(function(){return mi})),n.d(t,"SLDSBrandBand",(function(){return mi})),n.d(t,"BreadCrumb",(function(){return Gs})),n.d(t,"SLDSBreadCrumb",(function(){return Gs})),n.d(t,"Breadcrumb",(function(){return Gs})),n.d(t,"SLDSBreadcrumb",(function(){return Gs})),n.d(t,"BuilderHeader",(function(){return ul})),n.d(t,"SLDSBuilderHeader",(function(){return ul})),n.d(t,"BuilderHeaderMisc",(function(){return dl})),n.d(t,"SLDSBuilderHeaderMisc",(function(){return dl})),n.d(t,"BuilderHeaderNav",(function(){return bl})),n.d(t,"SLDSBuilderHeaderNav",(function(){return bl})),n.d(t,"BuilderHeaderNavDropdown",(function(){return Ol})),n.d(t,"SLDSBuilderHeaderNavDropdown",(function(){return Ol})),n.d(t,"BuilderHeaderNavLink",(function(){return rl})),n.d(t,"SLDSBuilderHeaderNavLink",(function(){return rl})),n.d(t,"BuilderHeaderToolbar",(function(){return jl})),n.d(t,"SLDSBuilderHeaderToolbar",(function(){return jl})),n.d(t,"BuilderHeaderUtilities",(function(){return Qs})),n.d(t,"SLDSBuilderHeaderUtilities",(function(){return Qs})),n.d(t,"Button",(function(){return ar})),n.d(t,"SLDSButton",(function(){return ar})),n.d(t,"ButtonGroup",(function(){return Bl})),n.d(t,"SLDSButtonGroup",(function(){return Bl})),n.d(t,"ButtonIcon",(function(){return Ot})),n.d(t,"SLDSButtonIcon",(function(){return Ot})),n.d(t,"ButtonStateful",(function(){return ec})),n.d(t,"SLDSButtonStateful",(function(){return ec})),n.d(t,"Card",(function(){return Pc})),n.d(t,"SLDSCard",(function(){return Pc})),n.d(t,"CardEmpty",(function(){return Sc})),n.d(t,"SLDSCardEmpty",(function(){return Sc})),n.d(t,"CardFilter",(function(){return Du})),n.d(t,"SLDSCardFilter",(function(){return Du})),n.d(t,"Carousel",(function(){return dp})),n.d(t,"SLDSCarousel",(function(){return dp})),n.d(t,"Checkbox",(function(){return Pp})),n.d(t,"SLDSCheckbox",(function(){return Pp})),n.d(t,"ColorPicker",(function(){return Lh})),n.d(t,"SLDSColorPicker",(function(){return Lh})),n.d(t,"Combobox",(function(){return Jm})),n.d(t,"SLDSCombobox",(function(){return Jm})),n.d(t,"SLDSComboboxFilterAndLimit",(function(){return Zm})),n.d(t,"DataTable",(function(){return ky})),n.d(t,"SLDSDataTable",(function(){return ky})),n.d(t,"DataTableCell",(function(){return ub})),n.d(t,"SLDSDataTableCell",(function(){return ub})),n.d(t,"DataTableColumn",(function(){return vb})),n.d(t,"SLDSDataTableColumn",(function(){return vb})),n.d(t,"DataTableHighlightCell",(function(){return Iy})),n.d(t,"SLDSDataTableHighlightCell",(function(){return Iy})),n.d(t,"DataTableInteractiveElement",(function(){return Ab})),n.d(t,"SLDSDataTableInteractiveElement",(function(){return Ab})),n.d(t,"DataTableInteractiveLink",(function(){return Lb})),n.d(t,"SLDSDataTableInteractiveLink",(function(){return Lb})),n.d(t,"DataTableRowActions",(function(){return cy})),n.d(t,"SLDSDataTableRowActions",(function(){return cy})),n.d(t,"DatePicker",(function(){return Yv})),n.d(t,"SLDSDatePicker",(function(){return Yv})),n.d(t,"Datepicker",(function(){return Yv})),n.d(t,"SLDSDatepicker",(function(){return Yv})),n.d(t,"Dropdown",(function(){return Hs})),n.d(t,"DropdownTrigger",(function(){return ps})),n.d(t,"SLDSDropdownTrigger",(function(){return ps})),n.d(t,"DynamicIcon",(function(){return ig})),n.d(t,"SLDSDynamicIcon",(function(){return ig})),n.d(t,"EditDialog",(function(){return Og})),n.d(t,"SLDSEditDialog",(function(){return Og})),n.d(t,"ExpandableSection",(function(){return Ao})),n.d(t,"SLDSExpandableSection",(function(){return Ao})),n.d(t,"Expression",(function(){return Hg})),n.d(t,"SLDSExpression",(function(){return Hg})),n.d(t,"ExpressionCondition",(function(){return Qg})),n.d(t,"SLDSExpressionCondition",(function(){return Qg})),n.d(t,"ExpressionFormula",(function(){return cO})),n.d(t,"SLDSExpressionFormula",(function(){return cO})),n.d(t,"ExpressionGroup",(function(){return Pg})),n.d(t,"SLDSExpressionGroup",(function(){return Pg})),n.d(t,"File",(function(){return jO})),n.d(t,"SLDSFile",(function(){return jO})),n.d(t,"Files",(function(){return LO})),n.d(t,"SLDSFiles",(function(){return LO})),n.d(t,"FilesFile",(function(){return jO})),n.d(t,"SLDSFilesFile",(function(){return jO})),n.d(t,"FilesMoreFiles",(function(){return XO})),n.d(t,"SLDSFilesMoreFiles",(function(){return XO})),n.d(t,"Filter",(function(){return i_})),n.d(t,"SLDSFilter",(function(){return i_})),n.d(t,"GlobalHeader",(function(){return __})),n.d(t,"SLDSGlobalHeader",(function(){return __})),n.d(t,"GlobalHeaderButton",(function(){return E_})),n.d(t,"SLDSGlobalHeaderButton",(function(){return E_})),n.d(t,"GlobalHeaderDropdown",(function(){return K_})),n.d(t,"SLDSGlobalHeaderDropdown",(function(){return K_})),n.d(t,"GlobalHeaderFavorites",(function(){return tx})),n.d(t,"SLDSGlobalHeaderFavorites",(function(){return tx})),n.d(t,"GlobalHeaderHelp",(function(){return fx})),n.d(t,"SLDSGlobalHeaderHelp",(function(){return fx})),n.d(t,"GlobalHeaderNotifications",(function(){return wx})),n.d(t,"SLDSGlobalHeaderNotifications",(function(){return wx})),n.d(t,"GlobalHeaderProfile",(function(){return Rx})),n.d(t,"SLDSGlobalHeaderProfile",(function(){return Rx})),n.d(t,"GlobalHeaderSearch",(function(){return Dx})),n.d(t,"SLDSGlobalHeaderSearch",(function(){return Dx})),n.d(t,"GlobalHeaderSetup",(function(){return zx})),n.d(t,"SLDSGlobalHeaderSetup",(function(){return zx})),n.d(t,"GlobalHeaderTask",(function(){return nw})),n.d(t,"SLDSGlobalHeaderTask",(function(){return nw})),n.d(t,"GlobalNavigationBar",(function(){return aw})),n.d(t,"SLDSGlobalNavigationBar",(function(){return aw})),n.d(t,"GlobalNavigationBarButton",(function(){return cw})),n.d(t,"SLDSGlobalNavigationBarButton",(function(){return cw})),n.d(t,"GlobalNavigationBarDropdown",(function(){return Cw})),n.d(t,"SLDSGlobalNavigationBarDropdown",(function(){return Cw})),n.d(t,"GlobalNavigationBarLabel",(function(){return Tw})),n.d(t,"SLDSGlobalNavigationBarLabel",(function(){return Tw})),n.d(t,"GlobalNavigationBarLink",(function(){return Rw})),n.d(t,"SLDSGlobalNavigationBarLink",(function(){return Rw})),n.d(t,"GlobalNavigationBarRegion",(function(){return Kw})),n.d(t,"SLDSGlobalNavigationBarRegion",(function(){return Kw})),n.d(t,"Icon",(function(){return jn})),n.d(t,"SLDSIcon",(function(){return jn})),n.d(t,"IconSettings",(function(){return ft})),n.d(t,"SLDSIconSettings",(function(){return ft})),n.d(t,"Illustration",(function(){return Yw})),n.d(t,"SLDSIllustration",(function(){return Yw})),n.d(t,"InlineEdit",(function(){return lS})),n.d(t,"SLDSInlineEdit",(function(){return lS})),n.d(t,"Input",(function(){return Pu})),n.d(t,"SLDSInput",(function(){return Pu})),n.d(t,"InputIcon",(function(){return Ac})),n.d(t,"SLDSInputIcon",(function(){return Ac})),n.d(t,"InputSearch",(function(){return bS})),n.d(t,"SLDSInputSearch",(function(){return bS})),n.d(t,"LocationMap",(function(){return PS})),n.d(t,"SLDSLocationMap",(function(){return PS})),n.d(t,"Lookup",(function(){return ME})),n.d(t,"SLDSLookup",(function(){return ME})),n.d(t,"LookupDefaultFooter",(function(){return qS})),n.d(t,"SLDSLookupDefaultFooter",(function(){return qS})),n.d(t,"LookupDefaultHeader",(function(){return ZS})),n.d(t,"SLDSLookupDefaultHeader",(function(){return ZS})),n.d(t,"LookupDefaultSectionDivider",(function(){return tE})),n.d(t,"SLDSLookupDefaultSectionDivider",(function(){return tE})),n.d(t,"MediaObject",(function(){return dc})),n.d(t,"SLDSMediaObject",(function(){return dc})),n.d(t,"MenuDropdown",(function(){return Hs})),n.d(t,"SLDSMenuDropdown",(function(){return Hs})),n.d(t,"MenuDropdownButtonTrigger",(function(){return ps})),n.d(t,"SLDSMenuDropdownButtonTrigger",(function(){return ps})),n.d(t,"SLDSMenuPicklist",(function(){return zE})),n.d(t,"Modal",(function(){return co})),n.d(t,"SLDSModal",(function(){return co})),n.d(t,"ModalTrigger",(function(){return UE})),n.d(t,"SLDSModalTrigger",(function(){return UE})),n.d(t,"MoreFiles",(function(){return XO})),n.d(t,"SLDSMoreFiles",(function(){return XO})),n.d(t,"Navigation",(function(){return iC})),n.d(t,"SLDSNavigation",(function(){return iC})),n.d(t,"Notification",(function(){return vC})),n.d(t,"SLDSNotification",(function(){return vC})),n.d(t,"PageHeader",(function(){return Dj})),n.d(t,"SLDSPageHeader",(function(){return Dj})),n.d(t,"PageHeaderControl",(function(){return Bj})),n.d(t,"SLDSPageHeaderControl",(function(){return Bj})),n.d(t,"Panel",(function(){return Uj})),n.d(t,"SLDSPanel",(function(){return Uj})),n.d(t,"PanelFilterGroup",(function(){return rN})),n.d(t,"SLDSPanelFilterGroup",(function(){return rN})),n.d(t,"PanelFilterList",(function(){return pN})),n.d(t,"SLDSPanelFilterList",(function(){return pN})),n.d(t,"PanelFilterListHeading",(function(){return dN})),n.d(t,"SLDSPanelFilterListHeading",(function(){return dN})),n.d(t,"Picklist",(function(){return zE})),n.d(t,"Pill",(function(){return dm})),n.d(t,"SLDSPill",(function(){return dm})),n.d(t,"PillContainer",(function(){return SN})),n.d(t,"SLDSPillContainer",(function(){return SN})),n.d(t,"Popover",(function(){return wh})),n.d(t,"SLDSPopover",(function(){return wh})),n.d(t,"PopoverTooltip",(function(){return Kn})),n.d(t,"SLDSPopoverTooltip",(function(){return Kn})),n.d(t,"PortalSettings",(function(){return Rt})),n.d(t,"SLDSPortalSettings",(function(){return Rt})),n.d(t,"ProgressBar",(function(){return DN})),n.d(t,"SLDSProgressBar",(function(){return DN})),n.d(t,"ProgressIndicator",(function(){return BT})),n.d(t,"SLDSProgressIndicator",(function(){return BT})),n.d(t,"ProgressRing",(function(){return eP})),n.d(t,"SLDSProgressRing",(function(){return eP})),n.d(t,"Radio",(function(){return Tf})),n.d(t,"SLDSRadio",(function(){return Tf})),n.d(t,"RadioButtonGroup",(function(){return lf})),n.d(t,"SLDSRadioButtonGroup",(function(){return lf})),n.d(t,"RadioGroup",(function(){return nf})),n.d(t,"SLDSRadioGroup",(function(){return nf})),n.d(t,"ScopedNotification",(function(){return hP})),n.d(t,"SLDSScopedNotification",(function(){return hP})),n.d(t,"Search",(function(){return bS})),n.d(t,"SLDSSearch",(function(){return bS})),n.d(t,"Settings",(function(){return zr})),n.d(t,"SLDSSettings",(function(){return zr})),n.d(t,"SetupAssistant",(function(){return jP})),n.d(t,"SLDSSetupAssistant",(function(){return jP})),n.d(t,"SetupAssistantStep",(function(){return qP})),n.d(t,"SLDSSetupAssistantStep",(function(){return qP})),n.d(t,"Slider",(function(){return nk})),n.d(t,"SLDSSlider",(function(){return nk})),n.d(t,"Spinner",(function(){return Vc})),n.d(t,"SLDSSpinner",(function(){return Vc})),n.d(t,"SplitView",(function(){return mk})),n.d(t,"SLDSSplitView",(function(){return mk})),n.d(t,"SplitViewHeader",(function(){return gk})),n.d(t,"SLDSSplitViewHeader",(function(){return gk})),n.d(t,"SplitViewListbox",(function(){return Xk})),n.d(t,"SLDSSplitViewListbox",(function(){return Xk})),n.d(t,"Splitview",(function(){return mk})),n.d(t,"SLDSSplitview",(function(){return mk})),n.d(t,"Tabs",(function(){return th})),n.d(t,"SLDSTabs",(function(){return th})),n.d(t,"TabsPanel",(function(){return rh})),n.d(t,"SLDSTabsPanel",(function(){return rh})),n.d(t,"Textarea",(function(){return cR})),n.d(t,"SLDSTextarea",(function(){return cR})),n.d(t,"TimePicker",(function(){return BR})),n.d(t,"SLDSTimePicker",(function(){return BR})),n.d(t,"Timepicker",(function(){return BR})),n.d(t,"SLDSTimepicker",(function(){return BR})),n.d(t,"Toast",(function(){return JR})),n.d(t,"SLDSToast",(function(){return JR})),n.d(t,"ToastContainer",(function(){return sI})),n.d(t,"SLDSToastContainer",(function(){return sI})),n.d(t,"Tooltip",(function(){return Kn})),n.d(t,"SLDSTooltip",(function(){return Kn})),n.d(t,"Tree",(function(){return GI})),n.d(t,"SLDSTree",(function(){return GI})),n.d(t,"TrialBar",(function(){return JI})),n.d(t,"SLDSTrialBar",(function(){return JI})),n.d(t,"TrialBarButton",(function(){return tD})),n.d(t,"SLDSTrialBarButton",(function(){return tD})),n.d(t,"TrialBarDropdown",(function(){return iD})),n.d(t,"SLDSTrialBarDropdown",(function(){return iD})),n.d(t,"UNSAFE_DirectionSettings",(function(){return Ie})),n.d(t,"UtilityIcon",(function(){return bt})),n.d(t,"SLDSUtilityIcon",(function(){return bt})),n.d(t,"VerticalNavigation",(function(){return iC})),n.d(t,"SLDSVerticalNavigation",(function(){return iC})),n.d(t,"VisualPicker",(function(){return mD})),n.d(t,"SLDSVisualPicker",(function(){return mD})),n.d(t,"VisualPickerLink",(function(){return ED})),n.d(t,"SLDSVisualPickerLink",(function(){return ED})),n.d(t,"WelcomeMat",(function(){return AD})),n.d(t,"SLDSWelcomeMat",(function(){return AD})),n.d(t,"WelcomeMatInfoBadge",(function(){return VD})),n.d(t,"SLDSWelcomeMatInfoBadge",(function(){return VD})),n.d(t,"WelcomeMatTile",(function(){return rA})),n.d(t,"SLDSWelcomeMatTile",(function(){return rA})),n.d(t,"comboboxAddSubheadings",(function(){return iA})),n.d(t,"comboboxFilterAndLimit",(function(){return Zm})),n.d(t,"log",(function(){return sA}));var r=n(1),o=n.n(r),a=n(0),i=n.n(a),s=n(2),l=n.n(s),c=n(3),u=n.n(c),p="SLDSAlert",f="SLDSAppLauncher",d="SLDSAppLauncherExpandableSection",h="SLDSAppLauncherTile",m="SLDSAvatar",b="SLDSBrandBand",y="SLDSBreadcrumb",v="SLDSBuilderHeaderMisc",g="SLDSBuilderHeaderUtilities",O="SLDSBuilderHeaderNav",_="SLDSBuilderHeaderNavDropdown",x="SLDSBuilderHeaderNavLink",w="SLDSBuilderHeaderToolbar",S="SLDSButton",E="SLDSButtonGroup",C="SLDSButtonStateful",j="SLDSButtonIcon",N="SLDSColorPicker",T="SLDSCombobox",P="SLDSDataTable",k="SLDSDataTableCell",R="SLDSDataTableColumn",I="SLDSDataTableHead",D="SLDSDataTableRowActions",A="SLDSDataTableRow",L="SLDSDatePicker",B="SLDSCheckbox",F="SLDSInlineEdit",M="SLDSInput",H="SLDSTextarea",q="SLDSSearch",K="SLDSGlobalHeader",W="SLDSGlobalHeaderFavorites",V="SLDSGlobalHeaderHelp",z="SLDSGlobalHeaderNotifications",U="SLDSGlobalHeaderProfile",G="SLDSGlobalHeaderSearch",Y="SLDSGlobalHeaderSetup",X="SLDSGlobalHeaderTask",Q="SLDSGlobalHeaderTool",J="SLDSGlobalNavigationBarDropdown",Z="SLDSGlobalNavigationBarRegion",$="SLDSIcon",ee="SLDSList",te="SLDSLookup",ne="SLDSMenuDropdown",re="SLDSMenuDropdownTrigger",oe="SLDSMenuPicklist",ae="SLDSModal",ie="SLDSFilterGroup",se="SLDSPageHeader",le="SLDSPageHeaderControl",ce="SLDSPopover",ue="SLDSPopoverTooltip",pe="SLDSSetupAssistant",fe="SLDSSetupAssistantStep",de="SLDSScopedNotification",he="SLDSSpinner",me="SLDSRadio",be="SLDSTimepicker",ye="SLDSToast",ve="SLDSTree",ge="SLDSVerticalNavigation";function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Se(this,n)}}function Se(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ce={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.oneOfType([i.a.number,i.a.string]),children:i.a.node.isRequired},je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xe(e,t)}(i,e);var t,n,r,a=we(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={currButtonIndex:0},t.summaryButtons=[],t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e,t){null!==this.state.currButtonIndex&&this.state.currButtonIndex!==t.currButtonIndex&&this.summaryButtons[this.state.currButtonIndex].focus()}},{key:"onClickSummary",value:function(){this.setState({currButtonIndex:null})}},{key:"onKeyDownSummary",value:function(e){var t=this.state.currButtonIndex;null===t&&(t=this.summaryButtons.findIndex((function(t){return t.id===e.target.id}))),"ArrowDown"===e.key?(e.preventDefault(),t<this.props.children.length-1?this.setState({currButtonIndex:t+1}):this.setState({currButtonIndex:0})):"ArrowUp"===e.key&&(e.preventDefault(),t>0?this.setState({currButtonIndex:t-1}):this.setState({currButtonIndex:this.props.children.length-1}))}},{key:"addSummaryButton",value:function(e){var t=this.summaryButtons.find((function(t){return e===t}));null!==e&&void 0===t&&this.summaryButtons.push(e)}},{key:"render",value:function(){var e=this;return o.a.createElement("ul",{name:this.props.id||this.generatedId,className:l()("slds-accordion",this.props.className)},o.a.Children.map(this.props.children,(function(t){return o.a.cloneElement(t,{refs:{summaryButton:e.addSummaryButton.bind(e)},onClickSummary:e.onClickSummary.bind(e),onKeyDownSummary:e.onKeyDownSummary.bind(e)})})))}}])&&_e(t.prototype,n),r&&_e(t,r),i}(r.Component);je.displayName="SLDSAccordion",je.propTypes=Ce;var Ne=je,Te=n(19),Pe=n.n(Te);n(8);var ke=function(){},Re={LTR:"ltr",RTL:"rtl"},Ie=o.a.createContext("ltr");var De=function(){};function Ae(e){return(Ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Le(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Be(){return(Be=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function He(e,t){return(He=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ve(e);if(t){var o=Ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?We(e):t}function We(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&He(e,t)}(i,e);var t,n,r,a=qe(i);function i(){var e;Fe(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ze(We(e=a.call.apply(a,[this].concat(n))),"getPaths",(function(e){return e instanceof Array?e.map((function(e,t){return o.a.createElement("path",Be({key:t},e))})):o.a.createElement("path",Be({key:"pathSVG"},e))})),ze(We(e),"getCircles",(function(e){return e instanceof Array?e.map((function(e){return o.a.createElement("circle",e)})):o.a.createElement("circle",Be({key:"circleSVG"},e))})),ze(We(e),"getEllipses",(function(e){return e instanceof Array?e.map((function(e){return o.a.createElement("ellipse",e)})):o.a.createElement("ellipse",Be({key:"ellipseSVG"},e))})),ze(We(e),"getGroups",(function(t){return t instanceof Array?t.map((function(t){return o.a.createElement("g",null,e.getShapes(t))})):o.a.createElement("g",{key:"groupsSVG"},e.getShapes(t))})),ze(We(e),"getShapes",(function(t){var n=[];return t&&(t.g&&n.push(e.getGroups(t.g)),t.ellipse&&n.push(e.getEllipses(t.ellipse)),t.circle&&n.push(e.getCircles(t.circle)),t.path&&n.push(e.getPaths(t.path))),n})),ze(We(e),"getSVG",(function(t,n){var r=t.viewBox,a=Le(t,["viewBox"]);return o.a.createElement("svg",{"aria-hidden":n["aria-hidden"],className:n.className,viewBox:r,name:n.name,style:n.style},e.getShapes(a))})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.data,n=Le(e,["data"]);return t?this.getSVG(t,n):null}}])&&Me(t.prototype,n),r&&Me(t,r),i}(o.a.Component);ze(Ue,"displayName","Svg");var Ge=Ue;var Ye={};var Xe={};var Qe={};var Je={};var Ze={};function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(){return(et=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rt(e,t){return(rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?it(e):t}function it(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ct=function(e){var t,n,a=e.displayName||e.name||"Component";return n=t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&rt(e,t)}(s,t);var n,r,a,i=ot(s);function s(){var t;tt(this,s);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return lt(it(t=i.call.apply(i,[this].concat(r))),"getWrappedComponent",(function(n){return o.a.createElement(e,et({},t.props,{direction:n}))})),t}return n=s,(r=[{key:"render",value:function(){return o.a.createElement(Ie.Consumer,null,this.getWrappedComponent)}}])&&nt(n.prototype,r),a&&nt(n,a),s}(r.Component),lt(t,"displayName","LanguageDirection(".concat(a,")")),n},ut=function(e){var t=e.iconPath,n=e.onRequestIconPath,r=e.actionSprite,a=e.customSprite,i=e.doctypeSprite,s=e.standardSprite,l=e.utilitySprite,c=e.children;return o.a.createElement(pt.Provider,{value:{iconPath:t,onRequestIconPath:n,actionSprite:r,customSprite:a,doctypeSprite:i,standardSprite:s,utilitySprite:l}},c)};ut.displayName="SLDSIconSettings",ut.propTypes={iconPath:i.a.string,onRequestIconPath:i.a.func,actionSprite:i.a.string,customSprite:i.a.string,doctypeSprite:i.a.string,standardSprite:i.a.string,utilitySprite:i.a.string};var pt=o.a.createContext({}),ft=ut;function dt(){return(dt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ht(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mt=function(e){var t=e.name,n=void 0===t?"":t,a=(e.assistiveText,e.category),i=e.icon,s=e.path,l=e.direction,c=ht(e,["name","assistiveText","category","icon","path","direction"]),u=Object(r.useContext)(pt);De("UtilityIcon",{name:n,category:a,path:s,context:u});var p,f,d={action:Xe,custom:Qe,doctype:Je,standard:Ze,utility:Ye};if(i?p=i:Object.keys(d[a]).length&&((p=d[a][n.toLowerCase()]).viewBox=d[a].viewBox),s)f=s;else if(u.onRequestIconPath)f=u.onRequestIconPath({category:a,name:n});else if(u["".concat(a,"Sprite")])f="".concat(u["".concat(a,"Sprite")],"#").concat(n);else{var h=l===Re.RTL?"symbols-rtl.svg":"symbols.svg";f=u.iconPath&&"".concat(u.iconPath,"/").concat(a,"-sprite/svg/").concat(h,"#").concat(n)}return p?o.a.createElement(Ge,dt({data:p,name:n},c)):o.a.createElement("svg",dt({key:"".concat(n,"_").concat(a)},c),o.a.createElement("use",{href:f}))};mt.displayName="UtilityIcon",mt.propTypes={assistiveText:i.a.object,category:i.a.oneOf(["action","custom","doctype","standard","utility"]),icon:i.a.object,name:i.a.string,path:i.a.string},mt.defaultProps={category:"utility"};var bt=ct(mt);function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=function(e){var t;return ke(j,e),o.a.createElement(bt,{"aria-hidden":"true",category:e.category,className:l()("slds-button__icon",(t={},yt(t,"slds-button__icon_".concat(e.size),e.size&&"medium"!==e.size),yt(t,"slds-button__icon_inverse-hint",e.inverse&&e.hint),yt(t,"slds-button__icon_hint",e.hint&&!e.inverse),yt(t,"slds-button__icon_".concat(e.position),e.position),t),e.className),icon:e.icon,name:e.name,path:e.path})},gt={category:i.a.oneOf(["action","custom","doctype","standard","utility"]).isRequired,hint:i.a.bool,icon:i.a.object,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),inverse:i.a.bool,name:i.a.string,path:i.a.string,position:i.a.oneOf(["left","right"]),size:i.a.oneOf(["x-small","small","medium","large"])};vt.displayName=j,vt.propTypes=gt,vt.defaultProps={category:"utility",size:"medium"};var Ot=vt;var _t=function(){},xt=n(29),wt={trapEvent:function(e){e&&(e.preventDefault(),e.stopPropagation(),e.nativeEvent&&e.nativeEvent.preventDefault&&e.nativeEvent.preventDefault(),e.nativeEvent&&e.nativeEvent.stopPropagation&&e.nativeEvent.stopPropagation())},trap:function(e){return wt.trapEvent(e)},trapImmediate:function(e){e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation(),wt.trap(e)},trappedHandler:function(e){return function(t){wt.trap(t),e&&e(t)}}},St=wt,Et=n(30),Ct=n(7),jt=n.n(Ct),Nt=n(6),Tt=n.n(Nt),Pt=function(e){var t=e.renderTo,n=e.children;return o.a.createElement(kt.Provider,{value:{renderTo:t}},n)};Pt.displayName="SLDSPortalSettings",Pt.propTypes={renderTo:i.a.string};var kt=o.a.createContext({}),Rt=Pt;function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return At(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return At(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function At(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bt(e,t){return(Bt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ht(e);if(t){var o=Ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==It(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qt="undefined"!=typeof document,Kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Bt(e,t)}(i,e);var t,n,o,a=Ft(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).portalNode=null,t.state={isOpen:!1},t}return t=i,(n=[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(){this.renderPortal()}},{key:"componentWillUnmount",value:function(){this.unmountPortal()}},{key:"getChildren",value:function(){return r.Children.only(this.props.children)}},{key:"getPortalParentNode",value:function(){return"string"==typeof this.props.renderTo?document.querySelector(this.props.renderTo):this.context&&"string"==typeof this.context.renderTo&&document.querySelectorAll(this.context.renderTo)&&document.querySelectorAll(this.context.renderTo)[0]?Dt(document.querySelectorAll(this.context.renderTo),1)[0]:this.props.renderTo||qt&&document.body}},{key:"setupPortalNode",value:function(){var e=this.getPortalParentNode();this.portalNode={},qt&&(this.portalNode=document.createElement(this.props.renderTag),this.portalNode.setAttribute("style","display: block; height: 0px; width: 0px;"),this.portalNode.setAttribute("className","design-system-react-portal"),e.appendChild(this.portalNode),this.portalNodeInstance=this.props.onMount?this.props.onMount(void 0,{portal:this.portalNode}):this.portalNode)}},{key:"unmountPortal",value:function(){this.portalNode&&(Tt.a.unmountComponentAtNode(this.portalNode),this.portalNode.parentNode.removeChild(this.portalNode)),this.portalNode=null}},{key:"updatePortal",value:function(){var e=this;this.props.id&&(this.portalNode.id=this.props.id),this.props.className&&(this.portalNode.className=this.props.className),this.props.style&&Object.keys(this.props.style).forEach((function(t){e.portalNode.style[t]=e.props.style[t]})),this.props.onUpdate&&(this.portalNodeInstance=this.props.onUpdate(this.portalNodeInstance))}},{key:"renderPortal",value:function(){var e=this;this.getChildren()&&qt?(this.portalNode||this.setupPortalNode(),this.props.portalMount?this.props.portalMount({instance:this,reactElement:this.getChildren(),domContainerNode:this.portalNode,updateCallback:function(){e.updatePortal()}}):Tt.a.unstable_renderSubtreeIntoContainer(this,this.getChildren(),this.portalNode,(function(){e.updatePortal(),!1===e.state.isOpen&&(e.props.onOpen&&e.props.onOpen(void 0,{portal:e.getChildren()}),e.setState({isOpen:!0}))}))):this.unmountPortal()}},{key:"render",value:function(){return null}}])&&Lt(t.prototype,n),o&&Lt(t,o),i}(r.Component);Kt.displayName="Portal",Kt.propTypes={renderTag:i.a.string,renderTo:i.a.any,id:i.a.string,children:i.a.node,className:i.a.any,style:i.a.object,onMount:i.a.func,onOpen:i.a.func,onUpdate:i.a.func,portalMount:i.a.func},Kt.defaultProps={renderTag:"span",renderTo:null,onMount:function(){return null},onOpen:function(){return null},onUpdate:function(){return null},onUnmount:function(){return null}},Kt.contextType=kt;var Wt=Kt,Vt={ENTER:13,ESCAPE:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,TAB:9,DELETE:46,BACKSPACE:8},zt=Vt;var Ut=function(e){return[].slice.call(e.querySelectorAll("*"),0).filter((function(e){return function(e){var t=e.getAttribute("tabindex");null===t&&(t=void 0);var n=isNaN(t);return(n||t>=0)&&function(e,t){var n=e.nodeName.toLowerCase();return/input|select|textarea|button|object/.test(n)?!e.disabled:"a"===n&&e.href||t}(e,!n)}(e)}))},Gt=!("undefined"==typeof window||!window.document||!window.document.createElement),Yt=Gt&&Boolean(window.addEventListener||window.attachEvent),Xt=(Gt&&Boolean(window.screen),null),Qt=null,Jt=function(e){if(Gt&&Xt&&e.keyCode===zt.TAB){var t=Ut(Xt);if(t[e.shiftKey?0:t.length-1]===document.activeElement||Xt===document.activeElement)e.preventDefault(),t[e.shiftKey?t.length-1:0].focus()}},Zt={focusAncestor:function(e){var t=e.isPortal;if(Gt)if(t){var n=window.pageYOffset;Xt.focus({preventScroll:!0}),window.scrollTo(window.pageXOffset,n)}else Xt.focus()},hasOrAncestorHasFocus:function(){return Gt&&(document.activeElement===Xt||Xt.contains(document.activeElement))},returnFocusToStoredElement:function(){if(Gt){try{Qt.focus()}catch(e){console.warn("You tried to return focus to ".concat(Qt," but it is not in the DOM anymore"))}Qt=null}},setupScopedFocus:function(e){var t=e.ancestorElement;Xt=t,window.addEventListener("keydown",Jt,!1)},storeActiveElement:function(){Qt=Gt?document.activeElement:null},teardownScopedFocus:function(){Xt=null,Gt&&window.removeEventListener("keydown",Jt)}},$t=function(e,t){var n;switch(e){case"top left":n="top-start";break;case"top right":n="top-end";break;case"right top":n="right-start";break;case"right bottom":n="right-end";break;case"bottom left":n="bottom-start";break;case"bottom right":n="bottom-end";break;case"left top":n="left-start";break;case"left bottom":n="left-end";break;default:n=e}return t===Re.RTL&&(n.indexOf("left")>-1?n=n.replace("left","right"):n.indexOf("right")>-1?n=n.replace("right","left"):n.indexOf("start")>-1?n=n.replace("start","end"):n.indexOf("end")>-1&&(n=n.replace("end","start"))),n},en=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.flipped?l()({"slds-nubbin_top":"top"===e,"slds-nubbin_top-left":"top left"===e,"slds-nubbin_top-right":"top right"===e,"slds-nubbin_bottom":"bottom"===e,"slds-nubbin_bottom-left":"bottom left"===e,"slds-nubbin_bottom-right":"bottom right"===e,"slds-nubbin_left":"left"===e,"slds-nubbin_left-bottom":"left bottom"===e,"slds-nubbin_left-top":"left top"===e,"slds-nubbin_right":"right"===e,"slds-nubbin_right-bottom":"right bottom"===e,"slds-nubbin_right-top":"right top"===e}):l()({"slds-nubbin_top":"bottom"===e,"slds-nubbin_top-left":"bottom left"===e,"slds-nubbin_top-right":"bottom right"===e,"slds-nubbin_bottom":"top"===e,"slds-nubbin_bottom-left":"top left"===e,"slds-nubbin_bottom-right":"top right"===e,"slds-nubbin_left":"right"===e,"slds-nubbin_left-bottom":"right bottom"===e,"slds-nubbin_left-top":"right top"===e,"slds-nubbin_right":"left"===e,"slds-nubbin_right-bottom":"left bottom"===e,"slds-nubbin_right-top":"left top"===e})},tn=1/Math.sqrt(2),nn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.placement,n=0,r=0,o=24,a=16*tn,i=.5*e.offsets.reference.width,s=.5*e.offsets.reference.height;return"top"===t?n=-1*a:"top-end"===t?(n=-1*a,r=o-i):"top-start"===t&&(n=-1*a,r=i-o),"bottom"===t?n=a:"bottom-end"===t?(n=a,r=o-i):"bottom-start"===t&&(n=a,r=i-o),"right"===t?r=a:"right-end"===t?(r=a,n=o-s):"right-start"===t&&(r=a,n=s-o),"left"===t?r=-1*a:"left-end"===t?(r=-1*a,n=o-s):"left-start"===t&&(r=-1*a,n=s-o),{left:r,top:n}};function rn(e){return(rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){hn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cn(e,t){return(cn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dn(e);if(t){var o=dn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pn(this,n)}}function pn(e,t){return!t||"object"!==rn(t)&&"function"!=typeof t?fn(e):t}function fn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function hn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cn(e,t)}(i,e);var t,n,r,a=un(i);function i(){var e;sn(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return hn(fn(e=a.call.apply(a,[this].concat(n))),"state",{triggerPopperJS:!1,isOpen:!1}),hn(fn(e),"getPropOffsetsInPixels",(function(e){var t=e.split(" ");return{vertical:parseInt(t[0],10),horizontal:parseInt(t[1],10)}})),hn(fn(e),"getPopperStyles",(function(){var t=e.state.popperData;if(!e.popper||!t)return{position:"absolute",pointerEvents:"none"};var n=t.offsets.popper.position,r=e.getPropOffsetsInPixels(e.props.offset),o=e.props.hasNubbin?nn(e.state.popperData):{left:0,top:0},a=t.offsets.popper.left+o.left+r.horizontal,i=t.offsets.popper.top+o.top+r.vertical;return an(an({},t.style),{},{left:isNaN(a)?0:a,top:isNaN(i)?0:i,right:"inherit",position:n})})),hn(fn(e),"setDialogContent",(function(t){e.dialogContent=t,e.state.triggerPopperJS||e.setState({triggerPopperJS:!0})})),hn(fn(e),"handleClickOutside",(function(){e.handleClose()})),hn(fn(e),"handleClose",(function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n.componentWillUnmount||e.setState({triggerPopperJS:!0}),e.props.onClose&&e.props.onClose(t,n)})),hn(fn(e),"handleClick",(function(e){e.nativeEvent&&(e.nativeEvent.preventDefault(),e.nativeEvent.stopPropagation())})),hn(fn(e),"handleKeyDown",(function(t){t.keyCode===zt.TAB&&e.props.closeOnTabKey&&(St.trap(t),e.handleClose(t)),e.props.onKeyDown&&e.props.onKeyDown(t)})),hn(fn(e),"handleOpen",(function(){"popover"===e.props.variant&&e.dialogContent&&(Zt.storeActiveElement(),Zt.setupScopedFocus({ancestorElement:e.dialogContent}),Zt.hasOrAncestorHasFocus()||Zt.focusAncestor({isPortal:"overflowBoundaryElement"===e.props.position})),e.props.onOpen&&e.props.onOpen(void 0,{portal:e.dialogContent})})),hn(fn(e),"createPopper",(function(){var t=e.props.onRequestTargetElement(),n=e.dialogContent,r=$t(e.props.align,e.props.direction),o={applyStyle:{enabled:!1},preventOverflow:{enabled:!e.props.hasStaticAlignment,boundariesElement:"absolute"===e.props.position?"scrollParent":"viewport"},hide:{enabled:!1},flip:{enabled:!e.props.hasStaticAlignment},removeOnDestroy:!0,updateState:{enabled:!0,order:900,fn:function(t){return(e.state.popperData&&!jt()(t.offsets,e.state.popperData.offsets)||!e.state.popperData)&&e.setState({popperData:t}),t}}};t||console.error("Target node not found!",t),n||console.error("Popper node not found!",n),e.popper=new Et.a(t,n,{placement:r,eventsEnabled:!0,modifiers:o}),e.popper.scheduleUpdate()})),hn(fn(e),"destroyPopper",(function(){e.popper&&e.popper.destroy()})),e}return t=i,(n=[{key:"componentDidMount",value:function(){"absolute"!==this.props.position&&"relative"!==this.props.position||this.handleOpen()}},{key:"componentDidUpdate",value:function(e,t){this.popper&&this.popper.scheduleUpdate(),!0===this.state.triggerPopperJS&&!1===t.triggerPopperJS&&("absolute"===this.props.position||"overflowBoundaryElement"===this.props.position)&&this.dialogContent&&this.props.onRequestTargetElement()&&this.createPopper()}},{key:"componentWillUnmount",value:function(){"popover"===this.props.variant&&(Zt.teardownScopedFocus(),Zt.returnFocusToStoredElement()),"absolute"!==this.props.position&&"overflowBoundaryElement"!==this.props.position||this.destroyPopper(),this.handleClose(void 0,{componentWillUnmount:!0})}},{key:"render",value:function(){var e=this,t={},n="popover"===this.props.variant?"dialog":this.props.variant;"absolute"!==this.props.position&&"overflowBoundaryElement"!==this.props.position||(t=an(an({},t),{},{outline:0},this.getPopperStyles())),"target"===this.props.inheritWidthOf&&this.props.onRequestTargetElement()?t.width=this.props.onRequestTargetElement().getBoundingClientRect().width:"menu"===this.props.inheritWidthOf&&this.dialogContent&&this.dialogContent.querySelector(".slds-listbox")&&(t.width=this.dialogContent.querySelector(".slds-listbox").getBoundingClientRect().width),t=an(an({},t),this.props.style);var r="popover"===this.props.variant?"section":"div",a=o.a.createElement(r,an({className:l()(hn({"absolute-positioned":"absolute"===this.props.position,"portal-positioned":"overflowBoundaryElement"===this.props.position},"".concat(this.props.outsideClickIgnoreClass),"overflowBoundaryElement"===this.props.position),this.props.hasNubbin&&en(this.props.align,this.state.popperData),this.props.contentsClassName)||void 0,style:t,onMouseDown:this.props.onMouseDown,onKeyDown:this.handleKeyDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,ref:this.setDialogContent,role:n,tabIndex:"popover"===this.props.variant?"-1":void 0},this.props.containerProps),this.props.children),i={absolute:function(){return a},relative:function(){return a},overflowBoundaryElement:function(){var t=Object.keys(e.context).filter((function(t){return Boolean(e.context[t])})).reduce((function(t,n){return an(an({},t),hn({},n,e.context[n]))}),{}),n=o.a.createElement(Ie.Provider,{value:e.props.direction},o.a.createElement(ft,t,a));return o.a.createElement(Wt,{onOpen:e.handleOpen,portalMount:e.props.portalMount},n)}};return i[this.props.position]&&i[this.props.position]()}}])&&ln(t.prototype,n),r&&ln(t,r),i}(o.a.Component);hn(mn,"displayName","SLDSDialog"),hn(mn,"propTypes",{align:i.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),contentsClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),children:i.a.node.isRequired,closeOnTabKey:i.a.bool,containerProps:i.a.object,direction:i.a.oneOf([Re.LTR,Re.RTL]),hasNubbin:i.a.bool,hasStaticAlignment:i.a.bool,inheritWidthOf:i.a.oneOf(["target","menu","none"]),offset:i.a.string,onClose:i.a.func,onKeyDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,onOpen:i.a.func,onRequestTargetElement:i.a.func.isRequired,outsideClickIgnoreClass:i.a.string,portalMount:i.a.func,position:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]).isRequired,style:i.a.object,variant:i.a.oneOf(["dropdown","popover","tooltip"])}),hn(mn,"defaultProps",{align:"bottom left",direction:Re.LTR,offset:"0px 0px",outsideClickIgnoreClass:"ignore-react-onclickoutside"}),mn.contextType=pt;var bn=ct(mn);var yn=function(){},vn=n(31),gn=function(){var e=l.a.apply(void 0,arguments);return""===e?void 0:e},On=n(32),_n=n.n(On);function xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xn(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var En={assistiveText:{},category:"standard",colorVariant:"default",size:"medium"},Cn=function(e){yn($,e,vn);var t=e.category,n=e.className,r=e.colorVariant,a=e.containerClassName,i=e.containerStyle,s=e.icon,l=e.inverse,c=e.name,u=e.path,p=e.size,f=e.title,d=e.productTheme,h=e.style;d&&(h=wn({backgroundColor:_n.a[d]},h));var m="string"==typeof e.assistiveText?e.assistiveText:wn(wn({},En.assistiveText),e.assistiveText).label,b=c?c.replace(/_/g,"-"):"";return o.a.createElement("span",{className:gn(Sn({"slds-icon_container":"utility"!==t,"slds-icon_container_circle":"action"===t},"slds-icon-".concat(t,"-").concat(b),"utility"!==t&&"doctype"!==t&&!u),a),style:i,title:f},o.a.createElement(bt,{"aria-hidden":"true",category:t,className:gn(n,"slds-icon",{"slds-icon_xx-small":"xx-small"===p,"slds-icon_x-small":"x-small"===p,"slds-icon_small":"small"===p,"slds-icon_large":"large"===p,"slds-icon-text-default":"default"===r&&"utility"===t?!l:l,"slds-icon-text-success":"success"===r,"slds-icon-text-warning":"warning"===r,"slds-icon-text-error":"error"===r,"slds-icon-text-light":"light"===r}),icon:s,name:c,path:u,style:h}),m?o.a.createElement("span",{className:"slds-assistive-text"},m):"")};Cn.displayName=$,Cn.propTypes={assistiveText:i.a.shape({label:i.a.string}),category:i.a.oneOf(["action","custom","doctype","standard","utility"]).isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerStyle:i.a.object,colorVariant:i.a.oneOf(["base","default","error","light","warning","success"]),icon:i.a.object,inverse:i.a.bool,name:i.a.string,path:i.a.string,productTheme:i.a.oneOf(["global-setup","service-cloud","industry-cloud","sales-cloud","commerce-cloud","community-cloud","marketing-cloud","quip"]),size:i.a.oneOf(["xx-small","x-small","small","medium","large"]),style:i.a.object,title:i.a.string},Cn.defaultProps=En;var jn=Cn;var Nn=function(){},Tn=n(33);function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function In(e,t){return(In=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bn(e);if(t){var o=Bn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?Ln(e):t}function Ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bn(e){return(Bn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mn={align:i.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]).isRequired,assistiveText:i.a.shape({tooltipTipLearnMoreIcon:i.a.string,triggerLearnMoreIcon:i.a.string}),children:i.a.node,content:i.a.node.isRequired,dialogClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),hasAnchoredNubbin:i.a.bool,hasStaticAlignment:i.a.bool,hoverCloseDelay:i.a.number,hoverOpenDelay:i.a.number,id:i.a.string,labels:i.a.shape({learnMoreAfter:i.a.string,learnMoreBefore:i.a.string}),isOpen:i.a.bool,onRequestTargetElement:i.a.func,triggerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),position:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),triggerStyle:i.a.object,theme:i.a.oneOf(["info","error"]),variant:i.a.oneOf(["base","learnMore","list-item"])},Hn={assistiveText:{tooltipTipLearnMoreIcon:"this link",triggerLearnMoreIcon:"Help"},align:"top",content:o.a.createElement("span",null,"Tooltip"),labels:{learnMoreAfter:"to learn more.",learnMoreBefore:"Click"},hoverCloseDelay:50,hoverOpenDelay:0,position:"absolute",theme:"info",variant:"base"},qn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&In(e,t)}(i,e);var t,n,r,a=Dn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Fn(Ln(t=a.call(this,e)),"handleCancel",(function(){clearTimeout(t.tooltipTimeout),t.setState({isOpen:!1})})),Fn(Ln(t),"handleMouseEnter",(function(){clearTimeout(t.tooltipTimeout),t.tooltipTimeout=setTimeout((function(){t.isUnmounting||t.setState({isOpen:!0})}),t.props.hoverOpenDelay)})),Fn(Ln(t),"handleMouseLeave",(function(){clearTimeout(t.tooltipTimeout),t.tooltipTimeout=setTimeout((function(){t.isUnmounting||t.setState({isOpen:!1})}),t.props.hoverCloseDelay)})),Fn(Ln(t),"saveTriggerRef",(function(e){t.trigger=e,t.state.triggerRendered||t.setState({triggerRendered:!0})})),t.state={isOpen:!1},t.tooltipTimeout={},Nn(ue,e,Tn),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"getAnchoredNubbinStyles",value:function(){if(this.props.hasAnchoredNubbin){var e=this.props.align.split(" ")[0],t={height:"0",position:"relative",width:"0"},n={backgroundColor:"#16325c",content:"",height:"1rem",position:"absolute",transform:"rotate(45deg)",width:"1rem"},r={height:this.trigger?this.trigger.getBoundingClientRect().height:0,width:this.trigger?this.trigger.getBoundingClientRect().width:0};switch(e){case"bottom":t.left="".concat(r.width/2,"px"),t.top="".concat(r.height,"px"),n.left="-8px",n.top="3px";break;case"left":t.left="0",t.top="".concat(r.height/2,"px"),n.left="-19px",n.top="-9px";break;case"right":t.left="".concat(r.width,"px"),t.top="".concat(r.height/2,"px"),n.left="3px",n.top="-9px";break;default:t.left="".concat(r.width/2,"px"),t.top="0",n.left="-8px",n.top="-19px"}return o.a.createElement(o.a.Fragment,null,o.a.createElement("style",null,"#".concat(this.getId(),":after, #").concat(this.getId(),":before {\n\tdisplay: none;\n}")),this.getIsOpen()?o.a.createElement("div",{style:t},o.a.createElement("div",{style:n})):null)}return null}},{key:"getContent",value:function(){var e,t=this,n=0===o.a.Children.count(this.props.children);return e=n&&this.props.onClickTrigger?[o.a.createElement("a",{href:"#",onClick:St.trappedHandler(this.props.onClickTrigger)},o.a.createElement(jn,{category:"utility",name:"info",assistiveText:{label:this.props.assistiveText.triggerLearnMoreIcon},size:"x-small"}))]:n?[o.a.createElement(ar,{"aria-disabled":!0,assistiveText:{icon:this.props.assistiveText.triggerLearnMoreIcon},iconCategory:"utility",iconName:"info",variant:"icon"})]:this.props.children,o.a.Children.map(e,(function(e,n){return o.a.cloneElement(e,{key:n,"aria-describedby":t.getIsOpen()?t.getId():void 0,onBlur:t.handleMouseLeave,onFocus:t.handleMouseEnter,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave})}))}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getIsOpen",value:function(){return void 0===this.props.isOpen?this.state.isOpen:this.props.isOpen}},{key:"getTooltip",value:function(){var e=this,t=this.getIsOpen(),n=this.props.align,r="error"===this.props.variant;return t?o.a.createElement(bn,{closeOnTabKey:!0,hasNubbin:!0,contentsClassName:l()("slds-popover","slds-popover_tooltip",{"slds-theme_error":"error"===this.props.theme||r},this.props.dialogClassName),align:n,context:this.context,hasStaticAlignment:this.props.hasStaticAlignment,onClose:this.handleCancel,onRequestTargetElement:function(){return e.getTooltipTarget()},position:this.props.position,variant:"tooltip",containerProps:{id:this.getId()}},this.getTooltipContent()):o.a.createElement("span",null)}},{key:"getTooltipContent",value:function(){return o.a.createElement("div",{className:"slds-popover__body"},this.props.content,"learnMore"===this.props.variant&&this.props.onClickTrigger?o.a.createElement("div",{className:"slds-m-top_x-small","aria-hidden":"true"},this.props.labels.learnMoreBefore," ",o.a.createElement(jn,{assistiveText:{label:this.props.assistiveText.tooltipTipLearnMoreIcon},category:"utility",inverse:!0,name:"info",size:"x-small"})," ",this.props.labels.learnMoreAfter," "):null)}},{key:"getTooltipTarget",value:function(){return this.props.onRequestTargetElement?this.props.onRequestTargetElement():this.props.target?this.props.target:this.trigger}},{key:"render",value:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){Fn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({display:"inline-block",lineHeight:"1"},this.props.triggerStyle);return o.a.createElement("div",{className:l()("slds-tooltip-trigger",this.props.triggerClassName),style:e,ref:this.saveTriggerRef},this.getAnchoredNubbinStyles(),this.getContent(),this.getTooltip())}}])&&Rn(t.prototype,n),r&&Rn(t,r),i}(o.a.Component);qn.contextType=pt,qn.displayName="SLDSPopoverTooltip",qn.propTypes=Mn,qn.defaultProps=Hn;var Kn=qn;function Wn(e){return Object.keys(e).reduce((function(t,n){return"aria-"===n.substr(0,5)&&(t[n]=e[n]),t}),{})}function Vn(e){return Object.keys(e).reduce((function(t,n){return"data-"===n.substr(0,5)&&(t[n]=e[n]),t}),{})}var zn=new Set(["form","formAction","formEncType","formMethod","formNoValidate","formTarget"]);function Un(e){return(Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gn(){return(Gn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yn(Object(n),!0).forEach((function(t){nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jn(e,t){return(Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){return!t||"object"!==Un(t)&&"function"!=typeof t?er(e):t}function er(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rr={assistiveText:{icon:""},disabled:!1,hint:!1,iconSize:"medium",responsive:!1,type:"button",variant:"neutral"},or=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(i,e);var t,n,r,a=Zn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),nr(er(t=a.call(this,e)),"getClassName",(function(){var e,n="icon"===t.props.variant,r=t.props.iconVariant,o="more"===r,a="border"===r,i="global-header"===r,s="base"!==t.props.variant&&!r&&!t.props.inverse&&"link"!==t.props.variant||"bare"===r,c=t.props.inverse&&!n,u=t.props.inverse&&n&&!o&&!a,p=t.props.inverse&&o,f=t.props.inverse&&a;return"global-header"===r&&(r="container"),l()((nr(e={"slds-button":"link"!==t.props.variant},"slds-button_".concat(t.props.variant),s),nr(e,"slds-button_inverse",c),nr(e,"slds-button_icon-inverse",u||p),nr(e,"slds-button_icon-border-inverse",f),nr(e,"slds-button_icon-".concat(r),r&&!f),nr(e,"slds-global-header__button_icon",i),nr(e,"slds-button_icon-".concat(t.props.iconSize),r&&"medium"!==t.props.iconSize),nr(e,"slds-button_reset","link"===t.props.variant),nr(e,"slds-text-link","link"===t.props.variant),e),t.props.className)})),nr(er(t),"handleClick",(function(e){t.props.onClick&&t.props.onClick(e,{})})),nr(er(t),"renderIcon",(function(e){var n=!t.props.iconSize||t.props.iconVariant?null:t.props.iconSize;return o.a.createElement(Ot,{category:t.props.iconCategory||"utility",className:l()({"slds-global-header__icon":"global-header"===t.props.iconVariant},t.props.iconClassName),hint:t.props.hint,inverse:t.props.inverse,name:e,path:t.props.iconPath,position:t.props.iconPosition,size:n})})),nr(er(t),"renderLabel",(function(){var e=t.props.iconName||t.props.iconPath,n="string"==typeof t.props.assistiveText?t.props.assistiveText:Xn(Xn({},rr.assistiveText),t.props.assistiveText).icon;return e&&n?o.a.createElement("span",{className:"slds-assistive-text"},n):t.props.label})),nr(er(t),"renderButton",(function(){var e=Wn(t.props),n=Vn(t.props),r=function(e){return Object.keys(e).reduce((function(t,n){return zn.has(n)&&(t[n]=e[n]),t}),{})}(t.props);return o.a.createElement("button",Gn({className:t.getClassName(),disabled:t.props.disabled,id:t.props.id,onBlur:t.props.onBlur,onClick:t.handleClick,onFocus:t.props.onFocus,onKeyDown:t.props.onKeyDown,onKeyPress:t.props.onKeyPress,onKeyUp:t.props.onKeyUp,onMouseDown:t.props.onMouseDown,onMouseEnter:t.props.onMouseEnter,onMouseLeave:t.props.onMouseLeave,onMouseUp:t.props.onMouseUp,ref:function(e){t.props.buttonRef&&t.props.buttonRef(e),e&&t.props.requestFocus&&t.props.onRequestFocus&&t.props.onRequestFocus(e)},tabIndex:t.props.tabIndex,title:t.props.title,type:t.props.type||"button",style:t.props.style},e,n,r),"right"===t.props.iconPosition?t.renderLabel():null,t.props.iconName||t.props.iconPath?t.renderIcon(t.props.iconName):null,"more"===t.props.iconVariant?o.a.createElement(Ot,{category:"utility",name:"down",size:"x-small",className:t.props.iconClassName}):null,"left"!==t.props.iconPosition&&t.props.iconPosition?null:t.renderLabel(),t.props.children)})),nr(er(t),"renderTooltip",(function(){return o.a.createElement(Kn,{content:t.props.tooltip},t.renderButton)})),_t(S,e,xt),t}return t=i,(n=[{key:"render",value:function(){return this.props.tooltip?this.renderTooltip():this.renderButton()}}])&&Qn(t.prototype,n),r&&Qn(t,r),i}(o.a.Component);nr(or,"displayName",S),nr(or,"propTypes",{assistiveText:i.a.shape({icon:i.a.string}),buttonRef:i.a.func,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,hint:i.a.bool,iconCategory:Pe()(i.a.oneOf(["action","custom","doctype","standard","utility"]),(function(e){return!!e.iconName})),iconClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),iconName:i.a.string,iconPath:i.a.string,iconPosition:i.a.oneOf(["left","right"]),iconSize:i.a.oneOf(["x-small","small","medium","large"]),iconVariant:i.a.oneOf(["bare","container","border","border-filled","brand","more","global-header"]),id:i.a.string,inverse:i.a.bool,label:i.a.oneOfType([i.a.string,i.a.node]),onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,onMouseUp:i.a.func,onRequestFocus:i.a.func,requestFocus:i.a.bool,responsive:i.a.bool,tabIndex:i.a.string,type:i.a.oneOf(["reset","submit","button"]),title:i.a.string,tooltip:i.a.node,variant:i.a.oneOf(["base","link","neutral","brand","outline-brand","destructive","success","text-destructive","icon"]),style:i.a.object}),nr(or,"defaultProps",rr);var ar=or,ir={children:i.a.node,expanded:i.a.bool.isRequired,id:i.a.oneOfType([i.a.number,i.a.string]).isRequired,panelContentActions:i.a.node,onKeyDownSummary:i.a.func,onTogglePanel:i.a.func.isRequired,refs:i.a.shape({summaryButton:i.a.func}),summary:i.a.oneOfType([i.a.string,i.a.node]).isRequired,title:i.a.string},sr=function(e){var t=e.children,n=e.expanded,r=e.id,a=e.panelContentActions,i=e.summary,s=e.title,c=e.onClickSummary,u=e.onKeyDownSummary,p=e.onTogglePanel,f=e.refs;return o.a.createElement("li",{className:"slds-accordion__list-item"},o.a.createElement("section",{className:l()("slds-accordion__section",{"slds-is-open":n})},o.a.createElement("div",{className:"slds-accordion__summary"},o.a.createElement("h3",{className:"slds-text-heading_small slds-accordion__summary-heading slds-has-flexi-truncate"},o.a.createElement(ar,{"aria-controls":"".concat(r,"-accordion-panel"),"aria-expanded":n,buttonRef:f.summaryButton,className:"slds-button_reset slds-accordion__summary-action",iconCategory:"utility",iconClassName:"slds-accordion__summary-action-icon slds-button__icon slds-button__icon_left",iconName:"switch",id:"".concat(r,"-accordion-button"),onKeyDown:u,onClick:function(e){c(),p(e)},variant:"base"},o.a.createElement("span",{className:"slds-truncate",title:s||i},i))),a),o.a.createElement("div",{"aria-hidden":!n,className:"slds-accordion__content",id:"".concat(r,"-accordion-panel")},t)))},lr=sr;sr.propTypes=ir,sr.displayName="SLDSAccordionPanel";var cr=n(4),ur=n.n(cr);var pr=function(){},fr=n(34);function dr(e){return(dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mr(e,t){return(mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gr(e);if(t){var o=gr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yr(this,n)}}function yr(e,t){return!t||"object"!==dr(t)&&"function"!=typeof t?vr(e):t}function vr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gr(e){return(gr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Or={assistiveText:i.a.shape({closeButton:i.a.oneOfType([i.a.string,i.a.node])}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),dismissible:i.a.bool,icon:i.a.node,labels:i.a.shape({heading:i.a.oneOfType([i.a.string,i.a.node]),headingLink:i.a.oneOfType([i.a.string,i.a.node])}),onClickHeadingLink:i.a.func,onRequestClose:i.a.func,style:i.a.object,variant:i.a.oneOf(["error","info","offline","warning"]).isRequired},_r={assistiveText:{closeButton:"Close"},labels:{},variant:"info"},xr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(i,e);var t,n,r,a=br(i);function i(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),n=vr(t),o=function(e){t.closeButton=e,t.state.isInitialRender&&(Zt.storeActiveElement(),t.closeButton&&t.closeButton.focus(),t.setState({isInitialRender:!1}))},(r="saveButtonRef")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,t.state={isInitialRender:!0},pr(p,e,fr),t}return t=i,(n=[{key:"componentWillUnmount",value:function(){Zt.returnFocusToStoredElement()}},{key:"render",value:function(){var e=ur()({},_r.assistiveText,this.props.assistiveText),t=ur()({},_r.labels,this.props.labels),n=t.heading||this.props.content,r=this.props.onRequestClose||this.props.onDismiss,a={info:o.a.createElement(jn,{category:"utility",name:"info"}),offline:o.a.createElement(jn,{category:"utility",name:"offline"}),warning:o.a.createElement(jn,{category:"utility",name:"warning"}),error:o.a.createElement(jn,{category:"utility",name:"error"})},i=this.props.icon?this.props.icon:a[this.props.variant];this.props.iconName&&this.props.iconCategory&&(i=o.a.createElement(jn,{category:this.props.iconCategory,name:this.props.iconName}));var s=o.a.cloneElement(i,{containerClassName:"slds-m-right_x-small",inverse:!0,size:"x-small"});return o.a.createElement("div",{className:gn("slds-notify slds-notify_alert slds-theme_alert-texture",{"slds-theme_info":"info"===this.props.variant,"slds-theme_warning":"warning"===this.props.variant,"slds-theme_error":"error"===this.props.variant,"slds-theme_offline":"offline"===this.props.variant},this.props.className),role:"alert",style:this.props.style},o.a.createElement("span",{className:"slds-assistive-text"},{info:"info",warning:"warning",error:"error",offline:"offline"}[this.props.variant]),s,o.a.createElement("h2",null,n," ",t.headingLink?o.a.createElement("a",{onClick:St.trappedHandler(this.props.onClickHeadingLink),href:"#"},t.headingLink):null),this.props.dismissible?o.a.createElement(ar,{assistiveText:{icon:e.closeButton},buttonRef:this.saveButtonRef,className:"slds-notify__close",iconCategory:"utility",iconName:"close",iconSize:"medium",inverse:!0,onClick:r,title:e.closeButton,variant:"icon"}):null)}}])&&hr(t.prototype,n),r&&hr(t,r),i}(o.a.Component);xr.defaultProps=_r,xr.displayName=p,xr.propTypes=Or;var wr=xr;function Sr(e){return(Sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Er(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jr(e,t){return(jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pr(e);if(t){var o=Pr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tr(this,n)}}function Tr(e,t){return!t||"object"!==Sr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pr(e){return(Pr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kr={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),children:i.a.node},Rr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jr(e,t)}(i,e);var t,n,r,a=Nr(i);function i(){return Er(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("div",{className:gn("slds-notify-container",this.props.className)},this.props.children)}}])&&Cr(t.prototype,n),r&&Cr(t,r),i}(o.a.Component);Rr.displayName="SLDSAlertContainer",Rr.propTypes=kr;var Ir=Rr,Dr=n(5),Ar=n.n(Dr),Lr=function(){},Br=function(){};var Fr=function(){},Mr=n(13),Hr=n(20),qr=n.n(Hr);var Kr,Wr=function(){},Vr="assets/",zr={setAssetsPath:function(e){e&&(Vr=e)},getAssetsPath:function(){return String(Vr)},setAppElement:function(e){e&&(Kr=e,qr.a.setAppElement(e))},getAppElement:function(){return Kr}};var Ur=function(){},Gr=n(35);function Yr(e){return(Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xr(Object(n),!0).forEach((function(t){Jr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $r(e,t){return($r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ro(e);if(t){var o=ro(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return to(this,n)}}function to(e,t){return!t||"object"!==Yr(t)&&"function"!=typeof t?no(e):t}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e){return(ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oo="undefined"!=typeof document,ao="undefined"!=typeof window,io={align:i.a.oneOf(["top","center"]),ariaHideApp:i.a.bool,assistiveText:i.a.shape({dialogLabel:i.a.string,dialogLabelledBy:i.a.string,closeButton:i.a.string}),children:i.a.node.isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),contentClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),contentStyle:i.a.object,directional:i.a.bool,disableClose:i.a.bool,dismissOnClickOutside:i.a.bool,onRequestClose:i.a.func,footer:i.a.oneOfType([i.a.array,i.a.node]),header:i.a.node,headerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool.isRequired,parentSelector:i.a.func,portalClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),prompt:i.a.oneOf(["success","warning","error","wrench","offline","info"]),size:i.a.oneOf(["small","medium","large"]),tagline:i.a.node,title:i.a.node,heading:i.a.node,toast:i.a.node},so={assistiveText:{dialogLabelledBy:"",closeButton:"Close"},align:"center",ariaHideApp:!0},lo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$r(e,t)}(i,e);var t,n,r,a=eo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={isClosing:!1},t.handleModalClick=t.handleModalClick.bind(no(t)),t.closeModal=t.closeModal.bind(no(t)),t.dismissModalOnClickOutside=t.dismissModalOnClickOutside.bind(no(t)),t.generatedId=u.a.generate(),Wr(ae,e,Gr),e.ariaHideApp&&Ur(),t}return t=i,(n=[{key:"componentDidMount",value:function(){this.setReturnFocus(),this.updateBodyScroll()}},{key:"componentDidUpdate",value:function(e,t){if(this.props.isOpen!==e.isOpen&&this.updateBodyScroll(),this.state.isClosing!==t.isClosing&&this.state.isClosing&&!this.isUnmounting){var n=Tt.a.findDOMNode(this);n&&n.parentNode&&n.parentNode.getAttribute("data-slds-modal")&&(Tt.a.unmountComponentAtNode(n),document.body.removeChild(n))}}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0,this.clearBodyScroll()}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getBorderRadius",value:function(){var e=".25rem",t=this.props.title||this.props.heading||this.props.header?{}:{borderTopLeftRadius:e,borderTopRightRadius:e},n=this.props.footer?{}:{borderBottomLeftRadius:e,borderBottomRightRadius:e};return Qr(Qr({},t),n)}},{key:"getAriaAttributes",value:function(){var e={describedby:"".concat(this.getId(),"-modal-content"),modal:"true"};if(this.props.assistiveText.dialogLabel)return e.label=this.props.assistiveText.dialogLabel,e;var t=null;return this.props.assistiveText.dialogLabelledBy?t=this.props.assistiveText.dialogLabelledBy:(this.props.heading||this.props.title)&&(t="".concat(this.getId(),"-heading")),e.labelledby=t,e}},{key:"getModal",value:function(){var e="top"===this.props.align?{justifyContent:"flex-start"}:null,t=this.getBorderRadius(),n=this.props.contentStyle||{},r=Qr(Qr({},t),n);return o.a.createElement("section",{className:l()("slds-modal","slds-fade-in-open",this.props.size?"slds-modal_".concat(this.props.size):null,{"slds-modal_prompt":this.isPrompt()},this.props.className),onClick:this.dismissModalOnClickOutside},o.a.createElement("div",{className:l()("slds-modal__container",this.props.containerClassName),style:e},this.headerComponent(),o.a.createElement("div",{className:l()("slds-modal__content",this.props.contentClassName),id:"".concat(this.getId(),"-modal-content"),style:r,onClick:this.handleModalClick},this.props.children),this.footerComponent()))}},{key:"setReturnFocus",value:function(){this.setState({returnFocusTo:oo?document.activeElement:null})}},{key:"clearBodyScroll",value:function(){ao&&oo&&document.body&&(document.body.style.overflow="inherit")}},{key:"closeModal",value:function(){this.props.disableClose||this.dismissModal()}},{key:"dismissModal",value:function(){this.setState({isClosing:!0}),this.state.returnFocusTo&&this.state.returnFocusTo.focus&&this.state.returnFocusTo.focus(),this.props.onRequestClose&&this.props.onRequestClose()}},{key:"dismissModalOnClickOutside",value:function(){(void 0!==this.props.dismissOnClickOutside?this.props.dismissOnClickOutside:!this.props.disableClose)&&this.dismissModal()}},{key:"footerComponent",value:function(){var e=null,t=this.props.footer,n={"slds-modal__footer":!0,"slds-modal__footer_directional":this.props.directional,"slds-theme_default":this.isPrompt()};return t&&(e=o.a.createElement("footer",{className:l()(n,this.props.footerClassNames),onClick:this.handleModalClick},this.props.footer)),e}},{key:"handleModalClick",value:function(e){e&&e.stopPropagation&&e.stopPropagation()}},{key:"handleSubmitModal",value:function(){this.closeModal()}},{key:"headerComponent",value:function(){var e,t=this.props.header,n=!t&&!(this.props.heading||this.props.title)&&!this.props.tagline,r=Qr(Qr({},so.assistiveText),this.props.assistiveText),a=this.props.closeButtonAssistiveText||r.closeButton,i=o.a.createElement(ar,{assistiveText:{icon:a},iconCategory:"utility",iconName:"close",iconSize:"large",inverse:!0,className:"slds-button_icon slds-modal__close",onClick:this.closeModal,title:a,variant:"icon"});return(!t&&(this.props.heading||this.props.title)||this.props.tagline)&&(t=o.a.createElement("div",null,this.props.toast,o.a.createElement("h2",{className:l()({"slds-text-heading_small":this.isPrompt(),"slds-text-heading_medium":!this.isPrompt()}),id:"".concat(this.getId(),"-heading")},this.props.heading?this.props.heading:this.props.title),this.props.tagline?o.a.createElement("p",{className:"slds-m-top_x-small"},this.props.tagline):null)),o.a.createElement("header",{className:l()("slds-modal__header",(e={"slds-modal__header_empty":n},Jr(e,"slds-theme_".concat(this.props.prompt),this.isPrompt()),Jr(e,"slds-theme_alert-texture",this.isPrompt()),e),this.props.headerClassName),onClick:this.handleModalClick},this.props.disableClose?null:i,t)}},{key:"isPrompt",value:function(){return void 0!==this.props.prompt}},{key:"updateBodyScroll",value:function(){ao&&oo&&document.body&&(this.props.isOpen?document.body.style.overflow="hidden":document.body.style.overflow="inherit")}},{key:"render",value:function(){var e=this.getAriaAttributes();return o.a.createElement(qr.a,{aria:e,ariaHideApp:this.props.ariaHideApp,isOpen:this.props.isOpen,onRequestClose:this.closeModal,role:this.props.disableClose?"alertdialog":"dialog",style:{content:{position:"default",top:"default",left:"default",right:"default",bottom:"default",border:"default",background:"default",overflow:"default",WebkitOverflowScrolling:"default",borderRadius:"default",outline:"default",padding:"default"},overlay:{zIndex:8e3,backgroundColor:"default"}},parentSelector:this.props.parentSelector,portalClassName:l()("ReactModalPortal",this.props.portalClassName)},this.getModal(),o.a.createElement("div",{className:"slds-backdrop slds-backdrop_open"}))}}])&&Zr(t.prototype,n),r&&Zr(t,r),i}(o.a.Component);lo.displayName=ae,lo.propTypes=io,lo.defaultProps=so;var co=lo;function uo(e){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function po(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?po(Object(n),!0).forEach((function(t){Oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mo(e,t){return(mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=go(e);if(t){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function yo(e,t){return!t||"object"!==uo(t)&&"function"!=typeof t?vo(e):t}function vo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function go(e){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _o={assistiveText:{trigger:"Open App Launcher"},ariaHideApp:!0,title:"App Launcher"},xo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mo(e,t)}(i,e);var t,n,r,a=bo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Oo(vo(t=a.call(this,e)),"openAppLauncher",(function(e){t.setState({isOpen:!0}),Ar()(t.props.triggerOnClick)&&t.props.triggerOnClick(e,{})})),Oo(vo(t),"closeAppLauncher",(function(e){t.setState({isOpen:!1}),Ar()(t.props.onClose)&&t.props.onClose(e,{})})),Oo(vo(t),"renderSearch",(function(){var e;return t.props.search&&(e=o.a.createElement("div",{className:"slds-app-launcher__header-search",ref:function(e){if(e){if(!t.focusedOnSearch){var n=e.querySelector("input");n&&setTimeout((function(){n.focus(),t.focusedOnSearch=!0}),0)}}else t.focusedOnSearch=!1}},t.props.search)),e})),t.generatedId=u.a.generate(),t.state={isOpen:!1},Fr(f,e,Mr),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=void 0!==this.props.isOpen?this.props.isOpen:this.state.isOpen,t=this.props.noTruncate?{maxWidth:"none"}:null,n=o.a.createElement(o.a.Fragment,null,o.a.createElement("h2",{className:"slds-text-heading_medium",id:"".concat(this.getId(),"-app-launcher-title")},this.props.title),this.renderSearch(),this.props.modalHeaderButton?this.props.modalHeaderButton:o.a.createElement("span",{className:"slds-size_1-of-7"})),r=fo(fo({},_o.assistiveText),this.props.assistiveText),a=this.props.triggerAssistiveText||r.trigger;return o.a.createElement("div",{className:"slds-context-bar__item slds-context-bar__dropdown-trigger slds-dropdown-trigger slds-dropdown-trigger_click slds-no-hover",style:t},o.a.createElement("div",{className:"slds-context-bar__icon-action"},o.a.createElement("button",{"aria-haspopup":"true",className:"slds-button slds-icon-waffle_container slds-context-bar__button",onClick:this.openAppLauncher,title:a,type:"button"},o.a.createElement("span",{className:"slds-icon-waffle"},o.a.createElement("span",{className:"slds-r1"}),o.a.createElement("span",{className:"slds-r2"}),o.a.createElement("span",{className:"slds-r3"}),o.a.createElement("span",{className:"slds-r4"}),o.a.createElement("span",{className:"slds-r5"}),o.a.createElement("span",{className:"slds-r6"}),o.a.createElement("span",{className:"slds-r7"}),o.a.createElement("span",{className:"slds-r8"}),o.a.createElement("span",{className:"slds-r9"})),a&&o.a.createElement("span",{className:"slds-assistive-text"},a))),o.a.createElement(co,{ariaHideApp:this.props.ariaHideApp,assistiveText:{dialogLabelledBy:"".concat(this.getId(),"-app-launcher-title")},className:l()("slds-app-launcher",this.props.modalClassName),contentClassName:"slds-app-launcher__content slds-p-around_medium",contentStyle:{minHeight:"90%"},isOpen:e,onRequestClose:this.closeAppLauncher,size:"large",header:n,headerClassName:"slds-grid slds-grid_align-spread slds-grid_vertical-align-center"},this.props.children),this.props.triggerName?o.a.createElement("span",{className:"slds-context-bar__label-action slds-context-bar__app-name"},this.props.noTruncate?this.props.triggerName:o.a.createElement("span",{className:"slds-truncate",title:this.props.triggerName},this.props.triggerName)):null)}}])&&ho(t.prototype,n),r&&ho(t,r),i}(o.a.Component);Oo(xo,"displayName",f),Oo(xo,"propTypes",{assistiveText:i.a.shape({trigger:i.a.string}),ariaHideApp:i.a.bool,children:i.a.node.isRequired,id:i.a.string,isOpen:i.a.bool,modalClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),modalHeaderButton:i.a.node,noTruncate:i.a.bool,onClose:i.a.func,search:i.a.node,title:i.a.string,triggerName:i.a.node,triggerOnClick:i.a.func}),Oo(xo,"defaultProps",_o);var wo=xo;function So(e){return(So="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(){return(Eo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Co(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jo(e,t){return(jo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function No(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ko(e);if(t){var o=ko(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return To(this,n)}}function To(e,t){return!t||"object"!==So(t)&&"function"!=typeof t?Po(e):t}function Po(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ko(e){return(ko=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Io={assistiveText:i.a.shape({toggleSection:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool,nonCollapsible:i.a.bool,onToggleOpen:i.a.func,title:i.a.string.isRequired},Do=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jo(e,t)}(i,e);var t,n,r,a=No(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ro(Po(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),Ro(Po(t),"toggleOpen",(function(e){t.props.onToggleOpen?t.props.onToggleOpen(e,{isOpen:t.props.isOpen}):t.setState((function(e){return{isOpen:!e.isOpen}}))})),t.generatedId=u.a.generate(),t.state={isOpen:!0},t}return t=i,(n=[{key:"render",value:function(){var e="".concat(this.getId(),"-expanded-section-content"),t=void 0!==this.props.isOpen?this.props.isOpen:this.state.isOpen,n={"aria-controls":e,"aria-expanded":!!t},r=o.a.createElement("span",{className:l()("slds-truncate",{"slds-p-horizontal_small":!!this.props.nonCollapsible}),title:this.props.title},this.props.title);return o.a.createElement("div",{className:l()("slds-section",{"slds-is-open":t},this.props.className)},o.a.createElement("h3",{className:l()("slds-section__title",{"slds-theme_shade":!!this.props.nonCollapsible})},this.props.nonCollapsible?r:o.a.createElement(ar,Eo({assistiveText:{icon:this.props.assistiveText.toggleSection},iconCategory:"utility",iconClassName:"slds-section__title-action-icon slds-button__icon_left",iconName:"switch",onClick:this.toggleOpen,className:"slds-section__title-action",variant:"base"},n),r)),o.a.createElement("div",{"aria-hidden":!t,className:"slds-section__content",id:e},this.props.children))}}])&&Co(t.prototype,n),r&&Co(t,r),i}(o.a.Component);Do.displayName="SLDSExpandableSection",Do.propTypes=Io,Do.defaultProps={assistiveText:{toggleSection:"Toggle visibility of section"},nonCollapsible:!1};var Ao=Do;function Lo(e){return(Lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(n),!0).forEach((function(t){zo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ho(e,t){return(Ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vo(e);if(t){var o=Vo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ko(this,n)}}function Ko(e,t){return!t||"object"!==Lo(t)&&"function"!=typeof t?Wo(e):t}function Wo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vo(e){return(Vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ho(e,t)}(i,e);var t,n,r,a=qo(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),zo(Wo(t=a.call(this,e)),"state",{isOpen:!0}),zo(Wo(t),"toggleOpen",(function(e,n){t.props.onToggleOpen?t.props.onToggleOpen(e,n):t.setState((function(e){return{isOpen:!e.isOpen}}))})),Fr(d,e,Mr),t}return t=i,(n=[{key:"render",value:function(){var e=Fo(Fo({},this.props),{isOpen:void 0!==this.props.isOpen?this.props.isOpen:this.state.isOpen,onToggleOpen:this.toggleOpen}),t="tiles",n=o.a.Children.map(this.props.children,(function(e){var n="slds-p-horizontal_small slds-size_1-of-1 slds-medium-size_1-of-3";return(e&&e.type&&e.type.displayName!==h||e&&!e.type)&&(t="links"),"links"===t&&(n="slds-col_padded slds-p-vertical_xx-small slds-size_1-of-5"),o.a.createElement("li",{className:n},e)}));return o.a.createElement(Ao,e,o.a.createElement("ul",{className:l()("slds-grid slds-wrap",{"slds-grid_pull-padded":"tiles"===t})},n))}}])&&Mo(t.prototype,n),r&&Mo(t,r),i}(o.a.Component);zo(Uo,"displayName",d),zo(Uo,"propTypes",{assistiveText:i.a.shape({toggleSection:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool,nonCollapsible:i.a.bool,onToggleOpen:i.a.func,title:i.a.string.isRequired});var Go=Uo,Yo=n(25),Xo=n.n(Yo),Qo=function(e){if(e.search){var t;if("string"==typeof e.children)t=o.a.createElement(Xo.a,{className:e.className,matchClass:null,matchElement:"mark",search:e.search,title:e.children},e.children);else{if(e.children.props){var n=e.children.props.children;t=n instanceof Array?n.map((function(t){return"string"==typeof t?o.a.createElement(Xo.a,{key:t,className:e.className,matchClass:null,matchElement:"mark",search:e.search,title:t},t):t})):n}}return o.a.createElement("span",null,t)}return"string"==typeof e.children?o.a.createElement("span",{className:e.className,title:e.children},e.children):o.a.createElement("span",{className:e.className},e.children)};Qo.displayName="SLDSHighlighter",Qo.propTypes={children:i.a.oneOfType([i.a.string,i.a.number,i.a.bool,i.a.node]),className:i.a.string,search:i.a.any};var Jo=Qo;function Zo(e){return(Zo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ea(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ta(e,t){return(ta=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oa(e);if(t){var o=oa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ra(this,n)}}function ra(e,t){return!t||"object"!==Zo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oa(e){return(oa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ia=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ta(e,t)}(i,e);var t,n,r,a=na(i);function i(){return $o(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.title;return t||"string"!=typeof this.props.children||(t=this.props.children),o.a.createElement("a",{href:this.props.href,className:l()("slds-truncate",this.props.className),onClick:function(t){"#"===e.props.href&&t.preventDefault(),e.props.onClick&&(t.preventDefault(),e.props.onClick(t,{href:e.props.href}))},title:t},o.a.createElement(Jo,{search:this.props.search},this.props.children))}}])&&ea(t.prototype,n),r&&ea(t,r),i}(o.a.Component);aa(ia,"displayName","SLDSAppLauncherLink"),aa(ia,"propTypes",{children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),href:i.a.string,onClick:i.a.func,search:i.a.string,title:i.a.string}),aa(ia,"defaultProps",{href:"#"});var sa=ia,la=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ca(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||la(r)&&la(o)))return!1;var r,o;return!0}function ua(e,t){void 0===t&&(t=ca);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fa(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ha(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ma(e,t){return(ma=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ba(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ga(e);if(t){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(e,t){return!t||"object"!==pa(t)&&"function"!=typeof t?va(e):t}function va(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ga(e){return(ga=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _a,xa,wa="undefined"!=typeof document,Sa=function(){return 0};wa&&(_a=document.createElement("canvas")).getContext&&(document.createDocumentFragment().appendChild(_a),xa=_a.getContext("2d"),Sa=ua((function(e,t){return xa.font=t,xa.measureText(e).width})));var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ma(e,t)}(i,e);var t,n,r,a=ba(i);function i(){var e;da(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Oa(va(e=a.call.apply(a,[this].concat(n))),"state",{}),Oa(va(e),"onResize",(function(){e.update(e.props)})),Oa(va(e),"getRenderText",(function(t,n){if(t){e.scope=t;var r=n||e.props,a=(r.containerClassName,r.line),i=r.prefix,s=r.suffix,l=r.text,c=r.textTruncateChild,u=r.truncateText,p=r.wrapper,f=fa(r,["containerClassName","line","prefix","suffix","text","textTruncateChild","truncateText","wrapper"]),d=e.scope.getBoundingClientRect().width,h=window.getComputedStyle(e.scope),m=[h["font-weight"],h["font-style"],h["font-size"],h["font-family"]].join(" ");if(0!==d){var b,y,v=l;if(d<Sa(l,m)){for(var g=1,O=l.length,_="",x=0,w=0,S=a,E=0,C=!1,j=-1;0!==S;){var N="",T=0;for(i&&S===a-1&&(N+=" ".concat(i),T=.66*i.length),S||(N+=u,s&&(N+=" ".concat(s)));g<=O;){if(_=l.substr(w,g),!((E=Sa(_+N,m)+T)<d)){var P=0;do{if(g-=1," "===(_=l.substr(w,g))[_.length-1]&&(_=l.substr(w,g-1)),C&&(j=_.lastIndexOf(" "))>-1&&(g=j,_=l.substr(w,g)),(E=Sa(_+N,m)+T)===P){g=0;break}P=E}while(E>=d);w+=g;break}-1===(x=l.indexOf(" ",g+1))?(g+=1,C=!1):(C=!0,g=x)}if(g>=O){w=O;break}S-=1}w!==O&&(v="".concat(l.substr(0,w)).concat(u," "),b=c)}y=p?p(v,b):o.a.createElement("div",f,v,b),e.setState({renderText:y})}else e.setState({renderText:null})}})),Oa(va(e),"update",(function(t){e.getRenderText(e.scope,t)})),e}return t=i,(n=[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.onResize,!1)}},{key:"componentDidUpdate",value:function(e){e.text!==this.props.text&&this.update(e)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onResize,!1)}},{key:"render",value:function(){var e=this.props.containerClassName;return o.a.createElement("div",{ref:this.getRenderText,className:e,style:{overflow:"hidden"}},this.state.renderText)}}])&&ha(t.prototype,n),r&&ha(t,r),i}(o.a.Component);Oa(Ea,"displayName","TextTruncate"),Oa(Ea,"propTypes",{containerClassName:i.a.string,line:i.a.number,prefix:i.a.string,suffix:i.a.string,text:i.a.string,textTruncateChild:i.a.node,truncateText:i.a.string,wrapper:i.a.func}),Oa(Ea,"defaultProps",{line:1,text:"",truncateText:"…"});var Ca=Ea;function ja(e){return(ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Na(){return(Na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pa(e,t){return(Pa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Da(e);if(t){var o=Da(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Ra(e,t){return!t||"object"!==ja(t)&&"function"!=typeof t?Ia(e):t}function Ia(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Da(e){return(Da=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Aa={assistiveText:i.a.shape({dragIconText:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),description:i.a.string,descriptionHeading:i.a.string,href:i.a.string,iconBackgroundColor:i.a.string,iconNode:i.a.node,iconText:i.a.string,isOpenTooltip:i.a.bool,moreLabel:i.a.string,onClick:i.a.func,search:i.a.string,title:i.a.string.isRequired},La=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pa(e,t)}(i,e);var t,n,r,a=ka(i);function i(e){var t,n,r,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),n=Ia(t),o=function(e){t.props.onClick&&(e.preventDefault(),t.props.onClick(e,{href:t.props.href}))},(r="handleClick")in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,Fr(h,e,Mr),t}return t=i,(n=[{key:"render",value:function(){var e=this,t={};return this.props.iconBackgroundColor&&(t.backgroundColor=this.props.iconBackgroundColor),o.a.createElement("div",{className:l()("slds-app-launcher__tile slds-text-link_reset slds-is-draggable",this.props.className),onClick:this.handleClick,role:"button",tabIndex:"0"},o.a.createElement("div",{className:"slds-app-launcher__tile-figure"},this.props.iconNode||o.a.createElement("span",{className:"slds-avatar slds-avatar_large"},o.a.createElement("abbr",{className:"slds-avatar__initials slds-icon-custom-27",style:t,title:this.props.title},this.props.iconText)),o.a.createElement("div",{className:"slds-m-top_xxx-small"},o.a.createElement(ar,Na({assistiveText:{icon:this.props.assistiveText.dragIconText},iconCategory:"utility",iconName:"rows",title:this.props.assistiveText.dragIconText,variant:"icon"},{"aria-pressed":!1})))),o.a.createElement("div",{className:"slds-app-launcher__tile-body"},o.a.createElement("a",{href:this.props.href,onClick:function(t){return"#"===e.props.href&&t.preventDefault()}},o.a.createElement(Jo,{search:this.props.search},this.props.title)),o.a.createElement(Ca,{line:2,prefix:this.props.descriptionHeading&&this.props.descriptionHeading.toUpperCase(),suffix:this.props.moreLabel,text:this.props.description,textTruncateChild:o.a.createElement(Kn,{align:"bottom",content:o.a.createElement(Jo,{search:this.props.search},this.props.description),isOpen:this.props.isOpenTooltip},o.a.createElement(ar,{className:"slds-button_reset slds-text-link",variant:"base"},this.props.moreLabel)),wrapper:function(t,n){return o.a.createElement(o.a.Fragment,null,e.props.descriptionHeading&&o.a.createElement("div",{className:"slds-text-heading_label",style:{letterSpacing:"0.025rem"}},e.props.descriptionHeading," "),o.a.createElement(Jo,{search:e.props.search},t),n&&" ",n)}})))}}])&&Ta(t.prototype,n),r&&Ta(t,r),i}(o.a.Component);La.displayName=h,La.defaultProps={assistiveText:{dragIconText:"Reorder"},href:"#",moreLabel:" More"},La.propTypes=Aa;var Ba=La;var Fa=function(){},Ma=n(36);function Ha(e){return(Ha="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ka(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qa(Object(n),!0).forEach((function(t){Wa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function za(e,t){return(za=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ya(e);if(t){var o=Ya(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ga(this,n)}}function Ga(e,t){return!t||"object"!==Ha(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ya(e){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xa={assistiveText:i.a.shape({icon:i.a.string}),imgAlt:i.a.string,imgSrc:i.a.string,initials:i.a.string,inverse:i.a.bool,label:i.a.string,variant:i.a.oneOf(["entity","user"]).isRequired,size:i.a.oneOf(["x-small","small","medium","large"]).isRequired,title:i.a.string},Qa={assistiveText:{icon:"User or Account Icon"},imgAlt:"",size:"medium",title:"user avatar",variant:"user"},Ja=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&za(e,t)}(i,e);var t,n,r,a=Ua(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={imgLoadError:!1},Fa(m,e,Ma),t}return t=i,(n=[{key:"buildInitials",value:function(){var e=this.props.label.trim(),t=e.split(" ");return t.length>1?t[0].charAt(0).toUpperCase()+t[t.length-1].charAt(0).toUpperCase():(e[0]||"").toUpperCase()+(e[1]||"").toLowerCase()}},{key:"handleImageError",value:function(){return this.setState((function(){return{imgLoadError:!0}}))}},{key:"renderBaseAvatar",value:function(){var e=this,t=this.props,n=t.imgAlt,r=t.imgSrc,a=t.title;return o.a.createElement("img",{alt:n,src:r,onError:function(){return e.handleImageError()},title:a})}},{key:"renderIconAvatar",value:function(){var e=this.props.variant,t="string"==typeof this.props.assistiveText?this.props.assistiveText:Ka(Ka({},Qa.assistiveText),this.props.assistiveText).icon;return o.a.createElement(jn,{assistiveText:{label:t},category:"standard",name:"entity"===e?"account":"user"})}},{key:"renderInitialsAvatar",value:function(){var e=this.props,t=e.initials,n=e.inverse,r=e.label,a=e.variant;return o.a.createElement("abbr",{className:gn("slds-avatar__initials",{"slds-avatar__initials_inverse":n,"slds-icon-standard-account":"entity"===a,"slds-icon-standard-user":"user"===a}),title:r},t||this.buildInitials())}},{key:"render",value:function(){var e=this,t=this.props,n=t.imgSrc,r=t.initials,a=t.variant,i=t.label,s=t.size;return o.a.createElement("div",null,o.a.createElement("span",{className:gn("slds-avatar",{"slds-avatar_circle":"user"===a,"slds-avatar_x-small":"x-small"===s,"slds-avatar_small":"small"===s,"slds-avatar_medium":"medium"===s,"slds-avatar_large":"large"===s})},!e.state.imgLoadError&&n?e.renderBaseAvatar():r||i&&i.trim()?e.renderInitialsAvatar():e.renderIconAvatar()))}}])&&Va(t.prototype,n),r&&Va(t,r),i}(o.a.Component);Ja.defaultProps=Qa,Ja.displayName="SLDSAvatar",Ja.propTypes=Xa;var Za=Ja;function $a(e){return($a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ei(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ti(e,t){return(ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oi(e);if(t){var o=oi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ri(this,n)}}function ri(e,t){return!t||"object"!==$a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oi(e){return(oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ai=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ti(e,t)}(i,e);var t,n,r,a=ni(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this.props.icon&&o.a.createElement("span",{className:l()("slds-badge__icon","slds-badge__icon_".concat(this.props.iconAlignment)),style:this.props.style},this.props.icon);return o.a.createElement("span",{id:this.getId(),className:l()("slds-badge",{"slds-badge_inverse":"inverse"===this.props.color,"slds-badge_lightest":"light"===this.props.color,"slds-theme_success":"success"===this.props.color,"slds-theme_warning":"warning"===this.props.color,"slds-theme_error":"error"===this.props.color},this.props.className)},"left"===this.props.iconAlignment?o.a.createElement(o.a.Fragment,null,e,this.props.content):o.a.createElement(o.a.Fragment,null,this.props.content,e))}}])&&ei(t.prototype,n),r&&ei(t,r),i}(o.a.Component);ai.displayName="SLDSBadge",ai.propTypes={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,style:i.a.object,color:i.a.oneOf(["default","inverse","light","success","warning","error"]),iconAlignment:i.a.oneOf(["left","right"]),content:i.a.oneOfType([i.a.string,i.a.node])},ai.defaultProps={iconAlignment:"left",color:"default"};var ii=ai;var si=function(){};function li(e){return(li="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ui(e,t){return(ui=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=di(e);if(t){var o=di(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fi(this,n)}}function fi(e,t){return!t||"object"!==li(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function di(e){return(di=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ui(e,t)}(i,e);var t,n,r,a=pi(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),si(b,t.props),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this.props;return o.a.createElement("div",{className:gn("slds-brand-band",{"slds-brand-band_small":"small"===e.size,"slds-brand-band_medium":"medium"===e.size,"slds-brand-band_large":"large"===e.size,"slds-brand-band_cover":"cover"===e.backgroundSize,"slds-brand-band_none":"none"===e.image,"slds-brand-band_group":"group"===e.image,"slds-brand-band_user":"user"===e.image},e.className),id:this.getId(),style:e.style},e.children)}}])&&ci(t.prototype,n),r&&ci(t,r),i}(o.a.Component);hi.displayName=b,hi.propTypes={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,image:i.a.oneOf(["default","none","group","user"]),backgroundSize:i.a.oneOf(["contain","cover"]),size:i.a.oneOf(["small","medium","large"]),style:i.a.object},hi.defaultProps={backgroundSize:"contain",image:"default",size:"medium"};var mi=hi;var bi=function(){},yi=n(37);function vi(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var gi,Oi,_i=(void 0===gi&&(gi=0),function(){return++gi}),xi={},wi={},Si=["touchstart","touchmove"];function Ei(e,t){var n=null;return-1!==Si.indexOf(t)&&Oi&&(n={passive:!e.props.preventDefault}),n}var Ci=function(e,t){var n,o,a=e.displayName||e.name||"Component";return o=n=function(n){var o,i;function s(e){var r;return(r=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof r.__clickOutsideHandlerProp){var t=r.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+a+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else r.__clickOutsideHandlerProp(e)},r.__getComponentNode=function(){var e=r.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():Object(Nt.findDOMNode)(e)},r.enableOnClickOutside=function(){if("undefined"!=typeof document&&!wi[r._uid]){void 0===Oi&&(Oi=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),wi[r._uid]=!0;var e=r.props.eventTypes;e.forEach||(e=[e]),xi[r._uid]=function(e){var t;null!==r.componentNode&&(r.props.preventDefault&&e.preventDefault(),r.props.stopPropagation&&e.stopPropagation(),r.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(vi(e,t,n))return!0;e=e.parentNode}return e}(e.target,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,xi[r._uid],Ei(r,e))}))}},r.disableOnClickOutside=function(){delete wi[r._uid];var e=xi[r._uid];if(e&&"undefined"!=typeof document){var t=r.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,Ei(r,t))})),delete xi[r._uid]}},r.getRef=function(e){return r.instanceRef=e},r._uid=_i(),r}i=n,(o=s).prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i;var l=s.prototype;return l.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},l.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+a+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},l.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},l.componentWillUnmount=function(){this.disableOnClickOutside()},l.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},s}(r.Component),n.displayName="OnClickOutside("+a+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:"ignore-react-onclickoutside",preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o},ji=function(e){return o.a.createElement("span",{className:"slds-truncate",title:e.label},e.icon,e.label)};ji.displayName="SLDSListItemLabel",ji.propTypes={data:i.a.object,icon:i.a.node,index:i.a.number,inverted:i.a.bool,isSelected:i.a.bool,label:i.a.string,value:i.a.any},ji.defaultProps={data:{},index:0,inverted:!1,isSelected:!1,label:"",value:null};var Ni=ji;function Ti(e){return(Ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ki(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pi(Object(n),!0).forEach((function(t){Hi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ri(){return(Ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Di(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ai(e,t){return(Ai=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mi(e);if(t){var o=Mi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bi(this,n)}}function Bi(e,t){return!t||"object"!==Ti(t)&&"function"!=typeof t?Fi(e):t}function Fi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mi(e){return(Mi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ai(e,t)}(i,e);var t,n,r,a=Li(i);function i(){var e;Ii(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Hi(Fi(e=a.call.apply(a,[this].concat(n))),"getLabel",(function(){var t=e.props.labelRenderer;return o.a.createElement(t,{checkmark:e.props.checkmark,data:e.props.data,icon:e.getIcon("left"),index:e.props.index,inverted:e.props.inverted,isSelected:e.props.isSelected,label:e.props.label,value:e.props.value})})),Hi(Fi(e),"getIcon",(function(t){var n=["slds-icon-text-default"],r=e.props["".concat(t,"Icon")];return"left"===t?(e.props.isCheckmarkVariant&&(n.push("slds-icon_selected"),r={category:"utility",name:"check"}),n.push("slds-m-right_x-small")):n.push("slds-m-left_small"),r?o.a.createElement(jn,Ri({className:l()(n),position:t,size:"x-small"},r)):null})),Hi(Fi(e),"handleClick",(function(t){"link"===e.props.type&&"javascript:void(0);"!==e.props.href&&"#"!==e.props.href||St.trapImmediate(t),e.props.onSelect&&e.props.onSelect(e.props.index)})),Hi(Fi(e),"handleMouseDown",(function(e){St.trapImmediate(e)})),e}return t=i,(n=[{key:"render",value:function(){switch(this.props.type){case"header":return o.a.createElement("li",{className:l()("slds-dropdown__header",{"slds-has-divider_top-space":"top"===this.props.divider,"slds-has-divider_bottom-space":"bottom"===this.props.divider},this.props.className),onMouseDown:this.handleMouseDown,role:"separator"},o.a.createElement("span",null,this.props.label));case"divider":return o.a.createElement("li",{className:l()("slds-has-divider",this.props.className),onMouseDown:this.handleMouseDown,role:"separator"});case"link":case"item":default:var e=o.a.createElement("a",{"aria-checked":!(!this.props.checkmark||!this.props.isSelected)||void 0,"aria-disabled":this.props["aria-disabled"],href:this.props.href,"data-index":this.props.index,onClick:this.handleClick,role:this.props.checkmark?"menuitemcheckbox":"menuitem",tabIndex:"-1"},this.getLabel(),this.getIcon("right"));if(this.props.tooltipContent&&this.props.tooltipTemplate){var t=Ri({},this.props.tooltipTemplate.props),n=ki(ki({},t),{},{content:this.props.tooltipContent,id:"".concat(this.props.id,"-tooltip"),triggerStyle:ki({width:"100%"},t.triggerStyle||{})});e=o.a.cloneElement(this.props.tooltipTemplate,n,e)}return o.a.createElement("li",{"aria-selected":null===this.props.checkmark?this.props.isSelected:null,className:l()("slds-dropdown__item",{"slds-is-selected":this.props.isSelected},this.props.className),id:this.props.id,onMouseDown:this.handleMouseDown,role:"presentation"},e)}}}])&&Di(t.prototype,n),r&&Di(t,r),i}(o.a.Component);Hi(qi,"displayName","SLDSListItem"),Hi(qi,"propTypes",{"aria-disabled":i.a.bool,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),checkmark:i.a.bool,data:i.a.object,divider:i.a.oneOf(["top","bottom"]),href:i.a.string,id:i.a.string.isRequired,index:i.a.number.isRequired,inverted:i.a.bool,isSelected:i.a.bool,isCheckmarkVariant:i.a.bool,label:i.a.string,labelRenderer:i.a.func,leftIcon:i.a.shape({category:i.a.string,name:i.a.string}),onSelect:i.a.func.isRequired,rightIcon:i.a.shape({category:i.a.string,name:i.a.string}),tooltipContent:i.a.oneOfType([i.a.node,i.a.string]),tooltipTemplate:i.a.node,type:i.a.string,value:i.a.any}),Hi(qi,"defaultProps",{data:{},href:"#",inverted:!1,isSelected:!1,label:"",labelRenderer:Ni,value:null});var Ki=qi;function Wi(e){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vi(){return(Vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gi(e,t){return(Gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qi(e);if(t){var o=Qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xi(this,n)}}function Xi(e,t){return!t||"object"!==Wi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qi(e){return(Qi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gi(e,t)}(i,e);var t,n,r,a=Yi(i);function i(){return zi(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n=this;return this.props.length&&(e="slds-dropdown_length-".concat(this.props.length)),t=o.a.createElement("ul",{"aria-labelledby":this.props.triggerId,className:l()("dropdown__list",e,this.props.className),role:"menu"},this.props.options.map((function(e,t){var r=n.props.getListItemId(t),a=t===n.props.selectedIndex,i=!!n.props.selectedIndices&&-1!==n.props.selectedIndices.indexOf(t);return o.a.createElement(Ki,Vi({},e,{"aria-disabled":e.disabled,checkmark:n.props.checkmark&&(a||i),isCheckmarkVariant:n.props.checkmark,data:e,id:r,index:t,isSelected:a||i,key:"".concat(r,"-").concat(e.value),labelRenderer:n.props.itemRenderer,onSelect:n.props.onSelect,ref:function(e){return n.props.itemRefs(e,t)},tooltipTemplate:n.props.tooltipMenuItem}))}))),this.props.tooltipMenuItem&&(t=o.a.createElement(o.a.Fragment,null,o.a.createElement("style",{dangerouslySetInnerHTML:{__html:".slds-dropdown__item > .slds-tooltip-trigger > a {\n\tposition: relative;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-ms-flex-pack: justify;\n\tjustify-content: space-between;\n\t-ms-flex-align: center;\n\talign-items: center;\n\tpadding: 0.5rem 0.75rem;\n\tcolor: #080707;\n\twhite-space: nowrap;\n\tcursor: pointer;\n}\n\n.slds-dropdown__item > .slds-tooltip-trigger > a:active {\n text-decoration: none;\n background-color: #ecebea;\n}\n\n.slds-dropdown__item > .slds-tooltip-trigger > a:hover,\n.slds-dropdown__item > .slds-tooltip-trigger > a:focus {\n outline: 0;\n text-decoration: none;\n background-color: #f3f2f2;\n}\n"}}),t)),t}}])&&Ui(t.prototype,n),r&&Ui(t,r),i}(o.a.Component);Ji(Zi,"displayName",ee),Ji(Zi,"propTypes",{checkmark:i.a.bool,className:i.a.string,getListItemId:i.a.func,itemRefs:i.a.func,itemRenderer:i.a.func,length:i.a.oneOf([null,"5","7","10",5,7,10]),onSelect:i.a.func,options:i.a.array,selectedIndex:i.a.number,tooltipMenuItem:i.a.node,triggerId:i.a.string}),Ji(Zi,"defaultProps",{length:"5",options:[],selectedIndex:-1});var $i=Zi;function es(e){return(es="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ts(){return(ts=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ns(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function as(e,t){return(as=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function is(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ls(e);if(t){var o=ls(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(e,t){return!t||"object"!==es(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ls(e){return(ls=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&as(e,t)}(i,e);var t,n,r,a=is(i);function i(){return rs(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.assistiveText,n=(e.children,e.className),r=e.id,a=(e.isInline,e.isOpen),i=e.onBlur,s=e.menu,c=e.onClick,u=e.onFocus,p=e.onKeyDown,f=e.onMouseDown,d=e.onMouseEnter,h=e.onMouseLeave,m=e.triggerRef,b=e.triggerClassName,y=ns(e,["assistiveText","children","className","id","isInline","isOpen","onBlur","menu","onClick","onFocus","onKeyDown","onMouseDown","onMouseEnter","onMouseLeave","triggerRef","triggerClassName"]),v="hover"===this.props.openOn?"click":this.props.openOn,g={};return 0!==o.a.Children.count(this.props.children)&&o.a.Children.forEach(this.props.children,(function(e){e&&e.type.displayName===ar.displayName&&(g=e.props)})),o.a.createElement("div",{className:l()("slds-dropdown-trigger slds-dropdown-trigger_".concat(v),{"slds-is-open":a},b),id:r,onBlur:i,onClick:c,onKeyDown:p,onFocus:u,onMouseDown:f,onMouseEnter:d,onMouseLeave:h},o.a.createElement(ar,ts({assistiveText:t,className:n,"aria-expanded":a,"aria-haspopup":!0},y,g,{buttonRef:m})),s)}}])&&os(t.prototype,n),r&&os(t,r),i}(o.a.Component);cs(us,"displayName",re),cs(us,"propTypes",{children:i.a.element,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool,menu:i.a.node,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,openOn:i.a.oneOf(["hover","click","hybrid"]),triggerRef:i.a.func,triggerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string])});var ps=us;var fs=function(){},ds=n(38);var hs=function(){var e=this;return this.buffer="",function(t){return e.timeout&&(clearTimeout(e.timeout),e.timeout=void 0),e.timeout=setTimeout((function(){e.buffer=""}),400),e.buffer=e.buffer+t,e.buffer}},ms=n(11),bs=n.n(ms);function ys(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vs(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gs=function(e){var t,n=e.componentContext,r=e.currentFocusedIndex,o=e.isOpen,a=e.event,i=e.key,s=e.keyCode,l=e.navigableItems,c=e.onFocus,u=e.onSelect,p=e.target,f=e.toggleOpen,d=l.indexes,h=d.length-1,m=i||String.fromCharCode(s);m=/^[ -~]$/.test(m)?m.toLowerCase():null;var b=s===zt.ENTER||s===zt.SPACE||s===zt.UP;if(s===zt.ESCAPE)o&&f();else if(o)if(s===zt.ENTER||s===zt.SPACE)u(r);else{var y=d.indexOf(r);if(s===zt.DOWN)if(y<h){t=d[y+1]}else{var v=ys(d,1);t=v[0]}else if(s===zt.UP){if(y>0)t=d[y-1];else t=d[h]}else if(m){var g=l.keyBuffer(m),O=0;g.length>1&&new RegExp("^[".concat(bs()(m),"]+$")).test(g)&&(O=g.length),l.forEach((function(e){(void 0===t&&e.text.substr(0,g.length)===g||O>0&&e.text.substr(0,1)===m)&&(O-=1,t=e.index)}))}}else{var _=ys(d,1);t=_[0],(b||m)&&f(),b&&n.trigger&&Tt.a.findDOMNode(n.trigger)===p&&n.handleClick(a)}return c(t),t};function Os(e){return(Os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){Ps(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ws(){return(ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Es(e,t){return(Es=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ts(e);if(t){var o=Ts(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return js(this,n)}}function js(e,t){return!t||"object"!==Os(t)&&"function"!=typeof t?Ns(e):t}function Ns(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ts(e){return(Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ps(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ks,Rs="undefined"!=typeof document,Is=Rs?document.createElement("span"):{style:{}};Is.style.top=0,Is.style.left=0,Is.style.width="100%",Is.style.height="100%",Is.style.position="absolute";var Ds=function(){},As=function(e){var t=[];return t.indexes=[],t.keyBuffer=new hs,Array.isArray(e)&&e.forEach((function(e,n){(function(e){return"header"!==e.type&&"divider"!==e.type&&!e.disabled})(e)&&(t.push({index:n,text:"".concat(e.label).toLowerCase()}),t.indexes.push(n))})),t};var Ls={top:"bottom","top left":"bottom left","top right":"bottom right",bottom:"top","bottom left":"top left","bottom right":"top right"},Bs={align:i.a.oneOf(["center","left","right"]),assistiveText:i.a.object,buttonClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),buttonInverse:i.a.bool,buttonVariant:i.a.oneOf(["base","neutral","brand","destructive","icon"]),checkmark:i.a.bool,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,hasStaticAlignment:i.a.bool,hint:i.a.bool,hoverCloseDelay:i.a.number,iconCategory:Pe()(i.a.oneOf(["action","custom","doctype","standard","utility"]),(function(e){return!!e.iconName})),iconName:i.a.string,iconPosition:i.a.oneOf(["left","right"]),iconVariant:i.a.oneOf(["bare","container","border","border-filled","small","more"]),iconSize:i.a.oneOf(["x-small","small","medium","large"]),id:i.a.string,inverse:i.a.bool,isOpen:i.a.bool,label:i.a.oneOfType([i.a.string,i.a.node]),listItemRenderer:i.a.func,length:i.a.oneOf([null,"5","7","10",5,7,10]),menuPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),menuStyle:i.a.object,nubbinPosition:i.a.oneOf(["top left","top","top right","bottom left","bottom","bottom right"]),onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,openOn:i.a.oneOf(["hover","click","hybrid"]),onKeyDown:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,onSelect:i.a.func,onOpen:i.a.func,onClose:i.a.func,options:i.a.array,style:i.a.object,tabIndex:i.a.string,overlay:i.a.oneOfType([i.a.bool,i.a.func]),value:i.a.oneOfType([i.a.number,i.a.string,i.a.array]),tooltip:i.a.node,tooltipMenuItem:i.a.node,triggerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),multiple:i.a.bool,width:i.a.oneOf(["xx-small","x-small","small","medium","bottom","large"])},Fs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Es(e,t)}(i,e);var t,n,r,a=Cs(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ps(Ns(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),Ps(Ns(t),"getIsOpen",(function(){return!!("boolean"==typeof t.props.isOpen?t.props.isOpen:t.state.isOpen)})),Ps(Ns(t),"getIndexByValue",(function(e,t){var n=-1;return t&&t.length&&t.some((function(t,r){return!(!t||t.value!==e)&&(n=r,!0)})),n})),Ps(Ns(t),"getValueByIndex",(function(e){return t.props.options[e]})),Ps(Ns(t),"getListItemRenderer",(function(){return t.props.listItemRenderer?t.props.listItemRenderer:Ni})),Ps(Ns(t),"getListItemId",(function(e){var n;if(void 0!==e){var r=Ar()(t.getId)?t.getId():t.props.id;n="".concat(r,"-item-").concat(e)}return n})),Ps(Ns(t),"setFocus",(function(){t.isHover||t.isUnmounting||!t.trigger||Tt.a.findDOMNode(t.trigger).focus()})),Ps(Ns(t),"getMenu",(function(){return Tt.a.findDOMNode(t.list)})),Ps(Ns(t),"getMenuItem",(function(e){if(void 0!==e&&t.listItems)return Tt.a.findDOMNode(t.listItems[e])})),Ps(Ns(t),"getCurrentSelectedIndices",(function(e){if(!0===t.props.multiple){var n=[];return Array.isArray(e.value)?n=e.value:n.push(e.value),{selectedIndices:(n=n.filter((function(n){return-1!==t.getIndexByValue(n,e.options)}))).map((function(n){return t.getIndexByValue(n,e.options)}))}}return{selectedIndex:t.getIndexByValue(e.value,e.options)}})),Ps(Ns(t),"saveRefToTrigger",(function(e){t.trigger=e,t.state.triggerRendered||t.setState({triggerRendered:!0}),e&&t.props.requestFocus&&t.props.onRequestFocus&&t.props.onRequestFocus(e)})),Ps(Ns(t),"saveRefToTriggerContainer",(function(e){t.triggerContainer=e,t.trigger||(t.trigger=e)})),Ps(Ns(t),"saveRefToList",(function(e){t.list=e})),Ps(Ns(t),"saveRefToListItem",(function(e,n){t.listItems||(t.listItems={}),t.listItems[n]=e,n===t.state.focusedIndex&&t.handleKeyboardFocus(t.state.focusedIndex)})),Ps(Ns(t),"handleClose",(function(){t.getIsOpen()&&(ks===Ns(t)&&(ks=void 0),t.setState({isOpen:!1}),t.isHover=!1,t.props.onClose&&t.props.onClose())})),Ps(Ns(t),"handleOpen",(function(){t.getIsOpen()||(ks&&Ar()(ks.handleClose)&&ks.handleClose(),ks=Ns(t),t.setState({isOpen:!0}),t.props.onOpen&&t.props.onOpen())})),Ps(Ns(t),"handleMouseEnter",(function(e){var n=t.getIsOpen();t.isHover=!0,n||"hover"!==t.props.openOn?clearTimeout(t.isClosing):t.handleOpenForHover(),t.props.onMouseEnter&&t.props.onMouseEnter(e)})),Ps(Ns(t),"handleMouseLeave",(function(e){t.getIsOpen()&&(t.isClosing=setTimeout((function(){t.handleCloseForHover()}),t.props.hoverCloseDelay)),t.props.onMouseLeave&&t.props.onMouseLeave(e)})),Ps(Ns(t),"handleCloseForHover",(function(){t.getIsOpen()&&t.handleClose()})),Ps(Ns(t),"handleOpenForHover",(function(){t.getIsOpen()||(t.handleOpen(),t.setFocus())})),Ps(Ns(t),"handleClick",(function(e){t.getIsOpen()?t.handleClose():(t.handleOpen(),t.setFocus()),t.props.onClick&&t.props.onClick(e)})),Ps(Ns(t),"handleFocus",(function(e){t.props.onFocus&&t.props.onFocus(e)})),Ps(Ns(t),"handleClickCustomContent",(function(){t.setFocus(),t.handleClose(),t.props.onSelect&&t.props.onSelect()})),Ps(Ns(t),"handleSelect",(function(e){if(t.props.multiple){if(t.props.multiple&&-1===t.state.selectedIndices.indexOf(e)){var n=t.state.selectedIndices.concat(e);t.setState({selectedIndices:n})}else if(t.props.multiple){var r=t.state.selectedIndices.indexOf(e),o=t.state.selectedIndices;o.splice(r,1),t.setState({selectedIndices:o})}}else t.setState({selectedIndex:e}),t.handleClose(),t.setFocus();if(t.props.onSelect){var a=t.getValueByIndex(e);t.props.onSelect(a,{option:a,optionIndex:e})}})),Ps(Ns(t),"handleKeyDown",(function(e){if(e.keyCode){if(e.keyCode===zt.TAB)t.handleCancel();else if(e.keyCode===zt.ENTER||e.keyCode===zt.SPACE||e.keyCode===zt.DOWN||e.keyCode===zt.UP||e.keyCode===zt.ESCAPE){St.trap(e);var n=t.getIsOpen();t.handleKeyboardNavigate({event:e,isOpen:n,key:e.key,keyCode:e.keyCode,onSelect:t.handleSelect,target:e.target,toggleOpen:t.toggleOpen})}t.props.onKeyDown&&t.props.onKeyDown(e)}})),Ps(Ns(t),"handleCancel",(function(){t.setFocus(),t.handleClose()})),Ps(Ns(t),"handleClickOutside",(function(){t.handleClose()})),Ps(Ns(t),"handleKeyboardNavigate",(function(e){var n=e.event,r=e.isOpen,o=void 0===r||r,a=e.keyCode,i=e.onFocus,s=void 0===i?t.handleKeyboardFocus:i,l=e.onSelect,c=e.target,u=e.toggleOpen,p=void 0===u?Ds:u;gs({componentContext:Ns(t),currentFocusedIndex:t.state.focusedIndex,event:n,isOpen:o,keyCode:a,navigableItems:t.navigableItems,onFocus:s,onSelect:l,target:c,toggleOpen:p})})),Ps(Ns(t),"handleKeyboardFocus",(function(e){t.state.focusedIndex!==e&&t.setState({focusedIndex:e});var n,r=Ar()(t.getMenu)?t.getMenu():(n=Ns(t),Tt.a.findDOMNode(n).querySelector("ul.dropdown__list")),o=Ar()(t.getMenuItem)?t.getMenuItem(e,r):function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e&&(t=n.getElementById(e)),t}(t.getListItemId(e));o&&(t.focusMenuItem(o),t.scrollToMenuItem(r,o))})),Ps(Ns(t),"focusMenuItem",(function(e){e.getElementsByTagName("a")[0].focus()})),Ps(Ns(t),"scrollToMenuItem",(function(e,t){if(e&&t){var n=e.offsetHeight,r=e.scrollTop,o=t.offsetTop-e.offsetTop;if(o<r)e.scrollTop=o;else{var a=r+n+e.offsetTop,i=o+t.offsetHeight+e.offsetTop;i>a&&(e.scrollTop=i-n-e.offsetTop)}}})),Ps(Ns(t),"toggleOpen",(function(){var e=t.getIsOpen();t.setFocus(),e?t.handleClose():t.handleOpen()})),Ps(Ns(t),"renderDefaultMenuContent",(function(e){return o.a.createElement($i,ws({key:"".concat(t.getId(),"-dropdown-list"),checkmark:t.props.checkmark,getListItemId:t.getListItemId,itemRefs:t.saveRefToListItem,itemRenderer:t.getListItemRenderer(),onCancel:t.handleCancel,onSelect:t.handleSelect,options:t.props.options,ref:t.saveRefToList,selectedIndex:t.props.multiple?void 0:t.state.selectedIndex,selectedIndices:t.props.multiple?t.state.selectedIndices:void 0,tooltipMenuItem:t.props.tooltipMenuItem,triggerId:t.getId(),length:t.props.length},e))})),Ps(Ns(t),"renderMenuContent",(function(e){var n=[];return o.a.Children.forEach(e,(function(e){if(e&&e.type.displayName===ee)n.push(t.renderDefaultMenuContent(e.props));else if(e){var r=o.a.cloneElement(e,{onClick:t.handleClickCustomContent,key:u.a.generate()});n.push(r)}})),0===n.length&&(n=null),n||t.renderDefaultMenuContent()})),Ps(Ns(t),"renderDialog",(function(e,n,r){var a,i="bottom",s=!1;t.props.nubbinPosition?(s=!0,i=Ls[t.props.nubbinPosition]):t.props.align&&(i="center"===t.props.align?"bottom":"bottom ".concat(t.props.align));var c=Ls[i].split(" ");a=l()(c.map((function(e){return"slds-dropdown_".concat(e)})));var u=t.props.isInline?"relative":t.props.menuPosition,p={};return"center"!==t.props.align||s||(p.transform="none"),n?o.a.createElement(bn,{align:i,className:l()(t.props.containerClassName),closeOnTabKey:!0,contentsClassName:l()("slds-dropdown","slds-dropdown_".concat(t.props.width),"slds-text-align_left","ignore-react-onclickoutside",t.props.className,a,{"slds-dropdown_inverse":t.props.inverse}),context:t.context,hasNubbin:s,hasStaticAlignment:t.props.hasStaticAlignment,inheritWidthOf:t.props.inheritTargetWidth?"target":"none",offset:t.props.offset,onClose:t.handleClose,onKeyDown:t.handleKeyDown,outsideClickIgnoreClass:r,position:u,style:xs(xs({},p),t.props.menuStyle),onRequestTargetElement:function(){return t.trigger}},t.renderMenuContent(e)):null})),Ps(Ns(t),"renderOverlay",(function(e){Ar()(Is)&&Rs?Is(e,Is):t.props.overlay&&e&&!t.overlay&&Rs?(t.overlay=Is,document.querySelector("body").appendChild(t.overlay)):!e&&t.overlay&&t.overlay.parentNode&&(t.overlay.parentNode.removeChild(t.overlay),t.overlay=void 0)})),fs(ne,e,ds),t.generatedId=u.a.generate();var n=t.getCurrentSelectedIndices(e);return t.state=xs({focusedIndex:-1,selectedIndex:-1,selectedIndices:[]},n),t.navigableItems=As(e.options),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){if(e.value!==this.props.value){var t=this.getCurrentSelectedIndices(this.props);this.setState(t)}e.isOpen!==this.props.isOpen&&this.setFocus(),jt()(e.options,this.props.options)||(this.navigableItems=As(this.props.options))}},{key:"componentWillUnmount",value:function(){ks===this&&(ks=void 0),this.isUnmounting=!0,this.renderOverlay(!1)}},{key:"render",value:function(){var e=ps,t={},n=[];o.a.Children.forEach(this.props.children,(function(r){r&&r.type.displayName===re?(t=r.props,e=r.type):r&&n.push(r)})),0===n.length&&(n=null);var r="ignore-click-".concat(this.getId()),a=!this.props.disabled&&this.getIsOpen()&&!!this.trigger;return this.renderOverlay(a),o.a.createElement(e,ws({"aria-haspopup":!0,assistiveText:this.props.assistiveText,className:l()(r,this.props.buttonClassName),disabled:this.props.disabled,hint:this.props.hint,iconCategory:this.props.iconCategory,iconName:this.props.iconName,iconPosition:this.props.iconPosition,iconSize:this.props.iconSize,iconVariant:this.props.iconVariant,id:this.getId(),inverse:this.props.buttonInverse,isOpen:a,label:this.props.label,menu:this.renderDialog(n,a,r),onBlur:this.props.onBlur,onClick:"click"===this.props.openOn||"hybrid"===this.props.openOn?this.handleClick:this.props.onClick,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onMouseDown:this.props.onMouseDown,onMouseEnter:"hover"===this.props.openOn||"hybrid"===this.props.openOn?this.handleMouseEnter:null,onMouseLeave:"hover"===this.props.openOn||"hybrid"===this.props.openOn?this.handleMouseLeave:null,openOn:this.props.openOn,ref:this.saveRefToTriggerContainer,style:this.props.style,tabIndex:this.props.tabIndex||(a?"-1":"0"),tooltip:this.props.tooltip,triggerClassName:this.props.triggerClassName,triggerRef:this.saveRefToTrigger,variant:this.props.buttonVariant},t))}}])&&Ss(t.prototype,n),r&&Ss(t,r),i}(o.a.Component);Ps(Fs,"displayName",ne),Fs.contextType=pt,Fs.propTypes=Bs,Fs.defaultProps={align:"left",hoverCloseDelay:300,length:"5",menuPosition:"absolute",openOn:"click",width:"medium",inverse:!1};var Ms=Fs,Hs=Ci(Ms);function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach((function(t){Ws(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ws(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vs={assistiveText:i.a.shape({label:i.a.string}),id:i.a.string,overflowDropdownMenu:i.a.node,styleContainer:i.a.object,trail:i.a.array.isRequired},zs={assistiveText:{label:"Breadcrumbs"}},Us=function(e){bi(y,e,yi);var t=e.overflowDropdownMenu,n=e.trail,r="string"==typeof e.assistiveText?e.assistiveText:Ks(Ks({},zs.assistiveText),e.assistiveText).label;return o.a.createElement("nav",{role:"navigation","aria-label":r,style:e.styleContainer},o.a.createElement("ol",{className:"slds-breadcrumb slds-list_horizontal"},t&&function(e,t){var n=Ks(Ks({},e.props),{},{id:"".concat(t.id,"-dropdown"),iconCategory:"utility",iconName:"threedots",iconVariant:"bare",threedots:!0});return o.a.createElement("li",{className:"slds-breadcrumb__item"},o.a.createElement(Hs,n))}(t,e),n.map((function(e,t){return o.a.createElement("li",{key:t,className:"slds-breadcrumb__item"},e)}))))};Us.displayName=y,Us.propTypes=Vs,Us.defaultProps=zs;var Gs=Us,Ys={children:i.a.node},Xs=function(e){return o.a.createElement("div",{className:"slds-builder-header__item slds-builder-header__utilities"},o.a.Children.map(e.children,(function(e){return e.type.displayName===x||e.type.displayName===_?o.a.createElement("div",{className:"slds-builder-header__utilities-item"},e):null})))};Xs.displayName=g,Xs.propTypes=Ys;var Qs=Xs;function Js(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Js(Object(n),!0).forEach((function(t){$s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Js(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var el={assistiveText:i.a.shape({icon:i.a.string}),iconCategory:i.a.oneOf(["action","custom","doctype","standard","utility"]),iconName:i.a.string,iconPath:i.a.string,label:i.a.string,onClick:i.a.func},tl={},nl=function(e){var t=Zs(Zs({},tl),e.assistiveText);return o.a.createElement("a",{className:"slds-builder-header__item-action slds-media slds-media_center",href:"#",onClick:St.trappedHandler(e.onClick)},o.a.createElement("span",{className:"slds-media__figure"},o.a.createElement(jn,{assistiveText:{label:t.icon},category:e.iconCategory,containerClassName:"slds-icon_container slds-icon-utility-settings slds-current-color",name:e.iconName,path:e.iconPath,size:"x-small"})),o.a.createElement("span",{className:"slds-media__body"},o.a.createElement("span",{className:"slds-truncate",title:e.label},e.label)))};nl.displayName=x,nl.propTypes=el;var rl=nl;function ol(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ol(Object(n),!0).forEach((function(t){il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ol(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function il(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sl={assistiveText:i.a.shape({backIcon:i.a.string,helpIcon:i.a.string,icon:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onClickBack:i.a.func,onClickHelp:i.a.func}),iconCategory:i.a.string,iconClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),iconName:i.a.string,iconPath:i.a.string,labels:i.a.shape({back:i.a.string,help:i.a.string,pageType:i.a.string,title:i.a.string}),style:i.a.object},ll={assistiveText:{backIcon:"Back",helpIcon:"Help",icon:"Builder"},iconCategory:"utility",iconName:"builder",labels:{back:"Back",help:"Help",pageType:"Page Type",title:"App Name"}},cl=function(e){var t,n,r,a,i,s=al(al({},ll.assistiveText),e.assistiveText),c=al(al({},{}),e.events),u=al(al({},ll.labels),e.labels),p=o.a.createElement(Qs,null,o.a.createElement(rl,{assistiveText:{icon:s.backIcon},iconCategory:"utility",iconName:"back",label:u.back,onClick:St.trappedHandler(c.onClickBack)}),o.a.createElement(rl,{assistiveText:{icon:s.helpIcon},iconCategory:"utility",iconName:"help",label:u.help,onClick:St.trappedHandler(c.onClickHelp)})),f=[];return o.a.Children.forEach(e.children,(function(e){if(e)switch(e.type.displayName){case O:t=e;break;case w:n=e;break;case v:f.push(e);break;case g:p=e}})),e.iconPath?i=e.iconPath:(r=e.iconCategory,a=e.iconName),o.a.createElement("div",{style:{position:"relative",height:"100px"}},o.a.createElement("div",{className:l()("slds-builder-header_container",e.className),style:e.style},o.a.createElement("header",{className:"slds-builder-header"},o.a.createElement("div",{className:"slds-builder-header__item"},o.a.createElement("div",{className:"slds-builder-header__item-label slds-media slds-media_center"},o.a.createElement("div",{className:"slds-media__figure"},o.a.createElement(jn,{assistiveText:{label:s.icon},category:r,containerClassName:l()("slds-icon_container","slds-icon-utility-builder","slds-current-color",e.iconClassName),name:a,path:i,size:"x-small"})),o.a.createElement("div",{className:"slds-media__body"},u.title))),t,f.length>0?f:o.a.createElement("div",{className:"slds-builder-header__item slds-has-flexi-truncate"},o.a.createElement("h1",{className:"slds-builder-header__item-label"},o.a.createElement("span",{className:"slds-truncate",title:u.pageType},u.pageType))),p),n))};cl.displayName="SLDSBuilderHeader",cl.propTypes=sl,cl.defaultProps=ll;var ul=cl,pl={children:i.a.node},fl=function(e){return o.a.createElement("div",{className:"slds-builder-header__item",style:{width:"100%"}},o.a.createElement("div",{className:"slds-builder-header__item-label"},e.children))};fl.displayName=v,fl.propTypes=pl;var dl=fl,hl={children:i.a.node},ml=function(e){return o.a.createElement("nav",{className:"slds-builder-header__item slds-builder-header__nav"},o.a.createElement("ul",{className:"slds-builder-header__nav-list"},o.a.Children.map(e.children,(function(e){return e.type.displayName===x||e.type.displayName===_?o.a.createElement("li",{className:"slds-builder-header__nav-item"},e):null}))))};ml.displayName=O,ml.propTypes=hl;var bl=ml;function yl(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vl=Ms.propTypes,gl=function(e){var t=e.iconCategory,n=e.iconName,r=e.label,a=e.assistiveText,i=yl(e,["iconCategory","iconName","label","assistiveText"]);return o.a.createElement(Hs,i,o.a.createElement(ps,null,o.a.createElement(ar,{className:"slds-builder-header__item-action slds-media slds-media_center",variant:"base"},o.a.createElement("span",{className:"slds-media__figure"},o.a.createElement(jn,{assistiveText:{label:a&&a.icon},category:t,containerClassName:"slds-icon_container slds-icon-utility-page slds-current-color",name:n,size:"x-small"})),o.a.createElement("span",{className:"slds-media__body"},o.a.createElement("span",{className:"slds-truncate",title:r},r),o.a.createElement(jn,{category:"utility",containerClassName:"slds-icon_container slds-icon-utility-chevrondown slds-current-color slds-m-left_small",name:"chevrondown",size:"x-small"})))))};gl.displayName=_,gl.propTypes=vl;var Ol=gl;function _l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_l(Object(n),!0).forEach((function(t){wl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Sl={assistiveText:i.a.shape({actions:i.a.string}),children:i.a.node,onRenderActions:i.a.func},El={assistiveText:{actions:"Actions"}},Cl=function(e){var t=xl(xl({},El.assistiveText),e.assistiveText);return o.a.createElement("div",{className:"slds-builder-toolbar",role:"toolbar"},o.a.Children.map(e.children,(function(e){return e.type.displayName===E?o.a.createElement("div",{className:"slds-builder-toolbar__item-group","aria-label":e.props.label},e):null})),o.a.createElement("div",{className:"slds-builder-toolbar__actions","aria-label":t.actions},e.onRenderActions&&e.onRenderActions()))};Cl.displayName=w,Cl.propTypes=Sl,Cl.defaultProps=El;var jl=Cl;function Nl(e){return(Nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pl(e,t){return(Pl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Il(e);if(t){var o=Il(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rl(this,n)}}function Rl(e,t){return!t||"object"!==Nl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Il(e){return(Il=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dl={children:i.a.node.isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameContainer:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,labels:i.a.shape({error:i.a.string,label:i.a.string}),variant:i.a.oneOf(["checkbox","list"])},Al={labels:{}},Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Pl(e,t)}(i,e);var t,n,r,a=kl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e,t=this,n=ur()({},Al.labels,this.props.labels),r=o.a.Children.count(this.props.children)-1,a=this.props.children;return r>0&&(a=o.a.Children.map(this.props.children,(function(e,t){var n;return t===r&&(n=o.a.cloneElement(e,{triggerClassName:"slds-button_last"})),n||e}))),"checkbox"===this.props.variant?(a=o.a.Children.map(this.props.children,(function(e){var r={variant:"button-group"};return n.error&&(r["aria-describedby"]="button-group-error-".concat(t.getId())),o.a.cloneElement(e,r)})),e=o.a.createElement("div",{className:l()("slds-checkbox_button-group",this.props.className),id:this.getId()},a)):e="list"===this.props.variant?o.a.createElement("ul",{className:l()("slds-button-group-list",this.props.className),id:this.getId()},o.a.Children.map(this.props.children,(function(e){return o.a.createElement("li",null,e)}))):o.a.createElement("div",{className:l()("slds-button-group",this.props.className),id:this.getId(),role:"group"},a),("checkbox"===this.props.variant||this.props.labels.label)&&(e=o.a.createElement("fieldset",{className:l()("slds-form-element",{"slds-has-error":n.error},this.props.classNameContainer)},o.a.createElement("legend",{className:"slds-form-element__legend slds-form-element__label"},this.props.labels.label),o.a.createElement("div",{className:"slds-form-element__control"},e,n.error?o.a.createElement("div",{className:"slds-form-element__help",id:"button-group-error-".concat(this.getId())},n.error):null))),e}}])&&Tl(t.prototype,n),r&&Tl(t,r),i}(o.a.Component);Ll.displayName=E,Ll.propTypes=Dl,Ll.defaultProps=Al;var Bl=Ll;var Fl=function(){},Ml=n(39);function Hl(e){return(Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ql(){return(ql=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kl(Object(n),!0).forEach((function(t){Ql(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zl(e,t){return(zl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ul(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xl(e);if(t){var o=Xl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gl(this,n)}}function Gl(e,t){return!t||"object"!==Hl(t)&&"function"!=typeof t?Yl(e):t}function Yl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xl(e){return(Xl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ql(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jl={active:i.a.bool,assistiveText:i.a.shape({icon:i.a.string}),disabled:i.a.bool,icon:i.a.node,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,responsive:i.a.bool,stateOne:i.a.object,stateTwo:i.a.object,stateThree:i.a.object,tabIndex:i.a.string,variant:i.a.oneOf(["base","neutral","brand","destructive","icon","icon-filled"])},Zl={assistiveText:{icon:""},disabled:!1,iconSize:"medium",responsive:!1,stateOne:{iconName:"add",label:"Follow"},stateTwo:{iconName:"check",label:"Following"},stateThree:{iconName:"close",label:"Unfollow"}},$l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zl(e,t)}(i,e);var t,n,r,a=Ul(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ql(Yl(t=a.call(this,e)),"handleBlur",(function(e){t.props.onBlur&&t.props.onBlur(e),e.currentTarget.blur()})),Ql(Yl(t),"handleClick",(function(e){Ar()(t.props.onClick)&&t.props.onClick(e),"boolean"!=typeof t.props.active&&t.setState((function(e){return{active:!e.active}}))})),t.state={active:!1},Fl(C,e,Ml),t}return t=i,(n=[{key:"getClassName",value:function(e){return l()(this.props.className,"slds-button",{"slds-button_neutral":"icon"!==this.props.variant&&"icon-filled"!==this.props.variant,"slds-button_inverse":"inverse"===this.props.variant,"slds-not-selected":!e,"slds-is-selected":e,"slds-max-small-button_stretch":this.props.responsive,"slds-button_icon-border":"icon"===this.props.variant,"slds-button_icon-border-filled":"icon-filled"===this.props.variant})}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.disabled,r=e.icon,a=e.iconName,i=e.iconSize,s=e.id,l=e.onFocus,c=e.onKeyDown,u=e.onKeyPress,p=e.onKeyUp,f=e.onMouseDown,d=e.onMouseEnter,h=e.stateOne,m=e.stateTwo,b=e.stateThree,y=e.tabIndex,v=e.variant,g={disabled:n,size:"small",className:"slds-button__icon_stateful"},O="string"==typeof this.props.assistiveText?this.props.assistiveText:Wl(Wl({},Zl.assistiveText),this.props.assistiveText).icon,_="boolean"==typeof t?t:this.state.active,x=Wn(this.props);return"icon"===v||"icon-filled"===v?(0===Object.keys(x).length&&(x={"aria-live":"polite"}),o.a.createElement("button",ql({},x,{className:this.getClassName(_),disabled:n,id:s,onBlur:this.handleBlur,onClick:this.handleClick,onFocus:l,onKeyDown:c,onKeyPress:u,onKeyUp:p,onMouseDown:f,onMouseEnter:d,onMouseLeave:this.handleBlur,tabIndex:y,type:"button"}),r?o.a.cloneElement(r,Wl(Wl({},g),r.props)):o.a.createElement(Ot,{disabled:n,name:a,size:i,className:"slds-button__icon_stateful"}),O?o.a.createElement("span",{className:"slds-assistive-text"},O):null)):(g.position="left",0===Object.keys(x).length&&(x={"aria-live":"assertive"}),o.a.createElement("button",ql({},x,{className:this.getClassName(_),disabled:n,id:s,onBlur:this.handleBlur,onClick:this.handleClick,onFocus:l,onKeyDown:c,onKeyPress:u,onKeyUp:p,onMouseEnter:d,onMouseLeave:this.handleBlur,tabIndex:y,type:"button"}),o.a.createElement("span",{className:"slds-text-not-selected"},h.icon?o.a.cloneElement(h.icon,Wl(Wl(Wl({},g),h.icon.props),{},{size:"small"})):o.a.createElement(Ot,{disabled:n,name:h.iconName,size:"small",position:"left",className:"slds-button__icon_stateful"}),h.label),o.a.createElement("span",{className:"slds-text-selected"},m.icon?o.a.cloneElement(m.icon,Wl(Wl(Wl({},g),m.icon.props),{},{size:"small"})):o.a.createElement(Ot,{disabled:n,name:m.iconName,size:"small",position:"left",className:"slds-button__icon_stateful"}),m.label),o.a.createElement("span",{className:"slds-text-selected-focus"},b.icon?o.a.cloneElement(b.icon,Wl(Wl(Wl({},g),b.icon.props),{},{size:"small"})):o.a.createElement(Ot,{disabled:n,name:b.iconName,size:"small",position:"left",className:"slds-button__icon_stateful"}),b.label)))}}])&&Vl(t.prototype,n),r&&Vl(t,r),i}(o.a.Component);$l.displayName=C,$l.propTypes=Jl,$l.defaultProps=Zl;var ec=$l;function tc(e){return(tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oc(e,t){return(oc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ac(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sc(e);if(t){var o=sc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ic(this,n)}}function ic(e,t){return!t||"object"!==tc(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sc(e){return(sc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cc="slds-media",uc="slds-media__figure",pc="slds-media__body",fc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oc(e,t)}(i,e);var t,n,r,a=ac(i);function i(){return nc(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("div",{className:l()(cc,{"slds-media_center":this.props.verticalCenter,"slds-has-flexi-truncate":this.props.canTruncate},this.props.className)},this.props.figure?o.a.createElement("div",{className:uc},this.props.figure," "):null,o.a.createElement("div",{className:pc},this.props.body))}}])&&rc(t.prototype,n),r&&rc(t,r),i}(o.a.Component);lc(fc,"displayName","SLDSMediaObject"),lc(fc,"propTypes",{canTruncate:i.a.bool,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),body:i.a.node,figure:i.a.node,verticalCenter:i.a.bool});var dc=fc;function hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bc=function(e,t){var n=o.a.cloneElement(e,{id:e.props.id||t});return o.a.createElement("div",{className:"slds-input-has-icon slds-input-has-icon_left slds-size_1-of-3"},n)};bc.displayName="renderFilter";var yc=function(e){var t=null;("string"==typeof e.heading||e.heading instanceof String)&&(t=e.heading);var n,r=o.a.createElement("h2",{id:e.headingId,className:"slds-text-heading_small slds-truncate",title:t},e.heading);n=e.header?o.a.cloneElement(e.header,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hc(Object(n),!0).forEach((function(t){mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({figure:e.icon,body:r,verticalCenter:!0,canTruncate:!0},e.header.props)):o.a.createElement(dc,{figure:e.icon,body:r,verticalCenter:!0,canTruncate:!0});var a=!!e.filter||null;return o.a.createElement("div",{className:l()("slds-card__header","slds-grid")},n,e.filter?bc(e.filter,e.filterId):null,o.a.createElement("div",{id:e.headerActionsId,className:l()("slds-no-flex",{"slds-size_1-of-3":a,"slds-text-align_right":a})},e.headerActions))};yc.displayName="SLDSCardHeader",yc.propTypes={filter:i.a.node,filterId:i.a.string,header:i.a.node,headerActions:i.a.node,headerActionsId:i.a.string,heading:i.a.oneOfType([i.a.element,i.a.string]).isRequired,headingId:i.a.string,icon:i.a.node};var vc=yc,gc=function(e){return o.a.createElement("div",{className:l()("slds-card__body",e.className),id:e.id},e.children)};gc.displayName="SLDSCardBody",gc.propTypes={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string};var Oc=gc,_c=function(e){return o.a.createElement("div",{className:"slds-card__footer"},e.children)};_c.displayName="SLDSCardFooter",_c.propTypes={children:i.a.node};var xc=_c,wc=function(e){return o.a.createElement("div",{className:"slds-p-horizontal_small"},o.a.createElement("div",{className:"slds-text-align_center slds-m-bottom_x-large"},o.a.createElement("h3",{className:"slds-text-heading_small slds-p-top_large slds-p-bottom_large"},e.heading),e.children))};wc.displayName="SLDSCardEmpty",wc.propTypes={children:i.a.node,heading:i.a.string},wc.defaultProps={heading:"No Related Items"};var Sc=wc,Ec="__body",Cc="__header-actions",jc="__heading",Nc="__filter-input",Tc=function(e){var t=e.id?e.id+Ec:null,n=e.id?e.id+Nc:null,r=e.id?e.id+jc:null,a=e.id?e.id+Cc:null,i=e.empty;return!0===i&&(i=o.a.createElement(Sc,{id:e.id,heading:e.heading})),o.a.createElement("article",{id:e.id,className:l()("slds-card",e.className),style:e.style},!e.hasNoHeader&&o.a.createElement(vc,{header:e.header,headingId:r,icon:e.icon,filter:e.filter,filterId:n,heading:e.heading,headerActions:e.headerActions,headerActionsId:a}),i?o.a.createElement(Oc,{id:t,className:e.bodyClassName},i):o.a.createElement(Oc,{id:t,className:e.bodyClassName},e.children),e.footer?o.a.createElement(xc,null,e.footer):null)};Tc.displayName="SLDSCard",Tc.defaultProps={heading:"Related Items"},Tc.propTypes={bodyClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),empty:i.a.oneOfType([i.a.bool,i.a.node]),filter:i.a.node,footer:i.a.node,hasNoHeader:i.a.bool,header:i.a.node,heading:i.a.oneOfType([i.a.node,i.a.string]).isRequired,headerActions:i.a.node,icon:i.a.node,id:i.a.string,style:i.a.object};var Pc=Tc;function kc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rc(){return(Rc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ic(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Dc=function(e){var t=e.category,n=e.iconPosition,r=e.name,a=e.path,i=e.onClick,s=e.variant,c=Ic(e,["category","iconPosition","name","path","onClick","variant"]),u={combobox:o.a.createElement("span",{className:"slds-icon_container slds-input__icon slds-input__icon_right"},o.a.createElement(bt,Rc({"aria-hidden":!0,category:t,className:l()("slds-icon slds-icon_x-small slds-icon-text-default"),name:r,path:a},c))),base:o.a.createElement(bt,Rc({"aria-hidden":!0,category:t,className:l()("slds-input__icon slds-icon-text-default",kc({},"slds-input__icon_".concat(n),n)),name:r,path:a},c))};return Ar()(i)?o.a.createElement(ar,Rc({className:l()("slds-input__icon",kc({},"slds-input__icon_".concat(n),n)),iconCategory:t,iconName:r,iconPath:a,onClick:i,variant:"icon"},c)):u[s]};Dc.displayName="SLDSIconInput",Dc.propTypes={category:i.a.string,iconPosition:i.a.oneOf(["left","right"]),name:i.a.string,path:i.a.string,onClick:i.a.func,variant:i.a.oneOf(["base","combobox"])},Dc.defaultProps={category:"utility",variant:"base"};var Ac=Dc;var Lc=function(){},Bc=n(40);function Fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach((function(t){Hc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qc={assistiveText:i.a.shape({label:i.a.string}),containerClassName:i.a.string,containerStyle:i.a.object,hasContainer:i.a.bool,id:i.a.string,isDelayed:i.a.bool,isInput:i.a.bool,isInline:i.a.bool,size:i.a.oneOf(["xx-small","x-small","small","medium","large"]),variant:i.a.oneOf(["base","brand","inverse"])},Kc={assistiveText:{label:"Loading..."},isDelayed:!1,isInline:!1,isInput:!1,hasContainer:!0,size:"medium",variant:"base"},Wc=function(e){Lc(he,e,Bc);var t=e.containerClassName,n=e.containerStyle,r=e.id,a=e.isDelayed,i=e.isInline,s=e.isInput,c=e.hasContainer,u=e.size,p=e.variant,f="string"==typeof e.assistiveText?e.assistiveText:Mc(Mc({},Kc.assistiveText),e.assistiveText).label,d=l()("slds-spinner",Hc({"slds-spinner_inline":i,"slds-input__spinner":s,"slds-spinner_brand":"brand"===p,"slds-spinner_inverse":"inverse"===p,"slds-spinner_delayed":a},"slds-spinner_".concat(u),u)),h=o.a.createElement("div",{"aria-hidden":"false",className:d,id:r,role:"status"},f&&o.a.createElement("span",{className:"slds-assistive-text"},f),o.a.createElement("div",{className:"slds-spinner__dot-a"}),o.a.createElement("div",{className:"slds-spinner__dot-b"}));return c?o.a.createElement("div",{className:l()(t,"slds-spinner_container"),style:n},h):h};Wc.displayName=he,Wc.propTypes=qc,Wc.defaultProps=Kc;var Vc=Wc;function zc(){return(zc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Uc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Uc(Object(n),!0).forEach((function(t){Yc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Qc="counter",Jc={"aria-activedescendant":i.a.string,"aria-autocomplete":i.a.string,"aria-controls":i.a.string,"aria-describedby":i.a.string,"aria-expanded":i.a.bool,"aria-haspopup":i.a.oneOfType([i.a.bool,i.a.string]),"aria-labelledby":i.a.string,"aria-owns":i.a.string,"aria-required":i.a.bool,assistiveText:i.a.shape({spinner:i.a.string}),autoComplete:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),containerProps:i.a.object,disabled:i.a.bool,fixedTextLeft:i.a.oneOfType([i.a.node,i.a.string]),fixedTextRight:i.a.oneOfType([i.a.node,i.a.string]),hasSpinner:i.a.bool,iconLeft:i.a.node,iconRight:i.a.node,id:i.a.string.isRequired,inputRef:i.a.func,isStatic:i.a.bool,label:i.a.string,onBlur:i.a.func,onChange:i.a.func,onClick:i.a.func,onFocus:i.a.func,onInput:i.a.func,onInvalid:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onSelect:i.a.func,onSubmit:i.a.func,placeholder:i.a.string,minLength:i.a.string,minValue:i.a.number,maxLength:i.a.string,maxValue:i.a.number,name:i.a.string,readOnly:i.a.bool,required:i.a.bool,role:i.a.string,step:i.a.number,style:i.a.object,tabIndex:i.a.string,type:i.a.oneOf(["text","password","datetime","datetime-local","date","month","time","week","number","email","url","search","tel","color"]),value:i.a.oneOfType([i.a.number,i.a.string]),variant:i.a.oneOf(["base",Qc]),defaultValue:i.a.oneOfType([i.a.number,i.a.string])},Zc={assistiveText:{spinner:"Loading ..."},type:"text"},$c=function(e){var t=Wn(e);t["aria-describedby"]=e.hasSpinner?"loading-status-icon ".concat(e["aria-describedby"]):e["aria-describedby"];var n=e.containerProps,r=n.className,a=Xc(n,["className"]),i=Gc(Gc({},Zc.assistiveText),e.assistiveText);return o.a.createElement("div",zc({className:l()(r,{"slds-input-has-icon":e.variant!==Qc&&(e.iconLeft||e.iconRight),"slds-input-has-icon_left":e.iconLeft&&!e.iconRight,"slds-input-has-icon_right":!e.iconLeft&&e.iconRight,"slds-input-has-icon_left-right":e.variant!==Qc&&e.iconLeft&&e.iconRight,"slds-input-has-fixed-addon":e.fixedTextLeft||e.fixedTextRight,"slds-has-divider_bottom":e.isStatic})},a),e.iconLeft&&e.iconLeft,e.fixedTextLeft&&o.a.createElement("span",{className:"slds-form-element__addon"},e.fixedTextLeft),!e.isStatic&&o.a.createElement("input",zc({autoComplete:e.autoComplete,className:l()("slds-input",{"slds-text-align_left":e.variant===Qc&&e.readOnly},e.className),disabled:e.disabled,id:e.id,min:e.minValue,minLength:e.minLength,max:e.maxValue,maxLength:e.maxLength,name:e.name,onBlur:e.onBlur,onChange:e.onChange,onClick:e.onClick,onFocus:e.onFocus,onInput:e.onInput,onInvalid:e.onInvalid,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,onSelect:e.onSelect,onSubmit:e.onSubmit,placeholder:e.placeholder,readOnly:e.readOnly,ref:e.inputRef,required:e.required,role:e.role,step:e.step,style:e.style,tabIndex:e.tabIndex,type:e.type},t,void 0!==e.value?{value:e.value}:{defaultValue:e.defaultValue})),e.hasSpinner?o.a.createElement("div",{className:"slds-input__icon-group slds-input__icon-group_right"},o.a.createElement(Vc,{assistiveText:{label:i.spinner},id:"loading-status-icon",isInput:!0,size:"x-small",variant:"brand"}),e.iconRight&&e.iconRight):e.iconRight&&e.iconRight,e.fixedTextRight&&o.a.createElement("span",{className:"slds-form-element__addon"},e.fixedTextRight),e.isStatic&&o.a.createElement("span",{className:l()("slds-form-element__static","slds-grid",{"slds-grid_align-spread":e.variant!==Qc}),onClick:e.onClick},e.value,e.inlineEditTrigger))};$c.displayName="SLDSInnerInput",$c.propTypes=Jc,$c.defaultProps=Zc;var eu=$c,tu={assistiveText:i.a.object,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),htmlFor:i.a.string,label:i.a.string,required:i.a.bool,variant:i.a.oneOf(["base","static"])},nu=function(e){var t=e.label||e.assistiveText&&e.assistiveText.label,n={base:o.a.createElement("label",{className:l()("slds-form-element__label",{"slds-assistive-text":e.assistiveText&&!e.label},e.className),htmlFor:e.htmlFor},e.required&&o.a.createElement("abbr",{className:"slds-required",title:"required"},"*"),t),static:o.a.createElement("span",{className:l()("slds-form-element__label",e.className)},t)};return t?n[e.variant]:null};nu.displayName="Label",nu.propTypes=tu,nu.defaultProps={variant:"base"};var ru=nu;var ou=function(){},au=n(21),iu={removeUndefined:function(e){var t={};return Object.keys(e).forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),t}};function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?su(Object(n),!0).forEach((function(t){cu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):su(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uu={assistiveText:i.a.shape({triggerLearnMoreIcon:i.a.string}),fieldLevelHelpTooltip:i.a.node.isRequired},pu={triggerClassName:"slds-form-element__icon",triggerStyle:{position:"static"},variant:"learnMore"},fu=function(e){var t=e.fieldLevelHelpTooltip,n=e.assistiveText,r=void 0===n?{}:n;return t?o.a.createElement(Kn,lu(lu(lu({},pu),t.props),{},{assistiveText:lu(lu({},t.props.assistiveText),iu.removeUndefined(r))})):null};fu.propTypes=uu,fu.displayName="FieldLevelHelpTooltip";var du=fu;function hu(e){return(hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mu(Object(n),!0).forEach((function(t){Su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yu(){return(yu=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gu(e,t){return(gu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ou(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wu(e);if(t){var o=wu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _u(this,n)}}function _u(e,t){return!t||"object"!==hu(t)&&"function"!=typeof t?xu(e):t}function xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Eu="counter",Cu="Decrement",ju="Increment",Nu={assistiveText:{decrement:"".concat(Cu," ").concat(Eu),increment:"".concat(ju," ").concat(Eu)},type:"text"},Tu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gu(e,t)}(i,e);var t,n,r,a=Ou(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Su(xu(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),Su(xu(t),"getErrorId",(function(){return t.props["aria-describedby"]||t.generatedErrorId})),Su(xu(t),"getValueAsNumber",(function(){var e=0;return void 0!==t.props.value?e=Number(t.props.value):t.inputRef&&(e=Number(t.inputRef.value)),e})),Su(xu(t),"getCounterButtonIcon",(function(e){var n=t.getValueAsNumber(),r=!1;return(t.props.disabled||e===ju&&void 0!==t.props.maxValue&&n>=t.props.maxValue||e===Cu&&void 0!==t.props.minValue&&n<=t.props.minValue)&&(r=!0),o.a.createElement(ar,{assistiveText:{icon:t.props.assistiveText[e.toLowerCase()]},className:l()("slds-button_icon-small","slds-input__button_".concat(e.toLowerCase())),disabled:r,iconCategory:"utility",iconName:e===Cu?"ban":"new",onKeyDown:function(n){13===n.keyCode&&t.performStep(e,n)},onKeyUp:t.stopStepping,onMouseDown:function(n){t.performStep(e,n)},onMouseLeave:t.stopStepping,onMouseUp:t.stopStepping,variant:"icon"})})),Su(xu(t),"getIconRender",(function(e,n){var r,a={assistiveText:{icon:t.props[n]&&t.props[n].props.assistiveText||t.props.iconAssistiveText},category:t.props[n]&&t.props[n].props.category||t.props.iconCategory,name:t.props[n]&&t.props[n].props.name||t.props.iconName,onClick:t.props[n]&&t.props[n].props.onClick||t.props.onIconClick};return t.props[n]&&e&&t.props[n]?r=o.a.cloneElement(t.props[n],{iconPosition:"".concat(e)}):a.name&&(r=o.a.createElement(Ac,yu({iconPosition:e},a))),r})),Su(xu(t),"setInputRef",(function(e){t.inputRef=e,t.props.inputRef&&t.props.inputRef(e)})),Su(xu(t),"handleChange",(function(e){if(t.props.onChange){var n={value:e.target.value};t.props.variant===Eu&&(n.number=Number(n.value)),t.props.onChange(e,n)}})),Su(xu(t),"performStep",(function(e,n){clearTimeout(t.stepping.timeout);var r=t.props.maxValue,o=t.props.minValue,a=void 0!==t.props.step?Number(t.props.step):1,i=t.getValueAsNumber(),s=!1;if(e===Cu&&void 0!==r&&i>r)i=Number(r),s=!0;else if(e===ju&&void 0!==o&&i<o)i=Number(o),s=!0;else{var l=String(a).search(/\./)>=0?String(a).split(".")[1].length:0,c=0;void 0!==o&&(c=(i-o)%a),i=c>0?e===Cu?i-c:i+(a-c):e===Cu?i-a:i+a,i=Number(i.toFixed(l)),void 0!==r&&i>r||void 0!==o&&i<o||(s=!0)}s&&(void 0===t.props.value&&t.inputRef?(t.inputRef.value=String(i),t.forceUpdate()):t.props.onChange&&t.props.onChange(n,{number:i,value:String(i)})),e===ju&&void 0!==r&&i>=r||e===Cu&&void 0!==o&&i<=o?t.stopStepping():t.stepping.timeout=setTimeout((function(){t.stepping.currentDelay=t.stepping.speedDelay,t.performStep(e)}),t.stepping.currentDelay)})),Su(xu(t),"stopStepping",(function(){clearTimeout(t.stepping.timeout),t.stepping.currentDelay=t.stepping.initialDelay})),t.inputRef=null,t.stepping={currentDelay:500,initialDelay:500,speedDelay:75,timeout:{}},ou(M,e,au),t.generatedId=u.a.generate(),e.errorText&&(t.generatedErrorId=u.a.generate()),t}return t=i,(n=[{key:"render",value:function(){var e=bu(bu({},Nu.assistiveText),this.props.assistiveText),t=this.props.variant===Eu?this.setInputRef:this.props.inputRef,n=null,r=null,a=this.props.label||e&&e.label;return this.props.iconLeft||("left"===this.props.iconPosition||void 0===this.props.iconPosition)&&this.props.iconName?n=this.getIconRender("left","iconLeft"):this.props.variant!==Eu||this.props.isStatic||this.props.readOnly||(n=this.getCounterButtonIcon(Cu)),this.props.iconRight||"right"===this.props.iconPosition&&this.props.iconName?r=this.getIconRender("right","iconRight"):this.props.variant!==Eu||this.props.isStatic||this.props.readOnly||(r=this.getCounterButtonIcon(ju)),o.a.createElement("div",{className:l()("slds-form-element",{"slds-has-error":this.props.errorText},this.props.className),style:this.props.styleContainer},o.a.createElement(ru,{assistiveText:e,htmlFor:this.props.isStatic?void 0:this.getId(),label:this.props.label,required:this.props.required,variant:this.props.isStatic?"static":"base"}),this.props.fieldLevelHelpTooltip&&a?o.a.createElement(du,{assistiveText:{triggerLearnMoreIcon:e.fieldLevelHelpButton},fieldLevelHelpTooltip:this.props.fieldLevelHelpTooltip}):null,o.a.createElement(eu,{"aria-activedescendant":this.props["aria-activedescendant"],"aria-autocomplete":this.props["aria-autocomplete"],"aria-controls":this.props["aria-controls"],"aria-labelledby":this.props["aria-labelledby"],"aria-describedby":this.getErrorId(),"aria-expanded":this.props["aria-expanded"],"aria-owns":this.props["aria-owns"],"aria-required":this.props["aria-required"],autoComplete:this.props.autoComplete,className:l()({"slds-input_counter":this.props.variant===Eu,"slds-p-horizontal_none":this.props.variant===Eu&&this.props.readOnly}),containerProps:{className:"slds-form-element__control"},defaultValue:this.props.defaultValue,disabled:this.props.disabled,fixedTextLeft:this.props.fixedTextLeft,fixedTextRight:this.props.fixedTextRight,hasSpinner:this.props.hasSpinner,id:this.getId(),iconLeft:n,iconRight:r,inlineEditTrigger:this.props.inlineEditTrigger,isStatic:this.props.isStatic,minLength:this.props.minLength,minValue:this.props.minValue,maxLength:this.props.maxLength,maxValue:this.props.maxValue,name:this.props.name,onBlur:this.props.onBlur,onChange:this.handleChange,onClick:this.props.onClick,onFocus:this.props.onFocus,onInput:this.props.onInput,onInvalid:this.props.onInvalid,onKeyDown:this.props.onKeyDown,onKeyPress:this.props.onKeyPress,onKeyUp:this.props.onKeyUp,onSelect:this.props.onSelect,onSubmit:this.props.onSubmit,placeholder:this.props.placeholder,inputRef:t,readOnly:this.props.readOnly,required:this.props.required,role:this.props.role,assistiveText:this.props.assistiveText,type:this.props.variant===Eu?"number":this.props.type,value:this.props.value,variant:this.props.variant,step:this.props.step,style:this.props.styleInput}),this.props.inlineHelpText&&o.a.createElement("div",{className:"slds-form-element__help"},this.props.inlineHelpText),this.props.errorText&&o.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},this.props.errorText),this.props.children)}}])&&vu(t.prototype,n),r&&vu(t,r),i}(o.a.Component);Su(Tu,"displayName",M),Su(Tu,"propTypes",{"aria-activedescendant":i.a.string,"aria-autocomplete":i.a.string,"aria-controls":i.a.string,"aria-describedby":i.a.string,"aria-expanded":i.a.bool,"aria-haspopup":i.a.bool,"aria-labelledby":i.a.string,"aria-owns":i.a.string,"aria-required":i.a.bool,assistiveText:i.a.shape({label:i.a.string,spinner:i.a.string}),autoComplete:i.a.string,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),defaultValue:i.a.oneOfType([i.a.number,i.a.string]),disabled:i.a.bool,errorText:i.a.oneOfType([i.a.node,i.a.string]),fieldLevelHelpTooltip:i.a.node,fixedTextLeft:i.a.oneOfType([i.a.node,i.a.string]),fixedTextRight:i.a.oneOfType([i.a.node,i.a.string]),hasSpinner:i.a.bool,iconLeft:i.a.node,iconRight:i.a.node,id:i.a.string,inlineHelpText:i.a.oneOfType([i.a.node,i.a.string]),inputRef:i.a.func,isStatic:i.a.bool,label:i.a.string,onBlur:i.a.func,onChange:i.a.func,onClick:i.a.func,onFocus:i.a.func,onInput:i.a.func,onInvalid:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onSelect:i.a.func,onSubmit:i.a.func,placeholder:i.a.string,minLength:i.a.string,minValue:i.a.number,maxLength:i.a.string,maxValue:i.a.number,name:i.a.string,readOnly:i.a.bool,required:i.a.bool,role:i.a.string,step:i.a.number,styleInput:i.a.object,styleContainer:i.a.object,type:i.a.oneOf(["text","password","datetime","datetime-local","date","month","time","week","number","email","url","search","tel","color"]),value:i.a.oneOfType([i.a.number,i.a.string]),variant:i.a.oneOf(["base",Eu])}),Su(Tu,"defaultProps",Nu);var Pu=Tu;function ku(){return(ku=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ru(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Iu=function(e){var t=e.id,n=e.placeholder,r=e.onChange,a=Ru(e,["id","placeholder","onChange"]);return o.a.createElement(Pu,ku({},a,{assistiveText:{label:n},iconLeft:o.a.createElement(Ac,{name:"search",category:"utility"}),id:t,onChange:r,placeholder:n}))};Iu.displayName="SLDSCardFilter",Iu.propTypes={id:i.a.string,onChange:i.a.func,placeholder:i.a.string.isRequired},Iu.defaultProps={placeholder:"Find in List"};var Du=Iu;function Au(e){return(Au="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lu(e){return function(e){if(Array.isArray(e))return Bu(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bu(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hu(e,t){return(Hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vu(e);if(t){var o=Vu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ku(this,n)}}function Ku(e,t){return!t||"object"!==Au(t)&&"function"!=typeof t?Wu(e):t}function Wu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vu(e){return(Vu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hu(e,t)}(i,e);var t,n,r,a=qu(i);function i(){var e;Fu(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return zu(Wu(e=a.call.apply(a,[this].concat(n))),"onFocus",(function(t){e["indicator".concat(e.props.currentIndex)].focus(),e.props.onFocus&&e.props.onFocus(t)})),e}return t=i,(n=[{key:"componentDidUpdate",value:function(){this.props.hasFocus&&this["indicator".concat(this.props.currentIndex)]&&this["indicator".concat(this.props.currentIndex)].focus()}},{key:"render",value:function(){var e=this,t=this.props;return o.a.createElement("ul",{className:"slds-carousel__indicators slds-col slds-text-align_center",role:"tablist"},Lu(Array(t.noOfIndicators).keys()).map((function(n){var r=n===t.currentIndex,a=l()("slds-carousel__indicator-action",t.className,{"slds-is-active":r}),i="".concat(n),s="".concat(n),c="";if(t.items&&t.items.length>0){c=t.items[n].id;for(var u=n*t.itemsPerPanel,p="",f=u;f<u+t.itemsPerPanel;f+=1)t.items[f]&&t.items[f].heading&&(p=p?"".concat(p,", "):"",p+=t.items[f].heading);p&&(i=p,s=p)}return o.a.createElement("li",{className:"slds-carousel__indicator slds-m-horizontal_xx-small",key:n,role:"presentation",style:{margin:0,padding:"0 5px"}},o.a.createElement("a",{ref:function(t){e["indicator".concat(n)]=t},id:"indicator-id-".concat(t.carouselId,"-").concat(n),className:a,role:"tab",tabIndex:r?"0":"-1","aria-selected":r,"aria-controls":t.getPanelId({carouselId:t.carouselId,itemId:c}),title:s,onBlur:t.onBlur,onClick:function(e){return t.onClick(e,n)},onFocus:e.onFocus},o.a.createElement("span",{className:"slds-assistive-text"},i)))})))}}])&&Mu(t.prototype,n),r&&Mu(t,r),i}(o.a.Component);Uu.displayName="SLDSCarouselIndicators",Uu.defaultProps={currentIndex:0},Uu.propTypes={carouselId:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),currentIndex:i.a.number,hasFocus:i.a.bool,items:i.a.array,itemsPerPanel:i.a.number,noOfIndicators:i.a.number.isRequired,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func};var Gu=Uu;function Yu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yu(Object(n),!0).forEach((function(t){Qu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ju=function(e){return o.a.createElement("div",{className:"slds-carousel__col-center slds-is-absolute",style:Xu(Xu({},e.inlineStyle),{},{margin:"-12px 0 0",top:"50%"})},o.a.createElement(ar,{assistiveText:{icon:e.assistiveText},className:"slds-button_icon slds-carousel__button",disabled:e.isDisabled,iconCategory:"utility",iconName:e.iconName,iconVariant:"border-filled",iconSize:"small",onClick:e.onClick,variant:"icon"}))};Ju.displayName="SLDSCarouselNavigators",Ju.propTypes={assistiveText:i.a.string,iconName:i.a.oneOf(["chevronleft","chevronright"]),isDisabled:i.a.bool,inlineStyle:i.a.object,onClick:i.a.func};var Zu=Ju,$u=function(e){return o.a.createElement("div",{id:e.getPanelId({carouselId:e.carouselId,itemId:e.id}),className:"slds-carousel__panel slds-m-horizontal_xx-small slds-list_horizontal",role:"tabpanel","aria-hidden":"false","aria-labelledby":"indicator-id-".concat(e.carouselId,"-").concat(e.panelIndex),style:{margin:0,maxWidth:"".concat(e.itemWidth,"px"),padding:"0 6px"}},e.onRenderItem?e.onRenderItem({item:e}):o.a.createElement("a",{className:"slds-carousel__panel-action slds-text-link_reset",href:e.href,onClick:function(t){"#"===e.href&&t.preventDefault(),e.onClick&&e.onClick(t)},onFocus:e.onFocus,style:{backgroundColor:"white",width:"100%"},tabIndex:e.isInCurrentPanel?"0":"-1"},o.a.createElement("div",{className:"slds-carousel__image"},o.a.createElement("img",{src:e.src,alt:e.imageAssistiveText||e.heading})),o.a.createElement("div",{className:"slds-carousel__content",style:{height:"auto"}},o.a.createElement("h2",{className:"slds-carousel__content-title"},e.heading),o.a.createElement("div",{className:"slds-p-bottom_x-small slds-text-body_small",style:{minHeight:"40px"}},e.description),e.buttonLabel&&o.a.createElement(ar,{label:e.buttonLabel,tabIndex:e.isInCurrentPanel?"0":"-1",variant:"neutral"}))))};$u.displayName="SLDSCarouselItem",$u.propTypes={buttonLabel:i.a.string,carouselId:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),description:i.a.oneOfType([i.a.string,i.a.node]),heading:i.a.oneOfType([i.a.string,i.a.object]).isRequired,href:i.a.string,id:i.a.number.isRequired,imageAssistiveText:i.a.string,isInCurrentPanel:i.a.bool,itemWidth:i.a.number,onFocus:i.a.func,onRenderItem:i.a.func,panelIndex:i.a.number,src:i.a.string.isRequired},$u.defaultProps={href:"#"};var ep=$u,tp=function(e){return o.a.createElement("span",{className:"slds-carousel__autoplay",style:{left:"66px"}},o.a.createElement(ar,{assistiveText:{icon:e.assistiveText},className:"slds-button_icon",disabled:e.isDisabled,iconCategory:"utility",iconName:e.isAutoplayOn?"pause":"play",iconVariant:"border-filled",iconSize:"x-small",onClick:e.onClick,variant:"icon"}))};tp.displayName="SLDSCarouselAutoplayButton",tp.propTypes={assistiveText:i.a.string,isAutoplayOn:i.a.bool,onClick:i.a.func},tp.defaultProps={isAutoplayOn:!1};var np=tp;function rp(e){return(rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function op(){return(op=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ap(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ip(e,t){return(ip=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=up(e);if(t){var o=up(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(e,t){return!t||"object"!==rp(t)&&"function"!=typeof t?cp(e):t}function cp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function up(e){return(up=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ip(e,t)}(i,e);var t,n,r,a=sp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),pp(cp(t=a.call(this,e)),"onNextPanelHandler",(function(e){var n=t.getCurrentPanel()+1;n>t.nrOfPanels-1&&(n=0),t.setCurrentPanel(e,n,t.changeTranslationAutomatically)})),pp(cp(t),"onPreviousPanelHandler",(function(e){var n=t.getCurrentPanel()-1;n<0&&(n=t.nrOfPanels-1),t.setCurrentPanel(e,n,t.changeTranslationAutomatically)})),pp(cp(t),"onIndicatorBlur",(function(){t.setState({indicatorsHaveFocus:!1})})),pp(cp(t),"onIndicatorClickHandler",(function(e,n){t.setCurrentPanel(e,n,t.changeTranslationAutomatically),t.setState({indicatorsHaveFocus:!0}),t.getIsAutoplayOn()&&t.stopAutoplay(e)})),pp(cp(t),"onIndicatorFocus",(function(e){t.setState({indicatorsHaveFocus:!0}),t.getIsAutoplayOn()&&t.stopAutoplay(e)})),pp(cp(t),"onAutoplayBtnClick",(function(e){var n=t.getIsAutoplayOn();if(t.props.onRequestAutoplayToggle)t.props.onRequestAutoplayToggle(e,{isAutoplayOn:n});else{var r=n?t.stopAutoplay:t.startAutoplay;t.setState({isAutoplayOn:!n}),r(e)}})),pp(cp(t),"getPanelId",(function(e){var t=e.carouselId,n=e.itemId;return"content-id-".concat(t,"-").concat(n)})),pp(cp(t),"setDimensions",(function(){Gt&&void 0!==t.stageItem&&void 0!==t.stageItem.current&&void 0!==t.stageItem.current.offsetWidth&&t.setState({stageWidth:t.stageItem.current.offsetWidth},t.changeTranslationAutomatically)})),pp(cp(t),"setTranslationAmount",(function(e,n){t.setState({translateX:e},n)})),pp(cp(t),"setCurrentPanel",(function(e,n,r){t.props.onRequestPanelChange?t.props.onRequestPanelChange(e,{currentPanel:t.getCurrentPanel(),requestedPanel:n}):t.setState({currentPanel:n},r)})),pp(cp(t),"startAutoplay",(function(e){t.autoplayId=setInterval((function(){t.canGoToNext()?t.onNextPanelHandler(e):t.props.isInfinite?t.setCurrentPanel(e,0,t.changeTranslationAutomatically):t.stopAutoplay(e)}),t.props.autoplayInterval)})),pp(cp(t),"stopAutoplay",(function(e,n){t.autoplayId&&clearInterval(t.autoplayId),n||(t.props.onRequestAutoplayToggle?t.props.onRequestAutoplayToggle(e,{isAutoplayOn:t.getIsAutoplayOn()}):t.setState({isAutoplayOn:!1}))})),pp(cp(t),"changeTranslationAutomatically",(function(){t.setTranslationAmount(-(t.state.stageWidth||t.stageWidth)*t.getCurrentPanel())})),pp(cp(t),"canGoToNext",(function(){return t.getCurrentPanel()<t.nrOfPanels-1})),pp(cp(t),"canGoToPrevious",(function(){return t.getCurrentPanel()>0})),pp(cp(t),"handleKeyDown",(function(e){var n,r=(pp(n={},zt.LEFT,(function(){(t.props.isInfinite||t.canGoToPrevious())&&(t.onPreviousPanelHandler(e),t.setState({indicatorsHaveFocus:!0}),t.getIsAutoplayOn()&&t.stopAutoplay(e))})),pp(n,zt.RIGHT,(function(){(t.props.isInfinite||t.canGoToNext())&&(t.onNextPanelHandler(e),t.setState({indicatorsHaveFocus:!0}),t.getIsAutoplayOn()&&t.stopAutoplay(e))})),n);r[e.keyCode]&&(St.trapImmediate(e),r[e.keyCode]())})),t.nrOfPanels=Math.ceil(e.items.length/e.itemsPerPanel),t.stageItem=o.a.createRef(),t.state={currentPanel:void 0!==e.currentPanel?e.currentPanel:0,indicatorsHaveFocus:!1,isAutoplayOn:void 0!==e.isAutoplayOn?e.isAutoplayOn:e.hasAutoplay,stageWidth:0,translateX:-1e6},t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentDidMount",value:function(){Gt&&void 0!==this.stageItem&&void 0!==this.stageItem.current&&void 0!==this.stageItem.current.offsetWidth&&(this.stageWidth=this.stageItem.current.offsetWidth),Yt&&window.addEventListener("resize",this.setDimensions,!1),this.changeTranslationAutomatically(),this.getIsAutoplayOn()&&this.startAutoplay({mountAutoplayEvent:!0})}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.currentPanel&&e.currentPanel!==this.props.currentPanel&&this.changeTranslationAutomatically(),void 0!==this.props.isAutoplayOn&&e.isAutoplayOn!==this.props.isAutoplayOn&&(this.props.isAutoplayOn?this.startAutoplay({updateAutoplayEvent:!0}):this.stopAutoplay({updateAutoplayEvent:!0},!0)),e.items.length===this.props.items.length&&e.itemsPerPanel===this.props.itemsPerPanel||(this.nrOfPanels=Math.ceil(this.props.items.length/this.props.itemsPerPanel))}},{key:"componentWillUnmount",value:function(){Yt&&window.removeEventListener("resize",this.setDimensions,!1),this.stopAutoplay({unmountAutoplayEvent:!0},!0)}},{key:"getCurrentPanel",value:function(){return void 0!==this.props.currentPanel?this.props.currentPanel:this.state.currentPanel}},{key:"getIsAutoplayOn",value:function(){return void 0!==this.props.isAutoplayOn?this.props.isAutoplayOn:this.state.isAutoplayOn}},{key:"render",value:function(){var e=this,t=this.props,n=t.hasAutoplay,r=t.hasPreviousNextPanelNavigation,a=t.isInfinite,i=this.getCurrentPanel(),s=this.props.id||this.generatedId,c=!(a||this.canGoToPrevious()),u=!(a||this.canGoToNext()),p=(this.state.stageWidth||this.stageWidth)/this.props.itemsPerPanel,f=r?{marginLeft:"44px",marginRight:"44px"}:{};return o.a.createElement("div",{className:l()("slds-carousel",this.props.className),id:s,onKeyDown:this.handleKeyDown},o.a.createElement("div",{className:"slds-grid_vertical slds-col slds-path__scroller"},n&&o.a.createElement(np,{assistiveText:this.props.assistiveText.autoplayButton,isAutoplayOn:this.getIsAutoplayOn(),onClick:this.onAutoplayBtnClick}),o.a.createElement("div",{className:"slds-is-relative",style:f},r&&o.a.createElement(Zu,{assistiveText:this.props.assistiveText.previousPanel,iconName:"chevronleft",isDisabled:c,onClick:function(t){e.getIsAutoplayOn()&&e.stopAutoplay(t),e.onPreviousPanelHandler(t)},inlineStyle:{left:"-38px"}}),o.a.createElement("div",{ref:this.stageItem,className:"slds-carousel__stage slds-show"},o.a.createElement("div",{className:"slds-carousel__panels slds-is-relative",style:{transform:"translateX(".concat(this.state.translateX,"px)")}},this.props.items.map((function(t,n){return o.a.createElement(ep,op({carouselId:s,getPanelId:e.getPanelId,onClick:function(n){e.props.onItemClick(n,{item:t})},onFocus:function(t){e.getIsAutoplayOn()&&e.stopAutoplay(t)},onRenderItem:e.props.onRenderItem},t,{isInCurrentPanel:n>=i*e.props.itemsPerPanel&&n<i*e.props.itemsPerPanel+e.props.itemsPerPanel,itemWidth:p,key:t.id,panelIndex:Math.ceil((n+1)/e.props.itemsPerPanel)-1}))})))),r&&o.a.createElement(Zu,{assistiveText:this.props.assistiveText.nextPanel,iconName:"chevronright",isDisabled:u,onClick:function(t){e.getIsAutoplayOn()&&e.stopAutoplay(t),e.onNextPanelHandler(t)},inlineStyle:{right:"-38px"}})),o.a.createElement(Gu,{noOfIndicators:this.nrOfPanels,carouselId:s,currentIndex:i,getPanelId:this.getPanelId,hasFocus:this.state.indicatorsHaveFocus,onBlur:this.onIndicatorBlur,onClick:this.onIndicatorClickHandler,onFocus:this.onIndicatorFocus,items:this.props.items,itemsPerPanel:this.props.itemsPerPanel})))}}])&&ap(t.prototype,n),r&&ap(t,r),i}(o.a.Component);pp(fp,"displayName","SLDSCarousel"),pp(fp,"propTypes",{assistiveText:i.a.object,autoplayInterval:i.a.number,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),currentPanel:i.a.number,hasAutoplay:i.a.bool,hasPreviousNextPanelNavigation:i.a.bool,id:i.a.string,isAutoplayOn:i.a.bool,isInfinite:i.a.bool,items:i.a.array.isRequired,itemsPerPanel:i.a.number,onRenderItem:i.a.func,onRequestAutoplayToggle:i.a.func,onRequestPanelChange:i.a.func,onItemClick:i.a.func}),pp(fp,"defaultProps",{assistiveText:{autoplayButton:"Start / Stop auto-play",nextPanel:"Next Panel",previousPanel:"Previous Panel"},autoplayInterval:4e3,hasAutoplay:!1,hasPreviousNextPanelNavigation:!1,isInfinite:!1,itemsPerPanel:1});var dp=fp;var hp=function(){},mp=n(41);function bp(e){return(bp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(n),!0).forEach((function(t){Cp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gp(){return(gp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Op(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _p(e,t){return(_p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ep(e);if(t){var o=Ep(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wp(this,n)}}function wp(e,t){return!t||"object"!==bp(t)&&"function"!=typeof t?Sp(e):t}function Sp(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ep(e){return(Ep=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jp={"aria-controls":i.a.string,"aria-describedby":i.a.string,"aria-labelledby":i.a.string,"aria-owns":i.a.string,"aria-required":i.a.bool,assistiveText:i.a.shape({heading:i.a.string,label:i.a.string}),checked:i.a.bool,defaultChecked:i.a.bool,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,errorText:i.a.string,id:i.a.string,indeterminate:i.a.bool,labels:i.a.shape({heading:i.a.string,label:i.a.string,toggleDisabled:i.a.string,toggleEnabled:i.a.string}),name:i.a.string,onBlur:i.a.func,onChange:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onRequestFocus:i.a.func,readOnly:i.a.bool,requestFocus:i.a.bool,required:i.a.bool,role:i.a.string,tabIndex:i.a.string,variant:i.a.oneOf(["base","toggle","button-group","visual-picker"]),coverable:i.a.bool,vertical:i.a.bool,onRenderVisualPicker:i.a.func,onRenderVisualPickerSelected:i.a.func,onRenderVisualPickerNotSelected:i.a.func,size:i.a.oneOf(["medium","large"])},Np={assistiveText:{},labels:{toggleDisabled:"Disabled",toggleEnabled:"Enabled"},variant:"base"},Tp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_p(e,t)}(i,e);var t,n,r,a=xp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Cp(Sp(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),Cp(Sp(t),"getErrorId",(function(){return t.props.errorText?"".concat(t.getId(),"-error-text"):void 0})),Cp(Sp(t),"getAriaDescribedBy",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.idArray,r=void 0===n?[]:n;return r.concat(t.props["aria-describedby"],t.getErrorId()).filter(Boolean).join(" ")||void 0})),Cp(Sp(t),"handleChange",(function(e){var n=t.props,r=n.checked,o=n.indeterminate,a=n.onChange;"function"==typeof a&&(t.props.oldEventParameterOrder?a(e.target.checked,e,{checked:!!o||!r,indeterminate:!1}):a(e,{checked:!!o||!r,indeterminate:!1}))})),Cp(Sp(t),"handleKeyDown",(function(e){e.keyCode&&(e.keyCode!==zt.ENTER&&e.keyCode!==zt.SPACE||(St.trapImmediate(e),t.handleChange(e)))})),Cp(Sp(t),"renderButtonGroupVariant",(function(e,n,r,a){return o.a.createElement("span",{className:"slds-button slds-checkbox_button"},o.a.createElement("input",gp({disabled:e.disabled},void 0!==e.checked?{checked:e.checked}:{defaultChecked:e.defaultChecked},{id:t.getId(),name:e.name,onBlur:e.onBlur,onChange:t.handleChange,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,ref:function(e){t.input=e},role:e.role,required:e.required,type:"checkbox"},n,{"aria-describedby":t.getAriaDescribedBy()})),o.a.createElement("label",{className:"slds-checkbox_button__label",htmlFor:t.getId()},o.a.createElement("span",{className:"slds-checkbox_faux"},a.label),r.label?o.a.createElement("span",{className:"slds-assistive-text"},r.label):null))})),Cp(Sp(t),"renderBaseVariant",(function(e,n,r,a){return o.a.createElement("div",{className:l()("slds-form-element",{"is-required":e.required,"slds-has-error":e.errorText},e.className)},o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("span",{className:"slds-checkbox"},e.required?o.a.createElement("abbr",{className:"slds-required",title:"required"},"*"):null,o.a.createElement("input",gp({disabled:e.disabled},void 0!==e.checked?{checked:e.checked}:{defaultChecked:e.defaultChecked},{id:t.getId(),name:e.name,onBlur:e.onBlur,onChange:t.handleChange,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,ref:function(n){n&&(n.indeterminate=e.indeterminate,t.props.requestFocus&&t.props.onRequestFocus&&t.props.onRequestFocus(n)),t.input=n},role:e.role,required:e.required,tabIndex:e.tabIndex,type:"checkbox"},n,{"aria-describedby":t.getAriaDescribedBy()})),o.a.createElement("label",{className:"slds-checkbox__label",htmlFor:t.getId(),id:e.labelId},o.a.createElement("span",{className:"slds-checkbox_faux"}),a.label?o.a.createElement("span",{className:"slds-form-element__label"},a.label):null,r.label?o.a.createElement("span",{className:"slds-assistive-text"},r.label):null))),e.errorText?o.a.createElement("div",{className:"slds-form-element__help",id:t.getErrorId()},e.errorText):null)})),Cp(Sp(t),"renderToggleVariant",(function(e,n,r,a){return o.a.createElement("div",{className:l()("slds-form-element",{"is-required":e.required,"slds-has-error":e.errorText},e.className)},o.a.createElement("label",{className:"slds-checkbox_toggle slds-grid",htmlFor:t.getId()},e.required?o.a.createElement("abbr",{className:"slds-required",title:"required"},"*"):null,a.label?o.a.createElement("span",{className:"slds-form-element__label slds-m-bottom_none"},a.label):null,r.label?o.a.createElement("span",{className:"slds-assistive-text"},r.label):null,o.a.createElement("input",gp({disabled:e.disabled,id:t.getId()},void 0!==e.checked?{checked:e.checked}:{defaultChecked:e.defaultChecked},{name:e.name,onBlur:e.onBlur,onChange:t.handleChange,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,ref:function(e){t.input=e},role:e.role,required:e.required,type:"checkbox"},n,{"aria-describedby":t.getAriaDescribedBy({idArray:["".concat(t.getId(),"-desc")]})})),o.a.createElement("span",{id:"".concat(t.getId(),"-desc"),className:"slds-checkbox_faux_container","aria-live":"assertive"},o.a.createElement("span",{className:"slds-checkbox_faux"}),o.a.createElement("span",{className:"slds-checkbox_on"},a.toggleEnabled),o.a.createElement("span",{className:"slds-checkbox_off"},a.toggleDisabled))),e.errorText?o.a.createElement("div",{className:"slds-form-element__help",id:t.getErrorId()},e.errorText):null)})),Cp(Sp(t),"renderVisualPickerVariant",(function(e,n,r){return o.a.createElement("span",{className:l()("slds-visual-picker","slds-visual-picker_".concat(t.props.size),t.props.vertical?"slds-visual-picker_vertical":null)},o.a.createElement("input",gp({disabled:e.disabled},void 0!==e.checked?{checked:e.checked}:{defaultChecked:e.defaultChecked},{id:t.getId(),name:e.name,onBlur:e.onBlur,onChange:t.handleChange,onFocus:e.onFocus,onKeyDown:e.onKeyDown,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,ref:function(e){t.input=e},role:e.role,required:e.required,type:"checkbox"},n,{"aria-describedby":t.getAriaDescribedBy()})),o.a.createElement("label",{className:"slds-checkbox_button__label",htmlFor:t.getId()},t.props.coverable?o.a.createElement("div",{className:"slds-visual-picker__figure slds-visual-picker__icon slds-align_absolute-center"},o.a.createElement("span",{className:"slds-is-selected"},t.props.onRenderVisualPickerSelected()),o.a.createElement("span",{className:"slds-is-not-selected"},t.props.onRenderVisualPickerNotSelected())):o.a.createElement("span",{className:"slds-visual-picker__figure slds-visual-picker__text slds-align_absolute-center"},t.props.onRenderVisualPicker()),t.props.vertical?null:o.a.createElement("span",{className:"slds-visual-picker__body"},t.props.labels.heading?o.a.createElement("span",{className:"slds-text-heading_small"},t.props.labels.heading):null,o.a.createElement("span",{className:"slds-text-title"},t.props.labels.label),r.label||r.heading?o.a.createElement("span",{className:"slds-assistive-text"},r.label||r.heading):null),t.props.coverable?null:o.a.createElement("span",{className:"slds-icon_container slds-visual-picker__text-check"},o.a.createElement(jn,{assistiveText:t.props.assistiveText,category:"utility",name:"check",colorVariant:"base",size:"x-small"}))))})),hp(B,t.props,mp),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"render",value:function(){var e=Wn(this.props);"toggle"===this.props.variant&&(e["aria-describedby"]="".concat(this.getId(),"-desc"));var t=vp(vp(vp({},Np.assistiveText),"string"==typeof this.props.assistiveText?{label:this.props.assistiveText}:{}),"object"===bp(this.props.assistiveText)?this.props.assistiveText:{}),n=vp(vp(vp({},Np.labels),this.props.label?{label:this.props.label}:{}),this.props.labels),r={base:this.renderBaseVariant,"button-group":this.renderButtonGroupVariant,toggle:this.renderToggleVariant,"visual-picker":this.renderVisualPickerVariant};return r[this.props.variant]?r[this.props.variant](this.props,e,t,n):r.base(this.props,e,t,n)}}])&&Op(t.prototype,n),r&&Op(t,r),i}(o.a.Component);Tp.displayName=B,Tp.propTypes=jp,Tp.defaultProps=Np;var Pp=Tp;var kp=function(){};function Rp(e){return(Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ip(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ap(e,t){return(Ap=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fp(e);if(t){var o=Fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bp(this,n)}}function Bp(e,t){return!t||"object"!==Rp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fp(e){return(Fp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mp,Hp,qp,Kp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ap(e,t)}(i,e);var t,n,r,a=Lp(i);function i(){return Ip(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e;return(this.props.errorTextWorkingColor||this.props.color.errors)&&(e="color-picker-custom-error-".concat(this.props.id)),o.a.createElement("div",{className:"slds-color-picker__custom-inputs"},o.a.createElement(Pu,{"aria-describedby":e,className:l()("slds-color-picker__input-custom-hex",{"slds-has-error":this.props.color.errors&&this.props.color.errors.hex}),id:"color-picker-input-hex-".concat(this.props.id),label:this.props.labels.hexLabel,maxLength:"7",onChange:this.props.onHexChange,value:this.props.color.hex}),o.a.createElement(Pu,{"aria-describedby":e,className:l()("slds-color-picker__input-custom-r",{"slds-has-error":this.props.color.errors&&this.props.color.errors.red}),id:"color-picker-input-r-".concat(this.props.id),label:this.props.labels.redAbbreviated,onChange:this.props.onRedChange,maxLength:"3",value:String(this.props.color.rgb.red)}),o.a.createElement(Pu,{"aria-describedby":e,className:l()("slds-color-picker__input-custom-g",{"slds-has-error":this.props.color.errors&&this.props.color.errors.green}),id:"color-picker-input-g-".concat(this.props.id),label:this.props.labels.greenAbbreviated,onChange:this.props.onGreenChange,maxLength:"3",value:String(this.props.color.rgb.green)}),o.a.createElement(Pu,{"aria-describedby":e,className:l()("slds-color-picker__input-custom-b",{"slds-has-error":this.props.color.errors&&this.props.color.errors.blue}),id:"color-picker-input-b-".concat(this.props.id),label:this.props.labels.blueAbbreviated,onChange:this.props.onBlueChange,maxLength:"3",value:String(this.props.color.rgb.blue)}))}}])&&Dp(t.prototype,n),r&&Dp(t,r),i}(o.a.Component);qp="SLDSCustomColorForm",(Hp="displayName")in(Mp=Kp)?Object.defineProperty(Mp,Hp,{value:qp,enumerable:!0,configurable:!0,writable:!0}):Mp[Hp]=qp;var Wp=Kp;function Vp(e){return(Vp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zp(Object(n),!0).forEach((function(t){Gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zp(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xp(e,t){return(Xp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zp(e);if(t){var o=Zp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jp(this,n)}}function Jp(e,t){return!t||"object"!==Vp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zp(e){return(Zp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $p={assistiveText:i.a.shape({label:i.a.string,required:i.a.string}),children:i.a.node.isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),labels:i.a.shape({error:i.a.string,label:i.a.string}),onChange:i.a.func,disabled:i.a.bool,required:i.a.bool,name:i.a.string,errorId:i.a.string,variant:i.a.oneOf(["base","button-group"])},ef={assistiveText:{required:"Required"},labels:{},variant:"base"},tf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xp(e,t)}(i,e);var t,n,r,a=Qp(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedName=u.a.generate(),t.generatedErrorId=u.a.generate(),t}return t=i,(n=[{key:"getErrorId",value:function(){if(this.hasError())return this.props.errorId||this.generatedErrorId}},{key:"getName",value:function(){return this.props.name||this.generatedName}},{key:"hasError",value:function(){return!!this.labels.error}},{key:"render",value:function(){var e=this;this.labels=this.props.labels?ur()({},ef.labels,this.props.labels):ef.labels;var t=Up(Up({},ef.assistiveText),this.props.assistiveText),n=o.a.Children.map(this.props.children,(function(t){return o.a.cloneElement(t,{name:e.getName(),onChange:e.props.onChange,"aria-describedby":e.getErrorId(),disabled:e.props.disabled||t.props.disabled})}));return o.a.createElement("fieldset",{className:l()("slds-form-element",{"slds-has-error":this.labels.error})},o.a.createElement("legend",{className:l()("slds-form-element__legend","slds-form-element__label",t.label?"slds-assistive-text":"")},this.props.required?o.a.createElement("abbr",{className:"slds-required",title:"required"},"*",o.a.createElement("div",{className:"slds-assistive-text"},t.required," ")):null,t.label?t.label:this.labels.label),o.a.createElement("div",{className:l()("slds-form-element__control",this.props.className)},"button-group"===this.props.variant?o.a.createElement("div",{style:this.props.style,className:"slds-radio_button-group"},n):n,this.labels.error?o.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},this.labels.error):null))}}])&&Yp(t.prototype,n),r&&Yp(t,r),i}(o.a.Component);tf.displayName="SLDSRadioGroup",tf.propTypes=$p,tf.defaultProps=ef;var nf=tf;function rf(){return(rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function of(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var af={assistiveText:i.a.shape({label:i.a.string}),children:i.a.node.isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),labels:i.a.shape({error:i.a.string,label:i.a.string}),onChange:i.a.func,disabled:i.a.bool,required:i.a.bool,name:i.a.string,errorId:i.a.string},sf=function(e){e.variant;var t=of(e,["variant"]);return o.a.createElement(nf,rf({variant:"button-group"},t))};sf.displayName="SLDSRadioButtonGroup",sf.propTypes=af,sf.defaultProps={labels:{},assistiveText:{}};var lf=sf;function cf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pf=function(e){var t=e.color,n=e.style,r=e.label,a=e.labels,i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(n),!0).forEach((function(t){uf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({backgroundColor:t},n),s=r||t;return t||(i.backgroundImage="linear-gradient(-45deg, white 47%, #870500 0, #870500 53%, white 0)",a&&a.swatchTabTransparentSwatch&&(s=a.swatchTabTransparentSwatch)),o.a.createElement("span",{className:"slds-swatch",style:i},o.a.createElement("span",{className:"slds-assistive-text"},s))};pf.propTypes={color:i.a.string.isRequired};var ff=pf;var df=function(){},hf=n(42);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bf(){return(bf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(n),!0).forEach((function(t){Ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Of(e,t){return(Of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sf(e);if(t){var o=Sf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xf(this,n)}}function xf(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?wf(e):t}function wf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sf(e){return(Sf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cf={assistiveText:i.a.shape({label:i.a.string}),"aria-describedby":i.a.string,"aria-labelledby":i.a.string,checked:i.a.bool,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),defaultChecked:i.a.bool,disabled:i.a.bool,id:i.a.string,labels:i.a.shape({heading:i.a.string,label:i.a.string}),name:i.a.string,onChange:i.a.func,onFocus:i.a.func,onRequestFocus:i.a.func,requestFocus:i.a.bool,tabIndex:i.a.string,value:i.a.string,variant:i.a.oneOf(["base","button-group","swatch","visual-picker"]),coverable:i.a.bool,vertical:i.a.bool,onRenderVisualPicker:i.a.func,onRenderVisualPickerSelected:i.a.func,onRenderVisualPickerNotSelected:i.a.func,description:i.a.string,size:i.a.oneOf(["medium","large"]),refs:i.a.shape({input:i.a.func})},jf={assistiveText:{},variant:"base",coverable:!1},Nf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Of(e,t)}(i,e);var t,n,r,a=_f(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ef(wf(t=a.call(this,e)),"handleChange",(function(e,n){t.preventDuplicateChangeEvent?t.preventDuplicateChangeEvent=!1:(t.preventDuplicateChangeEvent=Boolean(n),t.props.onChange&&t.props.onChange(e,{checked:!t.props.checked}))})),t.preventDuplicateChangeEvent=!1,df(me,t.props,hf),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e,t=this,n=Wn(this.props),r=Vn(this.props),a=vf(vf(vf({},jf.labels),this.props.label?{label:this.props.label}:{}),this.props.labels);return e="swatch"===this.props.variant?o.a.createElement("label",{style:{border:"1px"},className:"slds-radio_button__label",htmlFor:this.getId()},o.a.createElement("span",null,o.a.createElement(ff,{label:a.label,style:this.props.style,color:this.props.value}))):"button-group"===this.props.variant?o.a.createElement("label",{className:"slds-radio_button__label",htmlFor:this.getId()},o.a.createElement("span",{className:"slds-radio_faux"},a.label)):"visual-picker"===this.props.variant?o.a.createElement("label",{htmlFor:this.getId()},this.props.coverable?o.a.createElement("div",{className:"slds-visual-picker__figure slds-visual-picker__icon slds-align_absolute-center"},o.a.createElement("span",{className:"slds-is-selected"},this.props.onRenderVisualPickerSelected()),o.a.createElement("span",{className:"slds-is-not-selected"},this.props.onRenderVisualPickerNotSelected())):o.a.createElement("span",{className:"slds-visual-picker__figure slds-visual-picker__text slds-align_absolute-center"},this.props.onRenderVisualPicker()),this.props.vertical?null:o.a.createElement("span",{className:"slds-visual-picker__body"},a.heading?o.a.createElement("span",{className:"slds-text-heading_small"},a.heading):null,o.a.createElement("span",{className:"slds-text-title"},a.label)),this.props.coverable?null:o.a.createElement("span",{className:"slds-icon_container slds-visual-picker__text-check"},o.a.createElement(jn,{assistiveText:this.props.assistiveText,category:"utility",name:"check",colorVariant:"base",size:"x-small"}))):o.a.createElement("label",{className:"slds-radio__label",htmlFor:this.getId(),id:this.props.labelId},o.a.createElement("span",{className:"slds-radio_faux"}),o.a.createElement("span",{className:"slds-form-element__label"},a.label),this.props.assistiveText.label?o.a.createElement("span",{className:"slds-assistive-text"},this.props.assistiveText.label):null),o.a.createElement("span",{className:l()("visual-picker"===this.props.variant?"slds-visual-picker_".concat(this.props.size):null,{"slds-radio":"base"===this.props.variant||"swatch"===this.props.variant,"slds-button slds-radio_button":"button-group"===this.props.variant,"slds-visual-picker":"visual-picker"===this.props.variant,"slds-visual-picker_vertical":"visual-picker"===this.props.variant&&this.props.vertical},this.props.className)},o.a.createElement("input",bf({type:"radio",id:this.getId(),name:this.props.name,value:this.props.value},void 0!==this.props.checked?{checked:this.props.checked}:{defaultChecked:this.props.defaultChecked},{onFocus:this.props.onFocus,onChange:function(e){t.handleChange(e)},onClick:function(e){t.props.checked&&t.props.deselectable&&t.handleChange(e)},onKeyPress:function(e){var n=e.charCode;n===zt.SPACE&&t.props.checked&&t.props.deselectable?t.handleChange(e,!0):(n===zt.ENTER&&t.props.checked&&t.props.deselectable||!t.props.checked)&&t.handleChange(e)},disabled:this.props.disabled,tabIndex:this.props.tabIndex},n,r,{ref:function(e){t.props.refs&&t.props.refs.input&&t.props.refs.input(e),e&&t.props.requestFocus&&t.props.onRequestFocus&&t.props.onRequestFocus(e)}})),e)}}])&&gf(t.prototype,n),r&&gf(t,r),i}(o.a.Component);Nf.displayName=me,Nf.propTypes=Cf,Nf.defaultProps=jf;var Tf=Nf,Pf=Tf,kf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Rf=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,If={getNewColor:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.hex){if(t?!t(e.hex):!this.isValidHex(e.hex))return ur()({},n,{hex:e.hex,errors:ur()({},n.errors,{hex:!0}),hsv:{hue:"",saturation:"",value:""},rgb:{red:"",green:"",blue:""}});var r={hex:e.hex,hsv:this.getHsvFromHex(e.hex),rgb:this.getRgbFromHex(e.hex)};return e.name&&(r.name=e.name),r}if("red"in e||"blue"in e||"green"in e){var o=ur()({},n.rgb,e),a=this.getRgbErrors(o);return Object.values(a).includes(!0)?ur()({},n,{rgb:o,errors:ur()({},n.errors,a)}):{hex:this.getHexFromRgb(o),hsv:this.getHsvFromRgb(o),rgb:o}}if("hue"in e||"saturation"in e||"value"in e){var i=ur()({},n.hsv,e);return{hex:this.getHexFromHsv(i),hsv:i,rgb:this.getRgbFromHsv(i)}}return{hex:"",hsv:{hue:"",saturation:"",value:""},rgb:{red:"",green:"",blue:""}}},getDeltaColor:function(e,t,n){var r=function(e){return Math.min(Math.max(e,0),100)};return this.getNewColor({saturation:r(n.hsv.saturation+(e.saturation||0)),value:r(n.hsv.value+(e.value||0))},t,n)},isValidHex:function(e){return!e||Rf.test(this.toSixDigitHex(e))},getRgbErrors:function(e){return Object.entries(e).reduce((function(e,t){return e[t[0]]=function(e){return isNaN(e)||Math.floor(e)!==Number(e)||e<0||e>=256}(t[1]),e}),{})},getHsvFromHex:function(e){return this.getHsvFromRgb(this.getRgbFromHex(e))},getHexFromHsv:function(e){var t=e.hue,n=e.saturation,r=e.value;return this.getHexFromRgb(this.getRgbFromHsv({hue:t,saturation:n,value:r}))},getHexFromNamedColor:function(e){return kf[e.toLowerCase()]||null},getHsvFromRgb:function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,a=Math.max(n,r,o),i=Math.min(n,r,o),s=a-i;return a===i?t=0:(t=n===a?(r-o)/s+(r<o?6:0):r===a?(o-n)/s+2:(n-r)/s+4,t*=60),{hue:t,saturation:0===a?0:s/a*100,value:100*a}},getRgbFromHsv:function(e){var t,n,r,o=e.hue/360,a=e.saturation/100,i=e.value/100,s=Math.floor(6*o),l=6*o-s,c=i*(1-a),u=i*(1-l*a),p=i*(1-(1-l)*a);switch(s%6){case 0:t=i,n=p,r=c;break;case 1:t=u,n=i,r=c;break;case 2:t=c,n=i,r=p;break;case 3:t=c,n=u,r=i;break;case 4:t=p,n=c,r=i;break;default:t=i,n=c,r=u}return{red:Math.round(255*t),blue:Math.round(255*r),green:Math.round(255*n)}},getHexFromRgb:function(e){var t=e.red,n=e.green,r=e.blue;function o(e){return"0".concat(Math.round(e).toString(16)).substr(-2)}return"#".concat(o(t)).concat(o(n)).concat(o(r))},getRgbFromHex:function(e){var t=Rf.exec(this.toSixDigitHex(e));return{red:parseInt(t[1],16),green:parseInt(t[2],16),blue:parseInt(t[3],16)}},toSixDigitHex:function(e){var t=/^#([a-f\d])([a-f\d])([a-f\d])$/i.exec(e);return t?"#".concat(t[1]).concat(t[1]).concat(t[2]).concat(t[2]).concat(t[3]).concat(t[3]):e}};function Df(e){return(Df="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){Vf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ff(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mf(e,t){return(Mf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wf(e);if(t){var o=Wf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qf(this,n)}}function qf(e,t){return!t||"object"!==Df(t)&&"function"!=typeof t?Kf(e):t}function Kf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wf(e){return(Wf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zf={border:"1px solid #9e9e9e",boxShadow:"rgb(117, 112, 112) 1px 1px 1px",marginRight:"2px"},Uf={border:"1px solid #9e9e9e",marginRight:"2px"},Gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mf(e,t)}(i,e);var t,n,r,a=Hf(i);function i(){var e;Bf(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Vf(Kf(e=a.call.apply(a,[this].concat(n))),"handleSwatchChange",(function(t){e.setState({isTransparentSelected:""===t.target.value}),e.props.onSwatchChange(t)})),Vf(Kf(e),"isTransparent",(function(){return""===e.props.color.hex})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.isTransparent()?Lf({},Uf):Lf({},zf),n=this.isTransparent()?Lf({},zf):Lf({},Uf),r=this.props.previousColor.hex?this.props.previousColor:If.getNewColor({hex:"#000000"}),a=this.isTransparent()?r:this.props.color;return o.a.createElement("div",null,o.a.createElement("p",{className:"slds-assistive-text",id:"color-picker-instructions-".concat(this.props.id)},this.props.assistiveText.saturationValueGrid),o.a.createElement("div",{className:"slds-color-picker__custom-range",style:{background:"hsl(".concat(a.hsv.hue,", 100%, 50%)")},onClick:function(t){!function(e,t,n){var r=n.onSaturationValueChange,o=e.currentTarget.getBoundingClientRect();t.focus(),r(e,{saturation:Math.round((e.clientX-o.left)/o.width*100),value:Math.round((o.bottom-e.clientY)/o.height*100)})}(t,e.rangeIndicator,{onSaturationValueChange:e.props.onSaturationValueChange})},role:"presentation"},o.a.createElement("a",{"aria-atomic":"true","aria-describedby":"color-picker-instructions-".concat(this.props.id),"aria-live":"assertive",className:"slds-color-picker__range-indicator",onKeyDown:function(t){!function(e,t){var n,r=t.onSaturationNavigate,o=t.onValueNavigate,a=(Vf(n={},zt.LEFT,(function(t){r(e,{delta:-1*t})})),Vf(n,zt.RIGHT,(function(t){r(e,{delta:t})})),Vf(n,zt.UP,(function(t){o(e,{delta:t})})),Vf(n,zt.DOWN,(function(t){o(e,{delta:-1*t})})),n);a[e.keyCode]&&(e.preventDefault(),a[e.keyCode](e.shiftKey?10:1))}(t,Lf({},e.props))},ref:function(t){e.rangeIndicator=t},role:"button",style:{bottom:"".concat(a.hsv.value,"%"),left:"".concat(a.hsv.saturation,"%")},tabIndex:0},o.a.createElement("span",{className:"slds-assistive-text"},"Saturation ".concat(a.hsv.saturation,"% Brightness: ").concat(a.hsv.value,"%")))),o.a.createElement("div",{className:"slds-color-picker__hue-and-preview"},o.a.createElement("label",{className:"slds-assistive-text",htmlFor:"color-picker-input-range-".concat(this.props.id)},this.props.assistiveText.hueSlider),o.a.createElement("input",{type:"range",min:"0",max:"360",className:"slds-color-picker__hue-slider",id:"color-picker-input-range-".concat(this.props.id),value:a.hsv.hue,onChange:this.props.onHueChange}),o.a.createElement(lf,{name:"".concat(this.props.id,"-color-picker-swatch-toggle-button-group"),assistiveText:{label:"Toggle Transparency"},style:{border:"none",borderRadius:"unset"},onChange:this.handleSwatchChange},o.a.createElement(Pf,{checked:!this.isTransparent(),id:"color-picker-active-working-color-swatch-".concat(this.props.id),key:"working-color",labels:{label:this.props.labels.customTabActiveWorkingColorSwatch},style:t,value:a.hex,variant:"swatch"}),o.a.createElement(Pf,{checked:this.isTransparent(),id:"color-picker-transparent-swatch-".concat(this.props.id),key:"transparent",labels:{label:this.props.labels.customTabTransparentSwatch},style:n,value:"",variant:"swatch"}))))}}])&&Ff(t.prototype,n),r&&Ff(t,r),i}(o.a.Component);Vf(Gf,"displayName","SLDSHsvColor");var Yf=Gf;function Xf(e){return(Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zf(e,t){return(Zf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=td(e);if(t){var o=td(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ed(this,n)}}function ed(e,t){return!t||"object"!==Xf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function td(e){return(td=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Zf(e,t)}(i,e);var t,n,r,a=$f(i);function i(){return Qf(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e;return e=this.props.errorTextWorkingColor?this.props.errorTextWorkingColor:this.props.color.errors&&this.props.color.errors.hex?this.props.labels.invalidColor:this.props.labels.invalidComponent,o.a.createElement("div",{className:"slds-color-picker__custom"},o.a.createElement(Yf,{assistiveText:this.props.assistiveText,color:this.props.color,id:this.props.id,labels:this.props.labels,onHueChange:this.props.onHueChange,onSaturationValueChange:this.props.onSaturationValueChange,onSaturationNavigate:this.props.onSaturationNavigate,onValueNavigate:this.props.onValueNavigate,onSwatchChange:this.props.onSwatchChange,previousColor:this.props.previousColor}),o.a.createElement(Wp,{color:this.props.color,id:this.props.id,errorTextWorkingColor:this.props.errorTextWorkingColor,labels:this.props.labels,onBlueChange:this.props.onBlueChange,onGreenChange:this.props.onGreenChange,onHexChange:this.props.onHexChange,onRedChange:this.props.onRedChange}),this.props.errorTextWorkingColor||this.props.color.errors?o.a.createElement("p",{className:"slds-form-error slds-color-picker__input-custom-error",id:"color-picker-custom-error-".concat(this.props.id)},e):"")}}])&&Jf(t.prototype,n),r&&Jf(t,r),i}(o.a.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(nd,"displayName","SLDSCustomColor");var rd=nd,od=n(9),ad=n.n(od);function id(e){return(id="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ld(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cd(e,t){return(cd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fd(e);if(t){var o=fd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pd(this,n)}}function pd(e,t){return!t||"object"!==id(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fd(e){return(fd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dd={border:"1px solid #141414",borderRadius:"2px",margin:"3px"},hd={border:"1px solid white",borderRadius:"2px"},md=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cd(e,t)}(i,e);var t,n,r,a=ud(i);function i(){return sd(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=this;return o.a.createElement("li",{className:"slds-color-picker__swatch",style:this.props.workingColor&&this.props.workingColor.hex===this.props.color?dd:{},role:"presentation"},o.a.createElement("a",{"aria-selected":this.props.workingColor&&this.props.workingColor.hex===this.props.color,className:"slds-color-picker__swatch-trigger",onClick:function(t){!function(e,t){var n=t.hex,r=t.onSelect;e.preventDefault(),r(e,{hex:n})}(t,{hex:e.props.color,onSelect:e.props.onSelect})},ref:this.props.swatchOptionRef,role:"option",style:this.props.workingColor&&this.props.workingColor===this.props.color?hd:{},tabIndex:this.props.tabIndex},o.a.createElement(ff,{color:this.props.color,labels:this.props.labels})))}}])&&ld(t.prototype,n),r&&ld(t,r),i}(o.a.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(md,"displayName","SLDSSwatchOption");var bd=md;function yd(e){return(yd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Od(e,t){return(Od=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sd(e);if(t){var o=Sd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xd(this,n)}}function xd(e,t){return!t||"object"!==yd(t)&&"function"!=typeof t?wd(e):t}function wd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sd(e){return(Sd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Od(e,t)}(i,e);var t,n,r,a=_d(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ed(wd(t=a.call(this,e)),"selectPreviousColor",(function(e,n){var r=ad()(n.swatchColors,(function(e){return e===n.color.hex})),o=-1===r||r===n.swatchColors.length-1?0:r+1,a=n.swatchColors[o];n.onSelect(e,{hex:a}),t.swatchColorRefs[a].focus()})),Ed(wd(t),"selectNextColor",(function(e,n){var r,o=ad()(n.swatchColors,(function(e){return e===n.color.hex}));r=0===o?n.swatchColors.length-1:-1===o?0:o-1;var a=n.swatchColors[r];n.onSelect(e,{hex:a}),t.swatchColorRefs[a].focus()})),Ed(wd(t),"handleKeyDown",(function(e,n){var r,o=(Ed(r={},zt.RIGHT,(function(){n.direction===Re.RTL?t.selectNextColor(e,n):t.selectPreviousColor(e,n)})),Ed(r,zt.DOWN,(function(){t.selectPreviousColor(e,n)})),Ed(r,zt.LEFT,(function(){n.direction===Re.RTL?t.selectPreviousColor(e,n):t.selectNextColor(e,n)})),Ed(r,zt.UP,(function(){t.selectNextColor(e,n)})),r);e.keyCode&&o[e.keyCode]&&(St.trapEvent(e),o[e.keyCode]())})),Ed(wd(t),"addRef",(function(e){return function(n){t.swatchColorRefs[e]=n}})),t.swatchColorRefs={},t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.props.swatchColors.includes(this.props.color.hex);return o.a.createElement("ul",{className:"slds-color-picker__swatches",role:"listbox",onKeyDown:function(t){e.handleKeyDown(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vd(Object(n),!0).forEach((function(t){Ed(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.props))}},this.props.swatchColors.map((function(n,r){return o.a.createElement(bd,{color:n,key:n,labels:e.props.labels,onSelect:e.props.onSelect,swatchOptionRef:e.addRef(n),workingColor:e.props.color,tabIndex:e.props.color&&e.props.color.hex===n||0===r&&!t?0:-1})})))}}])&&gd(t.prototype,n),r&&gd(t,r),i}(o.a.Component);Ed(Cd,"displayName","SLDSSwatchPicker");var jd=ct(Cd),Nd=function(e){var t=e.id,n=e.className,r=e.children,a=e.variant;return o.a.createElement("ul",{id:"".concat(t,"-slds-tabs__nav"),className:l()(n,{"slds-tabs_default__nav":"default"===a,"slds-tabs_scoped__nav":"scoped"===a,"slds-vertical-tabs__nav":"vertical"===a}),role:"tablist","aria-orientation":"vertical"===a?"vertical":void 0},r)};Nd.displayName="SLDSTabsList",Nd.propTypes={id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),children:i.a.oneOfType([i.a.object,i.a.array]),variant:i.a.oneOf(["default","scoped","vertical"])};var Td=Nd;function Pd(e){return(Pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Id(e,t){return(Id=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bd(e);if(t){var o=Bd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ad(this,n)}}function Ad(e,t){return!t||"object"!==Pd(t)&&"function"!=typeof t?Ld(e):t}function Ld(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bd(e){return(Bd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Md=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Id(e,t)}(i,e);var t,n,r,a=Dd(i);function i(){var e;kd(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Fd(Ld(e=a.call.apply(a,[this].concat(n))),"checkFocus",(function(){e.props.selected&&e.props.focus&&e.node&&e.node.focus()})),e}return t=i,(n=[{key:"componentDidMount",value:function(){this.checkFocus()}},{key:"componentDidUpdate",value:function(){this.checkFocus()}},{key:"render",value:function(){var e,t,n,r=this,a=this.props,i=a.selected,s=a.disabled,c=a.panelId,u=a.activeTabClassName,p=a.disabledTabClassName,f=a.className,d=a.children,h=a.id,m=a.variant,b=a.hasError;return n=i?"0":"-1",o.a.createElement("li",{className:l()(f,(e={},Fd(e,u,i),Fd(e,p,s),Fd(e,"slds-tabs_default__item","default"===m),Fd(e,"slds-tabs_scoped__item","scoped"===m),Fd(e,"slds-vertical-tabs__nav-item","vertical"===m),e)),role:"presentation",id:h,title:"string"==typeof d?d:null},o.a.createElement("a",{className:l()((t={},Fd(t,u,i),Fd(t,p,s),Fd(t,"slds-tabs_default__link","default"===m),Fd(t,"slds-tabs_scoped__link","scoped"===m),Fd(t,"slds-vertical-tabs__link","vertical"===m),t)),href:"#",role:"tab",ref:function(e){r.node=e},tabIndex:n,"aria-controls":c,"aria-disabled":s,"aria-selected":i?"true":"false",onClick:function(e){return e.preventDefault()}},d,b&&o.a.createElement("span",{className:l()({"slds-tabs__right-icon":"vertical"!==m,"slds-vertical-tabs__right-icon":"vertical"===m})},o.a.createElement(jn,{assistiveText:{label:this.props.assistiveText.withErrorIcon},category:"utility",containerClassName:"slds-icon_container slds-icon-utility-error",size:"x-small",name:"error",colorVariant:"error",title:this.props.assistiveText.withErrorIcon}))))}}])&&Rd(t.prototype,n),r&&Rd(t,r),i}(o.a.Component);Fd(Md,"displayName","SLDSTab"),Fd(Md,"propTypes",{className:i.a.string,id:i.a.string,focus:i.a.bool,selected:i.a.bool,disabled:i.a.bool,activeTabClassName:i.a.string,disabledTabClassName:i.a.string,panelId:i.a.string,children:i.a.oneOfType([i.a.string,i.a.element]),variant:i.a.oneOf(["default","scoped","vertical"]),hasError:i.a.bool,assistiveText:i.a.shape({withErrorIcon:i.a.string})}),Fd(Md,"defaultProps",{focus:!1,selected:!1,activeTabClassName:"slds-is-active",disabledTabClassName:"slds-disabled",variant:"default",hasError:!1,assistiveText:{withErrorIcon:"This item has an error"}});var Hd=Md;function qd(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Kd=function(e){var t=e.className,n=e.children,r=e.variant,a=e.selected,i=e.id,s=e.tabId;qd(e,["className","children","variant","selected","id","tabId"]);return o.a.createElement("div",{"aria-labelledby":s,className:l()(t,{"slds-show":a,"slds-hide":!a,"slds-tabs_default__content":"default"===r,"slds-tabs_scoped__content":"scoped"===r,"slds-vertical-tabs__content":"vertical"===r}),id:i,role:"tabpanel"},n.props.children)};Kd.displayName="SLDSTabPanel",Kd.propTypes={children:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),className:i.a.string,id:i.a.string,selected:i.a.bool,variant:i.a.oneOf(["default","scoped","vertical"]),tabId:i.a.string},Kd.defaultProps={variant:"default",selected:!1};var Wd=Kd;function Vd(e){return(Vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ud(e,t){return(Ud=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qd(e);if(t){var o=Qd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yd(this,n)}}function Yd(e,t){return!t||"object"!==Vd(t)&&"function"!=typeof t?Xd(e):t}function Xd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qd(e){return(Qd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zd(e){return!(!e.classList||!e.classList.contains("slds-disabled"))||(e.getAttribute?"true"===e.getAttribute("aria-disabled"):!!e.props.disabled)}var $d={id:i.a.string,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node,i.a.element]).isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),defaultSelectedIndex:i.a.number,onSelect:i.a.func,variant:i.a.oneOf(["default","scoped","vertical"]),selectedIndex:i.a.number},eh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ud(e,t)}(i,e);var t,n,r,a=Gd(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Jd(Xd(t=a.call(this,e)),"handleClick",(function(e){var n=e.target;do{if(t.isTabFromContainer(n)){if(Zd(n))return;var r=n.parentNode;"LI"===r.nodeName&&(r=(n=n.parentNode).parentNode);var o=[].slice.call(r.children).indexOf(n);return void t.setSelected(o)}}while(null!==(n=n.parentNode))})),Jd(Xd(t),"handleKeyDown",(function(e){if(t.isTabFromContainer(e.target)){var n=t.getSelectedIndex(),r=!1;e.keyCode===zt.LEFT||e.keyCode===zt.UP?(n=t.getPrevTab(n),r=!0):e.keyCode!==zt.RIGHT&&e.keyCode!==zt.DOWN||(n=t.getNextTab(n),r=!0),r&&St.trap(e),t.setSelected(n,!0)}})),t.tabs=[],t.generatedId=u.a.generate(),t.flavor=t.getVariant(),t.state={selectedIndex:e.defaultSelectedIndex},t}return t=i,(n=[{key:"getNextTab",value:function(e){for(var t=this.getTabsCount(),n=e+1;n<t;n++)if(!Zd(this.getTab(n)))return n;for(var r=0;r<e;r++)if(!Zd(this.getTab(r)))return r;return e}},{key:"getPanelsCount",value:function(){return this.props.children?o.a.Children.count(this.props.children):0}},{key:"getPrevTab",value:function(e){for(var t=e;t--;)if(!Zd(this.getTab(t)))return t;for(t=this.getTabsCount();t-- >e;)if(!Zd(this.getTab(t)))return t;return e}},{key:"getSelectedIndex",value:function(){return Number.isInteger(this.props.selectedIndex)?this.props.selectedIndex:this.state.selectedIndex}},{key:"getTab",value:function(e){return this.tabs[e].tab}},{key:"getTabNode",value:function(e){return this.tabs[e].node}},{key:"getTabsCount",value:function(){return this.props.children?o.a.Children.count(this.props.children):0}},{key:"getVariant",value:function(){return this.props.variant||"default"}},{key:"setSelected",value:function(e,t){if(!(e<0||e>=this.getTabsCount())){var n,r=this.getSelectedIndex();Ar()(this.props.onSelect)&&(n=this.props.onSelect(e,r)),!1!==n&&e!==this.state.selectedIndex&&this.setState({selectedIndex:e,focus:!0===t})}}},{key:"isTabFromContainer",value:function(e){if(!function(e){return"A"===e.nodeName&&"tab"===e.getAttribute("role")||"LI"===e.nodeName&&(e.classList.contains("slds-tabs_default__item")||e.classList.contains("slds-tabs_scoped__item")||e.classList.contains("slds-vertical-tabs__nav-item"))}(e))return!1;var t=e.parentElement;do{if(t===this.tabsNode)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1}},{key:"renderTabPanels",value:function(e){var t=this,n=o.a.Children.toArray(this.props.children),r=this.getSelectedIndex();return n.map((function(a,i){var s="".concat(e,"-slds-tabs_tab-").concat(i),l="".concat(e,"-slds-tabs_panel-").concat(i),c=r===i,u=t.getVariant();return o.a.createElement(Wd,{key:a.key,selected:c,id:l,tabId:s,variant:u},n[i])}))}},{key:"renderTabsList",value:function(e){var t=this,n=o.a.Children.toArray(this.props.children);return o.a.createElement(Td,{id:e,variant:this.getVariant()},n.map((function(n,r){var a="".concat(e,"-slds-tabs_tab-").concat(r),i="".concat(e,"-slds-tabs_panel-").concat(r),s=t.getSelectedIndex()===r,l=s&&t.state.focus,c=t.getVariant();return o.a.createElement(Hd,{key:n.key,ref:function(e){t.tabs[r]={tab:n,node:e},t.state.focus&&t.setState({focus:!1})},focus:l,selected:s,id:a,panelId:i,disabled:n.props.disabled,variant:c,hasError:n.props.hasError,assistiveText:n.props.assistiveText},n.props.label)})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.id,a=void 0===r?this.generatedId:r,i=t.variant,s=void 0===i?this.getVariant:i;return o.a.createElement("div",{id:a,className:l()({"slds-tabs_default":"default"===s,"slds-tabs_scoped":"scoped"===s,"slds-vertical-tabs":"vertical"===s},n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,"data-tabs":!0,ref:function(t){e.tabsNode=t}},this.renderTabsList(a),this.renderTabPanels(a))}}])&&zd(t.prototype,n),r&&zd(t,r),i}(o.a.Component);eh.displayName="SLDSTabs",eh.propTypes=$d,eh.defaultProps={defaultSelectedIndex:0,variant:"default"};var th=eh,nh=function(e){var t=e.children;return o.a.createElement("div",null,o.a.Children.toArray(t))};nh.displayName="SLDSTabsPanel",nh.propTypes={label:i.a.oneOfType([i.a.string,i.a.element]).isRequired,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node,i.a.element]).isRequired,hasError:i.a.bool,assistiveText:i.a.shape({withErrorIcon:i.a.string})};var rh=nh;var oh=function(){},ah=n(43),ih=function(e){var t=e.trigger,n=e.eventTarget,r=e.handleClick;t&&Tt.a.findDOMNode(t)===n&&r(event)},sh=function(e){var t=e.event,n=e.isOpen,r=e.handleClick,o=e.keyCode,a=e.eventTarget,i=e.trigger,s=e.toggleOpen;switch(o){case zt.ESCAPE:n&&(s(),St.trapEvent(t));break;case zt.ENTER:n||ih({trigger:i,eventTarget:a,handleClick:r})}};function lh(e){return(lh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ch(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function uh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ch(Object(n),!0).forEach((function(t){yh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ph(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fh(e,t){return(fh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bh(e);if(t){var o=bh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hh(this,n)}}function hh(e,t){return!t||"object"!==lh(t)&&"function"!=typeof t?mh(e):t}function mh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bh(e){return(bh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vh,gh="undefined"!=typeof document,Oh=gh?document.createElement("span"):{style:{}};Oh.style.top=0,Oh.style.left=0,Oh.style.width="100%",Oh.style.height="100%",Oh.style.position="absolute";var _h={align:"right",assistiveText:{closeButton:"Close dialog"},hasNoCloseButton:!1,hasNoNubbin:!1,hoverCloseDelay:300,openOn:"click",position:"absolute",variant:"base"},xh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fh(e,t)}(i,e);var t,n,r,a=dh(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),yh(mh(t=a.call(this,e)),"state",{isOpen:!1}),yh(mh(t),"getId",(function(){return t.props.id||t.generatedId})),yh(mh(t),"getIsOpen",(function(){return!t.props.disabled&&!!("boolean"==typeof t.props.isOpen?t.props.isOpen:t.state.isOpen)})),yh(mh(t),"getMenu",(function(){return t.dialog})),yh(mh(t),"getTargetElement",(function(){return t.props.onRequestTargetElement&&t.props.onRequestTargetElement()?t.props.onRequestTargetElement():t.trigger})),yh(mh(t),"setMenuRef",(function(e){t.dialog=e})),yh(mh(t),"setContainerRef",(function(e){t.trigger=e,t.state.inputRendered||t.setState({inputRendered:!0})})),yh(mh(t),"handleDialogClose",(function(e,n){var r=n&&n.componentWillUnmount||!1;vh===mh(t)&&(vh=void 0),t.props.onClose&&t.props.onClose(e,{componentWillUnmount:r})})),yh(mh(t),"handleClose",(function(e,n){t.getIsOpen()&&(t.props.onRequestClose&&t.props.onRequestClose(e,n),vh===mh(t)&&(vh=void 0),t.setState({isOpen:!1}),t.isHover=!1)})),yh(mh(t),"handleOpen",(function(){t.getIsOpen()||(vh&&Ar()(vh.handleClose)&&vh.handleClose(void 0,{trigger:"newPopover",id:vh.getId()}),vh=mh(t),t.setState({isOpen:!0}))})),yh(mh(t),"handleMouseEnter",(function(e){var n=t.getIsOpen();t.isHover=!0,n||"hover"!==t.props.openOn?clearTimeout(t.isClosing):t.handleOpen(),t.props.onMouseEnter&&t.props.onMouseEnter(e)})),yh(mh(t),"handleMouseLeave",(function(e){t.getIsOpen()&&(t.isClosing=setTimeout((function(){t.handleClose()}),t.props.hoverCloseDelay)),t.props.onMouseLeave&&t.props.onMouseLeave(e)})),yh(mh(t),"handleClick",(function(e,n){var r=n.triggerOnClickCallback;t.getIsOpen()?t.handleClose():t.handleOpen(),t.props.onClick&&t.props.onClick(e),r&&r(e)})),yh(mh(t),"handleFocus",(function(e){t.getIsOpen()||t.handleOpen(),t.props.onFocus&&t.props.onFocus(e)})),yh(mh(t),"handleKeyDown",(function(e){if(e.keyCode){if(e.keyCode!==zt.TAB){var n=t.getIsOpen();sh({event:e,isOpen:n,handleClick:t.handleClick,key:e.key,keyCode:e.keyCode,targetTarget:e.target,toggleOpen:t.toggleOpenFromKeyboard,trigger:t.trigger})}t.props.onKeyDown&&t.props.onKeyDown(e)}})),yh(mh(t),"handleCancel",(function(e){t.handleClose(e,{trigger:"cancel"})})),yh(mh(t),"handleClickOutside",(function(e){t.handleClose(e,{trigger:"clickOutside"})})),yh(mh(t),"toggleOpenFromKeyboard",(function(e){t.getIsOpen()?t.handleCancel(e):t.handleOpen()})),yh(mh(t),"renderDialog",(function(e,n){var r=mh(t).props,a=r.offset,i=uh(uh({},_h.assistiveText),t.props.assistiveText),s=r.closeButtonAssistiveText||i.closeButton,c="error"===t.props.variant||"warning"===t.props.variant,u=t.props.heading||c,p={error:o.a.createElement(jn,{category:"utility",name:"error",size:"x-small",inverse:!0}),warning:o.a.createElement(jn,{category:"utility",name:"warning",size:"x-small",inverse:!0})},f={base:o.a.createElement("header",{className:l()("slds-popover__header",{"slds-p-vertical_medium":"walkthrough"===r.variant})},o.a.createElement("h2",{id:t.props.ariaLabelledby||"".concat(t.getId(),"-dialog-heading"),className:l()({"slds-text-heading_small":"walkthrough"!==r.variant,"slds-text-heading_medium":"walkthrough"===r.variant})},t.props.heading)),themed:o.a.createElement("header",{className:"slds-popover__header"},o.a.createElement(dc,{body:o.a.createElement("h2",{id:t.props.ariaLabelledby||"".concat(t.getId(),"-dialog-heading"),className:"slds-truncate slds-text-heading_medium",title:r.heading},r.heading),figure:p[t.props.variant],verticalCenter:!0}))},d=null;u&&"walkthrough-action"!==r.variant&&"feature"!==r.variant&&(d=f[c?"themed":"base"]);var h=null;h="error"===r.variant||"warning"===r.variant?o.a.createElement("div",{id:"".concat(t.getId(),"-dialog-body"),className:l()("slds-popover__body",t.props.classNameBody)},r.body):"walkthrough-action"===r.variant||"feature"===r.variant?o.a.createElement("div",{className:l()("slds-popover__body",t.props.classNameBody),id:"".concat(t.getId(),"-dialog-body")},o.a.createElement("div",{className:"slds-media"},o.a.createElement("div",{className:"slds-media__figure"},"walkthrough-action"===r.variant?o.a.createElement(jn,{category:"utility",name:"touch_action",size:"small",inverse:!0}):t.props.icon),o.a.createElement("div",{className:"slds-media__body"},r.heading?o.a.createElement("h2",{id:t.props.ariaLabelledby||"".concat(t.getId(),"-dialog-heading"),className:"slds-text-heading_small"},r.heading):null,r.body,r.stepText?o.a.createElement("p",{className:"slds-m-top_medium slds-text-title"},r.stepText):null))):o.a.createElement("div",{id:"".concat(t.getId(),"-dialog-body"),className:l()("slds-popover__body",t.props.classNameBody)},r.body);var m=null;return r.footer?m=o.a.createElement("footer",{className:l()("slds-popover__footer",t.props.classNameFooter,t.props.footerClassName),style:t.props.footerStyle},t.props.footer):"walkthrough-action"!==r.variant&&(r.footerWalkthroughActions||r.stepText)&&(m=o.a.createElement("footer",{className:"slds-popover__footer"},o.a.createElement("div",{className:"slds-grid slds-grid_vertical-align-center"},r.stepText?o.a.createElement("span",{className:"slds-text-title"},r.stepText):null,r.footerWalkthroughActions?o.a.createElement("div",{className:"slds-col_bump-left",style:{display:"inline-block"}},r.footerWalkthroughActions):null))),e?o.a.createElement(bn,{hasNubbin:!t.props.hasNoNubbin,align:r.align,contentsClassName:l()(t.props.contentsClassName,"ignore-react-onclickoutside","slds-popover",{"slds-popover_error":"error"===r.variant},{"slds-popover_walkthrough":"walkthrough"===r.variant||"walkthrough-action"===r.variant||"feature"===r.variant},{"slds-popover_walkthrough-alt":"walkthrough-action"===r.variant},{"slds-popover_feature":"feature"===r.variant},{"slds-popover_warning":"warning"===r.variant},r.className),context:t.context,hasStaticAlignment:r.hasStaticAlignment,offset:a,onCancel:t.handleClose,onClose:t.handleDialogClose,onOpen:t.props.onOpen,onKeyDown:t.handleKeyDown,onMouseEnter:"hover"===r.openOn?t.handleMouseEnter:null,onMouseLeave:"hover"===r.openOn?t.handleMouseLeave:null,outsideClickIgnoreClass:n,onRequestTargetElement:function(){return t.getTargetElement()},position:t.props.position,style:t.props.style,variant:"popover",ref:t.setMenuRef,containerProps:{id:"".concat(t.getId(),"-popover"),"aria-labelledby":t.props.ariaLabelledby||"".concat(t.getId(),"-dialog-heading"),"aria-describedby":"".concat(t.getId(),"-dialog-body")}},!t.props.hasNoCloseButton&&o.a.createElement(ar,{assistiveText:{icon:s},iconCategory:"utility",iconName:"close",className:l()("slds-button slds-button_icon-small slds-float_right slds-popover__close slds-button_icon",{"slds-button_icon-inverse":"walkthrough"===r.variant||"walkthrough-action"===r.variant||"feature"===r.variant}),onClick:t.handleCancel,variant:"icon",inverse:"error"===t.props.variant||"warning"===t.props.variant}),d,h,m):null})),yh(mh(t),"renderOverlay",(function(e){Ar()(Oh)&&gh?Oh(e,Oh):t.props.overlay&&e&&!t.overlay&&gh?(t.overlay=Oh,document.querySelector("body").appendChild(t.overlay)):!e&&t.overlay&&t.overlay.parentNode&&(t.overlay.parentNode.removeChild(t.overlay),t.overlay=void 0)})),t.generatedId=u.a.generate(),oh(ce,e,ah),t}return t=i,(n=[{key:"componentWillUnmount",value:function(){vh===this&&(vh=void 0),this.isUnmounting=!0,this.renderOverlay(!1)}},{key:"render",value:function(){var e=this,t=[],n="ignore-click-".concat(this.getId()),r=null;o.a.Children.forEach(this.props.children,(function(n,a){0===a?r=o.a.cloneElement(n,uh({"aria-haspopup":"dialog",id:e.getId(),onClick:"click"===e.props.openOn||"hybrid"===e.props.openOn?function(t){e.handleClick(t,{triggerOnClickCallback:n.props.onClick})}:n.props.onClick,onFocus:"hover"===e.props.openOn?e.handleFocus:null,onMouseDown:e.props.onMouseDown,onMouseEnter:"hover"===e.props.openOn||"hybrid"===e.props.openOn?e.handleMouseEnter:null,onMouseLeave:"hover"===e.props.openOn||"hybrid"===e.props.openOn?e.handleMouseLeave:null,tabIndex:n.props.tabIndex||"0"},n.props)):t.push(n)})),this.renderOverlay(this.getIsOpen());var a={display:this.props.hasNoTriggerStyles?void 0:"inline-block"};return o.a.createElement("div",{className:this.props.triggerClassName,style:a,ref:this.setContainerRef},r,t.length>0?t:null,this.renderDialog(this.getIsOpen(),n))}}])&&ph(t.prototype,n),r&&ph(t,r),i}(o.a.Component);yh(xh,"displayName",ce),yh(xh,"propTypes",{align:i.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]),assistiveText:i.a.shape({closeButton:i.a.string}),ariaLabelledby:i.a.string,children:i.a.node.isRequired,body:i.a.oneOfType([i.a.node,i.a.array]).isRequired,classNameBody:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameFooter:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,footer:i.a.node,footerStyle:i.a.object,footerWalkthroughActions:i.a.oneOfType([i.a.node,i.a.arrayOf(i.a.node)]),hasNoCloseButton:i.a.bool,hasNoNubbin:i.a.bool,hasStaticAlignment:i.a.bool,hasNoTriggerStyles:i.a.bool,heading:i.a.oneOfType([i.a.string,i.a.node]),icon:i.a.node,id:i.a.string,isOpen:i.a.bool,onClick:i.a.func,onClose:i.a.func,onKeyDown:i.a.func,onMouseDown:i.a.func,onOpen:i.a.func,onRequestClose:i.a.func,onRequestTargetElement:i.a.func,position:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),stepText:i.a.string,style:i.a.object,overlay:i.a.oneOfType([i.a.bool,i.a.func]),triggerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),variant:i.a.oneOf(["base","error","feature","walkthrough","walkthrough-action","warning"])}),yh(xh,"defaultProps",_h),xh.contextType=pt;var wh=Ci(xh),Sh=n(44);function Eh(e){return(Eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jh(e,t){return(jh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kh(e);if(t){var o=kh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Th(this,n)}}function Th(e,t){return!t||"object"!==Eh(t)&&"function"!=typeof t?Ph(e):t}function Ph(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kh(e){return(kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ih={assistiveText:i.a.shape({label:i.a.string,hueSlider:i.a.string,saturationValueGrid:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameMenu:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,disabled:i.a.bool,errorText:i.a.string,errorTextWorkingColor:i.a.string,events:i.a.shape({onChange:i.a.func,onClose:i.a.func,onOpen:i.a.func,onRequestClose:i.a.func,onRequestOpen:i.a.func,onValidateColor:i.a.func,onValidateWorkingColor:i.a.func,onWorkingColorChange:i.a.func}),hasStaticAlignment:i.a.bool,hideInput:i.a.bool,isOpen:i.a.bool,labels:i.a.shape({blueAbbreviated:i.a.string,cancelButton:i.a.string,customTab:i.a.string,customTabActiveWorkingColorSwatch:i.a.string,customTabTransparentSwatch:i.a.string,greenAbbreviated:i.a.string,hexLabel:i.a.string,invalidColor:i.a.string,invalidComponent:i.a.string,label:i.a.string,redAbbreviated:i.a.string,swatchTab:i.a.string,swatchTabTransparentSwatch:i.a.string,submitButton:i.a.string}),menuPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),swatchColors:i.a.arrayOf(i.a.string),defaultSelectedTab:i.a.oneOf(["swatches","custom"]),variant:i.a.oneOf(["base","swatches","custom"]),value:i.a.string,valueWorking:i.a.string},Dh={assistiveText:{saturationValueGrid:"Use arrow keys to select a saturation and brightness, on an x and y axis.",hueSlider:"Select Hue"},events:{},labels:{blueAbbreviated:"B",cancelButton:"Cancel",customTab:"Custom",customTabActiveWorkingColorSwatch:"Working Color",customTabTransparentSwatch:"Transparent Swatch",greenAbbreviated:"G",hexLabel:"Hex",invalidColor:"The color entered is invalid",invalidComponent:"The value needs to be an integer from 0-255",redAbbreviated:"R",submitButton:"Done",swatchTab:"Default",swatchTabTransparentSwatch:"Transparent Swatch"},menuPosition:"absolute",swatchColors:["#e3abec","#c2dbf7","#9fd6ff","#9de7da","#9df0c0","#fff099","#fed49a","#d073e0","#86baf3","#5ebbff","#44d8be","#3be282","#ffe654","#ffb758","#bd35bd","#5779c1","#5679c0","#00aea9","#3cba4c","#f5bc25","#f99221","#580d8c","#001970","#0a2399","#0b7477","#0b6b50","#b67e11","#b85d0d",""],defaultSelectedTab:"swatches",variant:"base"},Ah=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jh(e,t)}(i,e);var t,n,r,a=Nh(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Rh(Ph(t=a.call(this,e)),"handleSwatchChange",(function(e){t.setWorkingColor(e,{hex:e.target.value})})),Rh(Ph(t),"handleOnRequestClose",(function(e,n){var r=n.trigger;"clickOutside"!==r&&"cancel"!==r||t.handleCancelState(),t.props.onRequestClose&&t.props.onRequestClose(e,{trigger:r})})),Rh(Ph(t),"handleClickOutside",(function(e){t.handleCancelButtonClick(e)})),Rh(Ph(t),"handleCancel",(function(e){t.handleCancelState(),t.props.onRequestClose&&t.props.onRequestClose(e,{trigger:"cancel"})})),Rh(Ph(t),"handleCancelState",(function(){var e=If.getNewColor({hex:t.state.currentColor},t.props.events.onValidateWorkingColor);t.setState({isOpen:!1,workingColor:e,previousWorkingColor:e})})),Rh(Ph(t),"handleHexInputChange",(function(e,n){var r=n.labels,o=e.target.value,a=If.getHexFromNamedColor(o),i=!1;i=t.props.events.onValidateColor?t.props.events.onValidateColor(o):!!a||If.isValidHex(o),t.setState({currentColor:o,workingColor:If.getNewColor({hex:a||o,name:a?o.toLowerCase():null},t.props.events.onValidateWorkingColor),colorErrorMessage:i?"":r.invalidColor}),t.props.events.onChange&&t.props.events.onChange(e,{color:o,isValid:i})})),Rh(Ph(t),"handleSaturationValueChange",(function(e,n){var r=n.saturation,o=n.value;t.setWorkingColor(e,{saturation:r,value:o})})),Rh(Ph(t),"handleSubmitButtonClick",(function(e){t.setState({isOpen:!1,currentColor:t.state.workingColor.hex,colorErrorMessage:""}),t.props.events.onChange&&t.props.events.onChange(e,{color:t.state.workingColor.hex,isValid:!0})})),Rh(Ph(t),"handleSwatchButtonClick",(function(){var e=If.getNewColor({hex:t.state.workingColor.hex},t.props.events.onValidateWorkingColor);t.setState({isOpen:!t.state.isOpen,workingColor:e,previousWorkingColor:t.state.previousWorkingColor}),t.props.onRequestOpen&&t.props.onRequestOpen()})),Rh(Ph(t),"handleSwatchSelect",(function(e,n){var r=n.hex;t.setWorkingColor(e,{hex:r})})),t.generatedId=e.id||u.a.generate();var n=If.getNewColor({hex:e.valueWorking||e.value},e.events.onValidateWorkingColor);return t.state={currentColor:null!=e.value?e.value:"",disabled:e.disabled,isOpen:e.isOpen,workingColor:n,previousWorkingColor:n,colorErrorMessage:e.errorText},kp(N,e,Sh),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t={};this.props.value!==e.value&&(t.currentColor=this.props.value),this.props.valueWorking!==e.valueWorking&&(t.workingColor=If.getNewColor({hex:this.props.valueWorking},this.props.events.onValidateWorkingColor)),this.props.disabled!==e.disabled&&(t.disabled=this.props.disabled),0!==Object.entries(t).length&&this.setState(t)}},{key:"getInput",value:function(e){var t=this,n=e.labels;return this.props.hideInput?null:o.a.createElement(Pu,{"aria-describedby":!this.state.isOpen&&this.state.colorErrorMessage?"color-picker-summary-error-".concat(this.generatedId):void 0,className:l()("slds-color-picker__summary-input","slds-align-top",{"slds-has-error":!!this.state.colorErrorMessage}),disabled:this.props.disabled,id:"color-picker-summary-input-".concat(this.generatedId),onChange:function(e){t.handleHexInputChange(e,{labels:n})},value:this.state.currentColor})}},{key:"getDefaultTab",value:function(e){var t=e.labels;return("base"===this.props.variant||"swatches"===this.props.variant)&&o.a.createElement(rh,{label:t.swatchTab},o.a.createElement(jd,{color:this.state.workingColor,labels:t,onSelect:this.handleSwatchSelect,swatchColors:this.props.swatchColors}))}},{key:"getCustomTab",value:function(e){var t=e.labels;return("base"===this.props.variant||"custom"===this.props.variant)&&o.a.createElement(rh,{label:t.customTab},o.a.createElement(rd,{assistiveText:this.props.assistiveText,id:this.generatedId,color:this.state.workingColor,errorTextWorkingColor:this.props.errorTextWorkingColor,previousColor:this.state.previousWorkingColor,labels:t,onBlueChange:this.handleColorChange("blue"),onGreenChange:this.handleColorChange("green"),onHexChange:this.handleColorChange("hex"),onHueChange:this.handleColorChange("hue"),onRedChange:this.handleColorChange("red"),onSwatchChange:this.handleSwatchChange,onSaturationValueChange:this.handleSaturationValueChange,onSaturationNavigate:this.handleNavigate("saturation"),onValueNavigate:this.handleNavigate("value")}))}},{key:"getPopover",value:function(e){var t=e.labels,n=o.a.createElement(th,{id:"color-picker-tabs-".concat(this.generatedId),defaultSelectedIndex:"custom"===this.props.defaultSelectedTab?1:0},this.getDefaultTab({labels:t}),this.getCustomTab({labels:t})),r=o.a.createElement("div",{className:"slds-color-picker__selector-footer"},o.a.createElement(ar,{className:"slds-color-picker__selector-cancel",id:"color-picker-footer-cancel-".concat(this.generatedId),label:t.cancelButton,onClick:this.handleCancel,variant:"neutral"}),o.a.createElement(ar,{className:"slds-color-picker__selector-submit",disabled:Object.keys(this.state.workingColor.errors||{}).length>0,id:"color-picker-footer-submit-".concat(this.generatedId),label:t.submitButton,onClick:this.handleSubmitButtonClick,variant:"brand"}));return o.a.createElement(wh,{ariaLabelledby:"color-picker-label-".concat(this.generatedId),align:"bottom left",body:n,className:l()("slds-color-picker__selector",this.props.classNameMenu),footer:r,hasNoCloseButton:!0,hasNoNubbin:!0,hasStaticAlignment:this.props.hasStaticAlignment,id:"slds-color-picker__selector-".concat(this.generatedId),isOpen:this.state.isOpen,onClose:this.props.onClose,onOpen:this.props.onOpen,onRequestClose:this.handleOnRequestClose,position:this.props.menuPosition},o.a.createElement(ar,{className:"slds-color-picker__summary-button",disabled:this.props.disabled,iconClassName:"slds-m-left_xx-small",iconPosition:"right",iconVariant:"more",id:"slds-color-picker__summary-button-".concat(this.generatedId),label:o.a.createElement(ff,{color:this.state.currentColor,labels:t}),onClick:this.handleSwatchButtonClick,variant:"icon"}))}},{key:"setWorkingColor",value:function(e,t){var n=If.getNewColor(t,this.props.events.onValidateWorkingColor,this.state.workingColor);this.setState({workingColor:n,previousWorkingColor:this.state.workingColor}),this.props.events.onWorkingColorChange&&this.props.events.onWorkingColorChange(e,{color:n})}},{key:"handleColorChange",value:function(e){var t=this;return function(n){var r={};r[e]=n.target.value,t.setWorkingColor(n,r)}}},{key:"handleNavigate",value:function(e){var t=this;return function(n,r){var o=r.delta,a={};a[e]=o;var i=If.getDeltaColor(a,t.props.events.onValidateWorkingColor,t.state.workingColor);t.setState({workingColor:i,previousWorkingColor:t.state.workingColor}),t.props.events.onWorkingColorChange&&t.props.events.onWorkingColorChange(n,{color:i})}}},{key:"render",value:function(){var e=this,t=ur()({},Dh.labels,this.props.labels);return o.a.createElement("div",{className:l()("slds-color-picker",this.props.className),ref:function(t){e.wrapper=t}},o.a.createElement("div",{className:"slds-color-picker__summary"},o.a.createElement("label",{className:l()("slds-color-picker__summary-label",this.props.assistiveText.label?"slds-assistive-text":""),htmlFor:this.props.hideInput?void 0:"color-picker-summary-input-".concat(this.generatedId),id:"color-picker-label-".concat(this.generatedId)},this.props.assistiveText.label?this.props.assistiveText.label:t.label),this.getPopover({labels:t}),this.getInput({labels:t}),!this.state.isOpen&&this.state.colorErrorMessage?o.a.createElement("p",{className:"slds-form-error",id:"color-picker-summary-error-".concat(this.generatedId)},this.state.colorErrorMessage):""))}}])&&Ch(t.prototype,n),r&&Ch(t,r),i}(o.a.Component);Rh(Ah,"displayName",N),Rh(Ah,"propTypes",Ih),Rh(Ah,"defaultProps",Dh);var Lh=Ah,Bh=n(12),Fh=n.n(Bh),Mh=n(15),Hh=n.n(Mh);function qh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vh(){return(Vh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var zh={activeOption:i.a.object,activeOptionIndex:i.a.number,classNameMenuSubHeader:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),inheritWidthOf:i.a.oneOf(["target","menu","none"]),inputId:i.a.string,itemVisibleLength:i.a.oneOf([5,7,10]),labels:i.a.shape({noOptionsFound:i.a.oneOfType([i.a.node,i.a.string]).isRequired}),onRenderMenuItem:i.a.func,menuRef:i.a.oneOfType([i.a.func,i.a.object]),maxWidth:i.a.string,onSelect:i.a.func,options:i.a.array,selection:i.a.array,hasMenuSpinner:i.a.bool,tooltipMenuItemDisabled:i.a.element,variant:i.a.oneOf(["icon-title-subtitle","checkbox"]),isSelected:i.a.func,assistiveText:i.a.object},Uh=function(e,t){if(!e||0===e.length||!t||0===t.length)return e;var n=e.toLowerCase().indexOf(t.toLowerCase());return n>-1?o.a.createElement(o.a.Fragment,null,e.substr(0,n),o.a.createElement("span",{key:"bold",className:"slds-text-title_bold"},"".concat(e.substr(n,t.length))),e.substr(n+t.length)):e},Gh=function(e,t){return null==e||"string"==typeof e?e:e(t)},Yh=function(e){var t="menu"===e.inheritWidthOf?"inherit":void 0;t="menu"===e.inheritWidthOf&&e.maxWidth?e.maxWidth:t;var n=e.options.map((function(t,n){var r=n===e.activeOptionIndex&&e.activeOption&&jt()(t.id,e.activeOption.id),a=e.isSelected({selection:e.selection,option:t})&&("header"!==t.type||"footer"===t.type),i=e.onRenderMenuItem;if("separator"===t.type)return t.label?o.a.createElement("li",{className:"slds-dropdown__header slds-truncate",title:t.label,role:"separator",key:"menu-separator-".concat(t.id)},o.a.createElement("span",{className:l()("slds-listbox__option-header",e.classNameMenuSubHeader)},t.label)):o.a.createElement("li",{className:"slds-has-divider_top-space",role:"separator",key:"menu-separator-".concat(t.id)});if("header"===t.type)return o.a.createElement("li",{key:"menu-header-".concat(t.id,"}"),role:"presentation",className:"slds-listbox__item"},o.a.createElement("div",{onClick:t.disabled?null:function(n){e.onSelect(n,{option:t})},"aria-selected":r,id:"".concat(e.inputId,"-listbox-option-").concat(t.id),className:l()("slds-media slds-listbox__option","slds-listbox__option_entity slds-listbox__option_term",{"slds-has-focus":r}),role:"option"},o.a.createElement("span",{className:"slds-media__figure slds-listbox__option-icon"},t.icon),o.a.createElement("span",{className:"slds-media__body"},Gh(t.label,e.inputValue))));if("footer"===t.type)return o.a.createElement("li",{key:"menu-footer-".concat(t.id,"}"),role:"presentation",className:"slds-listbox__item"},o.a.createElement("div",{"aria-selected":r,onClick:t.disabled?null:function(n){e.onSelect(n,{option:t})},id:"".concat(e.inputId,"-listbox-option-").concat(t.id),className:l()("slds-media slds-listbox__option","slds-listbox__option_entity slds-listbox__option_term",{"slds-has-focus":r}),role:"option"},o.a.createElement("span",{className:"slds-media__figure slds-listbox__option-icon"},t.icon),o.a.createElement("span",{className:"slds-media__body"},Gh(t.label,e.inputValue))));var s={},c="".concat(e.inputId,"-listbox-option-help-").concat(t.id);t.disabled&&e.tooltipMenuItemDisabled&&r&&(s["aria-describedby"]=c),t.disabled&&(s["aria-disabled"]=!!t.disabled,s.style={cursor:"default"});var u,p={"icon-title-subtitle":o.a.createElement("span",Vh({"aria-selected":r},s,{id:"".concat(e.inputId,"-listbox-option-").concat(t.id),key:"menu-subtitle-".concat(t.id),className:l()("slds-media slds-listbox__option","slds-listbox__option_entity slds-listbox__option_has-meta",{"slds-has-focus":r}),onClick:t.disabled?null:function(n){e.onSelect(n,{option:t})},role:"option"}),t.icon&&!e.onRenderMenuItem?o.a.createElement("span",{className:"slds-media__figure"},t.icon):null,e.onRenderMenuItem?o.a.createElement(i,{assistiveText:e.assistiveText,selected:a,option:t}):o.a.createElement("span",{className:"slds-media__body"},o.a.createElement("span",{className:l()("slds-listbox__option-text","slds-listbox__option-text_entity",{"slds-disabled-text":t.disabled}),title:t.label},Uh(t.label,e.inputValue)),o.a.createElement("span",{className:l()("slds-listbox__option-meta slds-listbox__option-meta_entity",{"slds-disabled-text":t.disabled}),title:t.subTitle},Uh(t.subTitle,e.inputValue)))),checkbox:o.a.createElement("span",Vh({"aria-selected":r},s,{id:"".concat(e.inputId,"-listbox-option-").concat(t.id),key:"menu-checkbox-".concat(t.id),className:l()("slds-media slds-listbox__option"," slds-listbox__option_plain slds-media_small slds-media_center",{"slds-has-focus":r,"slds-is-selected":a}),onClick:t.disabled?null:function(n){e.onSelect(n,{selection:e.selection,option:t})},role:"option"}),o.a.createElement("span",{className:"slds-media__figure"},o.a.createElement(jn,{className:"slds-listbox__icon-selected",category:"utility",name:"check",size:"x-small"})),o.a.createElement("span",{className:"slds-media__body"},e.onRenderMenuItem?o.a.createElement(i,{assistiveText:e.assistiveText,selected:a,option:t}):o.a.createElement("span",{className:l()("slds-truncate",{"slds-disabled-text":t.disabled}),title:t.label},a?o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText.optionSelectedInMenu):null," ","deselect"===t.type?o.a.createElement("em",null,t.label):t.label)))};if(t.disabled&&e.tooltipMenuItemDisabled){var f=e.tooltipMenuItemDisabled.props,d=f.content,h=Wh(f,["content"]),m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qh(Object(n),!0).forEach((function(t){Kh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({align:"top",content:t.tooltipContent||d,id:c,position:"absolute",silenceTriggerTabbableWarning:!0,triggerStyle:{width:"100%"}},h);r&&(m.isOpen=!0),u=o.a.cloneElement(e.tooltipMenuItemDisabled,m,p[e.variant])}else u=p[e.variant];return o.a.createElement("li",{className:"slds-listbox__item",key:"menu-option-".concat(t.id),role:"presentation"},u)}));return o.a.createElement("ul",{className:l()("slds-listbox slds-listbox_vertical slds-dropdown slds-dropdown_fluid",{"slds-dropdown_length-with-icon-5":5===e.itemVisibleLength,"slds-dropdown_length-with-icon-7":7===e.itemVisibleLength,"slds-dropdown_length-with-icon-10":10===e.itemVisibleLength},e.classNameMenu),ref:e.menuRef,role:"presentation",style:{width:"menu"===e.inheritWidthOf?"auto":void 0,maxWidth:t,position:"relative"!==e.menuPosition?"relative":void 0}},n.length?n:o.a.createElement("li",{className:"slds-listbox__item slds-listbox__status",role:"status","aria-live":"polite"},o.a.createElement("span",{className:"slds-m-left_x-large slds-p-vertical_medium"},e.labels.noOptionsFound)),e.hasMenuSpinner&&o.a.createElement("li",{role:"presentation",className:"slds-listbox__item"},o.a.createElement("div",{className:"slds-align_absolute-center slds-p-top_medium"},o.a.createElement(Vc,{assistiveText:{label:e.assistiveText.loadingMenuItems},hasContainer:!1,isInline:!0,size:"x-small"}))))};Yh.displayName="Menu",Yh.propTypes=zh,Yh.defaultProps={inputValue:"",menuRef:function(){}};var Xh=Yh,Qh={assistiveText:i.a.object,htmlFor:i.a.string,label:i.a.oneOfType([i.a.node,i.a.string]),required:i.a.bool,variant:i.a.oneOf(["base","static"])},Jh=function(e){var t=e.label||e.assistiveText&&e.assistiveText.label,n={base:o.a.createElement("label",{className:l()("slds-form-element__label",{"slds-assistive-text":e.assistiveText&&!e.label}),htmlFor:e.htmlFor},e.required&&o.a.createElement("abbr",{className:"slds-required",title:"required"},"*"),t),static:o.a.createElement("span",{className:"slds-form-element__label"},t)};return t?n[e.variant]:null};Jh.displayName="Label",Jh.propTypes=Qh,Jh.defaultProps={variant:"base"};var Zh=Jh,$h=function(e,t){var n=t.callbacks,r=void 0===n?{}:n,o=t.shiftCallbacks,a=void 0===o?{}:o,i=t.stopPropagation,s=void 0===i||i;e.shiftKey&&e.keyCode&&a[e.keyCode]?(s&&St.trapEvent(e),a[e.keyCode].callback(e,a[e.keyCode].data)):e.keyCode&&r[e.keyCode]?(s&&St.trapEvent(e),r[e.keyCode].callback(e,r[e.keyCode].data)):e.keyCode&&r.other&&(r.other.stopPropagation&&St.trapEvent(e),r.other.callback(e,r.other.data))};function em(e){return(em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tm(){return(tm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nm(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function om(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function am(e,t){return(am=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function im(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cm(e);if(t){var o=cm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sm(this,n)}}function sm(e,t){return!t||"object"!==em(t)&&"function"!=typeof t?lm(e):t}function lm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cm(e){return(cm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function um(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pm={assistiveText:i.a.shape({remove:i.a.string}),avatar:i.a.element,bare:i.a.bool,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),hasError:i.a.bool,href:i.a.string,icon:i.a.element,labels:i.a.shape({label:i.a.string,title:i.a.string,removeTitle:i.a.string}),onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onRemove:i.a.func,variant:i.a.oneOf(["link","option"])},fm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&am(e,t)}(i,e);var t,n,r,a=im(i);function i(){var e;rm(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return um(lm(e=a.call.apply(a,[this].concat(n))),"getHref",(function(){return"string"==typeof e.props.href?e.props.href:"#"})),um(lm(e),"blur",(function(){e.root.blur()})),um(lm(e),"focus",(function(){e.root.focus()})),um(lm(e),"handleKeyDown",(function(t){if("function"==typeof e.props.onKeyDown){for(var n,r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if((n=e.props.onKeyDown).call.apply(n,[null,t].concat(o)),t.defaultPrevented)return}switch(t.keyCode){case zt.ENTER:"function"==typeof e.props.onClick&&(St.trap(t),e.props.onClick());break;case zt.BACKSPACE:case zt.DELETE:"function"==typeof e.props.onRemove&&(St.trap(t),e.props.onRemove())}})),um(lm(e),"handleRef",(function(t){e.root=t})),um(lm(e),"handleOnClick",(function(t){"#"===e.getHref()&&t.preventDefault(),e.props.onClick&&e.props.onClick(t)})),um(lm(e),"restProps",(function(){var t=e.props;t.bare,t.hasError,t.variant,t.className,t.onClick,t.onRemove,t.labels,t.assistiveText,t.children,t.href,t.icon,t.avatar,t.onKeyDown;return nm(t,["bare","hasError","variant","className","onClick","onRemove","labels","assistiveText","children","href","icon","avatar","onKeyDown"])})),um(lm(e),"renderIcon",(function(){var t=e.props.icon||e.props.avatar;return t?o.a.createElement("span",{className:"slds-pill__icon_container"},t):null})),um(lm(e),"renderLabel",(function(){return e.props.labels.label?"link"===e.props.variant?o.a.createElement("a",{href:e.getHref(),className:"slds-pill__action",title:e.props.labels.title||e.props.labels.label,onClick:e.handleOnClick},o.a.createElement("span",{className:"slds-pill__label"},e.props.labels.label)):o.a.createElement("span",{className:"slds-pill__label",title:e.props.labels.title||e.props.labels.label},e.props.labels.label):e.props.children})),um(lm(e),"renderRemoveIcon",(function(){return"function"==typeof e.props.onRemove?o.a.createElement("span",{className:"slds-icon_container slds-pill__remove",title:e.props.labels.removeTitle,role:"button",onClick:e.props.onRemove},o.a.createElement(bt,{style:{cursor:"pointer"},category:"utility",className:"slds-icon slds-icon_x-small slds-icon-text-default",name:"close"}),o.a.createElement("span",{className:"slds-assistive-text"},e.props.assistiveText.remove||e.props.labels.removeTitle)):null})),e}return t=i,(n=[{key:"render",value:function(){var e;switch(this.props.variant){case"link":e="button";break;case"option":e="option"}return o.a.createElement("span",tm({},this.restProps(),{role:e,className:l()("slds-pill",{"slds-pill_link":"link"===this.props.variant,"slds-has-error":this.props.hasError,"slds-pill_bare":this.props.bare},this.props.className),onClick:this.props.labels.label&&"link"===this.props.variant?null:this.props.onClick,onKeyDown:"function"==typeof this.props.onRemove?this.handleKeyDown:null,ref:this.handleRef}),this.renderIcon(),this.renderLabel(),this.renderRemoveIcon())}}])&&om(t.prototype,n),r&&om(t,r),i}(o.a.Component);fm.displayName="SLDSPill",fm.defaultProps={variant:"link",labels:{},assistiveText:{}},fm.propTypes=pm;var dm=fm;function hm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(n),!0).forEach((function(t){bm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ym={active:i.a.bool,assistiveText:i.a.shape({remove:i.a.string}),avatar:i.a.element,bare:i.a.bool,eventData:i.a.object,events:i.a.shape({onClick:i.a.func,onFocus:i.a.func,onRequestFocus:i.a.func.isRequired,onRequestFocusOnNextPill:i.a.func.isRequired,onRequestFocusOnPreviousPill:i.a.func.isRequired,onRequestRemove:i.a.func.isRequired}),hasError:i.a.bool,icon:i.a.element,labels:i.a.shape({label:i.a.string.isRequired,removeTitle:i.a.string}),requestFocus:i.a.bool,title:i.a.string,tabIndex:i.a.number},vm={assistiveText:i.a.shape({remove:", Press delete or backspace to remove"}),labels:{remove:"Remove"},events:{}},gm=function(e){var t=ur()({},vm.assistiveText,e.assistiveText),n=ur()({},vm.labels,e.labels);return o.a.createElement(dm,{avatar:e.avatar,bare:e.bare,hasError:e.hasError,tabIndex:e.tabIndex||"0",icon:e.icon,variant:"option",labels:n,assistiveText:{remove:t.remove},"aria-selected":"true",onBlur:e.events.onBlur,onClick:"function"==typeof e.events.onClick?function(t){e.events.onClick&&e.events.onClick(t,mm({},e.eventData))}:null,onFocus:function(t){e.events.onFocus&&e.events.onFocus(t,mm({},e.eventData))},onRemove:function(t){St.trap(t),function(e,t){var n=t.events,r=t.data;St.trap(e),n.onRequestRemove(e,r)}(t,{events:e.events,data:e.eventData})},onKeyDown:function(t){!function(e,t){var n,r=t.events,o=t.data;$h(e,{callbacks:(n={},bm(n,zt.BACKSPACE,{callback:r.onRequestRemove,data:o}),bm(n,zt.DELETE,{callback:r.onRequestRemove,data:o}),bm(n,zt.LEFT,{callback:r.onRequestFocusOnPreviousPill,data:mm(mm({},o),{},{direction:"previous"})}),bm(n,zt.RIGHT,{callback:r.onRequestFocusOnNextPill,data:mm(mm({},o),{},{direction:"next"})}),n)})}(t,{events:e.events,data:e.eventData})},ref:function(t){e.requestFocus&&e.active&&e.events.onRequestFocus(void 0,{ref:t})}})};gm.displayName="Pill",gm.propTypes=ym,gm.defaultProps=vm;var Om=gm;var _m=function(e){return e.$$typeof&&"Symbol(react.element)"===e.$$typeof.toString()||e.type&&"function"==typeof e.type};function xm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xm(Object(n),!0).forEach((function(t){Sm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Em={activeOption:i.a.object,activeOptionIndex:i.a.number,assistiveText:i.a.shape({label:i.a.string,removePill:i.a.string,selectedListboxLabel:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onClickPill:i.a.func,onPillFocus:i.a.func.isRequired,onRequestFocus:i.a.func.isRequired,onRequestFocusOnNextPill:i.a.func.isRequired,onRequestFocusOnPreviousPill:i.a.func.isRequired,onRequestRemove:i.a.func.isRequired}),id:i.a.string,isBare:i.a.bool,isInline:i.a.bool,isPillContainer:i.a.bool,listboxAriaOrientation:i.a.string,listboxRole:i.a.string,containerAriaOrientation:i.a.string,containerRole:i.a.string,labels:i.a.shape({label:i.a.string,remove:i.a.string,title:i.a.string}),renderAtSelectionLength:i.a.number,selectedListboxRef:i.a.func,selection:i.a.array,style:i.a.object,listboxHasFocus:i.a.bool,variant:i.a.oneOf(["base","inline-listbox","readonly"])},Cm=function(e){return e.selection.length>=e.renderAtSelectionLength?o.a.createElement("div",{className:l()({"slds-pill_container":e.isPillContainer},e.className)||void 0,id:e.id,ref:function(t){e.selectedListboxRef&&e.selectedListboxRef(t)},style:e.style,role:e.containerRole,"aria-orientation":e.containerAriaOrientation},o.a.createElement("ul",{className:l()("slds-listbox",{"slds-listbox_inline":e.isInline,"slds-listbox_horizontal":!e.isInline,"slds-p-top_xxx-small":!e.isInline}),"aria-label":e.assistiveText.selectedListboxLabel,role:e.listboxRole,"aria-orientation":e.listboxAriaOrientation},e.selection.map((function(t,n){var r,a=n===e.activeOptionIndex,i=function(e){var t=e.icon,n=null;return t&&(_m(t)||t instanceof HTMLElement?n=t:t.category&&t.name&&(n=o.a.createElement(jn,{category:t.category,name:t.name,title:t.title||e.label}))),n}(t),s=i?null:function(e){var t=e.avatar,n=null;return t&&(_m(t)||t instanceof HTMLElement?n=t:t.imgSrc&&(n=o.a.createElement(Za,{imgSrc:t.imgSrc,title:t.title||e.label,variant:t.variant||"user"}))),n}(t);return o.a.createElement("li",{role:"presentation",className:"slds-listbox__item",key:"".concat(e.id,"-list-item-").concat(t.id)},o.a.createElement(Om,{active:a&&e.listboxHasFocus,assistiveText:{remove:e.assistiveText.removePill},avatar:s,bare:t.bare||e.isBare,error:t.error,events:{onBlur:e.events.onBlurPill,onClick:"function"==typeof e.events.onClickPill?function(t,r){e.events.onClickPill(t,wm(wm({},r),{},{index:n}))}:null,onFocus:function(t,r){e.events.onPillFocus(t,wm(wm({},r),{},{index:n}))},onRequestFocusOnNextPill:e.events.onRequestFocusOnNextPill,onRequestFocusOnPreviousPill:e.events.onRequestFocusOnPreviousPill,onRequestRemove:function(t,r){e.events.onRequestRemove(t,wm(wm({},r),{},{index:n}))},onRequestFocus:e.events.onRequestFocus},eventData:{option:t},hasError:t.error,icon:i,labels:{label:t.label,title:null!==(r=t.title)&&void 0!==r?r:t.label,removeTitle:e.labels.removePillTitle},requestFocus:e.listboxHasFocus,tabIndex:a?0:-1}))})))):null};Cm.displayName="SelectedListBox",Cm.propTypes=Em,Cm.defaultProps={listboxAriaOrientation:"horizontal",listboxRole:"listbox",renderAtSelectionLength:1};var jm=Cm,Nm=function(e){var t,n=e.key,r=e.keyBuffer,o=e.keyCode,a=e.options,i=n||String.fromCharCode(o),s=r(i=/^[ -~]$/.test(i)?i.toLowerCase():null),l=0;return s.length>1&&new RegExp("^[".concat(bs()(i),"]+$")).test(s)&&(l=s.length),a.forEach((function(e,n){var r=String(e.label).toLowerCase();(void 0===t&&r.substr(0,s.length)===s||l>0&&r.substr(0,1)===i)&&(l-=1,t=n)})),t},Tm=function(e){var t=e.container,n=e.focusedIndex,r=e.itemTag,o=void 0===r?"li":r,a=e.scrollPadding,i=void 0===a?4:a,s=t.querySelector("".concat(o,":nth-child(").concat(n+1,")"));s&&(s.offsetHeight-t.scrollTop+s.offsetTop>=t.offsetHeight?t.scrollTop=s.offsetHeight+s.offsetTop-t.offsetHeight+i:s.offsetTop<=t.scrollTop&&(t.scrollTop=s.offsetTop-i))};var Pm,km=function(){},Rm=n(45);function Im(e){return(Im="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dm(){return(Dm=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Am(e){return function(e){if(Array.isArray(e))return Lm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Lm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lm(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bm(Object(n),!0).forEach((function(t){zm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hm(e,t){return(Hm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vm(e);if(t){var o=Vm(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Km(this,n)}}function Km(e,t){return!t||"object"!==Im(t)&&"function"!=typeof t?Wm(e):t}function Wm(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vm(e){return(Vm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Um="undefined"!=typeof document,Gm={assistiveText:i.a.shape({label:i.a.string,loadingMenuItems:i.a.string,optionSelectedInMenu:i.a.string,popoverLabel:i.a.string,removeSingleSelectedOption:i.a.string,removePill:i.a.string,selectedListboxLabel:i.a.string}),"aria-describedby":i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameContainer:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameMenu:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameMenuSubHeader:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onBlur:i.a.func,onChange:i.a.func,onClose:i.a.func,onFocus:i.a.func,onOpen:i.a.func,onRequestClose:i.a.func,onRequestOpen:i.a.func,onRequestRemoveSelectedOption:i.a.func,onSelect:i.a.func,onSubmit:i.a.func}),errorText:i.a.string,fieldLevelHelpTooltip:i.a.node,hasDeselect:i.a.bool,hasInputSpinner:i.a.bool,hasMenuSpinner:i.a.bool,hasStaticAlignment:i.a.bool,id:i.a.string,input:i.a.node,labels:i.a.shape({deselectOption:i.a.string,label:i.a.oneOfType([i.a.node,i.a.string]),multipleOptionsSelected:i.a.string,noOptionsFound:i.a.oneOfType([i.a.node,i.a.string]),placeholder:i.a.string,placeholderReadOnly:i.a.string,removePillTitle:i.a.string}),isOpen:i.a.bool,inheritWidthOf:i.a.oneOf(["target","menu","none"]),onRenderMenuItem:i.a.func,inputRef:i.a.func,menuPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),menuMaxWidth:i.a.string,multiple:i.a.bool,options:i.a.arrayOf(i.a.PropTypes.shape({id:i.a.string.isRequired,icon:i.a.node,label:i.a.string,subTitle:i.a.string,title:i.a.string,type:i.a.string,disabled:i.a.bool,tooltipContent:i.a.node})),menuItemVisibleLength:i.a.oneOf([5,7,10]),predefinedOptionsOnly:i.a.bool,popover:i.a.node,required:i.a.bool,selection:i.a.arrayOf(i.a.PropTypes.shape({id:i.a.string.isRequired,icon:i.a.node,label:i.a.string,subTitle:i.a.string,type:i.a.string})).isRequired,selectedListboxRef:i.a.func,singleInputDisabled:i.a.bool,tooltipMenuItemDisabled:i.a.element,value:i.a.string,defaultValue:i.a.string,optionsAddItem:i.a.arrayOf(i.a.shape({id:i.a.string,icon:i.a.node,label:i.a.oneOfType([i.a.string,i.a.func])})),optionsSearchEntity:i.a.arrayOf(i.a.shape({id:i.a.string,icon:i.a.node,label:i.a.oneOfType([i.a.string,i.a.func])})),entityCombobox:i.a.node,variant:i.a.oneOf(["base","inline-listbox","popover","readonly"])},Ym={assistiveText:{loadingMenuItems:"Loading",optionSelectedInMenu:"Current Selection:",removeSingleSelectedOption:"Remove selected option",removePill:", Press delete or backspace to remove",selectedListboxLabel:"Selected Options:"},deselectOption:!1,events:{},labels:{deselectOption:"None",cancelButton:"Cancel",doneButton:"Done",noOptionsFound:"No matches found.",optionDisabledTooltipLabel:"This option is disabled.",placeholderReadOnly:"Select an Option",removePillTitle:"Remove"},inheritWidthOf:"target",menuPosition:"absolute",optionsSearchEntity:[],optionsAddItem:[],required:!1,selection:[],singleInputDisabled:!1,variant:"base"},Xm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hm(e,t)}(i,e);var t,n,r,a=qm(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),zm(Wm(t=a.call(this,e)),"getCustomPopoverProps",(function(e,n){var r=n.assistiveText,a=n.labels,i=o.a.createElement("div",null,o.a.createElement("div",{className:"slds-assistive-text",id:"".concat(t.getId(),"-label")},r.popoverLabel),e),s=o.a.createElement("div",null,o.a.createElement(ar,{label:a.cancelButton,onClick:function(e){t.handleClose(e,{trigger:"cancel"})}}),o.a.createElement(ar,{label:a.doneButton,variant:"brand",onClick:t.handleClose})),l={ariaLabelledby:"".concat(t.getId(),"-label"),align:"bottom",body:i,className:"slds-popover_full-width",footer:s,footerClassName:"slds-popover__footer_form",hasNoNubbin:!0,id:t.getId(),isOpen:t.state.isOpen,hasNoTriggerStyles:!0,onOpen:t.handleOpen,onClose:t.handleClose,onRequestClose:t.handleClose},c=ur()(l,t.props.popover?t.props.popover.props:{});return c.body=i,delete c.children,c})),zm(Wm(t),"getId",(function(){return t.props.id||t.generatedId})),zm(Wm(t),"getIsActiveOption",(function(){return t.state.activeOption&&-1!==t.state.activeOptionIndex})),zm(Wm(t),"getIsOpen",(function(){return!!("boolean"==typeof t.props.isOpen?t.props.isOpen:t.state.isOpen)})),zm(Wm(t),"getNewActiveOptionIndex",(function(e){var t=e.activeOptionIndex,n=e.offset,r=e.options,o=t+n,a=r.length>o&&o>=0&&"separator"===r[o].type?o+n:o;return r.length>o&&o>=0?a:t})),zm(Wm(t),"getOptions",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.props,n=e,r=ur()({},Ym.labels,t.props.labels),o={id:t.deselectId,label:r.deselectOption,value:"",type:"deselect"},a=n.optionsSearchEntity.map((function(e){return Fm(Fm({},e),{},{type:"header"})})),i=e.optionsAddItem.map((function(e){return Fm(Fm({},e),{},{type:"footer"})})),s=[].concat(Am(a.length>0?a:[]),Am(e.hasDeselect?[o]:[]),Am(n.options&&n.options.length>0?n.options:[]),Am(i.length>0?i:[]));return s})),zm(Wm(t),"getTargetElement",(function(){return t.inputRef})),zm(Wm(t),"setInputRef",(function(e){t.inputRef=e,t.state.inputRendered||t.setState({inputRendered:!0}),t.props.inputRef&&t.props.inputRef(e)})),zm(Wm(t),"setSelectedListboxRef",(function(e){t.selectedListboxRef=e,t.props.selectedListboxRef&&t.props.selectedListboxRef(e)})),zm(Wm(t),"handleBlurPill",(function(){t.setState({listboxHasFocus:!1})})),zm(Wm(t),"handleClickOutside",(function(e){t.handleRequestClose(e,{})})),zm(Wm(t),"handleClose",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.trigger,o=t.getIsOpen();o&&(Pm===Wm(t)&&(Pm=void 0),t.setState({activeOption:void 0,activeOptionIndex:-1,isOpen:!1}),"popover"===t.props.variant&&"cancel"===r&&t.props.popover.props.onClose&&t.props.popover.props.onClose(e,{trigger:r}),t.props.events.onClose&&t.props.events.onClose(e,{}))})),zm(Wm(t),"handleInputBlur",(function(e){setTimeout((function(){var n=!!Um&&document.activeElement;n&&"DIV"===n.tagName&&n.id==="".concat(t.getId(),"-listbox")?t.inputRef&&t.inputRef.focus():t.props.popover||t.handleClose(e)}),200),t.props.events.onBlur&&t.props.events.onBlur(e)})),zm(Wm(t),"handleInputChange",(function(e){t.requestOpenMenu(),t.props.events&&t.props.events.onChange&&t.props.events.onChange(e,{value:e.target.value})})),zm(Wm(t),"handleInputFocus",(function(e){t.props.events.onFocus&&t.props.events.onFocus(e,{})})),zm(Wm(t),"handleInputSubmit",(function(e){t.state.activeOption&&t.state.activeOption.disabled||(!t.state.activeOption||"header"!==t.state.activeOption.type&&"footer"!==t.state.activeOption.type?t.getIsActiveOption()?t.handleSelect(e,{option:t.state.activeOption,selection:t.props.selection}):!t.props.predefinedOptionsOnly&&""!==e.target.value&&t.props.events.onSubmit&&t.props.events.onSubmit(e,{value:e.target.value}):t.state.activeOption.onClick(e))})),zm(Wm(t),"handleKeyDown",(function(e){var n,r=(zm(n={},zt.DOWN,{callback:t.handleKeyDownDown}),zm(n,zt.ENTER,{callback:t.handleInputSubmit}),zm(n,zt.ESCAPE,{callback:t.handleClose}),zm(n,zt.UP,{callback:t.handleKeyDownUp}),n);"readonly"===t.props.variant&&(t.props.selection.length>2?r[zt.TAB]={callback:t.handleKeyDownTab}:r[zt.TAB]=void 0,r.other={callback:t.handleKeyDownOther,stopPropagation:!1});var o=t.getIsOpen();$h(e,{callbacks:r,stopPropagation:o})})),zm(Wm(t),"handleKeyDownDown",(function(e){e.shiftKey||t.openDialog(),"popover"!==t.props.variant&&t.handleNavigateListboxMenu(e,{direction:"next"})})),zm(Wm(t),"handleKeyDownTab",(function(){t.selectedListboxRef&&t.setState({listboxHasFocus:!0})})),zm(Wm(t),"handleKeyDownUp",(function(e){!e.shiftKey&&t.getIsOpen()&&t.handleNavigateListboxMenu(e,{direction:"previous"})})),zm(Wm(t),"handleKeyDownOther",(function(e){var n=Nm({key:e.key,keyBuffer:t.menuKeyBuffer,keyCode:e.keyCode,options:t.getOptions()});void 0!==n&&(t.getIsOpen()&&Tm({container:t.menuRef,focusedIndex:n}),t.setState({activeOption:t.getOptions()[n],activeOptionIndex:n}))})),zm(Wm(t),"handleNavigateListboxMenu",(function(e,n){var r=n.direction,o={next:1,previous:-1};t.setState((function(e){var n=t.getNewActiveOptionIndex({activeOptionIndex:e.activeOptionIndex,offset:o[r],options:t.getOptions()});return t.getIsOpen()&&Tm({container:t.menuRef,focusedIndex:n}),{activeOption:t.getOptions()[n],activeOptionIndex:n}}))})),zm(Wm(t),"handleNavigateSelectedListbox",(function(e,n){var r=n.direction,o={next:1,previous:-1};t.setState((function(e){var n,a=e.activeSelectedOptionIndex+1===t.props.selection.length&&"next"===r,i=0===e.activeSelectedOptionIndex&&"previous"===r;if(a)n={activeSelectedOption:t.props.selection[0],activeSelectedOptionIndex:0,listboxHasFocus:!0};else if(i)n={activeSelectedOption:t.props.selection[t.props.selection.length-1],activeSelectedOptionIndex:t.props.selection.length-1,listboxHasFocus:!0};else{var s=t.getNewActiveOptionIndex({activeOptionIndex:e.activeSelectedOptionIndex,offset:o[r],options:t.props.selection});n={activeSelectedOption:t.props.selection[s],activeSelectedOptionIndex:s,listboxHasFocus:!0}}return n}))})),zm(Wm(t),"handleOpen",(function(e,n){if(t.getIsOpen()){if(Pm=Wm(t),t.setState({isOpen:!0}),t.props.events.onOpen&&t.props.events.onOpen(e,n),"readonly"===t.props.variant){var r=ad()(t.getOptions(),(function(e){return jt()(e,t.props.selection[0])}));t.setState({activeOptionIndex:r,activeOption:t.props.selection[0]}),null!==t.menuRef&&Tm({container:t.menuRef,focusedIndex:r})}}else Pm&&Ar()(Pm.handleClose)&&Pm.handleClose()})),zm(Wm(t),"handlePillFocus",(function(e,n){var r=n.option,o=n.index;t.state.listboxHasFocus||t.setState({activeSelectedOption:r,activeSelectedOptionIndex:o,listboxHasFocus:!0})})),zm(Wm(t),"handleRemoveSelectedOption",(function(e,n){var r=n.option,o=n.index;e.preventDefault();var a=1===t.props.selection.length,i=2===t.props.selection.length&&"readonly"===t.props.variant&&t.props.multiple,s=o+1===t.props.selection.length;(a||i)&&t.inputRef?t.inputRef.focus():s?t.setState({activeSelectedOption:t.props.selection[o-1],activeSelectedOptionIndex:o-1,listboxHasFocus:!0}):t.setState({activeSelectedOption:t.props.selection[o+1],activeSelectedOptionIndex:o,listboxHasFocus:!0}),t.props.events.onRequestRemoveSelectedOption&&t.props.events.onRequestRemoveSelectedOption(e,{selection:Hh()(t.props.selection,r)})})),zm(Wm(t),"handleRequestClose",(function(e,n){t.props.events.onRequestClose&&t.props.events.onRequestClose(e,n),t.getIsOpen()&&t.handleClose(e,{trigger:"cancel"})})),zm(Wm(t),"handleRequestFocusSelectedListbox",(function(e,n){var r=n.ref;r&&(t.activeSelectedOptionRef=r,t.activeSelectedOptionRef.focus())})),zm(Wm(t),"handleSelect",(function(e,n){var r,o=n.selection,a=n.option,i=t.isSelected({selection:o,option:a}),s=!t.props.multiple&&!i,l=t.props.multiple&&!i;r=a.id===t.deselectId?[]:s?[a]:l?[].concat(Am(t.props.selection),[a]):Hh()(t.props.selection,a),t.props.events.onSelect&&t.props.events.onSelect(e,{selection:r}),t.handleClose()})),zm(Wm(t),"isSelected",(function(e){var t=e.selection,n=e.option;return!!Fh()(t,n)})),zm(Wm(t),"openDialog",(function(){t.props.events.onRequestOpen?t.props.events.onRequestOpen():t.setState({isOpen:!0})})),zm(Wm(t),"requestOpenMenu",(function(){(!t.props.multiple&&0===t.props.selection.length&&"inline-listbox"===t.props.variant||t.props.multiple||"readonly"===t.props.variant)&&t.openDialog()})),zm(Wm(t),"renderBase",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=e.userDefinedProps;return o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-combobox_container"},o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"listbox","aria-owns":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0},o.a.createElement(eu,Dm({"aria-autocomplete":"list","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0,"aria-activedescendant":t.state.activeOption?"".concat(t.getId(),"-listbox-option-").concat(t.state.activeOption.id):null,"aria-describedby":t.getErrorId(),autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},hasSpinner:t.props.hasInputSpinner,iconRight:o.a.createElement(Ac,{category:"utility",name:"search",title:r.inputIconTitle}),id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.openDialog()},onChange:t.handleInputChange,placeholder:r.placeholder,defaultValue:a.defaultValue,readOnly:!(!a.predefinedOptionsOnly||!t.state.activeOption),required:a.required,role:"textbox",value:a.predefinedOptionsOnly&&t.state.activeOption&&t.state.activeOption.label||a.value},i.input)),t.getDialog({menuRenderer:t.renderMenu({assistiveText:n,labels:r})}))),o.a.createElement(jm,{activeOption:t.state.activeSelectedOption,activeOptionIndex:t.state.activeSelectedOptionIndex,assistiveText:n,events:{onBlurPill:t.handleBlurPill,onPillFocus:t.handlePillFocus,onRequestFocus:t.handleRequestFocusSelectedListbox,onRequestFocusOnNextPill:t.handleNavigateSelectedListbox,onRequestFocusOnPreviousPill:t.handleNavigateSelectedListbox,onRequestRemove:t.handleRemoveSelectedOption},id:"".concat(t.getId(),"-selected-listbox"),labels:r,selectedListboxRef:t.setSelectedListboxRef,selection:a.selection,listboxHasFocus:t.state.listboxHasFocus}),a.errorText&&o.a.createElement("div",{className:"slds-has-error"},o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help slds-has-error"},a.errorText)))})),zm(Wm(t),"renderInlineMultiple",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=e.userDefinedProps;return o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:l()("slds-combobox_container",{"slds-has-inline-listbox":a.selection.length})},a.selection.length?o.a.createElement(jm,{activeOption:t.state.activeSelectedOption,activeOptionIndex:t.state.activeSelectedOptionIndex,assistiveText:n,containerRole:"listbox",containerAriaOrientation:"horizontal",listboxRole:"group",listboxAriaOrientation:null,events:{onBlurPill:t.handleBlurPill,onPillFocus:t.handlePillFocus,onRequestFocus:t.handleRequestFocusSelectedListbox,onRequestFocusOnNextPill:t.handleNavigateSelectedListbox,onRequestFocusOnPreviousPill:t.handleNavigateSelectedListbox,onRequestRemove:t.handleRemoveSelectedOption},id:"".concat(t.getId(),"-selected-listbox"),labels:r,selectedListboxRef:t.setSelectedListboxRef,selection:a.selection,listboxHasFocus:t.state.listboxHasFocus}):null,o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"listbox"},o.a.createElement(eu,Dm({"aria-autocomplete":"list","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0,"aria-activedescendant":t.state.activeOption?"".concat(t.getId(),"-listbox-option-").concat(t.state.activeOption.id):null,"aria-describedby":t.getErrorId(),defaultValue:a.defaultValue,autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},hasSpinner:t.props.hasInputSpinner,iconRight:o.a.createElement(Ac,{category:"utility",name:"search",title:r.inputIconTitle}),id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.openDialog()},onChange:t.handleInputChange,placeholder:r.placeholder,readOnly:!(!a.predefinedOptionsOnly||!t.state.activeOption),required:a.required,role:"textbox",value:a.predefinedOptionsOnly&&t.state.activeOption&&t.state.activeOption.label||a.value},i.input)),t.getDialog({menuRenderer:t.renderMenu({assistiveText:n,labels:r})}),a.errorText&&o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help"},a.errorText))))})),zm(Wm(t),"renderInlineSingle",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=e.userDefinedProps,s=a.selection[0]&&a.selection[0].icon?o.a.cloneElement(a.selection[0].icon,{containerClassName:"slds-combobox__input-entity-icon"}):null,c=a.selection[0]&&a.selection[0].label?a.selection[0].label:a.value;return o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:l()("slds-combobox_container",{"slds-has-inline-listbox":a.selection.length})},o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"listbox"},o.a.createElement(eu,Dm({defaultValue:a.defaultValue,"aria-autocomplete":"list","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0,"aria-activedescendant":t.state.activeOption?"".concat(t.getId(),"-listbox-option-").concat(t.state.activeOption.id):null,"aria-describedby":t.getErrorId(),autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},disabled:t.props.singleInputDisabled,hasSpinner:t.props.hasInputSpinner,iconRight:a.selection.length?o.a.createElement(Ac,{assistiveText:{icon:n.removeSingleSelectedOption},buttonRef:function(e){t.buttonRef=e},category:"utility",iconPosition:"right",name:"close",onClick:function(e){t.handleRemoveSelectedOption(e,{option:a.selection[0]})}}):o.a.createElement(Ac,{category:"utility",name:"search"}),iconLeft:s,id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.requestOpenMenu()},onChange:function(e){a.selection.length||t.handleInputChange(e)},placeholder:r.placeholder,readOnly:!(!a.predefinedOptionsOnly||!t.state.activeOption)||!!a.selection.length,required:a.required,role:"textbox",value:a.predefinedOptionsOnly?t.state.activeOption&&t.state.activeOption.label||a.value:c},i.input)),t.getDialog({menuRenderer:t.renderMenu({assistiveText:n,labels:r})}),a.errorText&&o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help"},a.errorText))))})),zm(Wm(t),"renderMenu",(function(e){var n=e.assistiveText,r=e.labels,a="readonly"===t.props.variant?5:null;return o.a.createElement(Xh,{assistiveText:n,activeOption:t.state.activeOption,activeOptionIndex:t.state.activeOptionIndex,classNameMenu:t.props.classNameMenu,classNameMenuSubHeader:t.props.classNameMenuSubHeader,clearActiveOption:t.clearActiveOption,deselectId:t.deselectId,inheritWidthOf:t.props.inheritWidthOf,inputId:t.getId(),inputValue:t.props.value,isSelected:t.isSelected,itemVisibleLength:t.props.menuItemVisibleLength||a,labels:r,hasMenuSpinner:t.props.hasMenuSpinner,hasDeselect:t.props.hasDeselect,menuItem:t.props.menuItem,menuPosition:t.props.menuPosition,menuRef:function(e){t.menuRef=e},maxWidth:t.props.menuMaxWidth,options:t.getOptions(),optionsAddItem:t.props.optionsAddItem,optionsSearchEntity:t.props.optionsSearchEntity,onSelect:t.handleSelect,onRenderMenuItem:t.props.onRenderMenuItem?t.props.onRenderMenuItem:t.props.menuItem,selection:t.props.selection,tooltipMenuItemDisabled:t.props.tooltipMenuItemDisabled,variant:{base:"icon-title-subtitle","inline-listbox":"icon-title-subtitle",readonly:"checkbox"}[t.props.variant]})})),zm(Wm(t),"renderPopover",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=t.getCustomPopoverProps(t.props.popover.props.body,{assistiveText:n,labels:r});return o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-combobox_container"},o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"dialog"},o.a.createElement(wh,i,o.a.createElement(eu,{"aria-autocomplete":"none","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-popover"):void 0,"aria-describedby":t.getErrorId(),autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},iconRight:o.a.createElement(Ac,{category:"utility",name:"down",variant:"combobox"}),id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.openDialog()},onChange:t.handleInputChange,placeholder:r.placeholder,readOnly:!0,required:a.required,role:"textbox",value:a.value})))),a.errorText&&o.a.createElement("div",{className:"slds-has-error"},o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help slds-has-error"},a.errorText)))})),zm(Wm(t),"renderReadOnlyMultiple",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=e.userDefinedProps,s=a.selection.length>1?r.multipleOptionsSelected||"".concat(a.selection.length," options selected"):a.selection[0]&&a.selection[0].label||"";return o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-combobox_container"},o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"listbox"},o.a.createElement(eu,Dm({defaultValue:a.defaultValue,"aria-autocomplete":"list","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0,"aria-activedescendant":t.state.activeOption?"".concat(t.getId(),"-listbox-option-").concat(t.state.activeOption.id):null,"aria-describedby":t.getErrorId(),autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},iconRight:o.a.createElement(Ac,{category:"utility",name:"down",variant:"combobox"}),id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.requestOpenMenu()},onChange:function(e){a.selection.length||t.handleInputChange(e)},placeholder:r.placeholderReadOnly,readOnly:!0,required:a.required,role:"textbox",value:s},i.input)),t.getDialog({menuRenderer:t.renderMenu({assistiveText:n,labels:r})}))),o.a.createElement(jm,{activeOption:t.state.activeSelectedOption,activeOptionIndex:t.state.activeSelectedOptionIndex,assistiveText:n,events:{onBlurPill:t.handleBlurPill,onPillFocus:t.handlePillFocus,onRequestFocus:t.handleRequestFocusSelectedListbox,onRequestFocusOnNextPill:t.handleNavigateSelectedListbox,onRequestFocusOnPreviousPill:t.handleNavigateSelectedListbox,onRequestRemove:t.handleRemoveSelectedOption},id:"".concat(t.getId(),"-selected-listbox"),labels:r,selectedListboxRef:t.setSelectedListboxRef,selection:a.selection,listboxHasFocus:t.state.listboxHasFocus,variant:t.props.variant,renderAtSelectionLength:2}),a.errorText&&o.a.createElement("div",{className:"slds-has-error"},o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help slds-has-error"},a.errorText)))})),zm(Wm(t),"renderReadOnlySingle",(function(e){var n=e.assistiveText,r=e.labels,a=e.props,i=e.userDefinedProps,s=t.state.activeOption&&t.state.activeOption.label,c=a.selection[0]&&a.selection[0].label,u=s||c||"";return a.selection[0]&&""===a.selection[0].value&&(u=""),o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-combobox_container"},o.a.createElement("div",{className:l()("slds-combobox","slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-is-open":t.getIsOpen()},{"slds-has-error":a.errorText},a.className),role:"combobox","aria-expanded":t.getIsOpen(),"aria-haspopup":"listbox"},o.a.createElement(eu,Dm({defaultValue:a.defaultValue,"aria-autocomplete":"list","aria-controls":t.getIsOpen()?"".concat(t.getId(),"-listbox"):void 0,"aria-activedescendant":t.state.activeOption?"".concat(t.getId(),"-listbox-option-").concat(t.state.activeOption.id):null,"aria-describedby":t.getErrorId(),autoComplete:"off",className:"slds-combobox__input",containerProps:{className:"slds-combobox__form-element",role:"none"},disabled:t.props.singleInputDisabled,iconRight:o.a.createElement(Ac,{category:"utility",name:"down",variant:"combobox"}),id:t.getId(),onFocus:t.handleInputFocus,onBlur:t.handleInputBlur,onKeyDown:t.handleKeyDown,inputRef:t.setInputRef,onClick:function(){t.requestOpenMenu()},onChange:function(e){a.selection.length||t.handleInputChange(e)},placeholder:r.placeholderReadOnly,readOnly:!0,required:a.required,role:"textbox",value:u},i.input)),t.getDialog({menuRenderer:t.renderMenu({assistiveText:n,labels:r})}),a.errorText&&o.a.createElement("div",{id:t.getErrorId(),className:"slds-form-element__help"},a.errorText))))})),t.state={activeOption:void 0,activeOptionIndex:-1,activeSelectedOption:t.props.selection&&t.props.selection[0]||void 0,activeSelectedOptionIndex:0,listboxHasFocus:!1,isOpen:"boolean"==typeof e.isOpen&&e.isOpen},t.menuKeyBuffer=new hs,t.menuRef=void 0,t.selectedListboxRef=null,km(T,e,Rm),t.generatedId=u.a.generate(),t.generatedErrorId=u.a.generate(),t.deselectId="".concat(t.getId(),"-deselect"),t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t=this;if(jt()(this.getOptions(),this.getOptions(e)))this.props.isOpen!==e.isOpen&&this.setState({activeOption:void 0,activeOptionIndex:-1,isOpen:e.isOpen});else{var n=ad()(this.getOptions(e),(function(e){return jt()(e,t.state.activeOption)}));-1!==n?this.setState({activeOptionIndex:n}):this.setState({activeOption:void 0,activeOptionIndex:-1})}this.props.selection&&0===this.props.selection.length&&e.selection.length>0&&this.setState({activeSelectedOption:e.selection[0],activeSelectedOptionIndex:0})}},{key:"componentWillUnmount",value:function(){Pm===this&&(Pm=void 0)}},{key:"getDialog",value:function(e){var t=e.menuRenderer,n=this.props.isInline?"relative":this.props.menuPosition;return!this.props.disabled&&this.getIsOpen()?o.a.createElement(bn,{align:"bottom left",context:this.context,hasStaticAlignment:this.props.hasStaticAlignment,inheritWidthOf:this.props.inheritWidthOf,onClose:this.handleClose,onMouseDown:function(e){e.preventDefault()},onOpen:this.handleOpen,onRequestTargetElement:this.getTargetElement,position:n,containerProps:{id:"".concat(this.getId(),"-listbox"),role:"listbox"}},t):null}},{key:"getErrorId",value:function(){return this.props["aria-describedby"]||this.props.errorText&&this.generatedErrorId}},{key:"render",value:function(){var e=this.props,t=ur()({},Ym.assistiveText,e.assistiveText),n=ur()({},Ym.labels,this.props.labels),r=n.label||t&&t.label,a={};e.input&&(a.input=e.input.props);var i={assistiveText:t,labels:n,props:this.props,userDefinedProps:a},s=this.props.multiple?"multiple":"single",c={base:{multiple:this.renderBase,single:this.renderBase},"inline-listbox":{multiple:this.renderInlineMultiple,single:this.renderInlineSingle},popover:{multiple:this.renderPopover,single:this.renderPopover},readonly:{multiple:this.renderReadOnlyMultiple,single:this.renderReadOnlySingle}},u=c[this.props.variant][s],p=o.a.createElement("div",{className:l()("slds-form-element",e.classNameContainer)},e.entityCombobox?null:o.a.createElement(Zh,{assistiveText:this.props.assistiveText,htmlFor:this.getId(),label:n.label,required:e.required}),this.props.fieldLevelHelpTooltip&&r?o.a.createElement(du,{fieldLevelHelpTooltip:this.props.fieldLevelHelpTooltip}):null,u?c[this.props.variant][s](i):c.base.multiple(i));return e.entityCombobox?o.a.createElement("div",{className:"slds-form-element"},o.a.createElement(Zh,{assistiveText:e.assistiveText,htmlFor:this.getId(),label:n.label,required:e.required}),o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-combobox-group"},o.a.createElement("div",{className:"slds-combobox_object-switcher slds-combobox-addon_start"},e.entityCombobox),o.a.createElement("div",{className:"slds-combobox_container slds-combobox-addon_end"},p)))):p}}])&&Mm(t.prototype,n),r&&Mm(t,r),i}(o.a.Component);Xm.contextType=pt,Xm.displayName=T,Xm.propTypes=Gm,Xm.defaultProps=Ym;var Qm=Xm,Jm=ct(Ci(Qm,{excludeScrollbar:!0})),Zm=function(e){var t=e.inputValue,n=e.limit,r=void 0===n?10:n,o=e.options,a=e.selection,i=new RegExp(bs()(t),"ig");return o.filter((function(e){var n=!!e.label&&e.label.match(i),r=!!e.subTitle&&e.subTitle.match(i),o="separator"===e.type,s=!a.some((function(t){return t.id===e.id}));return(!t||o||n||r)&&s})).splice(0,r)},$m=n(46),eb=n.n($m);var tb=function(){},nb=n(47),rb=n(48),ob=n(14),ab=n.n(ob),ib=o.a.createContext({rowIndex:null,columnIndex:null}),sb=o.a.createContext({activeCell:{rowIndex:0,columnIndex:0},activeElement:null,mode:null,tableHasFocus:!1,changeActiveCell:function(){},changeActiveElement:function(){},handleKeyDown:function(){},registerInteractiveElement:function(){},allowKeyboardNavigation:!0,setAllowKeyboardNavigation:function(){}});function lb(e,t,n){var o=e.activeCell.rowIndex===t.rowIndex&&e.activeCell.columnIndex===t.columnIndex,a=n&&e.tableHasFocus&&o,i=e.changeActiveCell,s=e.handleKeyDown,l=Object(r.useCallback)((function(){n&&e.allowKeyboardNavigation&&i(t.rowIndex,t.columnIndex)}),[n,e.allowKeyboardNavigation,i,t.rowIndex,t.columnIndex]),c=Object(r.useCallback)((function(t){n&&e.allowKeyboardNavigation&&s(t)}),[n,e.allowKeyboardNavigation,s]);return{tabIndex:n&&o&&!e.activeElement&&e.allowKeyboardNavigation?"0":void 0,hasFocus:a,handleFocus:l,handleKeyDown:c}}var cb=function(e){var t=lb(Object(r.useContext)(sb),Object(r.useContext)(ib),e.fixedLayout),n=t.tabIndex,a=t.hasFocus,i=t.handleFocus,s=t.handleKeyDown,c=o.a.isValidElement(e.children)?e.children.props.children:e.children,u=o.a.createElement("div",{className:l()({"slds-truncate":e.fixedLayout}),title:e.title||c},e.children),p=l()(e.className,{"slds-has-focus":a}),f=function(e){e&&a&&e.focus()},d=o.a.createElement("td",{className:p,"data-label":e.label,onFocus:i,onKeyDown:s,ref:f,role:e.fixedLayout?"gridcell":null,style:e.width?{width:e.width}:null,tabIndex:n,headers:e.headerId},u);return e.primaryColumn&&(d=o.a.createElement("th",{className:p,ref:f,"data-label":e.label,role:e.fixedLayout?"gridcell":null,tabIndex:n,style:e.width?{width:e.width}:null,onFocus:i,onKeyDown:s},u)),d};cb.displayName=k,cb.propTypes={children:i.a.oneOfType([i.a.node,i.a.string]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),fixedLayout:i.a.bool,item:i.a.object,primaryColumn:i.a.bool,property:i.a.string,title:i.a.string,width:i.a.string};var ub=cb;function pb(e){return(pb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function db(e,t){return(db=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bb(e);if(t){var o=bb(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mb(this,n)}}function mb(e,t){return!t||"object"!==pb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bb(e){return(bb=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&db(e,t)}(n,e);var t=hb(n);function n(){return fb(this,n),t.apply(this,arguments)}return n}(o.a.Component);yb.displayName=R,yb.propTypes={children:i.a.element,isDefaultSortDescending:i.a.bool,isSorted:i.a.bool,label:i.a.oneOfType([i.a.string,i.a.node]),primaryColumn:i.a.bool,property:i.a.string,sortable:i.a.bool,sortDirection:i.a.oneOf(["desc","asc"]),title:i.a.string,truncate:i.a.bool,width:i.a.string};var vb=yb,gb=function(e){return o.a.createElement("div",{className:"slds-cell-fixed",style:{display:"flex",flexDirection:"row",flexWrap:"nowrap",lineHeight:"2rem"}},e.children)};var Ob=function(){};function _b(){return(_b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sb=function(e){var t={};return Object.entries(e).forEach((function(e){var n=xb(e,2),r=n[0],o=n[1];-1===["onRequestFocus","onOpen","onClose","requestFocus"].indexOf(r)&&(t[r]=o)})),o.a.createElement("a",_b({ref:function(t){t&&e.requestFocus&&e.onRequestFocus&&e.onRequestFocus(t)},onKeyDown:function(t){return t.keyCode===zt.ENTER&&e.onClick?e.onClick(t):void 0}},t),e.children)},Eb=Object.freeze({NAVIGATION:"navigation",ACTIONABLE:"actionable"});function Cb(e){return(Cb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jb(Object(n),!0).forEach((function(t){Tb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pb(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kb(e,t){return(kb=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rb(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Db(e);if(t){var o=Db(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ib(this,n)}}function Ib(e,t){return!t||"object"!==Cb(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Db(e){return(Db=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ab=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kb(e,t)}(s,t);var n,r,a,i=Rb(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=i.call(this,e)).elementId=u.a.generate(),t}return n=s,(r=[{key:"onFocus",value:function(e){if(e.activeElement!==this.elementId&&e.changeActiveElement(this.elementId),this.props.onFocus){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.props).onFocus.apply(t,r)}}},{key:"onRequestFocus",value:function(e,t){if(e.tableHasFocus&&(t.focus(),this.props.onRequestFocus)){for(var n,r=arguments.length,o=new Array(r>2?r-2:0),a=2;a<r;a++)o[a-2]=arguments[a];(n=this.props).onRequestFocus.apply(n,o)}}},{key:"onOpen",value:function(e){if(e.setAllowKeyboardNavigation(!1),this.props.onOpen){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.props).onOpen.apply(t,r)}}},{key:"onClose",value:function(e){if(e.setAllowKeyboardNavigation(!0),this.props.onClose){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=this.props).onClose.apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.onFocus,r=this.onRequestFocus,a=this.onOpen,i=this.onClose;return o.a.createElement(sb.Consumer,null,(function(s){return o.a.createElement(ib.Consumer,null,(function(l){s.registerInteractiveElement(l.rowIndex,l.columnIndex,t.elementId);var c=s.mode===Eb.ACTIONABLE&&s.activeElement===t.elementId,u=s.mode===Eb.ACTIONABLE?"0":"-1",p=s.allowKeyboardNavigation?{onFocus:n.bind(t,s),onRequestFocus:r.bind(t,s),requestFocus:c,tabIndex:u}:{};return o.a.createElement(e,Nb(Nb(Nb({},t.props),{onOpen:a.bind(t,s),onClose:i.bind(t,s)}),p))}))}))}}])&&Pb(n.prototype,r),a&&Pb(n,a),s}(o.a.Component);return t.displayName="InteractiveElement".concat(e.displayName),t},Lb=Ab(Sb);function Bb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fb(e){return(Fb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Hb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hb(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var qb={assistiveText:i.a.shape({actionsHeader:i.a.string,columnSort:i.a.string,columnSortedAscending:i.a.string,columnSortedDescending:i.a.string,selectAllRows:i.a.string,selectRow:i.a.string}),cellRef:i.a.func,fixedHeader:i.a.bool,id:i.a.string.isRequired,isDefaultSortDescending:i.a.bool,isSorted:i.a.bool,label:i.a.oneOfType([i.a.string,i.a.node]),onSort:i.a.func,property:i.a.string,sortable:i.a.bool,sortDirection:i.a.oneOf(["desc","asc"]),width:i.a.string},Kb=function(e){var t,n=Mb(Object(r.useState)(null),2),a=n[0],i=n[1],s=Object(r.useRef)(null),c=lb(Object(r.useContext)(sb),Object(r.useContext)(ib),e.fixedLayout),u=c.tabIndex,p=c.hasFocus,f=c.handleFocus,d=c.handleKeyDown;Object(r.useEffect)((function(){Ob(R,e)}),[]),Object(r.useEffect)((function(){!0===s.current&&!1===e.isSorted&&i(null),s.current=e.isSorted}),[e.isSorted]);var h=function(t){t.preventDefault();var n=function(e,t){switch(e){case"asc":return"desc";case"desc":return"asc";case null:return t?"desc":"asc";default:return"asc"}}(e.sortDirection||a,e.isDefaultSortDescending),r={property:e.property,sortDirection:n};i(n),Ar()(e.onSort)&&e.onSort(r,t)},m=e.fixedHeader,b=e.isSorted,y=e.label,v=e.sortable,g=e.width,O=e.property,_=Fb(y),x=e.sortDirection||a||e.isDefaultSortDescending&&"desc",w=b?"desc"===x?"descending":"ascending":"none",S=function(t){return e.fixedLayout?function(t){if(v){var n=t?Sb:Lb;return o.a.createElement(n,{href:"#",className:"slds-th__action slds-text-link_reset",onClick:h,role:"button"},o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveTextForColumnSort||e.assistiveText.columnSort," "),o.a.createElement("span",{className:"slds-truncate",title:"string"===_?y:void 0},y),o.a.createElement(jn,{className:"slds-is-sortable__icon",category:"utility",name:"desc"===x?"arrowdown":"arrowup",size:"x-small"}),x?o.a.createElement("span",{className:"slds-assistive-text","aria-atomic":"true"},"asc"===x?e.assistiveTextForColumnSortedAscending||e.assistiveText.columnSortedAscending:e.assistiveTextForColumnSortedDescending||e.assistiveText.columnSortedDescending):null)}return o.a.createElement("span",{className:"slds-p-horizontal_x-small slds-th__action",style:{display:"flex"}},o.a.createElement("span",{className:"slds-truncate",title:"string"===_?y:void 0},y))}(t):o.a.createElement("div",{className:"slds-truncate",title:"string"===_?y:void 0},y)};return o.a.createElement("th",{id:"".concat(e.id,"-").concat(O,"-th"),"aria-label":"string"===_?y:void 0,"aria-sort":w,className:l()((t={"slds-is-sortable":v,"slds-is-sorted":b},Bb(t,"slds-is-sorted_".concat(x),x),Bb(t,"slds-is-sorted_asc",b&&!x),t)),onFocus:f,onKeyDown:d,ref:function(t){e.cellRef&&(e.cellRef(t),t&&p&&t.focus())},scope:"col",style:m||g?{height:m?0:null,lineHeight:m?0:null,width:g||null}:null,tabIndex:u},m?o.a.cloneElement(S(!0),{style:{display:"flex",height:0,overflow:"hidden",paddingBottom:0,paddingTop:0,visibility:"hidden"}}):S(),m?o.a.createElement(gb,null,o.a.cloneElement(S(),{style:{alignItems:"center",display:"flex",flex:"1 1 auto",lineHeight:1.25,width:"100%"},tabIndex:v?0:null})):null)};Kb.displayName="SLDSDataTableHeaderCell",Kb.propTypes=qb;var Wb=Kb;function Vb(){return(Vb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var zb=Ab(Pp),Ub={assistiveText:i.a.shape({actionsHeader:i.a.string,columnSort:i.a.string,columnSortedAscending:i.a.string,columnSortedDescending:i.a.string,selectAllRows:i.a.string,selectRow:i.a.string}),allSelected:i.a.bool,headerRefs:i.a.func,isHidden:i.a.bool,indeterminateSelected:i.a.bool,canSelectRows:i.a.oneOfType([i.a.bool,i.a.oneOf(["checkbox","radio"])]),columns:i.a.arrayOf(i.a.shape({Cell:i.a.oneOfType([i.a.func,i.a.object]),props:i.a.object})),fixedHeader:i.a.bool,id:i.a.string,onToggleAll:i.a.func,onSort:i.a.func,showRowActions:i.a.bool},Gb=function(e){var t=lb(Object(r.useContext)(sb),{columnIndex:e.columnIndex,rowIndex:0},e.fixedLayout),n=t.tabIndex,a=t.hasFocus,i=t.handleFocus,s=t.handleKeyDown,c=e.fixedHeader,u=function(t){return o.a.createElement("div",{className:"slds-th__action",style:t},o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText))};return o.a.createElement("th",{className:l()({"slds-has-focus":a}),ref:function(t){e.headerRefs&&e.headerRefs(t,"action"),t&&a&&t.focus()},scope:"col",style:{height:c?0:null,lineHeight:c?0:null,width:"3.25rem"},onFocus:i,onKeyDown:s,tabIndex:n},u(c?{height:0,overflow:"hidden",paddingBottom:0,paddingTop:0,visibility:"hidden"}:null),c?o.a.createElement(gb,null,u({lineHeight:1,width:"100%"})):null)},Yb=function(e){var t={columnIndex:0,rowIndex:0},n=lb(Object(r.useContext)(sb),t,e.fixedLayout),a=n.tabIndex,i=n.hasFocus,s=n.handleFocus,c=n.handleKeyDown,u=e.fixedHeader,p=e.canSelectRows,f=function(t,n,r){var a=null;return"radio"===p?a=r?null:o.a.createElement("div",{className:"slds-truncate slds-assistive-text",id:"".concat(e.id,"-column-group-header-row-select"),title:e.assistiveText.selectRowGroup},e.assistiveText.selectRowGroup):!0!==p&&"checkbox"!==p||(a=o.a.createElement("div",{className:"slds-th__action slds-th__action_form","aria-hidden":r&&!0,style:n},r?null:o.a.createElement("span",{id:"".concat(e.id,"-column-group-header-row-select"),className:"slds-assistive-text"},e.assistiveText.selectAllRows),o.a.createElement(zb,{assistiveText:{label:e.assistiveText.selectAllRows},checked:e.allSelected,indeterminate:e.indeterminateSelected,id:"".concat(e.id,"-").concat(t),name:r?void 0:"SelectAll",onChange:e.onToggleAll}))),a};return o.a.createElement("th",{className:l()("slds-text-align_right",{"slds-has-focus":i}),ref:function(t){e.headerRefs&&e.headerRefs(t,"select"),t&&i&&t.focus()},scope:"col",style:{height:u?0:null,lineHeight:u?0:null,width:"3.25rem"},onFocus:s,onKeyDown:c,tabIndex:a},o.a.createElement(ib.Provider,{value:t},f("SelectAll-fixed-header",u?{display:"flex",height:0,overflow:"hidden",paddingBottom:0,paddingTop:0,visibility:"hidden"}:null,u&&"ariaHidden"),u?o.a.createElement(gb,null,f("SelectAll",{display:"flex",justifyContent:"flex-end",lineHeight:1,width:"100%"})):null))},Xb=function(e){var t=function(){var t=null;return e.showRowActions&&(t=o.a.createElement(Gb,{assistiveText:e.assistiveText.actionsHeader,columnIndex:e.canSelectRows?e.columns.length+1:e.columns.length,fixedLayout:e.fixedLayout,fixedHeader:e.fixedHeader,headerRefs:e.headerRefs})),t}(),n=function(){var t=e.canSelectRows,n=null;return t&&(n=o.a.createElement(Yb,{allSelected:e.allSelected,assistiveText:{selectAllRows:e.assistiveText.selectAllRows,selectRowGroup:e.assistiveText.selectRowGroup},canSelectRows:t,fixedHeader:e.fixedHeader,fixedLayout:e.fixedLayout,headerRefs:e.headerRefs,id:e.id,indeterminateSelected:e.indeterminateSelected,onToggleAll:e.onToggleAll})),n}();return o.a.createElement("thead",{className:l()({"slds-assistive-text":e.isHidden})},o.a.createElement("tr",{className:"slds-line-height_reset"},n,e.columns.map((function(t,n){return o.a.createElement(ib.Provider,{key:"".concat(e.id,"-").concat(t.props.property),value:{columnIndex:e.canSelectRows?n+1:n,rowIndex:0}},o.a.createElement(Wb,Vb({assistiveText:e.assistiveText,cellRef:function(t){e.headerRefs&&e.headerRefs(t,n)},fixedHeader:e.fixedHeader,id:"".concat(e.id,"-").concat(t.props.property),onSort:e.onSort},t.props)))})),t))};Xb.displayName=I,Xb.propTypes=Ub;var Qb=Xb;function Jb(){return(Jb=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Zb=Ab(Pp),$b=Ab(Tf),ey={assistiveText:i.a.shape({actionsHeader:i.a.string,columnSort:i.a.string,columnSortedAscending:i.a.string,columnSortedDescending:i.a.string,selectAllRows:i.a.string,selectRow:i.a.string}),canSelectRows:i.a.oneOfType([i.a.bool,i.a.oneOf(["checkbox","radio"])]),className:i.a.string,columns:i.a.arrayOf(i.a.shape({Cell:i.a.func,props:i.a.object})),fixedLayout:i.a.bool,id:i.a.string.isRequired,item:i.a.object.isRequired,onToggle:i.a.func,rowActions:i.a.element,selection:i.a.array,tableId:i.a.string},ty=function(e){var t=Object(r.useContext)(sb),n=Object(r.useMemo)((function(){return{rowIndex:e.rowIndex,columnIndex:0}}),[e.rowIndex]),a=lb(t,n,e.fixedLayout),i=a.tabIndex,s=a.hasFocus,c=a.handleFocus,u=a.handleKeyDown,p=e.item,f=e.onToggle,d=Object(r.useCallback)((function(e,t){var n=t.checked;return f(p,n,e)}),[p,f]),h=!!Fh()(e.selection,p),m=Object(r.useMemo)((function(){var t={};return e.canSelectRows&&(t["aria-selected"]=h?"true":"false"),t}),[h,e.canSelectRows]);return o.a.createElement("tr",Jb({},m,{className:l()(e.className,{"slds-hint-parent":e.rowActions,"slds-is-selected":e.canSelectRows&&h,"slds-has-focus":s})}),Object(r.useMemo)((function(){return o.a.createElement(o.a.Fragment,null,e.canSelectRows?o.a.createElement("td",{role:e.fixedLayout?"gridcell":null,className:"slds-text-align_right","data-label":e.stacked?"Select Row":void 0,style:{width:"3.25rem"},onFocus:c,onKeyDown:u,ref:function(e){e&&s&&e.focus()},tabIndex:i},o.a.createElement(ib.Provider,{value:n},"radio"===e.canSelectRows?o.a.createElement($b,{assistiveText:{label:"".concat(e.assistiveText.selectRow," ").concat(Number(e.index)+1)},"aria-labelledby":"".concat(e.id,"-SelectRow-label ").concat(e.tableId,"-SLDSDataTableHead-column-group-header-row-select"),checked:h,className:"slds-m-right_x-small",id:"".concat(e.id,"-SelectRow"),labelId:"".concat(e.id,"-SelectRow-label"),name:"".concat(e.tableId,"-SelectRow"),onChange:d}):o.a.createElement(Zb,{assistiveText:{label:"".concat(e.assistiveText.selectRow," ").concat(Number(e.index)+1)},"aria-labelledby":"".concat(e.id,"-SelectRow-label ").concat(e.tableId,"-SLDSDataTableHead-column-group-header-row-select"),checked:h,id:"".concat(e.id,"-SelectRow"),labelId:"".concat(e.id,"-SelectRow-label"),name:"SelectRow".concat(e.index+1),onChange:d}))):null,e.columns.map((function(t,n){var r=t.Cell,a="".concat(e.id,"-").concat(k,"-").concat(t.props.property);return o.a.createElement(ib.Provider,{key:a,value:{columnIndex:e.canSelectRows?n+1:n,rowIndex:e.rowIndex}},o.a.createElement(r,Jb({},t.props,{className:t.props.truncate?"slds-truncate":null,fixedLayout:e.fixedLayout,rowHeader:t.props.primaryColumn,id:a,item:p,width:t.props.width,headerId:p.headerId,columns:e.columns}),p[t.props.property]))})),o.a.createElement(ib.Provider,{value:{columnIndex:e.canSelectRows?e.columns.length+1:e.columns.length,rowIndex:e.rowIndex}},e.rowActions?o.a.cloneElement(e.rowActions,{id:"".concat(e.id,"-").concat(D),item:p,fixedLayout:e.fixedLayout}):null))}),[c,u,d,s,h,p,i,e.assistiveText.selectRow,e.canSelectRows,e.columns,e.fixedLayout,e.id,e.index,e.rowActions,e.rowIndex,e.stacked,e.tableId,n]))};ty.displayName=A,ty.propTypes=ey;var ny=ty;function ry(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ry(Object(n),!0).forEach((function(t){ay(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ry(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ay(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iy=Ab(Hs),sy={assistiveText:i.a.object,className:i.a.string,id:i.a.string,item:i.a.object,noHint:i.a.bool,onAction:i.a.func,options:i.a.array,dropdown:i.a.node},ly=function(e){var t=lb(Object(r.useContext)(sb),Object(r.useContext)(ib),e.fixedLayout),n=t.tabIndex,a=t.hasFocus,i=t.handleFocus,s=t.handleKeyDown,c={align:"right",buttonClassName:"slds-button_icon-x-small",buttonVariant:"icon",iconCategory:"utility",iconName:"down",iconSize:"small",iconVariant:"border-filled",assistiveText:e.assistiveText,className:e.className,options:e.options,hint:!e.noHint,id:e.id},u=e.dropdown?e.dropdown.props:{};return u=oy(oy(oy({},c),u),{},{onSelect:function(t){Ar()(e.onAction)&&e.onAction(e.item,t),e.dropdown&&Ar()(e.dropdown.props.onSelect)&&e.dropdown.props.onSelect(t)}}),o.a.createElement("td",{className:l()({"slds-has-focus":a}),"data-label":"Actions",onClick:function(e){St.trap(e)},style:{width:"3.25rem"},onFocus:i,onKeyDown:s,ref:function(e){e&&a&&e.focus()},role:e.fixedLayout?"gridcell":null,tabIndex:n},o.a.createElement(iy,u))};ly.propTypes=sy,ly.defaultProps={assistiveText:{icon:"Actions"},noHint:!1,options:[]},ly.displayName=D;var cy=ly;function uy(e){return(uy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function py(){return(py=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function fy(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||hy(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dy(e){return function(e){if(Array.isArray(e))return my(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||hy(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hy(e,t){if(e){if("string"==typeof e)return my(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?my(e,t):void 0}}function my(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function by(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yy(e,t){return(yy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_y(e);if(t){var o=_y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gy(this,n)}}function gy(e,t){return!t||"object"!==uy(t)&&"function"!=typeof t?Oy(e):t}function Oy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _y(e){return(_y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wy(Object(n),!0).forEach((function(t){Ey(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ey(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cy=function(e){return Array.isArray(e)?e.length:0},jy={assistiveText:{actionsHeader:"Actions",columnSort:"Sort by: ",columnSortedAscending:"Sorted Ascending",columnSortedDescending:"Sorted Descending",selectAllRows:"Select all rows",selectRow:"Select row",selectRowGroup:"Choose a row to select",loadingMore:"Loading more"},selection:[],hasMore:!1,loadMoreOffset:20,resizable:!1,resizableOptions:{resizeMode:"fit",draggingClass:"slds-table-column-resizer"}},Ny=ua((function(e,t,n,r,o,a,i){var s=Sy(Sy({},jy.assistiveText),e);return t&&(s.actionsHeader=t),a&&(s.selectAllRows=a),r&&(s.columnSortedAscending=r),o&&(s.columnSortedDescending=o),n&&(s.columnSort=n),i&&(s.selectRow=i),s}),jt.a),Ty=ua((function(e,t,n,r,a,i){var s=[],l=null;return o.a.Children.forEach(e,(function(e){if(e&&e.type.displayName===vb.displayName){var c,u=e.props,p=u.children,f=xy(u,["children"]),d=Sy({fixedLayout:r,search:i,items:a},f);t&&(d.id=t),p&&p.type.displayName===k?(c=p.type,ur()(d,p.props)):c=ub,s.push({Cell:c,props:d})}else if(e&&e.type.displayName===cy.displayName){var h=e.props.dropdown,m={};n&&(m.menuPosition="overflowBoundaryElement"),l=o.a.cloneElement(e,{dropdown:h?o.a.cloneElement(h,m):null})}})),{columns:s,RowActions:l}}),jt.a),Py=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yy(e,t)}(i,e);var t,n,r,a=vy(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Ey(Oy(t=a.call(this,e)),"getTableContext",ua((function(e,n){return{activeCell:e.activeCell,activeElement:e.activeElement,mode:e.mode,tableHasFocus:e.tableHasFocus,changeActiveCell:t.changeActiveCell,changeActiveElement:t.changeActiveElement,handleKeyDown:t.handleKeyDown,registerInteractiveElement:t.registerInteractiveElement,allowKeyboardNavigation:e.allowKeyboardNavigation,setAllowKeyboardNavigation:function(e){n&&t.setState({allowKeyboardNavigation:e})}}}))),Ey(Oy(t),"handleToggleAll",(function(e,n){var r=n.checked;if("function"==typeof t.props.onChange){var o=(r?dy(t.props.items):[]).filter((function(e){return"header-row"!==e.type}));t.props.onChange(o,e)}if("function"==typeof t.props.onRowChange){var a=(r?dy(t.props.items):[]).filter((function(e){return"header-row"!==e.type}));t.props.onRowChange(e,{selection:a})}})),Ey(Oy(t),"handleRowToggle",(function(e,n,r){var o,a;"function"==typeof t.props.onChange&&(o=n?"radio"===t.props.selectRows?[e]:[].concat(dy(t.props.selection),[e]):Hh()(t.props.selection,e),t.props.onChange(o,r));"function"==typeof t.props.onRowChange&&(a=n?"radio"===t.props.selectRows?[e]:[].concat(dy(t.props.selection),[e]):Hh()(t.props.selection,e),t.props.onRowChange(r,{selection:a}))})),Ey(Oy(t),"repositionResizers",(function(){var e=[].concat(t.headerRefs.select,t.headerRefs.column,t.headerRefs.action);if(t.gripRefs&&t.tableRef){var n=t.tableRef.getBoundingClientRect();t.gripRefs.forEach((function(t,r){var o=e[r].getBoundingClientRect(),a=o.left-n.left+o.width;t.style.left="".concat(a,"px")}))}})),Ey(Oy(t),"resizeFixedHeaders",(function(e){var n=[].concat(t.headerRefs.select,t.headerRefs.column,t.headerRefs.action);if(t.props.onFixedHeaderResize)t.props.onFixedHeaderResize(e,{headerRefs:n,scrollerRef:t.scrollerRef});else if(n.length>0){var r=0;Gt&&(r=document.documentElement.scrollLeft),n.forEach((function(e){if(e&&Gt){var n=e.getBoundingClientRect().left+r,o=0;t.scrollerRef&&(o=t.scrollerRef.getBoundingClientRect().left+r);var a=e.querySelector(".slds-cell-fixed");a&&(a.style.left="".concat(n-o,"px"),a.style.width="".concat(e.offsetWidth,"px"))}}))}})),Ey(Oy(t),"loadMoreIfNeeded",(function(){if(t.props.hasMore&&t.props.onLoadMore){var e=t.scrollerRef;e.scrollTop+e.offsetHeight>e.scrollHeight-t.props.loadMoreOffset&&t.props.onLoadMore()}})),Ey(Oy(t),"toggleFixedHeaderListeners",(function(e){if(t.props.onToggleFixedHeaderListeners)t.props.onToggleFixedHeaderListeners({},{attach:e,resizeHandler:t.resizeFixedHeaders,scrollerRef:t.scrollerRef});else{var n=["".concat(e?"add":"remove","EventListener")];Yt&&(window[n]("resize",t.resizeFixedHeaders),window[n]("resize",t.loadMoreIfNeeded)),Yt&&t.scrollerRef&&(t.scrollerRef[n]("scroll",t.resizeFixedHeaders),t.scrollerRef[n]("scroll",t.loadMoreIfNeeded),t.scrollerRef[n]("scroll",t.repositionResizers))}})),t.generatedId=u.a.generate(),t.headerRefs={action:[],column:[],select:[]},t.gripRefs=[],t.scrollerRef=null,t.fixedHeaderContainer={},t.state={activeCell:{rowIndex:1,columnIndex:t.props.selectRows?1:0},activeElement:null,mode:Eb.NAVIGATION,tableHasFocus:!1,allowKeyboardNavigation:e.keyboardNavigation},t.interactiveElements={},t.changeActiveCell=t.changeActiveCell.bind(Oy(t)),t.changeActiveElement=t.changeActiveElement.bind(Oy(t)),t.handleKeyDown=t.handleKeyDown.bind(Oy(t)),t.registerInteractiveElement=t.registerInteractiveElement.bind(Oy(t)),tb(P,e,nb),t}return t=i,(n=[{key:"componentDidMount",value:function(){this.getFixedHeader()&&(this.toggleFixedHeaderListeners(!0),this.resizeFixedHeaders()),this.isResizable()&&this.enableResize()}},{key:"componentDidUpdate",value:function(e,t){this.getFixedHeader()&&(this.resizeFixedHeaders(),this.loadMoreIfNeeded()),this.state.allowKeyboardNavigation&&!t.allowKeyboardNavigation&&this.setState({tableHasFocus:!0}),this.isResizable()?this.enableResize():this.resizer&&this.disableResize()}},{key:"componentWillUnmount",value:function(){this.toggleFixedHeaderListeners(!1),this.isResizable()&&this.disableResize()}},{key:"onResize",value:function(){var e=this.tableRef;if(e){var t=this.getFixedHeader()?e.getElementsByClassName("slds-cell-fixed"):e.getElementsByTagName("th");return Array.from(t).map((function(e,t){var n=e.id,r=e.style;return{id:n,index:t,width:parseInt(r.width,10)}}))}return[]}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getFixedHeader",value:function(){return this.props.fixedHeader||this.props.resizable}},{key:"getKeyboardNavigation",value:function(){return this.props.keyboardNavigation||this.props.resizable}},{key:"getFixedLayout",value:function(){return this.props.fixedLayout||this.props.resizable}},{key:"getFirstInteractiveElement",value:function(e,t){return this.state.mode===Eb.ACTIONABLE&&this.interactiveElements[e]&&this.interactiveElements[e][t]?this.interactiveElements[e][t][0]:null}},{key:"UNSAFE_componentWillUpdate",value:function(e){this.props.items!==e.items&&(this.interactiveElements={})}},{key:"isResizable",value:function(){return this.props.fixedLayout&&this.props.resizable}},{key:"resizeGrips",value:function(){var e=this.fixedHeaderContainer;if(e){var t=Array.from(e.getElementsByClassName("grip-handle"));t.length&&(this.gripRefs=t,this.gripRefs.forEach((function(e){e.style.height="".concat(parseInt(e.style.height,10)+33,"px")})))}}},{key:"enableResize",value:function(){var e=this;if(Gt){var t=this.tableRef,n=this.getFixedHeader(),r=[];if(this.props.selectRows&&r.push(0),!this.resizer){var o=Sy(Sy(Sy({},jy.resizableOptions),{disabledColumns:r}),this.props.resizableOptions),a=this.props.resizableOptions.onResize;o.onResize=function(t){n&&(e.resizeFixedHeaders(t),e.repositionResizers());var r=e.onResize();a&&a(r),e.resizeGrips()},t&&(this.resizer=new eb.a(t,o),t.classList.remove("grip-padding"),n&&this.resizeFixedHeaders(),this.resizeGrips(),this.repositionResizers()),this.setState({},(function(){return e.state}))}}}},{key:"disableResize",value:function(){this.resizer&&this.resizer.reset({disable:!0}),this.gripRefs=[]}},{key:"changeActiveCell",value:function(e,t){this.setState({tableHasFocus:!0,activeCell:{rowIndex:e,columnIndex:t}})}},{key:"changeActiveElement",value:function(e){this.setState({activeElement:e,mode:Eb.ACTIONABLE})}},{key:"handleKeyDown",value:function(e){var t,n=this;$h(e,{callbacks:(t={},Ey(t,zt.UP,{callback:function(e){return n.handleKeyDownUp(e)}}),Ey(t,zt.DOWN,{callback:function(e){return n.handleKeyDownDown(e)}}),Ey(t,zt.LEFT,{callback:function(e){return n.handleKeyDownLeft(e)}}),Ey(t,zt.RIGHT,{callback:function(e){return n.handleKeyDownRight(e)}}),Ey(t,zt.ENTER,{callback:function(e){return n.handleKeyDownEnter(e)}}),Ey(t,zt.ESCAPE,{callback:function(e){return n.handleKeyDownEscape(e)}}),Ey(t,zt.TAB,this.state.mode===Eb.ACTIONABLE?{callback:function(e){return n.handleKeyTabPress(e)}}:null),t)})}},{key:"handleKeyDownUp",value:function(){if(this.state.mode===Eb.NAVIGATION||this.state.activeCell.rowIndex>0||!this.isResizable()){var e=Math.max(this.state.activeCell.rowIndex-1,0),t=this.getFirstInteractiveElement(e,this.state.activeCell.columnIndex);e!==this.state.activeCell.rowIndex&&(this.setState((function(n){return{activeCell:{rowIndex:e,columnIndex:n.activeCell.columnIndex},activeElement:t}})),this.state.mode!==Eb.ACTIONABLE||0!==e||t||this.makeGripVisible(this.state.activeCell.columnIndex))}}},{key:"handleKeyDownDown",value:function(){if(this.state.mode===Eb.NAVIGATION||this.state.activeCell.rowIndex>0||!this.isResizable()){var e=Math.min(this.state.activeCell.rowIndex+1,this.props.items.length),t=this.getFirstInteractiveElement(e,this.state.activeCell.columnIndex);e!==this.state.activeCell.rowIndex&&this.setState((function(n){return{activeCell:{rowIndex:e,columnIndex:n.activeCell.columnIndex},activeElement:t}}))}}},{key:"displaceByArrowKey",value:function(e){if(this.state.mode===Eb.ACTIONABLE){var t=this.state.activeCell,n=t.rowIndex,r=t.columnIndex;if(0===n){var o=this.tableRef.getElementsByTagName("th");o[r].style.width="".concat(parseInt(o[r].style.width,10)+e,"px"),this.resizeFixedHeaders(),this.repositionResizers(),this.resizeGrips()}}}},{key:"makeGripVisible",value:function(e){this.gripRefs.forEach((function(t,n){n===e?t.classList.add("grip-handle-active"):t.classList.remove("grip-handle-active")}))}},{key:"handleKeyDownLeft",value:function(){if(this.state.mode===Eb.NAVIGATION||this.state.activeCell.rowIndex>0||!this.isResizable()){var e=Math.max(this.state.activeCell.columnIndex-1,0),t=this.getFirstInteractiveElement(this.state.activeCell.rowIndex,e);e!==this.state.activeCell.columnIndex&&this.setState((function(n){return{activeCell:{rowIndex:n.activeCell.rowIndex,columnIndex:e},activeElement:t}}))}else this.displaceByArrowKey(-10)}},{key:"handleKeyDownRight",value:function(){if(this.state.mode===Eb.NAVIGATION||this.state.activeCell.rowIndex>0||!this.isResizable()){var e=Math.min(this.state.activeCell.columnIndex+1,this.props.children.length-(this.props.selectRows?0:1)),t=this.getFirstInteractiveElement(this.state.activeCell.rowIndex,e);e!==this.state.activeCell.columnIndex&&this.setState((function(n){return{activeCell:{rowIndex:n.activeCell.rowIndex,columnIndex:e},activeElement:t}}))}else this.displaceByArrowKey(10)}},{key:"handleKeyDownEnter",value:function(){if(this.state.mode===Eb.NAVIGATION){var e=this.state.activeCell,t=e.rowIndex,n=e.columnIndex,r=null;this.interactiveElements[t]&&this.interactiveElements[t][n]&&(r=fy(this.interactiveElements[t][n],1)[0]),this.setState({mode:Eb.ACTIONABLE,activeElement:r}),0!==t||r||this.makeGripVisible(n)}}},{key:"handleKeyDownEscape",value:function(){this.state.mode===Eb.ACTIONABLE&&(this.setState({mode:Eb.NAVIGATION,activeElement:null}),this.makeGripVisible(null))}},{key:"moveNext",value:function(e,t,n){var r=[].concat(this.headerRefs.select,this.headerRefs.column,this.headerRefs.action),o=0,a=0;e.shiftKey?n-1>=0?(a=n-1,o=t):(o=t>0?t-1:this.props.items.length,a=r.length-1):n+1<r.length?(a=n+1,o=t):(o=t<this.props.items.length?t+1:0,a=0),this.changeActiveCell(o,a)}},{key:"handleNextActionable",value:function(e){var t=this.state.activeCell,n=t.rowIndex,r=t.columnIndex,o=this.state.activeElement,a=this.interactiveElements[n]&&this.interactiveElements[n][r]?this.interactiveElements[n][r]:null;if(a){if(o){var i=a.indexOf(o);return e.shiftKey?i>0?a[i-1]:null:i<a.length-1?a[i+1]:null}return e.shiftKey?a[a.length-1]:a[0]}return null}},{key:"handleKeyTabPress",value:function(e){var t=this.state.activeCell,n=t.rowIndex,r=t.columnIndex;if(this.state.mode===Eb.ACTIONABLE){var o=this.handleNextActionable(e);if(o)this.setState({activeElement:o}),this.isResizable()&&this.makeGripVisible(null);else if(0===n){var a=[].concat(this.headerRefs.select,this.headerRefs.column,this.headerRefs.action),i=0;i=e.shiftKey?r-1>=0?r-1:a.length-1:r+1<a.length?r+1:0,this.setState({mode:Eb.ACTIONABLE,activeElement:null}),a.forEach((function(e,t){t===i?(e.tabIndex=0,e.focus()):e.tabIndex=-1})),this.isResizable()&&this.makeGripVisible(i)}else this.moveNext(e,n,r),this.setState({mode:Eb.ACTIONABLE,activeElement:null})}}},{key:"registerInteractiveElement",value:function(e,t,n){this.interactiveElements[e]||(this.interactiveElements[e]={});var r=this.interactiveElements[e][t]||[];r.includes(n)||(this.interactiveElements[e][t]=[].concat(dy(r),[n]))}},{key:"render",value:function(){var e=this,t={},n=Cy(this.props.items),r=Cy(this.props.selection),a=Cy(this.props.items.filter((function(e){return"header-row"!==e.type}))),i=!!(this.props.selectRows&&a>0)&&this.props.selectRows,s=i&&a===r,c=i&&a!==r&&0!==r,p=Ty(this.props.children,this.props.id,this.getFixedHeader(),this.props.fixedLayout,this.props.items,this.props.search),f=p.columns,d=p.RowActions,h=Ny(this.props.assistiveText,this.props.assistiveTextForActionsHeader,this.props.assistiveTextForSelectAllRows,this.props.assistiveTextForColumnSortedAscending,this.props.assistiveTextForColumnSortedDescending,this.props.assistiveTextForColumnSort,this.props.assistiveTextForSelectRow);this.props.selectRows&&"radio"!==this.props.selectRows&&(t["aria-multiselectable"]="true"),this.headerRefs={action:d?this.headerRefs.action:[],column:this.headerRefs.column.slice(0,f.length),select:i?this.headerRefs.select:[]};var m=o.a.createElement(o.a.Fragment,null,o.a.createElement(sb.Provider,{value:this.getTableContext(this.state,this.getKeyboardNavigation())},o.a.createElement("table",py({},t,{className:l()("slds-table",{"slds-table_fixed-layout":this.getFixedLayout(),"slds-table_header-fixed":this.getFixedHeader(),"slds-table_resizable-cols":this.getFixedLayout(),"slds-table_bordered":!this.props.unborderedRow,"slds-table_cell-buffer":!this.getFixedLayout()&&!this.props.unbufferedCell,"slds-max-medium-table_stacked":this.props.stacked,"slds-max-medium-table_stacked-horizontal":this.props.stackedHorizontal,"slds-table_striped":this.props.striped,"slds-table_col-bordered":this.props.columnBordered,"slds-no-row-hover":this.props.noRowHover,"slds-table_header-hidden":this.props.isHeadless},this.props.className),id:this.getId(),ref:function(t){t&&(e.tableRef=t)},role:this.getFixedLayout()?"grid":null,onBlur:function(t){e.tableRef&&!e.tableRef.contains(t.relatedTarget)&&(e.setState({tableHasFocus:!1,mode:Eb.NAVIGATION,activeElement:null}),e.makeGripVisible(null))},style:this.props.style}),o.a.createElement(Qb,{assistiveText:h,allSelected:s,fixedHeader:this.getFixedHeader(),fixedLayout:this.getFixedLayout(),headerRefs:function(t,n){"action"===n||"select"===n?t?e.headerRefs[n][0]=t:e.headerRefs[n]=[]:e.headerRefs.column[n]=t},isHidden:this.props.isHeadless,indeterminateSelected:c,canSelectRows:i,columns:f,id:"".concat(this.getId(),"-").concat(I),onToggleAll:this.handleToggleAll,onSort:this.props.onSort,showRowActions:!!d}),o.a.createElement("tbody",null,n>0?this.props.items.map((function(t,n){var r=e.getId()&&t.id?"".concat(e.getId(),"-").concat(A,"-").concat(t.id):u.a.generate();return e.props.onRenderSubHeadingRow&&"header-row"===t.type?e.props.onRenderSubHeadingRow({assistiveText:h,classNameRow:t.classNameRow,columns:f,key:r,id:r,tableId:e.getId(),item:t}):o.a.createElement(ny,{assistiveText:h,canSelectRows:i,className:t.classNameRow,columns:f,fixedLayout:e.getFixedLayout(),id:r,index:n,item:t,key:r,onToggle:e.handleRowToggle,selection:e.props.selection,rowActions:d,tableId:e.getId(),rowIndex:n+1})})):null))),this.getFixedHeader()&&this.props.hasMore&&o.a.createElement("div",{className:"slds-is-relative slds-p-around_large"},o.a.createElement(Vc,{assistiveText:{label:this.props.assistiveText.loadingMore},hasContainer:!1,size:"small",variant:"brand"})));if(this.getFixedHeader()){var b="1px solid ".concat(rb.colorGray5),y={borderTop:b,height:"100%"};this.props.joined&&(y.borderBottom=b,y.borderLeft=b,y.borderRight=b,y.borderTop="none",y.borderRadius=ob.tableBorderRadius);var v={height:"100%"};this.props.resizable?(v.overflowY="auto",v.overflowX="hidden"):v.overflow="auto",m=o.a.createElement("div",{className:"slds-table_header-fixed_container",ref:function(t){e.fixedHeaderContainer=t},style:y,onScroll:function(t){var n=t.target.scrollLeft;n>0&&(t.target.scrollLeft=0,e.scrollerRef&&(e.scrollerRef.scrollLeft=n))}},o.a.createElement("div",{className:"slds-table_header-fixed_scroller",ref:function(t){e.scrollerRef=t},style:v},m))}return m}}])&&by(t.prototype,n),r&&by(t,r),i}(o.a.Component);Ey(Py,"displayName",P),Ey(Py,"propTypes",{assistiveText:i.a.shape({actionsHeader:i.a.string,columnSort:i.a.string,columnSortedAscending:i.a.string,columnSortedDescending:i.a.string,selectAllRows:i.a.string,selectRow:i.a.string,selectRowGroup:i.a.string,loadingMore:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),columnBordered:i.a.bool,fixedHeader:i.a.bool,fixedLayout:i.a.bool,hasMore:i.a.bool,onRenderSubHeadingRow:i.a.func,id:i.a.string,items:i.a.arrayOf(i.a.shape({id:i.a.string.isRequired,classNameRow:i.a.string})).isRequired,isHeadless:i.a.bool,joined:i.a.bool,loadMoreOffset:i.a.number,keyboardNavigation:i.a.bool,noRowHover:i.a.bool,onFixedHeaderResize:i.a.func,onLoadMore:i.a.func,onRowChange:i.a.func,onSort:i.a.func,onToggleFixedHeaderListeners:i.a.func,selection:i.a.array,selectRows:i.a.oneOfType([i.a.bool,i.a.oneOf(["checkbox","radio"])]),stacked:i.a.bool,stackedHorizontal:i.a.bool,striped:i.a.bool,style:i.a.object,unborderedRow:i.a.bool,unbufferedCell:i.a.bool,resizable:i.a.bool,resizableOptions:i.a.object}),Ey(Py,"defaultProps",jy);var ky=Py,Ry=function(e){return o.a.createElement(ub,e,o.a.createElement(Jo,{search:e.search},e.children))};Ry.displayName=k,Ry.propTypes={children:i.a.oneOfType([i.a.node,i.a.string]),search:i.a.any};var Iy=Ry,Dy={firstDayOfMonth:function(e){var t=new Date(e);return t.setDate(1),t},isFirstDayOfMonth:function(e){return 1===e.getDate()},isLastDayOfMonth:function(e){return!Dy.isSameMonth(e,Dy.addDays(e,1))},isSameMonth:function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth())},isSameDay:function(e,t){return!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())},isCurrentMonth:function(e){return!!e&&Dy.isSameMonth(e,new Date)},isToday:function(e){return!!e&&Dy.isSameDay(e,new Date)},isEqual:function(e,t){return e.getTime()===t.getTime()},addDays:function(e,t){var n=new Date(e);return n.setDate(n.getDate()+parseInt(t,10)),n},addWeeks:function(e,t){return Dy.addDays(e,7*parseInt(t,10))},nearestWeekDay:function(e,t){var n=t-e.getDay();return n<0&&(n+=7),Dy.addDays(e,n)},isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getDaysInMonth:function(e,t){return[31,Dy.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},addMonths:function(e,t){var n=new Date(e),r=n.getDate();return n.setDate(1),n.setMonth(n.getMonth()+t),n.setDate(Math.min(r,Dy.getDaysInMonth(n.getFullYear(),n.getMonth()))),n}},Ay=Dy;function Ly(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function By(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fy=function(e){var t=Ay.isSameMonth(e.date,e.initialDateForCalendarRender),n=Ay.isToday(e.date),r=Ay.isSameDay(e.date,e.selectedDate),a=Ay.isFirstDayOfMonth(e.date),i=!t||e.disabled;return o.a.createElement("td",{"aria-disabled":i,"aria-selected":r,className:l()({"slds-is-today":n,"slds-disabled-text":i,"slds-is-selected":r}),onClick:function(t){!function(e,t){var n=t.date;(0,t.onSelectDate)(e,{date:n})}(t,{date:e.date,onSelectDate:e.onSelectDate})},onKeyDown:function(t){!function(e,t){var n,r=t.date,o=t.onCalendarBlur,a=t.onSelectDate,i=t.onKeyboardNavigateToPreviousDay,s=t.onKeyboardNavigateToNextDay,l=t.onKeyboardNavigateToPreviousWeek,c=t.onKeyboardNavigateToNextWeek,u=t.direction,p=(By(n={},zt.SPACE,(function(){a(e,{date:r})})),By(n,zt.ENTER,(function(){a(e,{date:r})})),By(n,zt.TAB,(function(){o(e,{direction:"next"})})),By(n,zt.LEFT,(function(){u===Re.RTL?s(e,{date:r}):i(e,{date:r})})),By(n,zt.RIGHT,(function(){u===Re.RTL?i(e,{date:r}):s(e,{date:r})})),By(n,zt.UP,(function(){l(e,{date:r})})),By(n,zt.DOWN,(function(){c(e,{date:r})})),n),f=By({},zt.TAB,(function(){o(e,{direction:"previous"})}));e.keyCode&&(e.shiftKey&&p[e.keyCode]?(St.trapEvent(e),f[e.keyCode]()):p[e.keyCode]&&(St.trapEvent(e),p[e.keyCode]()))}(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ly(Object(n),!0).forEach((function(t){By(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e))},ref:function(n){r&&e.selectedDateRef(n),e.calendarHasFocus&&Ay.isSameDay(e.focusedDate,e.date)&&t&&e.onRequestInternalFocusDate(void 0,{date:e.date,ref:n})},role:"gridcell",tabIndex:!e.calendarHasFocus&&a&&t?0:-1},o.a.createElement("span",{className:"slds-day"},n?o.a.createElement("span",{className:"slds-assistive-text"},"".concat(e.todayLabel,": ")):null,e.date.getDate()))};Fy.displayName="SLDSDatepickerCalendarDay",Fy.propTypes={calendarHasFocus:i.a.bool.isRequired,date:i.a.instanceOf(Date).isRequired,disabled:i.a.bool,initialDateForCalendarRender:i.a.instanceOf(Date).isRequired,onCalendarBlur:i.a.func.isRequired,onKeyboardNavigateToNextDay:i.a.func.isRequired,onKeyboardNavigateToNextWeek:i.a.func.isRequired,onKeyboardNavigateToPreviousDay:i.a.func.isRequired,onKeyboardNavigateToPreviousWeek:i.a.func.isRequired,onSelectDate:i.a.func.isRequired,selectedDate:i.a.instanceOf(Date).isRequired,selectedDateRef:i.a.func.isRequired,todayLabel:i.a.string.isRequired,focusedDate:i.a.instanceOf(Date),onRequestInternalFocusDate:i.a.func};var My=ct(Fy),Hy=function(e){for(var t=[],n=e.firstDayOfWeek,r=0;r<7;r+=1)t.push(o.a.createElement(My,{calendarHasFocus:e.calendarHasFocus,date:n,disabled:e.dateDisabled({date:n}),focusedDate:e.focusedDate,initialDateForCalendarRender:e.initialDateForCalendarRender,key:n.toString(),onKeyboardNavigateToNextDay:e.onKeyboardNavigateToNextDay,onKeyboardNavigateToNextWeek:e.onKeyboardNavigateToNextWeek,onKeyboardNavigateToPreviousDay:e.onKeyboardNavigateToPreviousDay,onKeyboardNavigateToPreviousWeek:e.onKeyboardNavigateToPreviousWeek,onCalendarBlur:e.onCalendarBlur,onRequestInternalFocusDate:e.onRequestInternalFocusDate,onSelectDate:e.onSelectDate,selectedDate:e.selectedDate,selectedDateRef:e.selectedDateRef,todayLabel:e.todayLabel})),n=Ay.addDays(n,1);return o.a.createElement("tr",{className:"week",key:t[0].toString()},t)};Hy.propTypes={initialDateForCalendarRender:i.a.instanceOf(Date).isRequired,calendarHasFocus:i.a.bool.isRequired,dateDisabled:i.a.func,firstDayOfWeek:i.a.instanceOf(Date).isRequired,focusedDate:i.a.instanceOf(Date).isRequired,onCalendarBlur:i.a.func.isRequired,onKeyboardNavigateToNextDay:i.a.func.isRequired,onKeyboardNavigateToNextWeek:i.a.func.isRequired,onKeyboardNavigateToPreviousDay:i.a.func.isRequired,onKeyboardNavigateToPreviousWeek:i.a.func.isRequired,onRequestInternalFocusDate:i.a.func.isRequired,onSelectDate:i.a.func.isRequired,selectedDate:i.a.instanceOf(Date).isRequired,selectedDateRef:i.a.func.isRequired,todayLabel:i.a.string.isRequired},Hy.displayName="SLDSDatepickerWeek";var qy=Hy;function Ky(e){return(Ky="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Wy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zy(e,t){return(zy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uy(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xy(e);if(t){var o=Xy(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gy(this,n)}}function Gy(e,t){return!t||"object"!==Ky(t)&&"function"!=typeof t?Yy(e):t}function Yy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xy(e){return(Xy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zy(e,t)}(i,e);var t,n,r,a=Uy(i);function i(){var e;Wy(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qy(Yy(e=a.call.apply(a,[this].concat(n))),"state",{focusedDate:e.props.initialDateForCalendarRender,calendarHasFocus:!0,todayFocus:!1}),Qy(Yy(e),"setCalendarRenderSeedDate",(function(t){Ay.isEqual(e.props.initialDateForCalendarRender,t.initialDateForCalendarRender)||(e.setState({focusedDate:e.props.initialDateForCalendarRender}),e.props.onRequestInternalFocusDate(void 0,{date:e.props.initialDateForCalendarRender,triggerCallback:!0}))})),Qy(Yy(e),"handleSelectDate",(function(t,n){var r=n.date;e.props.dateDisabled({date:r})||(e.setState({selected:r}),e.props.onSelectDate(t,{date:r}))})),Qy(Yy(e),"handleRequestClose",(function(t){e.props.onRequestClose&&e.props.onRequestClose(t,{})})),Qy(Yy(e),"handleKeyboardNavigateToPreviousDay",(function(t,n){var r=n.date,o=Ay.addDays(r,-1);Ay.isSameMonth(o,r)?(e.setState({focusedDate:o}),e.props.onRequestInternalFocusDate(t,{date:o,triggerCallback:!0})):e.props.onChangeMonth(t,o)})),Qy(Yy(e),"handleKeyboardNavigateToNextDay",(function(t,n){var r=n.date,o=Ay.addDays(r,1);Ay.isSameMonth(o,r)?(e.setState({focusedDate:o}),e.props.onRequestInternalFocusDate(t,{date:o,triggerCallback:!0})):e.props.onChangeMonth(t,o)})),Qy(Yy(e),"handleKeyboardNavigateToPreviousWeek",(function(t,n){var r=n.date,o=Ay.addDays(r,-7);Ay.isSameMonth(o,r)?(e.setState({focusedDate:o}),e.props.onRequestInternalFocusDate(t,{date:o,triggerCallback:!0})):e.props.onChangeMonth(t,o)})),Qy(Yy(e),"handleKeyboardNavigateToNextWeek",(function(t,n){var r=n.date,o=Ay.addDays(r,7);Ay.isSameMonth(o,r)?(e.setState({focusedDate:o}),e.props.onRequestInternalFocusDate(t,{date:o,triggerCallback:!0})):e.props.onChangeMonth(t,o)})),Qy(Yy(e),"renderWeeks",(function(){var t,n=e.props.isIsoWeekday?1:0,r=Ay.firstDayOfMonth(e.props.initialDateForCalendarRender);if(r.getDay()>n||r.getDay()<n){var a=Ay.addWeeks(r,-1);t=Ay.nearestWeekDay(a,n)}else t=r;for(var i=[],s=!1,l=t.getMonth(),c=0;!s;)i.push(o.a.createElement(qy,{calendarHasFocus:e.state.calendarHasFocus,dateDisabled:e.props.dateDisabled,firstDayOfWeek:t,key:t.toString(),focusedDate:e.state.focusedDate,initialDateForCalendarRender:e.props.initialDateForCalendarRender,onCalendarBlur:e.props.onCalendarBlur,onKeyboardNavigateToPreviousDay:e.handleKeyboardNavigateToPreviousDay,onKeyboardNavigateToNextDay:e.handleKeyboardNavigateToNextDay,onKeyboardNavigateToPreviousWeek:e.handleKeyboardNavigateToPreviousWeek,onKeyboardNavigateToNextWeek:e.handleKeyboardNavigateToNextWeek,onRequestClose:e.handleRequestClose,onRequestInternalFocusDate:e.props.onRequestInternalFocusDate,onSelectDate:e.handleSelectDate,selectedDate:e.props.selectedDate,selectedDateRef:e.props.selectedDateRef,todayLabel:e.props.todayLabel})),t=Ay.addWeeks(t,1),s=c>2&&l!==t.getMonth(),c+=1,l=t.getMonth();for(var u=0;i.length<6;)u+=1,i.push(o.a.createElement("tr",{key:"extra_".concat(u),className:"week"},o.a.createElement("td",{"aria-disabled":"true","aria-selected":"false",className:"slds-disabled-text"},o.a.createElement("span",{className:"slds-day "}," "))));return i})),e}return t=i,(n=[{key:"componentDidUpdate",value:function(e){this.setCalendarRenderSeedDate(e)}},{key:"render",value:function(){var e=this,t=o.a.createElement("th",null,o.a.createElement("abbr",{title:this.props.weekDayLabels[0]},this.props.abbreviatedWeekDayLabels[0]));return o.a.createElement("div",{className:"calendar"},o.a.createElement("table",{className:"datepicker__month",role:"grid","aria-labelledby":"".concat(this.props.id,"-month")},o.a.createElement("thead",null,o.a.createElement("tr",null,this.props.isIsoWeekday?null:t,o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[1]},this.props.abbreviatedWeekDayLabels[1])),o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[2]},this.props.abbreviatedWeekDayLabels[2])),o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[3]},this.props.abbreviatedWeekDayLabels[3])),o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[4]},this.props.abbreviatedWeekDayLabels[4])),o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[5]},this.props.abbreviatedWeekDayLabels[5])),o.a.createElement("th",{scope:"col"},o.a.createElement("abbr",{title:this.props.weekDayLabels[6]},this.props.abbreviatedWeekDayLabels[6])),this.props.isIsoWeekday&&t)),o.a.createElement("tbody",null,this.renderWeeks(),o.a.createElement("tr",null,o.a.createElement("td",{colSpan:"7",role:"gridcell"},o.a.createElement("a",{href:"#",tabIndex:"0",className:"slds-show_inline-block slds-p-bottom_x-small",onClick:function(t){t.preventDefault(),e.handleSelectDate(t,{date:new Date})},onKeyDown:this.props.onLastFocusableNodeKeyDown,ref:this.props.todayRef},this.props.todayLabel))))))}}])&&Vy(t.prototype,n),r&&Vy(t,r),i}(o.a.Component);Qy(Jy,"displayName","SLDSDatepickerCalendar"),Qy(Jy,"propTypes",{abbreviatedWeekDayLabels:i.a.array.isRequired,dateDisabled:i.a.func,id:i.a.string.isRequired,initialDateForCalendarRender:i.a.instanceOf(Date).isRequired,isIsoWeekday:i.a.bool,onCalendarBlur:i.a.func.isRequired,onChangeMonth:i.a.func.isRequired,onRequestInternalFocusDate:i.a.func,onRequestClose:i.a.func.isRequired,onSelectDate:i.a.func.isRequired,selectedDate:i.a.instanceOf(Date),selectedDateRef:i.a.func,todayLabel:i.a.string.isRequired,onLastFocusableNodeKeyDown:i.a.func,todayRef:i.a.func,weekDayLabels:i.a.array.isRequired});var Zy=Jy;function $y(e){return($y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ev(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nv(e,t){return(nv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iv(e);if(t){var o=iv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ov(this,n)}}function ov(e,t){return!t||"object"!==$y(t)&&"function"!=typeof t?av(e):t}function av(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iv(e){return(iv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nv(e,t)}(i,e);var t,n,r,a=rv(i);function i(){var e;ev(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return sv(av(e=a.call.apply(a,[this].concat(n))),"getOptions",(function(){for(var t=new Date,n=t.getFullYear()+e.props.relativeYearFrom,r=t.getFullYear()+e.props.relativeYearTo,o=[],a=n;a<r;a+=1)o.push({label:"".concat(a),value:a,id:String(o.length)});return o})),sv(av(e),"getSelectedValueOption",(function(){var t=e.props.initialDateForCalendarRender.getFullYear();return e.getOptions().filter((function(e){return e.value===t}))})),sv(av(e),"handleSelect",(function(t,n){var r=n.selection[0];r&&e.props.onChangeMonth(new Date(e.props.initialDateForCalendarRender.setFullYear(parseInt(r.value,10))))})),e}return t=i,(n=[{key:"render",value:function(){var e=this.getSelectedValueOption();return o.a.createElement("div",{className:"slds-form-element slds-align-content-center"},o.a.createElement(Qm,{assistiveText:{label:this.props.assistiveTextYear},className:"slds-shrink-none",classNameMenu:"slds-datepicker",events:{onSelect:this.handleSelect},id:"".concat(this.props.id,"-year-picklist"),inheritWidthOf:"target",menuPosition:"relative",multiple:!1,options:this.getOptions(),labels:{placeholder:"Year"},selection:e,value:e.value,variant:"readonly"}))}}])&&tv(t.prototype,n),r&&tv(t,r),i}(o.a.Component);sv(lv,"displayName","SLDSDatepickerYearSelector"),sv(lv,"propTypes",{assistiveTextYear:i.a.string.isRequired,id:i.a.string,initialDateForCalendarRender:i.a.instanceOf(Date).isRequired,onChangeMonth:i.a.func.isRequired,relativeYearFrom:i.a.number,relativeYearTo:i.a.number});var cv=lv;function uv(e){return(uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dv(e,t){return(dv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yv(e);if(t){var o=yv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mv(this,n)}}function mv(e,t){return!t||"object"!==uv(t)&&"function"!=typeof t?bv(e):t}function bv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yv(e){return(yv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dv(e,t)}(i,e);var t,n,r,a=hv(i);function i(){var e;pv(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return vv(bv(e=a.call.apply(a,[this].concat(n))),"getMonthLabel",(function(){return e.props.monthLabels[new Date(e.props.initialDateForCalendarRender).getMonth()]})),vv(bv(e),"getYearLabel",(function(){return new Date(e.props.initialDateForCalendarRender).getFullYear()})),vv(bv(e),"handleClick",(function(e){e.preventDefault(),e.stopPropagation()})),vv(bv(e),"handleYearSelect",(function(t){e.props.onChangeMonth(void 0,t)})),vv(bv(e),"previousMonthClicked",(function(){e.props.onChangeMonth(void 0,Ay.addMonths(e.props.initialDateForCalendarRender,-1))})),vv(bv(e),"nextMonthClicked",(function(){e.props.onChangeMonth(void 0,Ay.addMonths(e.props.initialDateForCalendarRender,1))})),e}return t=i,(n=[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:"slds-datepicker__filter slds-grid"},o.a.createElement("div",{className:"slds-datepicker__filter_month slds-grid slds-grid_align-spread slds-grow",style:{flex:1.75}},o.a.createElement("div",{className:"slds-align-middle"},o.a.createElement(ar,{assistiveText:{icon:this.props.assistiveTextPreviousMonth},iconCategory:"utility",iconName:"left",iconVariant:"container",onKeyDown:this.props.onPreviousMonthKeyDown,onClick:this.previousMonthClicked,buttonRef:function(t){e.props.previousMonthRef(t)},variant:"icon",type:"button"})),o.a.createElement("h2",{id:"".concat(this.props.id,"-month"),className:"slds-align-middle","aria-live":"assertive","aria-atomic":!0},this.getMonthLabel()," ",o.a.createElement("span",{className:"slds-assistive-text"},this.getYearLabel())),o.a.createElement("div",{className:"slds-align-middle"},o.a.createElement(ar,{assistiveText:{icon:this.props.assistiveTextNextMonth},iconCategory:"utility",iconName:"right",iconVariant:"container",onClick:this.nextMonthClicked,variant:"icon",type:"button"}))),o.a.createElement(cv,{assistiveTextYear:this.props.assistiveTextYear,id:this.props.id,initialDateForCalendarRender:this.props.initialDateForCalendarRender,onChangeMonth:this.handleYearSelect,relativeYearFrom:this.props.relativeYearFrom,relativeYearTo:this.props.relativeYearTo}))}}])&&fv(t.prototype,n),r&&fv(t,r),i}(o.a.Component);vv(gv,"displayName","SLDSDatepickerMonthNavigation"),vv(gv,"propTypes",{assistiveTextNextMonth:i.a.string.isRequired,assistiveTextPreviousMonth:i.a.string.isRequired,assistiveTextYear:i.a.string.isRequired,id:i.a.string,initialDateForCalendarRender:i.a.instanceOf(Date).isRequired,onChangeMonth:i.a.func.isRequired,monthLabels:i.a.array.isRequired,onPreviousMonthKeyDown:i.a.func,previousMonthRef:i.a.func.isRequired,relativeYearFrom:i.a.number,relativeYearTo:i.a.number});var Ov=gv;function _v(e){return(_v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function wv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ev(e,t){return(Ev=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tv(e);if(t){var o=Tv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jv(this,n)}}function jv(e,t){return!t||"object"!==_v(t)&&"function"!=typeof t?Nv(e):t}function Nv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tv(e){return(Tv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ev(e,t)}(i,e);var t,n,r,a=Cv(i);function i(){var e;wv(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Pv(Nv(e=a.call.apply(a,[this].concat(n))),"state",{initialDateForCalendarRender:e.props.selectedDate}),Pv(Nv(e),"handleCalendarBlur",(function(t,n){var r=n.direction;"next"===r&&e.previousMonthRef?(e.props.onCalendarFocus&&e.props.onCalendarFocus(t,{direction:r,ref:e.previousMonthRef}),e.previousMonthRef.focus()):"previous"===r&&e.todayRef&&(e.props.onCalendarFocus&&e.props.onCalendarFocus(t,{direction:r,ref:e.todayRef}),e.todayRef.focus())})),Pv(Nv(e),"handleFirstFocusableNodeKeyDown",(function(e){e.shiftKey&&e.keyCode===zt.TAB&&St.trapEvent(e)})),Pv(Nv(e),"handleInitialDateForCalendarRenderChange",(function(t,n){e.setState({initialDateForCalendarRender:n})})),Pv(Nv(e),"handleKeyDown",(function(t){t.keyCode===zt.ESCAPE&&(St.trapEvent(t),e.props.onRequestClose(t,{}))})),Pv(Nv(e),"handleLastFocusableNodeKeyDown",(function(e){e.shiftKey||e.keyCode!==zt.TAB||St.trapEvent(e)})),Pv(Nv(e),"handleRequestClose",(function(t){e.props.onRequestClose&&e.props.onRequestClose(t,{})})),Pv(Nv(e),"handleRequestFocusDate",(function(t,n){if(n.ref&&e.props.canFocusCalendar&&n.ref.focus(),e.props.onCalendarFocus&&n.triggerCallback){n.triggerCallback;var r=xv(n,["triggerCallback"]);e.props.onCalendarFocus(t,r)}})),e}return t=i,(n=[{key:"render",value:function(){var e=this;return o.a.createElement("div",{className:l()({"slds-datepicker":this.props.isolated},this.props.className),"aria-hidden":"false","data-selection":"single",onKeyDown:this.handleKeyDown},o.a.createElement(Ov,{assistiveTextNextMonth:this.props.assistiveTextNextMonth,assistiveTextPreviousMonth:this.props.assistiveTextPreviousMonth,assistiveTextYear:this.props.assistiveTextYear,id:this.props.id,initialDateForCalendarRender:this.state.initialDateForCalendarRender,monthLabels:this.props.monthLabels,onChangeMonth:this.handleInitialDateForCalendarRenderChange,previousMonthRef:function(t){e.previousMonthRef=t},onPreviousMonthKeyDown:this.handleFirstFocusableNodeKeyDown,relativeYearFrom:this.props.relativeYearFrom,relativeYearTo:this.props.relativeYearTo}),o.a.createElement(Zy,{abbreviatedWeekDayLabels:this.props.abbreviatedWeekDayLabels,dateDisabled:this.props.dateDisabled,id:this.props.id,initialDateForCalendarRender:this.state.initialDateForCalendarRender,isIsoWeekday:this.props.isIsoWeekday,onCalendarBlur:this.handleCalendarBlur,onChangeMonth:this.handleInitialDateForCalendarRenderChange,onRequestClose:this.handleRequestClose,onRequestInternalFocusDate:this.handleRequestFocusDate,onSelectDate:this.props.onSelectDate,selectedDate:this.props.selectedDate,selectedDateRef:this.props.selectedDateRef,todayLabel:this.props.todayLabel,todayRef:function(t){e.todayRef=t},onLastFocusableNodeKeyDown:this.handleLastFocusableNodeKeyDown,weekDayLabels:this.props.weekDayLabels}))}}])&&Sv(t.prototype,n),r&&Sv(t,r),i}(o.a.Component);Pv(kv,"displayName","DatepickerCalendarWrapper"),Pv(kv,"propTypes",{assistiveTextNextMonth:i.a.string.isRequired,assistiveTextPreviousMonth:i.a.string.isRequired,assistiveTextYear:i.a.string.isRequired,abbreviatedWeekDayLabels:i.a.array.isRequired,canFocusCalendar:i.a.bool.isRequired,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),dateDisabled:i.a.func,id:i.a.string,isIsoWeekday:i.a.bool,isolated:i.a.bool,monthLabels:i.a.array.isRequired,onCalendarFocus:i.a.func,onRequestClose:i.a.func.isRequired,onSelectDate:i.a.func.isRequired,relativeYearFrom:i.a.number.isRequired,relativeYearTo:i.a.number.isRequired,selectedDate:i.a.instanceOf(Date),selectedDateRef:i.a.func,todayLabel:i.a.string.isRequired,weekDayLabels:i.a.array.isRequired}),Pv(kv,"defaultProps",{selectedDate:new Date,value:new Date});var Rv=kv;var Iv=function(){},Dv=n(49);function Av(e){return(Av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lv(Object(n),!0).forEach((function(t){Vv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mv(e,t){return(Mv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Wv(e);if(t){var o=Wv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qv(this,n)}}function qv(e,t){return!t||"object"!==Av(t)&&"function"!=typeof t?Kv(e):t}function Kv(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wv(e){return(Wv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zv={assistiveText:i.a.shape({nextMonth:i.a.string,openCalendar:i.a.string,previousMonth:i.a.string,year:i.a.string}),align:i.a.oneOf(["left","right"]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,dateDisabled:i.a.func,formatter:i.a.func,formattedValue:i.a.string,hasError:i.a.bool,hasStaticAlignment:i.a.bool,id:i.a.string,labels:i.a.shape({abbreviatedWeekDays:i.a.array,label:i.a.string,months:i.a.array,placeholder:i.a.string,today:i.a.string,weekDays:i.a.array}),input:i.a.node,isOpen:i.a.bool,isIsoWeekday:i.a.bool,menuPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),onCalendarFocus:i.a.func,onChange:i.a.func,onClose:i.a.func,onOpen:i.a.func,onRequestClose:i.a.func,onRequestOpen:i.a.func,parser:i.a.func,relativeYearFrom:i.a.number,relativeYearTo:i.a.number,triggerClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),value:i.a.instanceOf(Date)},Uv={align:"left",assistiveText:{nextMonth:"Next month",openCalendar:"Open Calendar",previousMonth:"Previous month",year:"Year"},formatter:function(e){return e?"".concat(e.getMonth()+1,"/").concat(e.getDate(),"/").concat(e.getFullYear()):""},labels:{abbreviatedWeekDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],placeholder:"Pick a Date",today:"Today",weekDays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},menuPosition:"absolute",parser:function(e){return Lr(!1,"Please use an external library for date parsing and internationalization like MomentJS (https://github.com/moment/moment/) instead of the default parser."),new Date(e)},relativeYearFrom:-10,relativeYearTo:10,dateDisabled:function(){return!1}},Gv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mv(e,t)}(i,e);var t,n,r,a=Hv(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),Vv(Kv(t=a.call(this,e)),"getDatePicker",(function(e){var n,r=e.labels,a=e.assistiveText;return n=t.props.value?t.props.formatter(t.props.value)?t.parseDate(t.props.formatter(t.props.value)):t.props.value:t.state.formattedValue?t.parseDate(t.state.formattedValue):t.state.value,o.a.createElement(Rv,{abbreviatedWeekDayLabels:t.props.abbreviatedWeekDayLabels||t.props.abbrWeekDayLabels||r.abbreviatedWeekDays,assistiveTextNextMonth:t.props.assistiveTextNextMonth||a.nextMonth,assistiveTextPreviousMonth:t.props.assistiveTextPreviousMonth||a.previousMonth,assistiveTextYear:a.year,canFocusCalendar:t.state.isOpenFromIcon,id:t.getId(),isIsoWeekday:t.props.isIsoWeekday,monthLabels:t.props.monthLabels||r.months,onCalendarFocus:t.props.onCalendarFocus,dateDisabled:t.props.dateDisabled,onRequestClose:t.handleRequestClose,onSelectDate:t.handleCalendarChange,relativeYearFrom:t.props.relativeYearFrom,relativeYearTo:t.props.relativeYearTo,selectedDate:n||new Date,selectedDateRef:function(e){t.selectedDateCell=e},todayLabel:t.props.todayLabel||r.today,weekDayLabels:t.props.weekDayLabels||r.weekDays})})),Vv(Kv(t),"getDialog",(function(e){var n=e.labels,r=e.assistiveText,a=t.props.isInline?"relative":t.props.menuPosition,i="relative"!==t.props.menuPosition?{transform:"none"}:{};return!t.props.disabled&&t.getIsOpen()?o.a.createElement(bn,{align:"bottom ".concat(t.props.align),contentsClassName:l()("slds-datepicker slds-dropdown",{"slds-dropdown_right":"relative"===t.props.menuPosition&&"right"===t.props.align,"slds-dropdown_left":"relative"===t.props.menuPosition&&"left"===t.props.align},t.props.className),context:t.context,hasStaticAlignment:t.props.hasStaticAlignment,style:i,onClose:t.handleClose,onOpen:t.handleOpen,onRequestTargetElement:function(){return t.inputRef},position:a,portalMount:t.props.portalMount},t.getDatePicker({labels:n,assistiveText:r})):null})),Vv(Kv(t),"getId",(function(){return t.props.id||t.generatedId})),Vv(Kv(t),"getIsOpen",(function(){return!!("boolean"==typeof t.props.isOpen?t.props.isOpen:t.state.isOpen)})),Vv(Kv(t),"getInputProps",(function(e){var n=e.assistiveText,r=e.labels,a={iconRight:o.a.createElement(Ac,{assistiveText:{icon:t.props.assistiveTextOpenCalendar||n.openCalendar},"aria-haspopup":!0,"aria-expanded":t.getIsOpen(),category:"utility",name:"event",onClick:function(){t.openDialogFromIcon()},type:"button"}),inputRef:function(e){t.setInputRef(e)},id:t.getId(),onChange:t.handleInputChange,onClick:function(){t.openDialog()},onKeyDown:t.handleKeyDown,value:t.props.value?t.props.formatter(t.props.value):t.state.inputValue},i={disabled:t.props.disabled,label:t.props.label||r.label,onBlur:t.props.onBlur,onFocus:t.props.onFocus,placeholder:t.props.placeholder||r.placeholder,required:t.props.required},s=t.props.children&&t.props.children.props,l=Bv(Bv({},s),{},{onClick:function(){t.openDialog(),s&&s.onClick&&s.onClick()}}),c=t.props.input&&t.props.input.props;return Bv(Bv(Bv(Bv({},a),i),l),c)})),Vv(Kv(t),"setInputRef",(function(e){t.inputRef=e,t.state.inputRendered||t.setState({inputRendered:!0})})),Vv(Kv(t),"handleCalendarChange",(function(e,n){var r=n.date;t.props.value||t.setState({value:r,formattedValue:t.props.formatter(r),inputValue:t.props.formatter(r)}),t.handleRequestClose(),t.props.onChange&&t.props.onChange(e,{date:r,formattedDate:t.props.formatter(r),timezoneOffset:r.getTimezoneOffset()}),t.props.onDateChange&&t.props.onDateChange(r,t.props.formatter(r))})),Vv(Kv(t),"handleClickOutside",(function(){t.handleRequestClose()})),Vv(Kv(t),"handleClose",(function(){t.props.onClose&&t.props.onClose()})),Vv(Kv(t),"handleInputChange",(function(e){"boolean"!=typeof t.props.isOpen&&t.state.isOpen&&t.setState({isOpen:!1}),t.setState({formattedValue:e.target.value,inputValue:e.target.value});var n=t.props.parser(e.target.value);t.props.onChange&&t.props.onChange(e,{date:n,formattedDate:e.target.value,timezoneOffset:n.getTimezoneOffset()})})),Vv(Kv(t),"handleKeyDown",(function(e){!e.keyCode||e.shiftKey||e.keyCode!==zt.DOWN&&e.keyCode!==zt.UP||(St.trapEvent(e),t.setState({isOpen:!0})),e.keyCode!==zt.ESCAPE&&e.keyCode!==zt.ENTER||(St.trapEvent(e),t.setState({isOpen:!1})),t.props.onKeyDown&&t.props.onKeyDown(e,{})})),Vv(Kv(t),"handleOpen",(function(e,n){var r=n.portal;t.props.onOpen&&t.props.onOpen(e,{portal:r}),t.selectedDateCell&&t.state.isOpenFromIcon&&t.selectedDateCell.focus()})),Vv(Kv(t),"handleRequestClose",(function(){t.props.onRequestClose&&t.props.onRequestClose(),t.getIsOpen()&&(t.setState({isOpen:!1,isOpenFromIcon:!1}),t.inputRef&&t.inputRef.focus())})),Vv(Kv(t),"openDialogFromIcon",(function(){t.setState({isOpenFromIcon:!0}),t.openDialog(!0)})),Vv(Kv(t),"openDialog",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||t.setState({isOpenFromIcon:!1}),t.props.onRequestOpen?t.props.onRequestOpen():t.setState({isOpen:!0})})),Vv(Kv(t),"parseDate",(function(e){var n=t.props.parser(e);return("[object Date]"!==Object.prototype.toString.call(n)||isNaN(n.getTime()))&&(n=new Date),n}));var n=e.formattedValue||e.strValue,r=e.formatter(e.value),s=e.value?r:n;return t.state={isOpen:!1,isOpenFromIcon:!1,value:e.value,formattedValue:s||"",inputValue:s||""},t.generatedId=u.a.generate(),Iv(L,e,Dv),t}return t=i,(n=[{key:"render",value:function(){var e=ur()({},Uv.labels,this.props.labels),t=ur()({},Uv.assistiveText,this.props.assistiveText),n=this.getInputProps({assistiveText:t,labels:e}),r=this.props.children?o.a.cloneElement(this.props.children,Bv({},n)):o.a.createElement(Pu,n);return o.a.createElement("div",{className:l()("slds-dropdown-trigger","slds-dropdown-trigger_click","ignore-react-onclickoutside",{"slds-has-error":this.props.hasError,"slds-is-open":this.getIsOpen()},this.props.triggerClassName)},r,this.getDialog({labels:e,assistiveText:t}))}}])&&Fv(t.prototype,n),r&&Fv(t,r),i}(o.a.Component);Gv.contextType=pt,Gv.displayName=L,Gv.propTypes=zv,Gv.defaultProps=Uv;var Yv=Ci(Gv);function Xv(e){return(Xv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qv(e){return function(e){if(Array.isArray(e))return Jv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jv(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eg(e,t){return(eg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rg(e);if(t){var o=rg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ng(this,n)}}function ng(e,t){return!t||"object"!==Xv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rg(e){return(rg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var og={assistiveText:i.a.shape({label:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),isPaused:i.a.bool,isStatic:i.a.bool,scorePolarity:i.a.oneOf(["positive","negative"]),strengthLevel:i.a.oneOf(["-3","-2","-1","0","1","2","3",-3,-2,-1,0,1,2,3]),title:i.a.string.isRequired,trendDirection:i.a.oneOf(["down","up","neutral"]),variant:i.a.oneOf(["ellie","eq","score","strength","trend","typing","waffle"]).isRequired},ag=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eg(e,t)}(i,e);var t,n,r,a=tg(i);function i(){return Zv(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"getIconChildren",value:function(){var e=[],t=this.props.title?this.props.title:"".concat(this.props.variant.charAt(0).toUpperCase()).concat(this.props.variant.slice(1));return"ellie"===this.props.variant?e=[o.a.createElement("svg",{viewBox:"0 0 280 14","aria-hidden":"true"},o.a.createElement("circle",{cx:"7",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"7",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"21",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"21",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"35",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"35",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"49",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"49",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"63",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"63",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"77",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"77",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"91",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"91",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"105",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"105",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"119",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"119",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"133",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"133",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"147",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"147",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"161",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"161",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"175",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"175",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"189",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"189",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"203",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"203",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"217",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"217",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"231",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"231",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"245",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"245",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"259",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"259",cy:"7",r:"3"}),o.a.createElement("circle",{cx:"273",cy:"7",r:"4"}),o.a.createElement("circle",{cx:"273",cy:"7",r:"3"}))]:"eq"===this.props.variant?e=[o.a.createElement("div",{className:"slds-icon-eq__bar"}),o.a.createElement("div",{className:"slds-icon-eq__bar"}),o.a.createElement("div",{className:"slds-icon-eq__bar"})]:"score"===this.props.variant?e=[o.a.createElement("svg",{viewBox:"0 0 5 5",className:"slds-icon-score__positive","aria-hidden":"true"},o.a.createElement("circle",{cx:"50%",cy:"50%",r:"1.875"})),o.a.createElement("svg",{viewBox:"0 0 5 5",className:"slds-icon-score__negative","aria-hidden":"true"},o.a.createElement("circle",{cx:"50%",cy:"50%",r:"1.875"}))]:"strength"===this.props.variant?e=[o.a.createElement("svg",{viewBox:"0 0 27 7","aria-hidden":"true"},o.a.createElement("circle",{r:"3.025",cx:"3.5",cy:"3.5"}),o.a.createElement("circle",{r:"3.025",cx:"13.5",cy:"3.5"}),o.a.createElement("circle",{r:"3.025",cx:"23.5",cy:"3.5"}))]:"trend"===this.props.variant?e=[o.a.createElement("svg",{viewBox:"0 0 16 16","aria-hidden":"true"},o.a.createElement("path",{className:"slds-icon-trend__arrow",d:"M.75 8H11M8 4.5L11.5 8 8 11.5"}),o.a.createElement("circle",{className:"slds-icon-trend__circle",cy:"8",cx:"8",r:"7.375",transform:"rotate(-28 8 8) scale(-1 1) translate(-16 0)"}))]:"typing"===this.props.variant?(e=[o.a.createElement("span",{className:"slds-icon-typing__dot"}),o.a.createElement("span",{className:"slds-icon-typing__dot"}),o.a.createElement("span",{className:"slds-icon-typing__dot"})],this.props.title||(t="User is typing")):"waffle"===this.props.variant&&(e=[o.a.createElement("span",{className:"slds-icon-waffle"},o.a.createElement("span",{className:"slds-r1"}),o.a.createElement("span",{className:"slds-r2"}),o.a.createElement("span",{className:"slds-r3"}),o.a.createElement("span",{className:"slds-r4"}),o.a.createElement("span",{className:"slds-r5"}),o.a.createElement("span",{className:"slds-r6"}),o.a.createElement("span",{className:"slds-r7"}),o.a.createElement("span",{className:"slds-r8"}),o.a.createElement("span",{className:"slds-r9"}))],this.props.title||(t="Open App Launcher")),e.push(o.a.createElement("span",{className:"slds-assistive-text"},this.props.assistiveText&&this.props.assistiveText.label?this.props.assistiveText.label:t)),e}},{key:"render",value:function(){var e=this.getIconChildren(),t=[{"slds-is-animated":!this.props.isStatic,"slds-is-paused":this.props.isPaused}],n={title:this.props.title},r="span";return"waffle"===this.props.variant?(t.unshift("slds-button","slds-icon-waffle_container"),r="button"):(t.unshift("slds-icon-".concat(this.props.variant)),"eq"===this.props.variant?r="div":"score"===this.props.variant?n["data-slds-state"]=this.props.scorePolarity?this.props.scorePolarity:"positive":"strength"===this.props.variant?n["data-slds-strength"]=void 0!==this.props.strengthLevel?"".concat(this.props.strengthLevel):"0":"trend"===this.props.variant&&(n["data-slds-trend"]=this.props.trendDirection?this.props.trendDirection:"neutral")),n.className=gn(t,this.props.className),o.a.createElement.apply(o.a,[r,n].concat(Qv(e)))}}])&&$v(t.prototype,n),r&&$v(t,r),i}(o.a.Component);ag.displayName="SLDSDynamicIcon",ag.propTypes=og;var ig=ag;function sg(e){return(sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lg(){return(lg=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cg(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ug(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fg(e,t){return(fg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bg(e);if(t){var o=bg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hg(this,n)}}function hg(e,t){return!t||"object"!==sg(t)&&"function"!=typeof t?mg(e):t}function mg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bg(e){return(bg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vg={labels:{cancel:"Cancel",save:"Save"}},gg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fg(e,t)}(i,e);var t,n,r,a=dg(i);function i(){var e;ug(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return yg(mg(e=a.call.apply(a,[this].concat(n))),"handleOpen",(function(){e.setState({isOpen:!0})})),yg(mg(e),"handleClose",(function(){e.setState({isOpen:!1})})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.onCancel,n=e.onSave,r=cg(e,["onCancel","onSave"]),a=this.props.children?this.props.children:o.a.createElement(ar,{assistiveText:{icon:"Edit: Status"},className:"slds-button_reset",disabled:this.props.disabled,iconCategory:"utility",iconClassName:"slds-button__icon slds-button__icon_hint",iconName:"edit",onClick:this.props.handleOpen,variant:"icon",style:{verticalAlign:"middle"}}),i=ur()({},vg.labels,this.props.labels);return o.a.createElement(wh,lg({classNameFooter:["slds-p-top_xxx-small","slds-p-bottom_xx-small","slds-p-right_large"],classNameBody:["slds-p-bottom_xx-small"],footer:o.a.createElement("div",{className:"slds-text-align_right slds-text-align_right slds-p-bottom_x-small slds-p-right_xx-small"},o.a.createElement(ar,{label:i.cancel,onClick:t}),o.a.createElement(ar,{disabled:!this.props.isModified,variant:"brand",label:i.save,onClick:n})),footerStyle:{borderTop:"0px"},onClose:this.handleClose,onRequestClose:this.handleClose,onOpen:this.handleOpen},r),a)}}])&&pg(t.prototype,n),r&&pg(t,r),i}(o.a.Component);yg(gg,"displayName","SLDSPopoverEditDialog"),yg(gg,"propTypes",{disabled:i.a.bool,id:i.a.string,isModified:i.a.bool,labels:i.a.shape({cancel:i.a.oneOfType([i.a.string,i.a.node]),save:i.a.oneOfType([i.a.string,i.a.node])}),onCancel:i.a.func,onSave:i.a.func,popover:i.a.node}),gg.defaultProps=vg;var Og=gg;function _g(e){return(_g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wg(e,t){return(wg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cg(e);if(t){var o=Cg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eg(this,n)}}function Eg(e,t){return!t||"object"!==_g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cg(e){return(Cg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jg={assistiveText:i.a.shape({label:i.a.string,addCondition:i.a.string,addGroup:i.a.string}),id:i.a.string,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onChangeTrigger:i.a.func,onChangeCustomLogicValue:i.a.func,onAddCondition:i.a.func,onAddGroup:i.a.func}),focusOnMount:i.a.bool,labels:i.a.shape({addCondition:i.a.string,addGroup:i.a.string,customLogic:i.a.string,label:i.a.string,takeAction:i.a.string,triggerAll:i.a.string,triggerAlways:i.a.string,triggerAny:i.a.string,triggerCustom:i.a.string,triggerFormula:i.a.string}),isRoot:i.a.bool,triggerType:i.a.oneOf(["all","any","custom","always","formula"]),customLogicValue:i.a.string},Ng={triggerType:"all",customLogicValue:"",labels:{label:"",takeAction:"Take Action When",customLogic:"Custom Logic",addCondition:"Add Condition",addGroup:"Add Group",triggerAll:"All Conditions Are Met",triggerAny:"Any Condition Is Met",triggerCustom:"Custom Logic Is Met",triggerAlways:"Always (No Criteria)",triggerFormula:"Formula Evaluates To True"}},Tg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wg(e,t)}(i,e);var t,n,r,a=Sg(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,r=[{key:"triggerChange",value:function(e,t){var n=t.selection[0].id,r="";return"1"===n?r="all":"2"===n?r="any":"3"===n?r="custom":"4"===n?r="always":"5"===n&&(r="formula"),r}}],(n=[{key:"componentDidMount",value:function(){if(this.props.focusOnMount&&this.rootNode){var e=this.rootNode.querySelector("input");e&&e.focus()}}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getTriggers",value:function(){var e=ur()({},Ng.labels,this.props.labels);return[{id:"1",label:e.triggerAll},{id:"2",label:e.triggerAny},{id:"3",label:e.triggerCustom},{id:"4",label:e.triggerAlways},{id:"5",label:e.triggerFormula}]}},{key:"getTriggerSelection",value:function(){var e=this.props.triggerType,t=this.getTriggers(),n=[];return"all"===e?n.push(t[0]):"any"===e?n.push(t[1]):"custom"===e?n.push(t[2]):"always"===e?n.push(t[3]):"formula"===e&&n.push(t[4]),n}},{key:"render",value:function(){var e=this,t=ur()({},Ng.assistiveText,this.props.assistiveText),n=ur()({},Ng.labels,this.props.labels),r=o.a.createElement(Jm,{events:{onSelect:function(t,n){return e.props.events.onChangeTrigger(t,{triggerType:i.triggerChange(t,n)})}},id:"".concat(this.getId(),"-take-action-trigger"),multiple:!1,options:this.getTriggers(),variant:"readonly",labels:{label:n.takeAction},selection:this.getTriggerSelection()}),a="always"!==this.props.triggerType&&"formula"!==this.props.triggerType?o.a.createElement("div",{className:"slds-expression__buttons"},o.a.createElement(ar,{iconCategory:"utility",iconName:"add",iconPosition:"left",id:"".concat(this.getId(),"-add-condition-button"),label:n.addCondition,assistiveText:{icon:t.addCondition},onClick:this.props.events.onAddCondition}),this.props.isRoot?o.a.createElement(ar,{iconCategory:"utility",iconName:"add",iconPosition:"left",id:"".concat(this.getId(),"-add-group-button"),label:n.addGroup,assistiveText:{icon:t.addGroup},onClick:this.props.events.onAddGroup}):null):null,s=null;return"always"!==this.props.triggerType&&(s=this.props.isRoot&&"formula"===this.props.triggerType?this.props.children:o.a.createElement(o.a.Fragment,null,"custom"===this.props.triggerType?o.a.createElement(Pu,{label:n.customLogic,className:"slds-expression__custom-logic",id:"".concat(this.getId(),"-custom-logic-input"),value:this.props.customLogicValue,variant:"base",onChange:this.props.events.onChangeCustomLogicValue}):null,o.a.createElement("ul",null,this.props.children))),this.props.isRoot?"formula"===this.props.triggerType?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-expression__options"},r),s):o.a.createElement("div",{className:l()(this.props.className),id:this.getId()},o.a.createElement("div",{className:"slds-expression__options"},r),s,a):o.a.createElement("li",{className:l()("slds-expression__group",this.props.className),id:this.getId(),ref:function(t){e.rootNode=t}},o.a.createElement("fieldset",null,o.a.createElement("legend",{className:"slds-expression__legend slds-expression__legend_group"},o.a.createElement("span",null,n.label),o.a.createElement("span",{className:"slds-assistive-text"},t.label)),o.a.createElement("div",{className:"slds-expression__options"},r),s,a))}}])&&xg(t.prototype,n),r&&xg(t,r),i}(o.a.Component);Tg.displayName="SLDSExpressionGroup",Tg.propTypes=jg,Tg.defaultProps=Ng;var Pg=Tg;function kg(e){return(kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ig(e,t){return(Ig=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lg(e);if(t){var o=Lg(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ag(this,n)}}function Ag(e,t){return!t||"object"!==kg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lg(e){return(Lg=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bg={id:i.a.string,children:i.a.node,events:i.a.shape({onChangeTrigger:i.a.func,onAddGroup:i.a.func,onAddCondition:i.a.func,onChangeCustomLogicValue:i.a.func}),labels:i.a.shape({addCondition:i.a.string,addGroup:i.a.string,customLogic:i.a.string,takeAction:i.a.string,title:i.a.string,triggerAll:i.a.string,triggerAlways:i.a.string,triggerAny:i.a.string,triggerCustom:i.a.string,triggerFormula:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),triggerType:i.a.oneOf(["all","any","custom","always","formula"]),customLogicValue:i.a.string},Fg={labels:{title:"Conditions"}},Mg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ig(e,t)}(i,e);var t,n,r,a=Dg(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=ur()({},Fg.labels,this.props.labels);return o.a.createElement("div",{className:l()("slds-expression",this.props.className),id:this.getId()},o.a.createElement("h2",{className:"slds-expression__title"},e.title),o.a.createElement(Pg,{isRoot:!0,id:"".concat(this.getId(),"-group"),events:this.props.events,labels:e,customLogicValue:this.props.customLogicValue,triggerType:this.props.triggerType},this.props.children))}}])&&Rg(t.prototype,n),r&&Rg(t,r),i}(o.a.Component);Mg.displayName="SLDSExpression",Mg.propTypes=Bg,Mg.defaultProps=Fg;var Hg=Mg;function qg(e){return(qg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wg(e,t){return(Wg=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vg(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ug(e);if(t){var o=Ug(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zg(this,n)}}function zg(e,t){return!t||"object"!==qg(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ug(e){return(Ug=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gg={assistiveText:i.a.shape({title:i.a.string,deleteIcon:i.a.string}),id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onChangeResource:i.a.func,onChangeOperator:i.a.func,onChangeValue:i.a.func,onDelete:i.a.func}).isRequired,focusOnMount:i.a.bool,labels:i.a.shape({deleteCondition:i.a.string,label:i.a.string,operator:i.a.string,resource:i.a.string,value:i.a.string}),isSubCondition:i.a.bool,resourcesList:i.a.arrayOf(i.a.object),resourceSelected:i.a.object,operatorsList:i.a.arrayOf(i.a.object),operatorSelected:i.a.object,value:i.a.string},Yg={assistiveText:{title:"Condition",deleteIcon:"Delete Condition"},labels:{label:"",operator:"Operator",resource:"Resource",value:"Value",deleteCondition:"Delete Condition"},value:""},Xg=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wg(e,t)}(i,e);var t,n,r,a=Vg(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentDidMount",value:function(){if(this.props.focusOnMount&&this.rootNode){var e=this.rootNode.querySelector("input");e&&e.focus()}}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this,t=ur()({},Yg.assistiveText,this.props.assistiveText),n=ur()({},Yg.labels,this.props.labels);return o.a.createElement("li",{className:l()("slds-expression__row",{"slds-expression__row_group":this.props.isSubCondition},this.props.className),id:this.getId(),ref:function(t){e.rootNode=t}},o.a.createElement("fieldset",null,o.a.createElement("legend",{className:"slds-expression__legend"},o.a.createElement("span",null,n.label),o.a.createElement("span",{className:"slds-assistive-text"},t.title)),o.a.createElement("div",{className:"slds-grid slds-gutters_xx-small"},o.a.createElement("div",{className:"slds-col"},o.a.createElement(Jm,{events:{onSelect:this.props.events.onChangeResource},id:"".concat(this.getId(),"-resource-selector"),multiple:!1,variant:"readonly",labels:{label:n.resource},options:this.props.resourcesList,selection:[this.props.resourceSelected]})),o.a.createElement("div",{className:"slds-col slds-grow-none"},o.a.createElement(Jm,{events:{onSelect:this.props.events.onChangeOperator},id:"".concat(this.getId(),"-operator-selector"),multiple:!1,variant:"readonly",labels:{label:n.operator},options:this.props.operatorsList,selection:[this.props.operatorSelected],singleInputDisabled:!this.props.resourceSelected})),o.a.createElement("div",{className:"slds-col"},o.a.createElement(Pu,{id:"".concat(this.getId(),"-input"),label:n.value,value:this.props.value,onChange:this.props.events.onChangeValue,disabled:!this.props.resourceSelected})),o.a.createElement("div",{className:"slds-col slds-grow-none"},o.a.createElement("div",{className:"slds-form-element"},o.a.createElement("span",{className:"slds-form-element__label"}," "),o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement(ar,{id:"".concat(this.getId(),"-delete-button"),variant:"outline-brand",iconCategory:"utility",iconName:"delete",iconVariant:"border-filled",onClick:this.props.events.onDelete,assistiveText:{icon:t.deleteIcon},title:n.deleteCondition})))))))}}])&&Kg(t.prototype,n),r&&Kg(t,r),i}(o.a.Component);Xg.displayName="SLDSExpressionCondition",Xg.propTypes=Gg,Xg.defaultProps=Yg;var Qg=Xg,Jg=n(50),Zg=n.n(Jg);function $g(e){return($g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tO(e,t){return(tO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=aO(e);if(t){var o=aO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rO(this,n)}}function rO(e,t){return!t||"object"!==$g(t)&&"function"!=typeof t?oO(e):t}function oO(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aO(e){return(aO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var iO={assistiveText:i.a.shape({help:i.a.string}),id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onChangeTextEditor:i.a.func,onClickHelp:i.a.func,onClickCheckSyntax:i.a.func}),labels:i.a.shape({label:i.a.string,checkSyntax:i.a.string,textArea:i.a.string}),resourceCombobox:i.a.node,functionCombobox:i.a.node,operatorInput:i.a.node,textEditorValue:i.a.node},sO={assistiveText:{help:"Help"},labels:{label:"Formula",checkSyntax:"Check Syntax",textArea:"Text Area"}},lO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tO(e,t)}(i,e);var t,n,r,a=nO(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(oO(e=a.call(this)),"handleTextEditorChange",(function(t){var n=t.target.value;void 0===e.props.textEditorValue&&e.setState({textEditorValue:n}),e.props.events&&e.props.events.onChangeTextEditor&&e.props.events.onChangeTextEditor(t,{textEditorValue:n})})),e.textEditorRef=o.a.createRef(),e.state={textEditorValue:"Compose formula..."},e.generatedId=u.a.generate(),e}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=ur()({},sO.assistiveText,this.props.assistiveText),t=ur()({},sO.labels,this.props.labels);return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{id:this.getId(),className:l()("slds-expression_formula__rte",this.props.className)},o.a.createElement("div",{className:"slds-form-element"},o.a.createElement("span",{className:"slds-form-element__label"},t.label),o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:"slds-rich-text-editor slds-grid slds-grid_vertical slds-nowrap"},o.a.createElement("div",{role:"toolbar",className:"slds-rich-text-editor__toolbar slds-shrink-none"},o.a.createElement("div",{className:"slds-rich-text-editor__col slds-rich-text-editor__col_grow"},this.props.resourceCombobox),o.a.createElement("div",{className:"slds-rich-text-editor__col slds-rich-text-editor__col_grow"},this.props.functionCombobox),o.a.createElement("div",{className:"slds-rich-text-editor__col slds-rich-text-editor__col_grow"},this.props.operatorInput),o.a.createElement("div",{className:"slds-rich-text-editor__col"},o.a.createElement(ar,{assistiveText:{icon:e.help},className:"slds-button_icon-container",id:"".concat(this.getId(),"-help-button"),variant:"icon",iconCategory:"utility",iconName:"help",onClick:this.props.events.onClickHelp,title:e.help}))),o.a.createElement("div",{className:"slds-rich-text-editor__textarea slds-grid"},o.a.createElement(Zg.a,{id:"".concat(this.getId(),"-content-editor"),"aria-label":this.props.labels.textArea,className:"slds-rich-text-area__content slds-text-color_weak slds-grow",innerRef:this.textEditorRef,html:void 0!==this.props.textEditorValue?this.props.textEditorValue:this.state.textEditorValue,onChange:this.handleTextEditorChange,disabled:!1})))))),o.a.createElement("div",{className:"slds-m-top_small"},o.a.createElement(ar,{id:"".concat(this.getId(),"-check-syntax-button"),variant:"neutral",label:t.checkSyntax,onClick:this.props.events.onClickCheckSyntax})))}}])&&eO(t.prototype,n),r&&eO(t,r),i}(o.a.Component);lO.displayName="SLDSExpressionFormula",lO.propTypes=iO,lO.defaultProps=sO;var cO=lO,uO=function(e){return e.isLoading?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText.link),o.a.createElement(Vc,{size:"medium",variant:"base",assistiveText:{label:e.assistiveText.loading},containerStyle:{zIndex:"1"}})):e.image?o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText.link),o.a.createElement("img",{alt:e.assistiveText.image||e.labels.title,src:e.image})):o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"slds-assistive-text"},e.assistiveText.link),o.a.createElement("span",{className:"slds-file__icon slds-icon_container",title:e.labels.title},o.a.cloneElement(e.icon,{size:null})))};uO.displayName="SLDSFilesFigure",uO.propTypes={assistiveText:i.a.shape({image:i.a.string}),isLoading:i.a.bool,image:i.a.string,labels:i.a.shape({title:i.a.string.isRequired})},uO.defaultProps={isLoading:!1};var pO=uO,fO=function(e){var t=o.a.createElement("div",{className:"slds-file__actions-menu"},o.a.createElement("div",{className:"slds-button-group",role:"group"},"function"==typeof e.onClickDownload?o.a.createElement(ar,{type:"button",variant:"icon",iconSize:"x-small",onClick:e.onClickDownload,title:"Download",className:"slds-button_icon-inverse"},o.a.createElement(jn,{assistiveText:{label:e.assistiveText.download},category:"utility",name:"download",size:"xx-small",inverse:e.hasNoVisibleTitle})):null,e.moreActionsDropdown?o.a.cloneElement(e.moreActionsDropdown,{assistiveText:{icon:e.assistiveText.moreActions},overlay:!1,buttonVariant:"icon",buttonInverse:e.hasNoVisibleTitle,className:"dsr-file__more-actions-dropdown ",triggerClassName:"dsr-file__more-actions"}):null));return"function"==typeof e.onClickDownload||e.moreActionsDropdown?e.hasNoVisibleTitle?o.a.createElement("div",{className:"slds-file__title slds-file__title_scrim"},t):t:null};fO.displayName="SLDSFilesActions",fO.propTypes={onClickDownload:i.a.func,moreActionsDropdown:i.a.node,hasNoVisibleTitle:i.a.bool};var dO=fO;function hO(e){return(hO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mO(Object(n),!0).forEach((function(t){wO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vO(e,t){return(vO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xO(e);if(t){var o=xO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OO(this,n)}}function OO(e,t){return!t||"object"!==hO(t)&&"function"!=typeof t?_O(e):t}function _O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xO(e){return(xO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SO={assistiveText:i.a.shape({download:i.a.string,image:i.a.string,link:i.a.string,loading:i.a.string,moreActions:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),crop:i.a.oneOf(["16-by-9","4-by-3","1-by-1"]),id:i.a.string,onClickDownload:i.a.func,onClickImage:i.a.func,moreActionsDropdown:i.a.node,icon:i.a.node,externalIcon:i.a.node,image:i.a.string,isLoading:i.a.bool,href:i.a.string,labels:i.a.shape({title:i.a.string.isRequired}),hasNoVisibleTitle:i.a.bool},EO={assistiveText:{download:"download",link:"Preview:",loading:"loading",moreActions:"more actions"},crop:"16-by-9",href:"#",isLoading:!1,hasNoVisibleTitle:!1},CO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vO(e,t)}(i,e);var t,n,r,a=gO(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),wO(_O(t=a.call(this,e)),"handleOnClickImage",(function(e){"#"===t.props.href&&e.preventDefault(),t.props.onClickImage&&t.props.onClickImage(e)})),t.generatedId=u.a.generate(),t}return t=i,r=[{key:"injectMoreActionsStyles",value:function(){return o.a.createElement("style",null,"\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:before\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions-dropdown ul.dropdown__list li.slds-dropdown__item > a:after\n\t\t\t\t\t{ background: none; }\n\t\t\t\t\t.dsr-file__more-actions > button:first-child\n\t\t\t\t\t{ border-radius: 0 0.25rem 0.25rem 0!important;}\n\t\t\t")}}],(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=bO(bO({},EO.assistiveText),this.props.assistiveText);return o.a.createElement("div",{id:this.getId(),className:l()("slds-file","slds-file_card",this.props.hasNoVisibleTitle?null:"slds-has-title",this.props.className)},o.a.createElement("figure",null,o.a.createElement("a",{href:this.props.href,className:l()("slds-file__crop",this.props.crop?"slds-file__crop_".concat(this.props.crop):null),onClick:this.handleOnClickImage},o.a.createElement(pO,{assistiveText:e,labels:{title:this.props.labels.title},isLoading:this.props.isLoading,image:this.props.image,icon:this.props.icon})),this.props.hasNoVisibleTitle?null:o.a.createElement("figcaption",{className:"slds-file__title slds-file__title_card"},o.a.createElement("div",{className:"slds-media__figure slds-line-height_reset"},this.props.icon?o.a.cloneElement(this.props.icon,{size:"x-small"}):null),o.a.createElement("div",{className:"slds-media__body"},o.a.createElement("span",{className:"slds-file__text slds-truncate",title:this.props.labels.title},this.props.labels.title)))),this.props.externalIcon?o.a.createElement("div",{className:"slds-file__external-icon"},o.a.cloneElement(this.props.externalIcon,{containerClassName:"slds-file__icon slds-icon_container"})):null,this.props.moreActionsDropdown?i.injectMoreActionsStyles():null,o.a.createElement(dO,{assistiveText:e,hasNoVisibleTitle:this.props.hasNoVisibleTitle,onClickDownload:this.props.onClickDownload,moreActionsDropdown:this.props.moreActionsDropdown}))}}])&&yO(t.prototype,n),r&&yO(t,r),i}(o.a.Component);CO.displayName="SLDSFilesFile",CO.propTypes=SO,CO.defaultProps=EO;var jO=CO;function NO(e){return(NO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PO(e,t){return(PO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IO(e);if(t){var o=IO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RO(this,n)}}function RO(e,t){return!t||"object"!==NO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function IO(e){return(IO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var DO={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,crop:i.a.oneOf(["16-by-9","4-by-3","1-by-1"]),columnClassName:i.a.string},AO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PO(e,t)}(i,e);var t,n,r,a=kO(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this,t=o.a.Children.map(this.props.children,(function(t){return o.a.createElement("li",{className:l()("slds-p-horizontal_xx-small slds-size_1-of-3 slds-medium-size_1-of-4",e.props.columnClassName)},o.a.cloneElement(t,{crop:t.props.crop?t.props.crop:e.props.crop}))}));return o.a.createElement("ul",{className:l()("slds-grid slds-grid_pull-padded",this.props.className),id:this.getId()},t)}}])&&TO(t.prototype,n),r&&TO(t,r),i}(o.a.Component);AO.displayName="SLDSFiles",AO.propTypes=DO,AO.defaultProps={crop:"4-by-3"};var LO=AO;function BO(e){return(BO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FO(Object(n),!0).forEach((function(t){HO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KO(e,t){return(KO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function WO(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zO(e);if(t){var o=zO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return VO(this,n)}}function VO(e,t){return!t||"object"!==BO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zO(e){return(zO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var UO={assistiveText:i.a.shape({count:i.a.string,image:i.a.string,link:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,crop:i.a.oneOf(["16-by-9","4-by-3","1-by-1"]),image:i.a.string,count:i.a.string,href:i.a.string},GO={assistiveText:{count:"more files",image:"Show more files",link:"Preview:"},crop:"16-by-9",href:"#"},YO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KO(e,t)}(i,e);var t,n,r,a=WO(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this,t=MO(MO({},GO.assistiveText),this.props.assistiveText);return o.a.createElement("div",{className:l()("slds-file slds-file_card",this.props.className),id:this.getId()},o.a.createElement("figure",null,o.a.createElement("a",{href:this.props.href,className:l()("slds-file__crop",this.props.crop?"slds-file__crop_".concat(this.props.crop):null),onClick:function(t){return"#"===e.props.href&&t.preventDefault()}},o.a.createElement("div",{className:"slds-file_overlay"}),o.a.createElement("span",{className:"slds-assistive-text"},t.link),o.a.createElement("img",{src:this.props.image,alt:t.image})),o.a.createElement("figcaption",{className:"slds-file__title slds-file__title_overlay slds-align_absolute-center slds-text-heading_large"},o.a.createElement("div",{className:"slds-media slds-media_small slds-media_center"},o.a.createElement("div",{className:"slds-media__figure slds-line-height_reset"}),o.a.createElement("div",{className:"slds-media__body"},o.a.createElement("span",{className:"slds-file__text slds-truncate",title:this.props.count},o.a.createElement("span",null,this.props.count),o.a.createElement("span",{className:"slds-assistive-text"},t.count)))))))}}])&&qO(t.prototype,n),r&&qO(t,r),i}(o.a.Component);YO.displayName="SLDSFilesMore",YO.propTypes=UO,YO.defaultProps=GO;var XO=YO;function QO(e){return(QO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function JO(){return(JO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ZO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $O(e,t){return($O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function e_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=r_(e);if(t){var o=r_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return t_(this,n)}}function t_(e,t){return!t||"object"!==QO(t)&&"function"!=typeof t?n_(e):t}function n_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r_(e){return(r_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$O(e,t)}(i,e);var t,n,r,a=e_(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o_(n_(t=a.call(this,e)),"state",{popoverIsOpen:!!t.props.popover&&t.props.popover.props.isOpen}),o_(n_(t),"getId",(function(){return t.props.id||t.generatedId})),o_(n_(t),"getCustomPopoverProps",(function(e){var n=e.assistiveText,r=o.a.createElement("div",null,o.a.createElement("h4",{className:"slds-assistive-text",id:"".concat(t.getId(),"-popover-heading")},n.editFilterHeading),t.props.children,o.a.createElement("div",{className:"slds-m-top_small slds-text-align_right"},o.a.createElement(ar,{className:"slds-col_bump-left",label:"Done",onClick:t.handleChange}))),a={ariaLabelledby:"".concat(t.getId(),"-popover-heading"),align:t.props.align,body:r,heading:"",id:t.getId(),isOpen:t.state.popoverIsOpen,offset:"right"===t.props.align?"0px -35px":void 0,onClose:t.handleClose,onRequestClose:t.handleClose,position:"overflowBoundaryElement",triggerClassName:"slds-grow"},i=ur()(a,t.props.popover?t.props.popover.props:{});return delete i.children,i})),o_(n_(t),"handleFilterClick",(function(){t.setState({popoverIsOpen:!0}),t.props.onClick&&t.props.onClick()})),o_(n_(t),"handleClose",(function(){t.setState({popoverIsOpen:!1})})),o_(n_(t),"handleChange",(function(e){t.setState({popoverIsOpen:!1}),t.props.onChange&&t.props.onChange(e,{id:t.getId()})})),o_(n_(t),"handleRemove",(function(e){t.props.onRemove&&t.props.onRemove(e,{id:t.getId()})})),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"render",value:function(){var e={editFilter:this.props.assistiveTextEditFilter||this.props.assistiveText.editFilter,editFilterHeading:this.props.assistiveTextEditFilterHeading||this.props.assistiveText.editFilterHeading,removeFilter:this.props.assistiveTextRemoveFilter||this.props.assistiveText.removeFilter||"Remove Filter: ".concat(this.props.property," ").concat(this.props.predicate)},t=this.getCustomPopoverProps({assistiveText:e});return o.a.createElement("div",{className:l()("slds-filters__item","slds-grid","slds-grid_vertical-align-center",{"slds-is-locked":this.props.isLocked,"slds-is-new":this.props.isNew,"slds-has-error":this.props.isError},this.props.className)},this.props.isLocked||!this.props.children&&!this.props.popover?o.a.createElement("button",{"aria-describedby":this.props.isError?"".concat(this.getId(),"-error"):void 0,className:"slds-button_reset slds-grow slds-has-blur-focus",disabled:!0,type:"button"},o.a.createElement("span",{className:"slds-show slds-text-body_small"},this.props.property),o.a.createElement("span",{className:"slds-show"},this.props.predicate)):o.a.createElement(wh,JO({},t,{silenceDeprecatedPropertyWarning:!0}),o.a.createElement("button",{className:"slds-button_reset slds-grow slds-has-blur-focus",onClick:this.handleFilterClick,"aria-describedby":this.props.isError?"".concat(this.getId(),"-error"):void 0,type:"button"},o.a.createElement("span",{className:"slds-assistive-text"},e.editFilter),this.props.property?o.a.createElement("span",{className:"slds-show slds-text-body_small"},this.props.property):null,o.a.createElement("span",{className:"slds-show"},this.props.predicate))),this.props.isPermanent||this.props.isLocked?null:o.a.createElement(ar,{assistiveText:{icon:e.removeFilter},hint:!0,iconCategory:"utility",iconName:"delete",iconSize:"small",iconVariant:"bare",onClick:this.handleRemove,title:e.removeFilter,variant:"icon"}))}}])&&ZO(t.prototype,n),r&&ZO(t,r),i}(o.a.Component);o_(a_,"displayName","SLDSFilter"),o_(a_,"propTypes",{align:i.a.oneOf(["left","right"]),assistiveText:i.a.shape({editFilter:i.a.string,editFilterHeading:i.a.string,removeFilter:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),isError:i.a.bool,id:i.a.string,isLocked:i.a.bool,isNew:i.a.bool,isPermanent:i.a.bool,onChange:i.a.func,onRemove:i.a.func,onClick:i.a.func,popover:i.a.node,predicate:i.a.node,property:i.a.node}),o_(a_,"defaultProps",{align:"left",assistiveText:{editFilter:"Edit filter:",editFilterHeading:"Choose filter criteria"},predicate:"New Filter"});var i_=a_;var s_=function(){},l_=n(51);function c_(e){return(c_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u_(Object(n),!0).forEach((function(t){v_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d_(e,t){return(d_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y_(e);if(t){var o=y_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m_(this,n)}}function m_(e,t){return!t||"object"!==c_(t)&&"function"!=typeof t?b_(e):t}function b_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y_(e){return(y_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g_={assistiveText:{skipToNav:"Skip to Navigation",skipToContent:"Skip to Main Content"},logoSrc:"/assets/images/logo-noname.svg"},O_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d_(e,t)}(i,e);var t,n,r,a=h_(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),v_(b_(t=a.call(this,e)),"handleSkipToContent",(function(e){St.trap(e),t.props.onSkipToContent(e)})),v_(b_(t),"handleSkipToNav",(function(e){St.trap(e),t.props.onSkipToNav(e)})),s_(K,e,l_),t}return t=i,(n=[{key:"render",value:function(){var e,t,n=p_(p_({},g_.assistiveText),this.props.assistiveText),r=(v_(e={},W,[]),v_(e,V,[]),v_(e,z,[]),v_(e,U,[]),v_(e,Y,[]),v_(e,X,[]),v_(e,Q,[]),e);return o.a.Children.forEach(this.props.children,(function(e){e&&(e.type.displayName===G?t=e:r[e.type.displayName]&&r[e.type.displayName].push(e))})),r=[].concat(r[W],r[X],r[V],r[Y],r[z],r[Q],r[U]),o.a.createElement("header",{className:"slds-global-header_container"},this.props.onSkipToNav?o.a.createElement("a",{href:"#",className:"slds-assistive-text slds-assistive-text_focus",onClick:this.handleSkipToNav},this.props.skipToNavAssistiveText||n.skipToNav):null,this.props.onSkipToContent?o.a.createElement("a",{href:"#",className:"slds-assistive-text slds-assistive-text_focus",onClick:this.handleSkipToContent},this.props.skipToContentAssistiveText||n.skipToContent):null,o.a.createElement("div",{className:"slds-global-header slds-grid slds-grid_align-spread"},o.a.createElement("div",{className:"slds-global-header__item"},o.a.createElement("div",{className:"slds-global-header__logo",style:{backgroundImage:"url(".concat(this.props.logoSrc,")")}})),t,o.a.createElement("div",{className:"slds-global-header__item"},o.a.createElement("ul",{className:"slds-global-actions"},r.map((function(e,t){return o.a.createElement("li",{className:"slds-global-actions__item",key:"actions-item-".concat(t)},e)}))))),this.props.navigation)}}])&&f_(t.prototype,n),r&&f_(t,r),i}(o.a.Component);v_(O_,"displayName",K),v_(O_,"propTypes",{assistiveText:i.a.shape({skipToNav:i.a.string,skipToContent:i.a.string}),children:i.a.node,logoSrc:i.a.string,navigation:i.a.node,onSkipToContent:i.a.func,onSkipToNav:i.a.func}),v_(O_,"defaultProps",g_);var __=O_;function x_(){return(x_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function w_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var S_=function(e){s_("SLDSGlobalHeaderButton",e);var t=e.buttonVariant,n=w_(e,["buttonVariant"]),r=o.a.createElement(ar,x_({iconVariant:"global-header",variant:"icon"},n));return"dropdown"===t?r:o.a.createElement("li",null,r)};S_.displayName=Q;var E_=S_;function C_(e){return(C_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j_(){return(j_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function N_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function T_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k_(e,t){return(k_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function R_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=A_(e);if(t){var o=A_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I_(this,n)}}function I_(e,t){return!t||"object"!==C_(t)&&"function"!=typeof t?D_(e):t}function D_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A_(e){return(A_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k_(e,t)}(i,e);var t,n,r,a=R_(i);function i(){var e;T_(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return L_(D_(e=a.call.apply(a,[this].concat(n))),"renderAvatar",(function(){var t=e.props.avatar;return"string"==typeof t?o.a.createElement("span",{className:"slds-avatar slds-avatar_circle slds-avatar_medium"},o.a.createElement("img",{src:t,alt:""})):t||null})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.className,n=e.id,r=e.isOpen,a=e.globalAction,i=e.menu,s=e.onBlur,c=e.onClick,u=e.onFocus,p=e.onKeyDown,f=e.onMouseDown,d=e.onMouseEnter,h=e.onMouseLeave,m=e.triggerRef,b=N_(e,["className","id","isOpen","globalAction","menu","onBlur","onClick","onFocus","onKeyDown","onMouseDown","onMouseEnter","onMouseLeave","triggerRef"]);return o.a.createElement("li",{"aria-haspopup":"true",className:l()("slds-dropdown-trigger slds-dropdown-trigger_click",{"slds-is-open":r,"slds-p-around_xx-small":a},t),id:n,onBlur:s,onClick:c,onFocus:u,onKeyDown:p,onMouseDown:f,onMouseEnter:d,onMouseLeave:h,ref:m},o.a.createElement(E_,j_({className:l()({"slds-global-header__button_icon-actions":a}),iconClassName:l()({"slds-global-header__icon-actions":a}),"aria-haspopup":"true",buttonVariant:"dropdown"},b),this.renderAvatar()),i)}}])&&P_(t.prototype,n),r&&P_(t,r),i}(o.a.Component);L_(B_,"displayName",re),L_(B_,"propTypes",{avatar:i.a.oneOfType([i.a.string,i.a.node]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool,globalAction:i.a.bool,menu:i.a.node,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,openOn:i.a.oneOf(["hover","click","hybrid"]),positioned:i.a.bool,triggerRef:i.a.func});var F_=B_;function M_(){return(M_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function H_(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var q_=function(e){s_("SLDSGlobalHeaderDropdown",e);var t,n=e.globalAction,r=e.iconVariant,a=H_(e,["globalAction","iconVariant"]);return n&&(t="container"),o.a.createElement(Hs,M_({nubbinPosition:"top right"},a),o.a.createElement(F_,{globalAction:n,iconSize:n&&"small",iconVariant:t||r}))};q_.displayName=Q,q_.propTypes={align:i.a.oneOf(["left","right"]),className:i.a.string,buttonClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),iconName:i.a.string,iconVariant:i.a.oneOf(["bare","container","border","border-filled","more","global-header"]),id:i.a.string,globalAction:i.a.bool,nubbinPosition:i.a.oneOf(["top left","top","top right","bottom left","bottom","bottom right"]),offset:i.a.string,onSelect:i.a.func,options:i.a.array.isRequired},q_.defaultProps={align:"right",buttonVariant:"icon",iconVariant:"global-header",nubbinPosition:"top right"};var K_=q_;function W_(e){return(W_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V_(){return(V_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function z_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G_(e,t){return(G_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y_(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=J_(e);if(t){var o=J_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X_(this,n)}}function X_(e,t){return!t||"object"!==W_(t)&&"function"!=typeof t?Q_(e):t}function Q_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J_(e){return(J_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Z_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $_={assistiveText:i.a.shape({action:i.a.string,more:i.a.string}),actionDisabled:i.a.bool,actionSelected:i.a.bool,onToggleActionSelected:i.a.func,popover:i.a.node},ex=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G_(e,t)}(i,e);var t,n,r,a=Y_(i);function i(){var e;z_(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Z_(Q_(e=a.call.apply(a,[this].concat(n))),"toggleActionSelected",(function(t){e.props.onToggleActionSelected&&e.props.onToggleActionSelected(t,{actionSelected:e.props.actionSelected||!1})})),e}return t=i,(n=[{key:"render",value:function(){var e=this,t={},n=ur()({align:"bottom",body:o.a.createElement("span",null),triggerClassName:"slds-dropdown-trigger slds-dropdown-trigger_click"},this.props.popover?this.props.popover.props:{});return delete n.children,this.props.actionSelected&&(t["aria-pressed"]=!0),o.a.createElement("div",{className:"slds-global-actions__favorites slds-dropdown-trigger slds-dropdown-trigger_click"},o.a.createElement("div",{className:"slds-button-group"},o.a.createElement(ar,V_({assistiveText:{icon:this.props.assistiveText.action},className:l()("slds-button_icon slds-global-actions__favorites-action",{"slds-is-disabled":this.props.actionDisabled,"slds-is-selected":this.props.actionSelected}),disabled:this.props.actionDisabled,iconCategory:"utility",iconName:"favorite",iconSize:"small",iconVariant:"border",onClick:this.toggleActionSelected,onKeyDown:function(t){t.keyCode===zt.ENTER&&(St.trapImmediate(t),e.toggleActionSelected(t))},title:this.props.assistiveText.action,variant:"icon"},t)),o.a.createElement(wh,n,o.a.createElement(ar,{assistiveText:{icon:this.props.assistiveText.more},className:"slds-button_icon slds-global-actions__favorites-more",iconCategory:"utility",iconName:"down",iconSize:"small",iconVariant:"border",style:{borderLeft:"0",borderRadius:"0 .25rem .25rem 0"},title:this.props.assistiveText.more,variant:"icon"}))))}}])&&U_(t.prototype,n),r&&U_(t,r),i}(o.a.Component);ex.displayName=W,ex.defaultProps={assistiveText:{action:"Toggle Favorite",more:"View Favorites"}},ex.propTypes=$_;var tx=ex;function nx(e){return(nx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rx(){return(rx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ox(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ax(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ix(e,t){return(ix=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cx(e);if(t){var o=cx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lx(this,n)}}function lx(e,t){return!t||"object"!==nx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cx(e){return(cx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ux={assistiveText:i.a.shape({triggerButton:i.a.string}),popover:i.a.node},px=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ix(e,t)}(i,e);var t,n,r,a=sx(i);function i(){return ox(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=ur()({align:"bottom",body:o.a.createElement("span",null),triggerClassName:"slds-dropdown-trigger slds-dropdown-trigger_click"},this.props.popover?this.props.popover.props:{});return delete e.children,o.a.createElement(wh,e,o.a.createElement(ar,rx({assistiveText:{icon:this.props.assistiveText.triggerButton},className:"slds-button_icon slds-global-actions__help slds-global-actions__item-action",iconCategory:"utility",iconClassName:"slds-global-header__icon",iconName:"question",iconSize:"small",iconVariant:"container",title:this.props.assistiveText.triggerButton,variant:"icon"},{"aria-haspopup":!0})))}}])&&ax(t.prototype,n),r&&ax(t,r),i}(o.a.Component);px.displayName=V,px.defaultProps={assistiveText:{triggerButton:"Help and Training"}},px.propTypes=ux;var fx=px;function dx(e){return(dx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hx(){return(hx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function mx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yx(e,t){return(yx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ox(e);if(t){var o=Ox(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gx(this,n)}}function gx(e,t){return!t||"object"!==dx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ox(e){return(Ox=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _x={assistiveText:i.a.shape({newNotificationsAfter:i.a.string,newNotificationsBefore:i.a.string,noNotifications:i.a.string}),notificationCount:i.a.number,popover:i.a.node},xx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yx(e,t)}(i,e);var t,n,r,a=vx(i);function i(){return mx(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e={"aria-live":"assertive"},t=this.props.notificationCount,n=ur()({align:"bottom right",body:o.a.createElement("span",null),triggerClassName:"slds-dropdown-trigger slds-dropdown-trigger_click"},this.props.popover?this.props.popover.props:{}),r=this.props.assistiveText.noNotifications;return delete n.children,t>0?r="".concat(this.props.assistiveText.newNotificationsBefore).concat(t).concat(this.props.assistiveText.newNotificationsAfter):e["aria-atomic"]=!0,o.a.createElement(wh,n,o.a.createElement(ar,hx({assistiveText:{icon:r},className:"slds-button_icon slds-global-actions__notifications slds-global-actions__item-action",iconCategory:"utility",iconClassName:"slds-global-header__icon",iconName:"notification",iconSize:"small",iconVariant:"container",title:r,variant:"icon"},e)),t>0?o.a.createElement("span",{"aria-hidden":"true",className:"slds-notification-badge slds-incoming-notification slds-show-notification"},t):o.a.createElement("span",{"aria-hidden":"true",className:"slds-notification-badge"}))}}])&&bx(t.prototype,n),r&&bx(t,r),i}(o.a.Component);xx.displayName=z,xx.defaultProps={assistiveText:{newNotificationsAfter:" new notifications",newNotificationsBefore:"",noNotifications:"No new notifications"},notificationCount:0},xx.propTypes=_x;var wx=xx;function Sx(e){return(Sx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ex(){return(Ex=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Cx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jx(e,t){return(jx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Px(e);if(t){var o=Px(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tx(this,n)}}function Tx(e,t){return!t||"object"!==Sx(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Px(e){return(Px=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jx(e,t)}(i,e);var t,n,r,a=Nx(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),s_(U,e),t}return t=i,(n=[{key:"render",value:function(){var e=ur()({align:"bottom right",body:o.a.createElement("span",null),className:this.props.className,heading:this.props.userName,id:this.props.id,triggerClassName:"slds-dropdown-trigger slds-dropdown-trigger_click"},this.props.popover?this.props.popover.props:{}),t="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBYRXhpZgAATU0AKgAAAAgAAgESAAMAAAABAAEAAIdpAAQAAAABAAAAJgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAwaADAAQAAAABAAAAwQAAAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgAwQDBAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMAAQEBAQEBAgEBAgMCAgIDBAMDAwMEBQQEBAQEBQYFBQUFBQUGBgYGBgYGBgcHBwcHBwgICAgICQkJCQkJCQkJCf/bAEMBAQEBAgICBAICBAkGBQYJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCf/dAAQADf/aAAwDAQACEQMRAD8A+oKKKK/oA/DwooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/9D6gooor+gD8PCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/0fqCiiiv6APw8KKKKACiiigAooooAKKKKACijOOtdhoPw8+IHiqPzvDGh3+op/etreSQf+OqamU1HVsqMW3ZHH0V2GvfDz4geFY/O8T6Hf6cn965t5Ix/wCPKK4/OelEZqWqYSi07MKKKKokKKKKACiiigAooooAKKKKACiiigD/0vqCiiiv6APw8KKKKACiiigAooooAK6Lwn4T8R+OvEdp4R8JWj32o30gjhhjGSzH+QHUk8AVzpOOa/ff/gmL+zjZeFPA5+OXia2zqushksd45itQcbh6GQ85/u4ry84zOOEouq9+nqellWXSxNZU1t19Drf2ZP8AgnF8OvhpYWvij4swx6/r7KHaGQbrW3brhUP3yP7zd+gr9JrHTNN0uBbbTbeO3jQYVY1CgAdgABV6ivx/GY+tiJc9WVz9UwmCpUI8lJWKN9pmm6pA1tqVvHcRuMMsihgQexBBr82f2m/+CcXw6+Jdhc+J/hNDHoGvqpdYYxttbhuuGQfcJ/vL36iv00oowePrYeXPSlYMXgqVePJVVz+MnxZ4T8R+BfEd34R8W2j2Oo2MhjmhkGCrD+YPUEcEVztfvv8A8FOv2cbLxX4HHxy8M22NV0bal9sHMtqTjc3qYzzn+7mvwIBzzX7Bk+ZxxdFVVv19T8rzXLpYas6b26egUUUV6h5oUUUUAFFFFABRRRQAUUUUAf/T+oKKKK/oA/DwooooAKKKKACiiigDX8P6RN4g1+x0G3/1l7cRwL9ZGC/1r+xnwR4csfCHg7S/C2mrst9PtYreNfRY1AFfyI/CO5gsvit4ZvLn/Vxapas2fQSqTX9iULK8KOvQgEflX57xxN3px6an3XBsFapLrp+pJRRRXwJ9sFFFFAHL+NvDtj4u8H6p4X1Jd9vqFrLbyL6rIhU/zr+ObxBpE3h/X77Qbj/WWVxJA31jYr/Sv7PZmVIXdugBJr+O34uXMF78VvE15bf6uXVLplx6GViK++4Gm71I9ND4njKCtTl11/Q89ooor9CPhQooooAKKKKACiiigAooooA//9T6gooor+gD8PCiiigAooooAKKKKAHxTS28qXEBIeNg6kdQVORX9dH7OfxMsfi58FvD/jizlEj3NpGs+P4Z4xtkU/Rga/kUr9Lf+CeX7WVp8F/E8nwx8eXAi8O6zKGjnf7trcnjJPZH4B9Dg+tfMcVZZLEUOaC1jr8up9Hw1mKoVuWe0v6R/RXRUNvcQXcCXVq6yRyAMrKchgeQQR1BqavyY/TQooqG4uILSB7q6dY44wWZmOAoHJJJ6AUAeMftGfEyx+EXwX8QeObyURvbWkiwZ/inkG2NR9WIr+ReWaW4le4nJLyMXYnqSxya/Sv/AIKG/tZ2nxo8Tx/DHwHcCXw7o0paSdPu3VyMjIPdE5A9Tk+lfmjX6zwrlksPQ5prWX5dD8y4lzFV63LDaP8ATCiiivpz5wKKKKACiiigAooooAKKKKAP/9X6gooor+gD8PCiiigAooooAKKKkhhmuZltrZGkkc4VEBLEnsAOTQBHQQCMGv0D+Bf/AATm+N/xaWHWPFEY8MaTJhvMu1JndT/ch4P/AH1iv0ztP+CXf7OUHgt/D1yL2bUnX/kJGUiVW/2UH7vbnsQfrXgYzibCUZcjld+Wp7eE4exVaPMlZeeh+Xn7Nn7f3xV+A1vB4Y1kf8JD4eiG1bad8Swr/wBMpcE4H905Hpiv1S8Jf8FPP2ZdetFm125vNGlx8yXEDPg98GLdkV+ZHxk/4JsfHr4c3M154NhTxRpiklHtvluAvbdEeSf90mviPXfhz8QvDE7WviPQr+ykT7yzW8ikfmK46uVZdjX7SD18n+n/AADrp5lj8GvZzWi7r9T+hPxb/wAFPP2ZdBtGm0K5vNZlx8qW8DJk9smXbgV+V37Sf7f3xV+PFvP4X0Yf8I94elG1raB8yzL/ANNZMA4P90YHrmvj3Q/h18QfE062vh3Qr+9kf7qw28jE/kK+1vg//wAE2vj/APEa4hu/FkCeGNNYgvJdfNOV77YQc5/3iKKWVZdgv3k3r5v9P+AFTM8fjF7OC0fZfr/wT89wABgUV/RNd/8ABLH9n6XwWug2txfQ6oq/8hHzMsz+8eNm3PYYPvX5ofHL/gnd8dPhEs2raDAPE2kx5PnWanzlUd3h5b/vkkV24PiXCV5ckZWfnoceL4fxVGPM43XlqfBFFSSxS28rW9wjRyIcMrAgg+hB6VHXvHihRRRQAUUUUAFFFFABRRRQB//W+oKKKK/oA/DwooooAKKK2/DPh7VPF3iKw8K6InmXmozx28K+ryMFH86UpJK7Gk27I9N+BvwF+IP7QXjBPCPgO2LYwbi6cEQ26f3nb+Q6mv6Iv2cP2IfhH+z/AGUOo/Zl1nxAAPM1C5UMVbv5KHIQe/X3r1f9nX4E+Fv2ffhrZeCPD0S+eED3lxgb55yPnZj6Z4A7Cvd6/KM94kqYiTp0naH5+v8AkfpmTZBToRU6ivL8gooor5c+jCoJLW2mOZY1Y+4BqeigCCO1toTmKNVPsAKnoooAKCM8GiigD4t/aO/Yd+EXx+tJtTS2XRfEBBMeoWyhdzdvOQYDj1P3vev54Pjl8BviF+z94wfwh49tthOWt7lMmG4T+8jY/MHkV/XjXhH7RXwI8LftBfDW98E+IYl88oz2dxgb4JwPkZT6Z4I7ivqMi4kqYeSp1XeH5eh85nOQU68XOmrS/M/keorb8TeHdU8I+I7/AMK62nl3mnTyW8y+jxsVP4cViV+rxkmro/M2mnZhRRRTEFFFFABRRRQB/9f6gooor+gD8PCiiigAr62/YTsLbUv2sfB1tdqGQXEsmD6pC7L+RFfJNe6fszfEWw+E/wAePDPj7VeLSxuwJz/djlUxs3/AQ2a5MfCUqE4x3af5HVgZxjWhKWya/M/rkoqjpupWGs6fDqulzLPbXCCSKRDlWVhkEEVer8LaP2ZMKKKKQBRRRQAUUUUAFFFFABRRVLUtSsNH0+bVdUmW3trdDJJI5wqqoySSaaQNn8tf7dun22m/tY+Mba0UIhuIpMD1eFGP5k18kV7p+0z8RbH4sfHjxN4+0o5tb67Igb+9HEojRv8AgQXNeF1+6YCEo0IRlukvyPxnHTjKtOUdm3+YUUUV1nKFFFFABRRRQB//0PqCiiiv6APw8KKKKACiiigD6v8Agv8Atp/H34F6WugeE9TS602P/V2l8nnRx/7nIZR7A49q9/8A+Hq37SX/AD5aL/4Dy/8Ax2vzRorza2T4WpLnnTTZ6FLNcTCPLCbSP0u/4erftJf8+Wi/+A8v/wAdo/4erftJf8+Wi/8AgPL/APHa/NGisv7Bwf8Az7Rp/bWL/wCfjP0u/wCHq37SX/Plov8A4Dy//HaP+Hq37SX/AD5aL/4Dy/8Ax2vzRoo/sHB/8+0H9tYv/n4z9Lv+Hq37SX/Plov/AIDy/wDx2j/h6t+0l/z5aL/4Dy//AB2vzRoo/sHB/wDPtB/bWL/5+M/S7/h6t+0l/wA+Wi/+A8v/AMdo/wCHq37SX/Plov8A4Dy//Ha/NGij+wcH/wA+0H9tYv8A5+M/S7/h6t+0l/z5aL/4Dy//AB2vAPjR+2n8ffjppbaB4s1NLXTZP9ZaWKeTHJ/v8lmHsTj2r5QorWjk+Fpy54U0mZ1c1xM48s5toKKKK9I88KKKKACiiigAooooA//R+oKKKK/oA/DwooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigD/9L6gooor+gD8PCiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/0/qCiiiv6APw8KKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA//Z";return delete e.children,t=this.props.avatar?this.props.avatar:t,o.a.createElement(wh,e,o.a.createElement(ar,Ex({className:l()("slds-global-actions__avatar slds-global-actions__item-action",this.props.buttonClassName),title:this.props.userName,variant:"icon"},{"aria-haspopup":!0}),"string"==typeof t?o.a.createElement("span",{className:"slds-avatar slds-avatar_circle slds-avatar_medium"},o.a.createElement("img",{alt:this.props.userName,src:t,title:"User avatar"})):t||null))}}])&&Cx(t.prototype,n),r&&Cx(t,r),i}(o.a.Component);kx.displayName=U,kx.propTypes={className:i.a.string,avatar:i.a.oneOfType([i.a.string,i.a.node]),buttonClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,popover:i.a.node,userName:i.a.string},kx.defaultProps={userName:"User Name"};var Rx=kx,Ix=function(e){return o.a.createElement("div",{className:"slds-global-header__item slds-global-header__item_search"},e.combobox)};Ix.displayName=G,Ix.propTypes={combobox:i.a.node.isRequired};var Dx=Ix;function Ax(e){return(Ax="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lx(){return(Lx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Bx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mx(e,t){return(Mx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kx(e);if(t){var o=Kx(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qx(this,n)}}function qx(e,t){return!t||"object"!==Ax(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kx(e){return(Kx=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wx={assistiveText:i.a.shape({triggerButton:i.a.string}),dropdown:i.a.node},Vx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Mx(e,t)}(i,e);var t,n,r,a=Hx(i);function i(){return Bx(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=ur()({align:"right",nubbinPosition:"top right"},this.props.dropdown?this.props.dropdown.props:{}),t=e.children||null;return delete e.children,o.a.createElement(Hs,e,o.a.createElement(ps,null,o.a.createElement(ar,Lx({assistiveText:{icon:this.props.assistiveText.triggerButton},className:"slds-button_icon slds-global-actions__setup slds-global-actions__item-action",iconCategory:"utility",iconClassName:"slds-global-header__icon",iconName:"setup",iconSize:"small",iconVariant:"container",title:this.props.assistiveText.triggerButton,variant:"icon"},{"aria-haspopup":!0}))),t)}}])&&Fx(t.prototype,n),r&&Fx(t,r),i}(o.a.Component);Vx.displayName=Y,Vx.defaultProps={assistiveText:{triggerButton:"Setup"}},Vx.propTypes=Wx;var zx=Vx;function Ux(e){return(Ux="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gx(){return(Gx=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Yx(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qx(e,t){return(Qx=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Jx(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$x(e);if(t){var o=$x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zx(this,n)}}function Zx(e,t){return!t||"object"!==Ux(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $x(e){return($x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ew={assistiveText:i.a.shape({triggerButton:i.a.string}),dropdown:i.a.node},tw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qx(e,t)}(i,e);var t,n,r,a=Jx(i);function i(){return Yx(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e=ur()({align:"right",nubbinPosition:"top right"},this.props.dropdown?this.props.dropdown.props:{}),t=e.children||null;return delete e.children,o.a.createElement(Hs,e,o.a.createElement(ps,null,o.a.createElement(ar,Gx({assistiveText:{icon:this.props.assistiveText.triggerButton},className:"slds-button_icon slds-global-actions__task slds-global-actions__item-action",iconCategory:"utility",iconName:"add",iconSize:"small",iconVariant:"container",title:this.props.assistiveText.triggerButton,variant:"icon"},{"aria-haspopup":!0}))),t)}}])&&Xx(t.prototype,n),r&&Xx(t,r),i}(o.a.Component);tw.displayName=X,tw.defaultProps={assistiveText:{triggerButton:"Global Actions"}},tw.propTypes=ew;var nw=tw;function rw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ow=function(e){var t,n,r,a,i;return o.a.createElement("div",{className:l()("slds-context-bar",(t={},rw(t,"slds-context-bar_theme-".concat(e.cloud),e.cloud),rw(t,"slds-context-bar_theme-".concat(e.theme),e.theme),t),e.className)},(n=e.children,i=[],o.a.Children.forEach(n,(function(e){e&&e.type.displayName===Z&&("primary"===e.props.region?r=e:"secondary"===e.props.region?i.push(e):"tertiary"===e.props.region&&(a=e))})),[r].concat(i,[a])))};ow.propTypes={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),cloud:i.a.string,theme:i.a.oneOf(["light","dark"])},ow.defaultProps={},ow.displayName="SLDSGlobalNavigationBar";var aw=ow;function iw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var lw=function(e){var t=e.active,n=e.dividerPosition,r=sw(e,["active","dividerPosition"]);return o.a.createElement("li",{className:l()("slds-context-bar__item",iw({"slds-is-active":t},"slds-context-bar__item_divider-".concat(n),n))},o.a.createElement(ar,r))};lw.displayName="SLDSGlobalNavigationBarButton",lw.propTypes={active:i.a.bool,dividerPosition:i.a.oneOf(["left","right"])},lw.defaultProps={className:"slds-context-bar__label-action slds-text-body_regular",style:{lineHeight:"inherit"},variant:"base"};var cw=lw;var uw=function(){},pw=n(22);function fw(e){return(fw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dw(){return(dw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function hw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bw(e,t){return(bw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=gw(e);if(t){var o=gw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vw(this,n)}}function vw(e,t){return!t||"object"!==fw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gw(e){return(gw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ow(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bw(e,t)}(i,e);var t,n,r,a=yw(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),uw(re,t.props,pw),t}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.active,n=e.activeBackgroundColor,r=e.className,a=e.dividerPosition,i=e.id,s=e.isOpen,c=e.label,u=e.menu,p=e.onBlur,f=e.onClick,d=e.onFocus,h=e.onKeyDown,m=e.onMouseDown,b=e.onMouseEnter,y=e.onMouseLeave,v=e.triggerRef,g=hw(e,["active","activeBackgroundColor","className","dividerPosition","id","isOpen","label","menu","onBlur","onClick","onFocus","onKeyDown","onMouseDown","onMouseEnter","onMouseLeave","triggerRef"]),O={},_=ab.a.brandPrimaryTransparent10;return t&&(O.backgroundColor=n,O.borderBottomColor=n),s&&(O.backgroundColor=_),o.a.createElement("li",{"aria-haspopup":"true",className:l()("slds-context-bar__item slds-context-bar__dropdown-trigger slds-dropdown-trigger slds-dropdown-trigger_click",Ow({"slds-is-open":s,"slds-is-active":t},"slds-context-bar__item_divider-".concat(a),a),r),id:i,onBlur:p,onClick:f,onFocus:d,onKeyDown:h,onMouseDown:m,onMouseEnter:b,onMouseLeave:y,ref:v,style:O},o.a.createElement("a",{className:"slds-context-bar__label-action",title:c},o.a.createElement("span",{className:"slds-truncate",title:c},c)),o.a.createElement("div",{className:"slds-context-bar__icon-action slds-p-left_none"},o.a.createElement(ar,dw({assistiveText:this.props.assistiveText},g,{className:"slds-context-bar__button","aria-haspopup":"true",iconCategory:"utility",iconName:"chevrondown",iconVariant:"bare",variant:"icon"}))),u)}}])&&mw(t.prototype,n),r&&mw(t,r),i}(o.a.Component);Ow(_w,"displayName",re),Ow(_w,"propTypes",{active:i.a.bool,activeBackgroundColor:i.a.string,assistiveText:i.a.shape({icon:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),dividerPosition:i.a.oneOf(["left","right"]),id:i.a.string,isOpen:i.a.bool,label:i.a.string,menu:i.a.node,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onMouseDown:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,triggerRef:i.a.func}),Ow(_w,"defaultProps",{assistiveText:{icon:"Open menu item submenu"}});var xw=_w;function ww(){return(ww=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Sw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ew=function(e){uw(J,e,pw);var t=e.active,n=e.activeBackgroundColor,r=e.assistiveText,a=e.dividerPosition,i=Sw(e,["active","activeBackgroundColor","assistiveText","dividerPosition"]);return o.a.createElement(Hs,ww({align:"right",hasStaticAlignment:!0,hoverCloseDelay:400,length:e.length,menuPosition:"relative"},i),o.a.createElement(xw,{active:t,assistiveText:r,activeBackgroundColor:n,dividerPosition:a}))};Ew.displayName=J,Ew.propTypes={active:i.a.bool,activeBackgroundColor:i.a.string,assistiveText:i.a.shape({icon:i.a.string}),align:i.a.oneOf(["left","right"]),className:i.a.string,dividerPosition:i.a.oneOf(["left","right"]),buttonClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,length:i.a.oneOf([null,"5","7","10"]),offset:i.a.string,onSelect:i.a.func,options:i.a.array.isRequired},Ew.defaultProps={align:"right",length:null};var Cw=Ew;function jw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nw=function(e){var t=e.className,n=e.dividerPosition,r=e.id,a=e.label;return o.a.createElement("li",{className:"slds-context-bar__item slds-no-hover"},o.a.createElement("span",{id:r,style:{color:ab.a.colorTextLinkDisabled},className:l()("slds-context-bar__label-action",jw({},"slds-context-bar__item_divider-".concat(n),n),t)},o.a.createElement("span",{className:"slds-truncate"},a)))};Nw.displayName="SLDSGlobalNavigationBarLabel",Nw.propTypes={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),dividerPosition:i.a.oneOf(["left","right"]),id:i.a.string,label:i.a.string};var Tw=Nw;function Pw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kw=function(e){var t=e.active,n=e.activeBackgroundColor,r=e.assistiveText,a=e.className,i=e.dividerPosition,s=e.href,c=e.id,u=e.label,p=e.onBlur,f=e.onClick,d=e.onFocus,h=e.onKeyDown,m=e.onKeyPress,b=e.onKeyUp,y=e.onMouseEnter,v=e.onMouseLeave,g=e.tabIndex,O=t?{backgroundColor:n,borderBottomColor:n}:null;return o.a.createElement("li",{className:l()("slds-context-bar__item",Pw({"slds-is-active":t},"slds-context-bar__item_divider-".concat(i),i)),id:c,style:O},o.a.createElement("a",{href:s,className:l()("slds-context-bar__label-action",a),onBlur:p,onClick:function(e){(Ar()(f)||"#"===s)&&e.preventDefault(),Ar()(f)&&f(e,{href:s})},onFocus:d,onKeyDown:h,onKeyPress:m,onKeyUp:b,onMouseEnter:y,onMouseLeave:v,tabIndex:g,title:u},t?o.a.createElement("span",{className:"slds-assistive-text"},r.activeDescriptor):null,o.a.createElement("span",{className:"slds-truncate",title:u},u)))};kw.displayName="SLDSGlobalNavigationBarLink",kw.propTypes={active:i.a.bool,activeBackgroundColor:i.a.string,assistiveText:i.a.shape({activeDescriptor:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),dividerPosition:i.a.oneOf(["left","right"]),href:i.a.string,id:i.a.string,label:i.a.string,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onMouseEnter:i.a.func,onMouseLeave:i.a.func,tabIndex:i.a.string},kw.defaultProps={assistiveText:{activeDescriptor:"Current page:"},href:"#"};var Rw=kw;function Iw(e){return(Iw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lw(e,t){return(Lw=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bw(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mw(e);if(t){var o=Mw(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fw(this,n)}}function Fw(e,t){return!t||"object"!==Iw(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mw(e){return(Mw=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lw(e,t)}(i,e);var t,n,r,a=Bw(i);function i(){return Dw(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t=this.props.dividerPosition?"slds-context-bar__item_divider-".concat(this.props.dividerPosition):null;switch(this.props.region){case"primary":e=function(e,t,n){return o.a.createElement("div",{className:l()("slds-context-bar__primary",e,t)},n)}(t,this.props.className,this.props.children);break;case"secondary":e=function(e,t,n,r){return r?o.a.createElement("nav",{className:l()("slds-context-bar__secondary",e,t),role:"navigation"},o.a.createElement("ul",{className:"slds-grid"},n)):o.a.createElement("div",{className:l()("slds-context-bar__secondary",e,t)},o.a.createElement("ul",{className:"slds-grid"},n))}(t,this.props.className,this.props.children,this.props.navigation);break;case"tertiary":e=function(e,t,n){return o.a.createElement("div",{className:l()("slds-context-bar__tertiary","slds-col_bump-left",e,t)},o.a.createElement("ul",{className:"slds-grid"},n))}(t,this.props.className,this.props.children)}return e}}])&&Aw(t.prototype,n),r&&Aw(t,r),i}(o.a.Component);Hw(qw,"displayName",Z),Hw(qw,"propTypes",{children:i.a.node,dividerPosition:i.a.oneOf(["left","right"]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),navigation:i.a.bool,region:i.a.oneOf(["primary","secondary","tertiary"]).isRequired});var Kw=qw;var Ww=function(){},Vw=n(52);function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gw=function(e){var t=e.className,n=e.illustration,r=e.heading,a=e.messageBody,i=e.name,s=e.path,l=e.size,c=e.style;Ww("Illustration",e,Vw);var u,p=i?i.replace(/_| /g,"-").toLowerCase():"",f=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zw(Object(n),!0).forEach((function(t){Uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},c);return"large"!==l||f.height||(f.height="400px"),n?u=o.a.createElement(Ge,{className:"slds-illustration__svg","aria-hidden":"true",data:n,name:p,style:f}):s&&(u=o.a.createElement("svg",{className:"slds-illustration__svg","aria-hidden":"true",name:p,style:f},o.a.createElement("use",{xlinkHref:s}))),o.a.createElement("div",{className:gn(t,"slds-illustration",{"slds-illustration_small":"small"===l,"slds-illustration_large":"large"===l})},u,o.a.createElement("div",{className:"slds-text-longform"},r?o.a.createElement("h3",{className:"slds-text-heading_medium"},r):null,a?o.a.createElement("p",{className:"slds-text-body_regular"},a):null))};Gw.displayName="SLDSIllustration",Gw.propTypes={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),heading:i.a.string,illustration:i.a.object,internalIllustration:i.a.bool.isRequired,messageBody:i.a.oneOfType([i.a.string,i.a.node]),name:i.a.string,path:i.a.string,size:i.a.oneOf(["small","large"]),style:i.a.object},Gw.defaultProps={internalIllustration:!0,size:"small",style:{}};var Yw=Gw;var Xw=function(){};function Qw(e){return(Qw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jw(){return(Jw=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Zw(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eS(e,t){return(eS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oS(e);if(t){var o=oS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nS(this,n)}}function nS(e,t){return!t||"object"!==Qw(t)&&"function"!=typeof t?rS(e):t}function rS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oS(e){return(oS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iS={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),name:i.a.string,disabled:i.a.bool,id:i.a.string.isRequired,onChange:i.a.func,onKeyUp:i.a.func,onEnterEditMode:i.a.func,onLeaveEditMode:i.a.func,type:i.a.oneOf(["text","password","datetime","datetime-local","date","month","time","week","number","email","url","search","tel","color"]),value:i.a.string.isRequired},sS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eS(e,t)}(i,e);var t,n,r,a=tS(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),aS(rS(t=a.call(this,e)),"endEditMode",(function(e){t.willSave&&(clearTimeout(t.willSave),delete t.willSave),t.setState({isEditing:!1,value:null}),t.props.onLeaveEditMode&&Ar()(t.props.onLeaveEditMode)&&t.props.onLeaveEditMode(void 0,e)})),aS(rS(t),"handleBlur",(function(){t.willSave||(t.willSave=setTimeout(t.saveEdits,200)),t.props.onLeaveEditMode&&Ar()(t.props.onLeaveEditMode)&&t.props.onLeaveEditMode()})),aS(rS(t),"handleChange",(function(e){t.setState({value:e.target.value})})),aS(rS(t),"handleKeyDown",(function(e){e.keyCode&&(e.keyCode===zt.ESCAPE?t.saveEdits({cancel:!0}):e.keyCode===zt.ENTER&&t.saveEdits())})),aS(rS(t),"handleKeyUp",(function(e){e.keyCode&&t.props.onKeyUp&&Ar()(t.props.onKeyUp)&&t.props.onKeyUp(e,{value:t.state.value})})),aS(rS(t),"saveEdits",(function(e){e&&!0===e.cancel||Ar()(t.props.onChange)&&t.props.onChange({value:t.state.value}),t.endEditMode(e)})),aS(rS(t),"triggerEditMode",(function(){t.props.disabled||(t.autoFocus=!0,t.setState({isEditing:!0,value:t.props.value}),Ar()(t.props.onEnterEditMode)&&t.props.onEnterEditMode())})),t.state={isEditing:!1,value:null},Xw(F,e),t}return t=i,(n=[{key:"componentDidUpdate",value:function(){this.autoFocus&&(this.inputNode&&(this.inputNode.focus(),this.inputNode.select()),this.autoFocus=!1)}},{key:"render",value:function(){var e=this,t=this.props,n=t.assistiveText,r=t.disabled,a=t.value,i=t.name,s=Zw(t,["assistiveText","disabled","value","name"]);return o.a.createElement(Pu,Jw({},s,{iconRight:this.state.isEditing?o.a.createElement(Ac,{category:"utility",name:"close",position:"right",onClick:this.endEditMode,tabIndex:"-1"}):null,disabled:r,inlineEditTrigger:o.a.createElement(ar,{assistiveText:{icon:n},className:"slds-m-left_x-small",disabled:r,iconCategory:"utility",iconName:"edit",iconPosition:"right",iconSize:"small",variant:"icon"}),onBlur:this.handleBlur,onChange:this.handleChange,onClick:this.state.isEditing?null:this.triggerEditMode,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,isStatic:!this.state.isEditing,name:i,value:this.state.isEditing?this.state.value:a,inputRef:function(t){e.inputNode=t}}))}}])&&$w(t.prototype,n),r&&$w(t,r),i}(o.a.Component);sS.displayName=F,sS.propTypes=iS,sS.defaultProps={assistiveText:"Edit text",type:"text"};var lS=sS;function cS(){return(cS=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uS(Object(n),!0).forEach((function(t){fS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dS(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var hS={assistiveText:{}},mS=function(e){var t=e.clearable,n=e.onClear,r=e.onSearch,a=e.placeholder,i=dS(e,["clearable","onClear","onSearch","placeholder"]);ou(q,i,au);var s="string"==typeof i.assistiveText?i.assistiveText:pS(pS({},hS.assistiveText),i.assistiveText).label;return o.a.createElement(Pu,cS({assistiveText:{label:s},iconLeft:o.a.createElement(Ac,{assistiveText:{icon:"Search"},category:"utility",name:"search",onClick:r}),iconRight:t?o.a.createElement(Ac,{assistiveText:{icon:"Clear"},category:"utility",name:"clear",onClick:n}):null,onKeyDown:r?function(e){return function(e,t){e.keyCode===zt.ENTER&&(St.trapImmediate(e),t(e))}(e,r)}:null,placeholder:a},i))};mS.displayName=q,mS.propTypes={assistiveText:i.a.shape({label:i.a.string}),clearable:i.a.bool,onClear:i.a.func,onSearch:i.a.func,placeholder:i.a.string},mS.defaultProps=hS;var bS=mS;function yS(e){return(yS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vS(Object(n),!0).forEach((function(t){CS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _S(e,t){return(_S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ES(e);if(t){var o=ES(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wS(this,n)}}function wS(e,t){return!t||"object"!==yS(t)&&"function"!=typeof t?SS(e):t}function SS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ES(e){return(ES=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function CS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jS={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameContainer:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),defaultLocation:i.a.shape({id:i.a.string.isRequired,name:i.a.string.isRequired,address:i.a.string.isRequired}).isRequired,id:i.a.string,labels:i.a.shape({title:i.a.string}),locations:i.a.arrayOf(i.a.shape({id:i.a.string.isRequired,name:i.a.string.isRequired,address:i.a.string.isRequired})).isRequired,onClickLocation:i.a.func,googleAPIKey:i.a.string.isRequired,selection:i.a.shape({id:i.a.string.isRequired,name:i.a.string.isRequired,address:i.a.string.isRequired})},NS={title:"Interactive Map"},TS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_S(e,t)}(i,e);var t,n,r,a=xS(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),CS(SS(t=a.call(this,e)),"handleClick",(function(e,n){"function"==typeof t.props.onClickLocation&&t.props.onClickLocation(e,t.props.locations[n]),t.map&&t.map.focus()})),t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this,t=gS(gS({},NS),this.props.labels);return o.a.createElement("div",{id:this.getId(),className:l()("slds-grid",{"slds-has-coordinates":this.props.locations},this.props.classNameContainer)},o.a.createElement("div",{className:"slds-map_container",style:{padding:"4px"}},o.a.createElement("div",{className:l()("slds-map",this.props.className),ref:function(t){e.map=t},tabIndex:0,title:t.title},o.a.createElement("iframe",{id:"".concat(this.getId(),"-google-map"),src:"https://www.google.com/maps/embed/v1/place?key=".concat(this.props.googleAPIKey,"&q=").concat(encodeURIComponent(this.props.selection?this.props.selection.address:this.props.defaultLocation.address)),title:t.title}))),this.props.locations.length>1?o.a.createElement("div",{className:"slds-coordinates"},o.a.createElement("div",{className:"slds-coordinates__header"},o.a.createElement("h2",{className:"slds-coordinates__title"},"".concat(t.title," (").concat(this.props.locations.length,")"))),o.a.createElement("ul",{className:"slds-coordinates__list"},this.props.locations.map((function(t,n){return o.a.createElement("li",{key:t.id,className:"slds-coordinates__item"},o.a.createElement("span",{className:"slds-assistive-text","aria-live":"polite"},"".concat(t.name," is currently selected")),o.a.createElement("button",{type:"button",onClick:function(t){return e.handleClick(t,n)},className:"slds-coordinates__item-action slds-button_reset slds-media","aria-pressed":e.props.selection&&e.props.selection.id===t.id},o.a.createElement("span",{className:"slds-media__figure"},o.a.createElement(jn,{category:"standard",name:"account"})),o.a.createElement("span",{className:"slds-media__body"},o.a.createElement("span",{className:"slds-text-link"},t.name),o.a.createElement("span",null,t.address))))})))):null)}}])&&OS(t.prototype,n),r&&OS(t,r),i}(o.a.Component);TS.displayName="SLDSLocationMap",TS.propTypes=jS;var PS=TS;function kS(e){return(kS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function RS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function DS(e,t){return(DS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function AS(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FS(e);if(t){var o=FS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LS(this,n)}}function LS(e,t){return!t||"object"!==kS(t)&&"function"!=typeof t?BS(e):t}function BS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FS(e){return(FS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function MS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var HS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&DS(e,t)}(i,e);var t,n,r,a=AS(i);function i(){var e;RS(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return MS(BS(e=a.call.apply(a,[this].concat(n))),"handleClick",(function(){e.props.onClose&&e.props.onClose()})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.isActive!==this.props.isActive&&!0===e.isActive&&this.props.setFocus("searchRecords")}},{key:"render",value:function(){var e="slds-lookup__item-action slds-lookup__item-action_label";return this.props.isActive&&(e+=" slds-theme_shade"),o.a.createElement("div",{className:"js-slds-lookup__item",onMouseDown:St.trapImmediate,onClick:this.handleClick},o.a.createElement("a",{id:"searchRecords",href:"#",onClick:function(e){return e.preventDefault()},className:e},o.a.createElement("span",{className:"lookup__item-action-label"},o.a.createElement(jn,{name:"search",category:"utility",size:"x-small",className:"slds-icon-text-default"}),o.a.createElement("span",{className:"slds-truncate"},this.props.searchTerm))))}}])&&IS(t.prototype,n),r&&IS(t,r),i}(o.a.Component);HS.displayName="LookupDefaultHeader",HS.propTypes={},HS.defaultProps={};var qS=HS;function KS(e){return(KS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zS(e,t){return(zS=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function US(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=XS(e);if(t){var o=XS(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return GS(this,n)}}function GS(e,t){return!t||"object"!==KS(t)&&"function"!=typeof t?YS(e):t}function YS(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XS(e){return(XS=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zS(e,t)}(i,e);var t,n,r,a=US(i);function i(){var e;WS(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QS(YS(e=a.call.apply(a,[this].concat(n))),"handleClick",(function(){e.props.onClose&&e.props.onClose()})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.isActive!==this.props.isActive&&!0===e.isActive&&this.props.setFocus("newItem")}},{key:"render",value:function(){var e="slds-lookup__item-action slds-lookup__item-action_label";return this.props.isActive&&(e+=" slds-theme_shade"),o.a.createElement("div",{className:"js-slds-lookup__item",onClick:this.handleClick,onMouseDown:St.trapImmediate},o.a.createElement("a",{id:"newItem",href:"#",onClick:function(e){return e.preventDefault()},className:e},o.a.createElement("span",{className:"lookup__item-action-label"},o.a.createElement(jn,{name:"add",category:"utility",size:"x-small",className:"slds-icon-text-default"}),o.a.createElement("span",{className:"slds-truncate"},this.props.newItemLabel?this.props.newItemLabel:"Add New Item"))))}}])&&VS(t.prototype,n),r&&VS(t,r),i}(o.a.Component);JS.displayName="LookupDefaultFooter",JS.propTypes={},JS.defaultProps={};var ZS=JS,$S={data:i.a.object},eE=function(e){return o.a.createElement("li",{className:"slds-p-around_x-small slds-lookup__divider",tabIndex:"-1"},o.a.createElement("span",{className:"slds-m-left_x-small"},o.a.createElement("strong",null,e.data.label)))};eE.displayName="LookupDefaultSectionDivider",eE.propTypes=$S;var tE=eE;var nE=function(){};function rE(e){return(rE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iE(e,t){return(iE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uE(e);if(t){var o=uE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lE(this,n)}}function lE(e,t){return!t||"object"!==rE(t)&&"function"!=typeof t?cE(e):t}function cE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uE(e){return(uE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fE={data:i.a.object,handleItemFocus:i.a.func,href:i.a.string,iconCategory:i.a.string,id:i.a.string,index:i.a.number,isActive:i.a.bool,isDisabled:i.a.bool,listItemLabelRenderer:i.a.func,onSelect:i.a.func,searchTerm:i.a.string,setFocus:i.a.func},dE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iE(e,t)}(i,e);var t,n,r,a=sE(i);function i(){var e;oE(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return pE(cE(e=a.call.apply(a,[this].concat(n))),"handleClick",(function(){return e.props.onSelect(e.props.id,e.props.data)})),e}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.isActive!==this.props.isActive&&!0===e.isActive&&(this.scrollFocus(),this.props.setFocus(this.props.id))}},{key:"getCustomLabel",value:function(){var e=this.props.listItemLabelRenderer;return o.a.createElement(e,this.props)}},{key:"getIcon",value:function(){return this.props.iconName&&!this.props.listItemLabelRenderer?o.a.createElement("span",{className:"slds-media__figure"},o.a.createElement(jn,{category:this.props.iconCategory,inverse:this.props.iconInverse,key:this.props.iconName,name:this.props.iconName,size:"small"})):null}},{key:"getLabel",value:function(){var e;if(this.props.children.data.subTitle)e=o.a.createElement("div",{className:"slds-media__body"},o.a.createElement("div",{className:"slds-lookup__result-text"},this.props.children.label),o.a.createElement("span",{className:"slds-lookup__result-meta slds-text-body_small"},this.props.children.data.subTitle));else{var t=l()("slds-lookup__result-text",{"slds-m-left_x-small":!this.props.iconName});e=o.a.createElement("div",{className:"slds-media__body"},o.a.createElement("div",{className:t},this.props.children.label))}return e}},{key:"scrollFocus",value:function(){var e=this.itemRef.offsetHeight;e&&this.props.handleItemFocus&&this.props.handleItemFocus(this.props.index,e)}},{key:"render",value:function(){var e=this,t="js-slds-lookup__item",n=this.props.id;return this.props.isActive&&(t+=" slds-theme_shade"),o.a.createElement("li",{className:t,ref:function(t){e.itemRef=t}},o.a.createElement("a",{"aria-disabled":this.props.isDisabled,className:"slds-lookup__item-action slds-media slds-media_center",href:this.props.href,id:n,onClick:this.handleClick,onMouseDown:St.trapImmediate,ref:n,role:"option",tabIndex:"-1"},this.getIcon(),this.props.listItemLabelRenderer?this.getCustomLabel():this.getLabel()))}}])&&aE(t.prototype,n),r&&aE(t,r),i}(o.a.Component);dE.displayName="Lookup-Menu-Item",dE.propTypes=fE;var hE=dE;function mE(e){return(mE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bE(){return(bE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vE(e,t){return(vE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xE(e);if(t){var o=xE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OE(this,n)}}function OE(e,t){return!t||"object"!==mE(t)&&"function"!=typeof t?_E(e):t}function _E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xE(e){return(xE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wE={boldRegex:i.a.instanceOf(RegExp),emptyMessage:i.a.oneOfType([i.a.string,i.a.element]),filterWith:i.a.func,focusIndex:i.a.number,getListLength:i.a.func,iconCategory:i.a.string,items:i.a.array,label:i.a.string,listLength:i.a.number,searchTerm:i.a.string,setFocus:i.a.func},SE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vE(e,t)}(i,e);var t,n,r,a=gE(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(_E(t=a.call(this,e)),"handleItemFocus",(function(e,n){t.listRef&&(t.listRef.scrollTop=e*n)})),t.state={filteredItems:t.filteredItems()},t}return t=i,(n=[{key:"componentDidUpdate",value:function(e){var t=[].slice.call(this.listRef.children).filter((function(e){return e.className.indexOf("js-slds-lookup__item")>-1||e.className.indexOf("slds-lookup__divider")>-1})).length;this.props.getListLength(t),e.items===this.props.items&&e.filter===this.props.filter&&e.searchTerm===this.props.searchTerm||this.setState({filteredItems:this.filteredItems()})}},{key:"getFilteredItemForIndex",value:function(e){return e>-1&&this.state.filteredItems&&e<this.state.filteredItems.length?this.state.filteredItems[e]:null}},{key:"filter",value:function(e){return this.props.filterWith(this.props.searchTerm,e)}},{key:"filterEmptySections",value:function(e){var t=[];return e.forEach((function(n,r){if(n&&n.data&&"section"===n.data.type){if(r+1<e.length){var o=e[r+1];o.data&&"section"!==o.data.type&&t.push(n)}}else t.push(n)})),t}},{key:"filteredItems",value:function(){return this.filterEmptySections(this.props.items.filter(this.filter,this))}},{key:"renderContent",value:function(){return 0===this.state.filteredItems.length?o.a.createElement("li",{className:"slds-lookup__message","aria-live":"polite"},o.a.createElement("span",{className:"slds-m-left_x-large slds-p-vertical_medium"},this.props.emptyMessage)):this.renderItems()}},{key:"renderFooter",value:function(){return this.props.footer}},{key:"renderHeader",value:function(){return this.props.header}},{key:"renderItems",value:function(){var e=this,t=this.props.focusIndex;return this.state.filteredItems.map((function(n,r){var a=n.id,i=!1;if(i=e.props.header?t===r+1:t===r,"section"===n.data.type&&e.props.sectionDividerRenderer){var s=e.props.sectionDividerRenderer;return o.a.createElement(s,bE({data:n.data,key:"section_header_".concat(a)},e.props))}return o.a.createElement(hE,{boldRegex:e.props.boldRegex,data:n.data,handleItemFocus:e.handleItemFocus,iconCategory:e.props.iconCategory,iconInverse:e.props.iconInverse,iconName:e.props.iconName,id:a,index:r,isActive:i,key:a,listItemLabelRenderer:e.props.listItemLabelRenderer,onSelect:e.props.onSelect,searchTerm:e.props.searchTerm,setFocus:e.props.setFocus},n)}))}},{key:"renderSectionDivider",value:function(){return this.props.sectionDivider}},{key:"render",value:function(){var e=this;return o.a.createElement("section",{id:"menuContainer",className:"ignore-react-onclickoutside"},this.renderHeader(),o.a.createElement("ul",{id:"list",className:"slds-lookup__list",role:"presentation",ref:function(t){t&&(e.listRef=t)}},this.renderContent()),this.renderFooter())}}])&&yE(t.prototype,n),r&&yE(t,r),i}(o.a.Component);SE.displayName="Lookup-Menu",SE.propTypes=wE,SE.defaultProps={emptyMessage:"No matches found."};var EE,CE,jE=SE;function NE(e){return(NE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TE(){return(TE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function PE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function kE(e,t){return(kE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function RE(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=AE(e);if(t){var o=AE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return IE(this,n)}}function IE(e,t){return!t||"object"!==NE(t)&&"function"!=typeof t?DE(e):t}function DE(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AE(e){return(AE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function LE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var BE=function(e){return(e||"").toString().replace(/^\s+/,"")},FE=(CE=EE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kE(e,t)}(i,e);var t,n,r,a=RE(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),LE(DE(t=a.call(this,e)),"state",{currentFocus:null,focusIndex:null,items:[],listLength:t.props.options.length,searchTerm:BE(t.props.searchTerm),selectedIndex:t.props.selectedItem}),LE(DE(t),"getClassName",(function(){return l()(t.props.className,"slds-form-element slds-lookup",{"slds-has-selection":t.isSelected(),"slds-is-open":t.getIsOpen()})})),LE(DE(t),"setFirstIndex",(function(){var e=0,n=t.state.items[0];t.menuComponent&&t.menuComponent.getFilteredItemForIndex&&(n=t.menuComponent.getFilteredItemForIndex(e)),n&&"section"===n.data.type&&(e+=1),t.setState({focusIndex:e})})),LE(DE(t),"getHeader",(function(){var e=t.props.headerRenderer,n=0===t.state.focusIndex;return o.a.createElement(e,TE({ref:function(e){t.headerComponent=e}},t.props,{focusIndex:t.state.focusIndex,isActive:n,onClose:t.handleClose,searchTerm:t.state.searchTerm,setFocus:t.setFocus}))})),LE(DE(t),"getFooter",(function(){var e=t.props.footerRenderer,n=t.getNumFocusableItems(),r=t.state.focusIndex===n;return o.a.createElement(e,TE({ref:function(e){t.footerComponent=e}},t.props,{focusIndex:t.state.focusIndex,isActive:r,onClose:t.handleClose,setFocus:t.setFocus}))})),LE(DE(t),"setFocus",(function(e){t.setState({currentFocus:e})})),LE(DE(t),"getIsOpen",(function(){return!!("boolean"==typeof t.props.isOpen?t.props.isOpen:t.state.isOpen)})),LE(DE(t),"getListLength",(function(e){e!==t.state.listLength&&t.setState({listLength:e})})),LE(DE(t),"getNumFocusableItems",(function(){var e=0;return t.footerComponent&&(e+=1),t.headerComponent&&(e+=1),t.state.listLength-1+e})),LE(DE(t),"increaseIndex",(function(){var e=t.getNumFocusableItems(),n=t.state.focusIndex<e?t.state.focusIndex+1:0,r=t.menuComponent.getFilteredItemForIndex(n);r&&"section"===r.data.type&&(n+=1),t.setState({focusIndex:n})})),LE(DE(t),"decreaseIndex",(function(){var e=t.getNumFocusableItems(),n=t.state.focusIndex>0?t.state.focusIndex-1:e,r=t.menuComponent.getFilteredItemForIndex(n);r&&"section"===r.data.type&&(n=0===n?e:n-1),t.setState({focusIndex:n})})),LE(DE(t),"selectItem",(function(e){if(e){var n=e.replace("item-","");t.selectItemByIndex(n)}})),LE(DE(t),"selectItemByIndex",(function(e){if(e>=0&&e<t.state.items.length){t.props.onRequestClose&&t.props.onRequestClose(),t.setState({isOpen:!1,selectedIndex:e,searchTerm:""});var n=t.state.items[e].data;t.props.onSelect&&t.props.onSelect(n)}})),LE(DE(t),"handleDeleteSelected",(function(){t.props.onRequestOpen&&t.props.onRequestOpen(),t.setState({selectedIndex:null,isOpen:!0}),t.focusInput(),t.props.onUnselect&&t.props.onUnselect()})),LE(DE(t),"handleClose",(function(){t.props.onRequestClose&&t.props.onRequestClose(),t.setState({isOpen:!1,focusIndex:null,currentFocus:null})})),LE(DE(t),"handleClickOutside",(function(){t.handleClose()})),LE(DE(t),"handleEscape",(function(e){t.getIsOpen()&&e&&St.trap(e),t.handleClose()})),LE(DE(t),"handleCancel",(function(){t.handleClose()})),LE(DE(t),"handleClick",(function(){t.props.onRequestOpen&&t.props.onRequestOpen(),t.setState({isOpen:!0})})),LE(DE(t),"handleBlur",(function(e){if(t.props.onBlur){var n=e.target||e.currentTarget;t.props.onBlur(n.value)}})),LE(DE(t),"handleFocus",(function(e){if(t.props.onFocus){var n=e.target||e.currentTarget;t.props.onFocus(n.value)}t.props.onRequestOpen&&t.props.onRequestOpen(),t.setState({isOpen:!0})})),LE(DE(t),"handleChange",(function(e){var n=e.target||e.currentTarget;t.setState({searchTerm:BE(n.value)}),t.props.onChange&&t.props.onChange(n.value)})),LE(DE(t),"handleKeyDown",(function(e){if(e.keyCode)if(e.keyCode===zt.ESCAPE?t.handleEscape(e):e.keyCode===zt.TAB?(setTimeout((function(){t.handleClose()}),200),t.handleBlur(e)):t.handleClick(),e.keyCode===zt.DOWN)St.trapImmediate(e),null===t.state.focusIndex?t.setFirstIndex():t.increaseIndex();else if(e.keyCode===zt.UP){St.trapImmediate(e);var n=t.getNumFocusableItems();null===t.state.focusIndex?t.setState({focusIndex:n}):t.decreaseIndex()}else e.keyCode===zt.ENTER&&null!==t.state.focusIndex&&(St.trapImmediate(e),t.headerComponent&&0===t.state.focusIndex?t.headerComponent.handleClick():t.footerComponent&&t.state.focusIndex===t.state.listLength+1?t.footerComponent.handleClick():t.selectItem(t.state.currentFocus))})),LE(DE(t),"handlePillKeyDown",(function(e){e.keyCode&&(e.keyCode!==zt.DELETE&&e.keyCode!==zt.BACKSPACE||(St.trapImmediate(e),t.handleDeleteSelected()))})),LE(DE(t),"inputRefId",(function(){return"".concat(t.props.label,"Lookup")})),LE(DE(t),"focusInput",(function(){t.focusOnRender=!0})),LE(DE(t),"isSelected",(function(){return!isNaN(parseInt(t.state.selectedIndex,10))&&t.state.selectedIndex>=0})),LE(DE(t),"modifyItems",(function(e){var n=e.map((function(e,t){return{id:"item-".concat(t),label:e.label,data:e}}));t.setState({items:n})})),LE(DE(t),"renderMenuContent",(function(){return o.a.createElement(jE,{ref:function(e){t.menuComponent=e},emptyMessage:t.props.emptyMessage,filterWith:t.props.filterWith,focusIndex:t.state.focusIndex,footer:t.props.footerRenderer?t.getFooter():null,getListLength:t.getListLength,header:t.props.headerRenderer?t.getHeader():null,iconCategory:t.props.iconCategory,iconInverse:t.props.iconInverse,iconName:t.props.iconName,items:t.state.items,label:t.props.label,listItemLabelRenderer:t.props.listItemLabelRenderer,listLength:t.state.listLength,onSelect:t.selectItem,searchTerm:t.state.searchTerm,sectionDividerRenderer:t.props.sectionDividerRenderer,setFocus:t.setFocus})})),LE(DE(t),"renderInlineMenu",(function(){return t.getIsOpen()?o.a.createElement("div",{className:"ignore-react-onclickoutside slds-lookup__menu",role:"listbox"},t.renderMenuContent()):null})),LE(DE(t),"renderSeparateMenu",(function(){var e=t.props.isInline?"relative":t.props.menuPosition;return t.getIsOpen()?o.a.createElement(bn,{align:"bottom",className:"slds-lookup__menu slds-show",closeOnTabKey:!0,contentsClassName:"slds-lookup__menu slds-show",context:t.context,inheritWidthOf:"target",onClose:t.handleCancel,hasStaticAlignement:!t.props.flippable,constrainToScrollParent:t.props.constrainToScrollParent,onRequestTargetElement:function(){return t.input},position:e},t.renderMenuContent()):null})),LE(DE(t),"renderInput",(function(){return o.a.createElement(Pu,{"aria-activedescendant":t.state.currentFocus?t.state.currentFocus:"","aria-autocomplete":"list","aria-describedby":t.props.describedById,"aria-expanded":!!t.getIsOpen(),assistiveText:t.props.assistiveText,className:"slds-lookup__search-input",disabled:t.props.disabled,iconRight:o.a.createElement(Ac,{assistiveText:{icon:"Search"},category:"utility",name:"search"}),id:t.inputRefId(),onBlur:t.handleBlur,onChange:t.handleChange,onClick:t.handleClick,onFocus:t.handleFocus,onKeyDown:t.handleKeyDown,inputRef:function(e){t.input=e,t.focusOnRender&&(t.input.focus(),t.focusOnRender=!1)},placeholder:t.props.placeholder,role:"combobox",type:"text",value:t.state.searchTerm})})),LE(DE(t),"renderSelectedItem",(function(){var e=t.props.options[t.state.selectedIndex].label,n=t.props.iconName?o.a.createElement(jn,{category:t.props.iconCategory,className:"slds-icon slds-pill__icon",inverse:t.props.iconInverse,name:t.props.iconName}):null,r=t.props.iconName?"slds-pill__label":"slds-pill__label slds-m-left_x-small";return o.a.createElement("div",{className:"slds-pill__container"},o.a.createElement("a",{href:"#",className:"slds-pill",ref:function(e){t.pills[t.state.selectedIndex]=e},onClick:function(e){return e.preventDefault()},onKeyDown:t.handlePillKeyDown},n,o.a.createElement("span",{className:r},e),o.a.createElement(ar,{assistiveText:{icon:"Press delete to remove"},className:"slds-pill__remove slds-button_icon-bare",iconCategory:"utility",iconName:"close",onClick:t.handleDeleteSelected,tabIndex:"-1",variant:"icon"})))})),LE(DE(t),"renderLabel",(function(){var e=t.props.required?o.a.createElement("span",{className:"slds-required"},"*"):null;return t.isSelected()?o.a.createElement("span",{className:"slds-form-element__label",style:{width:"100%"}},e,t.props.label):o.a.createElement("label",{className:"slds-form-element__label",htmlFor:t.inputRefId(),style:{width:"100%"}},e,t.props.label)})),nE(te,e),t.pills=[],t}return t=i,(n=[{key:"componentDidMount",value:function(){this.modifyItems(this.props.options)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.options&&this.modifyItems(e.options),e.selectedItem===this.props.selectedItem&&jt()(e.options,this.props.options)||this.setState({selectedIndex:e.selectedItem})}},{key:"componentDidUpdate",value:function(e,t){!isNaN(parseInt(t.selectedIndex,10))&&isNaN(parseInt(this.state.selectedIndex,10))?this.input&&this.input.focus():isNaN(parseInt(t.selectedIndex,10))&&!isNaN(parseInt(this.state.selectedIndex,10))&&this.pills[this.state.selectedIndex]&&this.pills[this.state.selectedIndex].focus()}},{key:"render",value:function(){var e;this.props.isInline?e=!0:void 0!==this.props.modal&&(e=!this.props.modal);var t=LE({"slds-form-element__control":!0},"slds-input-has-icon slds-input-has-icon_".concat(this.props.iconPosition),!this.isSelected());return o.a.createElement("div",{className:this.getClassName(),"data-select":"single","data-scope":"single",onScroll:this.props.onScroll},this.props.label?this.renderLabel():null,o.a.createElement("div",{className:l()(t)},this.isSelected()?this.renderSelectedItem():null,this.isSelected()?null:this.renderInput()),e?this.renderInlineMenu():this.renderSeparateMenu())}}])&&PE(t.prototype,n),r&&PE(t,r),i}(o.a.Component),LE(EE,"displayName",te),LE(EE,"propTypes",{assistiveText:i.a.oneOfType([i.a.object,i.a.string]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),constrainToScrollParent:i.a.bool,describedById:i.a.string,menuPosition:i.a.string,disabled:i.a.bool,emptyMessage:i.a.oneOfType([i.a.string,i.a.element]),filterWith:i.a.func,flippable:i.a.bool,footerRenderer:i.a.func,headerRenderer:i.a.func,iconCategory:i.a.string,iconInverse:i.a.bool,iconName:i.a.string,iconPosition:i.a.oneOf(["left","right"]),isInline:i.a.bool,isOpen:i.a.bool,label:i.a.string,listItemLabelRenderer:i.a.func,onBlur:i.a.func,onChange:i.a.func,onFocus:i.a.func,onRequestClose:i.a.func,onRequestOpen:i.a.func,onScroll:i.a.func,onSelect:i.a.func,onUnselect:i.a.func,options:i.a.array.isRequired,placeholder:i.a.string,required:i.a.bool,searchTerm:i.a.string,sectionDividerRenderer:i.a.func,selectedItem:i.a.number}),LE(EE,"defaultProps",{constrainToScrollParent:!0,filterWith:function(e,t){return!e||(t.data&&"section"===t.data.type||t.label.match(new RegExp(bs()(e),"ig")))},iconPosition:"right",searchTerm:"",menuPosition:"absolute"}),CE);FE.contextType=pt;var ME=Ci(FE,{excludeScrollbar:!0}),HE=n(24);var qE=function(){},KE=function(){},WE=function(e){var t=[];return t.indexes=[],t.keyBuffer=new hs,Array.isArray(e)&&e.forEach((function(e,n){(function(e){return"header"!==e.type&&"divider"!==e.type&&!e.disabled})(e)&&(t.push({index:n,text:"".concat(e.label).toLowerCase()}),t.indexes.push(n))})),t};var VE=n.n(HE)()({displayName:oe,propTypes:{buttonRef:i.a.func,className:i.a.string,checkmark:i.a.bool,disabled:i.a.bool,errorText:i.a.string,id:i.a.string,isInline:i.a.bool,label:i.a.string,labels:i.a.shape({multipleOptionsSelected:i.a.string}),listItemRenderer:i.a.func,onClick:i.a.func,onSelect:i.a.func,onPillRemove:i.a.func,options:i.a.array.isRequired,placeholder:i.a.string,required:i.a.bool,value:i.a.node,initValueIndex:i.a.number},getDefaultProps:function(){return{inheritTargetWidth:!0,placeholder:"Select an Option",checkmark:!0,labels:{multipleOptionsSelected:"Multiple Options Selected"},menuPosition:"absolute"}},getInitialState:function(){return{focusedIndex:this.props.initValueIndex?this.props.initValueIndex:-1,selectedIndex:this.props.initValueIndex?this.props.initValueIndex:-1,selectedIndices:[],currentPillLabel:""}},UNSAFE_componentWillMount:function(){if(qE(oe,this.props),this.generatedId=u.a.generate(),this.props.errorText&&(this.generatedErrorId=u.a.generate()),"undefined"!=typeof window&&window.addEventListener("click",this.closeOnClick,!1),this.props.multiple){var e=this.getIndexByValue(this.props),t=this.state.selectedIndices;-1!==e&&t.push(e),this.setState({selectedIndices:t})}else this.setState({selectedIndex:this.getIndexByValue(this.props)});this.navigableItems=WE(this.props.options)},UNSAFE_componentWillReceiveProps:function(e){if(this.props.value!==e.value||this.props.options.length!==e.length)if(!0!==this.props.multiple)this.setState({selectedIndex:this.getIndexByValue(e)});else{var t=this.getIndexByValue(e);if(-1!==t){var n=this.state.selectedIndices.concat(t);this.setState({selectedIndices:n})}}e.options&&(this.navigableItems=WE(e.options))},componentWillUnmount:function(){this.isUnmounting=!0,window.removeEventListener("click",this.closeOnClick,!1)},getListItemId:function(e){var t;if(void 0!==e){var n=Ar()(this.getId)?this.getId():this.props.id;t="".concat(n,"-item-").concat(e)}return t},getId:function(){return this.props.id||this.generatedId},getErrorId:function(){return this.props["aria-describedby"]||this.generatedErrorId},getClickEventName:function(){return"SLDS".concat(this.getId(),"ClickEvent")},getIndexByValue:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.value,n=e.options,r=-1;return n&&n.length&&n.some((function(e,n){return!(!e||e.value!==t)&&(r=n,!0)})),r},getValueByIndex:function(e){return this.props.options[e]},getListItemRenderer:function(){return this.props.listItemRenderer?this.props.listItemRenderer:Ni},setFocus:function(){!this.isUnmounting&&this.button&&this.button.focus()},handleSelect:function(e){if(this.props.multiple){var t;if(-1===this.state.selectedIndices.indexOf(e))t=this.state.selectedIndices.concat(e);else{var n=this.state.selectedIndices.indexOf(e);(t=this.state.selectedIndices).splice(n,1)}this.setState({selectedIndices:t})}else this.setState({selectedIndex:e}),this.handleClose(),this.setFocus();if(this.props.onSelect){var r=this.getValueByIndex(e);this.props.onSelect(r,{option:r,optionIndex:e})}},handleClose:function(){this.setState({isOpen:!1})},handleClick:function(e){e&&(e.nativeEvent[this.getClickEventName()]=!0),this.state.isOpen?this.handleClose():(this.setState({isOpen:!0}),this.setFocus(),this.props.onClick&&this.props.onClick(e))},handleMouseDown:function(e){e&&(St.trapImmediate(e),e.nativeEvent[this.getClickEventName()]=!0)},handleKeyDown:function(e){if(e.keyCode)if(e.keyCode!==zt.ENTER&&e.keyCode!==zt.SPACE&&e.keyCode!==zt.DOWN&&e.keyCode!==zt.UP||St.trap(e),e.keyCode!==zt.TAB){var t=e.keyCode===zt.ENTER||e.keyCode===zt.DOWN||e.keyCode===zt.UP,n="BUTTON"===e.target.tagName;t&&n&&this.props.onClick&&this.props.onClick(e),this.handleKeyboardNavigate({isOpen:this.state.isOpen||!1,keyCode:e.keyCode,onSelect:this.handleSelect,toggleOpen:this.toggleOpen})}else this.handleCancel()},handleCancel:function(){this.setFocus(),this.handleClose()},handleKeyboardNavigate:function(e){var t=e.event,n=e.isOpen,r=void 0===n||n,o=e.keyCode,a=e.onFocus,i=void 0===a?this.handleKeyboardFocus:a,s=e.onSelect,l=e.target,c=e.toggleOpen,u=void 0===c?KE:c;gs({componentContext:this,currentFocusedIndex:this.state.focusedIndex,event:t,isOpen:r,keyCode:o,navigableItems:this.navigableItems,onFocus:i,onSelect:s,target:l,toggleOpen:u})},handleKeyboardFocus:function(e){this.state.focusedIndex!==e&&this.setState({focusedIndex:e});var t,n=Ar()(this.getMenu)?this.getMenu():(t=this,Tt.a.findDOMNode(t).querySelector("ul.dropdown__list")),r=Ar()(this.getMenuItem)?this.getMenuItem(e,n):function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return e&&(t=n.getElementById(e)),t}(this.getListItemId(e));r&&(this.focusMenuItem(r),this.scrollToMenuItem(n,r))},focusMenuItem:function(e){e.getElementsByTagName("a")[0].focus()},scrollToMenuItem:function(e,t){if(e&&t){var n=e.offsetHeight,r=e.scrollTop,o=t.offsetTop-e.offsetTop;if(o<r)e.scrollTop=o;else{var a=r+n+e.offsetTop,i=o+t.offsetHeight+e.offsetTop;i>a&&(e.scrollTop=i-n-e.offsetTop)}}},closeOnClick:function(e){!e[this.getClickEventName()]&&this.state.isOpen&&this.handleClose()},toggleOpen:function(){this.setState({isOpen:!this.state.isOpen})},saveRefToList:function(e){this.list=e},saveRefToListItem:function(e,t){this.listItems||(this.listItems={}),this.listItems[t]=e,t===this.state.focusedIndex&&this.handleKeyboardFocus(this.state.focusedIndex)},saveRefToTrigger:function(e){this.button=e,this.props.buttonRef&&this.props.buttonRef(this.button),this.state.triggerRendered||this.setState({triggerRendered:!0})},renderMenuContent:function(){return o.a.createElement($i,{checkmark:this.props.checkmark,getListItemId:this.getListItemId,itemRefs:this.saveRefToListItem,itemRenderer:this.getListItemRenderer(),onCancel:this.handleCancel,onSelect:this.handleSelect,options:this.props.options,ref:this.saveRefToList,selectedIndex:this.props.multiple?void 0:this.state.selectedIndex,selectedIndices:this.props.multiple?this.state.selectedIndices:void 0,triggerId:this.getId()})},renderInlineMenu:function(){return!this.props.disabled&&this.state.isOpen?o.a.createElement("div",{className:"slds-dropdown slds-dropdown_left",style:{maxHeight:"20em",overflowX:"hidden",minWidth:"100%"}},this.renderMenuContent()):null},renderDialog:function(){var e=this;return!this.props.disabled&&this.state.isOpen?o.a.createElement(bn,{closeOnTabKey:!0,constrainToScrollParent:this.props.constrainToScrollParent,contentsClassName:"slds-dropdown slds-dropdown_left",context:this.context,flippable:!0,onClose:this.handleCancel,onKeyDown:this.handleKeyDown,onRequestTargetElement:function(){return e.button},inheritWidthOf:this.props.inheritTargetWidth?"target":"none",position:this.props.menuPosition},this.renderMenuContent()):null},renderTrigger:function(){var e,t;if(this.props.isInline?e=!0:void 0!==this.props.modal&&(e=!this.props.modal),this.props.multiple&&0===this.state.selectedIndices.length)t=this.props.placeholder;else if(this.props.multiple&&1===this.state.selectedIndices.length){t=this.props.options[this.state.selectedIndices].label}else if(this.props.multiple&&this.state.selectedIndices.length>1)t=this.props.labels.multipleOptionsSelected;else{var n=this.props.options[this.state.selectedIndex];t=n&&n.label?n.label:this.props.placeholder}return o.a.createElement("div",{className:l()("slds-picklist slds-dropdown-trigger slds-dropdown-trigger_click",{"slds-is-open":this.state.isOpen},this.props.className),onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown},o.a.createElement("button",{"aria-describedby":this.getErrorId(),"aria-expanded":this.state.isOpen,"aria-haspopup":"true",className:"slds-button slds-button_neutral slds-picklist__label",disabled:this.props.disabled,id:this.getId(),onClick:this.props.disabled?void 0:this.handleClick,ref:this.saveRefToTrigger,tabIndex:this.state.isOpen?-1:0,type:"button"},o.a.createElement("span",{className:"slds-truncate"},t),o.a.createElement(jn,{name:"down",category:"utility"})),e?this.renderInlineMenu():this.renderDialog())},renderPills:function(){var e=this,t=this.state.selectedIndices.map((function(t){var n=e.getValueByIndex(t).label;return o.a.createElement("li",{className:"slds-listbox__item",key:"pill-".concat(t),role:"presentation"},o.a.createElement(Om,{eventData:{item:e.props.options[t],index:t},events:{onRequestFocus:function(){},onRequestFocusOnNextPill:function(){},onRequestFocusOnPreviousPill:function(){},onRequestRemove:function(t,n){var r=e.state.selectedIndices,o=n.index;if(r.splice(e.state.selectedIndices.indexOf(o),1),e.setState({selectedIndices:r}),e.props.onPillRemove){var a=e.getValueByIndex(o);e.props.onPillRemove(a,{option:a,optionIndex:o})}}},labels:{label:n}}))}));return o.a.createElement("div",{id:"listbox-selections-unique-id",orientation:"horizontal",role:"listbox"},o.a.createElement("ul",{className:"slds-listbox slds-listbox_inline slds-p-top_xxx-small",role:"group","aria-label":"Selected Options:"},t))},render:function(){var e=this.props,t=e.className,n=e.errorText,r=e.label,a=e.required?o.a.createElement("span",{style:{color:"red"}},"* "):null;return o.a.createElement("div",{className:l()("slds-form-element",{"slds-has-error":n},t)},this.props.label?o.a.createElement("label",{className:"slds-form-element__label",htmlFor:this.getId(),style:{width:"100%"}},a,r):null,this.renderTrigger(),this.renderPills(),n&&o.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},n))}});VE.contextType=pt;var zE=VE,UE={open:function(e){var t;Br("components/modal/trigger.jsx","This component is deprecated and appears to have been created in order to do modals in portals which is what current Modal has done for years."),Gt&&((t=document.createElement("span")).setAttribute("data-slds-modal",!0),document.body.appendChild(t));var n=o.a.createElement(co,{heading:e.title,footer:e.footer,isOpen:!0},e.content);Tt.a.render(n,t)}},GE=n(53);var YE=function(){},XE=function(e){return o.a.createElement("li",{className:l()("slds-nav-vertical__item",{"slds-is-active":e.isSelected})},o.a.createElement("a",{"data-id":e.item.id,href:e.item.url||"#",className:"slds-nav-vertical__action","aria-describedby":e.categoryId,"aria-current":!!e.isSelected||void 0,onClick:function(t){!function(e,t){t.item.url||e.preventDefault(),Ar()(t.onSelect)&&t.onSelect(e,{item:t.item})}(t,e)}},e.item.icon?o.a.createElement(o.a.Fragment,null,o.a.cloneElement(e.item.icon,{className:l()(e.item.icon.props.className,"slds-m-right_".concat(e.item.icon.props.size||"medium"))}),e.item.label):e.item.label,e.item.notificationBadge?o.a.cloneElement(e.item.notificationBadge,{className:l()(e.item.notificationBadge.props.className,"slds-col_bump-left")}):o.a.createElement(o.a.Fragment,null)))};XE.displayName="SLDSVerticalNavigationItem",XE.propTypes={item:i.a.shape({id:i.a.string.isRequired,label:i.a.string.isRequired,url:i.a.string}),isSelected:i.a.bool,categoryId:i.a.string.isRequired,onSelect:i.a.func},XE.defaultProps={isSelected:!1};var QE=XE;function JE(e){return(JE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ZE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $E(e,t){return($E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function eC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rC(e);if(t){var o=rC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tC(this,n)}}function tC(e,t){return!t||"object"!==JE(t)&&"function"!=typeof t?nC(e):t}function nC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rC(e){return(rC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$E(e,t)}(i,e);var t,n,r,a=eC(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),oC(nC(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),oC(nC(t),"getSelectedId",(function(){var e,n=t.props.categories;return t.props.selectedId?e=t.props.selectedId:n.length>0&&n[0].items&&n[0].items.length>0&&(e=n[0].items[0].id),e})),t.generatedId=u.a.generate(),YE(ge,e,GE),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=this.getId();return o.a.createElement("nav",{id:t,className:l()("slds-nav-vertical",this.props.className)},this.props.categories.map((function(n){var r="".concat(t,"-").concat(n.id),a=e.getSelectedId();return o.a.createElement("div",{key:"".concat(r,"-header"),className:"slds-nav-vertical__section"},o.a.createElement("h2",{id:r,className:"slds-nav-vertical__title"},n.label),o.a.createElement("ul",{key:r},n.items.map((function(t){return o.a.createElement(QE,{key:t.id,item:t,isSelected:t.id===a,categoryId:r,onSelect:e.props.onSelect})}))))})))}}])&&ZE(t.prototype,n),r&&ZE(t,r),i}(o.a.Component);oC(aC,"displayName",ge),oC(aC,"propTypes",{id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),categories:i.a.array,selectedId:i.a.string,onSelect:i.a.func}),oC(aC,"defaultProps",{});var iC=aC;var sC=function(){};function lC(e){return(lC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uC(e,t){return(uC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hC(e);if(t){var o=hC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fC(this,n)}}function fC(e,t){return!t||"object"!==lC(t)&&"function"!=typeof t?dC(e):t}function dC(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hC(e){return(hC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bC={iconCategory:i.a.string,className:i.a.string,content:i.a.node.isRequired,dismissible:i.a.bool,duration:i.a.number,iconName:i.a.string,isOpen:i.a.bool.isRequired,onDismiss:i.a.func,texture:i.a.bool,theme:i.a.oneOf(["success","warning","error","offline"]),variant:i.a.oneOf(["alert","toast"]).isRequired},yC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uC(e,t)}(i,e);var t,n,r,a=pC(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),mC(dC(t=a.call(this,e)),"onDismiss",(function(){t.timeout&&(clearTimeout(t.timeout),t.timeout=null),t.props.onDismiss&&t.props.onDismiss(),t.state.returnFocusTo&&t.state.returnFocusTo.focus&&t.state.returnFocusTo.focus()})),t.state={},t.timeout=null,t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;sC("Notification",this.props),this.props.duration&&(this.timeout=setTimeout((function(){e.onDismiss()}),this.props.duration))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this;e.duration&&(this.timeout&&clearTimeout(this.timeout),e.isOpen&&(this.timeout=setTimeout((function(){t.onDismiss()}),this.props.duration))),e.isOpen!==this.props.isOpen&&this.setState({returnFocusTo:document.activeElement})}},{key:"componentDidUpdate",value:function(e){if(e.isOpen!==this.props.isOpen){var t=this.dismissBtnRef;t&&t.focus()}}},{key:"getClassName",value:function(){var e;return l()(this.props.className,"slds-notify",(mC(e={},"slds-notify_".concat(this.props.variant),this.props.variant),mC(e,"slds-theme_".concat(this.props.theme),this.props.theme),mC(e,"slds-theme_alert-texture",this.props.texture),e))}},{key:"blankContent",value:function(){return o.a.createElement("div",null)}},{key:"renderAlertContent",value:function(){return o.a.createElement("h2",{id:"dialogTitle"},this.renderIcon(),this.props.content)}},{key:"renderClose",value:function(){var e=this;if(this.props.dismissible){var t=null;return"toast"===this.props.variant&&(t="large"),o.a.createElement(ar,{assistiveText:{icon:"Dismiss Notification"},iconCategory:"utility",iconName:"close",iconSize:t,inverse:!0,className:"slds-notify__close",onClick:this.onDismiss,buttonRef:function(t){e.dismissBtnRef=t},variant:"icon"})}return null}},{key:"renderContent",value:function(){return o.a.createElement("div",null,o.a.createElement("span",{className:"slds-assistive-text"},this.props.theme),this.renderClose(),"toast"===this.props.variant?this.renderToastContent():null,"alert"===this.props.variant?this.renderAlertContent():null)}},{key:"renderIcon",value:function(){if(this.props.iconName){var e="";return"alert"===this.props.variant?e="slds-m-right_x-small":"toast"===this.props.variant&&(e="slds-m-right_small slds-col slds-no-flex"),o.a.createElement(jn,{category:this.props.iconCategory,className:e,inverse:!0,name:this.props.iconName,size:"small"})}return null}},{key:"renderToastContent",value:function(){return o.a.createElement("section",{className:"notify__content slds-grid"},this.renderIcon(),o.a.createElement("div",{className:"slds-col slds-align-middle"},o.a.createElement("h2",{id:"dialogTitle",className:"slds-text-heading_small"},this.props.content)))}},{key:"render",value:function(){var e;e=this.props.isOpen?"toast"===this.props.variant?{width:"auto",left:"50%",transform:"translateX(-50%)"}:{width:"100%"}:{width:"0px"};var t=this.props.isOpen?null:{display:"none"};return o.a.createElement("div",{className:"slds-notify-container",style:e},o.a.createElement("div",{className:this.getClassName(),role:"alertdialog","aria-labelledby":"dialogTitle",style:t},this.props.isOpen?this.renderContent():this.blankContent()))}}])&&cC(t.prototype,n),r&&cC(t,r),i}(o.a.Component);yC.displayName="Notification",yC.propTypes=bC,yC.defaultProps={iconCategory:"utility",dismissible:!0,isOpen:!1,texture:!1};var vC=yC;var gC=function(){},OC=n(54),_C={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),content:i.a.node,variant:i.a.string},xC=function(e){if(!e.content)return null;var t=l()({"slds-page-header__name-meta":"base"===e.variant,"slds-page-header__meta-text":"object-home"===e.variant||"objectHome"===e.variant||"related-list"===e.variant||"relatedList"===e.variant},e.className);return"string"==typeof e.content?o.a.createElement("p",{className:t},e.content):o.a.createElement("div",{className:t},e.content)};xC.displayName="PageHeaderInfo",xC.propTypes=_C;var wC=xC,SC={content:i.a.node,trail:i.a.array},EC=function(e){return e.trail&&e.trail.length>0?o.a.createElement(Gs,{styleContainer:e.style,trail:e.trail}):e.content?"string"==typeof e.content?o.a.createElement("span",null,e.content):e.content:null};EC.displayName="PageHeaderLabel",EC.propTypes=SC;var CC=EC;function jC(e){return(jC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function PC(e,t){return(PC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IC(e);if(t){var o=IC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return RC(this,n)}}function RC(e,t){return!t||"object"!==jC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function IC(e){return(IC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var DC={align:i.a.oneOf(["top","middle","bottom"]),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),content:i.a.node,label:i.a.node,truncate:i.a.bool},AC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&PC(e,t)}(i,e);var t,n,r,a=kC(i);function i(){return NC(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){if(!this.props.content)return null;var e=l()("slds-page-header__title",this.props.className,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"slds-truncate":this.props.truncate},"slds-align-".concat(this.props.align),this.props.align));return o.a.createElement("div",{className:"slds-page-header__name-title"},o.a.createElement("h1",null,o.a.createElement(CC,{content:this.props.label}),o.a.createElement("span",{className:e,title:"string"==typeof this.props.content?this.props.content:void 0},this.props.content)))}}])&&TC(t.prototype,n),r&&TC(t,r),i}(r.Component);AC.displayName="PageHeaderTitle",AC.propTypes=DC,AC.defaultProps={title:"Page Header Title",truncate:!0};var LC=AC;function BC(e){return(BC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function FC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function MC(e,t){return(MC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function HC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KC(e);if(t){var o=KC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return qC(this,n)}}function qC(e,t){return!t||"object"!==BC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function KC(e){return(KC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var WC={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),content:i.a.node,flavor:i.a.string,label:i.a.node,truncate:i.a.bool},VC=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&MC(e,t)}(i,e);var t,n,r,a=HC(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={showTooltip:!1},t}return t=i,(n=[{key:"componentDidMount",value:function(){this.renderFieldTruncation()}},{key:"componentDidUpdate",value:function(e){this.props.content!==e.content&&this.renderFieldTruncation()}},{key:"renderContent",value:function(){var e=this,t=this.props,n=t.content,r=t.truncate;if("string"==typeof n){var a=l()({"slds-truncate":r});return o.a.createElement("div",{className:a,ref:function(t){e.fieldContentRef=t},title:n},n)}return n}},{key:"renderContentWithTooltip",value:function(){var e=this.props,t=e.content,n=e.truncate,r=l()({"slds-truncate":n});return o.a.createElement(Kn,{align:"top",title:t,triggerStyle:{display:"inline"}},o.a.createElement("div",{className:r,tabIndex:"0",title:t},t))}},{key:"renderFieldTruncation",value:function(){var e=this.fieldContentRef;e&&e.scrollWidth>e.offsetWidth?this.setState({showTooltip:!0}):this.setState({showTooltip:!1})}},{key:"renderLabel",value:function(){var e=this.props,t=e.label,n=e.truncate;if("string"==typeof t){var r=l()("slds-text-title",{"slds-truncate":n});return o.a.createElement("div",{className:r,title:t},t)}return t}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.flavor,r=l()("slds-page-header__detail-block",t,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"slds-size_".concat(n),n));return o.a.createElement("li",{className:r},this.renderLabel(),this.state.showTooltip?this.renderContentWithTooltip():this.renderContent())}}])&&FC(t.prototype,n),r&&FC(t,r),i}(r.Component);VC.displayName="PageHeaderDetailRow",VC.propTypes=WC,VC.defaultProps={content:"",label:"",truncate:!0};var zC=VC;function UC(e){return(UC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function GC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function XC(e,t){return(XC=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function QC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ZC(e);if(t){var o=ZC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JC(this,n)}}function JC(e,t){return!t||"object"!==UC(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ZC(e){return(ZC=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $C={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),details:i.a.array},ej=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&XC(e,t)}(i,e);var t,n,r,a=QC(i);function i(){return GC(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"renderDetails",value:function(){return void 0!==this.props.children?this.props.children:this.props.details?this.props.details.map((function(e,t){var n="page-header-detail-block-".concat(t);return o.a.createElement(zC,{key:n,flavor:e.flavor,label:e.label,content:e.content,truncate:e.truncate})})):null}},{key:"render",value:function(){var e=l()("slds-page-header__detail-row",this.props.className);return o.a.createElement("ul",{className:e},this.renderDetails())}}])&&YC(t.prototype,n),r&&YC(t,r),i}(r.Component);ej.displayName="PageHeaderDetailRow",ej.propTypes=$C,ej.defaultProps={};var tj=ej;function nj(e){return(nj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rj(){return(rj=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ij(e,t){return(ij=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cj(e);if(t){var o=cj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lj(this,n)}}function lj(e,t){return!t||"object"!==nj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cj(e){return(cj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uj={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),type:i.a.oneOf(["actions","controls"])},pj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ij(e,t)}(i,e);var t,n,r,a=sj(i);function i(){return oj(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){var e,t,n,r;return"actions"===this.props.type?this.props.onRenderActions?e=this.props.onRenderActions():this.props.contentRight&&(e=this.props.contentRight,t=!0):this.props.onRenderControls?e=this.props.onRenderControls():this.props.navRight&&(e=this.props.navRight,t=!0),e?(e.type&&e.type.displayName===le?r=e:e.props&&e.props.children&&(r=[],o.a.Children.forEach(e.props.children,(function(e){e&&e.type&&e.type.displayName===le&&r.push(e)}))),t&&(!r||r.length<1)&&(n="string"!=typeof e?o.a.createElement("div",rj({className:"slds-page-header__controls"},e.props)):o.a.createElement("div",{className:"slds-page-header__controls"},e)),o.a.createElement("div",{className:l()("slds-page-header__col-".concat(this.props.type),this.props.className)},n||o.a.createElement("div",{className:"slds-page-header__controls"},r))):null}}])&&aj(t.prototype,n),r&&aj(t,r),i}(r.Component);pj.displayName="PageHeaderControls",pj.propTypes=uj,pj.defaultProps={};var fj=pj,dj={icon:i.a.node,info:i.a.node,onRenderControls:i.a.func,title:i.a.node,variant:i.a.string},hj=function(e){var t;if(e.iconName)t=o.a.createElement(jn,{category:e.iconCategory,className:"slds-page-header__icon",name:e.iconName,position:e.iconPosition,size:e.iconSize,variant:e.iconVariant});else if(e.icon){var n="slds-page-header__icon";e.icon.props&&(n=l()(e.icon.props.className,n)),t=o.a.cloneElement(e.icon,{className:n})}return o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-title"},o.a.createElement(dc,{body:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-page-header__name"},o.a.createElement(LC,{content:e.title})),o.a.createElement(wC,{content:e.info,variant:e.variant})),figure:t})),o.a.createElement(fj,{className:"slds-align-middle",navRight:e.navRight,onRenderControls:e.onRenderControls,type:"controls"}))};hj.displayName="PageHeaderBase",hj.propTypes=dj;var mj=hj,bj={details:i.a.array,label:i.a.node,icon:i.a.element,onRenderActions:i.a.func,title:i.a.node},yj=function(e){var t;if(e.iconName)t=o.a.createElement(jn,{category:e.iconCategory,className:"slds-page-header__icon",name:e.iconName,position:e.iconPosition,size:e.iconSize,variant:e.iconVariant});else if(e.icon){var n="slds-page-header__icon";e.icon.props&&(n=l()(e.icon.props.className,n)),t=o.a.cloneElement(e.icon,{className:n})}return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-title"},o.a.createElement(dc,{body:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-page-header__name"},o.a.createElement(LC,{content:e.title,label:e.label}))),figure:t})),o.a.createElement(fj,{contentRight:e.contentRight,onRenderActions:e.onRenderActions,type:"actions"})),e.details?o.a.createElement("div",{className:"slds-page-header__row slds-page-header__row_gutters"},o.a.createElement("div",{className:"slds-page-header__col-details"},o.a.createElement(tj,{details:e.details}))):null)};yj.displayName="PageHeaderRecordHome",yj.propTypes=bj;var vj=yj,gj={label:i.a.node,icon:i.a.element,info:i.a.node,nameSwitcherDropdown:i.a.node,onRenderActions:i.a.func,onRenderControls:i.a.func,title:i.a.node,trail:i.a.array,variant:i.a.string},Oj=function(e){var t;if(e.iconName)t=o.a.createElement(jn,{category:e.iconCategory,className:"slds-page-header__icon",name:e.iconName,position:e.iconPosition,size:e.iconSize,variant:e.iconVariant});else if(e.icon){var n="slds-page-header__icon";e.icon.props&&(n=l()(e.icon.props.className,n)),t=o.a.cloneElement(e.icon,{className:n})}return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-title"},o.a.createElement(dc,{body:o.a.createElement(o.a.Fragment,null,e.trail?o.a.createElement(CC,{style:{lineHeight:"1.3"},trail:e.trail}):null,o.a.createElement("div",{className:"slds-page-header__name"},o.a.createElement(LC,{content:e.title,label:e.trail?null:e.label}),e.nameSwitcherDropdown?o.a.createElement("div",{className:"slds-page-header__name-switcher"},e.nameSwitcherDropdown):null)),figure:t})),o.a.createElement(fj,{className:l()({"slds-align-middle slds-p-bottom_none":!e.onRenderControls&&!e.navRight}),contentRight:e.contentRight,onRenderActions:e.onRenderActions,type:"actions"})),o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-meta"},o.a.createElement(wC,{content:e.info,variant:e.variant})),o.a.createElement(fj,{className:l()({"slds-align-middle":!e.onRenderActions&&!e.comntentRight}),navRight:e.navRight,onRenderControls:e.onRenderControls,type:"controls"})))};Oj.displayName="PageHeaderObjectHome",Oj.propTypes=gj;var _j=Oj,xj={label:i.a.node,info:i.a.node,onRenderActions:i.a.func,onRenderControls:i.a.func,title:i.a.node,trail:i.a.array,variant:i.a.string},wj=function(e){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-title"},o.a.createElement(CC,{content:e.label,trail:e.trail}),o.a.createElement(dc,{body:o.a.createElement("div",{className:"slds-page-header__name"},o.a.createElement(LC,{content:e.title,label:e.label}))})),o.a.createElement(fj,{contentRight:e.contentRight,onRenderActions:e.onRenderActions,type:"actions"})),o.a.createElement("div",{className:"slds-page-header__row"},o.a.createElement("div",{className:"slds-page-header__col-meta"},o.a.createElement(wC,{content:e.info,variant:e.variant})),o.a.createElement(fj,{navRight:e.navRight,onRenderControls:e.onRenderControls,type:"controls"})))};wj.displayName="PageHeaderRelatedList",wj.propTypes=xj,wj.defaultProps={};var Sj=wj;function Ej(e){return(Ej="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nj(e,t){return(Nj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kj(e);if(t){var o=kj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pj(this,n)}}function Pj(e,t){return!t||"object"!==Ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kj(e){return(kj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Rj={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),details:i.a.array,label:i.a.oneOfType([i.a.string,i.a.element]),icon:i.a.element,info:i.a.oneOfType([i.a.string,i.a.element]),joined:i.a.bool,nameSwitcherDropdown:i.a.node,onRenderActions:i.a.func,onRenderControls:i.a.func,title:i.a.oneOfType([i.a.string,i.a.element]),trail:i.a.array,variant:i.a.oneOf(["base","object-home","record-home","related-list"])},Ij=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nj(e,t)}(i,e);var t,n,r,a=Tj(i);function i(){return Cj(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"componentDidMount",value:function(){gC(se,this.props,OC)}},{key:"render",value:function(){var e,t=this.props,n=t.className,r=t.variant,a=l()("slds-page-header",{"slds-page-header_record-home":"record-home"===r||"recordHome"===r,"slds-page-header_related-list":"related-list"===r||"relatedList"===r,"slds-page-header_joined":this.props.joined},n);switch(r){case"object-home":case"objectHome":e=_j;break;case"record-home":case"recordHome":e=vj;break;case"related-list":case"relatedList":e=Sj;break;default:e=mj}return o.a.createElement("div",{className:a},o.a.createElement(e,this.props))}}])&&jj(t.prototype,n),r&&jj(t,r),i}(r.Component);Ij.displayName="SLDSPageHeader",Ij.propTypes=Rj,Ij.defaultProps={variant:"base"};var Dj=Ij,Aj={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string])},Lj=function(e){return o.a.createElement("div",{className:l()("slds-page-header__control",e.className)},e.children)};Lj.displayName=le,Lj.propTypes=Aj;var Bj=Lj;function Fj(e){return(Fj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qj(e,t){return(qj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kj(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vj(e);if(t){var o=Vj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wj(this,n)}}function Wj(e,t){return!t||"object"!==Fj(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vj(e){return(Vj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qj(e,t)}(i,e);var t,n,r,a=Kj(i);function i(){return Mj(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("div",{className:l()("slds-panel","slds-grid","slds-grid_vertical","slds-nowrap",{"slds-panel_filters":"filters"===this.props.variant},this.props.className)},o.a.createElement("div",{className:"slds-form_stacked slds-grow slds-scrollable_y slds-grid slds-grid_vertical"},this.props.children))}}])&&Hj(t.prototype,n),r&&Hj(t,r),i}(o.a.Component);zj.displayName="SLDSPanel",zj.propTypes={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),variant:i.a.oneOf(["filters"])};var Uj=zj;var Gj=function(){},Yj=function(e){var t=e.addFilterLabel,n=e.onClickAdd,r=e.onClickRemoveAll,a=e.removeAllLabel;return o.a.createElement("div",{className:"slds-filters__footer slds-grid slds-shrink-none"},o.a.createElement(ar,{label:t,onClick:n,variant:"link"}),o.a.createElement(ar,{className:"slds-col_bump-left",label:a,onClick:r,variant:"link"}))};Yj.displayName="SLDSPanelFilterFooter",Yj.propTypes={addFilterLabel:i.a.node.isRequired,onClickAdd:i.a.func.isRequired,onClickRemoveAll:i.a.func.isRequired,removeAllLabel:i.a.node.isRequired};var Xj=Yj,Qj=function(e){var t=e.assistiveText,n=e.cancelLabel,r=e.heading,a=e.modified,i=e.onRequestCancel,s=e.onRequestClose,l=e.onRequestSave,c=e.saveLabel;return a?o.a.createElement("div",{className:"slds-filters__header slds-grid slds-has-divider_bottom-space slds-grid_align-spread"},o.a.createElement(ar,{label:n,onClick:i,variant:"neutral"}),o.a.createElement(ar,{label:c,onClick:l,variant:"brand"})):o.a.createElement("div",{className:"slds-filters__header slds-grid slds-has-divider_bottom-space"},o.a.createElement("h2",{className:"slds-align-middle slds-text-heading_small"},r),o.a.createElement(ar,{className:"slds-col_bump-left",assistiveText:{icon:t.closeButton},iconCategory:"utility",iconName:"forward",iconVariant:"bare",iconSize:"small",onClick:s,title:t.closeButton,variant:"icon"}))};Qj.displayName="SLDSPanelFilterHeader",Qj.propTypes={assistiveText:i.a.shape({closeButton:i.a.string}),cancelLabel:i.a.string,heading:i.a.node,modified:i.a.bool,onRequestCancel:i.a.func,onRequestClose:i.a.func,onRequestSave:i.a.func,saveLabel:i.a.string};var Jj=Qj;function Zj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zj(Object(n),!0).forEach((function(t){eN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tN={addFilterLabel:"Add Filter",cancelLabel:"Cancel",assistiveText:{closeButton:"Close Filter Panel"},heading:"Filter",saveLabel:"Save",removeAllLabel:"Remove All"},nN=function(e){Gj(ie,e);var t=e.children,n=e.errorLabel,r=e.footer,a=e.header,i=e.variant,s=e.addFilterLabel,l=e.onClickAdd,c=e.onClickRemoveAll,u=e.removeAllLabel,p=e.cancelLabel,f=e.heading,d=e.modified,h=e.onRequestCancel,m=e.onRequestClose,b=e.onRequestSave,y=e.saveLabel,v=$j($j({},tN.assistiveText),e.assistiveText);return e.assistiveTextCloseFilterPanel&&(v.closeButton=e.assistiveTextCloseFilterPanel),o.a.createElement("div",{className:"slds-filters"},"panel"===i?o.a.createElement(Jj,{assistiveText:v,cancelLabel:p,heading:f,modified:d,onRequestCancel:h,onRequestClose:m,onRequestSave:b,saveLabel:y}):a||null,o.a.createElement("div",{className:"slds-filters__body"},n?o.a.createElement("div",{className:"slds-text-color_error slds-m-bottom_x-small",role:"alert"},n):null,t),"panel"===i?o.a.createElement(Xj,{addFilterLabel:s,onClickAdd:l,onClickRemoveAll:c,removeAllLabel:u}):r||null)};nN.displayName=ie,nN.propTypes={assistiveText:i.a.shape({closeButton:i.a.string}),addFilterLabel:i.a.node,cancelLabel:i.a.string,children:i.a.node,errorLabel:i.a.string,footer:i.a.node,header:i.a.node,heading:i.a.oneOfType([i.a.node,i.a.string]),modified:i.a.bool,onClickAdd:i.a.func,onClickRemoveAll:i.a.func,onRequestCancel:i.a.func,onRequestClose:i.a.func,onRequestSave:i.a.func,removeAllLabel:i.a.node,saveLabel:i.a.string,variant:i.a.oneOf(["panel"])},nN.defaultProps=tN;var rN=nN;function oN(e){return(oN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function aN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function iN(e,t){return(iN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cN(e);if(t){var o=cN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lN(this,n)}}function lN(e,t){return!t||"object"!==oN(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cN(e){return(cN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&iN(e,t)}(s,e);var t,n,r,a=sN(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=s,r=[{key:"propTypes",value:function(){return{children:i.a.node}}}],(n=[{key:"render",value:function(){var e=this,t=o.a.Children.map(this.props.children,(function(t,n){var r,a=t&&t.props.id?t.props.id:"".concat(e.generatedId,"-").concat(n);return t&&t.props.errorLabel&&(r=o.a.cloneElement(t,{isError:!0})),t?o.a.createElement("li",{className:"slds-item slds-hint-parent"},r||t,t.props.errorLabel?o.a.createElement("p",{id:"".concat(a,"-error"),className:"slds-text-color_error slds-m-top_xx-small"},t.props.errorLabel):null):null}));return o.a.createElement("ol",{className:"slds-list_vertical slds-list_vertical-space"},t)}}])&&aN(t.prototype,n),r&&aN(t,r),s}(o.a.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(uN,"displayName","SLDSFilterList");var pN=uN,fN=function(e){var t=e.heading,n=e.isLocked,r=e.lockedHeading;return o.a.createElement("h3",{className:l()("slds-text-body_small","slds-m-vertical_x-small",{"slds-grid":n})},n?r:t,n?o.a.createElement(jn,{className:"slds-m-left_x-small",assistiveText:{label:"locked"},category:"utility",name:"lock",size:"x-small"}):null)};fN.displayName="SLDSPanelFilterListHeading",fN.propTypes={heading:i.a.oneOfType([i.a.node,i.a.string]),isLocked:i.a.bool,lockedHeading:i.a.string},fN.defaultProps={heading:"Matching all these filters",lockedHeading:"Locked filters"};var dN=fN;function hN(e){return(hN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bN(e,t){return(bN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ON(e);if(t){var o=ON(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vN(this,n)}}function vN(e,t){return!t||"object"!==hN(t)&&"function"!=typeof t?gN(e):t}function gN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ON(e){return(ON=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xN={assistiveText:i.a.shape({listboxLabel:i.a.string,removePill:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,labels:i.a.shape({removePillTitle:i.a.string}),options:i.a.arrayOf(i.a.shape({avatar:i.a.oneOfType([i.a.node,i.a.shape({imgSrc:i.a.string,title:i.a.string,variant:i.a.string})]),bare:i.a.bool,error:i.a.bool,icon:i.a.oneOfType([i.a.node,i.a.shape({category:i.a.string,name:i.a.string})]),id:i.a.string,label:i.a.oneOfType([i.a.node,i.a.string]),title:i.a.string})),onClickPill:i.a.func,onRequestRemovePill:i.a.func,style:i.a.object,variant:i.a.oneOf(["base","bare"])},wN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bN(e,t)}(i,e);var t,n,r,a=yN(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),_N(gN(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),_N(gN(t),"getNewActiveOptionIndex",(function(e){var t=e.activeOptionIndex,n=t+e.offset;return e.options.length>n&&n>=0?n:t})),_N(gN(t),"handleBlurPill",(function(){t.preserveFocus?t.preserveFocus=!1:t.setState({listboxHasFocus:!1})})),_N(gN(t),"handleClickPill",(function(e,n){t.props.onClickPill&&t.props.onClickPill(e,{index:n.index,option:n.option})})),_N(gN(t),"handlePillFocus",(function(e,n){t.state.listboxHasFocus||t.setState({activeSelectedOption:n.option,activeSelectedOptionIndex:n.index,listboxHasFocus:!0})})),_N(gN(t),"handleNavigatePillContainer",(function(e,n){var r=n.direction,o={next:1,previous:-1};t.setState((function(e){var n,a=t.props.options,i=e.activeSelectedOptionIndex+1===a.length&&"next"===r,s=0===e.activeSelectedOptionIndex&&"previous"===r;if(i)n={activeSelectedOption:a[0],activeSelectedOptionIndex:0,listboxHasFocus:!0};else if(s)n={activeSelectedOption:a[a.length-1],activeSelectedOptionIndex:a.length-1,listboxHasFocus:!0};else{var l=t.getNewActiveOptionIndex({activeOptionIndex:e.activeSelectedOptionIndex,offset:o[r],options:a});n={activeSelectedOption:a[l],activeSelectedOptionIndex:l,listboxHasFocus:!0}}return t.preserveFocus=!0,n}))})),_N(gN(t),"handleRequestFocusPillContainer",(function(e,n){var r=n.ref;r&&(t.activeSelectedOptionRef=r,t.activeSelectedOptionRef.focus())})),_N(gN(t),"handleRequestRemove",(function(e,n){t.props.onRequestRemovePill&&(t.preserveFocus=!0,t.props.onRequestRemovePill(e,{index:n.index,option:n.option}))})),_N(gN(t),"resetActiveSelectedOption",(function(){var e=t.props.options,n=t.state.activeSelectedOptionIndex;e[n]||(n=e.length>0&&n>=e.length?e.length-1:0),t.setState({activeSelectedOption:e[n]||void 0,activeSelectedOptionIndex:n,listboxHasFocus:!!e[n]})})),t.state={activeSelectedOption:t.props.options&&t.props.options[0]||void 0,activeSelectedOptionIndex:0,listboxHasFocus:!1},t.activeSelectedOptionRef=null,t.generatedId=u.a.generate(),t.preserveFocus=!1,t}return t=i,(n=[{key:"componentDidUpdate",value:function(){(this.props.options&&this.props.options.length>0&&!this.props.options[this.state.activeSelectedOptionIndex]||this.preserveFocus)&&(this.resetActiveSelectedOption(),this.preserveFocus=!1)}},{key:"render",value:function(){return this.props.options.length>0?o.a.createElement(jm,{activeOption:this.state.activeSelectedOption,activeOptionIndex:this.state.activeSelectedOptionIndex,assistiveText:{removePill:this.props.assistiveText.removePill,selectedListboxLabel:this.props.assistiveText.listboxLabel},className:this.props.className,events:{onBlurPill:this.handleBlurPill,onClickPill:this.handleClickPill,onPillFocus:this.handlePillFocus,onRequestFocus:this.handleRequestFocusPillContainer,onRequestFocusOnNextPill:this.handleNavigatePillContainer,onRequestFocusOnPreviousPill:this.handleNavigatePillContainer,onRequestRemove:this.handleRequestRemove},id:"".concat(this.getId(),"-listbox-of-pill-options"),isBare:"bare"===this.props.variant,isPillContainer:!0,labels:this.props.labels,listboxHasFocus:this.state.listboxHasFocus,renderAtSelectionLength:0,selection:this.props.options,style:this.props.style}):null}}])&&mN(t.prototype,n),r&&mN(t,r),i}(o.a.Component);wN.displayName="SLDSPillContainer",wN.defaultProps={assistiveText:{listboxLabel:"Selected Options:",removePill:"Press delete or backspace to remove"},labels:{removePillTitle:"Remove"}},wN.propTypes=xN;var SN=wN;function EN(e){return(EN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function CN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jN(e,t){return(jN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function NN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PN(e);if(t){var o=PN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return TN(this,n)}}function TN(e,t){return!t||"object"!==EN(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function PN(e){return(PN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kN={assistiveText:i.a.shape({progress:i.a.string}),id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),labels:i.a.shape({label:i.a.oneOfType([i.a.string,i.a.node]),complete:i.a.oneOfType([i.a.string,i.a.node])}),radius:i.a.oneOf(["circular"]),color:i.a.oneOf(["success"]),thickness:i.a.oneOf(["x-small","small","medium","large"]),value:i.a.number.isRequired,orientation:i.a.oneOf(["horizontal","vertical"]),style:i.a.object},RN={assistiveText:{progress:"Progress"},labels:{complete:"Complete"},orientation:"horizontal",style:{height:"100%"}},IN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jN(e,t)}(i,e);var t,n,r,a=NN(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getDescription",value:function(e){var t=e.labels;return t.label?o.a.createElement("div",{className:"slds-grid slds-grid_align-spread slds-p-bottom_x-small",id:"progress-bar-label-".concat(this.getId())},o.a.createElement("span",null,t.label),o.a.createElement("span",null,o.a.createElement("strong",null,this.props.value,"% ",t.complete))):""}},{key:"render",value:function(){var e=ur()({},RN.labels,this.props.labels),t=ur()({},RN.assistiveText,this.props.assistiveText),n=ur()({},RN.style,this.props.style);return o.a.createElement("div",{id:this.getId(),style:n},"horizontal"===this.props.orientation&&this.getDescription({labels:e}),o.a.createElement("div",{"aria-labelledby":"horizontal"===this.props.orientation&&e.label?"progress-bar-label-".concat(this.getId()):void 0,"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.props.value,"aria-valuetext":"".concat(t.progress,": ").concat(this.props.value,"%"),role:"progressbar",className:l()("slds-progress-bar",this.props.radius?"slds-progress-bar_".concat(this.props.radius):null,this.props.thickness?"slds-progress-bar_".concat(this.props.thickness):null,this.props.className,{"slds-progress-bar_vertical":"vertical"===this.props.orientation})},o.a.createElement("span",{className:l()("slds-progress-bar__value",this.props.color?"slds-progress-bar__value_".concat(this.props.color):null),style:"vertical"===this.props.orientation?{height:"".concat(this.props.value,"%")}:{width:"".concat(this.props.value,"%")}},o.a.createElement("span",{className:"slds-assistive-text"},"".concat(t.progress,": "),"".concat(this.props.value,"%")))))}}])&&CN(t.prototype,n),r&&CN(t,r),i}(o.a.Component);IN.displayName="SLDSProgressBar",IN.propTypes=kN,IN.defaultProps=RN;var DN=IN;function AN(e){return(AN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function LN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FN(e,t){return(FN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function MN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qN(e);if(t){var o=qN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HN(this,n)}}function HN(e,t){return!t||"object"!==AN(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qN(e){return(qN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var KN={assistiveText:i.a.shape({completedStep:i.a.string,disabledStep:i.a.string,percentage:i.a.string,step:i.a.string}),id:i.a.oneOfType([i.a.number,i.a.string]),index:i.a.number,isCompleted:i.a.bool,isDisabled:i.a.bool,isError:i.a.bool,isSelected:i.a.bool,label:i.a.node,onClick:i.a.func,onFocus:i.a.func,step:i.a.object,tooltipIsOpen:i.a.bool,tooltipPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"])},WN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FN(e,t)}(i,e);var t,n,r,a=MN(i);function i(){return LN(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"buttonIcon",value:function(e,t,n){var r={isSelected:n.isSelected,isError:n.isError,isCompleted:n.isCompleted,isDisabled:n.isDisabled,step:n.step},a=e?o.a.createElement(Ot,{category:"utility",name:this.props.isError?"error":"success"}):null;return n.isDisabled?o.a.createElement("a",{className:l()("slds-button",{"slds-button_icon":e},"slds-progress__marker",{"slds-progress__marker_icon":e},"slds-is-disabled"),"aria-disabled":!0,"aria-describedby":"progress-indicator-tooltip-".concat(this.props.step.id||this.props.index),style:{cursor:"not-allowed"},tabIndex:0,role:"button"},a,o.a.createElement("span",{className:"slds-assistive-text"},this.props.step.assistiveText||o.a.createElement(o.a.Fragment,null,"".concat(n.assistiveText.step," ").concat(n.index+1,": "),n.step.label,"- ".concat(t)))):o.a.createElement("button",{className:l()("slds-button",{"slds-button_icon":e},"slds-progress__marker",{"slds-progress__marker_icon":e}),onClick:function(e){return n.onClick(e,r)},onFocus:function(e){return n.onFocus(e,r)},"aria-describedby":"progress-indicator-tooltip-".concat(this.props.step.id||this.props.index),"aria-current":this.props.isSelected?"step":null,type:"button"},a,o.a.createElement("span",{className:"slds-assistive-text"},this.props.step.assistiveText||o.a.createElement(o.a.Fragment,null,"".concat(n.assistiveText.step," ").concat(n.index+1,": "),n.step.label,t?" - ".concat(t):"")))}},{key:"render",value:function(){var e=this.props.isCompleted||this.props.isError,t="";this.props.isError?t=this.props.assistiveText.errorStep:this.props.isCompleted?t=this.props.assistiveText.completedStep:this.props.isDisabled&&(t=this.props.assistiveText.disabledStep);var n={align:"top",id:"progress-indicator-tooltip-".concat(this.props.step.id||this.props.index),content:this.props.step.label,theme:"info",position:this.props.tooltipPosition,triggerStyle:{display:e?"":"flex"}};return this.props.tooltipIsOpen&&(n.isOpen=!0),o.a.createElement("li",{className:l()("slds-progress__item",{"slds-is-completed":this.props.isCompleted,"slds-is-active":this.props.isSelected&&!this.props.isError,"slds-has-error":this.props.isError})},o.a.createElement(Kn,n,this.buttonIcon(e,t,this.props)))}}])&&BN(t.prototype,n),r&&BN(t,r),i}(o.a.Component);WN.propTypes=KN,WN.displayName="SLDSProgressIndicatorStep";var VN=WN;function zN(e){return(zN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function UN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function YN(e,t){return(YN=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function XN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JN(e);if(t){var o=JN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return QN(this,n)}}function QN(e,t){return!t||"object"!==zN(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function JN(e){return(JN=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ZN={assistiveText:i.a.shape({percentage:i.a.string}),value:i.a.string.isRequired},$N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YN(e,t)}(i,e);var t,n,r,a=XN(i);function i(){return UN(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("div",{className:l()("slds-progress-bar slds-progress-bar_x-small",{"slds-progress-bar_vertical":"vertical"===this.props.orientation}),"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":this.props.value,role:"progressbar"},o.a.createElement("span",{className:"slds-progress-bar__value",style:"vertical"===this.props.orientation?{height:"".concat(this.props.value,"%")}:{width:"".concat(this.props.value,"%")}},o.a.createElement("span",{className:"slds-assistive-text"},this.props.assistiveText.percentage||"Progress: ".concat(this.props.value,"%"))))}}])&&GN(t.prototype,n),r&&GN(t,r),i}(o.a.Component);$N.displayName="ProgressBar",$N.propTypes=ZN;var eT=$N;function tT(e){return(tT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oT(e,t){return(oT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function aT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sT(e);if(t){var o=sT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return iT(this,n)}}function iT(e,t){return!t||"object"!==tT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function sT(e){return(sT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lT={assistiveText:i.a.shape({percentage:i.a.string}),children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string.isRequired,orientation:i.a.oneOf(["horizontal","vertical"]),value:i.a.string.isRequired,variant:i.a.oneOf(["base","modal","setup-assistant"])},cT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oT(e,t)}(i,e);var t,n,r,a=aT(i);function i(){return nT(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"getId",value:function(){return this.props.id}},{key:"render",value:function(){return o.a.createElement("div",{id:this.getId(),className:l()("slds-progress",{"slds-progress_shade":"modal"===this.props.variant},{"slds-progress_vertical":"vertical"===this.props.orientation},{"slds-progress_success":"setup-assistant"===this.props.variant},this.props.className)},o.a.createElement("ol",{className:l()("slds-progress__list",{"slds-progress__list-bordered":"setup-assistant"===this.props.variant})},this.props.children),"vertical"!==this.props.orientation&&o.a.createElement(eT,{value:this.props.value,orientation:this.props.orientation,assistiveText:this.props.assistiveText}))}}])&&rT(t.prototype,n),r&&rT(t,r),i}(o.a.Component);cT.propTypes=lT,cT.displayName="SLDSProgressIndicatorProgress";var uT=cT;function pT(e){return(pT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hT(e,t){return(hT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vT(e);if(t){var o=vT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bT(this,n)}}function bT(e,t){return!t||"object"!==pT(t)&&"function"!=typeof t?yT(e):t}function yT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vT(e){return(vT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OT={index:i.a.number,isCompleted:i.a.bool,isError:i.a.bool,isSelected:i.a.bool,onClick:i.a.func,step:i.a.object,variant:i.a.string},_T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hT(e,t)}(i,e);var t,n,r,a=mT(i);function i(){var e;fT(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return gT(yT(e=a.call.apply(a,[this].concat(n))),"stepIcon",(function(t,n,r){var a={isSelected:e.props.isSelected,isError:e.props.isError,isCompleted:e.props.isCompleted,step:e.props.step},i=t?o.a.createElement(jn,{category:"utility",size:"x-small",name:e.props.isError?"error":"success"}):null;return e.props.onClick?o.a.createElement("button",{className:l()("slds-button slds-progress__marker",{"slds-progress__marker_icon":t,"slds-progress__marker_icon-success":"setup-assistant"===e.props.variant&&t&&!e.props.isError}),type:"button",onClick:function(t){return e.props.onClick(t,a)}},i,o.a.createElement("span",{className:"slds-assistive-text"},e.props.step.assistiveText||o.a.createElement(o.a.Fragment,null,"".concat(e.props.assistiveText.step," ").concat(e.props.index+1,": "),e.props.step.label,n?" - ".concat(n):""))):o.a.createElement("span",{className:l()("slds-progress__marker",{"slds-progress__marker_icon":t,"slds-progress__marker_icon-success":"setup-assistant"===e.props.variant&&t&&!e.props.isError})},i,o.a.createElement("span",{className:"slds-assistive-text"},e.props.step.assistiveText||o.a.createElement(o.a.Fragment,null,"".concat(r.assistiveText.step," ").concat(r.index+1,": "),r.step.label,n?" - ".concat(n):"")))})),gT(yT(e),"renderStepContent",(function(){return e.props.step.onRenderSetupAssistantAction||e.props.step.setupAssistantEstimatedTime?o.a.createElement("div",{id:"progress-indicator-vertical-label-".concat(e.props.step.id||e.props.index),className:"slds-progress__item_content slds-grid slds-grid_align-spread"},o.a.createElement("div",{className:"slds-size_3-of-4"},e.props.step.label),o.a.createElement("div",{className:"slds-grid slds-grid_align-end slds-size_1-of-4"},o.a.createElement("div",{className:"slds-media__figure slds-media__figure_reverse"},e.props.step.onRenderSetupAssistantAction,e.props.step.setupAssistantEstimatedTime&&o.a.createElement("p",{className:"slds-text-align_right slds-text-color_weak slds-p-top_medium"},e.props.step.setupAssistantEstimatedTime)))):o.a.createElement("div",{id:"progress-indicator-vertical-label-".concat(e.props.step.id||e.props.index),className:"slds-progress__item_content slds-grid slds-grid_align-spread"},e.props.step.label)})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props.isCompleted||this.props.isError,t="";return this.props.isError?t=this.props.assistiveText.errorStep:this.props.isCompleted?t=this.props.assistiveText.completedStep:this.props.isDisabled&&(t=this.props.assistiveText.disabledStep),o.a.createElement("li",{className:l()("slds-progress__item",{"slds-is-completed":this.props.isCompleted,"slds-is-active":this.props.isSelected&&!this.props.isError,"slds-has-error":this.props.isError})},this.stepIcon(e,t,this.props),this.renderStepContent())}}])&&dT(t.prototype,n),r&&dT(t,r),i}(o.a.Component);_T.propTypes=OT,_T.displayName="SLDSProgressIndicatorStepVertical";var xT=_T;function wT(e){return(wT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ET(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(n),!0).forEach((function(t){CT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NT(e,t){return(NT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kT(e);if(t){var o=kT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PT(this,n)}}function PT(e,t){return!t||"object"!==wT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kT(e){return(kT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var RT={assistiveText:i.a.shape({completedStep:i.a.string,disabledStep:i.a.string,percentage:i.a.string,step:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),completedSteps:i.a.array,disabledSteps:i.a.array,errorSteps:i.a.array,id:i.a.string,orientation:i.a.oneOf(["horizontal","vertical"]),onStepClick:i.a.func,onStepFocus:i.a.func,selectedStep:i.a.object.isRequired,steps:i.a.array.isRequired,tooltipIsOpenSteps:i.a.array,variant:i.a.oneOf(["base","modal","setup-assistant"]),tooltipPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"])},IT=[{id:0,label:"tooltip label #1"},{id:1,label:"tooltip label #2"},{id:2,label:"tooltip label #3"},{id:3,label:"tooltip label #4"},{id:4,label:"tooltip label #5"}],DT={assistiveText:{completedStep:"Completed",disabledStep:"Disabled",errorStep:"Error",step:"Step"},errorSteps:[],completedSteps:[],disabledSteps:[],orientation:"horizontal",selectedStep:IT[0],variant:"base",onStepClick:function(){},onStepFocus:function(){}};function AT(e,t){if(!e||!t)return!1;var n=Array.isArray(t)?t:[t];return!!Fh()(n,(function(t){return t===e||(void 0!==t.id&&void 0!==e.id?t.id===e.id:JSON.stringify(t)===JSON.stringify(e))}))}var LT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&NT(e,t)}(i,e);var t,n,r,a=TT(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getSteps",value:function(){return e=this.props.steps,t=void 0!==e,n=Array.isArray(e)&&e.every((function(e){return void 0!==e.label})),t&&n?this.props.steps:IT;var e,t,n}},{key:"render",value:function(){for(var e=this,t=ET(ET({},DT.assistiveText),this.props.assistiveText),n=this.props,r=n.selectedStep,a=n.disabledSteps,i=n.errorSteps,s=n.completedSteps,l=this.getSteps(),c=0,u=0;u<l.length;u+=1)void 0===l[u].id&&(l[u].id=u),AT(l[u],this.props.selectedStep)&&(c=u);var p="setup-assistant"===this.props.variant?"vertical":this.props.orientation,f=this.props.tooltipPosition||("modal"===this.props.variant?"absolute":"overflowBoundaryElement"),d="vertical"===p?xT:VN;return o.a.createElement(uT,{assistiveText:t,id:this.getId(),orientation:p,value:0===c?"0":"".concat(c/(l.length-1)*100),variant:this.props.variant,className:this.props.className},l.map((function(n,l){return o.a.createElement(d,{assistiveText:t,key:"".concat(e.getId(),"-").concat(n.id),id:e.getId(),index:l,isSelected:AT(n,r),isDisabled:AT(n,a),isError:AT(n,i),isCompleted:AT(n,s),onClick:e.props.onStepClick,onFocus:e.props.onStepFocus,step:n,tooltipIsOpen:AT(n,e.props.tooltipIsOpenSteps),tooltipPosition:f,variant:e.props.variant})})))}}])&&jT(t.prototype,n),r&&jT(t,r),i}(o.a.Component);LT.displayName="SLDSProgressIndicator",LT.propTypes=RT,LT.defaultProps=DT;var BT=LT,FT={id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),fillPercentDecimal:i.a.number,flowDirection:i.a.oneOf(["drain","fill"]),size:i.a.oneOf(["medium","large"])},MT=function(e){var t,n,r,a,i={height:"large"===e.size?"2rem":"1.5rem"};return"fill"===e.flowDirection&&(i.transform="scaleX(1) rotate(-90deg)"),o.a.createElement("div",{id:e.id,className:l()("slds-progress-ring",e.className)},o.a.createElement("div",{"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":100*e.fillPercentDecimal,className:"slds-progress-ring__progress",role:"progressbar",style:i},o.a.createElement("svg",{viewBox:"-1 -1 2 2"},o.a.createElement("path",{className:"slds-progress-ring__path",d:(a=e.fillPercentDecimal,t=a>.5?1:0,n=Math.cos(2*Math.PI*a),r=Math.sin(2*Math.PI*a),"M 1 0 A 1 1 0 ".concat(t," 1 ").concat(n," ").concat(r," L 0 0"))}))),o.a.createElement("div",{className:"slds-progress-ring__content"},e.children))};MT.displayName="SLDSProgressRingShape",MT.propTypes=FT,MT.defaultProps={fillPercentDecimal:0};var HT,qT=MT;function KT(e){return(KT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zT(e,t){return(zT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function UT(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=YT(e);if(t){var o=YT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return GT(this,n)}}function GT(e,t){return!t||"object"!==KT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function YT(e){return(YT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function XT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QT=Object.freeze({ACTIVE:"active",WARNING:"warning",EXPIRED:"expired",COMPLETE:"complete"}),JT=(XT(HT={},QT.ACTIVE,"slds-progress-ring_active-step"),XT(HT,QT.WARNING,"slds-progress-ring_warning"),XT(HT,QT.EXPIRED,"slds-progress-ring_expired"),XT(HT,QT.COMPLETE,"slds-progress-ring_complete"),HT),ZT={id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),theme:i.a.oneOf(["active","warning","expired","complete"]),icon:i.a.node,hasIcon:i.a.bool,value:i.a.number.isRequired,flowDirection:i.a.oneOf(["drain","fill"]),size:i.a.oneOf(["medium","large"])},$T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zT(e,t)}(i,e);var t,n,r,a=UT(i);function i(){return WT(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"icon",value:function(){var e="";return this.props.hasIcon&&(this.props.icon?e=this.props.icon:this.props.theme===QT.WARNING?e=o.a.createElement(jn,{category:"utility",name:"warning",title:"Warning"}):this.props.theme===QT.EXPIRED?e=o.a.createElement(jn,{category:"utility",name:"error",title:"Expired"}):this.props.theme===QT.COMPLETE&&(e=o.a.createElement(jn,{category:"utility",name:"check",title:"Complete"}))),e}},{key:"percentDecimal",value:function(){return this.props.value/100}},{key:"themeClass",value:function(){return JT[this.props.theme]||""}},{key:"render",value:function(){return o.a.createElement(qT,{id:this.props.id,size:this.props.size,className:l()(this.props.className,this.themeClass(),{"slds-progress-ring_large":"large"===this.props.size}),fillPercentDecimal:this.percentDecimal(),flowDirection:this.props.flowDirection},this.icon())}}])&&VT(t.prototype,n),r&&VT(t,r),i}(o.a.Component);$T.displayName="SLDSProgressRing",$T.propTypes=ZT,$T.defaultProps={flowDirection:"drain",size:"medium"};var eP=$T,tP=n(55);var nP=function(){};function rP(e){return(rP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function aP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oP(Object(n),!0).forEach((function(t){iP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lP(e,t){return(lP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pP(e);if(t){var o=pP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uP(this,n)}}function uP(e,t){return!t||"object"!==rP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pP(e){return(pP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fP={assistiveText:i.a.shape({icon:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),icon:i.a.node,theme:i.a.oneOf(["dark","light"])},dP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lP(e,t)}(i,e);var t,n,r,a=cP(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=a.call(this,e),nP(de,e,tP),t}return t=i,(n=[{key:"render",value:function(){var e;if(this.props.icon){var t={};this.props.assistiveText&&this.props.assistiveText.icon&&(t.label=this.props.assistiveText.icon),this.props.icon.props.assistiveText&&(t=aP(aP({},t),this.props.icon.props.assistiveText)),e=o.a.cloneElement(this.props.icon,aP(aP({},this.props.icon.props),{},{assistiveText:t}))}else e=o.a.createElement(jn,{assistiveText:{label:this.props.assistiveText&&this.props.assistiveText.icon||"Info"},category:"utility",name:this.props.iconName||"info",colorVariant:"dark"===this.props.theme?"base":void 0,size:"small"});return o.a.createElement("div",{className:l()("slds-scoped-notification","slds-media","slds-media_center",{"slds-scoped-notification_light":"light"===this.props.theme,"slds-scoped-notification_dark":"dark"===this.props.theme},this.props.className),role:"status"},o.a.createElement("div",{className:"slds-media__figure"},e),o.a.createElement("div",{className:"slds-media__body"},this.props.children))}}])&&sP(t.prototype,n),r&&sP(t,r),i}(o.a.Component);dP.displayName=de,dP.propTypes=fP,dP.defaultProps={};var hP=dP;var mP=function(){},bP=n(17);function yP(e){return(yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _P(e,t){return(_P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SP(e);if(t){var o=SP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wP(this,n)}}function wP(e,t){return!t||"object"!==yP(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function SP(e){return(SP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var EP={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isCard:i.a.bool,onStepToggleIsOpen:i.a.func,progressBar:i.a.node},CP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_P(e,t)}(i,e);var t,n,r,a=xP(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"componentDidMount",value:function(){mP(pe,this.props,bP)}},{key:"componentDidUpdate",value:function(){mP(pe,this.props,bP)}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=this,t=o.a.createElement("ol",{id:this.getId(),className:l()("slds-setup-assistant",this.props.className)},o.a.Children.map(this.props.children,(function(t,n){return t.type.displayName!==fe?null:o.a.cloneElement(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vP(Object(n),!0).forEach((function(t){gP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({index:n,onToggleIsOpen:e.props.onStepToggleIsOpen,stepNumber:n+1},t.props))})));return this.props.isCard?o.a.createElement("section",{className:"slds-card"},o.a.createElement("header",{className:"slds-theme_shade slds-p-around_medium slds-m-bottom_small"},this.props.progressBar),t):o.a.createElement(o.a.Fragment,null,t)}}])&&OP(t.prototype,n),r&&OP(t,r),i}(o.a.Component);CP.displayName=pe,CP.propTypes=EP,CP.defaultProps={isCard:!1};var jP=CP;function NP(e){return(NP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TP(Object(n),!0).forEach((function(t){BP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function RP(e,t){return(RP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function IP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=LP(e);if(t){var o=LP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return DP(this,n)}}function DP(e,t){return!t||"object"!==NP(t)&&"function"!=typeof t?AP(e):t}function AP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LP(e){return(LP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function BP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FP={assistiveText:i.a.shape({expandStep:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),description:i.a.oneOfType([i.a.string,i.a.node]),estimatedTime:i.a.oneOfType([i.a.string,i.a.node]),heading:i.a.oneOfType([i.a.string,i.a.node]),id:i.a.string,index:i.a.number,isExpandable:i.a.bool,isOpen:i.a.bool,onRenderAction:i.a.func,onRenderContent:i.a.func,onRenderFigure:i.a.func,onToggleIsOpen:i.a.func,progress:i.a.number,stepNumber:i.a.number},MP={assistiveText:{expandStep:"Expand Step"}},HP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RP(e,t)}(i,e);var t,n,r,a=IP(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),BP(AP(t=a.call(this,e)),"toggleIsOpen",(function(e){t.props.onToggleIsOpen?t.props.onToggleIsOpen(e,{index:t.props.index,isOpen:t.getIsOpen(),step:t.props}):t.setState({isOpen:!t.getIsOpen()})})),t.generatedId=u.a.generate(),t.state={isOpen:e.isOpen||!1},mP(fe,t.props,bP),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getIsOpen",value:function(){return void 0!==this.props.isOpen?this.props.isOpen:this.state.isOpen}},{key:"renderMediaContent",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-setup-assistant__step-summary-content slds-media__body"},o.a.createElement("h3",{className:"slds-setup-assistant__step-summary-title slds-text-heading_small"},this.props.isExpandable?o.a.createElement(ar,{"aria-controls":"".concat(this.getId(),"-detail-content"),className:"slds-button_reset",label:this.props.heading,onClick:this.toggleIsOpen,variant:"base"}):this.props.heading),o.a.createElement("p",null,this.props.description)),o.a.createElement("div",{className:"slds-media__figure slds-media__figure_reverse"},this.props.onRenderAction?this.props.onRenderAction():null,this.props.estimatedTime?o.a.createElement("p",{className:l()("slds-text-align_right","slds-text-color_weak",{"slds-p-top_medium":void 0!==this.props.onRenderAction})},this.props.estimatedTime):null))}},{key:"renderSummary",value:function(){var e,t;if(this.props.progress>0&&this.props.progress<100?t="active":100===this.props.progress&&(t="complete"),this.props.onRenderFigure){if((e=this.props.onRenderFigure())&&e.type&&e.type.displayName===$){var n={position:"relative",top:this.props.isExpandable?"5px":"-3px"};e.props.containerStyle&&(n=PP(PP({},n),e.props.containerStyle)),e=o.a.cloneElement(e,PP(PP({},e.props),{},{containerStyle:n,size:"small"})),e=o.a.createElement("div",{className:"slds-media__figure"},e)}}else void 0!==this.props.progress&&(e=o.a.createElement("div",{className:"slds-media__figure"},o.a.createElement(eP,{hasIcon:!0,icon:100===this.props.progress?null:this.props.stepNumber,flowDirection:"fill",size:"large",theme:t,value:this.props.progress})));return o.a.createElement("div",{className:"slds-setup-assistant__step-summary"},o.a.createElement("div",{className:"slds-media"},e,this.props.isExpandable||void 0!==this.props.progress?o.a.createElement("div",{className:"slds-media__body slds-m-top_x-small"},o.a.createElement("div",{className:"slds-media"},this.renderMediaContent())):this.renderMediaContent()))}},{key:"render",value:function(){var e=ur()({},MP.assistiveText,this.props.assistiveText);return o.a.createElement("li",{className:l()("slds-setup-assistant__item",this.props.className),id:this.getId()},o.a.createElement("article",{className:"slds-setup-assistant__step"},this.props.isExpandable?o.a.createElement("div",{className:l()("slds-summary-detail",{"slds-is-open":this.getIsOpen()})},o.a.createElement(ar,{assistiveText:{icon:e.expandStep},"aria-controls":"".concat(this.getId(),"-detail-content"),className:"slds-m-right_x-small slds-m-top_x-small",iconCategory:"utility",iconClassName:"slds-summary-detail__action-icon",iconName:"switch",onClick:this.toggleIsOpen,variant:"icon"}),o.a.createElement("div",{className:"slds-container_fluid"},o.a.createElement("div",{className:"slds-summary-detail__title"},this.renderSummary()),o.a.createElement("div",{className:"slds-summary-detail__content",id:"".concat(this.getId(),"-detail-content")},o.a.createElement("div",{className:"slds-setup-assistant__step-detail"},this.props.onRenderContent?this.props.onRenderContent():null)))):this.renderSummary()))}}])&&kP(t.prototype,n),r&&kP(t,r),i}(o.a.Component);HP.displayName=fe,HP.propTypes=FP,HP.defaultProps=MP;var qP=HP;function KP(e){return(KP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function WP(){return(WP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function VP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VP(Object(n),!0).forEach((function(t){ZP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function GP(e,t){return(GP=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function YP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JP(e);if(t){var o=JP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return XP(this,n)}}function XP(e,t){return!t||"object"!==KP(t)&&"function"!=typeof t?QP(e):t}function QP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JP(e){return(JP=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ZP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $P={"aria-describedby":i.a.string,assistiveText:i.a.shape({disabled:i.a.string,label:i.a.string}),classNameContainer:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),defaultValue:i.a.number,disabled:i.a.bool,errorText:i.a.string,id:i.a.string,label:i.a.string,max:i.a.number,min:i.a.number,name:i.a.string,onChange:i.a.func,onInput:i.a.func,size:i.a.oneOf(["x-small","small","medium","large"]),step:i.a.number,value:i.a.number,vertical:i.a.bool},ek={assistiveText:{disabled:"Disabled"},min:0,max:100,step:1},tk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&GP(e,t)}(i,e);var t,n,r,a=YP(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),ZP(QP(t=a.call(this,e)),"handleChange",(function(e){Ar()(t.props.onChange)&&t.props.onChange(e,{value:Number(e.target.value)})})),ZP(QP(t),"handleInput",(function(e){Ar()(t.props.onInput)&&t.props.onInput(e,{value:Number(e.target.value)})})),t.generatedId=u.a.generate(),t.props.errorText&&(t.generatedErrorId=u.a.generate()),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getErrorId",value:function(){return this.props["aria-describedby"]||this.generatedErrorId}},{key:"render",value:function(){var e=Wn(this.props);e["aria-describedby"]=this.getErrorId();var t=zP(zP({},ek.assistiveText),this.props.assistiveText),n=this.props.label||this.props.assistiveText&&this.props.assistiveText.label;return o.a.createElement("div",{className:l()("slds-form-element",{"slds-has-error":this.props.errorText},this.props.classNameContainer)},o.a.createElement("label",{className:l()("slds-form-element__label",{"slds-assistive-text":this.props.assistiveText&&!this.props.label}),htmlFor:this.getId()},o.a.createElement("span",{className:"slds-slider-label"},n?o.a.createElement("span",{className:"slds-slider-label__label"},n):null,o.a.createElement("span",{className:"slds-slider-label__range"},this.props.min," - ",this.props.max),this.props.disabled?o.a.createElement("span",{className:"slds-assistive-text"}," ",t.disabled):null)),o.a.createElement("div",{className:"slds-form-element__control"},o.a.createElement("div",{className:l()("slds-slider",{"slds-slider_vertical":this.props.vertical,"slds-size_x-small":"x-small"===this.props.size,"slds-size_small":"small"===this.props.size,"slds-size_medium":"medium"===this.props.size,"slds-size_large":"large"===this.props.size})},o.a.createElement("input",WP({type:"range",id:this.getId(),name:this.props.name,className:"slds-slider__range",min:this.props.min,max:this.props.max,step:this.props.step,disabled:this.props.disabled,onChange:this.handleChange,onInput:this.handleInput},e,void 0!==this.props.value?{value:this.props.value}:{defaultValue:this.props.defaultValue})),o.a.createElement("span",{className:"slds-slider__value","aria-hidden":"true"},this.props.value||this.props.defaultValue||"0")),this.props.errorText?o.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},this.props.errorText):null))}}])&&UP(t.prototype,n),r&&UP(t,r),i}(o.a.Component);ZP(tk,"displayName","SLDSSlider"),ZP(tk,"propTypes",$P),ZP(tk,"defaultProps",ek);var nk=tk,rk={assistiveText:i.a.shape({toggleButtonOpen:i.a.string.isRequired,toggleButtonClose:i.a.string.isRequired}),ariaControls:i.a.string.isRequired,isOpen:i.a.bool.isRequired,events:i.a.shape({onClick:i.a.func.isRequired})},ok=function(e){var t=e.isOpen,n=e.assistiveText,r=e.ariaControls,a=e.events,i=t?n.toggleButtonOpen:n.toggleButtonClose;return o.a.createElement(ar,{className:l()("slds-button slds-button_icon slds-split-view__toggle-button",{"slds-is-open":t}),"aria-expanded":t,"aria-controls":r,title:i,variant:"base",iconName:"left",iconCategory:"utility",iconSize:"x-small",onClick:a.onClick,assistiveText:{icon:i}})};ok.displayName="SLDSSplitViewToggleButton",ok.propTypes=rk,ok.defaultProps={};var ak=ok;function ik(e){return(ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lk(e,t){return(lk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ck(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pk(e);if(t){var o=pk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uk(this,n)}}function uk(e,t){return!t||"object"!==ik(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pk(e){return(pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dk={assistiveText:i.a.shape({toggleButtonOpen:i.a.string,toggleButtonClose:i.a.string}),id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),isOpen:i.a.bool,events:i.a.shape({onClose:i.a.func,onOpen:i.a.func}),master:i.a.oneOfType([i.a.arrayOf(i.a.element),i.a.element]).isRequired,masterWidth:i.a.string,detail:i.a.oneOfType([i.a.arrayOf(i.a.element),i.a.element]).isRequired},hk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lk(e,t)}(i,e);var t,n,r,a=ck(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).state={isOpen:"boolean"!=typeof e.isOpen||e.isOpen},t.generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getIsOpen",value:function(){return"boolean"==typeof this.props.isOpen?this.props.isOpen:this.state.isOpen}},{key:"getMasterViewId",value:function(){return"master_view_".concat(this.getId())}},{key:"toggle",value:function(e){"boolean"!=typeof this.props.isOpen&&this.setState((function(e){return{isOpen:!e.isOpen}}));var t=this.getIsOpen();t&&this.props.events.onClose?this.props.events.onClose(e):!t&&this.props.events.onOpen&&this.props.events.onOpen(e)}},{key:"render",value:function(){var e=this;return o.a.createElement("div",{id:this.getId(),className:l()("slds-grid",this.props.className),style:{height:"100%"}},o.a.createElement("div",{style:{maxWidth:this.getIsOpen()?this.props.masterWidth:"0",minWidth:this.getIsOpen()?this.props.masterWidth:"0"},className:l()("slds-split-view_container",{"slds-is-open":this.getIsOpen()},{"slds-is-closed":!this.getIsOpen()})},o.a.createElement(ak,{assistiveText:this.props.assistiveText,ariaControls:this.getMasterViewId(),isOpen:this.getIsOpen(),events:{onClick:function(t){return e.toggle(t)}}}),o.a.createElement("article",{id:this.getMasterViewId(),className:"slds-split-view slds-grid slds-grid_vertical slds-grow slds-scrollable_none"},this.getIsOpen()?this.props.master:null)),o.a.createElement("div",{style:{marginLeft:"0.75rem"},className:"slds-grow slds-scrollable_y"},this.props.detail))}}])&&sk(t.prototype,n),r&&sk(t,r),i}(o.a.Component);fk(hk,"displayName","SLDSSplitView"),fk(hk,"propTypes",dk),fk(hk,"defaultProps",{assistiveText:{toggleButtonOpen:"Close split view",toggleButtonClose:"Open split view"},events:{},masterWidth:"20rem"});var mk=hk;function bk(){return(bk=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function yk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var vk=function(e){var t=e.className,n=yk(e,["className"]);return o.a.createElement(Dj,bk({className:l()("slds-split-view__header slds-has-bottom-magnet",t)},n))};vk.displayName="SLDSSplitViewHeader",vk.propTypes={},vk.defaultProps={};var gk=vk,Ok={item:i.a.shape({label:i.a.string,topRightText:i.a.string,bottomLeftText:i.a.string,bottomRightText:i.a.string})},_k=function(e){var t=e.item;return o.a.createElement("div",null,o.a.createElement("div",{className:"slds-grid slds-wrap"},o.a.createElement("span",{className:"slds-truncate slds-text-body_regular slds-text-color_default",title:t.label},t.label),o.a.createElement("span",{className:"slds-truncate slds-col_bump-left",title:t.topRightText},t.topRightText)),o.a.createElement("div",{className:"slds-grid slds-wrap"},o.a.createElement("span",{className:"slds-truncate",title:t.bottomLeftText},t.bottomLeftText),o.a.createElement("span",{className:"slds-truncate slds-col_bump-left",title:t.bottomLeftText},t.bottomRightText)))};_k.displayName="SLDSSplitViewListItemContent",_k.propTypes=Ok,_k.defaultProps={};var xk=_k;function wk(e){return(wk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ek(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ck(e,t){return(Ck=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pk(e);if(t){var o=Pk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nk(this,n)}}function Nk(e,t){return!t||"object"!==wk(t)&&"function"!=typeof t?Tk(e):t}function Tk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pk(e){return(Pk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rk={assistiveText:i.a.shape({unreadItem:i.a.string}),item:i.a.object.isRequired,multiple:i.a.bool,isFocused:i.a.bool.isRequired,isSelected:i.a.bool.isRequired,isUnread:i.a.bool,events:i.a.shape({onClick:i.a.func.isRequired}),listItemRef:i.a.func},Ik={assistiveText:{unreadItem:"Unread Item"},events:{}},Dk=function(e){var t=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ck(e,t)}(s,t);var n,r,a,i=jk(s);function s(){var e;Sk(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return kk(Tk(e=i.call.apply(i,[this].concat(n))),"onClick",(function(t){t.preventDefault(),e.props.events.onClick(t,{item:e.props.item,isSelected:e.props.isSelected,isUnread:e.props.isUnread})})),e}return n=s,(r=[{key:"unread",value:function(){return this.props.isUnread?o.a.createElement("abbr",{className:"slds-indicator_unread",title:this.props.assistiveText.unreadItem,"aria-label":this.props.assistiveText.unreadItem},o.a.createElement("span",{className:"slds-assistive-text"},"●")):null}},{key:"render",value:function(){return o.a.createElement("li",{className:l()("slds-split-view__list-item",{"slds-is-unread":this.props.isUnread}),role:"presentation"},o.a.createElement("a",{className:"slds-split-view__list-item-action slds-grow slds-has-flexi-truncate",role:"option",ref:this.props.listItemRef,"aria-selected":this.props.multiple?!!this.props.isSelected:this.props.isSelected,tabIndex:this.props.isFocused?0:-1,href:"#",onClick:this.onClick},this.unread(),o.a.createElement(e,this.props)))}}])&&Ek(n.prototype,r),a&&Ek(n,a),s}(o.a.Component);return kk(t,"displayName","".concat("SLDSSplitViewListItemWithContent","(").concat(e.displayName||e.name||"Component",")")),kk(t,"propTypes",Rk),kk(t,"defaultProps",Ik),t};function Ak(e){return(Ak="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Lk(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==n)return;var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}(e,t)||Fk(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bk(e){return function(e){if(Array.isArray(e))return Mk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fk(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fk(e,t){if(e){if("string"==typeof e)return Mk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mk(e,t):void 0}}function Mk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qk(e,t){return(qk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kk(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vk(e);if(t){var o=Vk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wk(this,n)}}function Wk(e,t){return!t||"object"!==Ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vk(e){return(Vk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Uk=Object.freeze({UP:"up",DOWN:"down"}),Gk={assistiveText:i.a.shape({list:i.a.string,sort:i.a.shape({sortedBy:i.a.string,descending:i.a.string,ascending:i.a.string}),unreadItem:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),events:i.a.shape({onSelect:i.a.func.isRequired,onSort:i.a.func}),id:i.a.string,labels:i.a.shape({header:i.a.string}),sortDirection:i.a.oneOf([Uk.UP,Uk.DOWN]),multiple:i.a.bool,options:i.a.array.isRequired,selection:i.a.array,unread:i.a.array,listItem:i.a.func},Yk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qk(e,t)}(i,e);var t,n,r,a=Kk(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).listItemComponents={},t.state={currentSelectedItem:null,currentFocusedListItem:{index:0,item:null}},t.ListItemWithContent=Dk(e.listItem||xk),t}return t=i,(n=[{key:"componentDidMount",value:function(){this.focusFirstItem()}},{key:"isListItemFocused",value:function(e){return this.state.currentFocusedListItem.item===e}},{key:"isSelected",value:function(e){return this.props.selection.includes(e)}},{key:"isUnread",value:function(e){return this.props.unread.includes(e)}},{key:"handleKeyDown",value:function(e){this.props.multiple&&"a"===e.key&&e.ctrlKey?(St.trap(e),this.props.options===this.props.selection?this.deselectAllListItems(e):this.selectAllListItems(e)):"ArrowUp"===e.key?(St.trap(e),this.moveToPreviousItem(e)):"ArrowDown"===e.key&&(St.trap(e),this.moveToNextItem(e))}},{key:"moveToNextItem",value:function(e){var t=this.state.currentFocusedListItem.index===this.props.options.length-1?0:this.state.currentFocusedListItem.index+1;this.moveToIndex(e,t)}},{key:"moveToPreviousItem",value:function(e){var t=0===this.state.currentFocusedListItem.index?this.props.options.length-1:this.state.currentFocusedListItem.index-1;this.moveToIndex(e,t)}},{key:"moveToIndex",value:function(e,t){var n=this.props.options[t];this.focusItem(n)}},{key:"focusFirstItem",value:function(){var e=this,t=this.props.options.find((function(t){return e.props.selection.includes(t)}))||this.props.options[0];t&&this.focusItem(t,!0)}},{key:"focusItem",value:function(e,t){var n=this.props.options.indexOf(e);t||this.listItemComponents[n].focus(),this.setState({currentFocusedListItem:{index:n,item:e}})}},{key:"deselectAllListItems",value:function(e){this.setState({currentSelectedItem:null}),this.props.events.onSelect(e,{selectedItems:[],item:null})}},{key:"selectAllListItems",value:function(e){this.props.events.onSelect(e,{selectedItems:this.props.options,item:this.state.currentSelectedItem})}},{key:"selectListItem",value:function(e,t){var n=[e];if(this.props.multiple)if(t.metaKey)n=this.props.selection.includes(e)?this.props.selection.filter((function(t){return t!==e})):[e].concat(Bk(this.props.selection));else if(t.shiftKey){var r=Lk([this.props.options.indexOf(this.state.currentSelectedItem),this.props.options.indexOf(e)].sort(),2),o=r[0],a=r[1],i=this.props.options.slice(o,a+1);n=[].concat(Bk(i),Bk(this.props.selection.filter((function(e){return!i.includes(e)}))))}this.setState({currentSelectedItem:e}),this.props.events.onSelect(t,{selectedItems:n,item:e})}},{key:"handleOnSelect",value:function(e,t){var n=t.item;this.selectListItem(n,e),this.focusItem(n)}},{key:"sortDirection",value:function(){return this.props.sortDirection?o.a.createElement(jn,{category:"utility",name:this.props.sortDirection===Uk.DOWN?"arrowdown":"arrowup",size:"xx-small",className:"slds-align-top"}):null}},{key:"headerWrapper",value:function(e){return this.props.events.onSort?o.a.createElement("a",{"aria-live":"polite",style:{borderTop:"0"},href:"#",role:"button",className:"slds-split-view__list-header slds-grid slds-text-link_reset",onClick:St.trappedHandler(this.props.events.onSort)},e):o.a.createElement("div",{style:{borderTop:"0"},className:"slds-split-view__list-header slds-grid"},e)}},{key:"header",value:function(){return this.props.labels.header?this.headerWrapper(o.a.createElement("span",{"aria-sort":this.props.sortDirection===Uk.DOWN?this.props.assistiveText.sort.descending:this.props.assistiveText.sort.ascending},o.a.createElement("span",{className:"slds-assistive-text"},this.props.assistiveText.sort.sortedBy,": "),o.a.createElement("span",null,this.props.labels.header,this.sortDirection()),o.a.createElement("span",{className:"slds-assistive-text"},"- ",this.props.sortDirection===Uk.DOWN?this.props.assistiveText.sort.descending:this.props.assistiveText.sort.ascending))):null}},{key:"addListItemComponent",value:function(e,t){this.listItemComponents[t]=e}},{key:"listItems",value:function(){var e=this,t=this.ListItemWithContent;return this.props.options.map((function(n,r){return o.a.createElement(t,{key:n.id||r,assistiveText:{unreadItem:e.props.assistiveText.unreadItem},listItemRef:function(t){e.addListItemComponent(t,r)},item:n,isFocused:e.isListItemFocused(n),isSelected:e.isSelected(n),isUnread:e.isUnread(n),events:{onClick:function(t,n){return e.handleOnSelect(t,n)}},multiple:e.props.multiple})}))}},{key:"render",value:function(){var e=this;return o.a.createElement("div",{id:this.props.id,className:l()("slds-grid slds-grid_vertical slds-scrollable_none",this.props.className)},this.header(),o.a.createElement("ul",{className:"slds-scrollable_y","aria-label":this.props.assistiveText.list,"aria-multiselectable":this.props.multiple,role:"listbox",onKeyDown:function(t){return e.handleKeyDown(t)}},this.listItems()))}}])&&Hk(t.prototype,n),r&&Hk(t,r),i}(o.a.Component);zk(Yk,"displayName","SLDSSplitViewListbox"),zk(Yk,"propTypes",Gk),zk(Yk,"defaultProps",{assistiveText:{list:"Select an item to open it in a new workspace tab.",sort:{sortedBy:"Sorted by",descending:"Descending",ascending:"Ascending"}},events:{},labels:{},selection:[],unread:[]});var Xk=Yk;var Qk=function(){},Jk=n(56);function Zk(e){return(Zk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $k(){return($k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nR(e,t){return(nR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iR(e);if(t){var o=iR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return oR(this,n)}}function oR(e,t){return!t||"object"!==Zk(t)&&"function"!=typeof t?aR(e):t}function aR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iR(e){return(iR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function sR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nR(e,t)}(i,e);var t,n,r,a=rR(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),sR(aR(t=a.call(this,e)),"getId",(function(){return t.props.id||t.generatedId})),sR(aR(t),"getErrorId",(function(){return t.props["aria-describedby"]||t.generatedErrorId})),Qk(H,e,Jk),t.generatedId=u.a.generate(),e.errorText&&(t.generatedErrorId=u.a.generate()),t}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.autoFocus,n=e.children,r=e.className,a=e.classNameContainer,i=e.disabled,s=e.errorText,c=e.textareaRef,u=e.label,p=e.onBlur,f=e.onChange,d=e.onClick,h=e.onFocus,m=e.onInput,b=e.onInvalid,y=e.onKeyDown,v=e.onKeyPress,g=e.onKeyUp,O=e.onSelect,_=e.onSubmit,x=e.maxLength,w=e.name,S=e.placeholder,E=e.required,C=e.role,j=e.value,N=e.defaultValue,T=e.wrap,P=Wn(this.props),k="string"==typeof this.props.assistiveText?this.props.assistiveText:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eR(Object(n),!0).forEach((function(t){sR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props.assistiveText).label,R=u||k;return o.a.createElement("div",{className:l()("slds-form-element",{"slds-has-error":s},a)},R&&o.a.createElement("label",{className:l()("slds-form-element__label",{"slds-assistive-text":k&&!u}),htmlFor:this.getId()},E&&o.a.createElement("abbr",{className:"slds-required",title:"required"},"*"),R),o.a.createElement("div",{className:l()("slds-form-element__control")},o.a.createElement("textarea",$k({className:l()("slds-textarea",r),autoFocus:t,disabled:i,id:this.getId(),maxLength:x,name:w,onBlur:p,onChange:f,onClick:d,onFocus:h,onInput:m,onInvalid:b,onKeyDown:y,onKeyPress:v,onKeyUp:g,onSelect:O,onSubmit:_,placeholder:S,ref:c,role:C,required:E,wrap:T,value:j,defaultValue:N},P))),s&&o.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},s),n)}}])&&tR(t.prototype,n),r&&tR(t,r),i}(o.a.Component);sR(lR,"displayName",H),sR(lR,"propTypes",{assistiveText:i.a.shape({label:i.a.string}),"aria-activedescendant":i.a.string,"aria-autocomplete":i.a.string,"aria-controls":i.a.string,"aria-describedby":i.a.string,"aria-expanded":i.a.bool,"aria-haspopup":i.a.bool,"aria-labelledby":i.a.string,"aria-owns":i.a.string,"aria-required":i.a.bool,autoFocus:i.a.bool,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),classNameContainer:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),disabled:i.a.bool,errorText:i.a.string,id:i.a.string,textareaRef:i.a.func,label:i.a.string,onBlur:i.a.func,onChange:i.a.func,onClick:i.a.func,onFocus:i.a.func,onInput:i.a.func,onInvalid:i.a.func,onKeyDown:i.a.func,onKeyPress:i.a.func,onKeyUp:i.a.func,onSelect:i.a.func,onSubmit:i.a.func,maxLength:i.a.string,name:i.a.string,placeholder:i.a.string,required:i.a.bool,value:i.a.string,defaultValue:i.a.string,wrap:i.a.oneOf(["soft","hard"])});var cR=lR,uR=n(57),pR=n.n(uR);var fR=function(){};function dR(e){return(dR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hR(){return(hR=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function mR(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vR(e,t){return(vR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xR(e);if(t){var o=xR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return OR(this,n)}}function OR(e,t){return!t||"object"!==dR(t)&&"function"!=typeof t?_R(e):t}function _R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xR(e){return(xR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vR(e,t)}(i,e);var t,n,r,a=gR(i);function i(){var e;bR(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return wR(_R(e=a.call.apply(a,[this].concat(n))),"handleKeyDown",(function(t){e.props.onKeyDown&&t.keyCode&&(t.keyCode!==zt.ENTER&&t.keyCode!==zt.DOWN&&t.keyCode!==zt.UP&&t.keyCode!==zt.ESCAPE||e.props.onKeyDown(t))})),e}return t=i,(n=[{key:"render",value:function(){var e=this.props,t=e.iconRight,n=e.menu,r=e.onBlur,a=e.onFocus,i=(e.onKeyDown,e.onMouseDown),s=e.triggerRef,l=mR(e,["iconRight","menu","onBlur","onFocus","onKeyDown","onMouseDown","triggerRef"]);return o.a.createElement("div",{onBlur:r,onFocus:a,onKeyDown:this.handleKeyDown,onMouseDown:i},o.a.createElement(Pu,hR({iconRight:t},l,{inputRef:s}),n))}}])&&yR(t.prototype,n),r&&yR(t,r),i}(o.a.Component);wR(SR,"displayName",re),wR(SR,"propTypes",{iconRight:i.a.node,id:i.a.string,label:i.a.string,menu:i.a.node,onBlur:i.a.func,onClick:i.a.func,onFocus:i.a.func,onKeyDown:i.a.func,onMouseDown:i.a.func,triggerRef:i.a.func,value:i.a.string});var ER=SR,CR=n(58);function jR(e){return(jR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function NR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function TR(e,t){return(TR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function PR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=IR(e);if(t){var o=IR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kR(this,n)}}function kR(e,t){return!t||"object"!==jR(t)&&"function"!=typeof t?RR(e):t}function RR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IR(e){return(IR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function DR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AR=function(e){var t=e.props,n=new Date,r=[];n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0);for(var o=new Date(n);n.getDate()===o.getDate();){var a=t.formatter(o);r.push({label:a,value:new Date(o)}),o.setMinutes(o.getMinutes()+t.stepInMinutes)}return r},LR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&TR(e,t)}(i,e);var t,n,r,a=PR(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),DR(RR(t=a.call(this,e)),"state",{value:t.props.value,strValue:t.props.strValue,options:AR({props:t.props})}),DR(RR(t),"parseDate",(function(e){var n=t.props.parser(e);return pR()(n)&&!isNaN(n.getTime())?n:new Date})),DR(RR(t),"handleChange",(function(e,n){t.setState({value:e,strValue:n}),t.props.onDateChange&&t.props.onDateChange(e,n)})),DR(RR(t),"handleSelect",(function(e){e&&e.value&&t.handleChange(e.value,e.label)})),DR(RR(t),"handleInputChange",(function(e){var n=e.target.value;if(t.setState({strValue:n}),t.props.onDateChange){var r=t.props.parser(n);t.props.onDateChange(r,n)}})),fR(be,e,CR),t}return t=i,(n=[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.value&&this.props.value&&this.props.value.getTime()!==e.value.getTime()&&this.setState({value:e.value,strValue:this.props.formatter(e.value)}),e.strValue!==this.props.value&&this.setState({strValue:e.strValue})}},{key:"render",value:function(){return o.a.createElement(Hs,{checkmark:!1,constrainToScrollParent:this.props.constrainToScrollParent,disabled:this.props.disabled,inheritTargetWidth:this.props.inheritTargetWidth,label:this.props.label,listItemRenderer:this.props.listItemRenderer,menuStyle:{maxHeight:"20em",overflowX:"hidden",minWidth:"100%"},menuPosition:this.props.menuPosition,onSelect:this.handleSelect,options:this.state.options},o.a.createElement(ER,{iconRight:o.a.createElement(Ac,{category:"utility",name:"clock"}),onChange:this.handleInputChange,placeholder:this.props.placeholder,required:this.props.required,type:"text",value:this.state.strValue}))}}])&&NR(t.prototype,n),r&&NR(t,r),i}(o.a.Component);DR(LR,"displayName",be),DR(LR,"propTypes",{constrainToScrollParent:i.a.bool,disabled:i.a.bool,formatter:i.a.func,inheritTargetWidth:i.a.bool,label:i.a.string,listItemRenderer:i.a.func,menuPosition:i.a.oneOf(["absolute","overflowBoundaryElement","relative"]),onDateChange:i.a.func,parser:i.a.func,placeholder:i.a.string,required:i.a.bool,stepInMinutes:i.a.number,strValue:i.a.string,value:i.a.instanceOf(Date)}),DR(LR,"defaultProps",{formatter:function(e){return e?e.toLocaleTimeString(navigator.language,{hour:"2-digit",minute:"2-digit"}):null},parser:function(e){var t=(new Date).toLocaleString(navigator.language,{year:"numeric",month:"numeric",day:"numeric"});return new Date("".concat(t," ").concat(e))},menuPosition:"absolute",value:null,stepInMinutes:30});var BR=LR;var FR=function(){},MR=n(59);function HR(e){return(HR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function KR(e,t){return(KR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function WR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=UR(e);if(t){var o=UR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return VR(this,n)}}function VR(e,t){return!t||"object"!==HR(t)&&"function"!=typeof t?zR(e):t}function zR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UR(e){return(UR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function GR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YR={assistiveText:i.a.shape({closeButton:i.a.oneOfType([i.a.string,i.a.node])}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),duration:i.a.number,labels:i.a.shape({details:i.a.oneOfType([i.a.string,i.a.node]),heading:i.a.oneOfType([i.a.string,i.a.node]),headingLink:i.a.oneOfType([i.a.string,i.a.node])}),onClickHeadingLink:i.a.func,icon:i.a.node,onRequestClose:i.a.func,style:i.a.object,variant:i.a.oneOf(["error","info","success","warning"]).isRequired},XR={assistiveText:{closeButton:"Close",error:"error",info:"info",success:"success",warning:"warning"},variant:"info"},QR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KR(e,t)}(i,e);var t,n,r,a=WR(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),GR(zR(t=a.call(this,e)),"onClose",(function(){t.clearTimeout(),t.props.onRequestClose&&t.props.onRequestClose()})),GR(zR(t),"clearTimeout",(function(){t.timeout&&(clearTimeout(t.timeout),t.timeout=null)})),GR(zR(t),"saveToastRef",(function(e){t.toast=e,t.state.isInitialRender&&(Zt.storeActiveElement(),t.toast&&t.toast.focus(),t.setState({isInitialRender:!1}))})),t.state={isInitialRender:!0},t.timeout=null,t.toast=null,FR(ye,e,MR),t}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this;this.props.duration&&(this.timeout=setTimeout((function(){e.onClose()}),this.props.duration))}},{key:"componentWillUnmount",value:function(){this.clearTimeout(),Zt.returnFocusToStoredElement()}},{key:"render",value:function(){var e=ur()({},XR.assistiveText,this.props.assistiveText),t=ur()({},XR.labels,this.props.labels),n=t.heading||this.props.content,r={info:e.info,success:e.success,warning:e.warning,error:e.error},a={info:o.a.createElement(jn,{category:"utility",name:"info"}),success:o.a.createElement(jn,{category:"utility",name:"success"}),warning:o.a.createElement(jn,{category:"utility",name:"warning"}),error:o.a.createElement(jn,{category:"utility",name:"error"})},i=this.props.icon?this.props.icon:a[this.props.variant],s=o.a.cloneElement(i,{containerClassName:"slds-m-right_small slds-no-flex slds-align-top",inverse:!0,size:"small"});return o.a.createElement("div",{className:gn("slds-notify slds-notify_toast",{"slds-theme_info":"info"===this.props.variant,"slds-theme_success":"success"===this.props.variant,"slds-theme_warning":"warning"===this.props.variant,"slds-theme_error":"error"===this.props.variant},this.props.className),ref:this.saveToastRef,role:"status",style:this.props.style,tabIndex:0},o.a.createElement("span",{className:"slds-assistive-text"},r[this.props.variant]),s,o.a.createElement("div",{className:"slds-notify__content"},o.a.createElement("h2",{className:"slds-text-heading_small"},n," ",t.headingLink?o.a.createElement("a",{onClick:St.trappedHandler(this.props.onClickHeadingLink),href:"#"},t.headingLink):null),t.details?o.a.createElement("p",null,t.details):null),o.a.createElement(ar,{assistiveText:{icon:e.closeButton},className:"slds-notify__close",iconCategory:"utility",iconName:"close",iconSize:"large",inverse:!0,onClick:this.props.onRequestClose,title:e.closeButton,variant:"icon"}))}}])&&qR(t.prototype,n),r&&qR(t,r),i}(o.a.Component);QR.defaultProps=XR,QR.displayName=ye,QR.propTypes=YR;var JR=QR;function ZR(e){return(ZR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tI(e,t){return(tI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oI(e);if(t){var o=oI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rI(this,n)}}function rI(e,t){return!t||"object"!==ZR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oI(e){return(oI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var aI={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),children:i.a.node},iI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tI(e,t)}(i,e);var t,n,r,a=nI(i);function i(){return $R(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("div",{className:gn("slds-notify-container",this.props.className)},this.props.children)}}])&&eI(t.prototype,n),r&&eI(t,r),i}(o.a.Component);iI.displayName="SLDSToastContainer",iI.propTypes=aI;var sI=iI;function lI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cI=function(e){var t=e.event,n=e.props,r=e.fromFocus;St.trap(t),Ar()(n.onSelect)&&n.onSelect({event:t,data:{node:n.node,select:!n.node.selected,treeIndex:n.treeIndex},fromFocus:r})},uI=function(e,t){if(t.focusedNodeIndex===t.treeIndex){var n=(r=t.flattenedNodes,o=t.node,a=r.map((function(e){return e.node})),r[(ad()(a,{id:o.id})+1)%r.length]);t.onSelect({event:e,data:{node:n.node,select:!0,treeIndex:n.treeIndex},clearSelectedNodes:!0})}var r,o,a},pI=function(e,t){if(t.focusedNodeIndex===t.treeIndex){var n=(r=t.flattenedNodes,o=t.node,a=r.map((function(e){return e.node})),(i=ad()(a,{id:o.id})-1)<0&&(i+=r.length),r[i]);t.onSelect({event:e,data:{node:n.node,select:!0,treeIndex:n.treeIndex},clearSelectedNodes:!0})}var r,o,a,i},fI=function(e,t){var n;$h(e,{callbacks:(n={},lI(n,zt.DOWN,{callback:function(e){return uI(e,t)}}),lI(n,zt.UP,{callback:function(e){return pI(e,t)}}),lI(n,zt.LEFT,{callback:function(e){return function(e,t){var n=t.flattenedNodes.map((function(e){return e.node})),r=ad()(n,{id:t.parent.id});-1!==r&&t.onExpand({event:e,data:{node:t.parent,select:!0,expand:!t.parent.expanded,treeIndex:t.flattenedNodes[r].treeIndex}})}(e,t)}}),lI(n,zt.ENTER,{callback:function(e){return function(e,t){cI({event:e,props:t})}(e,t)}}),n)})},dI=function(e){var t=0===e.selectedNodeIndexes.length&&e.treeIndex===e.flattenedNodes[0].treeIndex;return e.treeIndex===e.focusedNodeIndex||t?0:-1},hI=function(e){var t=e.node.selected,n=e.treeIndex===e.focusedNodeIndex;return o.a.createElement("li",{id:"".concat(e.treeId,"-").concat(e.node.id),role:"treeitem","aria-level":e.level,"aria-selected":t?"true":"false",tabIndex:dI(e),onKeyDown:function(t){return fI(t,e)},onFocus:function(t){return function(e,t){t.treeHasFocus||t.focusedNodeIndex||e.target!==e.currentTarget||cI({event:e,props:t})}(t,e)},onBlur:e.onNodeBlur,ref:function(t){e.treeHasFocus&&t&&n&&t.focus()}},o.a.createElement("div",{className:l()("slds-tree__item",{"slds-is-selected":t}),onClick:function(t){cI({event:t,props:e})}},o.a.createElement(ar,{tabIndex:"-1","aria-hidden":!0,assistiveText:{icon:""},role:"presentation",iconCategory:"utility",iconName:"chevronright",iconSize:"small",variant:"icon",className:"slds-m-right_small slds-is-disabled",disabled:!0}),o.a.createElement("span",{className:"slds-size_1-of-1"},o.a.createElement(Jo,{search:e.searchTerm,className:"slds-tree__item-label slds-truncate"},e.label))))};hI.displayName="SLDSTreeItem",hI.propTypes={htmlId:i.a.string.isRequired,label:i.a.oneOfType([i.a.node,i.a.string]).isRequired,level:i.a.number.isRequired,node:i.a.object.isRequired,onExpand:i.a.func.isRequired,onSelect:i.a.func,searchTerm:i.a.string,treeId:i.a.string,treeIndex:i.a.string,flattenedNodes:i.a.arrayOf(i.a.object),selectedNodeIndexes:i.a.arrayOf(i.a.string),focusedNodeIndex:i.a.string,onNodeBlur:i.a.func,treeHasFocus:i.a.bool,parent:i.a.object},hI.defaultProps={selected:!1,selectedNodeIndexes:[]};var mI=hI,bI={htmlId:i.a.oneOfType([i.a.number,i.a.string]).isRequired,initalClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),initialStyle:i.a.object},yI=function(e,t){return o.a.createElement("ul",{"aria-labelledby":"".concat(t.htmlId,"__heading"),className:l()("slds-tree",t.initalClassName),onScroll:function(e){!function(e,t){var n=e.target.scrollTop/(e.target.scrollHeight-e.target.clientHeight)*100;Ar()(t.onScroll)&&t.onScroll(e,{percentage:n})}(e,t)},role:"tree",style:t.initialStyle},e)};yI.displayName="TreeInitialNode",yI.propTypes=bI;var vI=yI;function gI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OI={htmlId:i.a.oneOfType([i.a.number,i.a.string]).isRequired,label:i.a.oneOfType([i.a.node,i.a.string]),level:i.a.number.isRequired,node:i.a.object.isRequired,onExpand:i.a.func.isRequired,onSelect:i.a.func,searchTerm:i.a.string,treeIndex:i.a.string,flattenedNodes:i.a.arrayOf(i.a.object),selectedNodeIndexes:i.a.arrayOf(i.a.string),focusedNodeIndex:i.a.string,onNodeBlur:i.a.func,treeHasFocus:i.a.bool,parent:i.a.object},_I=function(e,t){St.trap(e),Ar()(t.onExpand)&&t.onExpand({event:e,data:{node:t.node,expand:!t.node.expanded,treeIndex:t.treeIndex}})},xI=function(e){var t=e.event,n=e.props,r=e.fromFocus;St.trap(t),Ar()(n.onSelect)&&n.onSelect({event:t,data:{node:n.node,select:!n.node.selected,treeIndex:n.treeIndex},fromFocus:r})},wI=function(e,t){if(t.focusedNodeIndex===t.treeIndex){var n=(r=t.flattenedNodes,o=t.node,a=r.map((function(e){return e.node})),r[(ad()(a,{id:o.id})+1)%r.length]);t.onSelect({event:e,data:{node:n.node,select:!0,treeIndex:n.treeIndex},clearSelectedNodes:!0})}var r,o,a},SI=function(e,t){if(t.focusedNodeIndex===t.treeIndex){var n=(r=t.flattenedNodes,o=t.node,a=r.map((function(e){return e.node})),(i=ad()(a,{id:o.id})-1)<0&&(i+=r.length),r[i]);t.onSelect({event:e,data:{node:n.node,select:!0,treeIndex:n.treeIndex},clearSelectedNodes:!0})}var r,o,a,i},EI=function(e,t){var n;$h(e,{callbacks:(n={},gI(n,zt.DOWN,{callback:function(e){return wI(e,t)}}),gI(n,zt.UP,{callback:function(e){return SI(e,t)}}),gI(n,zt.RIGHT,{callback:function(e){return function(e,t){t.node.expanded?t.getNodes(t.node)&&t.getNodes(t.node).length>0&&wI(e,t):_I(e,t)}(e,t)}}),gI(n,zt.LEFT,{callback:function(e){return function(e,t){if(t.node.expanded)_I(e,t);else{var n=t.flattenedNodes.map((function(e){return e.node})),r=ad()(n,{id:t.parent.id});-1!==r&&t.onExpand({event:e,data:{node:t.parent,select:!0,expand:!t.parent.expanded,treeIndex:t.flattenedNodes[r].treeIndex}})}}(e,t)}}),gI(n,zt.ENTER,{callback:function(e){return function(e,t){xI({event:e,props:t})}(e,t)}}),n)})},CI=function(e){var t=0===e.selectedNodeIndexes.length&&e.treeIndex===e.flattenedNodes[0].treeIndex;return e.treeIndex===e.focusedNodeIndex||t?0:-1},jI=function(e,t){var n=t.node.expanded,r=t.node.selected,a=t.treeIndex===t.focusedNodeIndex,i=t.node.loading,s=o.a.createElement("div",{style:{display:"block",paddingLeft:"".concat(1.5*t.level+1.5,"rem"),marginTop:".5rem"}},o.a.createElement("div",{style:{borderRadius:"15rem",display:"block",marginBottom:".75rem",height:".5rem",backgroundColor:"rgb(224, 229, 238)",width:"40%"}}),o.a.createElement("div",{style:{borderRadius:"15rem",display:"block",marginBottom:".75rem",height:".5rem",backgroundColor:"rgb(224, 229, 238)",width:"80%"}}),o.a.createElement("div",{style:{borderRadius:"15rem",display:"block",marginBottom:".75rem",height:".5rem",backgroundColor:"rgb(224, 229, 238)",width:"60%"}})),c=t.node.assistiveText||("string"==typeof t.node.label?t.node.label:null);return o.a.createElement("li",{id:t.htmlId,role:"treeitem","aria-level":t.level,"aria-expanded":n?"true":"false","aria-label":t.node.nodes&&t.node.nodes.length>0?c:null,tabIndex:CI(t),onKeyDown:function(e){return EI(e,t)},onFocus:function(e){return function(e,t){t.treeHasFocus||t.focusedNodeIndex||e.target!==e.currentTarget||xI({event:e,props:t,fromFocus:!0})}(e,t)},onBlur:t.onNodeBlur,ref:function(e){t.treeHasFocus&&e&&a&&e.focus()}},o.a.createElement("div",{className:l()("slds-tree__item",{"slds-is-selected":r}),onClick:function(e){xI({event:e,props:t})}},o.a.createElement(ar,{"aria-hidden":!0,assistiveText:{icon:"Expand Tree Branch"},iconCategory:"utility",iconName:"chevronright",iconSize:"small",variant:"icon",className:"slds-m-right_small",role:"presentation","aria-controls":t.htmlId,onClick:function(e){_I(e,t)},tabIndex:"-1"}),o.a.createElement("span",{className:"slds-size_1-of-1",id:"".concat(t.htmlId,"__label")},o.a.createElement(Jo,{search:t.searchTerm,className:"slds-tree__item-label slds-truncate"},t.label))),i?s:null,o.a.createElement("ul",{className:l()({"slds-is-expanded":n,"slds-is-collapsed":!n}),role:"group","aria-labelledby":"".concat(t.htmlId,"__label")},n&&!i?e:null))};jI.displayName="Branch",jI.propTypes=OI;var NI=jI,TI=function e(t){var n,r="",a=t.treeId,i=t.level,s=t.onExpand,l=t.searchTerm;return Array.isArray(t.getNodes(t.node))&&(n=t.getNodes(t.node).map((function(n,c){var p="".concat(t.treeId,"-").concat(n.id);return r="".concat(c),t.treeIndex&&(r="".concat(t.treeIndex,"-").concat(r)),"branch"===n.type?o.a.createElement(e,{getNodes:t.getNodes,htmlId:p,key:n.id,label:n.label,level:i+1,node:n,flattenedNodes:t.flattenedNodes,selectedNodeIndexes:t.selectedNodeIndexes,focusedNodeIndex:t.focusedNodeIndex,treeHasFocus:t.treeHasFocus,onNodeBlur:t.onNodeBlur,nodes:n.nodes,onSelect:t.onSelect,onExpand:s,searchTerm:l,treeId:a,treeIndex:r,parent:t.node}):o.a.createElement(mI,{label:n.label,htmlId:p,key:u.a.generate(),level:i+1,node:n,flattenedNodes:t.flattenedNodes,selectedNodeIndexes:t.selectedNodeIndexes,focusedNodeIndex:t.focusedNodeIndex,treeHasFocus:t.treeHasFocus,onNodeBlur:t.onNodeBlur,onSelect:t.onSelect,onExpand:s,searchTerm:l,treeIndex:r,treeId:a,parent:t.node})}))),0===t.level?vI(n,t):NI(n,t)};TI.displayName="SLDSTreeBranch",TI.propTypes={getNodes:i.a.func,htmlId:i.a.oneOfType([i.a.number,i.a.string]).isRequired,index:i.a.number,initial:i.a.bool,initalClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),initialStyle:i.a.object,label:i.a.oneOfType([i.a.node,i.a.string]),level:i.a.number.isRequired,node:i.a.object.isRequired,onSelect:i.a.func,onExpand:i.a.func.isRequired,searchTerm:i.a.string,treeId:i.a.string,treeIndex:i.a.string,flattenedNodes:i.a.arrayOf(i.a.object),selectedNodeIndexes:i.a.arrayOf(i.a.string),focusedNodeIndex:i.a.string,onNodeBlur:i.a.func,treeHasFocus:i.a.bool,parent:i.a.object},TI.defaultProps={level:0,label:"",treeIndex:"",selectedNodeIndexes:[]};var PI=TI;var kI=function(){},RI=n(60);function II(e){return(II="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function DI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function AI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DI(Object(n),!0).forEach((function(t){KI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function BI(e,t){return(BI=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function FI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qI(e);if(t){var o=qI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MI(this,n)}}function MI(e,t){return!t||"object"!==II(t)&&"function"!=typeof t?HI(e):t}function HI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qI(e){return(qI=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function KI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WI={assistiveText:i.a.shape({label:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),listClassName:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),getNodes:i.a.func,heading:i.a.oneOfType([i.a.node,i.a.string]),id:i.a.string.isRequired,nodes:i.a.arrayOf(i.a.oneOfType([i.a.number,i.a.string,i.a.shape({id:i.a.oneOfType([i.a.number,i.a.string]).isRequired,label:i.a.oneOfType([i.a.node,i.a.string]).isRequired,type:i.a.string.isRequired})])).isRequired,onClick:i.a.func.isRequired,onExpandClick:i.a.func.isRequired,onScroll:i.a.func,searchTerm:i.a.string,listStyle:i.a.object},VI={assistiveText:{},getNodes:function(e){return e.nodes}},zI=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!t.nodes)return[{node:t,treeIndex:r}];var a=[{node:t,treeIndex:r}];if(t.expanded)for(var i=0;i<t.nodes.length;i+=1){var s=o?t.nodes[i]:n(t)[i];a=a.concat(e(s,n,r?"".concat(r,"-").concat(i):"".concat(i),!1))}return a},UI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&BI(e,t)}(i,e);var t,n,r,a=FI(i);function i(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),KI(HI(t=a.call(this,e)),"handleSelect",(function(e){var n,r=e.event,o=e.data,a=e.clearSelectedNodes,i=e.fromFocus;a&&t.state.flattenedNodes.forEach((function(e){e.node.selected&&(e.node.selected=!1)})),i||t.props.onClick(r,o),n=o.select?t.state.selectedNodeIndexes.concat([o.treeIndex]):t.state.selectedNodeIndexes.filter((function(e){return e!==o.treeIndex})),t.treeHasFocus=!0,t.setState({focusedNodeIndex:o.treeIndex,selectedNodeIndexes:n})})),KI(HI(t),"handleNodeBlur",(function(){t.treeHasFocus=!1})),KI(HI(t),"handleExpand",(function(e){var n=e.event,r=e.data;t.treeHasFocus=!0,t.props.onExpandClick(n,r),r.select&&t.setState({focusedNodeIndex:r.treeIndex})}));var n,r=zI({nodes:t.props.getNodes({nodes:t.props.nodes}),expanded:!0},t.props.getNodes).slice(1),o=Fh()(r,(function(e){return e.node.selected})),s=[];return o&&(s.push(o.treeIndex),n=o.treeIndex),t.state={flattenedNodes:r,selectedNodeIndexes:s,focusedNodeIndex:n},kI(ve,e,RI),t}return t=i,r=[{key:"getDerivedStateFromProps",value:function(e){return{flattenedNodes:zI({nodes:e.getNodes({nodes:e.nodes}),expanded:!0},e.getNodes).slice(1)}}}],(n=[{key:"render",value:function(){var e="string"==typeof this.props.assistiveText?this.props.assistiveText:AI(AI({},VI.assistiveText),this.props.assistiveText).label,t=e||this.props.heading;return o.a.createElement("div",{id:this.props.id,className:l()("slds-tree_container",this.props.className)},o.a.createElement("h4",{className:l()("slds-tree__group-header",{"slds-assistive-text":e}),id:"".concat(this.props.id,"__heading")},t),o.a.createElement(PI,{getNodes:this.props.getNodes,initalClassName:this.props.listClassName,htmlId:this.props.id,initialStyle:this.props.listStyle,level:0,node:{nodes:this.props.nodes},flattenedNodes:this.state.flattenedNodes,selectedNodeIndexes:this.state.selectedNodeIndexes,focusedNodeIndex:this.state.focusedNodeIndex,treeHasFocus:this.treeHasFocus,onNodeBlur:this.handleNodeBlur,onSelect:this.handleSelect,onExpand:this.handleExpand,onScroll:this.props.onScroll,searchTerm:this.props.searchTerm,treeId:this.props.id}))}}])&&LI(t.prototype,n),r&&LI(t,r),i}(o.a.Component);UI.displayName=ve,UI.propTypes=WI,UI.defaultProps=VI;var GI=UI,YI={children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),labels:i.a.shape({timeLeft:i.a.string,timeLeftUnit:i.a.string,timeLeftUnitAfter:i.a.string}),onRenderActions:i.a.func,style:i.a.object},XI={labels:{timeLeftUnitAfter:"left in trial"}},QI=function(e){var t=ur()({},XI.labels,e.labels);return o.a.createElement("div",{className:l()("slds-trial-header slds-grid",e.className),style:e.style},o.a.createElement("div",{className:"slds-grid"},e.children),o.a.createElement("div",{className:"slds-grid slds-grid_vertical-align-center slds-col_bump-left"},o.a.createElement("span",{className:"slds-box slds-box_xx-small slds-theme_default"},t.timeLeft),o.a.createElement("span",{className:"slds-m-horizontal_x-small"},t.timeLeftUnit," ".concat(t.timeLeftUnitAfter)),e.onRenderActions()))};QI.displayName="SLDSTrialBar",QI.propTypes=YI,QI.defaultProps=XI;var JI=QI;function ZI(){return(ZI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var $I=ar.propTypes,eD=function(e){return o.a.createElement(ar,ZI({},e,{inverse:!0,style:{border:0,padding:0},className:"slds-m-right_small"}))};eD.propTypes=$I,eD.displayName="SLDSTrialBarButton";var tD=eD;function nD(){return(nD=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function rD(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var oD=Ms.propTypes,aD=function(e){var t=e.label,n=rD(e,["label"]);return o.a.createElement(Hs,nD({},n,{inverse:!0}),o.a.createElement(ps,{triggerClassName:"slds-grid"},o.a.createElement(ar,{inverse:!0,style:{border:0,height:"100%",padding:0},iconCategory:"utility",iconName:"right",iconPosition:"left",label:t})))};aD.propTypes=oD,aD.displayName="SLDSTrialBarDropdown";var iD=aD;function sD(e){return(sD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cD(e,t){return(cD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fD(e);if(t){var o=fD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pD(this,n)}}function pD(e,t){return!t||"object"!==sD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fD(e){return(fD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dD={id:i.a.string,children:i.a.node,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),label:i.a.string,coverable:i.a.bool,vertical:i.a.bool,links:i.a.bool,size:i.a.oneOf(["medium","large"])},hD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cD(e,t)}(i,e);var t,n,r,a=uD(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"render",value:function(){var e=this,t=o.a.Children.map(this.props.children,(function(t,n){return o.a.cloneElement(t,{index:"".concat(e.props.id||e.generatedId,"-").concat(n),coverable:e.props.coverable,variant:"visual-picker",name:"".concat(e.props.id||e.generatedId,"_options"),size:e.props.size,vertical:!!e.props.vertical})}));return this.props.links?o.a.createElement("div",{className:"slds-form-element__control"},this.props.children):o.a.createElement("fieldset",{id:this.props.id,className:l()("slds-form-element",this.props.className)},o.a.createElement("legend",{className:"slds-form-element__legend slds-form-element__label"},this.props.label),o.a.createElement("div",{className:"slds-form-element__control"},t))}}])&&lD(t.prototype,n),r&&lD(t,r),i}(o.a.Component);hD.displayName="SLDSVisualPicker",hD.propTypes=dD,hD.defaultProps={size:"medium",vertical:!1,links:!1};var mD=hD;function bD(e){return(bD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gD(e,t){return(gD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function OD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xD(e);if(t){var o=xD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _D(this,n)}}function _D(e,t){return!t||"object"!==bD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xD(e){return(xD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wD={id:i.a.string,className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),href:i.a.string,icon:i.a.node,title:i.a.string,description:i.a.string},SD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gD(e,t)}(i,e);var t,n,r,a=OD(i);function i(){return yD(this,i),a.apply(this,arguments)}return t=i,(n=[{key:"render",value:function(){return o.a.createElement("a",{href:this.props.href,id:this.props.id,className:l()("slds-box","slds-box_link","slds-theme_default","slds-box_x-small","slds-media","slds-visual-picker_vertical",this.props.className)},o.a.createElement("div",{className:"slds-media__figure slds-media__figure_fixed-width slds-align_absolute-center slds-m-left_xx-small"},this.props.icon),o.a.createElement("div",{className:"slds-media__body slds-border_left slds-p-around_small"},o.a.createElement("h2",{className:"slds-truncate slds-text-heading_small",title:this.props.title},this.props.title),o.a.createElement("p",{className:"slds-m-top_small"},this.props.description)))}}])&&vD(t.prototype,n),r&&vD(t,r),i}(o.a.Component);SD.displayName="SLDSVisualPickerLink",SD.propTypes=wD;var ED=SD;function CD(e){return(CD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ND(e,t){return(ND=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function TD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kD(e);if(t){var o=kD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return PD(this,n)}}function PD(e,t){return!t||"object"!==CD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kD(e){return(kD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var RD={className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,isOpen:i.a.bool,labels:i.a.shape({title:i.a.string,description:i.a.string,unitsCompletedAfter:i.a.string}),variant:i.a.oneOf(["steps","info-only","splash","trailhead-connected"]),onRenderInfoActions:i.a.func,onRequestClose:i.a.func,infoBadge:i.a.node,doNotShowAgainCheckbox:i.a.node},ID={labels:{unitsCompletedAfter:"units completed"},variant:"steps",isOpen:!0},DD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ND(e,t)}(i,e);var t,n,r,a=TD(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t.getCount(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getCount",value:function(){var e=o.a.Children.count(this.props.children),t=o.a.Children.toArray(this.props.children).filter((function(e){return e.props.isComplete})).length,n=t/e*100;this.state={totalSteps:e,completedSteps:t,progress:n}}},{key:"render",value:function(){var e=this,t=ur()({},ID.labels,this.props.labels),n=o.a.createElement("div",{className:l()("slds-welcome-mat__info-content",this.props.className),id:"".concat(this.getId(),"-content")},o.a.createElement("h2",{className:"slds-welcome-mat__info-title",id:"".concat(this.getId(),"-label")},t.title),o.a.createElement("div",{className:"slds-welcome-mat__info-description slds-text-longform"},o.a.createElement("p",null,t.description)),"info-only"===this.props.variant||"splash"===this.props.variant?o.a.createElement("div",{className:"slds-welcome-mat__info-actions"},this.props.onRenderInfoActions()?this.props.onRenderInfoActions():null,o.a.createElement("div",{className:"slds-m-top_large"},this.props.doNotShowAgainCheckbox?this.props.doNotShowAgainCheckbox:null)):null,"steps"!==this.props.variant&&"trailhead-connected"!==this.props.variant||!this.props.children?null:o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:l()("slds-welcome-mat__info-progress",this.state.completedSteps===this.state.totalSteps?"slds-welcome-mat__info-progress_complete":null)},"trailhead-connected"===this.props.variant?o.a.Children.map(this.props.infoBadge,(function(t){return o.a.cloneElement(t,{isComplete:e.state.completedSteps===e.state.totalSteps||null})})):null,this.state.completedSteps!==this.state.totalSteps||"trailhead-connected"!==this.props.variant?o.a.createElement(o.a.Fragment,null,"trailhead-connected"===this.props.variant?o.a.createElement("p",null,this.state.completedSteps,"/",this.state.totalSteps," ".concat(t.unitsCompletedAfter)):o.a.createElement("p",null,o.a.createElement("strong",null,this.state.completedSteps,"/",this.state.totalSteps," ".concat(t.unitsCompletedAfter))),o.a.createElement(DN,{value:this.state.progress,radius:"circular"})):null)));return o.a.createElement(co,{assistiveText:{dialogLabelledBy:"".concat(this.getId(),"-label")},isOpen:this.props.isOpen,onRequestClose:this.props.onRequestClose,size:"small",id:"".concat(this.getId(),"-modal")},o.a.createElement("div",{className:l()("slds-welcome-mat",{"slds-welcome-mat_info-only":"info-only"===this.props.variant},this.props.children?null:"slds-welcome-mat_splash"),id:this.getId()},o.a.createElement("div",{className:"slds-welcome-mat__content slds-grid"},this.props.children?o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:"slds-welcome-mat__info slds-size_1-of-2"},n),o.a.createElement("div",{className:l()("slds-welcome-mat__tiles","slds-size_1-of-2","info-only"===this.props.variant?"slds-welcome-mat__tiles_info-only":null)},o.a.Children.map(this.props.children,(function(t){return o.a.cloneElement(t,{variant:e.props.variant})})))):o.a.createElement("div",{className:"slds-welcome-mat__info slds-size_1-of-1"},n))))}}])&&jD(t.prototype,n),r&&jD(t,r),i}(o.a.Component);DD.displayName="SLDSWelcomeMat",DD.propTypes=RD,DD.defaultProps=ID;var AD=DD;function LD(e){return(LD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function BD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function FD(e,t){return(FD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function MD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qD(e);if(t){var o=qD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HD(this,n)}}function HD(e,t){return!t||"object"!==LD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qD(e){return(qD=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var KD={assistiveText:i.a.shape({completed:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,image:i.a.string,isComplete:i.a.bool,onCompleteRenderActions:i.a.func},WD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&FD(e,t)}(i,e);var t,n,r,a=MD(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getCompletedText",value:function(){return this.props.assistiveText&&this.props.assistiveText.completed?this.props.assistiveText.completed:"Completed"}},{key:"render",value:function(){return o.a.createElement("div",{id:this.getId(),className:this.props.className},o.a.createElement("div",{className:"slds-welcome-mat__info-badge-container"},o.a.createElement("img",{className:"slds-welcome-mat__info-badge",src:this.props.image,width:"50",height:"50",alt:""}),o.a.createElement(jn,{category:"action",name:"check",assistiveText:{label:this.getCompletedText()}})),this.props.children,this.props.isComplete?this.props.onCompleteRenderActions():null)}}])&&BD(t.prototype,n),r&&BD(t,r),i}(o.a.Component);WD.displayName="SLDSWelcomeMatBadge",WD.propTypes=KD,WD.defaultProps={isComplete:!1,variant:"steps"};var VD=WD;function zD(e){return(zD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function UD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UD(Object(n),!0).forEach((function(t){YD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function QD(e,t){return(QD=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function JD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$D(e);if(t){var o=$D(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ZD(this,n)}}function ZD(e,t){return!t||"object"!==zD(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $D(e){return($D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eA={assistiveText:i.a.shape({completedIcon:i.a.string}),className:i.a.oneOfType([i.a.array,i.a.object,i.a.string]),id:i.a.string,title:i.a.string,description:i.a.string,href:i.a.string,icon:i.a.node,isComplete:i.a.bool,variant:i.a.oneOf(["steps","info-only","splash","trailhead-connected"])},tA={assistiveText:{completedIcon:"Completed"},isComplete:!1,variant:"steps"},nA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QD(e,t)}(i,e);var t,n,r,a=JD(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).generatedId=u.a.generate(),t}return t=i,(n=[{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"render",value:function(){var e=GD(GD({},tA.assistiveText),this.props.assistiveText),t=o.a.createElement(o.a.Fragment,null,o.a.createElement("div",{className:l()("slds-media__figure","slds-media__figure_fixed-width","slds-align_absolute-center")},o.a.createElement("div",{className:"slds-welcome-mat__tile-figure"},o.a.createElement("div",{className:"slds-welcome-mat__tile-icon-container"},this.props.icon,this.props.isComplete&&"info-only"!==this.props.variant?o.a.createElement(jn,{assistiveText:{label:e.completedIcon},category:"action",name:"check",title:e.completedIcon}):null))),o.a.createElement("div",{className:"slds-media__body"},o.a.createElement("div",{className:"slds-welcome-mat__tile-body"},o.a.createElement("h3",{className:"slds-welcome-mat__tile-title"},this.props.title),o.a.createElement("p",{className:"slds-welcome-mat__tile-description"},this.props.description))));return o.a.createElement("div",{id:this.getId(),className:l()("slds-welcome-mat__tile","info-only"===this.props.variant?"slds-welcome-mat__tile_info-only":null,this.props.isComplete&&"info-only"!==this.props.variant?"slds-welcome-mat__tile_complete":null,this.props.className)},"info-only"===this.props.variant?o.a.createElement("div",{className:"slds-media"},t):o.a.createElement("a",{href:this.props.href,className:"slds-box slds-box_link slds-media"},t))}}])&&XD(t.prototype,n),r&&XD(t,r),i}(o.a.Component);nA.displayName="SLDSWelcomeMatTile",nA.propTypes=eA,nA.defaultProps=tA;var rA=nA;function oA(e){return function(e){if(Array.isArray(e))return aA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return aA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aA(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var iA=function(e){var t,n=e.subheadings,r=e.filteredOptions,o=oA(n),a={noSubHeaderType:[]};return o.forEach((function(e){e.id&&(a[e.id]=[e])})),r.forEach((function(e){a[e.type]?a[e.type].push(e):a.noSubHeaderType.push(e)})),(t=[]).concat.apply(t,oA(Object.values(a)))},sA=function(e){var t=e.action,n=e.event,r=e.eventName,o=e.data,a=e.customLog;a&&n?a({eventName:r,event:n,data:o}):t&&n?t(r)(n,o):console&&console.log&&console.log(r,n,o)}}])}));
|
|
3
|
+
//# sourceMappingURL=design-system-react-components.min.js.map
|