!function(){var t,e={7005:function(t,e,r){"use strict";var n=r(1609),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};e.jsx=function(t,e,r){var n,u={},c=null,l=null;for(n in void 0!==r&&(c=""+r),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(l=e.ref),e)i.call(e,n)&&!a.hasOwnProperty(n)&&(u[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps)void 0===u[n]&&(u[n]=e[n]);return{$$typeof:o,type:t,key:c,ref:l,props:u,_owner:s.current}}},9255:function(t,e,r){"use strict";t.exports=r(7005)},9841:function(t,e,r){"use strict";var n=window.wp.blocks,o=window.wp.primitives,i=r(9255),s=(0,i.jsx)(o.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)(o.Path,{d:"M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z"})}),a=r(3373),u=r.n(a),c=window.wp.blockEditor,l=window.wp.data,f=window.wp.i18n;const p="surecart/product-buy-button",d=[p,"surecart/product-selected-price-ad-hoc-amount"];var v=JSON.parse('{"UU":"surecart/product-buy-buttons"}');(0,n.registerBlockType)(v.UU,{edit:t=>{let{attributes:e,className:r}=t;const{fontSize:n,layout:o,style:i}=e,s=(0,c.useBlockProps)({className:u()(r,{"wp-block-buttons":!0,"has-custom-font-size":n||i?.typography?.fontSize})}),a=(0,l.useSelect)((t=>{const e=t(c.store).getSettings().__experimentalPreferredStyleVariations;return e?.value?.[p]}),[]),v=(0,c.useInnerBlocksProps)(s,{allowedBlocks:d,template:[[p,{className:a&&`is-style-${a}`,text:(0,f.__)("Add To Cart","surecart"),add_to_cart:!0,width:100}],[p,{className:a?`is-style-${a}`:"is-style-outline",text:(0,f.__)("Buy Now","surecart"),add_to_cart:!1,width:100,style:"outline"}]],templateInsertUpdatesSelection:!0,orientation:o?.orientation??"horizontal"});return React.createElement("div",v)},save:function(t){let{attributes:e,className:r}=t;const{fontSize:n,style:o,contentJustification:i,orientation:s}=e,a=c.useBlockProps.save({className:u()(r,{"wp-block-buttons":!0,"sc-block-buttons":!0,"is-layout-flex":!0,"has-custom-font-size":n||o?.typography?.fontSize,[`is-content-justification-${i}`]:i,"is-vertical":"vertical"===s})}),l=c.useInnerBlocksProps.save(a);return React.createElement("div",l)},icon:s})},1609:function(t){"use strict";t.exports=window.React},3373:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=s(t,i(r)))}return t}function i(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return o.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=s(e,r));return e}function s(t,e){return e?t?t+" "+e:t+e:t}t.exports?(o.default=o,t.exports=o):void 0===(r=function(){return o}.apply(e,[]))||(t.exports=r)}()}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.m=e,t=[],n.O=function(e,r,o,i){if(!r){var s=1/0;for(l=0;l<t.length;l++){r=t[l][0],o=t[l][1],i=t[l][2];for(var a=!0,u=0;u<r.length;u++)(!1&i||s>=i)&&Object.keys(n.O).every((function(t){return n.O[t](r[u])}))?r.splice(u--,1):(a=!1,i<s&&(s=i));if(a){t.splice(l--,1);var c=o();void 0!==c&&(e=c)}}return e}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[r,o,i]},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t={2011:0,2691:0};n.O.j=function(e){return 0===t[e]};var e=function(e,r){var o,i,s=r[0],a=r[1],u=r[2],c=0;if(s.some((function(e){return 0!==t[e]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(u)var l=u(n)}for(e&&e(r);c<s.length;c++)i=s[c],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(l)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var o=n.O(void 0,[2691],(function(){return n(9841)}));o=n.O(o)}();