UNPKG

@salesforce/design-system-react

Version:

Salesforce Lightning Design System for React

34 lines 704 kB
/*! * design-system-react * v0.10.0 * Copyright (c) 2015-present, Salesforce.com, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the Salesforce.com nor the * names of its contributors may be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ !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)}("undefined"!=typeof self?self:this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(exports,e,n){t.o(exports,e)||Object.defineProperty(exports,e,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=157)}([function(t,exports){t.exports=e},function(e,exports,t){e.exports=t(160)()},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return i}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"h",function(){return u}),n.d(t,"i",function(){return p}),n.d(t,"j",function(){return d}),n.d(t,"k",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"n",function(){return b}),n.d(t,"m",function(){return m}),n.d(t,"o",function(){return y}),n.d(t,"p",function(){return g}),n.d(t,"q",function(){return v}),n.d(t,"r",function(){return O}),n.d(t,"s",function(){return _}),n.d(t,"t",function(){return S}),n.d(t,"u",function(){return w}),n.d(t,"w",function(){return x}),n.d(t,"x",function(){return C}),n.d(t,"y",function(){return E}),n.d(t,"v",function(){return k}),n.d(t,"A",function(){return T}),n.d(t,"B",function(){return N}),n.d(t,"C",function(){return j}),n.d(t,"D",function(){return P}),n.d(t,"E",function(){return I}),n.d(t,"F",function(){return D}),n.d(t,"G",function(){return R}),n.d(t,"I",function(){return A}),n.d(t,"H",function(){return L}),n.d(t,"J",function(){return F}),n.d(t,"K",function(){return B}),n.d(t,"L",function(){return M}),n.d(t,"z",function(){return q}),n.d(t,"M",function(){return H}),n.d(t,"_7",function(){return K}),n.d(t,"_45",function(){return W}),n.d(t,"_34",function(){return U}),n.d(t,"N",function(){return V}),n.d(t,"O",function(){return z}),n.d(t,"P",function(){return G}),n.d(t,"Q",function(){return Y}),n.d(t,"R",function(){return Q}),n.d(t,"S",function(){return X}),n.d(t,"T",function(){return J}),n.d(t,"U",function(){return Z}),n.d(t,"V",function(){return ee}),n.d(t,"W",function(){return te}),n.d(t,"X",function(){return ne}),n.d(t,"Y",function(){return re}),n.d(t,"Z",function(){return oe}),n.d(t,"_0",function(){return ae}),n.d(t,"_1",function(){return ie}),n.d(t,"_2",function(){return se}),n.d(t,"_3",function(){return le}),n.d(t,"_5",function(){return ce}),n.d(t,"_4",function(){return ue}),n.d(t,"_6",function(){return pe}),n.d(t,"_8",function(){return de}),n.d(t,"_9",function(){return fe}),n.d(t,"_10",function(){return he}),n.d(t,"_11",function(){return be}),n.d(t,"_12",function(){return me}),n.d(t,"_13",function(){return ye}),n.d(t,"_14",function(){return ge}),n.d(t,"_15",function(){return ve}),n.d(t,"_16",function(){return Oe}),n.d(t,"_18",function(){return _e}),n.d(t,"_19",function(){return Se}),n.d(t,"_20",function(){return we}),n.d(t,"_21",function(){return xe}),n.d(t,"_17",function(){return Ce}),n.d(t,"_22",function(){return Ee}),n.d(t,"_23",function(){return ke}),n.d(t,"_24",function(){return Te}),n.d(t,"_25",function(){return Ne}),n.d(t,"_26",function(){return je}),n.d(t,"_27",function(){return Pe}),n.d(t,"_28",function(){return Ie}),n.d(t,"_29",function(){return De}),n.d(t,"_30",function(){return Re}),n.d(t,"_35",function(){return Ae}),n.d(t,"_36",function(){return Le}),n.d(t,"_37",function(){return Fe}),n.d(t,"_38",function(){return Be}),n.d(t,"_39",function(){return Me}),n.d(t,"_31",function(){return qe}),n.d(t,"_33",function(){return He}),n.d(t,"_32",function(){return Ke}),n.d(t,"_40",function(){return We}),n.d(t,"_44",function(){return Ue}),n.d(t,"_41",function(){return Ve}),n.d(t,"_42",function(){return ze}),n.d(t,"_43",function(){return Ge}),n.d(t,"_46",function(){return Ye}),n.d(t,"_47",function(){return Qe}),n.d(t,"_48",function(){return Xe}),n.d(t,"_49",function(){return Je}),n.d(t,"_50",function(){return $e}),n.d(t,"_51",function(){return Ze}),n.d(t,"_52",function(){return et}),n.d(t,"_53",function(){return tt});var r="SLDSAccordion",o="SLDSAccordionPanel",a="SLDSAlert",i="SLDSAlertContainer",s="SLDSAppLauncher",l="SLDSAppLauncherSection",c="SLDSAppLauncherTile",u="SLDSAvatar",p="SLDSBrandBand",d="SLDSBreadcrumb",f="SLDSButton",h="SLDSButtonGroup",b="SLDSButtonStateful",m="SLDSButtonIcon",y="SLDSCard",g="SLDSCardBody",v="SLDSCardEmpty",O="SLDSCardFilter",_="SLDSCardFooter",S="SLDSCardHeader",w="SLDSCarousel",x="SLDSCarouselIndicators",C="SLDSCarouselItem",E="SLDSCarouselNavigators",k="SLDSCarouselAutoPlayButton",T="SLDSColorPicker",N="SLDSCombobox",j="SLDSDataTable",P="SLDSDataTableCell",I="SLDSDataTableColumn",D="SLDSDataTableHead",R="SLDSDataTableHeaderCell",A="SLDSDataTableRowActions",L="SLDSDataTableRow",F="SLDSDatePicker",B="SLDSDialog",M="SLDSFilter",q="SLDSCheckbox",H="SLDSInlineEdit",K="SLDSInput",W="SLDSTextarea",U="SLDSSearch",V="SLDSGlobalHeader",z="SLDSGlobalHeaderButton",G="SLDSGlobalHeaderDropdown",Y="SLDSGlobalHeaderFavorites",Q="SLDSGlobalHeaderHelp",X="SLDSGlobalHeaderNotifications",J="SLDSGlobalHeaderProfile",Z="SLDSGlobalHeaderSearch",ee="SLDSGlobalHeaderSetup",te="SLDSGlobalHeaderTask",ne="SLDSGlobalHeaderTool",re="SLDSGlobalNavigationBar",oe="SLDSGlobalNavigationBarDropdown",ae="SLDSGlobalNavigationBarLink",ie="SLDSGlobalNavigationBarRegion",se="SLDSHighlighter",le="SLDSIcon",ce="SLDSIconSettings",ue="SLDSIconInput",pe="SLDSIllustration",de="SLDSList",fe="SLDSListItem",he="SLDSListItemLabel",be="SLDSLookup",me="SLDSMediaObject",ye="SLDSMenuDropdown",ge="SLDSMenuDropdownTrigger",ve="SLDSMenuPicklist",Oe="SLDSModal",_e="SLDSPanel",Se="SLDSFilterGroup",we="SLDSFilterList",xe="SLDSPanelFilterListHeading",Ce="SLDSPageHeader",Ee="SLDSPill",ke="SLDSPillContainer",Te="SLDSPopover",Ne="SLDSPopoverTooltip",je="SLDSProgressIndicator",Pe="SLDSProgressIndicatorProgress",Ie="SLDSProgressIndicatorStep",De="SLDSProgressIndicatorStepVertical",Re="SLDSProgressRing",Ae="SLDSSlider",Le="SLDSSpinner",Fe="SLDSSplitView",Be="SLDSSplitViewHeader",Me="SLDSSplitViewListbox",qe="SLDSRadio",He="SLDSRadioGroup",Ke="SLDSRadioButtonGroup",We="SLDSTab",Ue="SLDSTabPanel",Ve="SLDSTabs",ze="SLDSTabsList",Ge="SLDSTabsPanel",Ye="SLDSTimepicker",Qe="SLDSToast",Xe="SLDSToastContainer",Je="SLDSTree",$e="SLDSTreeBranch",Ze="SLDSTreeItem",et="SLDSVerticalNavigation",tt="SLDSVerticalNavigationItem"},function(e,exports,t){var n,r;/*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function t(){for(var e=[],n=0;n<arguments.length;n++){var r=arguments[n];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=t.apply(null,r);i&&e.push(i)}else if("object"===a)for(var s in r)o.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}var o={}.hasOwnProperty;void 0!==e&&e.exports?(t.default=t,e.exports=t):(n=[],void 0!==(r=function(){return t}.apply(exports,n))&&(e.exports=r))}()},function(e,t,n){"use strict";function r(e){return(r="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(){return o=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.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=n(0),m=n.n(b),y=n(78),g=n.n(y),v=n(1),O=n.n(v),_=n(3),S=n.n(_),w=n(27),x=n(184),C=n(185),E=n.n(C),k=n(18),T=n(196),N=n(2),j={assistiveText:{icon:""},disabled:!1,hint:!1,iconSize:"medium",responsive:!1,type:"button",variant:"neutral"},P=function(e){function t(){var e,n;i(this,t);for(var r=arguments.length,s=new Array(r),l=0;l<r;l++)s[l]=arguments[l];return n=c(this,(e=u(t)).call.apply(e,[this].concat(s))),h(p(n),"getClassName",function(){var e,t="icon"===n.props.variant,r=n.props.iconVariant,o="more"===r,a="border"===r,i="global-header"===r,s="base"!==n.props.variant&&!r&&!n.props.inverse&&"link"!==n.props.variant||"bare"===r,l=n.props.inverse&&!t,c=n.props.inverse&&t&&!o&&!a,u=n.props.inverse&&o,p=n.props.inverse&&a;return"global-header"===r&&(r="container"),S()((e={"slds-button":"link"!==n.props.variant},h(e,"slds-button_".concat(n.props.variant),s),h(e,"slds-button_inverse",l),h(e,"slds-button_icon-inverse",c||u),h(e,"slds-button_icon-border-inverse",p),h(e,"slds-button_icon-".concat(r),r&&!p),h(e,"slds-global-header__button_icon",i),h(e,"slds-button_icon-".concat(n.props.iconSize),r&&"medium"!==n.props.iconSize),h(e,"slds-button_reset","link"===n.props.variant),h(e,"slds-text-link","link"===n.props.variant),e),n.props.className)}),h(p(n),"handleClick",function(e){n.props.onClick&&n.props.onClick(e,{})}),h(p(n),"renderIcon",function(e){var t=""===n.props.iconSize||n.props.iconVariant?null:n.props.iconSize;return m.a.createElement(w.a,{category:n.props.iconCategory||"utility",className:S()({"slds-global-header__icon":"global-header"===n.props.iconVariant},n.props.iconClassName),hint:n.props.hint,inverse:n.props.inverse,name:e,path:n.props.iconPath,position:n.props.iconPosition,size:t})}),h(p(n),"renderLabel",function(){var e=n.props.iconName||n.props.iconPath,t="string"==typeof n.props.assistiveText?n.props.assistiveText:a({},j.assistiveText,n.props.assistiveText).icon;return e&&t?m.a.createElement("span",{className:"slds-assistive-text"},t):n.props.label}),h(p(n),"renderButton",function(){var e=Object(T.a)(n.props);return m.a.createElement("button",o({className:n.getClassName(),disabled:n.props.disabled,id:n.props.id,onBlur:n.props.onBlur,onClick:n.handleClick,onFocus:n.props.onFocus,onKeyDown:n.props.onKeyDown,onKeyPress:n.props.onKeyPress,onKeyUp:n.props.onKeyUp,onMouseDown:n.props.onMouseDown,onMouseEnter:n.props.onMouseEnter,onMouseLeave:n.props.onMouseLeave,onMouseUp:n.props.onMouseUp,ref:function(e){n.props.buttonRef&&n.props.buttonRef(e)},tabIndex:n.props.tabIndex,title:n.props.title,type:n.props.type,style:n.props.style},e),"right"===n.props.iconPosition?n.renderLabel():null,n.props.iconName||n.props.iconPath?n.renderIcon(n.props.iconName):null,"more"===n.props.iconVariant?m.a.createElement(w.a,{category:"utility",name:"down",size:"x-small",className:n.props.iconClassName}):null,"left"!==n.props.iconPosition&&n.props.iconPosition?null:n.renderLabel(),n.props.children)}),h(p(n),"renderTooltip",function(){return m.a.createElement(k.a,{content:n.props.tooltip},n.renderButton)}),n}return d(t,e),l(t,[{key:"componentWillMount",value:function(){Object(x.a)(N.k,this.props,E.a)}},{key:"render",value:function(){return this.props.tooltip?this.renderTooltip():this.renderButton()}}]),t}(m.a.Component);h(P,"displayName",N.k),h(P,"propTypes",{assistiveText:O.a.shape({icon:O.a.string}),buttonRef:O.a.func,className:O.a.oneOfType([O.a.array,O.a.object,O.a.string]),disabled:O.a.bool,hint:O.a.bool,iconCategory:g()(O.a.oneOf(["action","custom","doctype","standard","utility"]),function(e){return!!e.iconName}),iconClassName:O.a.oneOfType([O.a.array,O.a.object,O.a.string]),iconName:O.a.string,iconPath:O.a.string,iconPosition:O.a.oneOf(["left","right"]),iconSize:O.a.oneOf(["x-small","small","medium","large"]),iconVariant:O.a.oneOf(["bare","container","border","border-filled","brand","more","global-header"]),id:O.a.string,inverse:O.a.bool,label:O.a.oneOfType([O.a.string,O.a.node]),onBlur:O.a.func,onClick:O.a.func,onFocus:O.a.func,onKeyDown:O.a.func,onKeyPress:O.a.func,onKeyUp:O.a.func,onMouseDown:O.a.func,onMouseEnter:O.a.func,onMouseLeave:O.a.func,onMouseUp:O.a.func,responsive:O.a.bool,tabIndex:O.a.string,type:O.a.oneOf(["reset","submit","button"]),title:O.a.string,tooltip:O.a.node,variant:O.a.oneOf(["base","link","neutral","brand","outline-brand","destructive","success","text-destructive","icon"]),style:O.a.object}),h(P,"defaultProps",j),t.a=P},function(e,exports,t){"use strict";e.exports=t(168)},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r={ENTER:13,ESCAPE:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,TAB:9,DELETE:46,BACKSPACE:8};t.a=r},function(e,t,n){"use strict";var r={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 r.trapEvent(e)},trapImmediate:function(e){e.stopImmediatePropagation&&e.stopImmediatePropagation(),e.nativeEvent&&e.nativeEvent.stopImmediatePropagation&&e.nativeEvent.stopImmediatePropagation(),r.trap(e)}};t.a=r},function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){o(e,t,n[t])})}return 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=n(0),i=n.n(a),s=n(1),l=n.n(s),c=n(190),u=n(191),p=n.n(u),d=n(21),f=n(25),h=n(2),b={assistiveText:{},category:"standard",colorVariant:"default",size:"medium"},m=function(e){Object(c.a)(h._3,e,p.a);var t=e.category,n=e.className,a=e.colorVariant,s=e.containerClassName,l=e.icon,u=e.inverse,m=e.name,y=e.path,g=e.size,v=e.style,O=e.title,_="string"==typeof e.assistiveText?e.assistiveText:r({},b.assistiveText,e.assistiveText).label,S=m?m.replace(/_/g,"-"):"";return i.a.createElement("span",{className:Object(d.a)(o({"slds-icon_container":"utility"!==t,"slds-icon_container_circle":"action"===t},"slds-icon-".concat(t,"-").concat(S),"utility"!==t&&"doctype"!==t&&!y),s),title:O},i.a.createElement(f.a,{"aria-hidden":"true",category:t,className:Object(d.a)(n,"slds-icon",{"slds-icon_xx-small":"xx-small"===g,"slds-icon_x-small":"x-small"===g,"slds-icon_small":"small"===g,"slds-icon_large":"large"===g,"slds-icon-text-default":"default"===a&&"utility"===t?!u:u,"slds-icon-text-warning":"warning"===a,"slds-icon-text-error":"error"===a,"slds-icon-text-light":"light"===a}),icon:l,name:m,path:y,style:v}),_?i.a.createElement("span",{className:"slds-assistive-text"},_):"")};m.displayName=h._3,m.propTypes={assistiveText:l.a.shape({label:l.a.string}),category:l.a.oneOf(["action","custom","doctype","standard","utility"]).isRequired,className:l.a.oneOfType([l.a.array,l.a.object,l.a.string]),containerClassName:l.a.oneOfType([l.a.array,l.a.object,l.a.string]),colorVariant:l.a.oneOf(["base","default","error","light","warning"]),icon:l.a.object,inverse:l.a.bool,name:l.a.string,path:l.a.string,size:l.a.oneOf(["xx-small","x-small","small","medium","large"]),style:l.a.object,title:l.a.string},m.defaultProps=b,t.a=m},function(e,exports,t){(function(t){function n(e){return null==e?void 0===e?d:u:O&&O in Object(e)?r(e):o(e)}function r(e){var t=y.call(e,O),n=e[O];try{e[O]=void 0;var r=!0}catch(e){}var o=g.call(e);return r&&(t?e[O]=n:delete e[O]),o}function o(e){return g.call(e)}function a(e){if(!i(e))return!1;var t=n(e);return t==l||t==c||t==s||t==p}function i(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var s="[object AsyncFunction]",l="[object Function]",c="[object GeneratorFunction]",u="[object Null]",p="[object Proxy]",d="[object Undefined]",f="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,b=f||h||Function("return this")(),m=Object.prototype,y=m.hasOwnProperty,g=m.toString,v=b.Symbol,O=v?v.toStringTag:void 0;e.exports=a}).call(exports,t(19))},function(e,exports){function t(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)}function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function r(e,t){var r=I(e)||d(e)?n(e.length,String):[],o=r.length,a=!!o;for(var i in e)!t&&!E.call(e,i)||a&&("length"==i||l(i,o))||r.push(i);return r}function o(e,t,n){var r=e[t];E.call(e,t)&&p(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function a(e){if(!u(e))return N(e);var t=[];for(var n in Object(e))E.call(e,n)&&"constructor"!=n&&t.push(n);return t}function i(e,n){return n=j(void 0===n?e.length-1:n,0),function(){for(var r=arguments,o=-1,a=j(r.length-n,0),i=Array(a);++o<a;)i[o]=r[n+o];o=-1;for(var s=Array(n+1);++o<n;)s[o]=r[o];return s[n]=i,t(e,this,s)}}function s(e,t,n,r){n||(n={});for(var a=-1,i=t.length;++a<i;){var s=t[a],l=r?r(n[s],e[s],s,n,e):void 0;o(n,s,void 0===l?e[s]:l)}return n}function l(e,t){return!!(t=null==t?O:t)&&("number"==typeof e||x.test(e))&&e>-1&&e%1==0&&e<t}function c(e,t,n){if(!y(n))return!1;var r=typeof t;return!!("number"==r?f(n)&&l(t,n.length):"string"==r&&t in n)&&p(n[t],e)}function u(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function p(e,t){return e===t||e!==e&&t!==t}function d(e){return h(e)&&E.call(e,"callee")&&(!T.call(e,"callee")||k.call(e)==_)}function f(e){return null!=e&&m(e.length)&&!b(e)}function h(e){return g(e)&&f(e)}function b(e){var t=y(e)?k.call(e):"";return t==S||t==w}function m(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=O}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){return!!e&&"object"==typeof e}function v(e){return f(e)?r(e):a(e)}var O=9007199254740991,_="[object Arguments]",S="[object Function]",w="[object GeneratorFunction]",x=/^(?:0|[1-9]\d*)$/,C=Object.prototype,E=C.hasOwnProperty,k=C.toString,T=C.propertyIsEnumerable,N=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),j=Math.max,P=!T.call({valueOf:1},"valueOf"),I=Array.isArray,D=function(e){return i(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&c(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var s=n[r];s&&e(t,s,r,a)}return t})}(function(e,t){if(P||u(t)||f(t))return void s(t,v(t),e);for(var n in t)E.call(t,n)&&o(e,n,t[n])});e.exports=D},function(e,t,n){"use strict";var r=n(14);n.n(r)},function(e,t,n){"use strict";var r=n(14);n.n(r)},function(e,exports,t){"use strict";var n=function(){};e.exports=n},function(e,t,n){"use strict";function r(e){return(r="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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function a(){return a=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},a.apply(this,arguments)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=n(0),m=n.n(b),y=n(1),g=n.n(y),v=n(3),O=n.n(v),_=n(5),S=n.n(_),w=n(4),x=n(16),C=n(95),E=n(223),k=n(96),T=n(2),N=n(97),j=n.n(N),P=n(98),I="counter",D="Decrement",R="Increment",A={assistiveText:{decrement:"".concat(D," ").concat(I),increment:"".concat(R," ").concat(I)},type:"text"},L=function(e){function t(e){var n;return i(this,t),n=c(this,u(t).call(this,e)),h(p(n),"getId",function(){return n.props.id||n.generatedId}),h(p(n),"getErrorId",function(){return n.props["aria-describedby"]||n.generatedErrorId}),h(p(n),"getValueAsNumber",function(){var e=0;return void 0!==n.props.value?e=Number(n.props.value):n.inputRef&&(e=Number(n.inputRef.value)),e}),h(p(n),"getCounterButtonIcon",function(e){var t=n.getValueAsNumber(),r=!1;return(n.props.disabled||e===R&&void 0!==n.props.maxValue&&t>=n.props.maxValue||e===D&&void 0!==n.props.minValue&&t<=n.props.minValue)&&(r=!0),m.a.createElement(w.a,{assistiveText:{icon:n.props.assistiveText[e.toLowerCase()]},className:O()("slds-button_icon-small","slds-input__button_".concat(e.toLowerCase())),disabled:r,iconCategory:"utility",iconName:e===D?"ban":"new",onKeyDown:function(t){13===t.keyCode&&n.performStep(e,t)},onKeyUp:n.stopStepping,onMouseDown:function(t){n.performStep(e,t)},onMouseLeave:n.stopStepping,onMouseUp:n.stopStepping,variant:"icon"})}),h(p(n),"getIconRender",function(e,t){var r,o={assistiveText:{icon:n.props[t]&&n.props[t].props.assistiveText||n.props.iconAssistiveText},category:n.props[t]&&n.props[t].props.category||n.props.iconCategory,name:n.props[t]&&n.props[t].props.name||n.props.iconName,onClick:n.props[t]&&n.props[t].props.onClick||n.props.onIconClick};return n.props[t]&&e&&n.props[t]?r=m.a.cloneElement(n.props[t],{iconPosition:"".concat(e)}):o.name&&(r=m.a.createElement(x.a,a({iconPosition:e},o))),r}),h(p(n),"setInputRef",function(e){n.inputRef=e,n.props.inputRef&&n.props.inputRef(e)}),h(p(n),"handleChange",function(e){if(n.props.onChange){var t={value:e.target.value};n.props.variant===I&&(t.number=Number(t.value)),n.props.onChange(e,t)}}),h(p(n),"performStep",function(e,t){clearTimeout(n.stepping.timeout);var r=n.props.maxValue,o=n.props.minValue,a=void 0!==n.props.step?Number(n.props.step):1,i=n.getValueAsNumber(),s=!1;if(e===D&&void 0!==r&&i>r)i=Number(r),s=!0;else if(e===R&&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===D?i-c:i+(a-c):e===D?i-a:i+a,i=Number(i.toFixed(l)),void 0!==r&&i>r||void 0!==o&&i<o||(s=!0)}s&&(void 0===n.props.value&&n.inputRef?(n.inputRef.value=String(i),n.forceUpdate()):n.props.onChange&&n.props.onChange(t,{number:i,value:String(i)})),e===R&&void 0!==r&&i>=r||e===D&&void 0!==o&&i<=o?n.stopStepping():n.stepping.timeout=setTimeout(function(){n.stepping.currentDelay=n.stepping.speedDelay,n.performStep(e)},n.stepping.currentDelay)}),h(p(n),"stopStepping",function(){clearTimeout(n.stepping.timeout),n.stepping.currentDelay=n.stepping.initialDelay}),n.inputRef=null,n.stepping={currentDelay:500,initialDelay:500,speedDelay:75,timeout:{}},n}return d(t,e),l(t,[{key:"componentWillMount",value:function(){Object(k.a)(T._7,this.props,j.a),this.generatedId=S.a.generate(),this.props.errorText&&(this.generatedErrorId=S.a.generate())}},{key:"render",value:function(){var e=o({},A.assistiveText,this.props.assistiveText),t=this.props.variant===I?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!==I||this.props.isStatic||this.props.readOnly||(n=this.getCounterButtonIcon(D)),this.props.iconRight||"right"===this.props.iconPosition&&this.props.iconName?r=this.getIconRender("right","iconRight"):this.props.variant!==I||this.props.isStatic||this.props.readOnly||(r=this.getCounterButtonIcon(R)),m.a.createElement("div",{className:O()("slds-form-element",{"slds-has-error":this.props.errorText},this.props.className),style:this.props.styleContainer},m.a.createElement(E.a,{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?m.a.createElement(P.a,{assistiveText:{triggerLearnMoreIcon:e.fieldLevelHelpButton},fieldLevelHelpTooltip:this.props.fieldLevelHelpTooltip}):null,m.a.createElement(C.a,{"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:O()({"slds-input_counter":this.props.variant===I,"slds-p-horizontal_none":this.props.variant===I&&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,inlineHelpText:this.props.inlineHelpText,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===I?"number":this.props.type,value:this.props.value,variant:this.props.variant,step:this.props.step,style:this.props.styleInput}),this.props.errorText&&m.a.createElement("div",{id:this.getErrorId(),className:"slds-form-element__help"},this.props.errorText),this.props.children)}}]),t}(m.a.Component);h(L,"displayName",T._7),h(L,"propTypes",{"aria-activedescendant":g.a.string,"aria-autocomplete":g.a.string,"aria-controls":g.a.string,"aria-describedby":g.a.string,"aria-expanded":g.a.bool,"aria-haspopup":g.a.bool,"aria-labelledby":g.a.string,"aria-owns":g.a.string,"aria-required":g.a.bool,assistiveText:g.a.shape({label:g.a.string,spinner:g.a.string}),autoComplete:g.a.string,children:g.a.node,className:g.a.oneOfType([g.a.array,g.a.object,g.a.string]),defaultValue:g.a.oneOfType([g.a.number,g.a.string]),disabled:g.a.bool,errorText:g.a.oneOfType([g.a.node,g.a.string]),fieldLevelHelpTooltip:g.a.node,fixedTextLeft:g.a.oneOfType([g.a.node,g.a.string]),fixedTextRight:g.a.oneOfType([g.a.node,g.a.string]),hasSpinner:g.a.bool,iconLeft:g.a.node,iconRight:g.a.node,id:g.a.string,inlineHelpText:g.a.oneOfType([g.a.node,g.a.string]),inputRef:g.a.func,isStatic:g.a.bool,label:g.a.string,onBlur:g.a.func,onChange:g.a.func,onClick:g.a.func,onFocus:g.a.func,onInput:g.a.func,onInvalid:g.a.func,onKeyDown:g.a.func,onKeyPress:g.a.func,onKeyUp:g.a.func,onSelect:g.a.func,onSubmit:g.a.func,placeholder:g.a.string,minLength:g.a.string,minValue:g.a.number,maxLength:g.a.string,maxValue:g.a.number,name:g.a.string,readOnly:g.a.bool,required:g.a.bool,role:g.a.string,step:g.a.number,styleInput:g.a.object,styleContainer:g.a.object,type:g.a.oneOf(["text","password","datetime","datetime-local","date","month","time","week","number","email","url","search","tel","color"]),value:g.a.oneOfType([g.a.number,g.a.string]),variant:g.a.oneOf(["base",I])}),h(L,"defaultProps",A),t.a=L},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return o=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.apply(this,arguments)}function a(e,t){if(null==e)return{};var n,r,o=i(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 i(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}var s=n(0),l=n.n(s),c=n(1),u=n.n(c),p=n(3),d=n.n(p),f=n(10),h=n.n(f),b=n(25),m=n(4),y=n(2),g=function(e){var t=e.category,n=e.iconPosition,i=e.name,s=e.path,c=e.onClick,u=e.variant,p=a(e,["category","iconPosition","name","path","onClick","variant"]),f={combobox:l.a.createElement("span",{className:"slds-icon_container slds-input__icon slds-input__icon_right"},l.a.createElement(b.a,o({"aria-hidden":!0,category:t,className:d()("slds-icon slds-icon_x-small slds-icon-text-default"),name:i,path:s},p))),base:l.a.createElement(b.a,o({"aria-hidden":!0,category:t,className:d()("slds-input__icon slds-icon-text-default",r({},"slds-input__icon_".concat(n),n)),name:i,path:s},p))};return h()(c)?l.a.createElement(m.a,o({className:d()("slds-input__icon",r({},"slds-input__icon_".concat(n),n)),iconCategory:t,iconName:i,iconPath:s,onClick:c,variant:"icon"},p)):f[u]};g.displayName=y._4,g.propTypes={category:u.a.string,iconPosition:u.a.oneOf(["left","right"]),name:u.a.string,path:u.a.string,onClick:u.a.func,variant:u.a.oneOf(["base","combobox"])},g.defaultProps={category:"utility",variant:"base"},t.a=g},function(e,exports){e.exports=t},function(e,t,n){"use strict";function r(e){return(r="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){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){f(e,t,n[t])})}return e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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,n){return t&&i(e.prototype,t),n&&i(e,n),e}function l(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?u(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(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)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var h=n(0),b=n.n(h),m=n(1),y=n.n(m),g=n(3),v=n.n(g),O=n(5),_=n.n(O),S=n(2),w=n(23),x=n(9),C=n(4),E=n(192),k=n(195),T=n.n(k),N=S._25,j={align:y.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]).isRequired,assistiveText:y.a.shape({tooltipTipLearnMoreIcon:y.a.string,triggerLearnMoreIcon:y.a.string}),children:y.a.node,content:y.a.node.isRequired,dialogClassName:y.a.oneOfType([y.a.array,y.a.object,y.a.string]),hasStaticAlignment:y.a.bool,hoverCloseDelay:y.a.number,id:y.a.string,labels:y.a.shape({learnMoreAfter:y.a.string,learnMoreBefore:y.a.string}),isOpen:y.a.bool,triggerClassName:y.a.oneOfType([y.a.array,y.a.object,y.a.string]),position:y.a.oneOf(["absolute","overflowBoundaryElement","relative"]),triggerStyle:y.a.object,theme:y.a.oneOf(["info","error"]),variant:y.a.oneOf(["base","learnMore"])},P={assistiveText:{tooltipTipLearnMoreIcon:"this link",triggerLearnMoreIcon:"Help"},align:"top",content:b.a.createElement("span",null,"Tooltip"),labels:{learnMoreAfter:"to learn more.",learnMoreBefore:"Click"},hoverCloseDelay:50,position:"absolute",theme:"info",variant:"base"},I=function(e){function t(e){var n;return a(this,t),n=l(this,c(t).call(this,e)),f(u(n),"handleCancel",function(){n.setState({isOpen:!1,isClosing:!1})}),f(u(n),"handleMouseEnter",function(){n.setState({isOpen:!0,isClosing:!1})}),f(u(n),"handleMouseLeave",function(){n.setState({isClosing:!0}),setTimeout(function(){!n.isUnmounting&&n.state.isClosing&&n.setState({isOpen:!1,isClosing:!1})},n.props.hoverCloseDelay)}),f(u(n),"saveTriggerRef",function(e){n.trigger=e,n.state.triggerRendered||n.setState({triggerRendered:!0})}),n.state={isClosing:!1,isOpen:!1},n}return p(t,e),s(t,[{key:"componentWillMount",value:function(){Object(E.a)(S._25,this.props,T.a),this.generatedId=_.a.generate()}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"getContent",value:function(){var e,t=this,n=0===b.a.Children.count(this.props.children);return e=n&&this.props.onClickTrigger?[b.a.createElement("a",{href:"javascript:void(0)",onClick:this.props.onClickTrigger},b.a.createElement(x.a,{category:"utility",name:"info",assistiveText:{label:this.props.assistiveText.triggerLearnMoreIcon},size:"x-small"}))]:n?[b.a.createElement(C.a,{"aria-disabled":!0,assistiveText:{icon:this.props.assistiveText.triggerLearnMoreIcon},iconCategory:"utility",iconName:"info",variant:"icon"})]:this.props.children,b.a.Children.map(e,function(e,n){return b.a.cloneElement(e,{key:n,"aria-describedby":t.getId(),onBlur:t.handleMouseLeave,onFocus:t.handleMouseEnter,onMouseEnter:t.handleMouseEnter,onMouseLeave:t.handleMouseLeave})})}},{key:"getId",value:function(){return this.props.id||this.generatedId}},{key:"getTooltip",value:function(){var e=this,t=void 0===this.props.isOpen?this.state.isOpen:this.props.isOpen,n=this.props.align,r="error"===this.props.variant;return t?b.a.createElement(w.a,{closeOnTabKey:!0,hasNubbin:!0,contentsClassName:v()("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()):b.a.createElement("span",null)}},{key:"getTooltipContent",value:function(){return b.a.createElement("div",{className:"slds-popover__body"},this.props.content,"learnMore"===this.props.variant&&this.props.onClickTrigger?b.a.createElement("div",{className:"slds-m-top_x-small","aria-hidden":"true"},this.props.labels.learnMoreBefore," ",b.a.createElement(x.a,{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.target?this.props.target:this.trigger}},{key:"render",value:function(){var e=o({display:"inline-block"},this.props.triggerStyle);return b.a.createElement("div",{className:v()("slds-tooltip-trigger",this.props.triggerClassName),style:e,ref:this.saveTriggerRef},this.getContent(),this.getTooltip())}}]),t}(b.a.Component);I.contextTypes={iconPath:y.a.string},I.displayName=N,I.propTypes=j,I.defaultProps=P,t.a=I},function(e,exports){var t;t=function(){return this}();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t},function(e,t,n){"use strict";var r=n(30),o=n(243);t.a=Object(r.a)(o.a)},function(e,t,n){"use strict";var r=n(3),o=n.n(r),a=function(){var e=o.a.apply(void 0,arguments);return""===e?void 0:e};t.a=a},function(e,t,n){"use strict";var r=n(30),o=n(258);t.a=Object(r.a)(o.a)},function(e,t,n){"use strict";function r(e){return(r="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(){return o=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.apply(this,arguments)}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){h(e,t,n[t])})}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 l(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?p(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(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&&f(e,t)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=n(0),m=n.n(b),y=n(1),g=n.n(y),v=n(186),O=n(34),_=n.n(O),S=n(3),w=n.n(S),x=n(187),C=n(8),E=n(7),k=n(51),T=n(189),N=n(2),j=n(50),P=function(e){function t(){var e,n;i(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=c(this,(e=u(t)).call.apply(e,[this].concat(o))),h(p(n),"state",{triggerPopperJS:!1,isOpen:!1}),h(p(n),"getPropOffsetsInPixels",function(e){var t=e.split(" ");return{vertical:parseInt(t[0],10),horizontal:parseInt(t[1],10)}}),h(p(n),"getPopperStyles",function(){var e=n.state.popperData;if(!n.popper||!e)return{position:"absolute",pointerEvents:"none"};var t=e.offsets.popper.position,r=n.getPropOffsetsInPixels(n.props.offset),o=n.props.hasNubbin?Object(T.b)(n.state.popperData):{left:0,top:0},i=e.offsets.popper.left+o.left+r.horizontal,s=e.offsets.popper.top+o.top+r.vertical;return a({},e.style,{left:i,top:s,right:"inherit",position:t})}),h(p(n),"setDialogContent",function(e){n.dialogContent=e,n.state.triggerPopperJS||n.setState({triggerPopperJS:!0})}),h(p(n),"handleClickOutside",function(){n.handleClose()}),h(p(n),"handleClose",function(e,t){n.setState({triggerPopperJS:!0}),n.props.onClose&&n.props.onClose(e,t)}),h(p(n),"handleClick",function(e){e.nativeEvent&&(e.nativeEvent.preventDefault(),e.nativeEvent.stopPropagation())}),h(p(n),"handleKeyDown",function(e){e.keyCode===E.a.TAB&&n.props.closeOnTabKey&&(C.a.trap(e),n.handleClose(e)),n.props.onKeyDown&&n.props.onKeyDown(e)}),h(p(n),"handleOpen",function(){"popover"===n.props.variant&&n.dialogContent&&(k.a.storeActiveElement(),k.a.setupScopedFocus({ancestorElement:n.dialogContent}),k.a.hasOrAncestorHasFocus()||k.a.focusAncestor({isPortal:"overflowBoundaryElement"===n.props.position})),n.props.onOpen&&n.props.onOpen(void 0,{portal:n.dialogContent})}),h(p(n),"createPopper",function(){var e=n.props.onRequestTargetElement(),t=n.dialogContent,r=Object(T.c)(n.props.align),o={applyStyle:{enabled:!1},preventOverflow:{enabled:!n.props.hasStaticAlignment,boundariesElement:"absolute"===n.props.position?"scrollParent":"viewport"},hide:{enabled:!1},flip:{enabled:!n.props.hasStaticAlignment},removeOnDestroy:!0,updateState:{enabled:!0,order:900,fn:function(e){return(n.state.popperData&&!_()(e.offsets,n.state.popperData.offsets)||!n.state.popperData)&&n.setState({popperData:e}),e}}};e||console.error("Target node not found!",e),t||console.error("Popper node not found!",t),n.popper=new v.a(e,t,{placement:r,eventsEnabled:!0,modifiers:o}),n.popper.scheduleUpdate()}),h(p(n),"destroyPopper",function(){n.popper&&n.popper.destroy()}),n}return d(t,e),l(t,[{key:"componentDidMount",value:function(){"absolute"!==this.props.position&&"relative"!==this.props.position||this.handleOpen()}},{key:"componentWillUpdate",value:function(){this.popper&&this.popper.scheduleUpdate()}},{key:"componentDidUpdate",value:function(e,t){!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&&(k.a.teardownScopedFocus(),k.a.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=a({},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=a({},t,this.props.style);var r=m.a.createElement("div",o({className:w()(h({"absolute-positioned":"absolute"===this.props.position,"portal-positioned":"overflowBoundaryElement"===this.props.position},"".concat(this.props.outsideClickIgnoreClass),"overflowBoundaryElement"===this.props.position),this.props.hasNubbin&&Object(T.a)(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 r},relative:function(){return r},overflowBoundaryElement:function(){var t=Object.keys(j.a.childContextTypes).filter(function(t){return Boolean(e.context[t])}).reduce(function(t,n){return a({},t,h({},n,e.context[n]))},{});return m.a.createElement(x.a,{onOpen:e.handleOpen,portalMount:e.props.portalMount},m.a.createElement(j.a,t,r))}};return i[this.props.position]&&i[this.props.position]()}}]),t}(m.a.Component);h(P,"displayName",N.K),h(P,"propTypes",{align:g.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]),className:g.a.oneOfType([g.a.array,g.a.object,g.a.string]),contentsClassName:g.a.oneOfType([g.a.array,g.a.object,g.a.string]),children:g.a.node.isRequired,closeOnTabKey:g.a.bool,containerProps:g.a.object,hasNubbin:g.a.bool,hasStaticAlignment:g.a.bool,inheritWidthOf:g.a.oneOf(["target","menu","none"]),offset:g.a.string,onClose:g.a.func,onKeyDown:g.a.func,onMouseEnter:g.a.func,onMouseLeave:g.a.func,onOpen:g.a.func,onRequestTargetElement:g.a.func.isRequired,outsideClickIgnoreClass:g.a.string,portalMount:g.a.func,position:g.a.oneOf(["absolute","overflowBoundaryElement","relative"]).isRequired,style:g.a.object,variant:g.a.oneOf(["dropdown","popover","tooltip"])}),h(P,"defaultProps",{align:"bottom left",offset:"0px 0px",outsideClickIgnoreClass:"ignore-react-onclickoutside"}),P.contextTypes={iconPath:g.a.string},t.a=P},function(e,t,n){"use strict";function r(e){return(r="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 a(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 i(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function s(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?l(e):t}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(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)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f=n(0),h=n.n(f),b=n(1),m=n.n(b),y=n(3),g=n.n(y),v=n(2),O={base:"slds-media",figure:"slds-media__figure",body:"slds-media__body"},_=function(e){function t(){return o(this,t),s(this,c(t).apply(this,arguments))}return u(t,e),i(t,[{key:"render",value:function(){return h.a.createElement("div",{className:g()(O.base,{"slds-media_center":this.props.verticalCenter,"slds-has-flexi-truncate":this.props.canTruncate},this.props.className)},this.props.figure?h.a.createElement("div",{className:O.figure},this.props.figure," "):null,h.a.createElement("div",{className:O.body},this.props.body))}}]),t}(h.a.Component);d(_,"displayName",v._12),d(_,"propTypes",{canTruncate:m.a.bool,className:m.a.oneOfType([m.a.array,m.a.object,m.a.string]),body:m.a.node,figure:m.a.node,verticalCenter:m.a.bool}),t.a=_},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.len