!function(){"use strict";var e,t={7005:function(e,t,r){var n=r(1609),a=Symbol.for("react.element"),o=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),c=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,r){var n,i={},l=null,u=null;for(n in void 0!==r&&(l=""+r),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)o.call(t,n)&&!s.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:a,type:e,key:l,ref:u,props:i,_owner:c.current}}},9255:function(e,t,r){e.exports=r(7005)},5715:function(e,t,r){var n=window.wp.blocks,a=window.wp.primitives,o=r(9255),c=(0,o.jsx)(a.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,o.jsx)(a.Path,{d:"M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z"})}),s=window.wp.i18n,i=window.wp.element,l=window.wp.data,u=window.wp.blockEditor;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},d.apply(null,arguments)}function p(e){let{template:t,renderAppender:r,...n}=e;const a=(0,u.useInnerBlocksProps)(n,{template:t,__unstableDisableLayoutClassNames:!0,renderAppender:r});return React.createElement("div",a)}const f=(0,i.memo)((function(e){let{blocks:t,blockContextId:r,isHidden:n,setActiveBlockContextId:a,...o}=e;const{style:c,className:s,...i}=o||{},l=(0,u.__experimentalUseBlockPreview)({blocks:t});return React.createElement("div",d({},l,{tabIndex:0,role:"button",onClick:()=>{a(r)},style:{...c,display:n?"none":void 0},className:s},i))}));function m(e){let{clientId:t,blockContexts:r,className:n,style:a,itemProps:o,template:c,renderAppender:s,attachBlockProps:m=!0}=e;const[v,_]=(0,i.useState)(),w=(0,l.useSelect)((e=>e(u.store).getBlocks(t)),[t]),k=m?(0,u.useBlockProps)({className:n,style:a}):{style:a,className:n};return React.createElement("div",k,r&&r.map((e=>React.createElement(u.BlockContextProvider,{key:e.id,value:e},e.id===(v||r[0]?.id)&&React.createElement(p,d({template:c,renderAppender:s},o)),React.createElement(f,d({blocks:w,blockContextId:e.id,setActiveBlockContextId:_,isHidden:e.id===(v||r[0]?.id)},o))))))}const v=[["surecart/product-list-sort-radio"]];var _=JSON.parse('{"UU":"surecart/product-list-sort-radio-group-template"}');(0,n.registerBlockType)(_.UU,{icon:c,edit:e=>{let{clientId:t,__unstableLayoutClassNames:r}=e;const n=(0,u.useBlockProps)({className:r});return React.createElement("div",n,React.createElement(m,{template:v,blockContexts:[{id:"date:desc","surecart/radio/name":(0,s.__)("Latest","surecart")},{id:"date:asc","surecart/radio/name":(0,s.__)("Oldest","surecart")},{id:"title:asc","surecart/radio/name":(0,s.__)("Alphabetical, A-Z","surecart")},{id:"title:desc","surecart/radio/name":(0,s.__)("Alphabetical, Z-A","surecart")},{id:"price:desc","surecart/radio/name":(0,s.__)("Price, low to high","surecart")},{id:"price:asc","surecart/radio/name":(0,s.__)("Price, high to low","surecart")}],className:r,clientId:t,renderAppender:!1}))},save:function(){return React.createElement(u.InnerBlocks.Content,null)}})},1609:function(e){e.exports=window.React}},r={};function n(e){var a=r[e];if(void 0!==a)return a.exports;var o=r[e]={exports:{}};return t[e](o,o.exports,n),o.exports}n.m=t,e=[],n.O=function(t,r,a,o){if(!r){var c=1/0;for(u=0;u<e.length;u++){r=e[u][0],a=e[u][1],o=e[u][2];for(var s=!0,i=0;i<r.length;i++)(!1&o||c>=o)&&Object.keys(n.O).every((function(e){return n.O[e](r[i])}))?r.splice(i--,1):(s=!1,o<c&&(c=o));if(s){e.splice(u--,1);var l=a();void 0!==l&&(t=l)}}return t}o=o||0;for(var u=e.length;u>0&&e[u-1][2]>o;u--)e[u]=e[u-1];e[u]=[r,a,o]},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={4935:0,4239:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var a,o,c=r[0],s=r[1],i=r[2],l=0;if(c.some((function(t){return 0!==e[t]}))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(i)var u=i(n)}for(t&&t(r);l<c.length;l++)o=c[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(u)},r=self.webpackChunk_surecart_blocks_next=self.webpackChunk_surecart_blocks_next||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var a=n.O(void 0,[4239],(function(){return n(5715)}));a=n.O(a)}();