text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],{545:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(533),o=a.n(r),i=a(10),l=a.n(i),c=a(526),p=a.n(c);n.a=function(e){var n=e.className,a=e.children,t=o()(e,["className","children"]);return l.a.createElement("fieldset",s()({},t,{className:p()(n,"form-fieldset")}),a)}},548:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(533),o=a.n(r),i=a(10),l=a.n(i),c=a(526),p=a.n(c);n.a=function(e){var n=e.className,a=e.children,t=o()(e,["className","children"]);return l.a.createElement("h3",s()({},t,{className:p()(n,"form-section-heading")}),a)}},550:function(e,n,a){"use strict";var t=a(10),s=a.n(t),r=a(12),o=a.n(r),i=a(526),l=a.n(i),c=a(534),p=a.n(c),d=function(e){var n=e.text,a=e.type,t=void 0===a?"input-validation":a;return s.a.createElement("div",{className:l()("field-error","field-error__".concat(t))},s.a.createElement(p.a,{size:24,icon:"notice-outline"})," ",s.a.createElement("span",null,n))};d.propTypes={text:o.a.string.isRequired,type:o.a.string},n.a=d},551:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(107),o=a.n(r),i=a(108),l=a.n(i),c=a(528),p=a.n(c),d=a(527),u=a.n(d),m=a(531),h=a.n(m),f=a(529),b=a.n(f),v=a(34),y=a.n(v),g=a(12),C=a.n(g),N=a(10),k=a.n(N),E=a(1),_=a(628),x=a(148),B=a.n(x),O=a(526),T=a.n(O),A=function(e){function n(){var e,a;o()(this,n);for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return a=p()(this,(e=u()(n)).call.apply(e,[this].concat(s))),y()(h()(a),"_onButtonClick",function(e){e.onClick?e.onClick(a._close.bind(h()(a),e.action)):a._close(e.action)}),y()(h()(a),"_close",function(e){a.props.onDialogClose&&a.props.onDialogClose(e)}),a}return b()(n,e),l()(n,[{key:"render",value:function(){var e=this.props,n=e.additionalClassNames,a=e.isBackdropVisible,t=e.baseClassName,s=e.isFullScreen,r=e.shouldCloseOnEsc,o=t+"__content",i=T()(t,"card",n),l=T()(t+"__backdrop",{"is-full-screen":!!s,"is-hidden":!a});return k.a.createElement(B.a,{isOpen:this.props.isVisible,onRequestClose:this._close,closeTimeoutMS:this.props.leaveTimeout,contentLabel:this.props.label,appElement:document.getElementById("wpcom"),overlayClassName:l,className:i,htmlOpenClassName:"ReactModal__Html--open",role:"dialog",shouldCloseOnEsc:r},k.a.createElement("div",{className:T()(this.props.className,o),tabIndex:"-1"},this.props.children),this._renderButtonsBar())}},{key:"_renderButtonsBar",value:function(){var e=this.props.baseClassName+"__action-buttons";return this.props.buttons?k.a.createElement("div",{className:e},this.props.buttons.map(this._renderButton,this)):null}},{key:"_renderButton",value:function(e,n){if(k.a.isValidElement(e))return k.a.cloneElement(e,{key:"dialog-button-"+n});var a=this._getButtonClasses(e),t=this._onButtonClick.bind(this,e);return k.a.createElement("button",{key:e.action,className:a,"data-e2e-button":e.action,"data-tip-target":"dialog-base-action-".concat(e.action),onClick:t,disabled:!!e.disabled},k.a.createElement("span",{className:this.props.baseClassName+"__button-label"},e.label))}},{key:"_getButtonClasses",value:function(e){var n=e.className||"button";return(e.isPrimary||1===this.props.buttons.length)&&(n+=" is-primary"),e.additionalClassNames&&(n+=" "+e.additionalClassNames),n}}]),n}(N.Component);y()(A,"propTypes",{additionalClassNames:C.a.oneOfType([C.a.object,C.a.string]),autoFocus:C.a.bool,baseClassName:C.a.string,buttons:C.a.array,className:C.a.string,isBackdropVisible:C.a.bool,isFullScreen:C.a.bool,isVisible:C.a.bool,label:C.a.string,leaveTimeout:C.a.number,onDialogClose:C.a.func,shouldCloseOnEsc:C.a.bool}),y()(A,"defaultProps",{baseClassName:"dialog",isBackdropVisible:!0,isFullScreen:!0,autoFocus:!0,label:""});var w=A,R=function(e){function n(){var e,a;o()(this,n);for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return a=p()(this,(e=u()(n)).call.apply(e,[this].concat(s))),y()(h()(a),"checkOnClosed",function(e){null===e&&Object(E.defer)(a.props.onClosed)}),y()(h()(a),"onDialogClose",function(e){a.props.onClose&&a.props.onClose(e)}),a}return b()(n,e),l()(n,[{key:"render",value:function(){return k.a.createElement(_.a,null,k.a.createElement(w,s()({},this.props,{ref:this.checkOnClosed,key:"dialog",onDialogClose:this.onDialogClose})))}}]),n}(N.Component);y()(R,"propTypes",{isVisible:C.a.bool,baseClassName:C.a.string,leaveTimeout:C.a.number,onClose:C.a.func,onClosed:C.a.func,shouldCloseOnEsc:C.a.bool}),y()(R,"defaultProps",{isVisible:!1,leaveTimeout:200,onClosed:E.noop});n.a=R},554:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(533),o=a.n(r),i=a(10),l=a.n(i),c=a(526),p=a.n(c);n.a=function(e){var n=e.className,a=e.children,t=o()(e,["className","children"]);return l.a.createElement("legend",s()({},t,{className:p()(n,"form-legend")}),a)}},558:function(e,n,a){"use strict";a.d(n,"a",function(){return _});var t=a(530),s=a.n(t),r=a(107),o=a.n(r),i=a(108),l=a.n(i),c=a(528),p=a.n(c),d=a(527),u=a.n(d),m=a(529),h=a.n(m),f=a(34),b=a.n(f),v=a(10),y=a.n(v),g=a(12),C=a.n(g),N=a(526),k=a.n(N),E=a(1),_=function(e){function n(){return o()(this,n),p()(this,u()(n).apply(this,arguments))}return h()(n,e),l()(n,[{key:"render",value:function(){var e=k()(this.props.className,"form-setting-explanation",{"no-validate":this.props.noValidate,"is-indented":this.props.isIndented});return y.a.createElement("p",s()({},Object(E.omit)(this.props,"className","noValidate","isIndented"),{className:e}),this.props.children)}}]),n}(y.a.Component);b()(_,"displayName","FormSettingExplanation"),b()(_,"propTypes",{noValidate:C.a.bool,isIndented:C.a.bool,className:C.a.string}),b()(_,"defaultProps",{noValidate:!1,isIndented:!1})},559:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(533),o=a.n(r),i=a(107),l=a.n(i),c=a(108),p=a.n(c),d=a(528),u=a.n(d),m=a(527),h=a.n(m),f=a(529),b=a.n(f),v=a(34),y=a.n(v),g=a(10),C=a.n(g),N=a(526),k=a.n(N),E=a(534),_=a.n(E),x=a(12),B=a.n(x),O=function(e){var n=e.className,a=e.compact,t=e.displayAsLink,s=e.highlight,r=e.href,o=e.onClick;return k()("card",n,{"is-card-link":t||!!r,"is-clickable":!!o,"is-compact":a,"is-highlight":s},!!s&&"is-"+s)},T=function(e){function n(){return l()(this,n),u()(this,h()(n).apply(this,arguments))}return b()(n,e),p()(n,[{key:"render",value:function(){var e=this.props,n=e.children,a=(e.compact,e.displayAsLink),t=(e.highlight,e.tagName),r=e.href,i=e.target,l=o()(e,["children","compact","displayAsLink","highlight","tagName","href","target"]);return r?C.a.createElement("a",s()({},l,{href:r,target:i,className:O(this.props)}),C.a.createElement(_.a,{className:"card__link-indicator",icon:i?"external":"chevron-right"}),n):C.a.createElement(t,s()({},l,{className:O(this.props)}),a&&C.a.createElement(_.a,{className:"card__link-indicator",icon:i?"external":"chevron-right"}),n)}}]),n}(g.PureComponent);y()(T,"propTypes",{className:B.a.string,displayAsLink:B.a.bool,href:B.a.string,tagName:B.a.oneOfType([B.a.func,B.a.string]).isRequired,target:B.a.string,compact:B.a.bool,highlight:B.a.oneOf([!1,"error","info","success","warning"])}),y()(T,"defaultProps",{tagName:"div",highlight:!1}),n.a=T},560:function(e,n,a){"use strict";a.d(n,"a",function(){return p});var t=a(530),s=a.n(t),r=a(10),o=a.n(r),i=a(526),l=a.n(i),c=a(559);function p(e){return o.a.createElement(c.a,s()({},e,{className:l()(e.className,"is-compact")}),e.children)}},564:function(e,n,a){"use strict";a.d(n,"a",function(){return r});var t=a(10),s=a.n(t);a(577);function r(e){var n=e.children;return s.a.createElement("span",{className:"screen-reader-text"},n)}},577:function(e,n,a){},579:function(e,n,a){"use strict";var t=a(530),s=a.n(t),r=a(533),o=a.n(r),i=a(107),l=a.n(i),c=a(108),p=a.n(c),d=a(528),u=a.n(d),m=a(527),h=a.n(m),f=a(529),b=a.n(f),v=a(34),y=a.n(v),g=a(10),C=a.n(g),N=a(526),k=a.n(N),E=function(e){function n(){return l()(this,n),u()(this,h()(n).apply(this,arguments))}return b()(n,e),p()(n,[{key:"render",value:function(){var e=this.props,n=e.inputRef,a=e.className,t=e.isError,r=o()(e,["inputRef","className","isError"]),i=k()(a,"form-select",{"is-error":t});return C.a.createElement("select",s()({},r,{ref:n,className:i}),this.props.children)}}]),n}(C.a.Component);y()(E,"defaultProps",{isError:!1}),n.a=E},599:function(e,n,a){"use strict";var t=a(107),s=a.n(t),r=a(108),o=a.n(r),i=a(528),l=a.n(i),c=a(527),p=a.n(c),d=a(531),u=a.n(d),m=a(529),h=a.n(m),f=a(34),b=a.n(f),v=a(12),y=a.n(v),g=a(10),C=a.n(g),N=a(526),k=a.n(N),E=a(35),_=a(1),x=a(559),B=a(560),O=a(534),T=a.n(O),A=a(564),w=function(e){function n(){var e,a;s()(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return a=l()(this,(e=p()(n)).call.apply(e,[this].concat(r))),b()(u()(a),"state",{expanded:a.props.expanded}),b()(u()(a),"onClick",function(){a.props.children&&a.setState({expanded:!a.state.expanded}),a.props.onClick&&a.props.onClick(),a.state.expanded?a.props.onClose(a.props.cardKey):a.props.onOpen(a.props.cardKey)}),a}return h()(n,e),o()(n,[{key:"componentWillReceiveProps",value:function(e){e.expanded!==this.props.expanded&&this.setState({expanded:e.expanded})}},{key:"getClickAction",value:function(){if(!this.props.disabled)return this.onClick}},{key:"getActionButton",value:function(){return this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton}},{key:"renderActionButton",value:function(){var e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return C.a.createElement("div",{className:"foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){var n=this.props.screenReaderText||this.props.translate("More");return C.a.createElement("button",{disabled:this.props.disabled,type:"button",className:"foldable-card__action foldable-card__expand",onClick:e},C.a.createElement(A.a,null,n),C.a.createElement(T.a,{icon:this.props.icon,size:24}))}}},{key:"renderContent",value:function(){return C.a.createElement("div",{className:"foldable-card__content"},this.props.children)}},{key:"renderHeader",value:function(){var e=this.props.summary?C.a.createElement("span",{className:"foldable-card__summary"},this.props.summary," "):null,n=this.props.expandedSummary?C.a.createElement("span",{className:"foldable-card__summary-expanded"},this.props.expandedSummary," "):null,a=this.props.clickableHeader?this.getClickAction():null,t=k()("foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary});return C.a.createElement("div",{className:t,onClick:a},C.a.createElement("span",{className:"foldable-card__main"},this.props.header," "),C.a.createElement("span",{className:"foldable-card__secondary"},e,n,this.renderActionButton()))}},{key:"render",value:function(){var e=this.props.compact?B.a:x.a,n=k()("foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return C.a.createElement(e,{className:n},this.renderHeader(),this.state.expanded&&this.renderContent())}}]),n}(g.Component);b()(w,"displayName","FoldableCard"),b()(w,"propTypes",{actionButton:y.a.element,actionButtonExpanded:y.a.element,cardKey:y.a.string,compact:y.a.bool,disabled:y.a.bool,expandedSummary:y.a.oneOfType([y.a.string,y.a.element]),expanded:y.a.bool,icon:y.a.string,onClick:y.a.func,onClose:y.a.func,onOpen:y.a.func,screenReaderText:y.a.oneOfType([y.a.string,y.a.bool]),summary:y.a.oneOfType([y.a.string,y.a.element])}),b()(w,"defaultProps",{onOpen:_.noop,onClose:_.noop,cardKey:"",icon:"chevron-down",expanded:!1,screenReaderText:!1}),n.a=Object(E.localize)(w)},600:function(e,n,a){"use strict";var t=a(10),s=a.n(t),r=a(12),o=a.n(r),i=a(545),l=a(579),c=a(554),p=a(550),d=a(558),u=function(e){var n=e.id,a=e.valuesMap,t=e.title,r=e.description,o=e.value,u=e.updateValue,m=e.error,h=e.disabled,f=e.className;return s.a.createElement(i.a,{className:f},s.a.createElement(c.a,null,t),s.a.createElement(l.a,{id:n,name:n,value:o,onChange:function(e){return u(e.target.value)},disabled:Boolean(h),isError:Boolean(m)},Object.keys(a).map(function(e){return s.a.createElement("option",{key:e,value:e},a[e])})),m&&"string"===typeof m&&s.a.createElement(p.a,{text:m}),!m&&r&&s.a.createElement(d.a,null,r))};u.propTypes={id:o.a.string.isRequired,valuesMap:o.a.object.isRequired,title:o.a.node,description:o.a.string,value:o.a.string.isRequired,updateValue:o.a.func.isRequired,error:o.a.oneOfType([o.a.string,o.a.bool]),disabled:o.a.bool,className:o.a.string},n.a=u},628:function(e,n,a){"use strict";a.d(n,"a",function(){return x});var t=a(107),s=a.n(t),r=a(108),o=a.n(r),i=a(528),l=a.n(i),c=a(527),p=a.n(c),d=a(531),u=a.n(d),m=a(529),h=a.n(m),f=a(34),b=a.n(f),v=a(76),y=a.n(v),g=a(12),C=a.n(g),N=a(10),k=a.n(N),E=a(109),_=a(634),x=function(e){function n(){var e,a;s()(this,n);for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return a=l()(this,(e=p()(n)).call.apply(e,[this].concat(r))),b()(u()(a),"renderChildren",function(){var e;e=a.props&&(Object.keys(a.props).length>1||!a.props.children)?k.a.createElement("div",a.props,a.props.children):a.props.children,a.context.store&&(e=k.a.createElement(E.a,{store:a.context.store},k.a.createElement(_.b,null,e))),y.a.render(e,a.container)}),a}return h()(n,e),o()(n,[{key:"componentDidMount",value:function(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}},{key:"componentDidUpdate",value:function(){this.renderChildren()}},{key:"componentWillUnmount",value:function(){this.container&&(y.a.unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}},{key:"render",value:function(){return null}}]),n}(k.a.Component);b()(x,"contextTypes",{store:C.a.object})},645:function(e,n,a){"use strict";a.d(n,"a",function(){return t});var t=function(){return"https://wordpress.com"}}}]);