(()=>{var e,o,t,r={6132:(e,o,t)=>{"use strict";const r=window.wp.blocks;var l=t(4530),s=t(5573),c=t(790);const n=(0,c.jsxs)(s.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,c.jsx)("path",{stroke:"currentColor",strokeWidth:"1.5",fill:"none",d:"M6 3.75h12c.69 0 1.25.56 1.25 1.25v14c0 .69-.56 1.25-1.25 1.25H6c-.69 0-1.25-.56-1.25-1.25V5c0-.69.56-1.25 1.25-1.25z"}),(0,c.jsx)("path",{fill:"currentColor",fillRule:"evenodd",d:"M6.9 7.5A1.1 1.1 0 018 6.4h8a1.1 1.1 0 011.1 1.1v2a1.1 1.1 0 01-1.1 1.1H8a1.1 1.1 0 01-1.1-1.1v-2zm1.2.1v1.8h7.8V7.6H8.1z",clipRule:"evenodd"}),(0,c.jsx)("path",{fill:"currentColor",d:"M8.5 12h1v1h-1v-1zM8.5 14h1v1h-1v-1zM8.5 16h1v1h-1v-1zM11.5 12h1v1h-1v-1zM11.5 14h1v1h-1v-1zM11.5 16h1v1h-1v-1zM14.5 12h1v1h-1v-1zM14.5 14h1v1h-1v-1zM14.5 16h1v1h-1v-1z"})]}),i=JSON.parse('{"name":"woocommerce/catalog-sorting","title":"Catalog Sorting","description":"Enable customers to change the sorting order of the products.","category":"woocommerce","keywords":["WooCommerce"],"supports":{"interactivity":{"clientNavigation":true},"color":{"text":true,"background":false},"typography":{"fontSize":true}},"attributes":{"fontSize":{"type":"string","default":"small"},"useLabel":{"type":"boolean","default":false}},"textdomain":"woocommerce","apiVersion":3,"$schema":"https://schemas.wp.org/trunk/block.json"}'),a=window.wp.blockEditor;var h=t(7723);const d=window.wp.components,u=({useLabel:e})=>(0,c.jsx)(c.Fragment,{children:e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("label",{className:"orderby-label",htmlFor:"woocommerce-orderby",children:(0,h.__)("Sort by","woocommerce")}),(0,c.jsx)("select",{className:"orderby",id:"woocommerce-orderby",children:(0,c.jsx)("option",{children:(0,h.__)("Default","woocommerce")})})]}):(0,c.jsx)("select",{className:"orderby",children:(0,c.jsx)("option",{children:(0,h.__)("Default sorting","woocommerce")})})});t(7950),(0,r.registerBlockType)(i,{icon:{src:(0,c.jsx)(l.A,{icon:n,className:"wc-block-editor-components-block-icon"})},attributes:{...i.attributes},edit:({attributes:e,setAttributes:o})=>{const{useLabel:t}=e,r=(0,a.useBlockProps)({className:"woocommerce wc-block-catalog-sorting"});return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(a.InspectorControls,{children:(0,c.jsx)(d.__experimentalToolsPanel,{label:(0,h.__)("Accessibility","woocommerce"),resetAll:()=>{o({useLabel:!1})},children:(0,c.jsx)(d.__experimentalToolsPanelItem,{hasValue:()=>!1!==t,label:(0,h.__)("Show visual label","woocommerce"),onDeselect:()=>o({useLabel:!1}),isShownByDefault:!0,children:(0,c.jsx)(d.ToggleControl,{__nextHasNoMarginBottom:!0,label:(0,h.__)("Show visual label","woocommerce"),help:(0,h.__)('Displays "Sort by" text before the dropdown menu to improve clarity and accessibility.',"woocommerce"),checked:t,onChange:e=>o({useLabel:e})})})})}),(0,c.jsx)("div",{...r,children:(0,c.jsx)(d.Disabled,{children:(0,c.jsx)(u,{useLabel:t})})})]})},save:()=>null})},7950:()=>{},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},6087:e=>{"use strict";e.exports=window.wp.element},7723:e=>{"use strict";e.exports=window.wp.i18n},5573:e=>{"use strict";e.exports=window.wp.primitives}},l={};function s(e){var o=l[e];if(void 0!==o)return o.exports;var t=l[e]={exports:{}};return r[e](t,t.exports,s),t.exports}s.m=r,e=[],s.O=(o,t,r,l)=>{if(!t){var c=1/0;for(h=0;h<e.length;h++){for(var[t,r,l]=e[h],n=!0,i=0;i<t.length;i++)(!1&l||c>=l)&&Object.keys(s.O).every((e=>s.O[e](t[i])))?t.splice(i--,1):(n=!1,l<c&&(c=l));if(n){e.splice(h--,1);var a=r();void 0!==a&&(o=a)}}return o}l=l||0;for(var h=e.length;h>0&&e[h-1][2]>l;h--)e[h]=e[h-1];e[h]=[t,r,l]},s.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return s.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(e,r){if(1&r&&(e=this(e)),8&r)return e;if("object"==typeof e&&e){if(4&r&&e.__esModule)return e;if(16&r&&"function"==typeof e.then)return e}var l=Object.create(null);s.r(l);var c={};o=o||[null,t({}),t([]),t(t)];for(var n=2&r&&e;"object"==typeof n&&!~o.indexOf(n);n=t(n))Object.getOwnPropertyNames(n).forEach((o=>c[o]=()=>e[o]));return c.default=()=>e,s.d(l,c),l},s.d=(e,o)=>{for(var t in o)s.o(o,t)&&!s.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},s.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.j=7619,(()=>{var e={7619:0};s.O.j=o=>0===e[o];var o=(o,t)=>{var r,l,[c,n,i]=t,a=0;if(c.some((o=>0!==e[o]))){for(r in n)s.o(n,r)&&(s.m[r]=n[r]);if(i)var h=i(s)}for(o&&o(t);a<c.length;a++)l=c[a],s.o(e,l)&&e[l]&&e[l][0](),e[l]=0;return s.O(h)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var c=s.O(void 0,[94],(()=>s(6132)));c=s.O(c),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["catalog-sorting"]=c})();