PageSourceSearch

https://shoport.com/_next/static/chunks/pages/super-admin/shippings/stock-4378b417bfb441de.js

js shoport.com collected 2026-10-04 07:05:47 UTC 4,975 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9371],{35721:function(a,b,c){"use strict";var d=c(16835);c(67294);var e=c(94184),f=c.n(e),g=c(11163),h=c(41664),i=c(11373),j=c(84691),k=c(85893);b.Z=function(a){var b,c,e=a.indexPath,l=void 0===e?i.pP:e,m=a.stockPath,n=void 0===m?i.k3:m,o=(0,g.useRouter)(),p=(0,j.bU)(),q=(0,d.Z)(p,1)[0];return(0,k.jsx)("div",{className:"SuperAdminChartsIndex__nav",children:null===(c=(b=[{key:"request",href:l},{key:"stock",href:n}]).map)|| void 0===c?void 0:c.call(b,function(a,b){return(0,k.jsx)(h.default,{href:a.href,children:(0,k.jsx)("a",{className:f()("SuperAdminChartsIndex__nav__a",{"SuperAdminChartsIndex__nav__a--active":o.pathname==a.href}),children:q("pages.shopAdmin.shippings.index.nav.".concat(a.key))})},b)})})}},85843:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return q}});var d=c(50029),e=c(16835),f=c(77191),g=c(87794),h=c.n(g);c(67294);var i=c(11163),j=c(88767),k=c(17563),l=c(84691),m=c(11373),n=c(65259),o=c(35721),p=c(85893),q=!0;b.default=function(a){(0,f.Z)(a);var b,c,g,q,r,s,t,u=(0,l.bU)(),v=(0,e.Z)(u,1)[0],w=(0,i.useRouter)(),x=(0,j.useQuery)(["stocks",null===(b=w.query)|| void 0===b?void 0:b.keyword],(0,d.Z)(h().mark(function a(){var b,c;return h().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,n.ug.get(k.stringifyUrl({url:m.g2,query:{keyword:null===(b=w.query)|| void 0===b?void 0:b.keyword}}));case 2:return c=a.sent,a.abrupt("return",c.data);case 4:case"end":return a.stop()}},a)})));return x.isFetching?null:(0,p.jsx)("div",{className:"Admin",children:(0,p.jsxs)("div",{className:"container",children:[(0,p.jsx)("div",{className:"Admin__header",children:(0,p.jsx)("h1",{className:"Admin__header__h1",children:v("pages.superAdmin.shippings.index.h1")})}),(0,p.jsxs)("div",{className:"Admin__section",children:[(0,p.jsx)("form",{className:"Admin__section__filter",onSubmit:function(a){var b;a.preventDefault();var c=a.target;w.push(k.stringifyUrl({url:w.asPath,query:{page:1,keyword:null===(b=c.elements.keyword)|| void 0===b?void 0:b.value}}))},children:(0,p.jsxs)("div",{className:"Admin__section__filter__row",children:[(0,p.jsxs)("label",{className:"Admin__section__filter__label",style:{flex:1},children:[(0,p.jsx)("p",{className:"Admin__section__filter__label__p",children:v("pages.superAdmin.shippings.stock.filter.keyword")}),(0,p.jsx)("input",{type:"text",className:"Input",defaultValue:null===(c=w.query)|| void 0===c?void 0:c.keyword,name:"keyword"})]}),(0,p.jsxs)("div",{className:"Admin__section__filter__label",children:[(0,p.jsx)("p",{className:"Admin__section__filter__label__p",children:"\xa0"}),(0,p.jsx)("button",{className:"Button",children:v("pages.superAdmin.shippings.stock.filter.search")})]})]})}),(0,p.jsx)(o.Z,{indexPath:m.Kq,stockPath:m.rb}),(0,p.jsxs)("div",{className:"Table",style:{gridTemplateColumns:"max-content max-content minmax(150px, 1fr) max-content"},children:[(0,p.jsx)("div",{className:"Table__tr",children:[{label:v("pages.superAdmin.shippings.stock.table.product_id")},{label:v("pages.superAdmin.shippings.stock.table.product_name")},{label:v("pages.superAdmin.shippings.stock.table.delivered_stock")},{label:""}].map(function(a,b){return(0,p.jsx)("div",{className:"Table__th",children:a.label},b)})}),null==x?void 0:null===(g=x.data)|| void 0===g?void 0:null===(q=g.data)|| void 0===q?void 0:null===(r=q.map)|| void 0===r?void 0:r.call(q,function(a,b){var c,d,e,f,g,h;return(0,p.jsxs)("div",{className:"Table__tr",children:[(0,p.jsx)("div",{className:"Table__td",children:null==a?void 0:null===(c=a.attributes)|| void 0===c?void 0:c.product_id}),(0,p.jsx)("div",{className:"Table__td",children:null==a?void 0:null===(d=a.attributes)|| void 0===d?void 0:d.product_name}),(0,p.jsxs)("div",{className:"Table__td",children:[null==a?void 0:null===(e=a.attributes)|| void 0===e?void 0:e.delivered," / ",null==a?void 0:null===(f=a.attributes)|| void 0===f?void 0:f.stock]}),(0,p.jsx)("div",{className:"Table__td",children:(0,p.jsx)("img",{className:"Table__td__img",src:null!=a&&null!==(g=a.attributes)&& void 0!==g&&g.product_image_url?null==a?void 0:null===(h=a.attributes)|| void 0===h?void 0:h.product_image_url:"/images/InputFile.svg"})})]},b)})]}),(null==x?void 0:null===(s=x.data)|| void 0===s?void 0:null===(t=s.data)|| void 0===t?void 0:t.length)==0&&(0,p.jsxs)("div",{className:"Placeholder Placeholder--admin-orders",children:[(0,p.jsx)("h6",{className:"Placeholder__h6",children:v("pages.superAdmin.shippings.stock.placeholder")}),(0,p.jsx)("p",{className:"Placeholder__p",children:v("pages.superAdmin.shippings.stock.placeholder_p")})]})]})]})})}},52118:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/super-admin/shippings/stock",function(){return c(85843)}])},77191:function(a,b,c){"use strict";function d(a){if(null==a)throw new TypeError("Cannot destructure undefined")}c.d(b,{Z:function(){return d}})}},function(a){a.O(0,[9774,2888,179],function(){return a(a.s=52118)}),_N_E=a.O()}])

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.