!function(){"use strict";var e,r={7544:function(e,r,t){var n=window.wp.blocks,o=window.wp.primitives,a=t(1085),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=t(1609),s=t.n(u);function f(e){let{name:r,...t}=e;const[n,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]),!n)return null;const i={...Array.from(n.attributes).reduce(((e,r)=>(e[r.name.replace(/-([a-z])/g,(function(e){return e[1].toUpperCase()}))]=r.value,e)),{}),...t};return s().createElement(n.tagName,{...i,dangerouslySetInnerHTML:{__html:n.innerHTML}})}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}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 b=JSON.parse('{"UU":"surecart/product-pagination-next"}');(0,n.registerBlockType)(b.UU,{icon:i,edit:e=>{let{attributes:{label:r},setAttributes:t,context:{paginationArrow:n,showLabel:o}}=e;const a=v[n],i=(0,c.useBlockProps)({className:"has-arrow-type-"+n});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=>t({label:e})}),!!a&&React.createElement(f,{name:a,className:"wp-block-surecart-product-pagination-next__icon","aria-hidden":!0}))}})},1513:function(e){var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var a,i,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var u in a=Object(arguments[l]))t.call(a,u)&&(c[u]=a[u]);if(r){i=r(a);for(var s=0;s<i.length;s++)n.call(a,i[s])&&(c[i[s]]=a[i[s]])}}return c}},3335:function(e,r,t){t(1513);var n=t(1609),o=60103;if("function"==typeof Symbol&&Symbol.for){var a=Symbol.for;o=a("react.element"),a("react.fragment")}var i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};r.jsx=function(e,r,t){var n,a={},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)c.call(r,n)&&!l.hasOwnProperty(n)&&(a[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===a[n]&&(a[n]=r[n]);return{$$typeof:o,type:e,key:u,ref:s,props:a,_owner:i.current}}},1085:function(e,r,t){e.exports=t(3335)},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.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,{a:r}),r},n.d=function(e,r){for(var t in r)n.o(r,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},function(){var e={8633:0,3549: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,[3549],(function(){return n(7544)}));o=n.O(o)}();