!function(){"use strict";var e,r={7005:function(e,r,n){var t=n(1609),o=Symbol.for("react.element"),i=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),a=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={},s=null,l=null;for(t in void 0!==n&&(s=""+n),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(l=r.ref),r)i.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:s,ref:l,props:u,_owner:a.current}}},9255:function(e,r,n){e.exports=n(7005)},2161:function(e,r,n){var t=window.wp.blocks,o=window.wp.primitives,i=n(9255),a=(0,i.jsx)(o.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,i.jsx)(o.Path,{d:"M14.6 7l-1.2-1L8 12l5.4 6 1.2-1-4.6-5z"})}),c=window.wp.i18n,u=window.wp.blockEditor,s=n(1609),l=n.n(s);function f(e){let{name:r,...n}=e;const[t,o]=(0,s.useState)(null),i=window?.scData?.plugin_url+"/dist/icon-assets";if((0,s.useEffect)((()=>{fetch(`${i}/${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 a={...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 l().createElement(t.tagName,{...a,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={arrow:(0,c.isRTL)()?"arrow-right":"arrow-left",chevron:(0,c.isRTL)()?"chevron-right":"chevron-left"};var d=JSON.parse('{"UU":"surecart/cart-order-bump-pagination-previous"}');(0,t.registerBlockType)(d.UU,{icon:a,edit:e=>{let{context:r}=e;const n=(0,u.useBlockProps)(),t=r?.paginationArrow||"chevron",o=r?.paginationArrowSize||20,i=v[t];return React.createElement("div",p({},n,{role:"button",tabindex:"0",disabled:!0}),React.createElement(f,{name:i,width:o,height:o,className:"wp-block-surecart-cart-order-bump-pagination-previous__icon","aria-hidden":!0}))},__experimentalLabel:()=>(0,c.__)("Previous","surecart")})},1609:function(e){e.exports=window.React}},n={};function t(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return r[e](i,i.exports,t),i.exports}t.m=r,e=[],t.O=function(r,n,o,i){if(!n){var a=1/0;for(l=0;l<e.length;l++){n=e[l][0],o=e[l][1],i=e[l][2];for(var c=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(t.O).every((function(e){return t.O[e](n[u])}))?n.splice(u--,1):(c=!1,i<a&&(a=i));if(c){e.splice(l--,1);var s=o();void 0!==s&&(r=s)}}return r}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,o,i]},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={3518:0,3906:0};t.O.j=function(r){return 0===e[r]};var r=function(r,n){var o,i,a=n[0],c=n[1],u=n[2],s=0;if(a.some((function(r){return 0!==e[r]}))){for(o in c)t.o(c,o)&&(t.m[o]=c[o]);if(u)var l=u(t)}for(r&&r(n);s<a.length;s++)i=a[s],t.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return t.O(l)},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,[3906],(function(){return t(2161)}));o=t.O(o)}();