(()=>{var e,o,t,r={5721:(e,o,t)=>{"use strict";const r=window.wp.blocks;var s=t(4530),c=t(5573),n=t(790);const l=(0,n.jsxs)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,n.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,n.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,n.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,d=window.wp.components;var h=t(7723);const u=({useLabel:e})=>(0,n.jsx)(n.Fragment,{children:e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("label",{className:"orderby-label",htmlFor:"woocommerce-orderby",children:(0,h.__)("Sort by","woocommerce")}),(0,n.jsx)("select",{className:"orderby",id:"woocommerce-orderby",children:(0,n.jsx)("option",{children:(0,h.__)("Default","woocommerce")})})]}):(0,n.jsx)("select",{className:"orderby",children:(0,n.jsx)("option",{children:(0,h.__)("Default sorting","woocommerce")})})});t(7950),(0,r.registerBlockType)(i,{icon:{src:(0,n.jsx)(s.A,{icon:l,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,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.InspectorControls,{children:(0,n.jsx)(d.PanelBody,{title:(0,h.__)("Accessibility","woocommerce"),children:(0,n.jsx)(d.ToggleControl,{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,n.jsx)("div",{...r,children:(0,n.jsx)(d.Disabled,{children:(0,n.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}},s={};function c(e){var o=s[e];if(void 0!==o)return o.exports;var t=s[e]={exports:{}};return r[e](t,t.exports,c),t.exports}c.m=r,e=[],c.O=(o,t,r,s)=>{if(!t){var n=1/0;for(d=0;d