"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["StorefrontFilterOptionsGroup-public"],{y3xO:function(e,t,n){n.r(t),n.d(t,{default:function(){return p}});var i=n("2MD/"),o=n("LpH3");function r(e){var t=e.heading,n=e.children,i=e.isOpen,r=e.setIsOpen,a=(0,o.iv)("font-size:16px;background:blue;background:transparent;padding:12px 15px;margin:0;position:relative;border-bottom:",i?"none":"1px solid #ccc",";&:hover{cursor:pointer;};label:filterHeadingCSS;"),s=(0,o.iv)("position:absolute;width:12px;height:12px;display:inline-block;right:15px;top:calc(50% - 7px);&:before,&:after{content:'';position:absolute;background-color:#3d3d3d;transition:transform 0.3s ease;}&:before{top:0;left:calc(50% - 1px);width:2px;height:100%;margin-left:-1px;transform:",i?"rotate(90deg)":"rotate(180deg)",";}&:after{top:50%;left:-1px;width:100%;height:2px;margin-top:-1px;};label:drawerIconCSS;"),p=(0,o.iv)("margin:0;.wps-drawer-trigger{margin-top:0;margin-bottom:0;}+.wps-filter{border-top:",i?"1px solid #ccc;":"none",";};label:FilterCSS;"),l=(0,o.iv)("max-height:",i?"350px":"0",";overflow:",i?"scroll":"hidden",";;label:drawerContentCSS;");return(0,o.tZ)("div",{className:"wps-filter",css:p,"data-wps-drawer-toggle":i},(0,o.tZ)("h3",{className:"wps-drawer-trigger wps-filter-heading",css:a,onClick:r},t,(0,o.tZ)("span",{className:"wps-drawer-icon",css:s})),(0,o.tZ)("div",{className:"wps-drawer-content",css:l},n))}var a=wp.element.lazy((function(){return Promise.resolve().then(n.bind(n,"Pb72"))})),s={name:"134dqmh-LoadingTextCSS",styles:"padding-left:0;color:black;font-size:16px;margin-top:15px;text-align:center;margin-bottom:35px;label:LoadingTextCSS;"},p=function(e){var t=e.groupType,n=e.heading,p=e.areFilterOptionsEmpty,l=e.isLoadingItems,d=e.onOpen,c=void 0!==d&&d,g=e.openOnLoad,u=void 0!==g&&g,f=e.error,w=void 0!==f&&f,h=e.noFilterGroupFoundText,m=e.items,b=wp.element,x=b.useState,v=b.Suspense,S=x(u),C=(0,i.Z)(S,2),k=C[0],Z=C[1],O=(0,o.iv)("padding:0 0 10px 0;transition:all 0.2s ease;opacity:",l?.6:1,";.components-notice{width:100%;}ul{list-style:none;padding:0;margin:0;};label:filterContentCSS;"),y=s;return(0,o.tZ)(r,{heading:n,isOpen:k,setIsOpen:function(){Z(!k),c&&c(!k)}},(0,o.tZ)("div",{className:"wps-filter-content",css:O},w?(0,o.tZ)(a,{status:"error"},w):p&&!l?(0,o.tZ)(a,{status:"info"},h):l&&"collections"!==t?(0,o.tZ)("p",{css:y},wp.i18n.__("Loading ","shopwp")+t+" ..."):(0,o.tZ)(v,{fallback:wp.i18n.__("Loading ","shopwp")+t+" ..."},k&&m)))}}}]);