!function(){"use strict";var e,r={7005:function(e,r,n){var t=n(1609),o=Symbol.for("react.element"),a=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),i=t.__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,n){var t,l={},u=null,s=null;for(t in void 0!==n&&(u=""+n),void 0!==r.key&&(u=""+r.key),void 0!==r.ref&&(s=r.ref),r)a.call(r,t)&&!c.hasOwnProperty(t)&&(l[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===l[t]&&(l[t]=r[t]);return{$$typeof:o,type:e,key:u,ref:s,props:l,_owner:i.current}}},9255:function(e,r,n){e.exports=n(7005)},95:function(e,r,n){var t=window.wp.blocks,o=window.wp.primitives,a=n(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:"M5 13.5h3v-3H5v3zm5 0h3v-3h-3v3zM17 9l-1 1 2 2-2 2 1 1 3-3-3-3z"})}),c=window.wp.blockEditor,l=window.wp.i18n,u=n(1609),s=n.n(u);function f(e){let{name:r,...n}=e;const[t,o]=(0,u.useState)(null),a=window?.scData?.plugin_url+"/dist/icon-assets";if((0,u.useEffect)((()=>{fetch(`${a}/${r}.svg`).then((e=>e.text())).then((e=>{const r=(new DOMParser).parseFromString(e,"image/svg+xml");o(r?.documentElement)})).catch(console.error)}),[r]),!t)return null;const i={...Array.from(t.attributes).reduce(((e,r)=>(e[r.name.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))]=r.value,e)),{}),...n};return s().createElement(t.tagName,{...i,dangerouslySetInnerHTML:{__html:t.innerHTML}})}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},p.apply(null,arguments)}const v={none:"",arrow:(0,l.isRTL)()?"arrow-left":"arrow-right",chevron:(0,l.isRTL)()?"chevron-left":"chevron-right"};var d=JSON.parse('{"UU":"surecart/product-pagination-next"}');(0,t.registerBlockType)(d.UU,{icon:i,edit:e=>{let{attributes:{label:r},setAttributes:n,context:{paginationArrow:t,showLabel:o}}=e;const a=v[t],i=(0,c.useBlockProps)({className:"has-arrow-type-"+t});return React.createElement("a",p({href:"#",onClick:e=>e.preventDefault()},i),o&&React.createElement(c.PlainText,{__experimentalVersion:2,tagName:"span","aria-label":(0,l.__)("Next page link"),placeholder:(0,l.__)("Next"),value:r,onChange:e=>n({label:e})}),!!a&&React.createElement(f,{name:a,className:"wp-block-surecart-product-pagination-next__icon","aria-hidden":!0}))}})},1609:function(e){e.exports=window.React}},n={};function t(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,t),a.exports}t.m=r,e=[],t.O=function(r,n,o,a){if(!n){var i=1/0;for(s=0;s<e.length;s++){n=e[s][0],o=e[s][1],a=e[s][2];for(var c=!0,l=0;l<n.length;l++)(!1&a||i>=a)&&Object.keys(t.O).every((function(e){return t.O[e](n[l])}))?n.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]=[n,o,a]},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},t.d=function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={8633:0,3549:0};t.O.j=function(r){return 0===e[r]};var r=function(r,n){var o,a,i=n[0],c=n[1],l=n[2],u=0;if(i.some((function(r){return 0!==e[r]}))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(l)var s=l(t)}for(r&&r(n);u<i.length;u++)a=i[u],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(s)},n=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];n.forEach(r.bind(null,0)),n.push=r.bind(null,n.push.bind(n))}();var o=t.O(void 0,[3549],(function(){return t(95)}));o=t.O(o)}();