1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["StorefrontSelectionsWrapper-public"],{"./node_modules/lodash-es/union.js"(e,s,t){t.d(s,{A:()=>c});var n=t("./node_modules/lodash-es/_baseFlatten.js"),l=t("./node_modules/lodash-es/_baseRest.js"),o=t("./node_modules/lodash-es/_baseUniq.js"),a=t("./node_modules/lodash-es/isArrayLikeObject.js");const c=(0,l.A)((function(e){return(0,o.A)((0,n.A)(e,1,a.A,!0))}))},"./node_modules/lodash-es/without.js"(e,s,t){t.d(s,{A:()=>d});var n=t("./node_modules/lodash-es/_SetCache.js"),l=t("./node_modules/lodash-es/_arrayIncludes.js"),o=t("./node_modules/lodash-es/_arrayIncludesWith.js"),a=t("./node_modules/lodash-es/_arrayMap.js"),c=t("./node_modules/lodash-es/_baseUnary.js"),r=t("./node_modules/lodash-es/_cacheHas.js");var i=t("./node_modules/lodash-es/_baseRest.js"),p=t("./node_modules/lodash-es/isArrayLikeObject.js");const d=(0,i.A)((function(e,s){return(0,p.A)(e)?function(e,s,t,i){var p=-1,d=l.A,u=!0,m=e.length,f=[],_=s.length;if(!m)return f;t&&(s=(0,a.A)(s,(0,c.A)(t))),i?(d=o.A,u=!1):s.length>=200&&(d=r.A,u=!1,s=new n.A(s));e:for(;++p<m;){var h=e[p],v=null==t?h:t(h);if(h=i||0!==h?h:0,u&&v==v){for(var y=_;y--;)if(s[y]===v)continue e;f.push(h)}else d(s,v,i)||f.push(h)}return f}(e,s):[]}))},"./npm-packages/@shopwp/common/src/selections/index.jsx"(e,s,t){t.d(s,{$O:()=>d,SQ:()=>i});var n=t("./node_modules/lodash-es/union.js"),l=t("./node_modules/lodash-es/without.js"),o=t("./node_modules/lodash-es/isEmpty.js"),a=t("./node_modules/lodash-es/_baseUniq.js");var c=t("./npm-packages/@shopwp/common/src/utils/index.jsx");function r(e){return e.isSelected?(0,n.A)([e.selectedValue],e.currentList):(0,l.A)(e.currentList,e.selectedValue)}function i(e){var s=Object.keys(e);return(0,o.A)(s)||(0,c.x7)(e)?[]:s}function p(e,s,t,n){var l,c={};if(s.length){for(var r in t)c[r]=t[r];c[e]=s}else for(var i in t)i!==e&&(c[i]=t[i]);if(!(0,o.A)(n))if((0,o.A)(c))for(var p in n)c[p]=n[p];else for(var d in c)n[d]&&(c[d]=(l=c[d].concat(n[d]))&&l.length?(0,a.A)(l):[]);return c}function d(e,s,t,n,l){for(var a in n)a!==s&&(0,o.A)(n[a])&&delete n[a];if(!e){var c=r({currentList:n[s]});return{newSelectionsOfType:c,allSelections:p(s,c,n,l)}}if("string"==typeof e)if(e.includes("gid://"))var i=e;else i=String(e).toLowerCase();else i=e;var d=r({isSelected:t,currentList:n[s],selectedValue:i});return{newSelectionsOfType:d,allSelections:p(s,d,n,l)}}},"./npm-packages/@shopwp/components/src/storefront/selections/wrapper.jsx"(e,s,t){t.r(s),t.d(s,{default:()=>_});var n=t("./npm-packages/@shopwp/components/src/items/_state/requests/hooks.jsx"),l=t("./npm-packages/@shopwp/components/src/storefront/_state/hooks.jsx"),o=t("./npm-packages/@shopwp/components/src/items/_state/settings/hooks.jsx");const a=function(){var e=(0,n.V)(),s=(0,n.y)(),t=(0,l.U)(),a=(0,o.s)();return React.createElement("div",{className:"swp-storefront-clear-selections wps-filter-selections-clear",onClick:function(){t({type:"CLEAR_SELECTIONS"}),s({type:"SET_CURSOR",payload:!1}),s({type:"SET_QUERY_TYPE",payload:"products"}),s({type:"SET_QUERY_PARAMS",payload:e.originalParams}),s({type:"SET_IS_REPLACING",payload:!0}),s({type:"SET_IS_FETCHING_NEW",payload:!0}),t({type:"SET_HAS_STOREFRONT_SELECTIONS",payload:!1}),t({type:"SET_SEARCH_QUERY",payload:!1})}},a.clearFilterSelectionsText)};var c=t("./npm-packages/@shopwp/common/src/selections/index.jsx"),r=t("./npm-packages/@shopwp/components/src/shop/_state/hooks.js");const i=function(){return React.createElement("div",{className:"swp-icon swp-icon-remove"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},React.createElement("path",{fillRule:"evenodd",d:"M14.8 13.6L8.6 7.5l6.2-6.1c.2-.2.2-.6 0-.8l-.4-.4a.6.6 0 0 0-.8 0l-6.1 6-6.2-6C1.2 0 .8 0 .6.2L.2.6c-.2.2-.2.6 0 .8l6.2 6.1-6.2 6.1c-.2.2-.2.6 0 .8l.4.4c.2.2.6.2.8 0l6.1-5.9 6.2 6c.2.2.6.2.8 0l.4-.4c.2-.3.2-.6-.1-.9z",clipRule:"evenodd"})))};function p(e){var s=e.selectionType,t=e.val,o=(0,l.z)(),a=(0,l.U)(),p=(0,r.T)(),d=(0,n.V)();if(o.initialSelections[s])var u=o.initialSelections[s].includes(t);else u=!1;return React.createElement("span",{className:"swp-storefront-selection-value wps-filter-selection-value wps-mr-2",onClick:function(e){if(!d.isFetchingNew&&!u){var n=(0,c.$O)(t,s,!1,o.selections,o.initialSelections);for(var l in a({type:"SET_SELECTIONS",payload:n.allSelections}),n.allSelections)a({type:"SET_SELECTED_"+String(l).toUpperCase(),payload:n.allSelections[l]})}},"data-initial-selection":u},"available_for_sale"===s?p.t.l.availSale:"string"==typeof t?t:t.label,u?null:React.createElement(i,null))}function d(e){var s=e.selectionType;return e.vals.map((function(e){return e?React.createElement(p,{key:"string"==typeof e?e:e.id,selectionType:s,val:e}):null}))}var u=t("./node_modules/lodash-es/isEmpty.js");function m(e){var s=e.selectionType,t=(0,l.z)();return(0,u.A)(t.selections[s])?null:React.createElement("div",{className:"swp-filter-selection-type wps-filter-selection-type"},React.createElement("div",{className:"swp-selections-group swp-l-row wps-selections-group align-items-center"},React.createElement(d,{selectionType:s,vals:t.selections[s]})))}function f(e){var s=e.selections;return(0,c.SQ)(s).map((function(e,s){return React.createElement(m,{key:s,selectionType:e})}))}const _=function(e){var s=e.selections,t=e.initialSelections;return React.createElement("div",{className:"swp-l-row swp-m-l-row swp-l-baseline wps-filter-selections"},React.createElement(f,{selections:s}),Object.keys(t).length?null:React.createElement(a,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.