1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["StorefrontFilterOptionsGroup-public"],{"./npm-packages/@shopwp/components/src/storefront/options/group/index.jsx"(e,t,n){n.r(t),n.d(t,{default:()=>c});var s=n("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");const r=function(e){var t=e.heading,n=e.children,s=e.isOpen,r=e.setIsOpen;return React.createElement("div",{className:"swp-storefront-filter wps-filter","data-is-drawer-open":s,"data-wps-drawer-toggle":s},React.createElement("h3",{className:"swp-storefront-filter-heading wps-drawer-trigger wps-filter-heading",onClick:r},t,React.createElement("span",{className:"swp-storefront-drawer-icon wps-drawer-icon"})),React.createElement("div",{className:"swp-storefront-drawer-content wps-drawer-content"},n))};var a=n("./npm-packages/@shopwp/components/src/shop/_state/hooks.js"),o=wp.element.lazy((function(){return Promise.resolve().then(n.bind(n,"./npm-packages/@shopwp/components/src/notice/index.jsx"))}));const c=function(e){var t=e.groupType,n=e.heading,c=e.areFilterOptionsEmpty,p=e.isLoadingItems,i=e.onOpen,l=void 0!==i&&i,d=e.openOnLoad,m=void 0!==d&&d,w=e.error,u=void 0!==w&&w,f=e.noFilterGroupFoundText,g=e.items,h=wp.element,E=h.useState,v=h.Suspense,k=h.useEffect,R=(0,a.T)(),O=E(m),b=(0,s.A)(O,2),x=b[0],N=b[1];return k((function(){N(!!m)}),[m]),React.createElement(r,{heading:n,isOpen:x,setIsOpen:function(){N(!x),l&&l(!x)}},React.createElement("div",{className:"swp-storefront-filter-content wps-filter-content","data-is-loading-items":p},u?React.createElement(o,{status:"error"},u):c&&!p?React.createElement(o,{status:"info"},f):p&&"collections"!==t?React.createElement("p",{className:"swp-storefront-loading-text"},R.t.l.loading+" "+t+" ..."):React.createElement(v,{fallback:R.t.l.loading+" "+t+" ..."},x?g:null)))}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.