!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,u={},l=null,s=null;for(t in void 0!==n&&(l=""+n),void 0!==r.key&&(l=""+r.key),void 0!==r.ref&&(s=r.ref),r)a.call(r,t)&&!c.hasOwnProperty(t)&&(u[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===u[t]&&(u[t]=r[t]);return{$$typeof:o,type:e,key:l,ref:s,props:u,_owner:i.current}}},9255:function(e,r,n){e.exports=n(7005)},3620: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,u=window.wp.i18n,l=n(1609),s=n.n(l);function f(e){let{name:r,...n}=e;const[t,o]=(0,l.useState)(null),a=window?.scData?.plugin_url+"/dist/icon-assets";if((0,l.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,u.isRTL)()?"arrow-left":"arrow-right",chevron:(0,u.isRTL)()?"chevron-left":"chevron-right"};var w=JSON.parse('{"UU":"surecart/product-review-pagination-next"}');(0,t.registerBlockType)(w.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,u.__)("Next page link","surecart"),placeholder:(0,u.__)("Next","surecart"),value:r,onChange:e=>n({label:e})}),!!a&&React.createElement(f,{name:a,className:"wp-block-surecart-product-review-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,u=0;u<n.length;u++)(!1&a||i>=a)&&Object.keys(t.O).every((function(e){return t.O[e](n[u])}))?n.splice(u--,1):(c=!1,a<i&&(i=a));if(c){e.splice(s--,1);var l=o();void 0!==l&&(r=l)}}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={5414:0,170:0};t.O.j=function(r){return 0===e[r]};var r=function(r,n){var o,a,i=n[0],c=n[1],u=n[2],l=0;if(i.some((function(r){return 0!==e[r]}))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(u)var s=u(t)}for(r&&r(n);l<i.length;l++)a=i[l],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,[170],(function(){return t(3620)}));o=t.O(o)}();