PageSourceSearch

https://nyfolklore.org/wp-content/plugins/shopwp-pro/dist/OptionPrice-public.2d92194183e13cad9a24.js

js nyfolklore.org collected 2026-10-02 06:27:06 UTC 4,021 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["OptionPrice-public"],{"./npm-packages/@shopwp/components/src/storefront/options/group-items/index.jsx"(e,t,s){s.d(t,{A:()=>d});var n=s("./node_modules/memoize-one/dist/memoize-one.esm.js"),i=s("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),o=s("./node_modules/lodash-es/isEmpty.js"),a=s("./node_modules/lodash-es/some.js"),l=s("./npm-packages/@shopwp/components/src/storefront/_state/hooks.jsx");const c=function(e){var t=e.itemValue,s=e.itemType,n=e.storefrontDispatch,c=e.isLoading,r=e.initialSelections,p=wp.element,m=p.useState,u=p.useEffect,d=m((function(){var e=r[s];return!(!e||0===e.length)&&("collections"===s?e.filter((function(e){return e.label===t.label})).length:!!(e&&e.length&&t)&&e.includes(String(t).toLowerCase()))})),h=(0,i.A)(d,2),f=h[0],g=h[1],w="collections"===s?t.label:t,k=(0,l.z)();return u((function(){if((0,o.A)(k.selections)&&g(!1),(0,o.A)(k.selections[s])&&g(!1),"collections"===s)var e=(0,a.A)(k.selections[s],t);else e=k.selections[s]&&t&&k.selections[s].length?k.selections[s].includes(String(t).toLowerCase()):f;e||g(!1)}),[k.selections]),React.createElement("li",{"data-wps-is-selected":f,"data-wps-filter-value":w,"data-wps-display-style":"checkbox",className:"wps-checkbox-wrapper"},React.createElement("label",{className:"wps-input-label"},React.createElement("input",{type:"checkbox",onChange:function(){if(!c){var e={itemValue:t,itemType:s,isSelected:!f};g(!f),n({type:"SET_LAST_SELECTED",payload:e})}},disabled:c,checked:f?"checked":"",className:"wps-input-value"}),w&&React.createElement("span",null,w)))};var r=s("./npm-packages/@shopwp/components/src/items/_state/requests/hooks.jsx"),p=s("./node_modules/@tanstack/react-virtual/dist/esm/index.js"),m=wp.element.memo((function(e){var t=e.data,s=e.index,n=e.size,i=e.start,o=t.filterOptions,a=t.itemType,l=t.storefrontDispatch,r=t.isLoading,p=t.initialSelections,m=o[s];return React.createElement("ul",{style:{position:"absolute",top:0,left:0,width:"100%",height:"".concat(n,"px"),transform:"translateY(".concat(i,"px)"),listStyle:"none",margin:0,padding:0}},React.createElement(c,{itemType:a,itemValue:m,storefrontDispatch:l,isLoading:r,initialSelections:p}))})),u=(0,n.A)((function(e,t,s,n,i){return{filterOptions:e,itemType:t,storefrontDispatch:s,isLoading:n,initialSelections:i}}));const d=function(e){var t=e.filterOptions,s=e.itemType,n=(0,l.U)(),i=(0,l.z)(),o=(0,r.V)(),a=u(t,s,n,o.isFetchingNew,i.selections),c=wp.element.useRef(),d=(0,p.Te)({count:t.length,getScrollElement:function(){return c.current},estimateSize:wp.element.useCallback((function(){return 30}),[])});return React.createElement("ul",{className:"wps-"+s,ref:c,style:{height:"auto",width:"300px",overflow:"auto"}},React.createElement("li",{className:"ListInner",style:{height:"".concat(d.getTotalSize(),"px"),width:"100%",position:"relative",listStyle:"none",margin:0,padding:0}},d.getVirtualItems().map((function(e){return React.createElement(m,{key:e.key,data:a,index:e.index,size:e.size,start:e.start})}))))}},"./npm-packages/@shopwp/components/src/storefront/options/option-price/index.jsx"(e,t,s){s.r(t),s.d(t,{default:()=>l});var n=s("./npm-packages/@shopwp/common/src/utils/index.jsx"),i=s("./npm-packages/@shopwp/components/src/shop/_state/hooks.js"),o=s("./npm-packages/@shopwp/components/src/storefront/options/group-items/index.jsx"),a=wp.element.lazy((function(){return s.e("StorefrontFilterOptionsGroup-public").then(s.bind(s,"./npm-packages/@shopwp/components/src/storefront/options/group/index.jsx"))}));const l=function(e){var t=e.settings,s=(0,i.T)(),l=[s.t.l.priceLvl1,s.t.l.priceLvl2,s.t.l.priceLvl3,s.t.l.priceLvl4,s.t.l.priceLvl5];return React.createElement(a,{openOnLoad:(0,n.Dw)(t,"price"),isLoadingItems:!1,groupType:"price",areFilterOptionsEmpty:!1,noFilterGroupFoundText:s.t.n.noItemsLeft,heading:t.priceHeading,items:React.createElement(o.A,{filterOptions:wp.hooks.applyFilters("storefront.availablePricing",l),itemType:"price"})})}}}]);

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.