1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[71131],{29301:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});n(67294);var o=n(44236),i=n(56250),r=n(3406),c=n(35977),l=n(65706),a=n(48033),s=n(35944),u=function(e){var t=e.isOpen,n=e.onClose,c=(0,o.useTranslation)().t;return(0,s.BX)(i.Z,{isOpen:t,onClose:n,width:"685px",children:[(0,s.tZ)(i.Z.Header,{children:c("style:category_popup_title")}),(0,s.tZ)(i.Z.Content,{children:(0,s.tZ)(d,{children:c("space:filter_category_none")})}),(0,s.tZ)(i.Z.Footer,{children:(0,s.tZ)(r.Z,{disabled:!0,children:c("common:btn_ok")})})]})},d=(0,a.Z)("div",{target:"ejcaiqz0"})("padding:60px 30px;background-color:",(function(e){return e.theme.colors.G_100}),";text-align:center;"),p=function(e){var t=e.isOpen,n=e.onClose,a=e.categoryMap,d=e.selectedCategoryObjects,p=e.onSelectedCategoryObjects,f=e.handleDeleteCategoryItem,Z=e.addCategory,m=e.isLoading,g=e.isPosting,h=e.onConfirm,v=e.disabled,C=e.footnote,L=(0,o.useTranslation)(["style","common"]).t,E=(0,l.u)();return 0===a.size?(0,s.tZ)(u,{isOpen:t,onClose:n}):(0,s.BX)(i.Z,{isOpen:t,onClose:n,width:"685px",children:[(0,s.tZ)(i.Z.Header,{children:L("style:category_popup_title")}),(0,s.BX)(i.Z.Content,{children:[(0,s.tZ)(c.Z,{categoryMap:a,selectedCategoryObjects:d,onSelectedCategoryObjects:p,handleDeleteCategoryItem:f,addCategory:Z,isLoading:m}),C&&(0,s.tZ)(i.Z.Footnote,{mt:E.spacings.m,children:C})]}),(0,s.tZ)(i.Z.Footer,{children:(0,s.tZ)(r.Z,{disabled:v,isLoading:g,onClick:h||n,children:L("common:btn_ok")})})]})}},50627:function(e,t,n){"use strict";n.r(t);var o=n(64777),i=(n(67294),n(94184)),r=n.n(i),c=n(51349),l=n.n(c),a=n(56250),s=n(86687),u=n(35944);t.default=function(e){var t=e.open,n=e.closeOnOverlayClick,i=e.actions,c=e.children,d=e.customClassName,p=e.title,f=e.onClose,Z=e.customModalStyle,m=e.customOverlayStyle,g=e.closeOnEsc,h=e.showAttention,v=void 0===h||h,C=e.showCloseIcon;return(0,u.tZ)(o.Z,{open:t,onClose:f,center:!0,showCloseIcon:C,classNames:{overlay:r()(l().customOverlay,m),modal:r()(l().defaultModal,l().customModal,Z),closeButton:l().closeButton},closeOnOverlayClick:n,closeOnEsc:g,children:(0,u.BX)("div",{className:r()(l().closetModal,d),children:[(0,u.tZ)("div",{className:l().modalTitle,children:p}),v&&(0,u.tZ)(a.Z.Pictogram,{icon:s.Z}),(0,u.tZ)("div",{className:r()(l().modalBody),children:c}),(0,u.tZ)("div",{className:l().modalLineBottom4020}),(0,u.tZ)("div",{className:l().modalAction,children:i})]})})}},71131:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return Ie}});var o,i,r=n(59499),c=n(50029),l=n(48033),a=n(87794),s=n.n(a),u=n(67294),d=n(5152),p=n.n(d),f=n(93679),Z=n(65105),m=n(25011),g=n(82608),h=n(65706),v=n(97293),C=n(95631),L=n(69143),E=n(34017),_=n(6239),b=n(27984),y=n(37997),O=n(93142),I=n(72508),S=n(98881),x=n(92818),T=n(75527),w=n(37771),k=n(83802),M=n(98354),N=n(86697),A=n(36600),D=n(13471),R=n(96922),G=n(16752),j=n(54861),P=n(55200),W=(o={},(0,r.Z)(o,f.cL.WORKFLOW,{on:v.Z,off:C.Z}),(0,r.Z)(o,f.cL.COPY,{on:L.Z,off:E.Z}),(0,r.Z)(o,f.cL.SELECT,{on:_.Z,off:b.Z}),(0,r.Z)(o,f.cL.DELETE,{on:y.Z,off:O.Z}),(0,r.Z)(o,f.cL.MOVE,{on:I.Z,off:S.Z}),(0,r.Z)(o,f.cL.ASSORTMENT,{on:x.Z,off:T.Z}),(0,r.Z)(o,f.cL.DOWNLOAD,{on:w.Z,off:k.Z}),(0,r.Z)(o,f.cL.EXCEL_LINESHEET,{on:M.Z,off:N.Z}),(0,r.Z)(o,f.cL.FITTING,{on:A.Z,off:D.Z}),(0,r.Z)(o,f.cL.UNSELECT,{on:R.Z,off:G.Z}),(0,r.Z)(o,f.cL.CATEOGORY,{on:j.Z,off:P.Z}),o),z=(i={},(0,r.Z)(i,f.cL.WORKFLOW,"multiselect_btn_workflow"),(0,r.Z)(i,f.cL.COPY,"multiselect_btn_copy"),(0,r.Z)(i,f.cL.SELECT,"multiselect_btn_all"),(0,r.Z)(i,f.cL.DELETE,"multiselect_btn_delete"),(0,r.Z)(i,f.cL.MOVE,"multiselect_btn_move"),(0,r.Z)(i,f.cL.ASSORTMENT,"multiselect_btn_assortment"),(0,r.Z)(i,f.cL.DOWNLOAD,"multiselect_btn_download"),(0,r.Z)(i,f.cL.EXCEL_LINESHEET,"multiselect_btn_excel_linesheet"),(0,r.Z)(i,f.cL.FITTING,"multiselect_btn_fitting"),(0,r.Z)(i,f.cL.UNSELECT,"multiselect_btn_unselect"),(0,r.Z)(i,f.cL.CATEOGORY,"common:text_category"),i),F=n(35944);var X=(0,l.Z)("div",{target:"egvbc8j2"})({name:"4zleql",styles:"display:block"}),B=(0,l.Z)("div",{target:"egvbc8j1"})({name:"1uxztrp",styles:"opacity:0;position:absolute;bottom:-20px;left:50%;transform:translateX(-50%);white-space:pre"}),H=(0,l.Z)("button",{target:"egvbc8j0"})("position:relative;display:flex;flex-direction:column;align-items:center;transition:all 0.3s;color:",(function(e){return e.theme.colors.G_0}),";&:hover{margin-bottom:16px;",B,"{opacity:1;}}&:disabled{opacity:20%;pointer-events:none;}"),Y=function(e){var t=e.type,n=e.onClick,o=e.name,i=e.setAction,r=e.disabled,c=void 0===r||r,l=e.disabledDescription,a=e.isActionModalOpened,s=void 0!==a&&a,d=(0,Z.Z)((function(e){null===n||void 0===n||n(e)})),p=(0,h.u)(),f=(0,u.useState)(!1),v=f[0],C=f[1],L=!c&&v?W[t].on:W[t].off;return(0,F.tZ)(m.Z,{trigger:"mouseenter",placement:"bottom",size:"mini",disabled:!c||!l,content:null!==l&&void 0!==l?l:"",children:(0,F.tZ)(X,{onMouseEnter:function(){i(t),C(!0)},onMouseLeave:function(){s||(i(),C(!1))}
1,children:(0,F.BX)(H,{onClick:d,disabled:c,children:[(0,F.tZ)(L,{size:40}),(0,F.tZ)(B,{children:(0,F.tZ)(g.Z,{color:p.colors.G_0,variant:3,children:o})})]},t)})})},V=n(44236),U=n(32834),K=n(68653),q=n(50627),J=n(54544),Q=n(73777),$=n(68732),ee=n(56250),te=n(43550),ne=n(151),oe=n(544),ie=n(3406),re=n(31298),ce=n(94184),le=n.n(ce);var ae=function(e){var t=e.isOpen,n=e.onClose,o=e.workflowList,i=e.onChangeMultiItemWorkflow,r=(0,u.useState)(null),l=r[0],a=r[1],d=(0,u.useState)(!1),p=d[0],f=d[1],Z=(0,V.useTranslation)(["common","space"]).t,m=function(){var e=(0,c.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l){e.next=6;break}return f(!0),e.next=4,i(l);case 4:n(),f(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,u.useEffect)((function(){t||a(null)}),[t]),(0,F.BX)(ee.Z,{isOpen:t,onClose:n,width:"400px",children:[(0,F.tZ)(ee.Z.Header,{children:Z("space:text_select_workflow")}),(0,F.BX)(ee.Z.Content,{children:[(0,F.tZ)(se,{children:(0,F.tZ)(re.ZP,{autoHide:!0,universal:!0,children:o.map((function(e){return(0,F.BX)(ue,{className:le()({selected:l===e.Seq}),onClick:function(){return a(e.Seq)},children:[(0,F.tZ)(de,{backgroundColor:e.ColorCode,className:le()({draft:null===e.ColorCode})}),(0,F.tZ)(pe,{children:(0,F.tZ)(te.Z,{children:e.Name})})]},e.Seq)}))})}),(0,F.BX)(fe,{children:[(0,F.tZ)(ne.Z,{size:10}),(0,F.tZ)(oe.Z,{variant:2,children:Z("space:text_multi_workflow_warning")})]})]}),(0,F.BX)(ee.Z.Footer,{children:[(0,F.tZ)(ie.Z,{onClick:n,variant:"secondary",children:Z("common:btn_cancel")}),(0,F.tZ)(ie.Z,{onClick:m,isLoading:p,disabled:!l,children:Z("common:btn_ok")})]})]})},se=(0,l.Z)("div",{target:"el59z0z4"})({name:"tdglu0",styles:"height:330px"}),ue=(0,l.Z)("div",{target:"el59z0z3"})("display:flex;height:32px;padding:0 ",(function(e){return e.theme.spacings.xs}),"px;gap:",(function(e){return e.theme.spacings["2xs"]}),"px;align-items:center;width:100%;cursor:pointer;color:",(function(e){return e.theme.colors.G_500}),";&:hover{background-color:",(function(e){return e.theme.colors.SURFACE_STATUS_HOVER}),";}&.selected{background-color:",(function(e){return e.theme.colors.SURFACE_STATUS_SELECTED}),";}"),de=(0,l.Z)("span",{target:"el59z0z2"})("display:inline-block;position:relative;width:30px;height:12px;margin-right:",(function(e){return e.theme.spacings.s}),"px;background-color:",(function(e){return e.backgroundColor}),";flex-shrink:0;&.draft{background:url(",n(94172),") no-repeat;}"),pe=(0,l.Z)("div",{target:"el59z0z1"})({name:"iz36pg",styles:"margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),fe=(0,l.Z)("div",{target:"el59z0z0"})("color:",(function(e){return e.theme.colors.WARNING_300}),";display:flex;align-items:center;gap:",(function(e){return e.theme.spacings["3xs"]}),"px;margin-top:",(function(e){return e.theme.spacings["3xs"]}),"px;"),Ze=n(29301),me=n(18065),ge=function(e){var t=e.unselectAll,n=e.categoryMap,o=e.onChangeMultiItemCategories,i=(0,u.useState)(!1),r=i[0],l=i[1],a=(0,u.useState)(!1),d=a[0],p=a[1],f=(0,u.useState)([]),Z=f[0],m=f[1],g=function(){var e=(0,c.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o&&Z.length){e.next=2;break}return e.abrupt("return");case 2:return p(!0),e.next=5,o(Z.map((function(e){return e.CategoryId})));case 5:t(),l(!1),p(!1),m([]);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return{categoryModalOpened:r,categoriesPosting:d,openCategoryModal:function(){o&&(m([]),l(!0),p(!1))},closeCategoryModal:function(){return l(!1)},selectedCategoryObjects:Z,handleDeleteCategoryItem:function(e){m((0,me._H)(e,Z))},onSelectedCategoryObjects:function(e){var t=e.categoryId,o=e.checked;n&&m((0,me.Gh)({categoryId:t,checked:o,selectedCategoryObjects:Z,categoryMap:n}))},confirmCategory:g}},he=n(86687),ve=n(9155);var Ce=p()((function(){return n.e(95904).then(n.bind(n,95904))}),{ssr:!1,loadableGenerated:{webpack:function(){return[95904]}}}),Le=p()((function(){return n.e(21248).then(n.bind(n,21248))}),{ssr:!1,loadableGenerated:{webpack:function(){return[21248]}}}),Ee=p()((function(){return Promise.resolve().then(n.bind(n,83815))}),{ssr:!1,loadableGenerated:{webpack:function(){return[83815]}}}),_e=(0,l.Z)("div",{target:"euevhj33"})("position:fixed;top:120px;left:50%;transform:translateX(-50%);display:",(function(e){return e.isShow?"flex":"none"}),";min-height:80px;padding:20px 27px;border-radius:15px;background-color:",(function(e){return e.theme.colors.OPACITY_BASIC_B_400}),";border:2px solid ",(function(e){return e.theme.colors.G_800}),";"),be=(0,l.Z)("div",{target:"euevhj32"})("width:100%;height:100%;display:flex;gap:30px;visibility:",(function(e){return e.isShow?"visible":"hidden"}),";"),ye=(0,l.Z)("div",{target:"euevhj31"})({name:"1flj9lk",styles:"text-align:left"}),Oe=(0,l.Z)("span",{target:"euevhj30"})("display:inline-block;float:left;margin-right:",(function(e){return e.theme.spacings["3xs"]}),"px;"),Ie=(0,U.Pi)((function(e){var t,n,o,i=e.btns,l=e.isShow,a=e.canDelete,d=e.canDownload,p=e.canCopy,Z=e.canCopyPermission,m=e.canUseWorkflow,g=e.canAssortment,v=e.downloadLineSheet,C=e.selectAll,L=e.unselectAll,E=e.onDelete,_=e.onCopy,b=e.onDownload,y=e.onMove,O=e.onAssortment,I=e.onFitting,S=e.setAction,x=e.roomId,T=e.spaceType,w=e.canFitting,k=e.getMoveShortcut,M=e.canMoveStyleTypes,N=void 0===M?[]:M,A=e.groupId,D=e.onChangeMultiItemWorkflow,R=e.onChangeMultiItemCategories,G=e.isNumberOfExcelFilesExceed,j=e.roomStore,P=(0,V.useTranslation)("space").t,W=(0,h.u)(),X=(0,u.useState)(),B=X[0],H=X[1],U=(0,u.useState)(""),ee=U[0],te=U[1],ne=j.reloadRoomItems,oe=j.workflowList,ie=void 0===oe?[]:oe,re=null===j||void 0===j||null===(t=j.filterStore)||void 0===t?void 0:t.categoryMap,ce=function(){H(void 0),te("")},le=function(e){return H(e)},se=function(){var e=(0,c.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===E||void 0===E?void 0:E().then((function(){ce()})).catch((function(e){var t,n;500===(null===(t=e.response)||void 0===t?void 0:t.status)&&20053===(null===(n=e.response)||void 0===n?void 0:n.data.Code)&&(te("common:modal_error"),H("error"))}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=function(){var e=(0,c.Z)(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return L(),H(void 0),e.next=4,v(t);case 4:if("error"!==(n=e.sent)){e.next=9;break}return te("space:excel_linesheet_download_error"),H(n),e.abrupt("return");case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){return function(){return H(void 0)}}),[]),(0,u.useEffect)((function(){var e;return null===j||void 0===j||null===(e=j.setIsModalOpenInMultiSelect)||void 0===e||e.call(j,Boolean(B)),function(){var e;return null===j||void 0===j||null===(e=j.setIsModalOpenInMultiSelect)||void 0===e?void 0:e.call(j,!1)}}),[B]);var de=function(){var e=(0,c.Z)(s().mark((function e(t){var n,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=null!==(n=t.Spaceid)&&void 0!==n?n:t.SpaceId,e.next=3,null===y||void 0===y?void 0:y(o);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),pe=ge({categoryMap:re,onChangeMultiItemCategories:R,unselectAll:L}),fe=pe.selectedCategoryObjects,me=pe.onSelectedCategoryObjects,Ie=pe.handleDeleteC
1ategoryItem,Se=pe.categoryModalOpened,xe=pe.categoriesPosting,Te=pe.closeCategoryModal,we=pe.openCategoryModal,ke=pe.confirmCategory,Me=(n={},(0,r.Z)(n,f.cL.UNSELECT,L),(0,r.Z)(n,f.cL.SELECT,C),(0,r.Z)(n,f.cL.DELETE,(function(){return le(f.cL.DELETE)})),(0,r.Z)(n,f.cL.EXCEL_LINESHEET,(function(){H(G?f.G_:f.cL.EXCEL_LINESHEET)})),(0,r.Z)(n,f.cL.MOVE,(function(){return le(f.cL.MOVE)})),(0,r.Z)(n,f.cL.COPY,_),(0,r.Z)(n,f.cL.DOWNLOAD,(function(){null===b||void 0===b||b(),L()})),(0,r.Z)(n,f.cL.ASSORTMENT,O),(0,r.Z)(n,f.cL.FITTING,I),(0,r.Z)(n,f.cL.WORKFLOW,(function(){return le(f.cL.WORKFLOW)})),(0,r.Z)(n,f.cL.CATEOGORY,(function(){we()})),n),Ne=(o={},(0,r.Z)(o,f.cL.UNSELECT,!1),(0,r.Z)(o,f.cL.SELECT,!1),(0,r.Z)(o,f.cL.DELETE,!a),(0,r.Z)(o,f.cL.EXCEL_LINESHEET,!d),(0,r.Z)(o,f.cL.DOWNLOAD,!d),(0,r.Z)(o,f.cL.COPY,!(null!==p&&void 0!==p?p:d)),(0,r.Z)(o,f.cL.MOVE,!a),(0,r.Z)(o,f.cL.ASSORTMENT,!g),(0,r.Z)(o,f.cL.FITTING,$.ko||!w),(0,r.Z)(o,f.cL.WORKFLOW,!m),(0,r.Z)(o,f.cL.CATEOGORY,!m),o),Ae=function(e){return e===f.cL.FITTING?$.ko?P("unavailable_fitting_via_enterprise"):P("common:permission_donthave"):e===f.cL.EXCEL_LINESHEET?P("multiselect_excel_sheet_disabled_tooltip"):e===f.cL.COPY&&T===J.Sn.ASSORTMENT?P(Z?"multiselect_excel_sheet_disabled_tooltip":"common:permission_donthave"):void 0},De=function(e){return e===f.cL.COPY&&T===J.Sn.ASSORTMENT?"multiselect_btn_assortment_copy":z[e]},Re=B===f.cL.EXCEL_LINESHEET,Ge=B===f.G_;return(0,F.BX)(_e,{isShow:l,children:[(0,F.tZ)(be,{isShow:l,children:i.map((function(e){return(0,F.tZ)(Y,{type:e,name:P(De(e)),onClick:Me[e],disabled:null===Ne||void 0===Ne?void 0:Ne[e],disabledDescription:Ae(e),setAction:S,isActionModalOpened:B===e},e)}))}),T===J.Sn.ASSORTMENT?(0,F.tZ)(K.default,{isOpen:B===f.cL.DELETE,onSubmit:se,onClose:ce}):(0,F.tZ)(Q.Z,{isOpen:B===f.cL.DELETE,onClose:ce,onSubmit:se,isMultiItems:!0}),k&&B===f.cL.MOVE&&(0,F.tZ)(Ce,{spaceId:x,isOpen:B===f.cL.MOVE,onClose:ce,getRecentItemList:k,closeOnOverlayClick:!1,canMoveTypes:N,onSubmit:de,itemType:J.Sn.CONTENT,groupId:A,unselectAll:L,reloadItems:ne}),D&&(0,F.tZ)(ae,{isOpen:B===f.cL.WORKFLOW,onClose:ce,workflowList:ie,onChangeMultiItemWorkflow:D}),Re&&(0,F.tZ)(Le,{title:P("space:modal_line_sheet_file_name"),originFileName:"",onConfirmRenameFile:ue,onCloseModalRenameFile:function(){return H(void 0)},renameIsPosting:!1,modalRenameFileIsOpened:!0}),Ge&&(0,F.tZ)(Ee,{width:"440px",isOpen:Ge,onClose:function(){return H(void 0)},onConfirm:function(){return H(void 0)},title:P("multiselect_excel_linesheet_exceed_files_number_warning_title"),description:P("multiselect_excel_linesheet_exceed_files_number_warning_description",{size:ve.J})}),(0,F.tZ)(q.default,{open:"error"===B,onClose:ce,title:P(ee||"space:popup_multiselect_copy_title"),actions:[(0,F.tZ)("button",{onClick:ce,className:"btn btn1 yes",children:P("common:btn_ok")},"cancel")]}),R&&re&&(0,F.tZ)(Ze.Z,{isOpen:Se,categoryMap:re,selectedCategoryObjects:fe,onSelectedCategoryObjects:me,handleDeleteCategoryItem:Ie,onClose:Te,onConfirm:ke,isPosting:xe,disabled:0===fe.length,footnote:(0,F.BX)(ye,{children:[(0,F.tZ)(Oe,{children:(0,F.tZ)(he.Z,{color:W.colors.WARNING,size:10})}),P("space:modal_caption_bulk_category")]})})]})}))},65105:function(e,t,n){"use strict";var o=n(23493),i=n.n(o),r=n(67294);t.Z=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2?arguments[2]:void 0;
1return(0,r.useCallback)(i()(e,t,n),[e,t])}},94172:function(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDMwIDEyIj4KICAgIDxnIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPHBhdGggZmlsbD0iI0ZGRiIgZmlsbC1ydWxlPSJub256ZXJvIiBzdHJva2U9IiNCNEI0QjYiIGQ9Ik0uNS41aDI5djExSC41eiIvPgogICAgICAgIDxwYXRoIHN0cm9rZT0iI0ZGMDAxRiIgc3Ryb2tlLWxpbmVjYXA9InNxdWFyZSIgZD0iTTEuNSAxLjVsMjcgOSIvPgogICAgPC9nPgo8L3N2Zz4K"}}]);
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.