(()=>{var e,o,t,r={6132:(e,o,t)=>{"use strict";const r=window.wp.blocks;var s=t(4530),c=t(5573),l=t(790);const n=(0,l.jsxs)(c.SVG,{xmlns:"http://www.w3.org/2000/SVG",viewBox:"0 0 24 24",fill:"none",children:[(0,l.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,l.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,l.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 p=({useLabel:e})=>(0,l.jsx)(l.Fragment,{children:e?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("label",{className:"orderby-label",htmlFor:"woocommerce-orderby",children:(0,h.__)("Sort by","woocommerce")}),(0,l.jsx)("select",{className:"orderby",id:"woocommerce-orderby",children:(0,l.jsx)("option",{children:(0,h.__)("Default","woocommerce")})})]}):(0,l.jsx)("select",{className:"orderby",children:(0,l.jsx)("option",{children:(0,h.__)("Default sorting","woocommerce")})})});t(7950),(0,r.registerBlockType)(i,{icon:{src:(0,l.jsx)(s.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,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(a.InspectorControls,{children:(0,l.jsx)(d.PanelBody,{title:(0,h.__)("Accessibility","woocommerce"),children:(0,l.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,l.jsx)("div",{...r,children:(0,l.jsx)(d.Disabled,{children:(0,l.jsx)(p,{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].call(t.exports,t,t.exports,c),t.exports}c.m=r,e=[],c.O=(o,t,r,s)=>{if(!t){var l=1/0;for(d=0;d<e.length;d++){for(var[t,r,s]=e[d],n=!0,i=0;i<t.length;i++)(!1&s||l>=s)&&Object.keys(c.O).every((e=>c.O[e](t[i])))?t.splice(i--,1):(n=!1,s<l&&(l=s));if(n){e.splice(d--,1);var a=r();void 0!==a&&(o=a)}}return o}s=s||0;for(var d=e.length;d>0&&e[d-1][2]>s;d--)e[d]=e[d-1];e[d]=[t,r,s]},c.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return c.d(o,{a:o}),o},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.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 s=Object.create(null);c.r(s);var l={};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=>l[o]=()=>e[o]));return l.default=()=>e,c.d(s,l),s},c.d=(e,o)=>{for(var t in o)c.o(o,t)&&!c.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},c.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.j=7619,(()=>{var e={7619:0};c.O.j=o=>0===e[o];var o=(o,t)=>{var r,s,[l,n,i]=t,a=0;if(l.some((o=>0!==e[o]))){for(r in n)c.o(n,r)&&(c.m[r]=n[r]);if(i)var d=i(c)}for(o&&o(t);a<l.length;a++)s=l[a],c.o(e,s)&&e[s]&&e[s][0](),e[s]=0;return c.O(d)},t=globalThis.webpackChunkwebpackWcBlocksMainJsonp=globalThis.webpackChunkwebpackWcBlocksMainJsonp||[];t.forEach(o.bind(null,0)),t.push=o.bind(null,t.push.bind(t))})();var l=c.O(void 0,[94],(()=>c(6132)));l=c.O(l),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["catalog-sorting"]=l})();