PageSourceSearch

https://www.chipkinspuratos.co.za/etc.clientlibs/settings/wcm/desi…/js/myPuratos-myProducts.c1374d62.chunk.js

js chipkinspuratos.co.za collected 2026-10-08 10:50:03 UTC 4,220 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkpuratos_react=self.webpackChunkpuratos_react||[]).push([[118,294,485,747],{26675(t,e,o){o.r(e),o.d(e,{default:()=>A});var s=o(96540),i=o(19115),r=o(83943),a=o(39501),n=o(12063),c=o(9496),p=o(73969),d=o(74331),l=o(79337),g=o(45711),m=o(95796),u=o(70223),h=o(68797),P=o(50536),T=o(54170),y=o(88481),f=o(9713),R=o(99507),O=o(30673),L=o(5556),E=o.n(L),x=o(17018),C=o(47160),_=o(51044),N=o(21978),F=o(32809),j=o(15434),M=o(67597),I=o(74848);class b extends s.Component{static FILTER_CONTEXT="my-products";static propTypes={paginationOption:E().number,initialSorting:E().string};static defaultProps={paginationOption:c.GL,initialSorting:"TotalNumberOfOrdersCount DESC"};state={pageLoaded:!1};componentDidMount(){const{mapping:t,initialSorting:e,paginationOption:o}=this.props;this.props.fetchMyProductsModel(t),this.props.fetchMyProducts({sorting:(0,l.i3)(b.FILTER_CONTEXT,"sorting")||e,paginationOption:o}),this.props.resetFilters(b.FILTER_CONTEXT),this.props.fetchUserRecommendations({mapping:t,pageRoute:d.Og.myProducts}),(0,N.c)("my-products")}async componentDidUpdate(t){const{filter:e,mapping:o,myProducts:s,currentPage:i,paginationOption:r}=this.props;if(s.total>0&&!this.state.pageLoaded&&(this.props.myProductsPageLoad(s.data),this.setState({pageLoaded:!0})),t.mapping!==o&&(this.props.fetchMyProductsModel(o),this.props.fetchMyProducts({sorting:(0,l.i3)(b.FILTER_CONTEXT,"sorting")||this.props.initialSorting,paginationOption:r}),this.props.fetchUserRecommendations({mapping:o,pageRoute:d.Og.myProducts})),t.filter&&(t.filter.language===e.language&&t.filter.searchTerm===e.searchTerm&&t.filter.sorting===e.sorting&&t.filter.categories===e.categories||this.props.fetchMyProducts({countryLanguage:o.countryLanguage,searchTerm:e.searchTerm,sorting:e.sorting,category:e.categories,paginationOption:r})),t.currentPage!==i||t.paginationOption!==r){const t=s.data.slice((i-1)*r,i*r);t?.length&&this.props.fetchMyProductsDataPerPage({aemProdList:t})}}render(){const{myProductsModel:t,i18n:e,myProducts:o,loading:s,initialSorting:i,filter:r,paginationOption:d,resetFilters:l,userRecommendations:g,userRecommendationsLoading:y}=this.props;return(0,I.jsxs)(O.A,{title:t.myProductsTitle,description:t.text,promotionalBanner:t.promotionalBanner,children:[(0,I.jsx)(m.h,{alerts:u.oA.myProducts,children:(0,I.jsx)(_.N8,{type:M.v.myProducts,children:(0,I.jsxs)(a.A,{context:b.FILTER_CONTEXT,aemResource:t,loading:s,skeletonType:F.N.PRODUCTS,total:o.data.length,itemsPerPage:d,eCommerceRequired:!0,className:"my-products-table",listFooter:(0,I.jsx)(x.D,{}),listHeader:(0,I.jsx)(x.T,{i18n:e,hasPalletisation:!0}),children:[(0,I.jsxs)(h.W,{children:[(0,I.jsxs)(h.W.FilterSection,{children:[(0,I.jsx)(P.A,{label:"Sort",initialValue:i,filter:r,context:b.FILTER_CONTEXT,id:"sorting",options:c.LN,type:"sorting",hideInitOption:!0}),(0,I.jsx)(P.A,{label:"Filter",id:"categories",type:"category",options:t.categories,filter:r}),(0,I.jsx)(f.A,{context:b.FILTER_CONTEXT,label:"Products per page",total:o.data.length,options:c.IL,pagination:d})]}),(0,I.jsx)(h.W.SearchSection,{children:(0,I.jsx)(T.A,{placeholder:"Search",id:"searchTerm",reset:()=>l(b.FILTER_CONTEXT)})})]},"filter-header"),o.data.map((o,s)=>(0,I.jsx)(n.A,{data:o,i18n:e,titlesClickable:!0,position:s+1,serviceLabel:t.serviceLabel,serviceTag:t.serviceTag,hasPalletisation:!0},o.materialNumber))]})})}),(0,I.jsx)(p.A,{title:"Added to cart"}),(0,I.jsx)(C.UserRecommendations,{resource:g,loading:y})]})}}const S={fetchMyProductsModel:r.uf,fetchUserRecommendations:r.Rw,fetchMyProducts:r.Pp,fetchMyProductsDataPerPage:r.lH,addItemsToCart:g.NR,myProductsPageLoad:r.WM,resetFilters:R.dr},A=(0,i.connect)(t=>({myProductsModel:t.myPuratos_myProducts.aemResource,myProducts:t.myPuratos_myProducts.myProducts,i18n:t.myPuratos_i18n.i18n,filter:(0,y.vD)(t,b.FILTER_CONTEXT),paginationOption:(0,y.nA)(t,b.FILTER_CONTEXT),currentPage:(0,y.WE)(t,b.FILTER_CONTEXT),loading:t.myPuratos_myProducts.loading,mapping:t.myPuratos_dashboard.mapping,userRecommendations:t.myPuratos_userRecommendations.aemResource,userRecommendationsLoading:t.myPuratos_userRecommendations.loading||(0,j.st)(t)}),S)(b)}}]);
2//# sourceMappingURL=myPuratos-myProducts.c1374d62.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.