(()=>{var e,o,t,r={6132:(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<e.length;d++){for(var[t,r,s]=e[d],l=!0,i=0;i<t.length;i++)(!1&s||n>=s)&&Object.keys(c.O).every((e=>c.O[e](t[i])))?t.splice(i--,1):(l=!1,s<n&&(n=s));if(l){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 n={};o=o||[null,t({}),t([]),t(t)];for(var l=2&r&&e;"object"==typeof l&&!~o.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((o=>n[o]=()=>e[o]));return n.default=()=>e,c.d(s,n),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,[n,l,i]=t,a=0;if(n.some((o=>0!==e[o]))){for(r in l)c.o(l,r)&&(c.m[r]=l[r]);if(i)var d=i(c)}for(o&&o(t);a<n.length;a++)s=n[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 n=c.O(void 0,[94],(()=>c(6132)));n=c.O(n),((this.wc=this.wc||{}).blocks=this.wc.blocks||{})["catalog-sorting"]=n})();