PageSourceSearch

https://tuyengiao.vn/_next/static/chunks/31929-2a4da1ab969fc325.js

js tuyengiao.vn collected 2026-09-24 10:04:12 UTC 21,772 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[31929],{490605:function(e,l,n){"use strict";var t=n(557437),i=n(787072),o=n(902265),r=n(636760),d=n.n(r),a=n(830014),c=n.n(a),s=n(850552);let u=e=>null==e?0:"number"==typeof e?e:e.includes("px")&&Number(e.split(/\s+/g)[0])||0,m=d()(c().container,"pt-[".concat(9/16,"%]"));l.default=e=>{let[l,n]=(0,o.useState)(!1),r=(0,s.t)(),a=e.src||r,{className:p,src:v,isFromServer:f=!1,width:h,height:g,fill:x=!0,imageClassName:_="",alt:w,useLoading:j=!0}=e,D=(0,o.useRef)(null),b=(0,o.useMemo)(()=>u(h),[h]),I=(0,o.useMemo)(()=>u(g),[g]),y=(0,o.useMemo)(()=>x?d()(c().container,c().fill):m,[x]),N=(0,o.useMemo)(()=>{if(!I||!I)return{};if(x){let e=I/b*100;return{paddingTop:"".concat(e,"%")}}return{width:b,height:I}},[x,I,b]);if(f){let e=(null==v?void 0:v.startsWith("http"))?"":"".concat("https://tuyengiaodanvan.vn/api/v1","/");a="".concat(e).concat(v)}let P=l=>{n(!0),e.onLoad&&e.onLoad(l)};return(0,t.jsxs)("div",{ref:D,className:d()(y,p),style:N,children:[(0,t.jsx)(i.LazyLoadImage,{className:d()(_,"absolute inset-0"),src:a,width:h,height:g,fallback:r,onLoad:P,onError:P,alt:w}),!l&&j&&(0,t.jsx)("div",{className:"w-[100%] h-[100%] absolute top-0",children:(0,t.jsx)("div",{className:c().ani})})]})}},716743:function(e,l,n){"use strict";n.d(l,{Bp:function(){return c},sR:function(){return s}}),n(557437);var t=n(799376),i=n(740268);n(636760),n(697784);var o=n(190193),r=n(305411),d=n(863077);let a=()=>{let e=(0,d.bB)();return async l=>{e({defaultLearningDisplayInMobile:l}),await o.FormUtils.submitForm({defaultLearningDisplayInMobile:l},{endpoint:r.H.endpointWithApiDomain("/users/update-my-info"),method:"put"})}},c=()=>{let e=(0,t.usePathname)();return null==e?void 0:e.includes("/swipe-course-player/")},s=()=>{var e;let l=null!==(e=(0,t.usePathname)())&&void 0!==e?e:"",n=(0,t.useSearchParams)(),{push:o}=(0,t.useRouter)(),r=a();return async()=>{var e;let t=null!==(e=null==n?void 0:n.toString())&&void 0!==e?e:"",d=t?"".concat(l,"?").concat(t):l;if(null==l?void 0:l.includes("/course-player/")){o(d.replace("course-player","swipe-course-player")),await r(i.DEFAULT_LEARNING_DISPLAY_IN_MOBILE.TIKTOK);return}if(null==l?void 0:l.includes("/swipe-course-player/")){o(d.replace("swipe-course-player","course-player")),await r(i.DEFAULT_LEARNING_DISPLAY_IN_MOBILE.DEFAULT);return}}}},897070:function(e,l,n){"use strict";n.d(l,{n:function(){return i},w:function(){return t}});let t={DOCX:"docx",XLSX:"xlsx",CSV:"csv",PDF:"pdf",PPTX:"pptx",MP3:"mp3",OGG:"ogg",PNG:"png",WEBP:"webp",JPG:"jpg",JPEG:"jpeg"},i="https://view.officeapps.live.com/op/embed.aspx?src="},722048:function(e,l,n){"use strict";n.r(l),n.d(l,{DocumentViewer:function(){return E},default:function(){return T}});var t=n(557437),i=n(902265),o=n(899497),r=n(189970),d=n(509009),a=n(830166),c=n(275745),s=n(636760),u=n.n(s),m=n(794224),p=n(980046),v=n(47344),f=n(236266),h=n(716743),g=n(897070),x=n(752419),_=n.n(x),w=n(281670),j=n(490605),D=e=>{var l,n;let{src:i,onImageLoad:o}=e,r=(0,w.ZD)();return(0,t.jsx)(j.default,{src:i||(null==r?void 0:null===(l=r.metadata)||void 0===l?void 0:l.url),alt:(null==r?void 0:null===(n=r.metadata)||void 0===n?void 0:n.name)||"",className:_()["image-viewer"],onLoad:o})},b=n(305411),I=n(302410),y=n(733852);let N=(0,a.default)(()=>Promise.all([n.e(30721),n.e(43304),n.e(45129),n.e(86012),n.e(1829),n.e(78179),n.e(75589)]).then(n.bind(n,860233)),{loadableGenerated:{webpack:()=>[860233]},ssr:!1}),P=(0,a.default)(()=>n.e(53140).then(n.t.bind(n,390422,23)),{loadableGenerated:{webpack:()=>[390422]},ssr:!1}),E=e=>{var l,n,a,s,x,w;let j=(0,o.r)(),E=(null==e?void 0:null===(l=e.courseContent)||void 0===l?void 0:l.type)||(null===(n=e.lecture)||void 0===n?void 0:n.type),T=encodeURI((null==e?void 0:e.url)||(null===(s=e.lecture)||void 0===s?void 0:null===(a=s.metadata)||void 0===a?void 0:a.url)),F=(null==e?void 0:null===(x=e.courseContent)||void 0===x?void 0:x.type)===y.LearningMaterialType.EBOOK_INDEX,k=T.startsWith("http")?"":b.H.endpointWithApiDomain(""),S=(T="".concat(k).concat(T)).split(".").pop(),C=(0,p.x)(),L=(0,f.FD)(),A=(0,h.sR)(),O=(0,h.Bp)(),G=(0,i.useRef)(null),R=(0,i.useRef)(null),{width:M}=(0,v.zr)();(0,i.useEffect)(()=>{C()},[]),(0,i.useEffect)(()=>{var e;if(R.current&&(null===(e=G.current)||void 0===e?void 0:e.container)&&!L){let e=R.current,l=G.current.container,n=e.clientWidth/e.clientHeight;l.style.height="".concat(l.clientWidth/n,"px")}},[M,L,T,R.current]),(0,i.useEffect)(()=>
1{if(S&&![g.w.JPG,g.w.JPEG,g.w.WEBP,g.w.PNG].includes(S)){var e;R.current=null,(null===(e=G.current)||void 0===e?void 0:e.container)&&(G.current.container.style.height=L||j.active||O?"100%":"calc(100vh - 254px)")}},[T,L,j.active,R.current,F]);let B=(0,t.jsx)(t.Fragment,{});switch(S){case g.w.PNG:case g.w.WEBP:case g.w.JPG:case g.w.JPEG:B=(0,t.jsx)(D,{src:T,onImageLoad(e){R.current=e.currentTarget}});break;case m.BI.PDF:B=(0,t.jsx)(N,{url:T,courseContent:null!==(w=null==e?void 0:e.courseContent)&&void 0!==w?w:e.lecture,fullScreenHandle:j});break;case m.BI.DOC:case m.BI.DOCX:B=(0,t.jsx)("iframe",{style:{position:"absolute"},width:"100%",height:"100%",src:"https://docs.google.com/gview?url=".concat(T,"&embedded=true")});break;case m.BI.XLS:case m.BI.XLSX:case m.BI.PPT:case m.BI.PPTX:B=(0,t.jsx)("iframe",{style:{position:"absolute"},width:"100%",height:"100%",src:"".concat(g.n).concat(T)});break;case g.w.OGG:case g.w.MP3:B=(0,t.jsx)(P,{fileType:g.w.MP3,filePath:T});break;default:B=(0,t.jsx)("span",{})}return E===y.LearningMaterialType.SCORM?(0,t.jsx)("iframe",{className:"w-full h-full",id:"scorm-aaaa",src:T}):(0,t.jsxs)("div",{className:_()["document-viewer"],children:[(0,t.jsx)("div",{className:u()(_()["document-viewer__icon-full-screen"],{hidden:O}),children:(0,t.jsx)(r.Z,{placement:"topRight",title:"Enter fullscreen",children:(0,t.jsx)(I.G,{onClick:L?j.enter:A,children:(0,t.jsx)(d.Z,{style:{fontSize:"20px"}})})})}),(0,t.jsx)(o.I,{handle:j,className:_().fullscreen,children:(0,t.jsx)(c.ZP,{className:_()["scroll-modal"],id:"scroll-modal-".concat(new Date().getTime()),children:B})})]})};var T=E},833339:function(e,l,n){"use strict";n.d(l,{j:function(){return t}});let t=(0,n(504827).PH)("h2platform/features/template/GET_UPLOADED_DOCUMENTS_OF_TEMPLATE")},631929:function(e,l,n){"use strict";n.d(l,{Z:function(){return ex}});var t=n(557437),i=n(902265),o=n(75408),r=n(568575),d=n(285010),a=n(242264),c=n(846783),s=n(464131),u=n(453918),m=n(708931),p=n(305411),v=n(50557);let f=(0,i.createContext)(null),h=()=>(0,i.useContext)(f),g=e=>{let{children:l}=e,n=(0,i.useRef)(null),[o,r]=(0,i.useState)();return(0,t.jsx)(f.Provider,{value:{upLoadingRef:n,setDocumentId:r,documentId:o,openFileDialog:()=>{if(n.current){var e;null===(e=n.current)||void 0===e||e.upload.uploader.fileInput.click()}}},children:l})},{Dragger:x}=d.default,_=e=>{let{uploadText:l,uploadHint:n}=e,{t:i}=(0,u.e)();return(0,t.jsxs)("div",{className:"ui-upload-header-content-text",children:[(0,t.jsx)("p",{className:"ant-upload-drag-icon",children:(0,t.jsx)(c.Z,{})}),(0,t.jsx)("p",{className:"ant-upload-text",children:l||i("clickOrDragFileToThisAreaToUpload")}),(0,t.jsx)("p",{className:"ant-upload-hint",children:n||i("supportForASingleOrBulkUpload")})]})};var w=e=>{let l=(0,v.rp)(),{onUploadDone:n=e=>e,objectId:i,objectType:o,objectSubType:d,uploadProps:c}=e,{t:f}=(0,u.e)(),g=(0,r.I0)(),{upLoadingRef:w,documentId:j,setDocumentId:D}=h(),b={name:"file",multiple:!0,listType:"picture-cart",method:"post",headers:{Authorization:"Bearer ".concat(s.Z.get("h2token"))},action:p.H.endpointWithApiDomain("/document-template-files/".concat(l.documentTemplateId,"/upload?objectId=").concat(i,"&objectType=").concat(o,"&objectSubType=").concat(d).concat(j?"&documentId=".concat(j):"")),onChange(e){let{status:l}=e.file;"uploading"!==l&&console.log(e.file,e.fileList),"done"===l?(a.ZP.success("".concat(e.file.name," ").concat(f("fileUploadedSuccessfully"))),n(),D("")):"error"===l&&a.ZP.error("".concat(e.file.name," ").concat(f("fileUploadedFailed")))},onRemove:async e=>{let l=encodeURIComponent(e.name),t=p.H.endpointWithApiDomain("/document-template-details/delete?fileName=".concat(l));try{await g((0,m.t9)({method:"delete",endpoint:t,callback:n()})),a.ZP.success("".concat(e.name," ").concat(f("fileDeletedSuccessfully")))}catch(l){a.ZP.error("".concat(e.name," ").concat(f("fileDeleteFailed")))}},accept:".doc,.docx,.xlsx,.xls,image/*,.doc, .docx,.ppt, .pptx,.txt,.pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document",...c||{}};return(0,t.jsx)("div",{className:"ui-upload-document-header",children:(0,t.jsx)(x,{...b,...e,ref:w,children:(0,t.jsx)(_,{uploadText:null==c?void 0:c.uploadText,uploadHint:null==c?void 0:c.uploadHint})})})},j=n(833339);let D={uploadedDocuments:"uploadedDocuments",dragDrop:"dragDrop"};var b=n(425628),I=n(169567),y=n.n(I),N=n(152249);let P=e=>{let{droppableId:l,style:n={},className:i="",styleContent:o={},renderContent:r=(e,l)=>null,...d}=e;return(0,t.jsx)("div",{style:{border:"1px solid lightgrey",...n},className:"".concat(i),children:(0,t.jsx)(N.bK,{droppableId:l,direction:"horizontal",children:(e,l)=>(0,t.jsxs)("div",{style:{backgroundColor:l.isDraggingOver?"#e6f4ff":"",display:"flex",padding:8,position:"relative",...o},ref:e.innerRef,...e.droppableProps,children:[r(e,l)||d.children,e.placeholder]})})})};var E=n(673002),T=n(401829),F=n(636760),k=n.n(F),S=n(203417),C=n(697784),L=n(722048),A=n(378932);let O={"application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","text/csv":"csv","application/pdf":"pdf"};var G=n(799655),R=n.n(G),M=n(584432),B=n.n(M),W=n(212717);let Z={selectedFileDocumentIds:[],fileDocumentId:null,isDragging:!1},U=(e,l,n)=>{let t=D.dragDrop;e((0,W.setDocumentFragments)({featureId:l,namespace:t,documentFragments:n}))},H=(e,l)=>{let n=D.dragDrop;return e.getState().featureStore[l][n]},X=(e,l)=>{let n=D.dragDrop;return e.featureStore[l][n]},J=e=>{let{draggableId:l,index:n,style:i={},fileDocument:o={},renderContent:d=(e,l)=>null,...a}=e,c=(0,r.oR)(),s=(0,r.I0)(),u=(0,b.Ab)(),m=B()(null==o?void 0:o.id),p=null==o?void 0:o.id,v=()=>{var e,l;
1return(null===(l=c.getState().featureStore)||void 0===l?void 0:null===(e=l[u])||void 0===e?void 0:e[D.uploadedDocuments])||{}},f=()=>{if(m)return;if(!(H(c,u).selectedFileDocumentIds||[]).length){g();return}let e=h();e&&U(s,u,{selectedFileDocumentIds:e})},h=()=>{let e=v(),l=H(c,u).selectedFileDocumentIds||[],n=l.length?l[0]:null,t=Object.keys(e);if(!n||!t)return!1;let i=t.find(l=>{let t=JSON.stringify(e[l]),i=t.includes(n),o=t.includes(p);return i&&o});if(!i)return!1;let o=e[i],r=null==o?void 0:o.findIndex(e=>(null==e?void 0:e.id)===n),d=null==o?void 0:o.findIndex(e=>(null==e?void 0:e.id)===p),a=r>=d?d:r,s=(r<d?d:r)+1;return[...new Set([n,...o.slice(a,s).map(e=>null==e?void 0:e.id)])]},g=()=>{if(m)return;let e=H(c,u).selectedFileDocumentIds;U(s,u,{selectedFileDocumentIds:(null==e?void 0:e.includes(p))&&!((null==e?void 0:e.length)>1)?[]:[p]})},x=()=>{if(m)return;let e=H(c,u).selectedFileDocumentIds;if(!h())return;let l=e.indexOf(p);if(-1===l){U(s,u,{selectedFileDocumentIds:[...e,p]});return}let n=[...e];n.splice(l,1),U(s,u,{selectedFileDocumentIds:n})},_=e=>{e.defaultPrevented||0!==e.button||(e.preventDefault(),y(e))},w=e=>{e.defaultPrevented||(e.preventDefault(),x())},j=e=>navigator.platform.indexOf("Win")>=0?e.ctrlKey:e.metaKey,I=e=>e.shiftKey,y=e=>{if(j(e)){x();return}if(I(e)){f();return}g()};return(0,t.jsx)(N._l,{draggableId:l,index:n,...a,children:(e,l)=>(0,t.jsx)("div",{style:{...i},...e.draggableProps,...e.dragHandleProps,onClick:_,onTouchEnd:w,ref:e.innerRef,children:d(e,l)||a.children})},l)},z=e=>{var l,n;let{cardboard:t,removeCard:i,styleContent:o={}}=e;return _jsx(DroppablePanel,{droppableId:JSON.stringify({document:t,type:"DOCUMENT_GROUP"}),styleContent:o,children:null==e?void 0:null===(n=e.cardboard)||void 0===n?void 0:null===(l=n.cards)||void 0===l?void 0:l.map((e,l)=>{var n;let t=JSON.stringify({fileDocument:e,index:l,type:"detail"});return _jsx(DraggablePanel,{draggableId:t,index:l,children:(null==e?void 0:null===(n=e.cards)||void 0===n?void 0:n.length)?_jsx(z,{cardboard:e,removeCard:i}):_jsx(DocumentViewer,{fileDocument:e,index:l})},t)})})},K=e=>{let{children:l,onDragEnd:n}=e,o=(0,r.I0)(),d=(0,r.oR)(),a=(0,b.Ab)();(0,i.useEffect)(()=>{c()},[]),(0,i.useEffect)(()=>()=>{s()});let c=()=>{window.addEventListener("click",m),window.addEventListener("keydown",u),window.addEventListener("touchend",p)},s=()=>{window.removeEventListener("click",m),window.removeEventListener("keydown",u),window.removeEventListener("touchend",p)},u=e=>{e.defaultPrevented||"Escape"!==e.key||v()},m=e=>{e.defaultPrevented||v()},p=e=>{e.defaultPrevented||v()},v=()=>{U(o,a,{selectedFileDocumentIds:[]})};return(0,t.jsx)(N.Z5,{onDragStart:e=>{let l=e.draggableId;U(o,a,{fileDocumentId:l});let n=H(d,a).selectedFileDocumentIds;(null==n?void 0:n.find(e=>e===l))||v()},onDragEnd:e=>{var l;let t=null===(l=e.destination)||void 0===l?void 0:l.droppableId,i=H(d,a).selectedFileDocumentIds;(null==i?void 0:i.length)&&(e.draggableIds=H(d,a).selectedFileDocumentIds),t&&!t.includes("CATEGORY_")&&(n(e),v()),U(o,a,{fileDocumentId:null})},children:l})};var q=n(333866);let V=e=>{let{fileDocument:l,children:n}=e,o=(0,b.Ab)(),d=(0,r.v9)(e=>{var l;return null===(l=X(e,o))||void 0===l?void 0:l.selectedFileDocumentIds}),a=(0,r.v9)(e=>{var l;return null===(l=X(e,o))||void 0===l?void 0:l.fileDocumentId}),c=a===l.id,s=(0,i.useMemo)(()=>null==d?void 0:d.find(e=>e===l.id),[d]),u=(0,i.useMemo)(()=>null==d?void 0:d.find(e=>!!a&&e===l.id&&e!==a),[d,a]);return(0,t.jsx)(q.Z,{count:c?null==d?void 0:d.length:0,children:(0,t.jsx)("div",{style:{borderColor:s?"blue":"white",borderStyle:s?"dashed":"none",opacity:u?.2:1},children:n})})},Y=e=>{var l,n,o,r,d;let{fileDocument:a}=e,{t:c}=(0,u.e)(),[s,m]=(0,i.useState)(!1),[p,v]=(0,i.useState)(!1),{t:f}=(0,C.G)("translation"),h=e=>{if(e.isImage){m(!0),v(!1);return}m(!1),v(!0)},g=null==a?void 0:a.file;return(0,t.jsx)("div",{className:R().wrapper,children:(0,t.jsxs)(V,{fileDocument:a,children:[(null==a?void 0:null===(l=a.file)||void 0===l?void 0:l.isImage)&&(0,t.jsx)("div",{className:R()["cover-photo"],children:(0,t.jsx)(S.Z,{src:"".concat(null==a?void 0:null===(n=a.file)||void 0===n?void 0:n.url),preview:!1})}),!(null==a?void 0:null===(o=a.file)||void 0===o?void 0:o.isImage)&&(0,t.jsx)("div",{className:k()(R()["cover-photo"]),children:A.t[O[null==g?void 0:g.type]]}),(0,t.jsxs)("div",{className:k()(R()["image-action"],"ml-0 mb-0"),children:[((null==a?void 0:null===(r=a.file)||void 0===r?void 0:r.isImage)||O[null==g?void 0:g.type])&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(E.ZP,{onClick:()=>{h(g)},className:"image-action__view py-0",type:"link",size:"small",children:f("view")}),(0,t.jsx)("span",{children:"|"})]}),(0,t.jsx)(E.ZP,{onClick:()=>{window.open(null==g?void 0:g.url)},download:!0,size:"small",className:"py-0",type:"link",children:c("download")})]}),(0,t.jsx)(T.default,{title:"File viewer",centered:!0,open:p,onCancel:()=>v(!1),onOk:()=>v(!1),className:"w-fit",classNames:{body:"h-[80vh] w-[80vw]",content:"w-fit"},children:(0,t.jsx)(L.default,{url:null==g?void 0:g.url})}),s&&(0,t.jsx)(S.Z,{wrapperStyle:{display:"none"},preview:{visible:s,onVisibleChange:e=>m(e)},src:null==a?void 0:null===(d=a.file)||void 0===d?void 0:d.url})]})})},Q=e=>{let{fileDocument:l}=e;return(0,t.jsx)(Y,{fileDocument:l})},$=()=>{let{t:e}=(0,u.e)(),l=(0,b.JX)(D.uploadedDocuments)||[],n=l&&l.unSelected||[];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:y().title,children:e("unclassifiedDocument")}),(0,t.jsxs)(P,{droppableId:"unclassified",className:y().unclassified,children:[null==n?void 0:n.map((e,l)=>(0,t.jsx)(J,{draggableId:e.id,index:l,fileDocument:e,children:(0,t.jsx)(Q,{fileDocument:{...e,orderNumber:l},index:l})},e.id)),0===n.length&&(0,t.jsx)("div",{style:{padding:"50px"}})]})]})};var ee=n(656292);let el=e=>{let{children:l,grid:n}=e;return(0,t.jsx)("div",{style:{margin:"0 ".concat(2*n,"px"),maxWidth:650},children:l})},en=e=>{let{children:l,grid:n}=e;return(0,t.jsx)("div",{style:{display:"flex",padding:"".concat(n,"px"),overflow:"auto",flexWrap:"wrap"},children:l})};var et=n(69099),ei=n.n(et),eo=n(189970),er=n(244936),ed=n.n(er);let ea=e=>{let{document:l}=e;return(0,t.jsx)("div",{className:k()(ed()["cover-photo"],ed()["cover-photo__empty"]),children:(0,t.jsx)("img",{src:(null==l?void 0:l.url)||"/assets/images/default-thumbnail.webp"})})};var ec=n(600893),es=n.n(ec);let eu=e=>{var l;let{documentTemplateDetail:n}=e;if(!n)return null;let i=(null==n?void 0:n.isRequired)?es()["document-name__required"]:"";return(0,t.jsxs)("div",{className:k()(es()["document-name"],"line-clamp-2"),children:[(null==n?void 0:n.isRequired)&&(0,t.jsx)("span",{className:"".concat(i),children:"*"}),null==n?void 0:null===(l=n.document)||void 0===l?void 0:l.name]})},em=e=>{var l,n;let{documentTemplateDetail:i,category:o,isDisabled:r=!1}=e,d=null==i?void 0:i.documentId,a=(0,b.JX)(D.uploadedDocuments),c=a&&a[d]||[],{setDocumentId:s,openFileDialog:u}=h();return(0,t.jsx)(P,{droppableId:d,className:ed()["document-group"],children:(0,t.jsxs)("div",{children:[null==c?void 0:c.map((e,l)=>(0,t.jsx)(J,{draggableId:e.id,index:l,isDragDisabled:r,fileDocument:{...e,orderNumber:l},children:(0,t.jsx)(Q,{fileDocument:e,category:o,index:l})},e.id)),(0,t.jsxs)("div",{onClick:()=>{s(d),u()},className:"cursor-pointer",children:[0===c.length&&(0,t.jsx)(ea,{document:null==i?void 0:i.document}),(null==i?void 0:null===(l=i.document)||void 0===l?void 0:l.name.length)>10?(0,t.jsx)(eo.Z,{placement:"top",title:null==i?void 0:null===(n=i.document)||void 0===n?void 0:n.name,children:(0,t.jsx)("span",{className:ed()["ellipsis-text"],children:(0,t.jsx)(eu,{documentTemplateDetail:i})})}):(0,t.jsx)(eu,{documentTemplateDetail:i})]})]})})}
1,ep=e=>{let{category:l,isDisabled:n}=e,i=l.documentTemplateDetails||[],o=(0,ee.d9)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:ei().title,children:o(null==l?void 0:l.name)}),(0,t.jsx)(en,{grid:8,children:null==i?void 0:i.map((e,i)=>(0,t.jsx)(el,{grid:8,children:(0,t.jsx)(em,{documentTemplateDetail:{...e,orderNumber:i},category:l,groupIndex:i,isDisabled:n})},i))})]})};var ev=n(553898);let ef=e=>{let{documentTemplateId:l="",objectId:n="",objectType:o="",objectSubType:d="",isDisabled:a=!1,uploadProps:c={}}=e,s=(0,b.hz)()||[],u=(0,v.rp)()||{},f=(0,r.I0)(),h=(0,b.Ab)(),g=(0,i.useMemo)(()=>l||u.documentTemplateId,[l,u]),x=(0,ev.q7)(h),_=e=>{x(D.uploadedDocuments,null==e?void 0:e.data),x(D.dragDrop,Z)};(0,i.useEffect)(()=>{I()},[g]);let I=(0,i.useCallback)(()=>{f((0,j.j)({callback:_,params:{documentTemplateId:g,objectId:n,objectType:o,objectSubType:d}}))},[g,n,o,d]),y=(e,l)=>{let t=null==e?void 0:e.draggableIds,i=e.destination.droppableId,r=e.draggableId,a="unclassified"===i;(a||r&&i)&&f((0,m.t9)({method:"put",params:{ids:t,documentId:a?"unSelected":i,objectId:n,objectType:o,objectSubType:d},endpoint:l,callback:I}))},N=e=>{let l=e.draggableId;y(e,p.H.endpointWithApiDomain("/document-template-files/".concat(l)))},P=e=>{y(e,p.H.endpointWithApiDomain("/document-template-files/batch"))};return(0,t.jsxs)(K,{onDragEnd:e=>{if(e.destination){if(null==e?void 0:e.draggableIds){P(e);return}N(e)}},children:[!a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(w,{onUploadDone:I,objectId:n,objectType:o,objectSubType:d,uploadProps:c}),(0,t.jsx)($,{})]}),s.map(e=>(0,i.createElement)(ep,{category:e,isDisabled:a,key:e.id}))]})};var eh=n(513065),eg=n(502772),ex=e=>{let{documentTemplateCode:l,documentIdName:n="uploadDocumentsToTemplate",documentTemplateId:r,objectId:d,objectType:a,objectSubType:c="",isDisabled:s=!1,uploadProps:u}=e,m=(0,i.useMemo)(()=>r||l||"",[l,r]),[v]=o.default.useForm();return(0,i.useEffect)(()=>{v.submit()},[m]),(0,t.jsx)(g,{children:(0,t.jsxs)(eg.HFeature,{featureId:m,useQueryParams:!1,endpoint:p.H.endpointWithApiDomain("/document-template-details/templates"),documentIdName:n,searchForm:v,children:[(0,t.jsx)(eh.HSearchFormHiddenAble,{hiddenFields:{documentTemplateCode:l,documentTemplateId:r}}),(0,t.jsx)(ef,{documentIdName:n,documentTemplateId:r,objectId:d,objectType:a,objectSubType:c,isDisabled:s,uploadProps:u})]})})}},830014:function(e){e.exports={container:"h-image_container__DXJht",fill:"h-image_fill__KPdTT",spinner:"h-image_spinner__RIKhM",loading6454:"h-image_loading6454__486gN",ani:"h-image_ani__CsMr4",shimmer:"h-image_shimmer__WkUfe"}},752419:function(e){e.exports={"document-viewer":"document-view_document-viewer__CTppT","document-viewer__icon-full-screen":"document-view_document-viewer__icon-full-screen__yyVVE","pg-viewer-wrapper":"document-view_pg-viewer-wrapper__faITN","scroll-modal":"document-view_scroll-modal__YPUs3",fullscreen:"document-view_fullscreen__AM4XC","image-viewer":"document-view_image-viewer__4OYCP"}},69099:function(e){e.exports={title:"category-viewer_title__bDRPU"}},169567:function(e){e.exports={title:"unclassified-document-viewer_title__SSYx0",unclassified:"unclassified-document-viewer_unclassified___NELB"}},244936:function(e){e.exports={"cover-photo":"img-group-viewer_cover-photo__fXXK5","cover-photo__empty":"img-group-viewer_cover-photo__empty__H8zw8","document-group":"img-group-viewer_document-group__wnxWl"}},600893:function(e){e.exports={"document-name":"document-viewer_document-name__DAin9","document-name__required":"document-viewer_document-name__required__53jzG"}},799655:function(e){e.exports={wrapper:"img-viewer_wrapper__gBGZT","cover-photo":"img-viewer_cover-photo__73bqA","cover-photo__empty":"img-viewer_cover-photo__empty__8pDMV","image-action":"img-viewer_image-action__C4on6","image-action__alone-download":"img-viewer_image-action__alone-download__7L_Cx"}}}]);

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.