!function(e,t){for(var n in t)e[n]=t[n]}(this,function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=17)}({10:function(e,t){!function(){e.exports=this.wp.plugins}()},11:function(e,t){!function(){e.exports=this.wc.blocksCheckout}()},12:function(e,t){!function(){e.exports=this.wp.data}()},17:function(e,t,n){"use strict";n.r(t);var r=n(10),o=n(11),c=n(12);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c,u=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){i=!0,c=e},f:function(){try{u||null==n.return||n.return()}finally{if(i)throw c}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i=function(){var e=ywraq_frontend.showButtonOnCheckout,t=ywraq_frontend.isCheckout;if(!e||!t)return"";var n=ywraq_frontend.buttonOnCheckoutStyle,r=ywraq_frontend.buttonOnCheckoutLabel,o=Object(c.useDispatch)("wc/store/payment").__internalSetActivePaymentMethod,u=function(e){e.preventDefault(),o("yith-request-a-quote"),document.querySelector(".wc-block-components-checkout-place-order-button").click()};return React.createElement("div",{className:"ywraq-ask-for-a-quote-on-block"},"button"===n?React.createElement("button",{onClick:u,id:"ywraq_checkout_quote_button",className:"button"},r):React.createElement("a",{id:"ywraq_checkout_quote_button",onClick:u,href:"#",className:"quote-button alt"},r))};Object(r.registerPlugin)("ywraq-quote-button-on-checkout",{render:function(){return React.createElement(React.Fragment,null,React.createElement(o.ExperimentalOrderMeta,{context:"woocommerce/checkout"},React.createElement(i,null)))},scope:"woocommerce-checkout"});var l=new MutationObserver((function(e){var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r,o=u(t.value.addedNodes);try{for(o.s();!(r=o.n()).done;){var c=r.value;c instanceof HTMLElement&&("payment-method"===c.id&&jQuery(document).find("#radio-control-wc-payment-method-options-yith-request-a-quote__label").closest(".wc-block-components-radio-control__option").hide())}}catch(e){o.e(e)}finally{o.f()}}}catch(e){n.e(e)}finally{n.f()}})),f=document.querySelector(".woocommerce-checkout.woocommerce-page");l.observe(f,{childList:!0,subtree:!0})}}));