PageSourceSearch

https://smartecom.ai/static/js/1311.1c1377db.chunk.js

js smartecom.ai collected 2026-10-05 15:06:00 UTC 22,164 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklight_bootstrap_dashboard_react=self.webpackChunklight_bootstrap_dashboard_react||[]).push([[1311],{81311:function(e,n,t){t.r(n),t.d(n,{default:function(){return E}});var r=t(45987),s=t(61819),a=t(15861),i=t(93433),l=t(29439),c=t(88391),o=t(66023),u=t(39437),d=t(7734),h=t(59633),m=t(90669),p=t(71097),x=t(13559),v=t(71739),f=t(23774),g=t(52127),b=(t(88282),t(52580)),j=t(58171),Z=t(4942),_=t(1413),k=t(33412),y=t(21867),w=t(49963),C=t(36685),S=t(9224),N=t(23712),z=[{key:"resin_dimensions",label:"K\xedch th\u01b0\u1edbc resin (mm)"},{key:"base_dimensions",label:"K\xedch th\u01b0\u1edbc base (mm)"},{key:"total_dimensions",label:"K\xedch th\u01b0\u1edbc t\u1ed5ng (mm)"},{key:"packaging_dimensions",label:"K\xedch th\u01b0\u1edbc \u0111\xf3ng g\xf3i (mm)"}],T=[{key:"width_mm",label:"R\u1ed9ng"},{key:"height_mm",label:"Cao"},{key:"depth_mm",label:"S\xe2u"}],A={width_mm:"",height_mm:"",depth_mm:""},L=function(){return{resin_dimensions:(0,_.Z)({},A),base_dimensions:(0,_.Z)({},A),total_dimensions:(0,_.Z)({},A),packaging_dimensions:(0,_.Z)({},A)}},I=function(e){return""===e||null==e||Number.isNaN(Number(e))?null:Number(e)};function R(e){var n,t,r=e.show,o=e.onClose,m=e.currentShape,x=e.onSaved,b=(0,f.I0)(),R=(0,f.v9)((function(e){return e.companyReducer.currentCompany})),K=String((null===R||void 0===R?void 0:R.company_id)||"").trim(),U=!(null===m||void 0===m||!m._id),D=(0,c.useState)(""),M=(0,l.Z)(D,2),P=M[0],V=M[1],B=(0,c.useState)(""),E=(0,l.Z)(B,2),F=E[0],G=E[1],H=(0,c.useState)(""),X=(0,l.Z)(H,2),O=X[0],Q=X[1],Y=(0,c.useState)(L()),q=(0,l.Z)(Y,2),J=q[0],W=q[1],$=(0,c.useState)({x:"",y:""}),ee=(0,l.Z)($,2),ne=ee[0],te=ee[1],re=(0,c.useState)(!1),se=(0,l.Z)(re,2),ae=se[0],ie=se[1],le=(0,c.useState)(!1),ce=(0,l.Z)(le,2),oe=ce[0],ue=ce[1],de=(0,c.useState)([]),he=(0,l.Z)(de,2),me=he[0],pe=he[1],xe=(0,c.useState)(!1),ve=(0,l.Z)(xe,2),fe=ve[0],ge=ve[1],be=(0,c.useState)(!1),je=(0,l.Z)(be,2),Ze=je[0],_e=je[1],ke=(0,c.useRef)(null);(0,c.useEffect)((function(){var e,n,t,s;r&&(V((0,S.zk)(null===m||void 0===m?void 0:m.shape_id,K)),G((null===m||void 0===m?void 0:m.size)||""),Q((null===m||void 0===m?void 0:m.name)||""),W({resin_dimensions:(0,_.Z)((0,_.Z)({},A),(null===m||void 0===m?void 0:m.resin_dimensions)||{}),base_dimensions:(0,_.Z)((0,_.Z)({},A),(null===m||void 0===m?void 0:m.base_dimensions)||{}),total_dimensions:(0,_.Z)((0,_.Z)({},A),(null===m||void 0===m?void 0:m.total_dimensions)||{}),packaging_dimensions:(0,_.Z)((0,_.Z)({},A),(null===m||void 0===m?void 0:m.packaging_dimensions)||{})}),te({x:null!==(e=null===m||void 0===m||null===(n=m.base_center_position)||void 0===n?void 0:n.x)&&void 0!==e?e:"",y:null!==(t=null===m||void 0===m||null===(s=m.base_center_position)||void 0===s?void 0:s.y)&&void 0!==t?t:""}),ie(!(null===m||void 0===m||!m.has_base)),ue(!(null===m||void 0===m||!m.has_portable_led)),pe(Array.isArray(null===m||void 0===m?void 0:m.images)?m.images:[]))}),[r,m,K]);var ye=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(n){var t,r,a,l,c,o,u;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=Array.from(n||[])).length){e.next=3;break}return e.abrupt("return");case 3:return _e(!0),e.prev=4,e.next=7,(0,S.Cc)(K,P,F);case 7:r=e.sent,a=[],l=0,c=t;case 10:if(!(l<c.length)){e.next=19;break}return o=c[l],e.next=14,(0,w.cT)(o,{isPublic:(0,C.pd)(R),createThumbnail:!0,metadata:{belong_to_albums:r},filename:o.name});case 14:null!==(u=e.sent)&&void 0!==u&&u.url&&a.push({image_link:u.url,alt_text:""});case 16:l++,e.next=10;break;case 19:pe((function(e){return[].concat((0,i.Z)(e),a)})),a.length&&g.Am.success("Upload ".concat(a.length," \u1ea3nh th\xe0nh c\xf4ng")),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(4),g.Am.error((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Upload \u1ea3nh th\u1ea5t b\u1ea1i");case 26:return e.prev=26,_e(!1),ke.current&&(ke.current.value=""),e.finish(26);case 30:case"end":return e.stop()}}),e,null,[[4,23,26,30]])})));return function(n){return e.apply(this,arguments)}}(),we=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(){var n;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,S.Cc)(K,P,F);case 3:n=e.sent,window.open("/admin/se-media/album-detail/".concat(encodeURIComponent(n)),"_blank"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),g.Am.warning((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Kh\xf4ng m\u1edf \u0111\u01b0\u1ee3c album");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),Ce=function(e){var n={};return T.forEach((function(t){var r=t.key,s=I(null===e||void 0===e?void 0:e[r]);null!=s&&(n[r]=s)})),n},Se=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(){var n,t,r,a;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=String(P||"").trim(),t=String(F||"").trim().toUpperCase(),n){e.next=5;break}return g.Am.warning("Vui l\xf2ng nh\u1eadp Shape ID"),e.abrupt("return");case 5:if(t){e.next=8;break}return g.Am.warning("Vui l\xf2ng nh\u1eadp Size"),e.abrupt("return");case 8:if(r={}
1,null!=I(ne.x)&&(r.x=I(ne.x)),null!=I(ne.y)&&(r.y=I(ne.y)),a={company_id:K||void 0,shape_id:n,size:t,name:String(O||"").trim(),has_base:ae,has_portable_led:oe,resin_dimensions:Ce(J.resin_dimensions),base_dimensions:Ce(J.base_dimensions),total_dimensions:Ce(J.total_dimensions),packaging_dimensions:Ce(J.packaging_dimensions),base_center_position:r,images:(me||[]).map((function(e){return{image_link:e.image_link,alt_text:e.alt_text||""}}))},ge(!0),e.prev=13,!U){e.next=20;break}return e.next=17,b((0,j.$z)({id:m._id,shape:a})).unwrap();case 17:g.Am.success("C\u1eadp nh\u1eadt khu\xf4n th\xe0nh c\xf4ng"),e.next=23;break;case 20:return e.next=22,b((0,j.nK)(a)).unwrap();case 22:g.Am.success("T\u1ea1o khu\xf4n th\xe0nh c\xf4ng");case 23:x&&x(),o(),e.next=30;break;case 27:e.prev=27,e.t0=e.catch(13),g.Am.error((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"L\u01b0u khu\xf4n th\u1ea5t b\u1ea1i");case 30:return e.prev=30,ge(!1),e.finish(30);case 33:case"end":return e.stop()}}),e,null,[[13,27,30,33]])})));return function(){return e.apply(this,arguments)}}();return(0,N.jsxs)(k.Z,{show:r,onHide:o,size:"lg",children:[(0,N.jsx)(k.Z.Header,{closeButton:!0,children:(0,N.jsx)(k.Z.Title,{children:U?"S\u1eeda khu\xf4n":"Th\xeam khu\xf4n"})}),(0,N.jsx)(k.Z.Body,{children:(0,N.jsxs)(p.Z,{children:[(0,N.jsxs)(p.Z.Group,{className:"mb-3",children:[(0,N.jsx)(p.Z.Label,{children:"T\xean khu\xf4n"}),(0,N.jsx)(p.Z.Control,{type:"text",value:O,onChange:function(e){return Q(e.target.value)},placeholder:"VD: Khu\xf4n tr\xf2n trang tr\xed"})]}),(0,N.jsxs)(d.Z,{children:[(0,N.jsx)(h.Z,{md:6,children:(0,N.jsxs)(p.Z.Group,{className:"mb-3",children:[(0,N.jsx)(p.Z.Label,{children:"Shape ID *"}),(0,N.jsx)(p.Z.Control,{type:"text",value:P,onChange:function(e){return V(e.target.value)},placeholder:"VD: K1"}),(0,N.jsx)(p.Z.Text,{className:"text-muted",children:"H\u1ec7 th\u1ed1ng t\u1ef1 th\xeam prefix company_id khi l\u01b0u."})]})}),(0,N.jsx)(h.Z,{md:6,children:(0,N.jsxs)(p.Z.Group,{className:"mb-3",children:[(0,N.jsx)(p.Z.Label,{children:"Size *"}),(0,N.jsx)(p.Z.Control,{type:"text",list:"shape-size-options",value:F,onChange:function(e){return G(e.target.value)},placeholder:"VD: M"}),(0,N.jsx)("datalist",{id:"shape-size-options",children:S.B5.map((function(e){return(0,N.jsx)("option",{value:e},e)}))})]})})]}),(0,N.jsxs)("div",{className:"mb-3 d-flex align-items-center gap-3 flex-wrap",children:[(0,N.jsxs)(y.Z,{bg:"secondary",children:["Shape code: ",(0,S._V)((0,S.LL)({shape_id:P,size:F}),K)]}),(0,N.jsx)(p.Z.Check,{type:"checkbox",id:"shape-has-base",label:"C\xf3 base",checked:ae,onChange:function(e){return ie(e.target.checked)}}),(0,N.jsx)(p.Z.Check,{type:"checkbox",id:"shape-has-portable-led",label:"C\xf3 \u0111\xe8n LED r\u1eddi (portable)",checked:oe,onChange:function(e){return ue(e.target.checked)}})]}),z.map((function(e){return(0,N.jsxs)("div",{className:"mb-2",children:[(0,N.jsx)("div",{className:"text-muted small fw-bold mb-1",children:e.label}),(0,N.jsx)(d.Z,{children:T.map((function(n){var t;return(0,N.jsx)(h.Z,{md:4,children:(0,N.jsxs)(p.Z.Group,{className:"mb-2",children:[(0,N.jsx)(p.Z.Label,{className:"small mb-1",children:n.label}),(0,N.jsx)(p.Z.Control,{type:"text",inputMode:"decimal",value:null!==(t=J[e.key][n.key])&&void 0!==t?t:"",onChange:function(t){return function(e,n,t){return W((function(r){return(0,_.Z)((0,_.Z)({},r),{},(0,Z.Z)({},e,(0,_.Z)((0,_.Z)({},r[e]),{},(0,Z.Z)({},n,t))))}))}(e.key,n.key,t.target.value)}})]})},n.key)}))})]},e.key)})),(0,N.jsxs)("div",{className:"mb-3",children:[(0,N.jsx)("div",{className:"text-muted small fw-bold mb-1",children:"V\u1ecb tr\xed t\xe2m base"}),(0,N.jsxs)(d.Z,{children:[(0,N.jsx)(h.Z,{md:4,children:(0,N.jsxs)(p.Z.Group,{className:"mb-2",children:[(0,N.jsx)(p.Z.Label,{className:"small mb-1",children:"X"}),(0,N.jsx)(p.Z.Control,{type:"text",inputMode:"decimal",value:null!==(n=ne.x)&&void 0!==n?n:"",onChange:function(e){return te((function(n){return(0,_.Z)((0,_.Z)({},n),{},{x:e.target.value})}))}})]})}),(0,N.jsx)(h.Z,{md:4,children:(0,N.jsxs)(p.Z.Group,{className:"mb-2",children:[(0,N.jsx)(p.Z.Label,{className:"small mb-1",children:"Y"}),(0,N.jsx)(p.Z.Control,{type:"text",inputMode:"decimal",value:null!==(t=ne.y)&&void 0!==t?t:"",onChange:function(e){return te((function(n){return(0,_.Z)((0,_.Z)({},n),{},{y:e.target.value})}))}})]})})]})]}),(0,N.jsxs)(p.Z.Group,{className:"mb-2",children:[(0,N.jsxs)("div",{className:"d-flex align-items-center gap-2 mb-2 flex-wrap",children:[(0,N.jsxs)(p.Z.Label,{className:"mb-0",children:["\u1ea2nh khu\xf4n (",me.length,")"]}),(0,N.jsx)(u.Z,{variant:"outline-secondary",size:"sm",disabled:Ze,onClick:function(){var e;return null===(e=ke.current)||void 0===e?void 0:e.click()},children:Ze?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(v.Z,{size:"sm",animation:"border"})," \u0110ang upload\u2026"]}):"\ud83d\udce4 Upload \u1ea3nh"}),(0,N.jsx)(u.Z,{variant:"link",size:"sm",className:"p-0",onClick:we,children:"Qu\u1ea3n l\xfd album \u2197"}),(0,N.jsx)("input",{ref:ke,type:"file",accept:"image/*",multiple:!0,style:{display:"none"},onChange:function(e){return ye(e.target.files)}})]}),(0,N.jsxs)("div",{className:"d-flex flex-wrap gap-2",children:[me.map((function(e,n){return(0,N.jsxs)("div",{style:{position:"relative",width:72,height:72},children:[(0,N.jsx)("img",{src:e.image_link,alt:e.alt_text||"",style:{width:72,height:72,objectFit:"cover",borderRadius:6,border:"1px solid #dee2e6"}}),(0,N.jsx)("button",{type:"button",onClick:function(){return function(e){return pe((function(n){return n.filter((function(n,t){return t!==e}))}))}(n)},title:"Xo\xe1 \u1ea3nh",style:{position:"absolute",top:-6,right:-6,width:20,height:20,borderRadius:"50%",border:"none",background:"#dc3545",color:"#fff",cursor:"pointer",lineHeight:1,fontSize:12},children:"\xd7"})]},n)})),0===me.length&&(0,N.jsx)("span",{className:"text-muted small",children:"Ch\u01b0a c\xf3 \u1ea3nh."})]})]})]})}),(0,N.jsxs)(k.Z.Footer,{children:[(0,N.jsx)(u.Z,{variant:"secondary",onClick:o,disabled:fe,children:"\u0110\xf3ng"}),(0,N.jsx)(u.Z,{variant:"primary",onClick:Se,disabled:fe||Ze,children:fe?(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)(v.Z,{size:"sm",animation:"border"})," \u0110ang l\u01b0u\u2026"]}):U?"C\u1eadp nh\u1eadt":"T\u1ea1o khu\xf4n"})]})]})}var K=t(89958),U=t(19154),D=["_id","shape_code","created_at","updated_at","__v"],M=[20,50,100,200],P="shapeListItemsPerPage",V=function(){var e=parseInt(localStorage.getItem(P),10);return M.includes(e)?e:20},B=function(e){var n=S.B5.indexOf(String(e||"").toUpperCase());return n<0?999:n};function E(){var e=(0,f.I0)(),n=(0,f.v9)((function(e){return e.sesShapeReducer.shapes}))||[],t=(0,f.v9)((function(e){return e.companyReducer.currentCompany})),Z=String((null===t||void 0===t?void 0:t.company_id)||"").trim(),_=(0,c.useState)(!1),k=(0,l.Z)(_,2),y=k[0],w=k[1],C=(0,c.useState)(""),z=(0,l.Z)(C,2),T=z[0],A=z[1],L=(0,c.useState)(""),I=(0,l.Z)(L,2),E=I[0],F=I[1],G=(0,c.useState)(""),H=(0,l.Z)(G,2),X=H[0],O=H[1],Q=(0,c.useState)(""),Y=(0,l.Z)(Q,2),q=Y[0],J=Y[1],W=(0,c.useState)(1),$=(0,l.Z)(W,2),ee=$[0],ne=$[1],te=(0,
1c.useState)(V),re=(0,l.Z)(te,2),se=re[0],ae=re[1],ie=(0,c.useState)(!1),le=(0,l.Z)(ie,2),ce=le[0],oe=le[1],ue=(0,c.useState)(null),de=(0,l.Z)(ue,2),he=de[0],me=de[1],pe=(0,c.useState)(null),xe=(0,l.Z)(pe,2),ve=xe[0],fe=xe[1],ge=(0,c.useState)(null),be=(0,l.Z)(ge,2),je=be[0],Ze=be[1],_e=(0,c.useCallback)((function(){w(!0),e((0,j.oY)({currentPage:1,itemsPerPage:2e3,sortBy:"alphabet",sortOrder:1})).unwrap().catch((function(e){return g.Am.error((null===e||void 0===e?void 0:e.message)||"Kh\xf4ng t\u1ea3i \u0111\u01b0\u1ee3c danh s\xe1ch khu\xf4n")})).finally((function(){return w(!1)}))}),[e]);(0,c.useEffect)((function(){_e()}),[_e]);var ke=(0,c.useCallback)((function(e){return(0,S._V)(e.shape_id,Z)}),[Z]),ye=(0,c.useCallback)((function(e){return(0,S._V)(e.shape_code||(0,S.LL)(e),Z)}),[Z]),we=(0,c.useMemo)((function(){return(0,i.Z)(new Set(n.map(ke).filter(Boolean))).sort((function(e,n){return e.localeCompare(n)}))}),[n,ke]),Ce=(0,c.useMemo)((function(){return(0,i.Z)(new Set(n.map((function(e){return String(e.size||"").toUpperCase()})).filter(Boolean))).sort((function(e,n){return B(e)-B(n)}))}),[n]),Se=(0,c.useMemo)((function(){var e=E.trim().toLowerCase();return n.filter((function(n){return!(e&&!ye(n).toLowerCase().includes(e)&&!ke(n).toLowerCase().includes(e)&&!String(n.name||"").toLowerCase().includes(e))&&((!X||ke(n)===X)&&(!q||String(n.size||"").toUpperCase()===q))}))}),[n,E,X,q,ye,ke]),Ne=Math.max(1,Math.ceil(Se.length/se)),ze=Math.min(ee,Ne),Te=Se.slice((ze-1)*se,ze*se),Ae=function(){F(T.trim()),ne(1)},Le=function(){var n=(0,a.Z)((0,s.Z)().mark((function n(t){return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(window.confirm('Xo\xe1 khu\xf4n "'.concat(ye(t),'"?'))){n.next=2;break}return n.abrupt("return");case 2:return n.prev=2,n.next=5,e((0,j.uO)(t._id)).unwrap();case 5:g.Am.success("\u0110\xe3 xo\xe1 khu\xf4n"),_e(),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),g.Am.error((null===n.t0||void 0===n.t0?void 0:n.t0.message)||"Xo\xe1 khu\xf4n th\u1ea5t b\u1ea1i");case 12:case"end":return n.stop()}}),n,null,[[2,9]])})));return function(e){return n.apply(this,arguments)}}(),Ie=function(){var e=(0,a.Z)((0,s.Z)().mark((function e(n){var t;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,S.Cc)(Z,n.shape_id,n.size);case 3:t=e.sent,window.open("/admin/se-media/album-detail/".concat(encodeURIComponent(t)),"_blank"),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),g.Am.warning((null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Kh\xf4ng m\u1edf \u0111\u01b0\u1ee3c album");case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(n){return e.apply(this,arguments)}}(),Re=ve?"/admin/rnd/shape-preview?shape_id=".concat(encodeURIComponent(ke(ve)),"&size=").concat(encodeURIComponent(ve.size||"")):"",Ke=function(e){return null!=e&&""!==e&&Number.isFinite(Number(e))?Math.round(Number(e)):"\u2014"},Ue=function(e){var n=e||{};return null==n.width_mm&&null==n.height_mm&&null==n.depth_mm?"\u2014":"".concat(Ke(n.width_mm)," \xd7 ").concat(Ke(n.height_mm)," \xd7 ").concat(Ke(n.depth_mm))},De=function(e){return null!=e&&""!==e?"".concat(e," g"):"\u2014"};return(0,N.jsxs)(o.Z,{fluid:!0,className:"py-3",children:[(0,N.jsxs)("div",{className:"d-flex flex-column flex-sm-row align-items-sm-center justify-content-between gap-2 mb-4",children:[(0,N.jsx)("h2",{className:"mb-0 text-center text-sm-start",children:"\ud83e\udde9 Khu\xf4n (Shape)"}),(0,N.jsxs)(u.Z,{variant:"primary",onClick:function(){me(null),oe(!0)},className:"align-self-center align-self-sm-auto",children:[(0,N.jsx)(b.wEH,{})," Th\xeam khu\xf4n"]})]}),(0,N.jsxs)(d.Z,{className:"mb-3 g-2 align-items-center",children:[(0,N.jsx)(h.Z,{md:4,lg:3,children:(0,N.jsxs)(m.Z,{children:[(0,N.jsx)(p.Z.Control,{placeholder:"T\xecm shape_id / shape_code / t\xean\u2026",value:T,onChange:function(e){return A(e.target.value)},onKeyDown:function(e){"Enter"===e.key&&Ae()}}),(0,N.jsx)(u.Z,{variant:"outline-secondary",onClick:Ae,children:(0,N.jsx)(b.U41,{})})]})}),(0,N.jsx)(h.Z,{xs:6,md:3,lg:2,children:(0,N.jsxs)(p.Z.Select,{value:X,onChange:function(e){O(e.target.value),ne(1)},children:[(0,N.jsx)("option",{value:"",children:"T\u1ea5t c\u1ea3 Shape ID"}),we.map((function(e){return(0,N.jsx)("option",{value:e,children:e},e)}))]})}),(0,N.jsx)(h.Z,{xs:6,md:2,lg:2,children:(0,N.jsxs)(p.Z.Select,{value:q,onChange:function(e){J(e.target.value),ne(1)},children:[(0,N.jsx)("option",{value:"",children:"T\u1ea5t c\u1ea3 Size"}),Ce.map((function(e){return(0,N.jsx)("option",{value:e,children:e},e)}))]})}),(0,N.jsxs)(h.Z,{className:"d-flex align-items-center justify-content-end gap-2",children:[(0,N.jsxs)("span",{className:"text-muted small",children:["T\u1ed5ng: ",Se.length]}),(0,N.jsx)(p.Z.Select,{style:{width:"auto"},value:se,onChange:function(e){var n=parseInt(e.target.value,10);ae(n),ne(1);try{localStorage.setItem(P,String(n))}catch(t){}},children:M.map((function(e){return(0,N.jsxs)("option",{value:e,children:[e,"/trang"]},e)}))})]})]}),(0,N.jsxs)(x.Z,{hover:!0,responsive:!0,className:"align-middle",children:[(0,N.jsx)("thead",{children:(0,N.jsxs)("tr",{children:[(0,N.jsx)("th",{style:{width:56},children:"STT"}),(0,N.jsx)("th",{style:{width:72},children:"\u1ea2nh"}),(0,N.jsx)("th",{children:"Shape ID"}),(0,N.jsx)("th",{children:"Size"}),(0,N.jsx)("th",{children:"T\xean"}),(0,N.jsx)("th",{className:"d-none d-lg-table-cell",children:"Shape Code"}),(0,N.jsx)("th",{title:"K\xedch th\u01b0\u1edbc resin (r\u1ed9ng \xd7 cao \xd7 s\xe2u)",className:"text-nowrap",children:"Resin (mm)"}),(0,N.jsx)("th",{title:"K\xedch th\u01b0\u1edbc t\u1ed5ng (r\u1ed9ng \xd7 cao \xd7 s\xe2u)",className:"text-nowrap",children:"Total (mm)"}),(0,N.jsx)("th",{className:"text-nowrap d-none d-md-table-cell",children:"Net weight"}),(0,N.jsx)("th",{className:"text-nowrap d-none d-md-table-cell",children:"Total weight"}),(0,N.jsx)("th",{style:{minWidth:230},children:"Thao t\xe1c"})]})}),(0,N.jsx)("tbody",{children:y?(0,N.jsx)("tr",{children:(0,N.jsx)("td",{colSpan:11,className:"text-center py-4",children:(0,N.jsx)(v.Z,{animation:"border",size:"sm"})})}):0===Te.length?(0,N.jsx)("tr",{children:(0,N.jsx)("td",{colSpan:11,className:"text-center py-4 text-muted",children:"Ch\u01b0a c\xf3 khu\xf4n n\xe0o."})}):Te.map((function(e,n){var t,s=Array.isArray(e.images)&&(null===(t=e.images[0])||void 0===t?void 0:t.image_link);return(0,N.jsxs)("tr",{children:[(0,N.jsx)("td",{children:(ze-1)*se+n+1}),(0,N.jsx)("td",{children:s?(0,N.jsx)("img",{src:s,alt:"",style:{width:48,height:48,objectFit:"cover",borderRadius:6,border:"1px solid #eee"}}):(0,N.jsx)("div",{style:{width:48,height:48,background:"#f1f3f5",borderRadius:6}})}),(0,N.jsx)("td",{children:ke(e)||"\u2014"}),(0,N.jsx)("td",{children:e.size||"\u2014"}),(0,N.jsx)("td",{children:e.name||"\u2014"}),(0,N.jsx)("td",{className:"d-none d-lg-table-cell",children:(0,N.jsx)("code",{children:ye(e)})}),(0,N.jsx)("td",{className:"text-nowrap",children:Ue(e.resin_dimensions)}),(0,N.jsx)("td",{className:"text-nowrap",children:Ue(e.total_dimensions)}),(0,N.jsx)("td",{className:"text-nowrap d-none d-md-table-cell",children:De(e.net_weight)}),(0,N.jsx)("td",{className:"text-nowrap d-none d-md-table-cell",children:De(e.total_weight)}),(0,N.jsxs)("td",{children:[(0,N.jsx)(u.Z,{variant:"outline-primary",size:"sm",className:"me-1",title:"T\u1ed5ng quan khu\xf4n (c\xe1c size)",onClick:function(){return Ze(e)},children:(0,N.jsx)(b.xyo,{})}),(0,N.jsx)(u.Z,{variant:"info",size:"sm",className:"me-1",title:"Preview 3D",onClick:function(){return fe(e)},children:(0,N.jsx)(b.Fn3,{})}),(0,N.jsx)(u.Z,{variant:"secondary",size:"sm",className:"me-1",title:"Album",onClick:function(){return Ie(e)},children:(0,N.jsx)(b.Jh6,{})}),(0,N.jsx)(u.Z,{variant:"warning",size:"sm",className:"me-1",title:"S\u1eeda",onClick:function(){return function(e){me(e),oe(!0)}(e)},children:(0,N.jsx)(b.fmQ,{})}),(0,N.jsx)(u.Z,{variant:"success",size:"sm",className:"me-1",title:"Clone",onClick:function(){return function(e){e._id,e.shape_code,e.created_at,e.updated_at,e.__v;var n=(0,r.Z)(e,D);me(n),oe(!0)}(e)},children:(0,N.jsx)(b.d_e,{})}),(0,N.jsx)(u.Z,{variant:"danger",size:"sm",title:"Xo\xe1",onClick:function(){return Le(e)},children:(0,N.jsx)(b.Xm5,{})})]})]},e._id||e.shape_code||n)}))})]}),Ne>1&&(0,N.jsxs)("div",{className:"d-flex justify-content-center align-items-center gap-2 mt-2",children:[(0,N.jsx)(u.Z,{variant:"outline-secondary",size:"sm",disabled:ze<=1,onClick:function(){return ne((function(e){return e-1}))},children:"\u2039 Tr\u01b0\u1edbc"}),(0,N.jsxs)("span",{className:"small",children:["Trang ",ze,"/",Ne]}),(0,N.jsx)(u.Z,{variant:"outline-secondary",size:"sm",disabled:ze>=Ne,onClick:function(){return ne((function(e){return e+1}))},children:"Sau \u203a"})]}),(0,N.jsx)(R,{show:ce,currentShape:he,onClose:function(){oe(!1),me(null)},onSaved:_e}),(0,N.jsx)(K.Z,{show:!!ve,onHide:function(){return fe(null)},url:Re,title:"Preview 3D \u2014 ".concat(ve?ye(ve):"")}),(0,N.jsx)(U.Z,{show:!!je,onHide:function(){return Ze(null)},shapes:n,shapeId:null===je||void 0===je?void 0:je.shape_id,size:null===je||void 0===je?void 0:je.size,companyId:Z})]})}},13559:function(e,n,t){var r=t(1413),s=t(45987),a=t(55831),i=t.n(a),l=t(88391),c=t(81279),o=t(23712),u=["bsPrefix","className","striped","bordered","borderless","hover","size","variant","responsive"],d=l.forwardRef((function(e,n){var t=e.bsPrefix,a=e.className,l=e.striped,d=e.bordered,h=e.borderless,m=e.hover,p=e.size,x=e.variant,v=e.responsive,f=(0,s.Z)(e,u),g=(0,c.vE)(t,"table"),b=i()(a,g,x&&"".concat(g,"-").concat(x),p&&"".concat(g,"-").concat(p),l&&"".concat(g,"-").concat("string"===typeof l?"striped-".concat(l):"str
1iped"),d&&"".concat(g,"-bordered"),h&&"".concat(g,"-borderless"),m&&"".concat(g,"-hover")),j=(0,o.jsx)("table",(0,r.Z)((0,r.Z)({},f),{},{className:b,ref:n}));if(v){var Z="".concat(g,"-responsive");return"string"===typeof v&&(Z="".concat(Z,"-").concat(v)),(0,o.jsx)("div",{className:Z,children:j})}return j}));n.Z=d}}]);

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.