PageSourceSearch

https://www.northstarbets.ca/no_brand_candy-theme/js/app-out/redux…onent-example.da1e9fabd5d70ece7a3f.chunk.js

js northstarbets.ca collected 2026-09-24 10:10:17 UTC 1,831 bytes, 2 lines download raw bytes

1export const __webpack_id__=8564;export const __webpack_ids__=[8564];export const __webpack_modules__={33899:(e,t,s)=>{s.r(t),s.d(t,{ReduxComponentExample:()=>b,ReduxComponentExampleBare:()=>h,default:()=>R});var o={};s.r(o),s.d(o,{defaultState:()=>m,reducer:()=>T});var n,r=s(45932),a=s.n(r),c=s(74848),i=s(96540),p=s(15424),u=s(37489),d=s(84974);!function(e){e.REDUX_BUTTON_CHANGE_TEXT="REDUX_BUTTON:TEXT:CHANGE"}(n||(n={}));var l=s(74294),_=s(1932);const m={buttonText:"Test reducer"},T=e=>(0,_.jM)(((t,s)=>{switch(s.type){case n.REDUX_BUTTON_CHANGE_TEXT:case n.REDUX_BUTTON_CHANGE_TEXT+e:t.buttonText=s.payload}}),m),{withDynamicReducer:x,useDynamicReducerSelector:C,useDynamicReducerDispatch:E}=(0,l.X)("ReduxComponentExampleReducer",o),g="ReduxComponentExample__button--30d",h=()=>{const e=E(),t=C(a()("buttonText")),{showComponentError:s,showComponentMessage:o}=(0,d.zi)(),{testprop:r}=(0,d.Fz)(),{configMessage:u}=(0,d.TP)(),l=(0,i.useCallback)((()=>{e((e=>({type:n.REDUX_BUTTON_CHANGE_TEXT,payload:e}))("Reducer works"))}),[e]),_=(0,i.useCallback)((()=>{s("error message works")}),[s]),m=(0,i.useCallback)((()=>{o("Component regular message works")}),[o]);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:`Add attribute testProp="prop message" to this component within a WC in order to see its value here: ${r}`}),(0,c.jsx)("p",{children:`Add attribute config="{'configMessage': 'config message'}" to this component in WC in order to see its value here: ${u}`}),(0,c.jsx)(p.$,{type:"button",className:g,onClick:l,children:`${t}`}),(0,c.jsx)(p.$,{type:"button",className:g,onClick:_,children:"test error message"}),(0,c.jsx)(p.$,{type:"button",className:g,onClick:m,children:"test regular message"})]})},b=(0,u.m)()(x()(h)),R=b}};
2//# sourceMappingURL=redux-component-example.da1e9fabd5d70ece7a3f.chunk.js.map

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.