1(this.webpackJsonpapp=this.webpackJsonpapp||[]).push([[157],{1724:function(e,t,c){"use strict";c.r(t),c.d(t,"default",(function(){return p}));var a=c(7),n=c(1),o=(c(26),c(0)),r=c.n(o),l=c(16),d=c(17),i=c(2),s=c(41),u=c(19),b=c(1617);function p(){const{setNotify:e,toggleToast:t}=Object(u.b)(),{storeID:c}=Object(b.e)(),{refetch:o,total:p}=Object(b.h)(),[g,m]=r.a.useReducer(i.Hb,{products:[],selected:[],countVariants:0,syncedToday:!1,loading:!1,search:""});Object(a.d)(d.Rc,{variables:{storeID:c},skip:!c,fetchPolicy:"cache-and-network",onCompleted:e=>{const t=!!(null===e||void 0===e?void 0:e.syncedTiktokProductToday);m({syncedToday:t})}});const[h]=Object(s.a)(),[v]=Object(a.c)(l.Bd,{variables:{storeID:c},onCompleted:t=>{(null===t||void 0===t?void 0:t.tiktokFetchProductsByStore)&&h(()=>{m({loading:!1,syncedToday:!0}),e({msg:"Fetch product success",err:!1}),o&&o()},5e3)},onError:t=>{e({msg:Object(i.ib)(null===t||void 0===t?void 0:t.toString()),err:!0})}}),y=r.a.useCallback(()=>{t&&t(!0),e&&e({msg:null,err:!1}),m({loading:!0}),v()},[v]);return r.a.createElement(n.i.Header,{title:r.a.createElement(n.Y,{alignment:"center"},r.a.createElement(n.Y.Item,{fill:!0},r.a.createElement(n.Y,{vertical:!0,spacing:"tight"},r.a.createElement(n.v,{children:"Products"}),r.a.createElement("div",null,r.a.createElement(n.db,{variation:"subdued"},"Total products: ",p)))),g.syncedToday?null:r.a.createElement(n.g,{children:"Fetch Product",onClick:y,loading:g.loading}))})}}}]); 2//# sourceMappingURL=157.4a1674bf.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.