yoastWebpackJsonp([8],{100:function(e,t,n){function s(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var s=!0}catch(e){}var r=a.call(e);return s&&(t?e[u]=n:delete e[u]),r}var r=n(18),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=s},101:function(e,t){function n(e){return r.call(e)}var s=Object.prototype,r=s.toString;e.exports=n},102:function(e,t,n){function s(e){if("string"==typeof e)return e;if(i(e))return o(e,s)+"";if(a(e))return c?c.call(e):"";var t=e+"";return"0"==t&&1/e==-u?"-0":t}var r=n(18),o=n(42),i=n(3),a=n(24),u=1/0,l=r?r.prototype:void 0,c=l?l.toString:void 0;e.exports=s},1027:function(e,t,n){"use strict";function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n-1}var r=n(21);e.exports=s},131:function(e,t,n){function s(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}var r=n(21);e.exports=s},132:function(e,t,n){function s(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}var r=n(22);e.exports=s},133:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},134:function(e,t,n){function s(e){return r(this,e).get(e)}var r=n(22);e.exports=s},135:function(e,t,n){function s(e){return r(this,e).has(e)}var r=n(22);e.exports=s},136:function(e,t,n){function s(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}var r=n(22);e.exports=s},15:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},16:function(e,t,n){function s(e,t){var n=o(e,t);return r(n)?n:void 0}var r=n(119),o=n(122);e.exports=s},1628:function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}var r=n(1629),o=s(r),i=n(1635),a=s(i);(0,o.default)(),(0,a.default)()},1629:function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(1630),i=s(o),a=n(1633),u=s(a),l=window.wp.blocks.registerBlockType,c={hasDuration:{type:"boolean"},days:{type:"string"},hours:{type:"string"},minutes:{type:"string"},description:{type:"array",source:"children",selector:".schema-how-to-description"},jsonDescription:{type:"string"},steps:{type:"array"},additionalListCssClasses:{type:"string"},unorderedList:{type:"boolean"},durationText:{type:"string"},defaultDurationText:{type:"string"}};t.default=function(){l("yoast/how-to-block",{title:(0,r.__)("How-to","wordpress-seo"),description:(0,r.__)("Create a How-to guide in an SEO-friendly way. You can only use one How-to block per post.","wordpress-seo"),icon:"editor-ol",category:"yoast-structured-data-blocks",keywords:[(0,r.__)("How-to","wordpress-seo"),(0,r.__)("How to","wordpress-seo")],supports:{multiple:!1},attributes:c,edit:function(e){var t=e.attributes,n=e.setAttributes,s=e.className;return t.steps&&0!==t.steps.length||(t.steps=[{id:i.default.generateId("how-to-step"),name:[],text:[]}]),yoast._wp.element.createElement(i.default,{attributes:t,setAttributes:n,className:s})},save:function(e){var t=e.attributes;return yoast._wp.element.createElement(i.default.Content,t)},deprecated:[{attributes:c,save:u.default.v8_2}]})}},1630:function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t=o.length)&&o[r].name===n&&o[r].text===s){o[r]={id:o[r].id,name:e,text:t,jsonName:(0,E.stripHTML)(L(e)),jsonText:(0,E.stripHTML)(L(t))};var i=d.default.getImageSrc(t);i&&(o[r].jsonImageSrc=i),this.props.setAttributes({steps:o})}}},{key:"insertStep",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this.props.attributes.steps?this.props.attributes.steps.slice():[];(0,m.default)(e)&&(e=o.length-1);for(var i=o.length-1;i>e;)this.editorRefs[i+1+":name"]=this.editorRefs[i+":name"],this.editorRefs[i+1+":text"]=this.editorRefs[i+":text"],i--;o.splice(e+1,0,{id:t.generateId("how-to-step"),name:n,text:s,jsonName:"",jsonText:""}),this.props.setAttributes({steps:o}),r&&setTimeout(this.setFocus.bind(this,e+1+":name"))}},{key:"swapSteps",value:function(e,t){var n=this.props.attributes.steps?this.props.attributes.steps.slice():[],s=n[e];n[e]=n[t],n[t]=s;var r=this.editorRefs[e+":name"];this.editorRefs[e+":name"]=this.editorRefs[t+":name"],this.editorRefs[t+":name"]=r;var o=this.editorRefs[e+":text"];this.editorRefs[e+":text"]=this.editorRefs[t+":text"],this.editorRefs[t+":text"]=o,this.props.setAttributes({steps:n});var i=this.state.focus.split(":"),a=u(i,2),l=a[0],c=a[1];l===""+e&&this.setFocus(t+":"+c),l===""+t&&this.setFocus(e+":"+c)}},{key:"removeStep",value:function(e){var t=this.props.attributes.steps?this.props.attributes.steps.slice():[];t.splice(e,1),this.props.setAttributes({steps:t}),delete this.editorRefs[e+":name"],delete this.editorRefs[e+":text"];for(var n=e+1;this.editorRefs[n+":name"]||this.editorRefs[n+":text"];)this.editorRefs[n-1+":name"]=this.editorRefs[n+":name"],this.editorRefs[n-1+":text"]=this.editorRefs[n+":text"],n++;var s=t.length;delete this.editorRefs[s+":name"],delete this.editorRefs[s+":text"];var r="description";this.editorRefs[e+":name"]?r=e+":name":this.editorRefs[e-1+":text"]&&(r=e-1+":text"),this.setFocus(r)}},{key:"setFocus",value:function(e){e!==this.state.focus&&(this.setState({focus:e}),this.editorRefs[e]&&this.editorRefs[e].focus())}},{key:"getSteps",value:function(){var e=this;if(!this.props.attributes.steps)return null;var t=this.state.focus.split(":"),n=u(t,2),s=n[0],r=n[1];return this.props.attributes.steps.map(function(t,n){return yoast._wp.element.createElement(d.default,{key:t.id,step:t,index:n,editorRef:function(t,s){e.editorRefs[n+":"+t]=s},onChange:function(t,s,r,o){return e.changeStep(t,s,r,o,n)},insertStep:function(){return e.insertStep(n)},removeStep:function(){return e.removeStep(n)},onFocus:function(t){return e.setFocus(n+":"+t)},subElement:r,onMoveUp:function(){return e.swapSteps(n,n-1)},onMoveDown:function(){return e.swapSteps(n,n+1)},isFirst:0===n,isLast:n===e.props.attributes.steps.length-1,isSelected:s===""+n,isUnorderedList:e.props.attributes.unorderedList})})}},{key:"formatDuration",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(""===e)return"";var n=e.replace(/^[0]+/,"");return""===n?0:null!==t?Math.min(Math.max(0,parseInt(n,10)),t):Math.max(0,parseInt(n,10))}},{key:"getAddStepButton",value:function(){var e=this;return yoast._wp.element.createElement(T,{icon:"insert",onClick:function(){return e.insertStep()},className:"editor-inserter__toggle"},(0,v.__)("Add step","wordpress-seo"))}},{key:"addCSSClasses",value:function(e){this.props.setAttributes({additionalListCssClasses:e})}},{key:"toggleListType",value:function(e){this.props.setAttributes({unorderedList:e})}},{key:"getListTypeHelp",value:function(e){return e?(0,v.__)("Showing step items as an unordered list","wordpress-seo"):(0,v.__)("Showing step items as an ordered list.","wordpress-seo")}},{key:"getDuration",value:function(){var e=this,t=this.props,n=t.attributes,s=t.setAttributes;return n.hasDuration?yoast._wp.element.createElement("fieldset",{className:"schema-how-to-duration"},yoast._wp.element.createElement("legend",{className:"schema-how-to-duration-legend"},n.durationText||this.getDefaultDurationText()),yoast._wp.element.createElement("span",{className:"schema-how-to-duration-time-input"},yoast._wp.element.createElement("label",{htmlFor:"schema-how-to-duration-days",className:"screen-reader-text"},(0,v.__)("days","wordpress-seo")),yoast._wp.element.createElement("input",{id:"schema-how-to-duration-days",className:"schema-how-to-duration-input",type:"number",value:n.days,onFocus:function(){return e.setFocus("days")},onChange:function(t){var n=e.formatDuration(t.target.value);s({days:(0,b.default)(n)})},placeholder:"DD"}),yoast._wp.element.createElement("label",{htmlFor:"schema-how-to-duration-hours",className:"screen-reader-text"},(0,v.__)("hours","wordpress-seo")),yoast._wp.element.createElement("input",{id:"schema-how-to-duration-hours",className:"schema-how-to-duration-input",type:"number",value:n.hours,onFocus:function(){return e.setFocus("hours")},placeholder:"HH",onChange:function(t){var n=e.formatDuration(t.target.value,23);s({hours:(0,b.default)(n)})}}),yoast._wp.element.createElement("span",{"aria-hidden":"true"},":"),yoast._wp.element.createElement("label",{htmlFor:"schema-how-to-duration-minutes",className:"screen-reader-text"},(0,v.__)("minutes","wordpress-seo")),yoast._wp.element.createElement("input",{id:"schema-how-to-duration-minutes",className:"schema-how-to-duration-input",type:"number",value:n.minutes,onFocus:function(){return e.setFocus("minutes")},onChange:function(t){var n=e.formatDuration(t.target.value,59);s({minutes:(0,b.default)(n)})},placeholder:"MM"}),yoast._wp.element.createElement(T,{className:"schema-how-to-duration-button editor-inserter__toggle",icon:"trash",label:(0,v.__)("Delete total time","wordpress-seo"),onClick:function(){return s({hasDuration:!1})}}))):yoast._wp.element.createElement(T,{focus:!0,icon:"insert",onClick:function(){return s({hasDuration:!0})},className:"schema-how-to-duration-button editor-inserter__toggle"},(0,v.__)("Add total time","wordpress-seo"))}},{key:"getSidebar",value:function(e,t,n){return n===this.getDefaultDurationText()&&(n=""),yoast._wp.element.createElement(C,null,yoast._wp.element.createElement(F,{title:(0,v.__)("Settings","wordpress-seo"),className:"blocks-font-size"},yoast._wp.element.createElement(Q,{label:(0,v.__)("CSS class(es) to apply to the steps","wordpress-seo"),value:t,onChange:this.addCSSClasses,help:(0,v.__)("Optional. This can give you better control over the styling of the steps.","wordpress-seo")}),yoast._wp.element.createElement(Q,{label:(0,v.__)("Describe the duration of the instruction:","wordpress-seo"),value:n,onChange:this.setDurationText,help:(0,v.__)("Optional. Customize how you want to describe the duration of the instruction","wordpress-seo"),placeholder:this.getDefaultDurationText()}),yoast._wp.element.createElement(A,{label:(0,v.__)("Unordered list","wordpress-seo"),checked:e,onChange:this.toggleListType,help:this.getListTypeHelp})))}},{key:"render",value:function(){var e=this,t=this.props,n=t.attributes,s=t.setAttributes,r=t.className,o=["schema-how-to",r].filter(function(e){return e}).join(" "),i=["schema-how-to-steps",n.additionalListCssClasses].filter(function(e){return e}).join(" ");return yoast._wp.element.createElement("div",{className:o},this.getDuration(),yoast._wp.element.createElement(R,{tagName:"p",className:"schema-how-to-description",value:n.description,isSelected:"description"===this.state.focus,setFocusedElement:function(){return e.setFocus("description")},onChange:function(e){return s({description:e,jsonDescription:(0,E.stripHTML)(L(e))})},unstableOnSetup:function(t){e.editorRefs.description=t},placeholder:(0,v.__)("Enter a description","wordpress-seo"),keepPlaceholderOnFocus:!0}),yoast._wp.element.createElement("ul",{className:i},this.getSteps()),yoast._wp.element.createElement("div",{className:"schema-how-to-buttons"},this.getAddStepButton()),this.getSidebar(n.unorderedList,n.additionalListCssClasses,n.durationText))}}],[{key:"generateId",value:function(e){return e+"-"+(new Date).getTime()}},{key:"Content",value:function(e){var t=e.steps,n=e.hasDuration,s=e.days,r=e.hours,o=e.minutes,i=e.description,u=e.unorderedList,l=e.additionalListCssClasses,c=e.className,p=e.durationText,f=e.defaultDurationText;t=t?t.map(function(e){return yoast._wp.element.createElement(d.default.Content,a({},e,{key:e.id}))}):null;var h=["schema-how-to",c].filter(function(e){return e}).join(" "),m=["schema-how-to-steps",l].filter(function(e){return e}).join(" "),y=(0,O.default)({days:s,hours:r,minutes:o});return yoast._wp.element.createElement("div",{className:h},n&&"string"==typeof y&&y.length>0&&yoast._wp.element.createElement("p",{className:"schema-how-to-total-time"},yoast._wp.element.createElement("span",{className:"schema-how-to-duration-time-text"},p||f," "),y+". "),yoast._wp.element.createElement(I,{tagName:"p",className:"schema-how-to-description",value:i}),u?yoast._wp.element.createElement("ul",{className:m},t):yoast._wp.element.createElement("ol",{className:m},t))}}]),t}(D);t.default=H,H.propTypes={attributes:p.default.object.isRequired,setAttributes:p.default.func.isRequired,className:p.default.string}},1631:function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;return parseInt(e,10)||t}function o(e){var t=e.days,n=e.hours,s=e.minutes,r=[];return 0!==t&&r.push((0,a.sprintf)((0,a._n)("%d day","%d days",t,"wordpress-seo"),t)),0!==n&&r.push((0,a.sprintf)((0,a._n)("%d hour","%d hours",n,"wordpress-seo"),n)),0!==s&&r.push((0,a.sprintf)((0,a._n)("%d minute","%d minutes",s,"wordpress-seo"),s)),r}function i(e){var t=o({days:r(e.days),hours:r(e.hours),minutes:r(e.minutes)});return 1===t.length?t[0]:2===t.length?a.sprintf.apply(void 0,[(0,a.__)("%s and %s","wordpress-seo")].concat(s(t))):3===t.length?a.sprintf.apply(void 0,[(0,a.__)("%s, %s and %s","wordpress-seo")].concat(s(t))):""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var a=n(12)},1633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(1634),r=function(e){return e&&e.__esModule?e:{default:e}}(s);t.default={v8_2:r.default}},1634:function(e,t,n){"use strict";function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&void 0!==arguments[1]?arguments[1]:0;return parseInt(e,10)||t}function o(e){var t=e.days,n=e.hours,s=e.minutes,r=[];return 0!==t&&r.push((0,l.sprintf)((0,l._n)("%d day","%d days",t,"wordpress-seo"),t)),0!==n&&r.push((0,l.sprintf)((0,l._n)("%d hour","%d hours",n,"wordpress-seo"),n)),0!==s&&r.push((0,l.sprintf)((0,l._n)("%d minute","%d minutes",s,"wordpress-seo"),s)),r}function i(e){var t=o({days:r(e.days),hours:r(e.hours),minutes:r(e.minutes)});return 1===t.length?t[0]:2===t.length?l.sprintf.apply(void 0,[(0,l.__)("%s and %s","wordpress-seo")].concat(s(t))):3===t.length?l.sprintf.apply(void 0,[(0,l.__)("%s, %s and %s","wordpress-seo")].concat(s(t))):""}function a(e){var t=e.attributes.steps,n=e.attributes,s=n.hasDuration,r=n.days,o=n.hours,a=n.minutes,c=n.description,p=n.unorderedList,d=n.additionalListCssClasses,h=n.className;t=t?t.map(function(e){return yoast._wp.element.createElement(f,u({},e,{key:e.id}))}):null;var m=["schema-how-to",h].filter(function(e){return e}).join(" "),y=["schema-how-to-steps",d].filter(function(e){return e}).join(" "),_=i({days:r,hours:o,minutes:a});return yoast._wp.element.createElement("div",{className:m},s&&"string"==typeof _&&_.length>0&&yoast._wp.element.createElement("p",{className:"schema-how-to-total-time"},(0,l.__)("Time needed:","wordpress-seo")," ",_+". "),yoast._wp.element.createElement("p",{className:"schema-how-to-description"},c)," ",p?yoast._wp.element.createElement("ul",{className:y},t):yoast._wp.element.createElement("ol",{className:y},t))}Object.defineProperty(t,"__esModule",{value:!0});var u=Object.assign||function(e){for(var t=1;t=o.length)&&o[r].question===n&&o[r].answer===s){o[r]={id:o[r].id,question:e,answer:t,jsonQuestion:(0,v.stripHTML)(k(e)),jsonAnswer:(0,v.stripHTML)(k(t))};var i=_.default.getImageSrc(t);i&&(o[r].jsonImageSrc=i),this.props.setAttributes({questions:o})}}},{key:"insertQuestion",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this.props.attributes.questions?this.props.attributes.questions.slice():[];(0,h.default)(e)&&(e=o.length-1);for(var i=o.length-1;i>e;)this.editorRefs[i+1+":question"]=this.editorRefs[i+":question"],this.editorRefs[i+1+":answer"]=this.editorRefs[i+":answer"],i--;o.splice(e+1,0,{id:t.generateId("faq-question"),question:n,answer:s,jsonQuestion:"",jsonAnswer:""}),this.props.setAttributes({questions:o}),r&&setTimeout(this.setFocus.bind(this,e+1+":question"))}},{key:"swapQuestions",value:function(e,t){var n=this.props.attributes.questions?this.props.attributes.questions.slice():[],s=n[e];n[e]=n[t],n[t]=s;var r=this.editorRefs[e+":question"];this.editorRefs[e+":question"]=this.editorRefs[t+":question"],this.editorRefs[t+":question"]=r;var o=this.editorRefs[e+":answer"];this.editorRefs[e+":answer"]=this.editorRefs[t+":answer"],this.editorRefs[t+":answer"]=o,this.props.setAttributes({questions:n});var i=this.state.focus.split(":"),a=u(i,2),l=a[0],c=a[1];l===""+e?this.setFocus(t+":"+c):l===""+t&&this.setFocus(e+":"+c)}},{key:"removeQuestion",value:function(e){var t=this.props.attributes.questions?this.props.attributes.questions.slice():[];t.splice(e,1),this.props.setAttributes({questions:t}),delete this.editorRefs[e+":question"],delete this.editorRefs[e+":answer"];for(var n=e+1;this.editorRefs[n+":question"]||this.editorRefs[n+":answer"];)this.editorRefs[n-1+":question"]=this.editorRefs[n+":question"],this.editorRefs[n-1+":answer"]=this.editorRefs[n+":answer"],n++;var s=t.length;delete this.editorRefs[s+":question"],delete this.editorRefs[s+":answer"];var r="0:question";this.editorRefs[e+":question"]?r=e+":question":this.editorRefs[e-1+":answer"]&&(r=e-1+":answer"),this.setFocus(r)}},{key:"setFocus",value:function(e){e!==this.state.focus&&(this.setState({focus:e}),this.editorRefs[e]&&this.editorRefs[e].focus())}},{key:"getAddQuestionButton",value:function(){var e=this;return yoast._wp.element.createElement(g,{icon:"insert",onClick:function(){return e.insertQuestion()},className:"editor-inserter__toggle"},(0,m.__)("Add question","wordpress-seo"))}},{key:"getQuestions",value:function(){var e=this,t=this.props.attributes;if(!t.questions)return null;var n=this.state.focus.split(":"),s=u(n,2),r=s[0],o=s[1];return t.questions.map(function(n,s){return yoast._wp.element.createElement(_.default,{key:n.id,attributes:n,insertQuestion:function(){return e.insertQuestion(s)},removeQuestion:function(){return e.removeQuestion(s)},editorRef:function(t,n){e.editorRefs[s+":"+t]=n},onChange:function(t,n,r,o){return e.changeQuestion(t,n,r,o,s)},onFocus:function(t){return e.setFocus(s+":"+t)},isSelected:r===""+s,subElement:o,onMoveUp:function(){return e.swapQuestions(s,s-1)},onMoveDown:function(){return e.swapQuestions(s,s+1)},isFirst:0===s,isLast:s===t.questions.length-1})})}},{key:"render",value:function(){var e=this.props.className,t=["schema-faq",e].filter(function(e){return e}).join(" ");return yoast._wp.element.createElement("div",{className:t},yoast._wp.element.createElement("div",null,this.getQuestions()),yoast._wp.element.createElement("div",{className:"schema-faq-buttons"},this.getAddQuestionButton()))}}],[{key:"generateId",value:function(e){return e+"-"+(new Date).getTime()}},{key:"Content",value:function(e){var t=e.questions,n=e.className,s=t?t.map(function(e,t){return yoast._wp.element.createElement(O,a({key:t},e))}):null,r=["schema-faq",n].filter(function(e){return e}).join(" ");return yoast._wp.element.createElement("div",{className:r},s)}}]),t}(E);t.default=S,S.propTypes={attributes:f.default.object.isRequired,setAttributes:f.default.func.isRequired,className:f.default.string}},1637:function(e,t,n){"use strict";function s(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n