(window.webpackWcBlocksJsonp=window.webpackWcBlocksJsonp||[]).push([[37],{276:function(e,t,c){"use strict";var n=c(20),a=c.n(n),o=c(26),s=c.n(o),l=c(7),r=c.n(l),d=(c(8),c(277),["children","className","headingLevel"]);t.a=function(e){var t=e.children,c=e.className,n=e.headingLevel,o=s()(e,d),l=r()("wc-block-components-title",c),i="h".concat(n);return React.createElement(i,a()({className:l},o),t)}},277:function(e,t){},280:function(e,t){},290:function(e,t,c){"use strict";var n=c(7),a=c.n(n),o=(c(8),c(276)),s=(c(280),function(e){var t=e.title,c=e.stepHeadingContent;return React.createElement("div",{className:"wc-block-components-checkout-step__heading"},React.createElement(o.a,{"aria-hidden":"true",className:"wc-block-components-checkout-step__title",headingLevel:"2"},t),!!c&&React.createElement("span",{className:"wc-block-components-checkout-step__heading-content"},c))});t.a=function(e){var t=e.id,c=e.className,n=e.title,o=e.legend,l=e.description,r=e.children,d=e.disabled,i=void 0!==d&&d,u=e.showStepNumber,p=void 0===u||u,b=e.stepHeadingContent,m=void 0===b?function(){}:b,h=o||n?"fieldset":"div";return React.createElement(h,{className:a()(c,"wc-block-components-checkout-step",{"wc-block-components-checkout-step--with-step-number":p,"wc-block-components-checkout-step--disabled":i}),id:t,disabled:i},!(!o&&!n)&&React.createElement("legend",{className:"screen-reader-text"},o||n),!!n&&React.createElement(s,{title:n,stepHeadingContent:m()}),React.createElement("div",{className:"wc-block-components-checkout-step__container"},!!l&&React.createElement("p",{className:"wc-block-components-checkout-step__description"},l),React.createElement("div",{className:"wc-block-components-checkout-step__content"},r)))}},362:function(e,t){},363:function(e,t){},401:function(e,t,c){"use strict";c.r(t);var n=c(7),a=c.n(n),o=c(1),s=c(290),l=c(65),r=c(54),d=c(4),i=c.n(d),u=c(0),p=c(28),b=c(8),m=c.n(b),h=(c(363),function(e){var t=e.className,c=void 0===t?"":t,n=e.disabled,o=void 0!==n&&n,s=e.onTextChange,l=e.placeholder,r=e.value,d=void 0===r?"":r;return React.createElement("textarea",{className:a()("wc-block-components-textarea",c),disabled:o,onChange:function(e){s(e.target.value)},placeholder:l,rows:2,value:d})});c(362),h.propTypes={onTextChange:m.a.func.isRequired,disabled:m.a.bool,placeholder:m.a.string,value:m.a.string};var k=function(e){var t=e.disabled,c=e.onChange,n=e.placeholder,a=e.value,s=Object(u.useState)(!1),l=i()(s,2),r=l[0],d=l[1],b=Object(u.useState)(""),m=i()(b,2),k=m[0],v=m[1];return React.createElement("div",{className:"wc-block-checkout__add-note"},React.createElement(p.CheckboxControl,{disabled:t,label:Object(o.__)("Add a note to your order",'woocommerce'),checked:r,onChange:function(e){d(e),e?a!==k&&c(k):(c(""),v(a))}}),r&&React.createElement(h,{disabled:t,onTextChange:c,placeholder:n,value:a}))};t.default=function(e){var t=e.className,c=Object(l.b)().needsShipping,n=Object(r.b)(),d=n.isProcessing,i=n.orderNotes,u=n.dispatchActions.setOrderNotes;return React.createElement(s.a,{id:"order-notes",showStepNumber:!1,className:a()("wc-block-checkout__order-notes",t),disabled:d},React.createElement(k,{disabled:d,onChange:u,placeholder:c?Object(o.__)("Notes about your order, e.g. special notes for delivery.",'woocommerce'):Object(o.__)("Notes about your order.",'woocommerce'),value:i}))}}}]);