@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
34 lines • 1.13 MB
JavaScript
/*!
* design-system-react
* v0.10.3
* 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=163)}([function(t,exports){t.exports=e},function(e,exports,t){e.exports=t(166)()},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 c}),n.d(t,"e",function(){return s}),n.d(t,"f",function(){return i}),n.d(t,"g",function(){return l}),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 h}),n.d(t,"l",function(){return f}),n.d(t,"n",function(){return v}),n.d(t,"m",function(){return m}),n.d(t,"o",function(){return g}),n.d(t,"p",function(){return b}),n.d(t,"q",function(){return y}),n.d(t,"r",function(){return w}),n.d(t,"s",function(){return x}),n.d(t,"t",function(){return O}),n.d(t,"u",function(){return _}),n.d(t,"w",function(){return z}),n.d(t,"x",function(){return S}),n.d(t,"y",function(){return C}),n.d(t,"v",function(){return E}),n.d(t,"A",function(){return k}),n.d(t,"B",function(){return M}),n.d(t,"C",function(){return T}),n.d(t,"D",function(){return N}),n.d(t,"E",function(){return j}),n.d(t,"F",function(){return P}),n.d(t,"G",function(){return H}),n.d(t,"I",function(){return I}),n.d(t,"H",function(){return L}),n.d(t,"J",function(){return D}),n.d(t,"L",function(){return R}),n.d(t,"K",function(){return V}),n.d(t,"M",function(){return A}),n.d(t,"z",function(){return F}),n.d(t,"N",function(){return B}),n.d(t,"_8",function(){return q}),n.d(t,"_49",function(){return K}),n.d(t,"_38",function(){return W}),n.d(t,"O",function(){return U}),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 ce}),n.d(t,"_2",function(){return se}),n.d(t,"_3",function(){return ie}),n.d(t,"_4",function(){return le}),n.d(t,"_6",function(){return ue}),n.d(t,"_5",function(){return pe}),n.d(t,"_7",function(){return de}),n.d(t,"_9",function(){return he}),n.d(t,"_10",function(){return fe}),n.d(t,"_11",function(){return ve}),n.d(t,"_12",function(){return me}),n.d(t,"_13",function(){return ge}),n.d(t,"_14",function(){return be}),n.d(t,"_15",function(){return ye}),n.d(t,"_16",function(){return we}),n.d(t,"_17",function(){return xe}),n.d(t,"_19",function(){return Oe}),n.d(t,"_20",function(){return _e}),n.d(t,"_21",function(){return ze}),n.d(t,"_22",function(){return Se}),n.d(t,"_18",function(){return Ce}),n.d(t,"_23",function(){return Ee}),n.d(t,"_24",function(){return ke}),n.d(t,"_25",function(){return Me}),n.d(t,"_26",function(){return Te}),n.d(t,"_27",function(){return Ne}),n.d(t,"_29",function(){return je}),n.d(t,"_30",function(){return Pe}),n.d(t,"_31",function(){return He}),n.d(t,"_32",function(){return Ie}),n.d(t,"_33",function(){return Le}),n.d(t,"_28",function(){return De}),n.d(t,"_37",function(){return Re}),n.d(t,"_39",function(){return Ve}),n.d(t,"_40",function(){return Ae}),n.d(t,"_41",function(){return Fe}),n.d(t,"_42",function(){return Be}),n.d(t,"_43",function(){return qe}),n.d(t,"_34",function(){return Ke}),n.d(t,"_36",function(){return We}),n.d(t,"_35",function(){return Ue}),n.d(t,"_44",function(){return Ge}),n.d(t,"_48",function(){return Ye}),n.d(t,"_45",function(){return Qe}),n.d(t,"_46",function(){return Xe}),n.d(t,"_47",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}),n.d(t,"_54",function(){return nt}),n.d(t,"_55",function(){return rt}),n.d(t,"_56",function(){return ot}),n.d(t,"_57",function(){return at});var r="SLDSAccordion",o="SLDSAccordionPanel",a="SLDSAlert",c="SLDSAlertContainer",s="SLDSAppLauncher",i="SLDSAppLauncherSection",l="SLDSAppLauncherTile",u="SLDSAvatar",p="SLDSBrandBand",d="SLDSBreadcrumb",h="SLDSButton",f="SLDSButtonGroup",v="SLDSButtonStateful",m="SLDSButtonIcon",g="SLDSCard",b="SLDSCardBody",y="SLDSCardEmpty",w="SLDSCardFilter",x="SLDSCardFooter",O="SLDSCardHeader",_="SLDSCarousel",z="SLDSCarouselIndicators",S="SLDSCarouselItem",C="SLDSCarouselNavigators",E="SLDSCarouselAutoPlayButton",k="SLDSColorPicker",M="SLDSCombobox",T="SLDSDataTable",N="SLDSDataTableCell",j="SLDSDataTableColumn",P="SLDSDataTableHead",H="SLDSDataTableHeaderCell",I="SLDSDataTableRowActions",L="SLDSDataTableRow",D="SLDSDatePicker",R="SLDSDynamicIcon",V="SLDSDialog",A="SLDSFilter",F="SLDSCheckbox",B="SLDSInlineEdit",q="SLDSInput",K="SLDSTextarea",W="SLDSSearch",U="SLDSGlobalHeader",G="SLDSGlobalHeaderButton",Y="SLDSGlobalHeaderDropdown",Q="SLDSGlobalHeaderFavorites",X="SLDSGlobalHeaderHelp",J="SLDSGlobalHeaderNotifications",Z="SLDSGlobalHeaderProfile",ee="SLDSGlobalHeaderSearch",te="SLDSGlobalHeaderSetup",ne="SLDSGlobalHeaderTask",re="SLDSGlobalHeaderTool",oe="SLDSGlobalNavigationBar",ae="SLDSGlobalNavigationBarDropdown",ce="SLDSGlobalNavigationBarLink",se="SLDSGlobalNavigationBarRegion",ie="SLDSHighlighter",le="SLDSIcon",ue="SLDSIconSettings",pe="SLDSIconInput",de="SLDSIllustration",he="SLDSList",fe="SLDSListItem",ve="SLDSListItemLabel",me="SLDSLookup",ge="SLDSMediaObject",be="SLDSMenuDropdown",ye="SLDSMenuDropdownTrigger",we="SLDSMenuPicklist",xe="SLDSModal",Oe="SLDSPanel",_e="SLDSFilterGroup",ze="SLDSFilterList",Se="SLDSPanelFilterListHeading",Ce="SLDSPageHeader",Ee="SLDSPill",ke="SLDSPillContainer",Me="SLDSPopover",Te="SLDSPopoverEditDialog",Ne="SLDSPopoverTooltip",je="SLDSProgressIndicator",Pe="SLDSProgressIndicatorProgress",He="SLDSProgressIndicatorStep",Ie="SLDSProgressIndicatorStepVertical",Le="SLDSProgressRing",De="SLDSProgressBar",Re="SLDSScopedNotification",Ve="SLDSSlider",Ae="SLDSSpinner",Fe="SLDSSplitView",Be="SLDSSplitViewHeader",qe="SLDSSplitViewListbox",Ke="SLDSRadio",We="SLDSRadioGroup",Ue="SLDSRadioButtonGroup",Ge="SLDSTab",Ye="SLDSTabPanel",Qe="SLDSTabs",Xe="SLDSTabsList",Je="SLDSTabsPanel",$e="SLDSTimepicker",Ze="SLDSToast",et="SLDSToastContainer",tt="SLDSTree",nt="SLDSTreeBranch",rt="SLDSTreeItem",ot="SLDSVerticalNavigation",at="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 c=t.apply(null,r);c&&e.push(c)}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){f(e,t,n[t])})}return e}function c(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 i(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(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&&h(e,t)}function h(e,t){return(h=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 v=n(0),m=n.n(v),g=n(78),b=n.n(g),y=n(1),w=n.n(y),x=n(3),O=n.n(x),_=n(27),z=n(190),S=n(191),C=n.n(S),E=n(18),k=n(201),M=n(2),T={assistiveText:{icon:""},disabled:!1,hint:!1,iconSize:"medium",responsive:!1,type:"button",variant:"neutral"},N=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,s=new Array(r),i=0;i<r;i++)s[i]=arguments[i];return n=l(this,(e=u(t)).call.apply(e,[this].concat(s))),f(p(n),"getClassName",function(){var e,t="icon"===n.props.variant,r=n.props.iconVariant,o="more"===r,a="border"===r,c="global-header"===r,s="base"!==n.props.variant&&!r&&!n.props.inverse&&"link"!==n.props.variant||"bare"===r,i=n.props.inverse&&!t,l=n.props.inverse&&t&&!o&&!a,u=n.props.inverse&&o,p=n.props.inverse&&a;return"global-header"===r&&(r="container"),O()((e={"slds-button":"link"!==n.props.variant},f(e,"slds-button_".concat(n.props.variant),s),f(e,"slds-button_inverse",i),f(e,"slds-button_icon-inverse",l||u),f(e,"slds-button_icon-border-inverse",p),f(e,"slds-button_icon-".concat(r),r&&!p),f(e,"slds-global-header__button_icon",c),f(e,"slds-button_icon-".concat(n.props.iconSize),r&&"medium"!==n.props.iconSize),f(e,"slds-button_reset","link"===n.props.variant),f(e,"slds-text-link","link"===n.props.variant),e),n.props.className)}),f(p(n),"handleClick",function(e){n.props.onClick&&n.props.onClick(e,{})}),f(p(n),"renderIcon",function(e){var t=""===n.props.iconSize||n.props.iconVariant?null:n.props.iconSize;return m.a.createElement(_.a,{category:n.props.iconCategory||"utility",className:O()({"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})}),f(p(n),"renderLabel",function(){var e=n.props.iconName||n.props.iconPath,t="string"==typeof n.props.assistiveText?n.props.assistiveText:a({},T.assistiveText,n.props.assistiveText).icon;return e&&t?m.a.createElement("span",{className:"slds-assistive-text"},t):n.props.label}),f(p(n),"renderButton",function(){var e=Object(k.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(_.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)}),f(p(n),"renderTooltip",function(){return m.a.createElement(E.a,{content:n.props.tooltip},n.renderButton)}),n}return d(t,e),i(t,[{key:"componentWillMount",value:function(){Object(z.a)(M.k,this.props,C.a)}},{key:"render",value:function(){return this.props.tooltip?this.renderTooltip():this.renderButton()}}]),t}(m.a.Component);f(N,"displayName",M.k),f(N,"propTypes",{assistiveText:w.a.shape({icon:w.a.string}),buttonRef:w.a.func,className:w.a.oneOfType([w.a.array,w.a.object,w.a.string]),disabled:w.a.bool,hint:w.a.bool,iconCategory:b()(w.a.oneOf(["action","custom","doctype","standard","utility"]),function(e){return!!e.iconName}),iconClassName:w.a.oneOfType([w.a.array,w.a.object,w.a.string]),iconName:w.a.string,iconPath:w.a.string,iconPosition:w.a.oneOf(["left","right"]),iconSize:w.a.oneOf(["x-small","small","medium","large"]),iconVariant:w.a.oneOf(["bare","container","border","border-filled","brand","more","global-header"]),id:w.a.string,inverse:w.a.bool,label:w.a.oneOfType([w.a.string,w.a.node]),onBlur:w.a.func,onClick:w.a.func,onFocus:w.a.func,onKeyDown:w.a.func,onKeyPress:w.a.func,onKeyUp:w.a.func,onMouseDown:w.a.func,onMouseEnter:w.a.func,onMouseLeave:w.a.func,onMouseUp:w.a.func,responsive:w.a.bool,tabIndex:w.a.string,type:w.a.oneOf(["reset","submit","button"]),title:w.a.string,tooltip:w.a.node,variant:w.a.oneOf(["base","link","neutral","brand","outline-brand","destructive","success","text-destructive","icon"]),style:w.a.object}),f(N,"defaultProps",T),t.a=N},function(e,t,n){"use strict"},function(e,exports,t){"use strict";e.exports=t(174)},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),c=n.n(a),s=n(1),i=n.n(s),l=n(196),u=n(197),p=n.n(u),d=n(20),h=n(25),f=n(2),v={assistiveText:{},category:"standard",colorVariant:"default",size:"medium"},m=function(e){Object(l.a)(f._4,e,p.a);var t=e.category,n=e.className,a=e.colorVariant,s=e.containerClassName,i=e.icon,u=e.inverse,m=e.name,g=e.path,b=e.size,y=e.style,w=e.title,x="string"==typeof e.assistiveText?e.assistiveText:r({},v.assistiveText,e.assistiveText).label,O=m?m.replace(/_/g,"-"):"";return c.a.createElement("span",{className:Object(d.a)(o({"slds-icon_container":"utility"!==t,"slds-icon_container_circle":"action"===t},"slds-icon-".concat(t,"-").concat(O),"utility"!==t&&"doctype"!==t&&!g),s),title:w},c.a.createElement(h.a,{"aria-hidden":"true",category:t,className:Object(d.a)(n,"slds-icon",{"slds-icon_xx-small":"xx-small"===b,"slds-icon_x-small":"x-small"===b,"slds-icon_small":"small"===b,"slds-icon_large":"large"===b,"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:i,name:m,path:g,style:y}),x?c.a.createElement("span",{className:"slds-assistive-text"},x):"")};m.displayName=f._4,m.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]),colorVariant:i.a.oneOf(["base","default","error","light","warning"]),icon:i.a.object,inverse:i.a.bool,name:i.a.string,path:i.a.string,size:i.a.oneOf(["xx-small","x-small","small","medium","large"]),style:i.a.object,title:i.a.string},m.defaultProps=v,t.a=m},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=j(e)||d(e)?n(e.length,String):[],o=r.length,a=!!o;for(var c in e)!t&&!C.call(e,c)||a&&("length"==c||i(c,o))||r.push(c);return r}function o(e,t,n){var r=e[t];C.call(e,t)&&p(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function a(e){if(!u(e))return M(e);var t=[];for(var n in Object(e))C.call(e,n)&&"constructor"!=n&&t.push(n);return t}function c(e,n){return n=T(void 0===n?e.length-1:n,0),function(){for(var r=arguments,o=-1,a=T(r.length-n,0),c=Array(a);++o<a;)c[o]=r[n+o];o=-1;for(var s=Array(n+1);++o<n;)s[o]=r[o];return s[n]=c,t(e,this,s)}}function s(e,t,n,r){n||(n={});for(var a=-1,c=t.length;++a<c;){var s=t[a],i=r?r(n[s],e[s],s,n,e):void 0;o(n,s,void 0===i?e[s]:i)}return n}function i(e,t){return!!(t=null==t?w:t)&&("number"==typeof e||z.test(e))&&e>-1&&e%1==0&&e<t}function l(e,t,n){if(!g(n))return!1;var r=typeof t;return!!("number"==r?h(n)&&i(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||S)}function p(e,t){return e===t||e!==e&&t!==t}function d(e){return f(e)&&C.call(e,"callee")&&(!k.call(e,"callee")||E.call(e)==x)}function h(e){return null!=e&&m(e.length)&&!v(e)}function f(e){return b(e)&&h(e)}function v(e){var t=g(e)?E.call(e):"";return t==O||t==_}function m(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=w}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return!!e&&"object"==typeof e}function y(e){return h(e)?r(e):a(e)}var w=9007199254740991,x="[object Arguments]",O="[object Function]",_="[object GeneratorFunction]",z=/^(?:0|[1-9]\d*)$/,S=Object.prototype,C=S.hasOwnProperty,E=S.toString,k=S.propertyIsEnumerable,M=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),T=Math.max,N=!k.call({valueOf:1},"valueOf"),j=Array.isArray,P=function(e){return c(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,c=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,c&&l(n[0],n[1],c)&&(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(N||u(t)||h(t))return void s(t,y(t),e);for(var n in t)C.call(t,n)&&o(e,n,t[n])});e.exports=P},function(e,exports,t){(function(t){function n(e){return null==e?void 0===e?d:u:w&&w in Object(e)?r(e):o(e)}function r(e){var t=g.call(e,w),n=e[w];try{e[w]=void 0;var r=!0}catch(e){}var o=b.call(e);return r&&(t?e[w]=n:delete e[w]),o}function o(e){return b.call(e)}function a(e){if(!c(e))return!1;var t=n(e);return t==i||t==l||t==s||t==p}function c(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var s="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",u="[object Null]",p="[object Proxy]",d="[object Undefined]",h="object"==typeof t&&t&&t.Object===Object&&t,f="object"==typeof self&&self&&self.Object===Object&&self,v=h||f||Function("return this")(),m=Object.prototype,g=m.hasOwnProperty,b=m.toString,y=v.Symbol,w=y?y.toStringTag:void 0;e.exports=a}).call(exports,t(19))},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){f(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 c(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 i(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(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&&h(e,t)}function h(e,t){return(h=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 v=n(0),m=n.n(v),g=n(1),b=n.n(g),y=n(3),w=n.n(y),x=n(6),O=n.n(x),_=n(4),z=n(16),S=n(96),C=n(228),E=n(97),k=n(2),M=n(98),T=n.n(M),N=n(99),j="counter",P="Decrement",H="Increment",I={assistiveText:{decrement:"".concat(P," ").concat(j),increment:"".concat(H," ").concat(j)},type:"text"},L=function(e){function t(e){var n;return c(this,t),n=l(this,u(t).call(this,e)),f(p(n),"getId",function(){return n.props.id||n.generatedId}),f(p(n),"getErrorId",function(){return n.props["aria-describedby"]||n.generatedErrorId}),f(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}),f(p(n),"getCounterButtonIcon",function(e){var t=n.getValueAsNumber(),r=!1;return(n.props.disabled||e===H&&void 0!==n.props.maxValue&&t>=n.props.maxValue||e===P&&void 0!==n.props.minValue&&t<=n.props.minValue)&&(r=!0),m.a.createElement(_.a,{assistiveText:{icon:n.props.assistiveText[e.toLowerCase()]},className:w()("slds-button_icon-small","slds-input__button_".concat(e.toLowerCase())),disabled:r,iconCategory:"utility",iconName:e===P?"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"})}),f(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(z.a,a({iconPosition:e},o))),r}),f(p(n),"setInputRef",function(e){n.inputRef=e,n.props.inputRef&&n.props.inputRef(e)}),f(p(n),"handleChange",function(e){if(n.props.onChange){var t={value:e.target.value};n.props.variant===j&&(t.number=Number(t.value)),n.props.onChange(e,t)}}),f(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,c=n.getValueAsNumber(),s=!1;if(e===P&&void 0!==r&&c>r)c=Number(r),s=!0;else if(e===H&&void 0!==o&&c<o)c=Number(o),s=!0;else{var i=String(a).search(/\./)>=0?String(a).split(".")[1].length:0,l=0;void 0!==o&&(l=(c-o)%a),c=l>0?e===P?c-l:c+(a-l):e===P?c-a:c+a,c=Number(c.toFixed(i)),void 0!==r&&c>r||void 0!==o&&c<o||(s=!0)}s&&(void 0===n.props.value&&n.inputRef?(n.inputRef.value=String(c),n.forceUpdate()):n.props.onChange&&n.props.onChange(t,{number:c,value:String(c)})),e===H&&void 0!==r&&c>=r||e===P&&void 0!==o&&c<=o?n.stopStepping():n.stepping.timeout=setTimeout(function(){n.stepping.currentDelay=n.stepping.speedDelay,n.performStep(e)},n.stepping.currentDelay)}),f(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),i(t,[{key:"componentWillMount",value:function(){Object(E.a)(k._8,this.props,T.a),this.generatedId=O.a.generate(),this.props.errorText&&(this.generatedErrorId=O.a.generate())}},{key:"render",value:function(){var e=o({},I.assistiveText,this.props.assistiveText),t=this.props.variant===j?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!==j||this.props.isStatic||this.props.readOnly||(n=this.getCounterButtonIcon(P)),this.props.iconRight||"right"===this.props.iconPosition&&this.props.iconName?r=this.getIconRender("right","iconRight"):this.props.variant!==j||this.props.isStatic||this.props.readOnly||(r=this.getCounterButtonIcon(H)),m.a.createElement("div",{className:w()("slds-form-element",{"slds-has-error":this.props.errorText},this.props.className),style:this.props.styleContainer},m.a.createElement(C.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(N.a,{assistiveText:{triggerLearnMoreIcon:e.fieldLevelHelpButton},fieldLevelHelpTooltip:this.props.fieldLevelHelpTooltip}):null,m.a.createElement(S.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:w()({"slds-input_counter":this.props.variant===j,"slds-p-horizontal_none":this.props.variant===j&&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===j?"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);f(L,"displayName",k._8),f(L,"propTypes",{"aria-activedescendant":b.a.string,"aria-autocomplete":b.a.string,"aria-controls":b.a.string,"aria-describedby":b.a.string,"aria-expanded":b.a.bool,"aria-haspopup":b.a.bool,"aria-labelledby":b.a.string,"aria-owns":b.a.string,"aria-required":b.a.bool,assistiveText:b.a.shape({label:b.a.string,spinner:b.a.string}),autoComplete:b.a.string,children:b.a.node,className:b.a.oneOfType([b.a.array,b.a.object,b.a.string]),defaultValue:b.a.oneOfType([b.a.number,b.a.string]),disabled:b.a.bool,errorText:b.a.oneOfType([b.a.node,b.a.string]),fieldLevelHelpTooltip:b.a.node,fixedTextLeft:b.a.oneOfType([b.a.node,b.a.string]),fixedTextRight:b.a.oneOfType([b.a.node,b.a.string]),hasSpinner:b.a.bool,iconLeft:b.a.node,iconRight:b.a.node,id:b.a.string,inlineHelpText:b.a.oneOfType([b.a.node,b.a.string]),inputRef:b.a.func,isStatic:b.a.bool,label:b.a.string,onBlur:b.a.func,onChange:b.a.func,onClick:b.a.func,onFocus:b.a.func,onInput:b.a.func,onInvalid:b.a.func,onKeyDown:b.a.func,onKeyPress:b.a.func,onKeyUp:b.a.func,onSelect:b.a.func,onSubmit:b.a.func,placeholder:b.a.string,minLength:b.a.string,minValue:b.a.number,maxLength:b.a.string,maxValue:b.a.number,name:b.a.string,readOnly:b.a.bool,required:b.a.bool,role:b.a.string,step:b.a.number,styleInput:b.a.object,styleContainer:b.a.object,type:b.a.oneOf(["text","password","datetime","datetime-local","date","month","time","week","number","email","url","search","tel","color"]),value:b.a.oneOfType([b.a.number,b.a.string]),variant:b.a.oneOf(["base",j])}),f(L,"defaultProps",I),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=c(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 c(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),i=n.n(s),l=n(1),u=n.n(l),p=n(3),d=n.n(p),h=n(11),f=n.n(h),v=n(25),m=n(4),g=n(2),b=function(e){var t=e.category,n=e.iconPosition,c=e.name,s=e.path,l=e.onClick,u=e.variant,p=a(e,["category","iconPosition","name","path","onClick","variant"]),h={combobox:i.a.createElement("span",{className:"slds-icon_container slds-input__icon slds-input__icon_right"},i.a.createElement(v.a,o({"aria-hidden":!0,category:t,className:d()("slds-icon slds-icon_x-small slds-icon-text-default"),name:c,path:s},p))),base:i.a.createElement(v.a,o({"aria-hidden":!0,category:t,className:d()("slds-input__icon slds-icon-text-default",r({},"slds-input__icon_".concat(n),n)),name:c,path:s},p))};return f()(l)?i.a.createElement(m.a,o({className:d()("slds-input__icon",r({},"slds-input__icon_".concat(n),n)),iconCategory:t,iconName:c,iconPath:s,onClick:l,variant:"icon"},p)):h[u]};b.displayName=g._5,b.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"])},b.defaultProps={category:"utility",variant:"base"},t.a=b},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){h(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 c(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&&c(e.prototype,t),n&&c(e,n),e}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?u(e):t}function l(e){return(l=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 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 f=n(0),v=n.n(f),m=n(1),g=n.n(m),b=n(3),y=n.n(b),w=n(6),x=n.n(w),O=n(2),_=n(23),z=n(9),S=n(4),C=n(198),E=n(200),k=n.n(E),M=O._27,T={align:g.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]).isRequired,assistiveText:g.a.shape({tooltipTipLearnMoreIcon:g.a.string,triggerLearnMoreIcon:g.a.string}),children:g.a.node,content:g.a.node.isRequired,dialogClassName:g.a.oneOfType([g.a.array,g.a.object,g.a.string]),hasStaticAlignment:g.a.bool,hoverCloseDelay:g.a.number,id:g.a.string,labels:g.a.shape({learnMoreAfter:g.a.string,learnMoreBefore:g.a.string}),isOpen:g.a.bool,triggerClassName:g.a.oneOfType([g.a.array,g.a.object,g.a.string]),position:g.a.oneOf(["absolute","overflowBoundaryElement","relative"]),triggerStyle:g.a.object,theme:g.a.oneOf(["info","error"]),variant:g.a.oneOf(["base","learnMore"])},N={assistiveText:{tooltipTipLearnMoreIcon:"this link",triggerLearnMoreIcon:"Help"},align:"top",content:v.a.createElement("span",null,"Tooltip"),labels:{learnMoreAfter:"to learn more.",learnMoreBefore:"Click"},hoverCloseDelay:50,position:"absolute",theme:"info",variant:"base"},j=function(e){function t(e){var n;return a(this,t),n=i(this,l(t).call(this,e)),h(u(n),"handleCancel",function(){n.setState({isOpen:!1,isClosing:!1})}),h(u(n),"handleMouseEnter",function(){n.setState({isOpen:!0,isClosing:!1})}),h(u(n),"handleMouseLeave",function(){n.setState({isClosing:!0}),setTimeout(function(){!n.isUnmounting&&n.state.isClosing&&n.setState({isOpen:!1,isClosing:!1})},n.props.hoverCloseDelay)}),h(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(C.a)(O._27,this.props,k.a),this.generatedId=x.a.generate()}},{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"getContent",value:function(){var e,t=this,n=0===v.a.Children.count(this.props.children);return e=n&&this.props.onClickTrigger?[v.a.createElement("a",{href:"javascript:void(0)",onClick:this.props.onClickTrigger},v.a.createElement(z.a,{category:"utility",name:"info",assistiveText:{label:this.props.assistiveText.triggerLearnMoreIcon},size:"x-small"}))]:n?[v.a.createElement(S.a,{"aria-disabled":!0,assistiveText:{icon:this.props.assistiveText.triggerLearnMoreIcon},iconCategory:"utility",iconName:"info",variant:"icon"})]:this.props.children,v.a.Children.map(e,function(e,n){return v.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?v.a.createElement(_.a,{closeOnTabKey:!0,hasNubbin:!0,contentsClassName:y()("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()):v.a.createElement("span",null)}},{key:"getTooltipContent",value:function(){return v.a.createElement("div",{className:"slds-popover__body"},this.props.content,"learnMore"===this.props.variant&&this.props.onClickTrigger?v.a.createElement("div",{className:"slds-m-top_x-small","aria-hidden":"true"},this.props.labels.learnMoreBefore," ",v.a.createElement(z.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 v.a.createElement("div",{className:y()("slds-tooltip-trigger",this.props.triggerClassName),style:e,ref:this.saveTriggerRef},this.getContent(),this.getTooltip())}}]),t}(v.a.Component);j.contextTypes={iconPath:g.a.string},j.displayName=M,j.propTypes=T,j.defaultProps=N,t.a=j},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(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(104);t.a=Object(r.a)(o.a)},function(e,t,n){"use strict";var r=n(30),o=n(264);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){f(e,t,n[t])})}return e}function c(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 i(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),e}function l(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&&h(e,t)}function h(e,t){return(h=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 v=n(0),m=n.n(v),g=n(1),b=n.n(g),y=n(192),w=n(34),x=n.n(w),O=n(3),_=n.n(O),z=n(193),S=n(8),C=n(7),E=n(53),k=n(195),M=n(2),T=n(52),N=function(e){function t(){var e,n;c(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=l(this,(e=u(t)).call.apply(e,[this].concat(o))),f(p(n),"state",{triggerPopperJS:!1,isOpen:!1}),f(p(n),"getPropOffsetsInPixels",function(e){var t=e.split(" ");return{vertical:parseInt(t[0],10),horizontal:parseInt(t[1],10)}}),f(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(k.b)(n.state.popperData):{left:0,top:0},c=e.offsets.popper.left+o.left+r.horizontal,s=e.offsets.popper.top+o.top+r.vertical;return a({},e.style,{left:c,top:s,right:"inherit",position:t})}),f(p(n),"setDialogContent",function(e){n.dialogContent=e,n.state.triggerPopperJS||n.setState({triggerPopperJS:!0})}),f(p(n),"handleClickOutside",function(){n.handleClose()}),f(p(n),"handleClose",function(e,t){n.setState({triggerPopperJS:!0}),n.props.onClose&&n.props.onClose(e,t)}),f(p(n),"handleClick",function(e){e.nativeEvent&&(e.nativeEvent.preventDefault(),e.nativeEvent.stopPropagation())}),f(p(n),"handleKeyDown",function(e){e.keyCode===C.a.TAB&&n.props.closeOnTabKey&&(S.a.trap(e),n.handleClose(e)),n.props.onKeyDown&&n.props.onKeyDown(e)}),f(p(n),"handleOpen",function(){"popover"===n.props.variant&&n.dialogContent&&(E.a.storeActiveElement(),E.a.setupScopedFocus({ancestorElement:n.dialogContent}),E.a.hasOrAncestorHasFocus()||E.a.focusAncestor({isPortal:"overflowBoundaryElement"===n.props.position})),n.props.onOpen&&n.props.onOpen(void 0,{portal:n.dialogContent})}),f(p(n),"createPopper",function(){var e=n.props.onRequestTargetElement(),t=n.dialogContent,r=Object(k.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&&!x()(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 y.a(e,t,{placement:r,eventsEnabled:!0,modifiers:o}),n.popper.scheduleUpdate()}),f(p(n),"destroyPopper",function(){n.popper&&n.popper.destroy()}),n}return d(t,e),i(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&&(E.a.teardownScopedFocus(),E.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("section",o({className:_()(f({"absolute-positioned":"absolute"===this.props.position,"portal-positioned":"overflowBoundaryElement"===this.props.position},"".concat(this.props.outsideClickIgnoreClass),"overflowBoundaryElement"===this.props.position),this.props.hasNubbin&&Object(k.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),c={absolute:function(){return r},relative:function(){return r},overflowBoundaryElement:function(){var t=Object.keys(T.a.childContextTypes).filter(function(t){return Boolean(e.context[t])}).reduce(function(t,n){return a({},t,f({},n,e.context[n]))},{});return m.a.createElement(z.a,{onOpen:e.handleOpen,portalMount:e.props.portalMount},m.a.createElement(T.a,t,r))}};return c[this.props.position]&&c[this.props.position]()}}]),t}(m.a.Component);f(N,"displayName",M.K),f(N,"propTypes",{align:b.a.oneOf(["top","top left","top right","right","right top","right bottom","bottom","bottom left","bottom right","left","left top","left bottom"]),className:b.a.oneOfType([b.a.array,b.a.object,b.a.string]),contentsClassName:b.a.oneOfType([b.a.array,b.a.object,b.a.string]),children:b.a.node.isRequired,closeOnTabKey:b.a.bool,containerProps:b.a.object,hasNubbin:b.a.bool,hasStaticAlignment:b.a.bool,inheritWidthOf:b.a.oneOf(["target","menu","none"]),offset:b.a.string,onClose:b.a.func,onKeyDown:b.a.func,onMouseEnter:b.a.func,onMouseLeave:b.a.func,onOpen:b.a.func,onRequestTargetElement:b.a.func.isRequired,outsideClickIgnoreClass:b.a.string,portalMount:b.a.func,position:b.a.oneOf(["absolute","overflowBoundaryElement","relative"]).isRequired,style:b.a.object,variant:b.a.oneOf(["dropdown","popover","tooltip"])}),f(N,"defaultProps",{align:"bottom left",offset:"0px 0px",outsideClickIgnoreClass:"ignore-react-onclickoutside"}),N.contextTypes={iconPath:b.a.string},t.a=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,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 c(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?i(e):t}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e){return(l=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 h=n(0),f=n.n(h),v=n(1),m=n.n(v),g=n(3),b=n.n(g),y=n(2),w={base:"slds-media",figure:"slds-media__figure",body:"slds-media__body"},x=function(e){function t(){return o(this,t),s(this,l(t).apply(this,arguments))}return u(t,e),c(t,[{key:"render",value:function(){return f.a.createElement("div",{className:b()(w.base,{"slds-media_center":this.props.verticalCenter,"slds-has-flexi-truncate":this.props.canTruncate},this.props.className)},this.props.figure?f.a.createElement("div",{className:w.figure},this.props.figure," "):null,f.a.createElement("div",{className:w.body},this.props.body))}}]),t}(f.a.Component);d(x,"displayName",y._13),d(x,"propTypes",{canTrun