!function(){"use strict";var e,r={7005:function(e,r,t){var n=t(1609),o=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var n,l={},u=null,s=null;for(n in void 0!==t&&(u=""+t),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)a.call(r,n)&&!c.hasOwnProperty(n)&&(l[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===l[n]&&(l[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:s,props:l,_owner:i.current}}},9255:function(e,r,t){e.exports=t(7005)},5039:function(e,r,t){var n=window.wp.blocks,o=window.wp.primitives,a=t(9255),i=(0,a.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,a.jsx)(o.Path,{d:"M4 13.5h6v-3H4v3zm8 0h3v-3h-3v3zm5-3v3h3v-3h-3z"})}),c=window.wp.blockEditor,l=window.wp.i18n,u=window.wp.data,s=window.wp.components;function p(e){let{value:r,onChange:t}=e;return React.createElement(s.__experimentalToggleGroupControl,{__nextHasNoMarginBottom:!0,label:(0,l.__)("Arrow","surecart"),value:r,onChange:t,help:(0,l.__)("A decorative arrow for the next and previous page buttons.","surecart"),isBlock:!0},React.createElement(s.__experimentalToggleGroupControlOption,{value:"arrow",label:(0,l._x)("Arrow","Arrow option for pagination","surecart")}),React.createElement(s.__experimentalToggleGroupControlOption,{value:"chevron",label:(0,l._x)("Chevron","Arrow option for pagination","surecart")}))}function f(e){let{value:r,onChange:t}=e;return React.createElement(s.RangeControl,{label:(0,l.__)("Arrow Size","surecart"),value:r,onChange:t,min:12,max:48,help:(0,l.__)("Size of the pagination arrows in pixels.","surecart")})}const v=[["surecart/cart-order-bump-pagination-previous"],["surecart/cart-order-bump-pagination-next"]];var _=JSON.parse('{"UU":"surecart/cart-order-bump-pagination"}');(0,n.registerBlockType)(_.UU,{icon:i,edit:e=>{let{clientId:r,attributes:{paginationArrow:t,paginationArrowSize:n},setAttributes:o}=e;const a=(0,c.useBlockProps)(),i=(0,c.useInnerBlocksProps)(a,{template:v}),_=(0,u.useSelect)((e=>{const{getBlocks:t}=e(c.store),n=t(r);return n?.find((e=>["surecart/cart-order-bump-pagination-next","surecart/cart-order-bump-pagination-previous"].includes(e.name)))}),[r]);return React.createElement(React.Fragment,null,_&&React.createElement(c.InspectorControls,null,React.createElement(s.PanelBody,{title:(0,l.__)("Settings","surecart")},React.createElement(p,{value:t,onChange:e=>{o({paginationArrow:e})}}),React.createElement(f,{value:n,onChange:e=>{o({paginationArrowSize:e})}}))),React.createElement("nav",i))},save:()=>React.createElement(c.InnerBlocks.Content,null),__experimentalLabel:()=>(0,l.__)("Pagination","surecart")})},1609:function(e){e.exports=window.React}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var a=t[e]={exports:{}};return r[e](a,a.exports,n),a.exports}n.m=r,e=[],n.O=function(r,t,o,a){if(!t){var i=1/0;for(s=0;s<e.length;s++){t=e[s][0],o=e[s][1],a=e[s][2];for(var c=!0,l=0;l<t.length;l++)(!1&a||i>=a)&&Object.keys(n.O).every((function(e){return n.O[e](t[l])}))?t.splice(l--,1):(c=!1,a<i&&(i=a));if(c){e.splice(s--,1);var u=o();void 0!==u&&(r=u)}}return r}a=a||0;for(var s=e.length;s>0&&e[s-1][2]>a;s--)e[s]=e[s-1];e[s]=[t,o,a]},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={7350:0,8298:0};n.O.j=function(r){return 0===e[r]};var r=function(r,t){var o,a,i=t[0],c=t[1],l=t[2],u=0;if(i.some((function(r){return 0!==e[r]}))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var s=l(n)}for(r&&r(t);u<i.length;u++)a=i[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return n.O(s)},t=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))}();var o=n.O(void 0,[8298],(function(){return n(5039)}));o=n.O(o)}();