text: !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=225)}({0:function(e,t){!function(){e.exports=this.wp.element}()},1:function(e,t){!function(){e.exports=this.wp.i18n}()},10:function(e,t,r){var n=r(81),o=r(82),i=r(65),a=r(83);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()}},100:function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},101:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},105:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),o=function(e,t){var r=Object(n.useRef)();return Object(n.useEffect)((function(){r.current===e||t&&!t(e,r.current)||(r.current=e)}),[e,t]),r.current}},109:function(e,t,r){"use strict";r.d(t,"a",(function(){return m})),r.d(t,"b",(function(){return d})),r.d(t,"c",(function(){return g}));var n=r(10),o=r.n(n),i=r(18),a=r(14),c=r(0),u=r(69),s=r(105),l=r(28),f=r.n(l),p=r(8),b=r(42),m=function(e){var t=Object(u.a)();e=e||t;var r=Object(a.useSelect)((function(t){return t(i.QUERY_STATE_STORE_KEY).getValueForQueryContext(e,void 0)}),[e]),n=Object(a.useDispatch)(i.QUERY_STATE_STORE_KEY).setValueForQueryContext;return[r,Object(c.useCallback)((function(t){n(e,t)}),[e,n])]},d=function(e,t,r){var n=Object(u.a)();r=r||n;var o=Object(a.useSelect)((function(n){return n(i.QUERY_STATE_STORE_KEY).getValueForQueryKey(r,e,t)}),[r,e]),s=Object(a.useDispatch)(i.QUERY_STATE_STORE_KEY).setQueryValue;return[o,Object(c.useCallback)((function(t){s(r,e,t)}),[r,e,s])]},g=function(e,t){var r=Object(u.a)(),n=m(t=t||r),i=o()(n,2),a=i[0],l=i[1],d=Object(b.a)(a),g=Object(b.a)(e),h=Object(s.a)(g),v=Object(c.useRef)(!1);return Object(c.useEffect)((function(){f()(h,g)||(l(Object(p.assign)({},d,g)),v.current=!0)}),[d,g,h,l]),v.current?[a,l]:[e,l]}},11:function(e,t){function r(){return e.exports=r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},r.apply(this,arguments)}e.exports=r},111:function(e,t,r){"use strict";var n=r(2),o=r.n(n);function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(){}function f(){}f.resetWarningCache=l;var p=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){e.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:f,resetWarningCache:l};return r.PropTypes=r,r}()}));function b(){}function m(e){return!!(e||"").match(/\d/)}function d(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r="-"===e[0],n=r&&t,o=(e=e.replace("-","")).split("."),i=o[0],a=o[1]||"";return{beforeDecimal:i,afterDecimal:a,hasNagation:r,addNegation:n}}function h(e,t,r){for(var n="",o=r?"0":"",i=0;i<=t-1;i++)n+=e[i]||o;return n}function v(e,t){if(e.value=e.value,null!==e){if(e.createTextRange){var r=e.createTextRange();return r.move("character",t),r.select(),!0}return e.selectionStart||0===e.selectionStart?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function y(e,t,r){return Math.min(Math.max(e,t),r)}function O(e){return Math.max(e.selectionStart,e.selectionEnd)}var j={thousandSeparator:p.oneOfType([p.string,p.oneOf([!0])]),decimalSeparator:p.string,allowedDecimalSeparators:p.arrayOf(p.string),thousandsGroupStyle:p.oneOf(["thousand","lakh","wan"]),decimalScale:p.number,fixedDecimalScale:p.bool,displayType:p.oneOf(["input","text"]),prefix:p.string,suffix:p.string,format:p.oneOfType([p.string,p.func]),removeFormatting:p.func,mask:p.oneOfType([p.string,p.arrayOf(p.string)]),value:p.oneOfType([p.number,p.string]),defaultValue:p.oneOfType([p.number,p.string]),isNumericString:p.bool,customInput:p.elementType,allowNegative:p.bool,allowEmptyFormatting:p.bool,allowLeadingZeros:p.bool,onValueChange:p.func,onKeyDown:p.func,onMouseUp:p.func,onChange:p.func,onFocus:p.func,onBlur:p.func,type:p.oneOf(["text","tel","password"]),isAllowed:p.func,renderText:p.func,getInputRef:p.oneOfType([p.func,p.shape({current:p.any})])},w={displayType:"input",decimalSeparator:".",thousandsGroupStyle:"thousand",fixedDecimalScale:!1,prefix:"",suffix:"",allowNegative:!0,allowEmptyFormatting:!1,allowLeadingZeros:!1,isNumericString:!1,type:"text",onValueChange:b,onChange:b,onKeyDown:b,onMouseUp:b,onFocus:b,onBlur:b,isAllowed:function(){return!0}},S=function(e){function t(e){var r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,r=!(o=c(t).call(this,e))||"object"!=typeof o&&"function"!=typeof o?s(n):o;var i=e.defaultValue;r.validateProps();var a=r.formatValueProp(i);return r.state={value:a,numAsString:r.removeFormatting(a)},r.selectionBeforeInput={selectionStart:0,selectionEnd:0},r.onChange=r.onChange.bind(s(r)),r.onKeyDown=r.onKeyDown.bind(s(r)),r.onMouseUp=r.onMouseUp.bind(s(r)),r.onFocus=r.onFocus.bind(s(r)),r.onBlur=r.onBlur.bind(s(r)),r}var r,n,l;return function(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&&u(e,t)}(t,e),r=t,(n=[{key:"componentDidUpdate",value:function(e){this.updateValueIfRequired(e)}},{key:"updateValueIfRequired",value:function(e){var t=this.props,r=this.state,n=this.focusedElm,o=r.value,i=r.numAsString,a=void 0===i?"":i;if(e!==t){this.validateProps();var c=this.formatNumString(a),u=void 0===t.value?c:this.formatValueProp(),s=this.removeFormatting(u),l=parseFloat(s),f=parseFloat(a);(isNaN(l)&&isNaN(f)||l===f)&&c===o&&(null!==n||u===o)||this.updateValue({formattedValue:u,numAsString:s,input:n})}}},{key:"getFloatString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.decimalScale,r=this.getSeparators(),n=r.decimalSeparator,o=this.getNumberRegex(!0),i="-"===e[0];i&&(e=e.replace("-","")),n&&0===t&&(e=e.split(n)[0]);var a=(e=(e.match(o)||[]).join("").replace(n,".")).indexOf(".");return-1!==a&&(e="".concat(e.substring(0,a),".").concat(e.substring(a+1,e.length).replace(new RegExp(d(n),"g"),""))),i&&(e="-"+e),e}},{key:"getNumberRegex",value:function(e,t){var r=this.props,n=r.format,o=r.decimalScale,i=this.getSeparators().decimalSeparator;return new RegExp("\\d"+(!i||0===o||t||n?"":"|"+d(i)),e?"g":void 0)}},{key:"getSeparators",value:function(){var e=this.props.decimalSeparator,t=this.props,r=t.thousandSeparator,n=t.allowedDecimalSeparators;return!0===r&&(r=","),n||(n=[e,"."]),{decimalSeparator:e,thousandSeparator:r,allowedDecimalSeparators:n}}},{key:"getMaskAtIndex",value:function(e){var t=this.props.mask,r=void 0===t?" ":t;return"string"==typeof r?r:r[e]||" "}},{key:"getValueObject",value:function(e,t){var r=parseFloat(t);return{formattedValue:e,value:t,floatValue:isNaN(r)?void 0:r}}},{key:"validateProps",value:function(){var e=this.props.mask,t=this.getSeparators(),r=t.decimalSeparator,n=t.thousandSeparator;if(r===n)throw new Error("\n          Decimal separator can't be same as thousand separator.\n          thousandSeparator: ".concat(n,' (thousandSeparator = {true} is same as thousandSeparator = ",")\n          decimalSeparator: ').concat(r," (default value for decimalSeparator is .)\n       "));if(e&&("string"===e?e:e.toString()).match(/\d/g))throw new Error("\n          Mask ".concat(e," should not contain numeric character;\n        "))}},{key:"setPatchedCaretPosition",value:function(e,t,r){v(e,t),setTimeout((function(){e.value===r&&v(e,t)}),0)}},{key:"correctCaretPosition",value:function(e,t,r){var n=this.props,o=n.prefix,i=n.suffix,a=n.format;if(""===e)return 0;if(t=y(t,0,e.length),!a){var c="-"===e[0];return y(t,o.length+(c?1:0),e.length-i.length)}if("function"==typeof a)return t;if("#"===a[t]&&m(e[t]))return t;if("#"===a[t-1]&&m(e[t-1]))return t;var u=a.indexOf("#");t=y(t,u,a.lastIndexOf("#")+1);for(var s=a.substring(t,a.length).indexOf("#"),l=t,f=t+(-1===s?0:s);l>u&&("#"!==a[l]||!m(e[l]));)l-=1;return!m(e[f])||"left"===r&&t!==u||t-l<f-t?m(e[l])?l+1:l:f}},{key:"getCaretPosition",value:function(e,t,r){var n,o,i=this.props.format,a=this.state.value,c=this.getNumberRegex(!0),u=(e.match(c)||[]).join(""),s=(t.match(c)||[]).join("");for(n=0,o=0;o<r;o++){var l=e[o]||"",f=t[n]||"";if((l.match(c)||l===f)&&("0"!==l||!f.match(c)||"0"===f||u.length===s.length)){for(;l!==t[n]&&n<t.length;)n++;n++}}return"string"!=typeof i||a||(n=t.length),n=this.correctCaretPosition(t,n)}},{key:"removePrefixAndSuffix",value:function(e){var t=this.props,r=t.format,n=t.prefix,o=t.suffix;if(!r&&e){var i="-"===e[0];i&&(e=e.substring(1,e.length));var a=(e=n&&0===e.indexOf(n)?e.substring(n.length,e.length):e).lastIndexOf(o);e=o&&-1!==a&&a===e.length-o.length?e.substring(0,a):e,i&&(e="-"+e)}return e}},{key:"removePatternFormatting",value:function(e){for(var t=this.props.format.split("#").filter((function(e){return""!==e})),r=0,n="",o=0,i=t.length;o<=i;o++){var a=t[o]||"",c=o===i?e.length:e.indexOf(a,r);if(-1===c){n=e;break}n+=e.substring(r,c),r=c+a.length}return(n.match(/\d/g)||[]).join("")}},{key:"removeFormatting",value:function(e){var t=this.props,r=t.format,n=t.removeFormatting;return e?(r?e="string"==typeof r?this.removePatternFormatting(e):"function"==typeof n?n(e):(e.match(/\d/g)||[]).join(""):(e=this.removePrefixAndSuffix(e),e=this.getFloatString(e)),e):e}},{key:"formatWithPattern",value:function(e){for(var t=this.props.format,r=0,n=t.split(""),o=0,i=t.length;o<i;o++)"#"===t[o]&&(n[o]=e[r]||this.getMaskAtIndex(r),r+=1);return n.join("")}},{key:"formatAsNumber",value:function(e){var t=this.props,r=t.decimalScale,n=t.fixedDecimalScale,o=t.prefix,i=t.suffix,a=t.allowNegative,c=t.thousandsGroupStyle,u=this.getSeparators(),s=u.thousandSeparator,l=u.decimalSeparator,f=-1!==e.indexOf(".")||r&&n,p=g(e,a),b=p.beforeDecimal,m=p.afterDecimal,d=p.addNegation;return void 0!==r&&(m=h(m,r,n)),s&&(b=function(e,t,r){var n=function(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}(r),o=e.search(/[1-9]/);return o=-1===o?e.length:o,e.substring(0,o)+e.substring(o,e.length).replace(n,"$1"+t)}(b,s,c)),o&&(b=o+b),i&&(m+=i),d&&(b="-"+b),e=b+(f&&l||"")+m}},{key:"formatNumString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props,r=t.format,n=t.allowEmptyFormatting,o=e;return o=""!==e||n?"-"!==e||r?"string"==typeof r?this.formatWithPattern(o):"function"==typeof r?r(o):this.formatAsNumber(o):"-":""}},{key:"formatValueProp",value:function(e){var t=this.props,r=t.format,n=t.decimalScale,o=t.fixedDecimalScale,i=t.allowEmptyFormatting,a=this.props,c=a.value,u=void 0===c?e:c,s=a.isNumericString,l=!u&&0!==u;return l&&i&&(u=""),l&&!i?"":("number"==typeof u&&(u=u.toString(),s=!0),"Infinity"===u&&s&&(u=""),s&&!r&&"number"==typeof n&&(u=function(e,t,r){if(-1!==["","-"].indexOf(e))return e;var n=-1!==e.indexOf(".")&&t,o=g(e),i=o.beforeDecimal,a=o.afterDecimal,c=o.hasNagation,u=parseFloat("0.".concat(a||"0")).toFixed(t).split("."),s=i.split("").reverse().reduce((function(e,t,r){return e.length>r?(Number(e[0])+Number(t)).toString()+e.substring(1,e.length):t+e}),u[0]),l=h(u[1]||"",Math.min(t,a.length),r),f=n?".":"";return"".concat(c?"-":"").concat(s).concat(f).concat(l)}(u,n,o)),s?this.formatNumString(u):this.formatInput(u))}},{key:"formatNegation",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.allowNegative,r=new RegExp("(-)"),n=new RegExp("(-)(.)*(-)"),o=r.test(e),i=n.test(e);return e=e.replace(/-/g,""),o&&!i&&t&&(e="-"+e),e}},{key:"formatInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=this.props.format;return t||(e=this.removePrefixAndSuffix(e),e=this.formatNegation(e)),e=this.removeFormatting(e),this.formatNumString(e)}},{key:"isCharacterAFormat",value:function(e,t){var r=this.props,n=r.format,o=r.prefix,i=r.suffix,a=r.decimalScale,c=r.fixedDecimalScale,u=this.getSeparators().decimalSeparator;return"string"==typeof n&&"#"!==n[e]||!(n||!(e<o.length||e>=t.length-i.length||a&&c&&t[e]===u))}},{key:"checkIfFormatGotDeleted",value:function(e,t,r){for(var n=e;n<t;n++)if(this.isCharacterAFormat(n,r))return!0;return!1}},{key:"correctInputValue",value:function(e,t,r){var n=this.props,o=n.format,i=n.allowNegative,a=n.prefix,c=n.suffix,u=n.decimalScale,s=this.getSeparators(),l=s.allowedDecimalSeparators,f=s.decimalSeparator,p=this.state.numAsString||"",b=this.selectionBeforeInput,m=b.selectionStart,d=b.selectionEnd,h=function(e,t){for(var r=0,n=0,o=e.length,i=t.length;e[r]===t[r]&&r<o;)r++;for(;e[o-1-n]===t[i-1-n]&&i-n>r&&o-n>r;)n++;return{start:r,end:o-n}}(t,r),v=h.start,y=h.end;if(!o&&v===y&&-1!==l.indexOf(r[m])){var O=0===u?"":f;return r.substr(0,m)+O+r.substr(m+1,r.length)}var j=o?0:a.length,w=t.length-(o?0:c.length);if(r.length>t.length||!r.length||v===y||0===m&&d===t.length||m===j&&d===w)return r;if(this.checkIfFormatGotDeleted(v,y,t)&&(r=t),!o){var S=this.removeFormatting(r),_=g(S,i),x=_.beforeDecimal,k=_.afterDecimal,E=_.addNegation,P=e<r.indexOf(f)+1;if(S.length<p.length&&P&&""===x&&!parseFloat(k))return E?"-":""}return r}},{key:"updateValue",value:function(e){var t=e.formattedValue,r=e.input,n=e.setCaretPosition,o=void 0===n||n,i=e.numAsString,a=e.caretPos,c=this.props.onValueChange,u=this.state.value;if(r)if(o){if(!a){var s=e.inputValue||r.value,l=O(r);r.value=t,a=this.getCaretPosition(s,t,l)}this.setPatchedCaretPosition(r,a,t)}else r.value=t;void 0===i&&(i=this.removeFormatting(t)),t!==u&&(this.setState({value:t,numAsString:i}),c(this.getValueObject(t,i)))}},{key:"onChange",value:function(e){var t=e.target,r=t.value,n=this.state,o=this.props,i=o.isAllowed,a=n.value||"",c=O(t);r=this.correctInputValue(c,a,r);var u=this.formatInput(r)||"",s=this.removeFormatting(u);i(this.getValueObject(u,s))||(u=a),this.updateValue({formattedValue:u,numAsString:s,inputValue:r,input:t}),o.onChange(e)}},{key:"onBlur",value:function(e){var t=this.props,r=this.state,n=t.format,o=t.onBlur,i=t.allowLeadingZeros,a=r.numAsString,c=r.value;if(this.focusedElm=null,this.focusTimeout&&clearTimeout(this.focusTimeout),!n){isNaN(parseFloat(a))&&(a=""),i||(a=function(e){if(!e)return e;var t="-"===e[0];t&&(e=e.substring(1,e.length));var r=e.split("."),n=r[0].replace(/^0+/,"")||"0",o=r[1]||"";return"".concat(t?"-":"").concat(n).concat(o?".".concat(o):"")}(a));var u=this.formatNumString(a);if(u!==c)return this.updateValue({formattedValue:u,numAsString:a,input:e.target,setCaretPosition:!1}),void o(e)}o(e)}},{key:"onKeyDown",value:function(e){var t,r=e.target,n=e.key,o=r.selectionStart,i=r.selectionEnd,a=r.value,c=void 0===a?"":a,u=this.props,s=u.decimalScale,l=u.fixedDecimalScale,f=u.prefix,p=u.suffix,b=u.format,m=u.onKeyDown,d=void 0!==s&&l,g=this.getNumberRegex(!1,d),h=new RegExp("-"),v="string"==typeof b;if(this.selectionBeforeInput={selectionStart:o,selectionEnd:i},"ArrowLeft"===n||"Backspace"===n?t=o-1:"ArrowRight"===n?t=o+1:"Delete"===n&&(t=o),void 0!==t&&o===i){var y=t,O=v?b.indexOf("#"):f.length,j=v?b.lastIndexOf("#")+1:c.length-p.length;if("ArrowLeft"===n||"ArrowRight"===n){var w="ArrowLeft"===n?"left":"right";y=this.correctCaretPosition(c,t,w)}else if("Delete"!==n||g.test(c[t])||h.test(c[t])){if("Backspace"===n&&!g.test(c[t]))if(o<=O+1&&"-"===c[0]&&void 0===b){var S=c.substring(1);this.updateValue({formattedValue:S,caretPos:y,input:r})}else if(!h.test(c[t])){for(;!g.test(c[y-1])&&y>O;)y--;y=this.correctCaretPosition(c,y,"left")}}else for(;!g.test(c[y])&&y<j;)y++;(y!==t||t<O||t>j)&&(e.preventDefault(),this.setPatchedCaretPosition(r,y,c)),e.isUnitTestRun&&this.setPatchedCaretPosition(r,y,c),m(e)}else m(e)}},{key:"onMouseUp",value:function(e){var t=e.target,r=t.selectionStart,n=t.selectionEnd,o=t.value,i=void 0===o?"":o;if(r===n){var a=this.correctCaretPosition(i,r);a!==r&&this.setPatchedCaretPosition(t,a,i)}this.props.onMouseUp(e)}},{key:"onFocus",value:function(e){var t=this;e.persist(),this.focusedElm=e.target,this.focusTimeout=setTimeout((function(){var r=e.target,n=r.selectionStart,o=r.selectionEnd,i=r.value,a=void 0===i?"":i,c=t.correctCaretPosition(a,n);c===n||0===n&&o===a.length||t.setPatchedCaretPosition(r,c,a),t.props.onFocus(e)}),0)}},{key:"render",value:function(){var e,t,r,n=this.props,i=n.type,c=n.displayType,u=n.customInput,s=n.renderText,l=n.getInputRef,f=this.state.value,p=(e=this.props,t=j,r={},Object.keys(e).forEach((function(n){t[n]||(r[n]=e[n])})),r),b=a({inputMode:"numeric"},p,{type:i,value:f,onChange:this.onChange,onKeyDown:this.onKeyDown,onMouseUp:this.onMouseUp,onFocus:this.onFocus,onBlur:this.onBlur});if("text"===c)return s?s(f)||null:o.a.createElement("span",a({},p,{ref:l}),f);if(u){var m=u;return o.a.createElement(m,a({},b,{ref:l}))}return o.a.createElement("input",a({},b,{ref:l}))}}])&&i(r.prototype,n),l&&i(r,l),t}(o.a.Component);S.propTypes=j,S.defaultProps=w,t.a=S},118:function(e,t,r){"use strict";r.d(t,"a",(function(){return m}));var n=r(11),o=r.n(n),i=r(7),a=r.n(i),c=r(0),u=r(47);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var f=[".wp-block-woocommerce-cart"],p=function(e){var t=e.Block,r=e.containers,n=e.getProps,i=void 0===n?function(){}:n,a=e.getErrorBoundaryProps,s=void 0===a?function(){}:a;0!==r.length&&Array.prototype.forEach.call(r,(function(e,r){var n=i(e,r),a=s(e,r),f=l(l({},e.dataset),n.attributes);e.classList.remove("is-loading"),Object(c.render)(React.createElement(u.a,a,React.createElement(c.Suspense,{fallback:React.createElement("div",{className:"wc-block-placeholder"})},React.createElement(t,o()({},n,{attributes:f})))),e)}))},b=function(e){var t=e.Block,r=e.getProps,n=e.getErrorBoundaryProps,o=e.selector,i=e.wrappers,a=document.body.querySelectorAll(o);i.length>0&&Array.prototype.filter.call(a,(function(e){return!function(e,t){return Array.prototype.some.call(t,(function(t){return t.contains(e)&&!t.isSameNode(e)}))}(e,i)})),p({Block:t,containers:a,getProps:r,getErrorBoundaryProps:n})},m=function(e){var t=document.body.querySelectorAll(f.join(","));b(l(l({},e),{},{wrappers:t})),Array.prototype.forEach.call(t,(function(t){t.addEventListener("wc-blocks_render_blocks_frontend",(function(){var r,n,o,i,a,c;r=l(l({},e),{},{wrapper:t}),n=r.Block,o=r.getProps,i=r.getErrorBoundaryProps,a=r.selector,c=r.wrapper.querySelectorAll(a),p({Block:n,containers:c,getProps:o,getErrorBoundaryProps:i})}))}))}},126:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(18),o=r(14),i=r(0),a=r(93),c=r(42),u=function(e){var t=e.namespace,r=e.resourceName,u=e.resourceValues,s=void 0===u?[]:u,l=e.query,f=void 0===l?{}:l,p=e.shouldSelect,b=void 0===p||p;if(!t||!r)throw new Error("The options object must have valid values for the namespace and the resource properties.");var m=Object(i.useRef)({results:[],isLoading:!0}),d=Object(c.a)(f),g=Object(c.a)(s),h=Object(a.a)(),v=Object(o.useSelect)((function(e){if(!b)return null;var o=e(n.COLLECTIONS_STORE_KEY),i=[t,r,d,g],a=o.getCollectionError.apply(o,i);return a&&h(a),{results:o.getCollection.apply(o,i),isLoading:!o.hasFinishedResolution("getCollection",i)}}),[t,r,g,d,b]);return null!==v&&(m.current=v),m.current}},135:function(e,t){},14:function(e,t){!function(){e.exports=this.wp.data}()},141:function(e,t,r){"use strict";var n=r(0),o=r(4),i=r(18),a=r(14);t.a=function(e){return function(t){var r;return r=Object(n.useRef)(Object(o.getSetting)("restApiRoutes")),Object(a.useSelect)((function(e,t){if(r.current){var n=e(i.SCHEMA_STORE_KEY),o=n.isResolving,a=n.hasFinishedResolution,c=t.dispatch(i.SCHEMA_STORE_KEY),u=c.receiveRoutes,s=c.startResolution,l=c.finishResolution;Object.keys(r.current).forEach((function(e){var t=r.current[e];o("getRoutes",[e])||a("getRoutes",[e])||(s("getRoutes",[e]),u(t,[e]),l("getRoutes",[e]))}))}}),[]),React.createElement(e,t)}}},15:function(e,t,r){var n=r(67);e.exports=function(e,t){if(null==e)return{};var r,o,i=n(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}},152:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(2),o=r(86);function i(e,t){return e===t}function a(e,t,r){var a=r&&r.equalityFn?r.equalityFn:i,c=Object(n.useState)(e),u=c[0],s=c[1],l=Object(o.a)(Object(n.useCallback)((function(e){return s(e)}),[]),t,r),f=l[0],p=l[1],b=l[2],m=Object(n.useRef)(e);return Object(n.useEffect)((function(){a(m.current,e)||(f(e),m.current=e)}),[e,f,a]),[u,p,b]}},153:function(e,t,r){"use strict";var n=r(1),o=(r(3),r(5)),i=r.n(o),a=r(40),c=(r(170),function(e){var t=e.className,r=e.disabled,o=e.label,c=void 0===o?Object(n.__)("Go","woo-gutenberg-products-block"):o,u=e.onClick,s=e.screenReaderLabel,l=void 0===s?Object(n.__)("Apply filter","woo-gutenberg-products-block"):s;return React.createElement("button",{type:"submit",className:i()("wc-block-filter-submit-button","wc-block-components-filter-submit-button",t),disabled:r,onClick:u},React.createElement(a.a,{label:c,screenReaderLabel:l}))});c.defaultProps={disabled:!1},t.a=c},166:function(e,t,r){"use strict";r.d(t,"c",(function(){return b})),r.d(t,"b",(function(){return m})),r.d(t,"a",(function(){return d}));var n=r(7),o=r.n(n),i=r(33),a=r.n(i),c=r(4);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var l,f,p={code:c.CURRENCY.code,symbol:c.CURRENCY.symbol,thousandSeparator:c.CURRENCY.thousandSeparator,decimalSeparator:c.CURRENCY.decimalSeparator,minorUnit:c.CURRENCY.precision,prefix:(l=c.CURRENCY.symbol,f=c.CURRENCY.symbolPosition,{left:l,left_space:" "+l,right:"",right_space:""}[f]||""),suffix:function(e,t){return{left:"",left_space:"",right:e,right_space:" "+e}[t]||""}(c.CURRENCY.symbol,c.CURRENCY.symbolPosition)},b=function(e){if(!e||"object"!==a()(e))return p;var t=e.currency_code,r=e.currency_symbol,n=e.currency_thousand_separator,o=e.currency_decimal_separator,i=e.currency_minor_unit,c=e.currency_prefix,u=e.currency_suffix;return{code:t||"USD",symbol:r||"$",thousandSeparator:"string"==typeof n?n:",",decimalSeparator:"string"==typeof o?o:".",minorUnit:Number.isFinite(i)?i:2,prefix:"string"==typeof c?c:"$",suffix:"string"==typeof u?u:""}},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(s({},p),e)},d=function(e,t){if(""===e||void 0===e)return"";var r=parseInt(e,10);if(!Number.isFinite(r))return"";var n=m(t),o=r/Math.pow(10,n.minorUnit),i=n.prefix+o+n.suffix,a=document.createElement("textarea");return a.innerHTML=i,a.value}},170:function(e,t){},18:function(e,t){!function(){e.exports=this.wc.wcBlocksData}()},2:function(e,t){!function(){e.exports=this.React}()},225:function(e,t,r){e.exports=r(288)},226:function(e,t,r){"use strict";r.d(t,"a",(function(){return O}));var n=r(7),o=r.n(n),i=r(48),a=r.n(i),c=r(33),u=r.n(c),s=r(10),l=r.n(s),f=r(0),p=r(109),b=r(126),m=r(69),d=r(152),g=r(8),h=r(42);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=e.queryAttribute,r=e.queryPrices,n=e.queryState,o=Object(m.a)();o="".concat(o,"-collection-data");var i=Object(p.a)(o),c=l()(i,1)[0],s=Object(p.b)("calculate_attribute_counts",[],o),v=l()(s,2),O=v[0],j=v[1],w=Object(p.b)("calculate_price_range",null,o),S=l()(w,2),_=S[0],x=S[1],k=Object(h.a)(t||{}),E=Object(h.a)(r);Object(f.useEffect)((function(){"object"===u()(k)&&Object.keys(k).length&&(O.find((function(e){return e.taxonomy===k.taxonomy}))||j([].concat(a()(O),[k])))}),[k,O,j]),Object(f.useEffect)((function(){_!==E&&void 0!==E&&x(E)}),[E,x,_]);var P=Object(f.useState)(!1),R=l()(P,2),C=R[0],N=R[1],F=Object(d.a)(C,200),T=l()(F,1)[0];C||N(!0);var D=Object(f.useMemo)((function(){return function(e){var t=e;return e.calculate_attribute_counts&&(t.calculate_attribute_counts=Object(g.sortBy)(e.calculate_attribute_counts.map((function(e){return{taxonomy:e.taxonomy,query_type:e.queryType}})),["taxonomy","query_type"])),t}(c)}),[c]);return Object(b.a)({namespace:"/wc/store",resourceName:"products/collection-data",query:y(y({},n),{},{page:void 0,per_page:void 0,orderby:void 0,order:void 0},D),shouldSelect:T})}},227:function(e,t){},28:function(e,t){!function(){e.exports=this.wp.isShallowEqual}()},288:function(e,t,r){"use strict";r.r(t);var n=r(141),o=r(118),i=r(10),a=r.n(i),c=r(109),u=r(226),s=r(105),l=r(0),f=r(1),p=(r(3),r(5)),b=r.n(p),m=r(43),d=(r(227),function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=parseInt(e[0],10),a=parseInt(e[1],10);return Number.isFinite(i)||(i=t||0),Number.isFinite(a)||(a=r||n),Number.isFinite(t)&&t>i&&(i=t),Number.isFinite(r)&&r<=i&&(i=r-n),Number.isFinite(t)&&t>=a&&(a=t+n),Number.isFinite(r)&&r<a&&(a=r),!o&&i>=a&&(i=a-n),o&&a<=i&&(a=i+n),[i,a]}),g=r(153),h=function(e){var t=e.minPrice,r=e.maxPrice,n=e.minConstraint,o=e.maxConstraint,i=e.onChange,c=void 0===i?function(){}:i,u=e.step,s=e.currency,p=e.showInputFields,h=void 0===p||p,v=e.showFilterButton,y=void 0!==v&&v,O=e.isLoading,j=void 0!==O&&O,w=e.onSubmit,S=void 0===w?function(){}:w,_=Object(l.useRef)(),x=Object(l.useRef)(),k=u||10*Math.pow(10,s.minorUnit),E=Object(l.useState)(t),P=a()(E,2),R=P[0],C=P[1],N=Object(l.useState)(r),F=a()(N,2),T=F[0],D=F[1];Object(l.useEffect)((function(){C(t)}),[t]),Object(l.useEffect)((function(){D(r)}),[r]);var A=Object(l.useMemo)((function(){return isFinite(n)&&isFinite(o)}),[n,o]),I=Object(l.useMemo)((function(){return isFinite(t)&&isFinite(r)&&A?{"--low":Math.round((t-n)/(o-n)*100)-.5+"%","--high":Math.round((r-n)/(o-n)*100)+.5+"%"}:{"--low":"0%","--high":"100%"}}),[t,r,n,o,A]),M=Object(l.useCallback)((function(e){if(!j&&A){var t=e.target.getBoundingClientRect(),r=e.clientX-t.left,n=_.current.offsetWidth,i=_.current.value,a=x.current.offsetWidth,c=x.current.value,u=n*(i/o),s=a*(c/o);Math.abs(r-u)>Math.abs(r-s)?(_.current.style.zIndex=20,x.current.style.zIndex=21):(_.current.style.zIndex=21,x.current.style.zIndex=20)}}),[j,o,A]),U=Object(l.useCallback)((function(e){var i=e.target.classList.contains("wc-block-price-filter__range-input--min"),a=e.target.value,u=i?[Math.round(a/k)*k,r]:[t,Math.round(a/k)*k],s=d(u,n,o,k,i);c([parseInt(s[0],10),parseInt(s[1],10)])}),[c,t,r,n,o,k]),B=Object(l.useCallback)((function(e){if(!(e.relatedTarget&&e.relatedTarget.classList&&e.relatedTarget.classList.contains("wc-block-price-filter__amount"))){var t=e.target.classList.contains("wc-block-price-filter__amount--min"),r=d([R,T],null,null,k,t);c([parseInt(r[0],10),parseInt(r[1],10)])}}),[c,k,R,T]),V=b()("wc-block-price-filter","wc-block-components-price-slider",h&&"wc-block-price-filter--has-input-fields",h&&"wc-block-components-price-slider--has-input-fields",y&&"wc-block-price-filter--has-filter-button",y&&"wc-block-components-price-slider--has-filter-button",j&&"is-loading",!A&&"is-disabled"),L=_&&document.activeElement===_.current?k:1,Y=x&&document.activeElement===x.current?k:1;return React.createElement("div",{className:V},React.createElement("div",{className:"wc-block-price-filter__range-input-wrapper wc-block-components-price-slider__range-input-wrapper",onMouseMove:M,onFocus:M},A&&React.createElement("div",{"aria-hidden":h},React.createElement("div",{className:"wc-block-price-filter__range-input-progress wc-block-components-price-slider__range-input-progress",style:I}),React.createElement("input",{type:"range",className:"wc-block-price-filter__range-input wc-block-price-filter__range-input--min wc-block-components-price-slider__range-input wc-block-components-price-slider__range-input--min","aria-label":Object(f.__)("Filter products by minimum price","woo-gutenberg-products-block"),value:Number.isFinite(t)?t:n,onChange:U,step:L,min:n,max:o,ref:_,disabled:j,tabIndex:h?"-1":"0"}),React.createElement("input",{type:"range",className:"wc-block-price-filter__range-input wc-block-price-filter__range-input--max wc-block-components-price-slider__range-input wc-block-components-price-slider__range-input--max","aria-label":Object(f.__)("Filter products by maximum price","woo-gutenberg-products-block"),value:Number.isFinite(r)?r:o,onChange:U,step:Y,min:n,max:o,ref:x,disabled:j,tabIndex:h?"-1":"0"}))),React.createElement("div",{className:"wc-block-price-filter__controls wc-block-components-price-slider__controls"},h&&React.createElement(l.Fragment,null,React.createElement(m.a,{currency:s,displayType:"input",className:"wc-block-price-filter__amount wc-block-price-filter__amount--min wc-block-form-text-input wc-block-components-price-slider__amount wc-block-components-price-slider__amount--min","aria-label":Object(f.__)("Filter products by minimum price","woo-gutenberg-products-block"),onValueChange:function(e){e!==R&&C(e)},onBlur:B,disabled:j||!A,value:R}),React.createElement(m.a,{currency:s,displayType:"input",className:"wc-block-price-filter__amount wc-block-price-filter__amount--max wc-block-form-text-input wc-block-components-price-slider__amount wc-block-components-price-slider__amount--max","aria-label":Object(f.__)("Filter products by maximum price","woo-gutenberg-products-block"),onValueChange:function(e){e!==T&&D(e)},onBlur:B,disabled:j||!A,value:T})),!h&&!j&&Number.isFinite(t)&&Number.isFinite(r)&&React.createElement("div",{className:"wc-block-price-filter__range-text wc-block-components-price-slider__range-text"},Object(f.__)("Price","woo-gutenberg-products-block"),":  ",React.createElement(m.a,{currency:s,displayType:"text",value:t})," – ",React.createElement(m.a,{currency:s,displayType:"text",value:r})),y&&React.createElement(g.a,{className:"wc-block-price-filter__button wc-block-components-price-slider__button",disabled:j||!A,onClick:S,screenReaderLabel:Object(f.__)("Apply price filter","woo-gutenberg-products-block")})))},v=r(86),y=r(166),O=function(e,t,r){var n,o=10*Math.pow(10,t);"ROUND_UP"===r?n=isNaN(e)?null:Math.ceil(parseFloat(e,10)/o)*o:"ROUND_DOWN"===r&&(n=isNaN(e)?null:Math.floor(parseFloat(e,10)/o)*o);var i=Object(s.a)(n,Number.isFinite);return Number.isFinite(n)?n:i},j=function(e){var t=e.attributes,r=e.isEditor,n=void 0!==r&&r,o=Object(c.b)("min_price",null),i=a()(o,2),f=i[0],p=i[1],b=Object(c.b)("max_price",null),m=a()(b,2),d=m[0],g=m[1],j=Object(c.a)(),w=a()(j,1)[0],S=Object(u.a)({queryPrices:!0,queryState:w}),_=S.results,x=S.isLoading,k=Object(l.useState)(),E=a()(k,2),P=E[0],R=E[1],C=Object(l.useState)(),N=a()(C,2),F=N[0],T=N[1],D=Object(y.c)(_.price_range),A=function(e){var t=e.minPrice,r=e.maxPrice,n=e.minorUnit;return{minConstraint:O(t,n,"ROUND_DOWN"),maxConstraint:O(r,n,"ROUND_UP")}}({minPrice:_.price_range?_.price_range.min_price:void 0,maxPrice:_.price_range?_.price_range.max_price:void 0,minorUnit:D.minorUnit}),I=A.minConstraint,M=A.maxConstraint,U=Object(l.useCallback)((function(e,t){p(e===I?void 0:e),g(t===M?void 0:t)}),[I,M,p,g]),B=Object(v.a)(U,500),V=a()(B,1)[0],L=Object(l.useCallback)((function(e){e[0]!==P&&R(e[0]),e[1]!==F&&T(e[1])}),[P,F,R,T]);Object(l.useEffect)((function(){t.showFilterButton||V(P,F)}),[P,F,t.showFilterButton,V]);var Y=Object(s.a)(f),q=Object(s.a)(d),K=Object(s.a)(I),W=Object(s.a)(M);if(Object(l.useEffect)((function(){(!Number.isFinite(P)||f!==Y&&f!==P||I!==K&&I!==P)&&R(Number.isFinite(f)?f:I),(!Number.isFinite(F)||d!==q&&d!==F||M!==W&&M!==F)&&T(Number.isFinite(d)?d:M)}),[P,F,f,d,I,M,K,W,Y,q]),!x&&(null===I||null===M||I===M))return null;var G="h".concat(t.headingLevel);return React.createElement(l.Fragment,null,!n&&t.heading&&React.createElement(G,null,t.heading),React.createElement("div",{className:"wc-block-price-slider"},React.createElement(h,{minConstraint:I,maxConstraint:M,minPrice:P,maxPrice:F,currency:D,showInputFields:t.showInputFields,showFilterButton:t.showFilterButton,onChange:L,onSubmit:function(){return U(P,F)},isLoading:x})))};Object(o.a)({selector:".wp-block-woocommerce-price-filter",Block:Object(n.a)(j),getProps:function(e){return{attributes:{showInputFields:"true"===e.dataset.showinputfields,showFilterButton:"true"===e.dataset.showfilterbutton}}}})},29:function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},3:function(e,t,r){e.exports=r(72)()},30:function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},33:function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},35:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},36:function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},37:function(e,t,r){var n=r(71);e.exports=function(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&&n(e,t)}},38:function(e,t,r){var n=r(33),o=r(29);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?o(e):t}},4:function(e,t){!function(){e.exports=this.wc.wcSettings}()},40:function(e,t,r){"use strict";var n=r(7),o=r.n(n),i=(r(3),r(2)),a=r(5),c=r.n(a);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t,r=e.label,n=e.screenReaderLabel,o=e.wrapperElement,a=e.wrapperProps,u=void 0===a?{}:a,l=null!=r,f=null!=n;return!l&&f?(t=o||"span",u=s(s({},u),{},{className:c()(u.className,"screen-reader-text")}),React.createElement(t,u,n)):(t=o||i.Fragment,l&&f&&r!==n?React.createElement(t,u,React.createElement("span",{"aria-hidden":"true"},r),React.createElement("span",{className:"screen-reader-text"},n)):React.createElement(t,u,r))}},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(0),o=r(28),i=r.n(o),a=function(e){var t=Object(n.useRef)();return i()(e,t.current)||(t.current=e),t.current}},43:function(e,t,r){"use strict";var n=r(11),o=r.n(n),i=r(7),a=r.n(i),c=r(15),u=r.n(c),s=r(111),l=r(5),f=r.n(l);r(135);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t=e.className,r=e.value,n=e.currency,i=e.onValueChange,a=u()(e,["className","value","currency","onValueChange"]);if("-"===r)return null;var c=r/Math.pow(10,n.minorUnit);if(!Number.isFinite(c))return null;var l=f()("wc-block-formatted-money-amount","wc-block-components-formatted-money-amount",t),p=b(b(b({displayType:"text"},a),function(e){return{thousandSeparator:e.thousandSeparator,decimalSeparator:e.decimalSeparator,decimalScale:e.minorUnit,fixedDecimalScale:!0,prefix:e.prefix,suffix:e.suffix,isNumericString:!0}}(n)),{},{value:void 0,currency:void 0,onValueChange:void 0}),m=i?function(e){var t=e.value*Math.pow(10,n.minorUnit);i(t)}:function(){};return React.createElement(s.a,o()({className:l},p,{value:c,onValueChange:m}))}},44:function(e,t){!function(){e.exports=this.wp.blocks}()},47:function(e,t,r){"use strict";var n=r(35),o=r.n(n),i=r(36),a=r.n(i),c=r(29),u=r.n(c),s=r(37),l=r.n(s),f=r(38),p=r.n(f),b=r(30),m=r.n(b),d=r(7),g=r.n(d),h=(r(3),r(2)),v=r(1),y=r(9),O=function(e){var t=e.imageUrl,r=void 0===t?"".concat(y.D,"img/block-error.svg"):t,n=e.header,o=void 0===n?Object(v.__)("Oops!","woo-gutenberg-products-block"):n,i=e.text,a=void 0===i?Object(v.__)("There was an error loading the content.","woo-gutenberg-products-block"):i,c=e.errorMessage,u=e.errorMessagePrefix,s=void 0===u?Object(v.__)("Error:","woo-gutenberg-products-block"):u;return React.createElement("div",{className:"wc-block-error wc-block-components-error"},r&&React.createElement("img",{className:"wc-block-error__image wc-block-components-error__image",src:r,alt:""}),React.createElement("div",{className:"wc-block-error__content wc-block-components-error__content"},o&&React.createElement("p",{className:"wc-block-error__header wc-block-components-error__header"},o),a&&React.createElement("p",{className:"wc-block-error__text wc-block-components-error__text"},a),c&&React.createElement("p",{className:"wc-block-error__message wc-block-components-error__message"},s?s+" ":"",c)))};r(74);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=m()(e);if(t){var o=m()(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return p()(this,r)}}var w=function(e){l()(r,e);var t=j(r);function r(){var e;o()(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),g()(u()(e),"state",{errorMessage:"",hasError:!1}),e}return a()(r,[{key:"render",value:function(){var e=this.props,t=e.header,r=e.imageUrl,n=e.showErrorMessage,o=e.text,i=e.errorMessagePrefix,a=e.renderError,c=this.state,u=c.errorMessage;return c.hasError?"function"==typeof a?a({errorMessage:u}):React.createElement(O,{errorMessage:n?u:null,header:t,imageUrl:r,text:o,errorMessagePrefix:i}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return void 0!==e.statusText&&void 0!==e.status?{errorMessage:React.createElement(h.Fragment,null,React.createElement("strong",null,e.status),": ",e.statusText),hasError:!0}:{errorMessage:e.message,hasError:!0}}}]),r}(h.Component);w.defaultProps={showErrorMessage:!0};t.a=w},48:function(e,t,r){var n=r(99),o=r(100),i=r(65),a=r(101);e.exports=function(e){return n(e)||o(e)||i(e)||a()}},5:function(e,t,r){var n;
  /*!
    Copyright (c) 2017 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)&&n.length){var a=o.apply(null,n);a&&e.push(a)}else if("object"===i)for(var c in n)r.call(n,c)&&n[c]&&e.push(c)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},65:function(e,t,r){var n=r(66);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}},66:function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}},67:function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}},69:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0),o=Object(n.createContext)("page"),i=function(){return Object(n.useContext)(o)};o.Provider},7:function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},71:function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},72:function(e,t,r){"use strict";var n=r(73);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},73:function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74:function(e,t){},8:function(e,t){!function(){e.exports=this.lodash}()},81:function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},82:function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}},83:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},86:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2);function o(e,t,r){void 0===r&&(r={});var o=r.maxWait,i=Object(n.useRef)(null),a=Object(n.useRef)([]),c=r.leading,u=void 0===r.trailing||r.trailing,s=Object(n.useRef)(!1),l=Object(n.useRef)(null),f=Object(n.useRef)(!1),p=Object(n.useRef)(e);p.current=e;var b=Object(n.useCallback)((function(){clearTimeout(l.current),clearTimeout(i.current),i.current=null,a.current=[],l.current=null,s.current=!1}),[]);Object(n.useEffect)((function(){return f.current=!1,function(){f.current=!0}}),[]);var m=Object(n.useCallback)((function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];a.current=e,clearTimeout(l.current),s.current&&(s.current=!1),l.current||!c||s.current||(p.current.apply(p,e),s.current=!0),l.current=setTimeout((function(){var t=!0;c&&s.current&&(t=!1),b(),!f.current&&u&&t&&p.current.apply(p,e)}),t),o&&!i.current&&u&&(i.current=setTimeout((function(){var e=a.current;b(),f.current||p.current.apply(null,e)}),o))}),[o,t,b,c,u]),d=Object(n.useCallback)((function(){l.current&&(p.current.apply(null,a.current),b())}),[b]);return[m,b,d]}},9:function(e,t,r){"use strict";r.d(t,"j",(function(){return o})),r.d(t,"v",(function(){return i})),r.d(t,"z",(function(){return a})),r.d(t,"s",(function(){return c})),r.d(t,"n",(function(){return u})),r.d(t,"p",(function(){return s})),r.d(t,"i",(function(){return l})),r.d(t,"A",(function(){return f})),r.d(t,"l",(function(){return p})),r.d(t,"m",(function(){return b})),r.d(t,"k",(function(){return m})),r.d(t,"c",(function(){return d})),r.d(t,"o",(function(){return g})),r.d(t,"D",(function(){return v})),r.d(t,"E",(function(){return y})),r.d(t,"w",(function(){return O})),r.d(t,"a",(function(){return j})),r.d(t,"x",(function(){return w})),r.d(t,"b",(function(){return S})),r.d(t,"r",(function(){return _})),r.d(t,"g",(function(){return x})),r.d(t,"y",(function(){return P})),r.d(t,"h",(function(){return R})),r.d(t,"u",(function(){return C})),r.d(t,"t",(function(){return N})),r.d(t,"C",(function(){return F})),r.d(t,"B",(function(){return T})),r.d(t,"d",(function(){return D})),r.d(t,"e",(function(){return A})),r.d(t,"f",(function(){return I})),r.d(t,"q",(function(){return M})),r.d(t,"F",(function(){return U}));var n=r(4),o=Object(n.getSetting)("currentUserIsAdmin",!1),i=Object(n.getSetting)("reviewRatingsEnabled",!0),a=Object(n.getSetting)("showAvatars",!0),c=(Object(n.getSetting)("max_columns",6),Object(n.getSetting)("min_columns",1),Object(n.getSetting)("default_columns",3),Object(n.getSetting)("max_rows",6),Object(n.getSetting)("min_rows",1),Object(n.getSetting)("default_rows",3),Object(n.getSetting)("min_height",500),Object(n.getSetting)("default_height",500),Object(n.getSetting)("placeholderImgSrc","")),u=(Object(n.getSetting)("thumbnail_size",300),Object(n.getSetting)("isLargeCatalog")),s=Object(n.getSetting)("limitTags"),l=(Object(n.getSetting)("hasProducts",!0),Object(n.getSetting)("hasTags",!0),Object(n.getSetting)("homeUrl",""),Object(n.getSetting)("couponsEnabled",!0)),f=(Object(n.getSetting)("shippingEnabled",!0),Object(n.getSetting)("taxesEnabled",!0)),p=Object(n.getSetting)("displayItemizedTaxes",!1),b=Object(n.getSetting)("hasDarkEditorStyleSupport",!1),m=(Object(n.getSetting)("displayShopPricesIncludingTax",!1),Object(n.getSetting)("displayCartPricesIncludingTax",!1)),d=(Object(n.getSetting)("productCount",0),Object(n.getSetting)("attributes",[])),g=Object(n.getSetting)("isShippingCalculatorEnabled",!0),h=(Object(n.getSetting)("isShippingCostHidden",!1),Object(n.getSetting)("woocommerceBlocksPhase",1)),v=Object(n.getSetting)("wcBlocksAssetUrl",""),y=Object(n.getSetting)("wcBlocksBuildUrl",""),O=Object(n.getSetting)("shippingCountries",{}),j=Object(n.getSetting)("allowedCountries",{}),w=Object(n.getSetting)("shippingStates",{}),S=Object(n.getSetting)("allowedStates",{}),_=(Object(n.getSetting)("shippingMethodsExist",!1),Object(n.getSetting)("paymentGatewaySortOrder",[])),x=Object(n.getSetting)("checkoutShowLoginReminder",!0),k={id:0,title:"",permalink:""},E=Object(n.getSetting)("storePages",{shop:k,cart:k,checkout:k,privacy:k,terms:k}),P=E.shop.permalink,R=(E.checkout.id,E.checkout.permalink),C=E.privacy.permalink,N=E.privacy.title,F=E.terms.permalink,T=E.terms.title,D=(E.cart.id,E.cart.permalink),A=Object(n.getSetting)("checkoutAllowsGuest",!1),I=Object(n.getSetting)("checkoutAllowsSignup",!1),M=Object(n.getSetting)("loginUrl","/wp-login.php"),U=(r(44),function(){return h>1})},93:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(10),o=r.n(n),i=r(0),a=function(){var e=Object(i.useState)(),t=o()(e,2)[1];return function(e){return t((function(){throw e}))}}},99:function(e,t,r){var n=r(66);e.exports=function(e){if(Array.isArray(e))return n(e)}}});