PageSourceSearch

https://clutterbug.me/wp-content/plugins/shopwp-pro/dist/SettingGe…lPageProducts-admin.72f76afc942c821a87ea.js

js clutterbug.me collected 2026-09-24 18:47:21 UTC 3,662 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkshopwp=self.webpackChunkshopwp||[]).push([["SettingGeneralPageProducts-admin"],{"./_tmp/admin/js/app/settings/_common/disabled-text-input.jsx"(e,t,a){a.d(t,{A:()=>s});var n=a("./npm-packages/@shopwp/wp-ui/src/help-text/index.jsx");const s=function(e){var t=e.textValue,a=e.type,s=wp.components.TextControl;return React.createElement(s,{disabled:!0,value:shopwp.misc.siteUrl+t,label:a+" page URL",help:React.createElement(n.A,{text:"You can change this URL in the WordPress permalinks setting.",url:shopwp.misc.adminURL+"options-permalink.php",urlText:"Edit url"})})}},"./_tmp/admin/js/app/settings/_common/toggle.jsx"(e,t,a){a.d(t,{A:()=>i});var n=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=a("./node_modules/@emotion/react/dist/emotion-react.browser.esm.js"),l=a("./_tmp/admin/js/app/settings/_state/context.js");const o=wp.element.memo((function(e){var t=e.settingName,a=e.onChange,n=e.label,s=e.help,l=e.note,o=e.noticeCSS,p=wp.components,i=p.ToggleControl,r=p.Notice;return React.createElement(React.Fragment,null,React.createElement(i,{checked:t,onChange:a,label:n,help:s,className:l&&t&&"shopwp-toggle-has-note"}),l&&t&&React.createElement(r,{isDismissible:!1,css:o,status:"warning"},l))}));var p={name:"1cirfju-noticeCSS",styles:"&&{margin-left:0!important;margin-right:0!important;margin-bottom:3em!important;};label:noticeCSS;"};const i=wp.element.memo((function(e){var t=e.settingName,a=void 0!==t&&t,i=e.label,r=void 0!==i&&i,c=e.help,m=void 0!==c&&c,d=e.note,u=void 0!==d&&d,g=e.alsoChange,h=void 0!==g&&g,b=e.disable,w=void 0!==b&&b,x=e.showNote,E=void 0===x||x,v=e.alsoTurnOff,_=void 0!==v&&v,S=e.callback,j=void 0!==S&&S,f=wp.element.useContext,k=wp.components.Disabled,y=f(l.A),R=(0,n.A)(y,2),T=R[0],P=R[1],A=p;function C(){var e=!T[a];P({type:"UPDATE_SETTING",payload:{key:a,value:e}}),0==e&&_&&_.forEach((function(e){P({type:"UPDATE_SETTING",payload:{key:e,value:!1}})})),h&&P({type:"UPDATE_SETTING",payload:{key:h,value:!T[h]}}),j&&j(e)}return(0,s.Y)(React.Fragment,null,w?(0,s.Y)(k,null,(0,s.Y)(o,{settingName:T[a],onChange:C,label:r,help:m,note:!!E&&u,noticeCSS:A})):(0,s.Y)(o,{settingName:T[a],onChange:C,label:r,help:m,note:!!E&&u,noticeCSS:A}))}))},"./_tmp/admin/js/app/settings/general/page-products.jsx"(e,t,a){a.r(t),a.d(t,{default:()=>i});var n=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),s=a("./_tmp/admin/js/app/settings/_common/toggle.jsx"),l=a("./_tmp/admin/js/app/settings/_common/disabled-text-input.jsx"),o=a("./_tmp/admin/js/app/admin/_state/hooks.js"),p=a("./npm-packages/@shopwp/wp-ui/src/help-text/index.jsx");const i=function(){var e=(0,o.G)(),t=(0,o.H)(),a=wp.element.useState(e.general.enableProductsPage),i=(0,n.A)(a,2),r=(i[0],i[1]);return React.createElement(React.Fragment,null,React.createElement(s.A,{label:e.t.a.enablePLP,settingName:"enableProductsPage",callback:function(a){e.general.enableProductsPage!==a?t({type:"SET_NEEDS_FLUSH",payload:!0}):t({type:"SET_NEEDS_FLUSH",payload:!1}),r(a)},help:React.createElement(p.A,{text:"Whether to use the default ShopWP products page.",url:"https://docs.wpshop.io/getting-started/displaying#default-pages"})}),React.createElement(l.A,{textValue:"/"+shopwp.misc.permalinks.products,type:"Products"}))}},"./npm-packages/@shopwp/wp-ui/src/help-text/index.jsx"(e,t,a){a.d(t,{A:()=>n});const n=function(e){var t=e.text,a=e.urlText,n=void 0===a?"Learn more":a,s=e.url,l=void 0!==s&&s;return React.createElement("span",{className:"swp-admin-help-text"},t,l?React.createElement(React.Fragment,null," ",React.createElement("a",{href:l,target:"_blank",className:"swp-admin-learn-more-link"},n)):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.