3d-decorate-platform 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js +12 -0
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.min.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("antd/es/message"),require("dva"),require("react"),require("dva-loading"),require("antd/dist/antd.css"),require("history"),require("antd/es/config-provider"),require("antd/es/locale/zh_CN"),require("dva/dynamic"),require("dva/router"),require("antd/es/card"),require("antd/es/button"),require("antd/es/switch"),require("antd/es/form"),require("antd/es/input"),require("antd/es/tag"),require("antd/es/descriptions"),require("antd/es/spin"),require("antd/es/pagination"),require("antd/es/tooltip"),require("antd/es/empty"),require("antd/es/modal"),require("antd/es/typography"),require("@ant-design/icons"),require("axios"),require("crypto-js/sha1"),require("crypto-js/sha256"),require("antd/es/radio"),require("antd/es/select"),require("antd/es/progress"),require("react-dom"),require("antd/es/table"),require("antd/es/popconfirm"),require("antd/es/upload"),require("events"),require("ue-game-container-app"),require("antd/es/checkbox"),require("antd/es/input-number"),require("antd/es/avatar")):"function"==typeof define&&define.amd?define(["exports","antd/es/message","dva","react","dva-loading","antd/dist/antd.css","history","antd/es/config-provider","antd/es/locale/zh_CN","dva/dynamic","dva/router","antd/es/card","antd/es/button","antd/es/switch","antd/es/form","antd/es/input","antd/es/tag","antd/es/descriptions","antd/es/spin","antd/es/pagination","antd/es/tooltip","antd/es/empty","antd/es/modal","antd/es/typography","@ant-design/icons","axios","crypto-js/sha1","crypto-js/sha256","antd/es/radio","antd/es/select","antd/es/progress","react-dom","antd/es/table","antd/es/popconfirm","antd/es/upload","events","ue-game-container-app","antd/es/checkbox","antd/es/input-number","antd/es/avatar"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).index={},e.message,e.Dva,e.React,e.dvaLoading,null,e.history,e._ConfigProvider,e._zhCN,e.dvaDynamic,e.dvaRouter,e._Card,e._Button,e._Switch,e._Form,e._Input,e._Tag,e._Descriptions,e._Spin,e._Pagination,e._Tooltip,e._Empty,e._Modal,e._Typography,e._Icons,e.axios,e.sha1,e.sha256,e._Radio,e._Select,e._Progress,e.ReactDOM,e._Table,e._Popconfirm,e._Upload,e.events,e.ueGameContainerApp,e._Checkbox,e._InputNumber,e._Avatar)}(this,function(e,t,a,n,r,o,i,l,s,d,c,u,m,p,f,h,_,g,v,y,x,b,M,w,S,T,E,C,N,L,k,I,P,A,R,D,z,U,B,G){"use strict";function F(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var O=F(t),H=F(a),V=F(n),j=F(r),W=F(l),q=F(s),K=F(d),X=F(u),Y=F(m),Z=F(p),Q=F(f),J=F(h),$=F(_),ee=F(g),te=F(v),ae=F(y),ne=F(x),re=F(b),oe=F(M),ie=F(w),le=F(T),se=F(E),de=F(C),ce=F(N),me=F(L),pe=F(k),fe=F(I),he=F(P),_e=F(A),ge=F(R),ve=F(U),ye=F(B),xe=F(G);function be(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);t>a;a++)n[a]=e[a];return n}function Me(e,t,a,n,r,o,i){try{var l=e[o](i),s=l.value}catch(e){return void a(e)}l.done?t(s):Promise.resolve(s).then(n,r)}function we(e){return function(){var t=this,a=arguments;return new Promise(function(n,r){var o=e.apply(t,a);function i(e){Me(o,n,r,i,l,"next",e)}function l(e){Me(o,n,r,i,l,"throw",e)}i(void 0)})}}function Se(e,t,a){return t=ke(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pe()?Reflect.construct(t,a||[],ke(e).constructor):t.apply(e,a))}function Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){for(var a=0;t.length>a;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Oe(n.key),n)}}function Ce(e,t,a){return t&&Ee(e.prototype,t),a&&Ee(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ne(e,t,a){return(t=Oe(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var a=arguments[t];for(var n in a)({}).hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Le.apply(null,arguments)}function ke(e){return ke=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ke(e)}function Ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pe=function(){return!!e})()}function Ae(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,n)}return a}function Re(e){for(var t=1;arguments.length>t;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(a),!0).forEach(function(t){Ne(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ae(Object(a)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}function De(e,t){if(null==e)return{};var a,n,r=function(e,t){if(null==e)return{};var a={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;a[n]=e[n]}return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;o.length>n;n++)-1===t.indexOf(a=o[n])&&{}.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}function ze(){
|
|
2
2
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
3
|
-
var e,t,a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",r=a.toStringTag||"@@toStringTag";function o(a,n,r,o){var s=Object.create((n&&n.prototype instanceof l?n:l).prototype);return Ue(s,"_invoke",function(a,n,r){var o,l,s,d=0,c=r||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,a){return o=t,l=0,s=e,m.n=a,i}};function p(a,n){for(l=a,s=n,t=0;!u&&d&&!r&&c.length>t;t++){var r,o=c[t],p=m.p,f=o[2];a>3?(r=f===n)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):p>=o[0]&&((r=2>a&&o[1]>p)?(l=0,m.v=n,m.n=o[1]):f>p&&(r=3>a||o[0]>n||n>f)&&(o[4]=a,o[5]=n,m.n=f,l=0))}if(r||a>1)return i;throw u=!0,n}return function(r,c,f){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,f),l=c,s=f;(t=2>l?e:s)||!u;){o||(l?3>l?(l>1&&(m.n=-1),p(l,s)):m.n=s:m.v=s);try{if(d=2,o){if(l||(r="next"),t=o[r]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,2>l&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),2>l&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((t=(u=0>m.n)?s:a.call(n,m))!==i)break}catch(t){o=e,l=1,s=t}finally{d=1}}return{value:t,done:u}}}(a,r,o),!0),s}var i={};function l(){}function s(){}function d(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Ue(t={},n,function(){return this}),t),u=d.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,Ue(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=d,Ue(u,"constructor",d),Ue(d,"constructor",s),s.displayName="GeneratorFunction",Ue(d,r,"GeneratorFunction"),Ue(u),Ue(u,r,"Generator"),Ue(u,n,function(){return this}),Ue(u,"toString",function(){return"[object Generator]"}),(ze=function(){return{w:o,m:m}})()}function Ue(e,t,a,n){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ue=function(e,t,a,n){function o(t,a){Ue(e,t,function(e){return this._invoke(t,a,e)})}t?r?r(e,t,{value:a,enumerable:!n,configurable:!n,writable:!n}):e[t]=a:(o("next",0),o("throw",1),o("return",2))},Ue(e,t,a,n)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}function Ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,i,l=[],s=!0,d=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){d=!0,r=e}finally{try{if(!s&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(d)throw r}}return l}}(e,t)||Ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Ve(e,t){if(e){if("string"==typeof e)return be(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?be(e,t):void 0}}function je(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}je("*{margin:0;padding:0;box-sizing:border-box}#index_root__4PyOE,body,html{width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}body{font-size:14px;color:#333}");var We,qe="app-module_appWrapper__2AGqq";je(".app-module_appWrapper__2AGqq{height:100vh;width:100%;overflow:hidden;background:#f5f6f8}.ant-tooltip-inner{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important;max-width:400px;word-break:break-all}");var Ke,Xe,Ye=a.connect(function(e){return{app:e.app}})(We=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).changePage=function(t){var a=t.detail,n=a?a.path:"/douGongSchemeTemplate";window.location.pathname!==n&&e.props.dispatch(c.routerRedux.replace({pathname:n}))},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){window.addEventListener("onDecoratePageChange",this.changePage);var e=window.location.pathname;"/"!==e&&"/decoratePlatform"!==e&&"/decoratePlatform/"!==e||this.props.dispatch(c.routerRedux.replace({pathname:"/douGongSchemeTemplate"}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("onDecoratePageChange",this.changePage)}},{key:"render",value:function(){return V.default.createElement(W.default,{locale:q.default},V.default.createElement("div",{className:qe},this.props.children))}}])}(n.Component))||We,Ze=a.connect(function(e){return{app:e.app}})(Ye),Qe=a.connect(function(e){return{decorate:e.decorate}})(Ke=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).handleSubmit=function(e){console.log("提交配置:",e)},e}return Ie(t,e),Ce(t,[{key:"render",value:function(){return V.default.createElement("div",{style:{padding:20}},V.default.createElement(X.default,{title:"配置管理"},V.default.createElement(Q.default,{layout:"vertical",onFinish:this.handleSubmit},V.default.createElement(Q.default.Item,{label:"配置名称",name:"name",rules:[{required:!0}]},V.default.createElement(J.default,null)),V.default.createElement(Q.default.Item,{label:"配置描述",name:"description"},V.default.createElement(J.default.TextArea,{rows:4})),V.default.createElement(Q.default.Item,{label:"启用状态",name:"enabled",valuePropName:"checked"},V.default.createElement(Z.default,null)),V.default.createElement(Q.default.Item,null,V.default.createElement(Y.default,{type:"primary",htmlType:"submit"},"保存")))))}}])}(n.Component))||Ke;function Je(e){if(!e)return"";if(e.query&&e.query.id)return e.query.id+"";var t=e.search||"",a=t.startsWith("?")?t.slice(1):t;try{return new URLSearchParams(a).get("id")||""}catch(e){return""}}var $e=a.connect(function(e){return{decorate:e.decorate,loading:e.loading}})(Xe=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).loadByRoute=function(){var t=Je(e.props.location),a=function(e){if(e){if(e.query&&e.query.version)return e.query.version+"";var t=e.search||"",a=t.startsWith("?")?t.slice(1):t;try{return new URLSearchParams(a).get("version")||void 0}catch(e){return}}}(e.props.location),n=e.props.dispatch;if(t){var r={schemeId:t+""};a&&(r.version=a),n({type:"decorate/fetchDetail",payload:r}).catch(function(e){O.default.error(e.message||"获取详情失败")})}},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.loadByRoute()}},{key:"componentDidUpdate",value:function(e){Je(e.location)!==Je(this.props.location)&&this.loadByRoute()}},{key:"render",value:function(){var e,t,a=this,n=this.props.decorate.detail,r=null===(e=this.props.loading)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t["decorate/fetchDetail"];return V.default.createElement("div",{style:{padding:24,height:"100%",overflow:"auto"}},V.default.createElement(X.default,{title:"方案详情",extra:V.default.createElement(Y.default,{type:"primary",onClick:function(){return a.props.dispatch(c.routerRedux.push("/myScheme"))}},"返回列表")},r?V.default.createElement("div",{style:{textAlign:"center",padding:40}},V.default.createElement(te.default,null)):n&&n.id?V.default.createElement(V.default.Fragment,null,n.cover&&V.default.createElement("div",{style:{marginBottom:20,maxWidth:600,overflow:"auto",maxHeight:500}},V.default.createElement("img",{src:n.cover,alt:n.title||"",style:{borderRadius:8,maxHeight:480,display:"block",width:"100%",objectFit:"contain"}})),V.default.createElement(ee.default,{column:2,bordered:!0},V.default.createElement(ee.default.Item,{label:"方案名称"},n.title||"--"),V.default.createElement(ee.default.Item,{label:"状态"},"draft"===n.status?V.default.createElement($.default,{color:"orange"},"草稿"):V.default.createElement($.default,{color:"blue"},"正式")),V.default.createElement(ee.default.Item,{label:"面积"},n.area?"".concat(n.area,"m²"):"--"),V.default.createElement(ee.default.Item,{label:"风格"},n.style||"--"),V.default.createElement(ee.default.Item,{label:"城市"},n.city||"--"),V.default.createElement(ee.default.Item,{label:"客户"},n.customer||"--"),V.default.createElement(ee.default.Item,{label:"版本号",span:2},n.version||"--"))):V.default.createElement("p",{style:{color:"#999"}},"未找到方案或请从列表进入")))}}])}(n.Component))||Xe,et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIdJREFUeAHt090JhiAYhmH9VhLn+dqgmqCaoNqg9tGZ7CXwJCT0IAm6rxNRHn3xTykAAAAAAL5Jl4S990MIoTsnar0ZY/ra2avsDUiRORaJpD9Za8da2ZSfyiSLNtcxOa22ZjYlewNvVXIDa2J4r5lNKfrEzrlFmn8sfPdOn8oCAAAAAAC8wwHqgWkEZK/sPgAAAABJRU5ErkJggg==",tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAArdJREFUeAHVmrFv00AUxl9DHFGQmgEhIqEOZOhAJJShDCQbDCxIrLDDv1ZYYWeLyJCILGSpBJVggSESiWgjYoa+L70Xna2LfbFd++4nfWp8OdX33b3zne9lj4qhzmqxmqx91gErUBIuWEvWgjVnzdR1LvYoO2h0m3VHKQswckY5zGQxIA1/QNEezstP1intaGRXA0dUfMPjnCpZYWsAcf2YrmK7DDAKn8liNG5QOoesY9YtKo9A3fcv6zypYpoBhEyH7IwWDe55X32eJVXaxpFS1cgTzmhim4F7rEfkDjAha0iEmqEyJmyX3OMhXbUtgslAj673MZkVtOk4XhgPIcR8i9zlpvq7mQ/6CGB4XJi0aWAhrcuFbsCHxgOEUlsuxAB6/5D8YTMKYiDrbrIqNqMgBtrkH+tOhwF5AfENGKjXyL/w0WnBQJP8pQkD1uEzGAxer1ar99BkMnlTRd0Y+3iheUoWe3384263+1IvGw6HJ71e711ZdQ0sYeCFRUVC7wRBcFsvC8PwvNFovCqrroGwRn4TWBsYj8cf4mXT6fRTmXVNIISek+X2meP1bafTeYbPo9HoY7/fPym7rsmA1SR2lCVCaEH+cgEDuc8nK2QBA3PylzkM/CZ/mcFASAkHRw6DyFnKOuCjARzLb15ocBGSX6w7XQyg8WfkD8glrJ+e+lbCp1HY5A90A76MQiSLUzN86fLKjERhJHtj2o2OyM1QQpuG8ULT8fp/1j9y74z0C+tPvHBbfkDCyJUTC4TND9MXSRkaWdyqNpGYtUzLfcEERuMulZ8nQ8x/pZQn4y5p1idU3osP9jljKijNCjCxpSeuM6TQ699YE3XPVLL81EASIUUex8si+p0sGy7k+bEHjGA0cLKd9XB4prRzw4U8BnTEDM5ZD9S1Pl9CJTwQENeI8V+UsdE6l9ZV6UBPSayUAAAAAElFTkSuQmCC",at="CreateSchemeModal-module_overlay__29e36",nt="CreateSchemeModal-module_modal__2j8FN",rt="CreateSchemeModal-module_header__3LqsJ",ot="CreateSchemeModal-module_title__3s-pp",it="CreateSchemeModal-module_closeBtn__1wg29",lt="CreateSchemeModal-module_body__2nKyz",st="CreateSchemeModal-module_bodyLeft__fYgvS",dt="CreateSchemeModal-module_bodyRight__3qPRH",ct="CreateSchemeModal-module_formRow__2htcu",ut="CreateSchemeModal-module_formRowLabel__1R5UU",mt="CreateSchemeModal-module_formRowField__208oe",pt="CreateSchemeModal-module_input__3XL1u",ft="CreateSchemeModal-module_inputError__2V-Ie",ht="CreateSchemeModal-module_error__3psxO",_t="CreateSchemeModal-module_coverBox__VPN9Z",gt="CreateSchemeModal-module_coverPreview__hVXln",vt="CreateSchemeModal-module_coverActions__1FZ_f",yt="CreateSchemeModal-module_fileInput__2rVa1",xt="CreateSchemeModal-module_section__3til5",bt="CreateSchemeModal-module_sectionTitle__3mHMd",Mt="CreateSchemeModal-module_floorPlanRow__1C7ta",wt="CreateSchemeModal-module_floorPlanCard__23xRU",St="CreateSchemeModal-module_floorPlanCardSelected__wbMHL",Tt="CreateSchemeModal-module_floorPlanImage__8WPNr",Et="CreateSchemeModal-module_floorPlanLabel__3t6Jp",Ct="CreateSchemeModal-module_inlineSuffix__ssRnk",Nt="CreateSchemeModal-module_suffix__2jYNZ",Lt="CreateSchemeModal-module_styleSelectWrap__2MVLV",kt="CreateSchemeModal-module_styleSelectTrigger__2nvF_",It="CreateSchemeModal-module_styleSelectText__1-Jrv",Pt="CreateSchemeModal-module_styleSelectArrow__3IOFw",At="CreateSchemeModal-module_styleDropdown__ixKq6",Rt="CreateSchemeModal-module_styleDropdownItem__1zhxd",Dt="CreateSchemeModal-module_styleDropdownItemActive__Z0zUd",zt="CreateSchemeModal-module_styleDesc__2oYKy",Ut="CreateSchemeModal-module_footer__3pbjX";je("@keyframes CreateSchemeModal-module_overlayIn__hjn6T{0%{opacity:0}to{opacity:1}}@keyframes CreateSchemeModal-module_modalIn__3sIkr{0%{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.CreateSchemeModal-module_overlay__29e36{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:CreateSchemeModal-module_overlayIn__hjn6T .25s ease-out forwards}.CreateSchemeModal-module_modal__2j8FN{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:1000px;border-radius:12px;overflow:visible;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:90vh;animation:CreateSchemeModal-module_modalIn__3sIkr .28s cubic-bezier(.16,1,.3,1) forwards}.CreateSchemeModal-module_header__3LqsJ{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.CreateSchemeModal-module_title__3s-pp{font-size:16px;font-weight:600;color:#000f2c}.CreateSchemeModal-module_closeBtn__1wg29{padding:4px;border:none;background:transparent;color:rgba(0,0,0,.45);cursor:pointer;font-size:16px;line-height:1}.CreateSchemeModal-module_closeBtn__1wg29:hover{color:rgba(0,0,0,.65)}.CreateSchemeModal-module_body__2nKyz{padding:24px;display:flex;align-items:flex-start;gap:32px;overflow-y:auto;flex:1}.CreateSchemeModal-module_bodyLeft__fYgvS{flex:1;min-width:0}.CreateSchemeModal-module_bodyRight__3qPRH{flex:0 0 632px;min-width:0}.CreateSchemeModal-module_formRow__2htcu{margin-bottom:16px;display:flex;align-items:flex-start}.CreateSchemeModal-module_formRowLabel__1R5UU{flex:0 0 70px;padding-right:0;line-height:40px;text-align:left;font-size:14px;color:rgba(0,15,44,.7);white-space:nowrap}.CreateSchemeModal-module_formRowField__208oe{flex:1;min-width:0;position:relative}.CreateSchemeModal-module_input__3XL1u{width:200px;height:40px;background:#f5f6f8!important;border-radius:8px;border:1px solid transparent;font-size:14px;padding:0 12px;outline:none;box-sizing:border-box}.CreateSchemeModal-module_input__3XL1u:focus,.CreateSchemeModal-module_input__3XL1u:hover{border-color:#d9d9d9;box-shadow:none}.CreateSchemeModal-module_inputError__2V-Ie{border-color:#ff4d4f!important}.CreateSchemeModal-module_error__3psxO{display:block;color:#ff4d4f;font-size:12px;margin-top:4px;line-height:1.2}.CreateSchemeModal-module_coverBox__VPN9Z{margin-bottom:0}.CreateSchemeModal-module_coverPreview__hVXln{width:200px;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50%;background-color:#f5f5f5;border-radius:10px;margin-bottom:12px}.CreateSchemeModal-module_coverActions__1FZ_f{display:flex;gap:12px}.CreateSchemeModal-module_fileInput__2rVa1{position:absolute;visibility:hidden;width:0;height:0;opacity:0;pointer-events:none}.CreateSchemeModal-module_section__3til5{margin-bottom:24px}.CreateSchemeModal-module_section__3til5:last-child{margin-bottom:0}.CreateSchemeModal-module_sectionTitle__3mHMd{font-size:14px;font-weight:600;color:#000f2c;margin-bottom:12px}.CreateSchemeModal-module_floorPlanRow__1C7ta{display:flex;gap:12px;flex-wrap:nowrap}.CreateSchemeModal-module_floorPlanCard__23xRU,.CreateSchemeModal-module_floorPlanCardSelected__wbMHL{flex:1;display:flex;flex-direction:column;align-items:stretch;padding:0;border-radius:10px;border:1px solid transparent;background:#fff;overflow:hidden;cursor:pointer;transition:all .2s;min-width:200px}.CreateSchemeModal-module_floorPlanCard__23xRU:hover{border-color:#1890ff}.CreateSchemeModal-module_floorPlanCardSelected__wbMHL{border-color:#1c2635;background:#fff}.CreateSchemeModal-module_floorPlanImage__8WPNr{width:200px;height:200px;flex-shrink:0;align-self:center;background-size:cover;background-position:50%;background-color:#fafafa;border-radius:10px 10px 0 0}.CreateSchemeModal-module_floorPlanLabel__3t6Jp{padding:10px 8px;font-size:13px;color:#000f2c;text-align:center;line-height:1.3}.CreateSchemeModal-module_floorPlanCardSelected__wbMHL .CreateSchemeModal-module_floorPlanLabel__3t6Jp{color:#1c2635;font-weight:500}.CreateSchemeModal-module_inlineSuffix__ssRnk{display:flex;align-items:center}.CreateSchemeModal-module_inlineSuffix__ssRnk .CreateSchemeModal-module_input__3XL1u{width:200px;min-width:0}.CreateSchemeModal-module_suffix__2jYNZ{flex-shrink:0;padding:0 8px;font-size:14px;color:#616778;white-space:nowrap}.CreateSchemeModal-module_styleSelectWrap__2MVLV{display:inline-block;min-width:200px}.CreateSchemeModal-module_styleSelectTrigger__2nvF_{display:flex;align-items:center;gap:8px;padding:0 12px;width:200px;height:40px;background:#f5f6f8;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:14px;color:rgba(0,0,0,.85)}.CreateSchemeModal-module_styleSelectTrigger__2nvF_:hover{border-color:#d9d9d9}.CreateSchemeModal-module_styleSelectText__1-Jrv{flex:1;text-align:left}.CreateSchemeModal-module_styleSelectArrow__3IOFw{flex-shrink:0}.CreateSchemeModal-module_styleDropdown__ixKq6{background:#fff;border:1px solid #d9d9d9;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);z-index:100;overflow:hidden}.CreateSchemeModal-module_styleDropdownItem__1zhxd{display:block;width:100%;padding:10px 12px;border:none;background:transparent;text-align:left;font-size:14px;color:rgba(0,0,0,.85);cursor:pointer}.CreateSchemeModal-module_styleDropdownItem__1zhxd:hover{background:#f5f5f5}.CreateSchemeModal-module_styleDropdownItemActive__Z0zUd{display:block;width:100%;padding:10px 12px;border:none;background:#e6f7ff;text-align:left;font-size:14px;color:#1890ff;cursor:pointer}.CreateSchemeModal-module_styleDesc__2oYKy{display:block;margin-top:8px;font-size:12px;color:#b8860b;line-height:1.4}.CreateSchemeModal-module_footer__3pbjX{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;flex-shrink:0}.CreateSchemeModal-module_deepenModal__1Skfu{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:420px;background:#fff;border-radius:12px;z-index:10000;overflow:hidden}.CreateSchemeModal-module_deepenModalHeader__1xU0g{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f0f0}.CreateSchemeModal-module_deepenModalTitle__3xtEm{font-size:16px;font-weight:600;color:#000f2c}.CreateSchemeModal-module_deepenModalBody__RsMHn{padding:40px 20px}.CreateSchemeModal-module_deepenCheckContent__1fY3L{display:flex;flex-direction:column;align-items:center;text-align:center}.CreateSchemeModal-module_deepenSpinner__2s9qn{width:48px;height:48px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:CreateSchemeModal-module_spin__TvN79 1s linear infinite;margin-bottom:16px}@keyframes CreateSchemeModal-module_spin__TvN79{to{transform:rotate(1turn)}}.CreateSchemeModal-module_deepenCheckText__C2X8p{font-size:15px;color:#000f2c;margin:0 0 8px;font-weight:500}.CreateSchemeModal-module_deepenCheckSubtext__35T0Z{font-size:13px;color:rgba(0,0,0,.45);margin:0 0 20px}.CreateSchemeModal-module_deepenSuccessIcon__2c-1u,.CreateSchemeModal-module_deepenWarningIcon__aH9fL{margin-bottom:16px}.CreateSchemeModal-module_downloadBtn__1gZm1{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 24px;height:40px;background:#1890ff;color:#fff;border-radius:8px;font-size:14px;font-weight:500;text-decoration:none;cursor:pointer;transition:background .2s}.CreateSchemeModal-module_downloadBtn__1gZm1:hover{background:#40a9ff;color:#fff}");var Bt=window.location.host,Gt=[{BASEURL:"".concat("https://3d.onewo.com","/api"),REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"test",WEBSOCKETURL:"wss://3d.onewo.com",MESERVER:"https://me.onewo.com",PRODUCTID:150,PRODUCTKEY:"P150_SZHSCPT",PLANE:"https://3d-ms-editor.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDF4XoRQc5O6aIXLzij96Yu8OEcLUucE+lMva1ywXvKVWiGlTVPiL4y6Uvy+fhNUnX9D8SbAGV8blI91j/babARt++2+CRCD9qV9b1ZUsLTbQ91FGwbg1RtMty2TqU6JEPrXdqSfwd+wGWbQsxzsnrohLEUozr3Tfr5INgn3dFmSwIDAQAB",PREVIEW:"https://ops.onewo.com"},{BASEURL:"http://3d-fat.onewo.com/api",REDIRECTURL:"http://3d-login-fat.onewo.com",SERVERS:"fat",WEBSOCKETURL:"ws://3d-fat.onewo.com",MESERVER:"http://me-fat.onewo.com",PRODUCTID:152,PRODUCTKEY:"P152_SZHSCPT",PLANE:"http://3d-ms-editor-fat.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCHjVAc2xb1z8sNKNhbBZFp1XVG//vlJIsEZfa+C8sUez7x92r2dNWt7mjXoQ7qrzXfGhF+vVqHVfYswbiHiGz26gl7hSNzOi/TaBoHOXtmqNEtyuno3otq5+RBIiml/Tp+ABTO2VQhjzDNkYQDM7suedMjnIZ6NAX8Aag/fxpuoQIDAQAB",PREVIEW:"http://3d-ms-render-fat.onewo.com"},{BASEURL:"https://3d.onewo.com/api",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",WEBSOCKETURL:"wss://3d.onewo.com",MESERVER:"https://me.onewo.com",PRODUCTID:10016,PRODUCTKEY:"P10016_SZHSCPT",PLANE:"https://3d-ms-editor.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLhOF8GIgiysc4lLw8SmeAtyaoMsSp1dsKRvCBwVy2gLI1slVdEXPb7oKhb2lGMSDFRhsNWhnJXbH7bwfGLdzQYjoXfyYiFiusgTBsLvn6wiVEa4qSU9ZMIGijfOGrP9aoZvgEPCWaBB0pNRvtVHsMA1tPy6icZ5iTPqxWmKCESwIDAQAB",PREVIEW:"https://ops.onewo.com"}];function Ft(){switch(Bt){case"3d.onewo.com":return Gt[2];case"3d-fat.onewo.com":return Gt[1];default:return Gt[0]}}var Ot=function(e){var t=RegExp("(^| )".concat(e,"=([^;]*)(;|$)")),a=document.cookie.match(t);return a?decodeURIComponent(a[2]):null},Ht=function(e){try{e=JSON.stringify(e)}catch(t){console.log("JSON.stringify Error"),e=""}return e},Vt=function(e){try{e=JSON.parse(e)}catch(t){console.log("JSON.parse Error"),e=""}return e},jt=Ot("accesstoken"),Wt=function(e){e=e||12;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="",n=0;e>n;n++)a+=t.charAt(Math.floor(48*Math.random()));return a}(12),qt=(new Date).getTime(),Kt=""+se.default(Ot("username")||""),Xt=""+de.default(Wt+Kt+qt+jt),Yt=le.default.create({baseURL:Ft().BASEURL});function Zt(e){if(null==e)return e;if("undefined"!=typeof Blob&&e instanceof Blob)return e;if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return e;if("object"===He(e)){if(Array.isArray(e))return e.map(function(e){return Zt(e)});var t={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var n=e[a];t[a]=(/^(id|ids?)$/i.test(a)||/[iI]d$/.test(a)||/_id$/i.test(a))&&"number"==typeof n&&!Number.isSafeInteger(n)?n+"":Zt(n)}return t}return e}function Qt(){return Jt.apply(this,arguments)}function Jt(){return Jt=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/brandList",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Jt.apply(this,arguments)}function $t(){return ea.apply(this,arguments)}function ea(){return ea=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/selfSchemePage",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ea.apply(this,arguments)}function ta(){return aa.apply(this,arguments)}function aa(){return aa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/save",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),aa.apply(this,arguments)}function na(){return ra.apply(this,arguments)}function ra(){return ra=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/deleteScheme",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ra.apply(this,arguments)}function oa(){return ia.apply(this,arguments)}function ia(){return ia=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/schemeInfo",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ia.apply(this,arguments)}function la(){return sa.apply(this,arguments)}function sa(){return sa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/versionList",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),sa.apply(this,arguments)}function da(){return ca.apply(this,arguments)}function ca(){return ca=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt(Re({url:"/vbim-file-server/file/uploadFile_mult",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}},t.length>1&&void 0!==t[1]?t[1]:{})))},e)})),ca.apply(this,arguments)}function ua(){return ma.apply(this,arguments)}function ma(){return ma=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt(Re({url:"/vbim-file-server/file/batchUploadFile",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}},t.length>1&&void 0!==t[1]?t[1]:{})))},e)})),ma.apply(this,arguments)}function pa(){return fa.apply(this,arguments)}function fa(){return fa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/classifyList",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),fa.apply(this,arguments)}function ha(){return _a.apply(this,arguments)}function _a(){return _a=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/materialPage",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),_a.apply(this,arguments)}function ga(){return va.apply(this,arguments)}function va(){return va=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/saveMaterial",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),va.apply(this,arguments)}function ya(){return xa.apply(this,arguments)}function xa(){return xa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/deleteMaterial",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),xa.apply(this,arguments)}Yt.defaults.transformResponse=[function(e){if("string"!=typeof e)return e;var t=e.replace(/"((?:[A-Za-z0-9_]*[iI]d|id))":(\d{16,})/g,'"$1":"$2"');try{return JSON.parse(t)}catch(t){return e}}],Yt.interceptors.request.use(function(e){var t=JSON.parse(sessionStorage.getItem("projectData"));return t&&t.projectId&&(e.headers.projectId=t.projectId),e.headers["Access-Control-Allow-Origin"]="*",e.headers["Cache-Control"]="no-cache",e.headers.Authorization=jt,e.headers.echostr=Wt,e.headers.nonce=Kt,e.headers.signature=Xt,e.headers.timestamp=qt,e},function(e){return Promise.reject(e)}),Yt.interceptors.response.use(function(e){if(401===e.data.code||1005===e.data.code||1007===e.data.code||1008===e.data.code||1009===e.data.code){var t=window.location.href,a=encodeURIComponent(t);window.location.href="".concat(Ft().REDIRECTURL,"?redirect_url=").concat(a)}return e.data&&(e.data=Zt(e.data)),e},function(e){return Promise.reject(e)});var ba=["https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/54cabb0c2a9fbdc136947aa728b4fbbc.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/ef5e43819f68f3683b6a894582e585cf.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/43943379a720cb460e50d746952db2db.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/8ca744bd91a2aa2c90b5516a8d5a1840.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/16caa8dedde261c7e14431768f15b250.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/01572825cb837ac584bad870ab5abdff.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/992a1c24ad73f382bcd3a6a7b3c188e4.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/ea3d8ad34af341b3e450c58712f97390.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/e0cd84de458bb6bcc8202fa37c74af8b.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/056390444419e4aaece058db2d33674a.png"],Ma=function(){return ba[Math.floor(Math.random()*ba.length)]},wa=[{id:"79",houseType:1,label:"79m² | 两室一厅一卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/6b75d4a8ba8dc32d8b1baa85c22a3ef1.png"},{id:"116",houseType:2,label:"116m² | 三室一厅两卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/2fd28d55d756bc712865c551bdc1540c.png"},{id:"160",houseType:3,label:"160m² | 四室两厅两卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/65537d534151c3e9c50ebf7c15fe9503.png"}],Sa=[{value:"现代简约",label:"现代简约",desc:"干净、少造型、重线条,配色中性,好打理、受众最广。"},{value:"轻奢风",label:"轻奢风",desc:"现代 + 精致金属、石材、玻璃,高级感强,适合多数户型。"},{value:"北欧风",label:"北欧风",desc:"浅木色、大白墙、温馨明亮,小户型显大。"},{value:"新中式",label:"新中式",desc:"东方意境 + 现代简化,沉稳大气,不老旧。"},{value:"日式原木风",label:"日式原木风",desc:"原木、收纳强、极简温馨,适合喜欢安静舒适的家庭。"}],Ta=function(e){var t=e.visible,a=e.onCancel,r=e.onOk,o=Ge(n.useState("116"),2),i=o[0],l=o[1],s=Ge(n.useState(Ma),2),d=s[0],c=s[1],u=Ge(n.useState("现代简约"),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=n.useRef(null),v=n.useRef(null),y=Ge(n.useState({top:0,left:0,width:200}),2),x=y[0],b=y[1],M=Ge(n.useState(!1),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState(""),2),k=L[0],I=L[1],P=Ge(n.useState(""),2),A=P[0],R=P[1],D=Ge(n.useState(""),2),z=D[0],U=D[1],B=Ge(n.useState({}),2),G=B[0],F=B[1],H=Ge(n.useState({}),2),j=H[0],W=H[1];n.useEffect(function(){t&&(l("116"),c(Ma()),p("现代简约"),_(!1),N(""),I(""),R(""),U(""),F({}),W({}))},[t]),n.useEffect(function(){if(t){var e=function(e){e.target.closest(".".concat(Lt))||_(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[t]);var q=function(){var e={};return C.trim()||(e.title="请输入方案名称"),k.trim()||(e.customer="请输入姓名"),A.trim()||(e.city="请输入城市"),F(e),0===Object.keys(e).length},K=function(e){var t;if(console.log("[Deepen] handleOk called, action:",e),W({title:!0,customer:!0,city:!0}),q()){console.log("[Deepen] validate passed");var a={title:C.trim(),customer:k.trim(),city:A.trim(),style:m,budget:z,cover:d,houseType:(null===(t=wa.find(function(e){return e.id===i}))||void 0===t?void 0:t.houseType)||2,versionType:2,saveAndDeepen:"saveAndDeepen"===e};"saveAndDeepen"===e?(console.log("[Deepen] saveAndDeepen path"),r&&r(Re(Re({},a),{},{saveAndDeepen:!0}))):r&&r(a)}else console.log("[Deepen] validate failed")},X=function(e){W(function(t){return Re(Re({},t),{},Ne({},e,!0))}),q()},Z=function(){var e=we(ze().m(function e(t){var a,n,r,o,i,l,s,d,u,m,p,f,h;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if((r=null==t||null===(a=t.target)||void 0===a||null===(n=a.files)||void 0===n?void 0:n[0])&&r.type.startsWith("image/")){e.n=1;break}return e.a(2);case 1:return(o=new FormData).append("file",r),T(!0),e.p=2,e.n=3,da(o);case 3:if((p=e.v)&&p.data){e.n=4;break}return O.default.error("上传失败:响应为空"),e.a(2);case 4:h=(null==(f=p.data)||null===(i=f.value)||void 0===i?void 0:i.fileAccessUrl)||(null==f||null===(l=f.value)||void 0===l?void 0:l.compressImageUrl)||(null==f||null===(s=f.value)||void 0===s?void 0:s.fileUrl)||(null==f||null===(d=f.value)||void 0===d?void 0:d.url)||(null==f||null===(u=f.data)||void 0===u?void 0:u.fileUrl)||(null==f||null===(m=f.data)||void 0===m?void 0:m.url)||(null==f?void 0:f.fileUrl)||(null==f?void 0:f.url),200===(null==f?void 0:f.code)&&h?(c(h),O.default.success("上传成功")):O.default.error((null==f?void 0:f.message)||"上传失败"),e.n=6;break;case 5:e.p=5,console.error("上传失败",e.v),O.default.error("上传失败");case 6:return e.p=6,T(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(t){return e.apply(this,arguments)}}(),Q=Sa.find(function(e){return e.value===m})||Sa[0];return t?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:at,onClick:a}),V.default.createElement("div",{className:nt},V.default.createElement("div",{className:rt},V.default.createElement("span",{className:ot},"创建方案基本信息"),V.default.createElement("button",{type:"button",className:it,onClick:a,"aria-label":"关闭"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:lt},V.default.createElement("div",{className:st},V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"方案名称"),V.default.createElement("div",{className:mt},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.title&&G.title?ft:""),placeholder:"请输入方案名称",value:C,onChange:function(e){N(e.target.value),j.title&&q()},onBlur:function(){return X("title")}}),j.title&&G.title&&V.default.createElement("span",{className:ht},G.title))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"封面图"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:_t},V.default.createElement("div",{className:gt,style:{backgroundImage:"url(".concat(d,")")}}),V.default.createElement("div",{className:vt},V.default.createElement("input",{ref:g,type:"file",accept:"image/*",className:yt,onChange:Z}),V.default.createElement(Y.default,{size:"small",icon:V.default.createElement(S.UploadOutlined,null),loading:w,onClick:function(){var e;return null===(e=g.current)||void 0===e?void 0:e.click()}},"自行替换"),V.default.createElement(Y.default,{size:"small",onClick:function(){c(ba[Math.floor(Math.random()*ba.length)])}},"换一张")))))),V.default.createElement("div",{className:dt},V.default.createElement("div",{className:xt},V.default.createElement("div",{className:bt},"选择基础户型"),V.default.createElement("div",{className:Mt},wa.map(function(e){return V.default.createElement("button",{key:e.id,type:"button",className:i===e.id?St:wt,onClick:function(){return l(e.id)}},V.default.createElement("div",{className:Tt,style:{backgroundImage:e.image?"url(".concat(e.image,")"):void 0}}),V.default.createElement("span",{className:Et},e.label))}))),V.default.createElement("div",{className:xt},V.default.createElement("div",{className:bt},"客户基本信息"),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"客户姓名"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Ct},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.customer&&G.customer?ft:""),placeholder:"请输入姓名",value:k,onChange:function(e){I(e.target.value),j.customer&&q()},onBlur:function(){return X("customer")}}),V.default.createElement("span",{className:Nt},"先生/女士")),j.customer&&G.customer&&V.default.createElement("span",{className:ht},G.customer))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"城市"),V.default.createElement("div",{className:mt},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.city&&G.city?ft:""),placeholder:"请输入你的城市",value:A,onChange:function(e){R(e.target.value),j.city&&q()},onBlur:function(){return X("city")}}),j.city&&G.city&&V.default.createElement("span",{className:ht},G.city))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"方案风格"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Lt},V.default.createElement("button",{ref:v,type:"button",className:kt,onClick:function(){if(v.current){var e=v.current.getBoundingClientRect();b({top:e.bottom+4,left:e.left,width:e.width})}_(function(e){return!e})}},V.default.createElement("span",{className:It},m),V.default.createElement("span",{className:Pt},V.default.createElement("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},V.default.createElement("path",{d:"M1 1L5 5L9 1",stroke:"#616778",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),h&&V.default.createElement("div",{className:At,style:{position:"fixed",width:x.width}},Sa.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",className:m===e.value?Dt:Rt,onClick:function(){p(e.value),_(!1)}},e.label)})),V.default.createElement("span",{className:zt},Q.desc)))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"装修预算"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Ct},V.default.createElement("input",{type:"number",className:pt,placeholder:"请输入你的预算",value:z,onChange:function(e){return U(e.target.value)},min:0}),V.default.createElement("span",{className:Nt},"元"))))))),V.default.createElement("div",{className:Ut},V.default.createElement(Y.default,{onClick:a},"取消"),V.default.createElement(Y.default,{onClick:function(){return K("save")}},"保存"),V.default.createElement(Y.default,{type:"primary",onClick:function(){return K("saveAndDeepen")}},"保存并深化")))):null},Ea="HistoryVersionModal-module_overlay__2QPpm",Ca="HistoryVersionModal-module_modal__31a1W",Na="HistoryVersionModal-module_header__3KHmi",La="HistoryVersionModal-module_titleRow__2KiP7",ka="HistoryVersionModal-module_title__3bdlR",Ia="HistoryVersionModal-module_subtitle__1QIfk",Pa="HistoryVersionModal-module_closeBtn__2PxAS",Aa="HistoryVersionModal-module_tabs__R9l_g",Ra="HistoryVersionModal-module_tabsInner__1EMNE",Da="HistoryVersionModal-module_tab__2EQlu",za="HistoryVersionModal-module_tabActive__jncIN",Ua="HistoryVersionModal-module_body__22n__",Ba="HistoryVersionModal-module_listWrap__3JPBb",Ga="HistoryVersionModal-module_loadingWrap__2-mqW",Fa="HistoryVersionModal-module_empty__75bmp",Oa="HistoryVersionModal-module_radioGroup__3P3iu",Ha="HistoryVersionModal-module_versionItem__3f3B6",Va="HistoryVersionModal-module_versionItemActive__yKzxo",ja="HistoryVersionModal-module_radio__3Gvtf",Wa="HistoryVersionModal-module_versionText__3o7Er",qa="HistoryVersionModal-module_tagAuto__2hTT_",Ka="HistoryVersionModal-module_tagManual__2Zoyr",Xa="HistoryVersionModal-module_footer__3x3B0";je("@keyframes HistoryVersionModal-module_overlayIn__12cZH{0%{opacity:0}to{opacity:1}}@keyframes HistoryVersionModal-module_modalIn__11WM4{0%{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.HistoryVersionModal-module_overlay__2QPpm{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:HistoryVersionModal-module_overlayIn__12cZH .25s ease-out forwards}.HistoryVersionModal-module_modal__31a1W{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:366px;border-radius:12px;overflow:hidden;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:90vh;animation:HistoryVersionModal-module_modalIn__11WM4 .28s cubic-bezier(.16,1,.3,1) forwards}.HistoryVersionModal-module_header__3KHmi{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.HistoryVersionModal-module_titleRow__2KiP7{display:flex;align-items:baseline;gap:8px}.HistoryVersionModal-module_title__3bdlR{font-size:16px;font-weight:600;color:#000f2c}.HistoryVersionModal-module_subtitle__1QIfk{font-size:12px;color:rgba(0,0,0,.45)}.HistoryVersionModal-module_closeBtn__2PxAS{padding:4px;border:none;background:transparent;color:rgba(0,0,0,.45);cursor:pointer;font-size:16px;line-height:1}.HistoryVersionModal-module_closeBtn__2PxAS:hover{color:rgba(0,0,0,.65)}.HistoryVersionModal-module_tabs__R9l_g{display:flex;padding:12px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.HistoryVersionModal-module_tabsInner__1EMNE{background:#f5f5f5;border-radius:6px;padding:4px}.HistoryVersionModal-module_tab__2EQlu,.HistoryVersionModal-module_tabActive__jncIN{flex:1;padding:5px 12px;font-size:14px;border:none;cursor:pointer;border-radius:3px;transition:all .2s;font-weight:400}.HistoryVersionModal-module_tab__2EQlu{background:transparent;color:#4a4a4a;border-right:1px solid #e8e8e8}.HistoryVersionModal-module_tab__2EQlu:last-child{border-right:none}.HistoryVersionModal-module_tab__2EQlu:hover{color:#1890ff}.HistoryVersionModal-module_tabActive__jncIN{background:#fff;color:#1890ff;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.06);border-right:none}.HistoryVersionModal-module_body__22n__{height:652px;display:flex;flex-direction:column;overflow:hidden}.HistoryVersionModal-module_listWrap__3JPBb{flex:1;min-height:0;padding:16px 24px;overflow-y:auto}.HistoryVersionModal-module_loadingWrap__2-mqW{display:flex;justify-content:center;align-items:center;min-height:180px}.HistoryVersionModal-module_empty__75bmp{padding:40px 0}.HistoryVersionModal-module_radioGroup__3P3iu{display:flex;flex-direction:column;gap:8px;width:100%}.HistoryVersionModal-module_radioGroup__3P3iu .ant-radio-group{display:flex;flex-direction:column}.HistoryVersionModal-module_versionItem__3f3B6,.HistoryVersionModal-module_versionItemActive__yKzxo{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f5f5f5;border-radius:8px;cursor:pointer;transition:background .2s}.HistoryVersionModal-module_versionItem__3f3B6:hover{background:#eee}.HistoryVersionModal-module_versionItemActive__yKzxo{background:#e6f4ff}.HistoryVersionModal-module_radio__3Gvtf{flex-shrink:0}.HistoryVersionModal-module_radio__3Gvtf .ant-radio-inner{width:16px;height:16px}.HistoryVersionModal-module_versionText__3o7Er{flex:1;font-size:14px;color:#000f2c;min-width:0}.HistoryVersionModal-module_tagAuto__2hTT_,.HistoryVersionModal-module_tagManual__2Zoyr{flex-shrink:0;padding:2px 10px;font-size:12px;border-radius:4px;border:1px solid}.HistoryVersionModal-module_tagAuto__2hTT_{color:#1890ff;border-color:#1890ff}.HistoryVersionModal-module_tagManual__2Zoyr{color:#52c41a;border-color:#52c41a}.HistoryVersionModal-module_footer__3x3B0{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;background:#fff;flex-shrink:0}");var Ya,Za=[{key:"today",label:"今天"},{key:"yesterday",label:"昨天"},{key:"earlier",label:"更早"}],Qa=a.connect(function(e){return{versionList:e.decorate.versionList,loading:e.loading.effects["decorate/fetchVersionList"]}})(function(e){var t=e.visible,a=e.schemeId,r=e.onCancel,o=e.onOpen,i=e.versionList,l=e.loading,s=e.dispatch,d=Ge(n.useState("today"),2),c=d[0],u=d[1],m=Ge(n.useState(null),2),p=m[0],f=m[1];n.useEffect(function(){t&&a&&s({type:"decorate/fetchVersionList",payload:{schemeId:a,condition:c}})},[t,a,c,s]),n.useEffect(function(){t&&(u("today"),f(null))},[t]),n.useEffect(function(){var e;(null==i?void 0:i.length)&&!p?f(null===(e=i[0])||void 0===e?void 0:e.id):(null==i?void 0:i.length)||f(null)},[i,p]);return t?V.default.createElement("div",{className:Ea},V.default.createElement("div",{className:Ca},V.default.createElement("div",{className:Na},V.default.createElement("div",{className:La},V.default.createElement("span",{className:ka},"历史版本"),V.default.createElement("span",{className:Ia},"每5分钟自动保存")),V.default.createElement("button",{type:"button",className:Pa,onClick:r,"aria-label":"关闭"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Ua},V.default.createElement("div",{className:Aa},V.default.createElement("div",{className:Ra},Za.map(function(e){return V.default.createElement("button",{key:e.key,type:"button",className:c===e.key?za:Da,onClick:function(){return u(e.key),void f(null)}},e.label)}))),V.default.createElement("div",{className:Ba},l?V.default.createElement("div",{className:Ga},V.default.createElement(te.default,{tip:"加载中..."})):(null==i?void 0:i.length)?V.default.createElement(ce.default.Group,{value:p,onChange:function(e){return f(e.target.value)},className:Oa},i.map(function(e){return V.default.createElement("div",{key:e.id,className:p===e.id?Va:Ha},V.default.createElement(ce.default,{value:e.id,className:ja}),V.default.createElement("span",{className:Wa},e.version),V.default.createElement("span",{className:1===e.versionType?qa:Ka},1===e.versionType?"自动":"手动"))})):V.default.createElement(re.default,{description:"暂无历史版本",className:Fa}))),V.default.createElement("div",{className:Xa},V.default.createElement(Y.default,{onClick:r},"取消"),V.default.createElement(Y.default,{type:"primary",onClick:function(){var e=null==i?void 0:i.find(function(e){return e.id===p});e&&(o&&o({schemeId:a,version:e.version,id:e.id}),r&&r())},disabled:!p||!(null==i?void 0:i.length)},"打开")))):null}),Ja="decorateList-module_page__1YdY7",$a="decorateList-module_toolbar__342m2",en="decorateList-module_pageTitle__mOH7H",tn="decorateList-module_listWrapper__3KM5i",an="decorateList-module_toolbarRight__3THOm",nn="decorateList-module_btnNewScheme__3rAsP",rn="decorateList-module_loadingWrap__1qOpS",on="decorateList-module_empty__TYalu",ln="decorateList-module_pagination__2--8-",sn="decorateList-module_schemeCard___LbgW",dn="decorateList-module_coverWrap__3Opei",cn="decorateList-module_cover__1miEK",un="decorateList-module_cardCol__3r2HC",mn="decorateList-module_cardTitle__1XOOv",pn="decorateList-module_titleTooltip__1729f",fn="decorateList-module_meta__2nWBq",hn="decorateList-module_version__2r20D",_n="decorateList-module_cardActions__21ujs",gn="decorateList-module_btnDetail__s9Wej",vn="decorateList-module_btnMore__2zZKw",yn="decorateList-module_btnMoreIcon__2O7fD",xn="decorateList-module_moreDropdown__lRODY",bn="decorateList-module_moreDropdownItem__1n9uF",Mn="decorateList-module_overlay__aOZvH",wn="decorateList-module_deepenModal__RL9Ad",Sn="decorateList-module_deepenModalHeader__S3OGA",Tn="decorateList-module_deepenModalTitle__3Hhkj",En="decorateList-module_deepenModalBody__5rDbW",Cn="decorateList-module_deepenCheckContent__2ILP1",Nn="decorateList-module_deepenSpinner__18Uj7",Ln="decorateList-module_deepenCheckText__1Poah",kn="decorateList-module_deepenCheckSubtext__1hWcB",In="decorateList-module_deepenSuccessIcon__2Ncb7",Pn="decorateList-module_deepenWarningIcon__3Ctcn",An="decorateList-module_downloadBtn__YKTL-",Rn="decorateList-module_closeBtn__1dYyd";je(".decorateList-module_page__1YdY7{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}@keyframes decorateList-module_dropdownOpen__2OOIV{0%{opacity:0;transform:scale(.92) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.decorateList-module_toolbar__342m2{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;background-color:#fff;padding:11px 16px}.decorateList-module_pageTitle__mOH7H{margin:0!important;font-family:PingFang SC;font-weight:500;font-style:Medium;font-size:14px;line-height:22px;letter-spacing:0;color:#000f2c}.decorateList-module_listWrapper__3KM5i{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));align-content:flex-start;gap:20px;padding:24px;background:#f5f5f7;overflow-y:auto}.decorateList-module_toolbarRight__3THOm{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.decorateList-module_btnNewScheme__3rAsP{height:32px;padding:0 16px!important;border-radius:6px!important;font-size:14px;font-weight:400;background:#1890ff!important;border:none!important;box-shadow:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px}.decorateList-module_btnNewScheme__3rAsP:focus,.decorateList-module_btnNewScheme__3rAsP:hover{background:#40a9ff!important;border:none!important;color:#fff!important}.decorateList-module_loadingWrap__1qOpS{display:flex;align-items:center;justify-content:center;min-height:300px}.decorateList-module_empty__TYalu,.decorateList-module_loading__29H7Q{margin-top:80px}.decorateList-module_pagination__2--8-{flex-shrink:0;display:flex;justify-content:flex-end;padding:12px 24px;background:#f5f5f7;overflow:visible}.decorateList-module_schemeCard___LbgW{width:100%;border-radius:16px;overflow:visible;box-shadow:0 2px 12px rgba(0,0,0,.06);border:1px solid #f0f0f0}.decorateList-module_schemeCard___LbgW .ant-card-body{padding:0}.decorateList-module_coverWrap__3Opei{position:relative;width:100%;padding-bottom:100%;height:0;overflow:hidden;background:#f5f5f5;border-radius:14px}.decorateList-module_cover__1miEK{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block;border-radius:14px}.decorateList-module_cardCol__3r2HC{min-width:0;position:relative}.decorateList-module_cardTitle__1XOOv{margin:8px 0 6px!important;font-size:14px!important;line-height:1.35!important;padding:0 10px}.decorateList-module_titleTooltip__1729f .ant-tooltip-arrow,.decorateList-module_titleTooltip__1729f .ant-tooltip-arrow-content{display:none!important}.decorateList-module_titleTooltip__1729f .ant-tooltip-inner{max-width:212px;margin-top:-4px;background:#fff;color:rgba(0,15,44,.85);border-radius:14px;box-shadow:0 4px 12px rgba(0,0,0,.12);border:1px solid #f0f0f0}.decorateList-module_meta__2nWBq{font-size:12px;margin-bottom:4px;line-height:1.4;padding:0 10px}.decorateList-module_version__2r20D{font-size:11px;color:#8c8c8c;padding:0 10px}.decorateList-module_cardActions__21ujs{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px}.decorateList-module_btnDetail__s9Wej{width:82px;height:32px;border-radius:8px!important;padding:0!important}.decorateList-module_btnMore__2zZKw{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;line-height:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateList-module_btnMoreIcon__2O7fD{display:block;width:24px;height:24px;-o-object-fit:contain;object-fit:contain}.decorateList-module_moreDropdown__lRODY{position:absolute;right:0;top:100%;margin-top:6px;background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);border:1px solid #e8e8e8;padding:6px;min-width:112px;z-index:9991;transform-origin:top right;animation:decorateList-module_dropdownOpen__2OOIV .2s ease-out forwards}.decorateList-module_moreDropdownItem__1n9uF{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:14px;font-weight:400;border-radius:8px;margin:0;padding:8px 12px;cursor:pointer}.decorateList-module_moreDropdownItem__1n9uF:hover{background:#f5f5f5;color:#1c2635;font-weight:600}.decorateList-module_overlay__aOZvH{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:9999;animation:decorateList-module_overlayIn__24ndP .25s ease-out forwards}@keyframes decorateList-module_overlayIn__24ndP{0%{opacity:0}to{opacity:1}}.decorateList-module_deepenModal__RL9Ad{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:420px;background:#fff;border-radius:12px;z-index:10000;overflow:hidden}.decorateList-module_deepenModalHeader__S3OGA{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f0f0}.decorateList-module_deepenModalTitle__3Hhkj{font-size:16px;font-weight:600;color:#000f2c}.decorateList-module_deepenModalBody__5rDbW{padding:40px 20px}.decorateList-module_deepenCheckContent__2ILP1{display:flex;flex-direction:column;align-items:center;text-align:center}.decorateList-module_deepenSpinner__18Uj7{width:48px;height:48px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:decorateList-module_spin__2dOML .8s linear infinite;margin-bottom:16px}@keyframes decorateList-module_spin__2dOML{to{transform:rotate(1turn)}}.decorateList-module_deepenCheckText__1Poah{font-size:16px;font-weight:500;color:#000f2c;margin:0 0 8px}.decorateList-module_deepenCheckSubtext__1hWcB{font-size:14px;color:#616778;margin:0 0 20px}.decorateList-module_deepenSuccessIcon__2Ncb7,.decorateList-module_deepenWarningIcon__3Ctcn{margin-bottom:16px}.decorateList-module_downloadBtn__YKTL-{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 20px;background:#1890ff;color:#fff;border-radius:6px;font-size:14px;text-decoration:none}.decorateList-module_downloadBtn__YKTL-:hover{background:#40a9ff;color:#fff}.decorateList-module_closeBtn__1dYyd{background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;color:#8c8c8c;border-radius:4px}.decorateList-module_closeBtn__1dYyd:hover{background:#f5f5f5;color:#1c2635}");var Dn=ie.default.Title,zn=ie.default.Text,Un=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={checking:!0},e}return Ie(t,e),Ce(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.props.visible&&!e.visible&&(this.setState({checking:!0}),setTimeout(function(){t.setState({checking:!1})},1500))}},{key:"render",value:function(){var e=this.props,t=e.onClose,a=e.hasClient,n=this.state.checking;return e.visible?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Mn,onClick:t}),V.default.createElement("div",{className:wn},V.default.createElement("div",{className:Sn},V.default.createElement("span",{className:Tn},"客户端检测"),V.default.createElement("button",{type:"button",className:Rn,onClick:t},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:En},n?V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:Nn}),V.default.createElement("p",{className:Ln},"正在检测本地客户端...")):a?V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:In},V.default.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},V.default.createElement("circle",{cx:"24",cy:"24",r:"24",fill:"#52C41A",fillOpacity:"0.1"}),V.default.createElement("path",{d:"M20 24L22 26L28 20",stroke:"#52C41A",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}))),V.default.createElement("p",{className:Ln},"检测到本地客户端,正在调起...")):V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:Pn},V.default.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},V.default.createElement("circle",{cx:"24",cy:"24",r:"24",fill:"#FAAD14",fillOpacity:"0.1"}),V.default.createElement("path",{d:"M24 14V26",stroke:"#FAAD14",strokeWidth:"2.5",strokeLinecap:"round"}),V.default.createElement("circle",{cx:"24",cy:"32",r:"1.5",fill:"#FAAD14"}))),V.default.createElement("p",{className:Ln},"未检测到本地客户端"),V.default.createElement("p",{className:kn},"请下载并安装本地客户端"),V.default.createElement("a",{href:"https://placeholder-download-url.com/deepen-client",className:An,target:"_blank",rel:"noopener noreferrer"},V.default.createElement(S.DownloadOutlined,null),"下载客户端"))))):null}}])}(V.default.Component),Bn=a.connect(function(e){return{decorate:e.decorate,loading:e.loading.effects["decorate/fetchList"]}})(Ya=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={createModalVisible:!1,historyModalVisible:!1,historyModalRecord:null,moreDropdownOpenId:null,current:1,pageSize:50,deepenModalVisible:!1,deepenClientInstalled:!1},e.handleDocClick=function(t){t.target.closest(".".concat(_n))||e.setState({moreDropdownOpenId:null})},e.fetchList=function(){var t=e.state;(0,e.props.dispatch)({type:"decorate/fetchList",payload:{pageNo:t.current,pageSize:t.pageSize}}).catch(function(e){O.default.error((null==e?void 0:e.message)||"获取列表失败")})},e.handlePageChange=function(t,a){e.setState({current:t,pageSize:a},e.fetchList)},e.handleNewScheme=function(){console.log("handleNewScheme called, state before:",e.state.createModalVisible),e.setState({createModalVisible:!0},function(){console.log("createModalVisible after setState:",e.state.createModalVisible)})},e.pendingDeepenId=null,e.handleCreateSchemeOk=function(t){var a=e.props.dispatch,n=t&&t.saveAndDeepen;e.setState({createModalVisible:!1}),a({type:"decorate/createScheme",payload:t}).then(function(t){O.default.success("方案已创建"),e.fetchList(),n&&e.setState({deepenModalVisible:!0,deepenClientInstalled:!1})}).catch(function(e){O.default.error((null==e?void 0:e.message)||"方案创建失败")})},e.handleDetail=function(t){var a=t.version&&"--"!==t.version?t.version:"",n="id=".concat(encodeURIComponent(t.id)),r=a?"/decorateDetail?".concat(n,"&version=").concat(encodeURIComponent(a)):"/decorateDetail?".concat(n);e.props.dispatch(c.routerRedux.push(r))},e.handleMenuClick=function(t,a){var n=a.key,r=e.props.dispatch;"delete"===n?oe.default.confirm({title:"确认删除该方案?",content:t.title,okText:"删除",okType:"danger",cancelText:"取消",onOk:function(){r({type:"decorate/deleteScheme",payload:{schemeId:t.id}}).then(function(){O.default.success("已删除"),e.fetchList()}).catch(function(e){O.default.error((null==e?void 0:e.message)||"删除失败")})}}):"copy"===n?r({type:"decorate/copyScheme",payload:{id:t.id}}).then(function(){O.default.success("副本已创建")}).catch(function(e){O.default.error((null==e?void 0:e.message)||"创建副本失败")}):"history"===n&&e.setState({historyModalVisible:!0,historyModalRecord:t})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.fetchList(),document.addEventListener("click",this.handleDocClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocClick)}},{key:"componentDidUpdate",value:function(e){this.pendingDeepenId&&this.props.decorate.lastCreatedId&&this.props.decorate.lastCreatedId!==e.decorate.lastCreatedId&&(this.pendingDeepenId=null,this.props.dispatch(c.routerRedux.push("/decorateDetail?id=".concat(encodeURIComponent(this.props.decorate.lastCreatedId)))))}},{key:"render",value:function(){var e,t=this,a=this.props.decorate,n=a.list,r=a.total,o=this.props.loading,i=this.state,l=i.current,s=i.pageSize;return V.default.createElement("div",{className:Ja},V.default.createElement("div",{className:$a},V.default.createElement(Dn,{level:4,className:en},"我的设计方案"),V.default.createElement("div",{className:an},V.default.createElement(Y.default,{type:"primary",className:nn,onClick:this.handleNewScheme},V.default.createElement(S.PlusOutlined,null),"开启新方案"))),o&&!n.length?V.default.createElement("div",{className:rn},V.default.createElement(te.default,{size:"large"})):0===n.length?V.default.createElement(re.default,{className:on,description:"暂无方案,点击「开启新方案」开始"}):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:tn},n.map(function(e){return V.default.createElement("div",{key:e.id,className:un},V.default.createElement(X.default,{className:sn,hoverable:!0,cover:V.default.createElement("div",{className:dn},V.default.createElement("img",{alt:e.title,src:e.cover,className:cn,onError:function(e){e.target.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="400" height="240" fill="#e8e8e8"><rect width="100%" height="100%"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="#999" font-size="14">预览图</text></svg>')}}))},V.default.createElement(ne.default,{title:e.title,placement:"bottom",overlayClassName:pn},V.default.createElement(Dn,{level:5,className:mn,ellipsis:!0},e.title)),V.default.createElement("div",{className:fn},V.default.createElement(zn,{type:"secondary"},e.area," | ",e.style)),V.default.createElement("div",{className:fn},V.default.createElement(zn,{type:"secondary"},e.city," - ",e.customer)),V.default.createElement("div",{className:hn},e.version),V.default.createElement("div",{className:_n},V.default.createElement(Y.default,{type:"primary",ghost:!0,size:"small",className:gn,onClick:function(){return t.handleDetail(e)}},"查看详情"),V.default.createElement("span",{className:vn,role:"button",tabIndex:0},V.default.createElement("img",{src:t.state.moreDropdownOpenId===e.id?tt:et,alt:"",width:24,height:24,className:yn,draggable:!1,onClick:function(a){a.stopPropagation(),t.setState({moreDropdownOpenId:t.state.moreDropdownOpenId===e.id?null:e.id})}})),t.state.moreDropdownOpenId===e.id&&V.default.createElement("div",{className:xn},V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"delete"})}},"删除"),V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"copy"})}},"创建副本"),V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"history"})}},"历史版本")))))})),V.default.createElement("div",{className:ln},V.default.createElement(ae.default,{current:l,pageSize:s,total:r,onChange:this.handlePageChange,onShowSizeChange:this.handlePageChange,pageSizeOptions:[50,100,200],showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条")}}))),V.default.createElement(Ta,{visible:this.state.createModalVisible,onCancel:function(){return t.setState({createModalVisible:!1})},onOk:this.handleCreateSchemeOk}),V.default.createElement(Qa,{visible:this.state.historyModalVisible,schemeId:null===(e=this.state.historyModalRecord)||void 0===e?void 0:e.id,onCancel:function(){return t.setState({historyModalVisible:!1,historyModalRecord:null})},onOpen:function(e){var a=e.version,n="id=".concat(encodeURIComponent(e.schemeId)),r=a?"/decorateDetail?".concat(n,"&version=").concat(encodeURIComponent(a)):"/decorateDetail?".concat(n);t.props.dispatch(c.routerRedux.push(r))}}),V.default.createElement(Un,{visible:this.state.deepenModalVisible,onClose:function(){return t.setState({deepenModalVisible:!1})},hasClient:this.state.deepenClientInstalled}))}}])}(n.Component))||Ya,Gn={overlay:"MaterialUploadModal-module_overlay__45gB7",overlayIn:"MaterialUploadModal-module_overlayIn__3BdRq",modal:"MaterialUploadModal-module_modal__xuwMo",modalIn:"MaterialUploadModal-module_modalIn__1XsSx",header:"MaterialUploadModal-module_header__3TjBI",title:"MaterialUploadModal-module_title__1flzY",closeBtn:"MaterialUploadModal-module_closeBtn__1mF-n",body:"MaterialUploadModal-module_body__3NXqM",sectionTitle:"MaterialUploadModal-module_sectionTitle__2lxhy",formRow:"MaterialUploadModal-module_formRow__1sIrX",formRowLabel:"MaterialUploadModal-module_formRowLabel__1cWKA",required:"MaterialUploadModal-module_required__29bRx",formRowField:"MaterialUploadModal-module_formRowField__2PG0L",input:"MaterialUploadModal-module_input__2f5Gu",inputNarrow:"MaterialUploadModal-module_inputNarrow__2WACn",inputError:"MaterialUploadModal-module_inputError__1vkxg",inputSuffix:"MaterialUploadModal-module_inputSuffix__2Rbny",suffix:"MaterialUploadModal-module_suffix__wBmip",error:"MaterialUploadModal-module_error__64rTq",classifyRow:"MaterialUploadModal-module_classifyRow__ThGSG",classifyItem:"MaterialUploadModal-module_classifyItem__2nxz6",classifySelect:"MaterialUploadModal-module_classifySelect__3IiJH",brandSelect:"MaterialUploadModal-module_brandSelect__14Xxq",brandOption:"MaterialUploadModal-module_brandOption__3iJFQ",brandOptionLogo:"MaterialUploadModal-module_brandOptionLogo__1RjU2",brandOptionName:"MaterialUploadModal-module_brandOptionName__r4Nc4",uploadTextButton:"MaterialUploadModal-module_uploadTextButton__3yIqt",uploadProgressWrap:"MaterialUploadModal-module_uploadProgressWrap__1xc8Z",uploadProgressMain:"MaterialUploadModal-module_uploadProgressMain__-Csx3",uploadStatusText:"MaterialUploadModal-module_uploadStatusText__3uBhf",retryButton:"MaterialUploadModal-module_retryButton__pKebn",uploadSuccessWrap:"MaterialUploadModal-module_uploadSuccessWrap__2Y7N9",uploadSuccessActions:"MaterialUploadModal-module_uploadSuccessActions__3PFqa",replaceButton:"MaterialUploadModal-module_replaceButton__12cMI",successIcon:"MaterialUploadModal-module_successIcon__19J_v",fileName:"MaterialUploadModal-module_fileName__2gX0H",footer:"MaterialUploadModal-module_footer__oI4b7",footerBtn:"MaterialUploadModal-module_footerBtn__6uu-j",btnCancel:"MaterialUploadModal-module_btnCancel__YZSZQ",btnOk:"MaterialUploadModal-module_btnOk__cL5Fm"};je("@keyframes MaterialUploadModal-module_overlayIn__3BdRq{0%{opacity:0}to{opacity:1}}@keyframes MaterialUploadModal-module_modalIn__1XsSx{0%{opacity:0}to{opacity:1}}.MaterialUploadModal-module_overlay__45gB7{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:MaterialUploadModal-module_overlayIn__3BdRq .2s ease-out forwards}.MaterialUploadModal-module_modal__xuwMo{position:fixed;top:0;right:0;bottom:0;left:0;width:560px;height:-moz-fit-content;height:fit-content;margin:auto;border-radius:16px;overflow:hidden;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:88vh;animation:MaterialUploadModal-module_modalIn__1XsSx .22s ease-out forwards}.MaterialUploadModal-module_header__3TjBI{display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 24px;height:52px;flex-shrink:0;border-bottom:1px solid #dde1e6}.MaterialUploadModal-module_title__1flzY{font-size:16px;font-weight:600;color:#111827}.MaterialUploadModal-module_closeBtn__1mF-n{width:28px;height:28px;border:none;background:#fff;border-radius:50%;color:rgba(0,0,0,.5);cursor:pointer;font-size:14px;line-height:28px;text-align:center;display:flex;align-items:center;justify-content:center;padding:0;transition:background .15s,color .15s}.MaterialUploadModal-module_closeBtn__1mF-n:hover{background:rgba(0,0,0,.1);color:rgba(0,0,0,.7)}.MaterialUploadModal-module_body__3NXqM{padding:0 24px 8px;overflow-y:visible;flex:1}.MaterialUploadModal-module_sectionTitle__2lxhy{font-size:13px;font-weight:600;color:#111827;padding:16px 0}.MaterialUploadModal-module_formRow__1sIrX{margin-bottom:16px;display:flex;align-items:flex-start}.MaterialUploadModal-module_formRowLabel__1cWKA{flex:0 0 72px;padding-top:13px;font-size:13px;color:rgba(17,24,39,.6);white-space:nowrap;line-height:1}.MaterialUploadModal-module_required__29bRx{color:#ef4444;margin-right:2px}.MaterialUploadModal-module_formRowField__2PG0L{flex:1;min-width:0}.MaterialUploadModal-module_input__2f5Gu{width:100%;height:38px;padding:0 12px;border:1px solid #f0f2f5;border-radius:6px;font-size:13px;color:#111827;background:#f0f2f5;outline:none;box-sizing:border-box;transition:border-color .2s}.MaterialUploadModal-module_input__2f5Gu:focus{border-color:#597aef;box-shadow:0 0 0 3px rgba(89,122,239,.1)}.MaterialUploadModal-module_input__2f5Gu::-moz-placeholder{color:#9ca3af}.MaterialUploadModal-module_input__2f5Gu::placeholder{color:#9ca3af}.MaterialUploadModal-module_inputNarrow__2WACn{width:200px}.MaterialUploadModal-module_inputError__1vkxg{border-color:#ef4444}.MaterialUploadModal-module_inputError__1vkxg:focus{box-shadow:0 0 0 3px rgba(239,68,68,.1)}.MaterialUploadModal-module_inputSuffix__2Rbny{position:relative;width:200px}.MaterialUploadModal-module_suffix__wBmip{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:13px;color:rgba(17,24,39,.5);pointer-events:none}.MaterialUploadModal-module_error__64rTq{display:block;font-size:11px;line-height:1.2;color:#ef4444;margin-top:4px}.MaterialUploadModal-module_classifyRow__ThGSG{display:flex;gap:16px;overflow:visible;position:static;align-items:flex-start}.MaterialUploadModal-module_classifyItem__2nxz6{width:200px}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selector{height:40px!important;border-radius:4px!important;border-color:#f0f2f5!important;background:#f0f2f5!important;display:flex;align-items:center}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-search-input{height:40px!important}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-item,.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-placeholder{line-height:38px!important}.MaterialUploadModal-module_brandSelect__14Xxq .ant-select-selector{padding:0 12px!important}.MaterialUploadModal-module_brandSelect__14Xxq .ant-select-selection-item{display:flex;align-items:center}.MaterialUploadModal-module_brandOption__3iJFQ{display:flex;align-items:center;gap:8px}.MaterialUploadModal-module_brandOptionLogo__1RjU2{width:24px;height:24px;border-radius:4px;-o-object-fit:cover;object-fit:cover;flex-shrink:0;background:#f5f5f5}.MaterialUploadModal-module_brandOptionName__r4Nc4{min-width:0;color:#111827}.MaterialUploadModal-module_uploadTextButton__3yIqt{padding:0;border:none;background:transparent;color:#597aef;font-size:13px;font-weight:500;cursor:pointer}.MaterialUploadModal-module_uploadTextButton__3yIqt:hover{color:#4061e0}.MaterialUploadModal-module_uploadProgressWrap__1xc8Z{display:flex;align-items:center;gap:24px}.MaterialUploadModal-module_uploadProgressMain__-Csx3{flex:1;min-width:0}.MaterialUploadModal-module_uploadStatusText__3uBhf{flex-shrink:0;color:#616778;font-size:13px}.MaterialUploadModal-module_retryButton__pKebn{flex-shrink:0;width:72px;height:32px;padding:0;border:1px solid #1890ff;border-radius:4px;background:#fff;color:#1890ff;font-size:13px;font-weight:400;cursor:pointer}.MaterialUploadModal-module_retryButton__pKebn:hover{background:#e6f7ff}.MaterialUploadModal-module_uploadSuccessWrap__2Y7N9{display:flex;align-items:center;gap:24px}.MaterialUploadModal-module_uploadSuccessActions__3PFqa{display:flex;align-items:center;gap:8px;flex-shrink:0}.MaterialUploadModal-module_replaceButton__12cMI{width:72px!important;height:32px!important;padding:0!important;border:1px solid #1890ff!important;border-radius:4px!important;background:#fff!important;color:#1890ff!important;font-size:13px!important;font-weight:400!important;box-shadow:none!important}.MaterialUploadModal-module_replaceButton__12cMI:focus,.MaterialUploadModal-module_replaceButton__12cMI:hover{background:#e6f7ff!important;color:#1890ff!important;border-color:#1890ff!important}.MaterialUploadModal-module_successIcon__19J_v{color:#52c41a;font-size:16px}.MaterialUploadModal-module_fileName__2gX0H{font-size:13px;color:#111827;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MaterialUploadModal-module_footer__oI4b7{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:16px 24px 16px 0;border-top:1px solid #f3f4f6;flex-shrink:0;margin-top:8px}.MaterialUploadModal-module_footerBtn__6uu-j{height:36px;padding:0 24px;border-radius:4px;font-size:14px;cursor:pointer;outline:none;transition:all .15s;font-weight:400}.MaterialUploadModal-module_btnCancel__YZSZQ{border:1px solid #e5e7eb;background:#fff;color:#737b8b}.MaterialUploadModal-module_btnCancel__YZSZQ:hover{border-color:#1890ff;color:#1890ff}.MaterialUploadModal-module_btnOk__cL5Fm{border:none;background:#1890ff;color:#fff}.MaterialUploadModal-module_btnOk__cL5Fm:hover{background:#1278d7}.MaterialUploadModal-module_btnOk__cL5Fm:disabled{opacity:.5;cursor:not-allowed}");var Fn,On=function(e){var t,a,n,r,o,i;return(null==e||null===(t=e.value)||void 0===t?void 0:t.fileAccessUrl)||(null==e||null===(a=e.value)||void 0===a?void 0:a.compressImageUrl)||(null==e||null===(n=e.value)||void 0===n?void 0:n.fileUrl)||(null==e||null===(r=e.value)||void 0===r?void 0:r.url)||(null==e||null===(o=e.data)||void 0===o?void 0:o.fileUrl)||(null==e||null===(i=e.data)||void 0===i?void 0:i.url)||(null==e?void 0:e.fileUrl)||(null==e?void 0:e.url)},Hn=function(e){return(null==e?void 0:e.data)||e},Vn=function(e){return null!=(null==e?void 0:e.brandId)?e.brandId+"":void 0},jn=function(e){var t=e.visible,a=e.onCancel,r=e.onOk,o=e.material,i=e.mode,l=e.classify1Options,s=void 0===l?[]:l,d=e.classify2Options,c=void 0===d?{}:d,u=e.brandOptions,m=void 0===u?[]:u,p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState(null),2),g=_[0],v=_[1],y=Ge(n.useState(null),2),x=y[0],b=y[1],M=Ge(n.useState(void 0),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState({}),2),k=L[0],I=L[1],P=Ge(n.useState({}),2),A=P[0],R=P[1],D=Ge(n.useState(null),2),z=D[0],U=D[1],B=Ge(n.useState(0),2),G=B[0],F=B[1],H=Ge(n.useState("idle"),2),j=H[0],W=H[1],q=Ge(n.useState(!1),2),K=q[0],X=q[1],Z=n.useRef(null),Q=n.useRef(null);n.useEffect(function(){t&&(o?(h(o.name||""),v(null!=o.classify1Id?o.classify1Id:null!=o.classify1?o.classify1:null),b(null!=o.classify2Id?o.classify2Id:null!=o.classify2?o.classify2:null),T(null!=o.brandId?o.brandId+"":void 0),N(null!=o.unitPrice?Number(o.unitPrice)/100+"":o.price||""),U(function(e){return(null==e?void 0:e.url)?{name:e.name||e.fileName||"已上传素材",url:e.url,size:e.size||0}:null}(o)),W(o.url?"success":"idle"),F(o.url?100:0)):(h(""),v(null),b(null),T(void 0),N(""),U(null),W("idle"),F(0)),I({}),R({}),X(!1),Z.current&&(Z.current.value=""))},[t,o]);var J=function(){var e={};return f.trim()||(e.name="请输入素材名称"),g||(e.classify1Id="请选择一级分类"),x||(e.classify2Id="请选择二级分类"),(null==z?void 0:z.url)||(e.file="请上传素材文件"),I(e),0===Object.keys(e).length},$=function(){I(function(e){var t=Object.assign({},e);return delete t.file,t})},ee=function(){Z.current&&Z.current.click()},te=function(){var e=we(ze().m(function e(t){var a,n,r,o;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return(a=new FormData).append("file",t),W("uploading"),F(0),$(),e.p=2,e.n=3,da(a,{onUploadProgress:function(e){F((null==e?void 0:e.total)?Math.min(99,Math.round(e.loaded/e.total*100)):0)}});case 3:if(n=Hn(e.v),r=On(n),200!==(null==n?void 0:n.code)||!r){e.n=4;break}U({name:t.name,size:t.size,url:r}),F(100),W("success"),$(),e.n=5;break;case 4:throw Error((null==n?void 0:n.message)||"上传失败");case 5:e.n=7;break;case 6:e.p=6,console.error("素材上传失败",o=e.v),W("error"),F(100),O.default.error((null==o?void 0:o.message)||"上传失败");case 7:return e.p=7,Z.current&&(Z.current.value=""),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R({name:!0,classify1Id:!0,classify2Id:!0}),J()){e.n=1;break}return e.a(2);case 1:return X(!0),e.p=2,t=m.find(function(e){return Vn(e)===w}),e.n=3,null==r?void 0:r({materialId:"edit"===i?null==o?void 0:o.materialId:void 0,name:f.trim(),classify1:g,classify2:x,type:1,url:z.url,size:z.size||0,unitPrice:Math.round(100*(Number(C)||0)),brandId:null==t?void 0:t.brandId,brandName:(null==t?void 0:t.name)||void 0});case 3:return e.p=3,X(!1),e.f(3);case 4:return e.a(2)}},e,null,[[2,,3,4]])}));return function(){return e.apply(this,arguments)}}(),ne=function(e,t){"classify1Id"===e?(v(t),b(null)):"classify2Id"===e&&b(t),I(function(t){var a=Object.assign({},t);return delete a[e],a})},re=g&&c[g+""]||[],oe=m.map(function(e){return{value:Vn(e),label:V.default.createElement("div",{className:Gn.brandOption},V.default.createElement("img",{src:e.logo,alt:e.name,className:Gn.brandOptionLogo}),V.default.createElement("span",{className:Gn.brandOptionName},e.name))}});return t?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Gn.overlay,onClick:a}),V.default.createElement("div",{className:Gn.modal},V.default.createElement("div",{className:Gn.topAccent}),V.default.createElement("div",{className:Gn.header},V.default.createElement("span",{className:Gn.title},"edit"===i?"编辑素材":"上传新素材"),V.default.createElement("button",{type:"button",className:Gn.closeBtn,onClick:a},V.default.createElement(S.CloseOutlined,{style:{fontSize:13}}))),V.default.createElement("div",{className:Gn.body},V.default.createElement("div",{className:Gn.sectionTitle},"素材基本信息"),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},V.default.createElement("span",{className:Gn.required},"*"),"素材文件"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("input",{type:"file",accept:".glb,.gltf,.fbx,.obj",style:{display:"none"},ref:Z,onChange:function(e){var t,a=null===(t=e.target.files)||void 0===t?void 0:t[0];a&&(U({name:a.name,size:a.size,url:""}),te(a))}}),V.default.createElement("div",{className:Gn.uploadPanel},"idle"!==j||z?"uploading"===j?V.default.createElement("div",{className:Gn.uploadProgressWrap},V.default.createElement("div",{className:Gn.uploadProgressMain},V.default.createElement(pe.default,{percent:G,size:"small",showInfo:!1,strokeColor:"#597aef"})),V.default.createElement("span",{className:Gn.uploadStatusText},"上传中")):"error"===j?V.default.createElement("div",{className:Gn.uploadProgressWrap},V.default.createElement("div",{className:Gn.uploadProgressMain},V.default.createElement("div",{className:Gn.fileName},(null==z?void 0:z.name)||"素材上传失败"),V.default.createElement(pe.default,{percent:100,size:"small",showInfo:!1,strokeColor:"#ff4d4f",status:"exception"})),V.default.createElement("button",{type:"button",className:Gn.retryButton,onClick:ee},"重新上传")):V.default.createElement("div",{className:Gn.uploadSuccessWrap},V.default.createElement("div",{className:Gn.fileName,title:null==z?void 0:z.name},null==z?void 0:z.name),V.default.createElement("div",{className:Gn.uploadSuccessActions},V.default.createElement(Y.default,{type:"button",className:Gn.replaceButton,onClick:ee},"替换"),V.default.createElement(S.CheckCircleFilled,{className:Gn.successIcon}))):V.default.createElement("button",{type:"button",className:Gn.uploadTextButton,onClick:ee},"上传素材")),k.file&&V.default.createElement("span",{className:Gn.error},k.file))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},V.default.createElement("span",{className:Gn.required},"*"),"素材分类"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("div",{className:Gn.classifyRow,ref:Q},V.default.createElement("div",{className:Gn.classifyItem},V.default.createElement(me.default,{placeholder:"一级分类",value:g,onChange:function(e){return ne("classify1Id",e)},options:s,className:Gn.classifySelect,style:{width:200},getPopupContainer:function(){return Q.current?Q.current:document.body}}),k.classify1Id&&V.default.createElement("span",{className:Gn.error},k.classify1Id)),V.default.createElement("div",{className:Gn.classifyItem},V.default.createElement(me.default,{placeholder:"二级分类",value:x,onChange:function(e){return ne("classify2Id",e)},options:re,disabled:!g,className:Gn.classifySelect,style:{width:200},getPopupContainer:function(){return Q.current?Q.current:document.body}}),k.classify2Id&&V.default.createElement("span",{className:Gn.error},k.classify2Id))))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"素材名称"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("input",{type:"text",className:"".concat(Gn.input," ").concat(Gn.inputNarrow," ").concat(A.name&&k.name?Gn.inputError:""),placeholder:"请输入素材名称",value:f,onChange:function(e){h(e.target.value),A.name&&J()},onBlur:function(){R(function(e){return Object.assign({},e,{name:!0})}),J()}}),A.name&&k.name&&V.default.createElement("span",{className:Gn.error},k.name))),V.default.createElement("div",{className:Gn.sectionTitle,style:{marginTop:8}},"商品信息"),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"品牌名称"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement(me.default,{placeholder:"请选择品牌名称",value:w,onChange:function(e){return T(e)},options:oe,allowClear:!0,className:"".concat(Gn.classifySelect," ").concat(Gn.brandSelect),style:{width:200},getPopupContainer:function(e){return e.parentNode||document.body},optionLabelProp:"label"}))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"参考单价"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("div",{className:"".concat(Gn.inputSuffix," ").concat(Gn.inputNarrow)},V.default.createElement("input",{type:"number",className:"".concat(Gn.input," ").concat(Gn.inputNarrow),placeholder:"请输入参考单价",value:C,onChange:function(e){return N(e.target.value)},min:0,style:{paddingRight:32}}),V.default.createElement("span",{className:Gn.suffix},"元"))))),V.default.createElement("div",{className:Gn.footer},V.default.createElement("button",{type:"button",className:"".concat(Gn.footerBtn," ").concat(Gn.btnCancel),onClick:a},"取消"),V.default.createElement("button",{type:"button",className:"".concat(Gn.footerBtn," ").concat(Gn.btnOk),onClick:ae,disabled:K||"uploading"===j},"确认")))):null},Wn="decorateMaterials-module_wrap__1XXYC",qn="decorateMaterials-module_header__iqGKl",Kn="decorateMaterials-module_headerLeft__C7Tbp",Xn="decorateMaterials-module_title___r-Ci",Yn="decorateMaterials-module_subtitle__1bXEp",Zn="decorateMaterials-module_uploadBtn__2CiZZ",Qn="decorateMaterials-module_body__2USVY",Jn="decorateMaterials-module_leftPanel__3OuPF",$n="decorateMaterials-module_panelTitle__114iP",er="decorateMaterials-module_treeRow__3YaHC",tr="decorateMaterials-module_rowFirst__2x9A9",ar="decorateMaterials-module_rowActive__18AXb",nr="decorateMaterials-module_rowLabel__DTzMo",rr="decorateMaterials-module_rowCount__1oH4e",or="decorateMaterials-module_rowSecond__3_0Wo",ir="decorateMaterials-module_rowThird__sS-LQ",lr="decorateMaterials-module_expandBtn__2h1Oe",sr="decorateMaterials-module_rightPanel__YkkdF",dr="decorateMaterials-module_rightPanelHeader__14WUo",cr="decorateMaterials-module_sortWrap__1o8YL",ur="decorateMaterials-module_sortLabel__1_7Tg",mr="decorateMaterials-module_sortValue__1ROTT",pr="decorateMaterials-module_materialCount__1_vtg",fr="decorateMaterials-module_materialList__34klC",hr="decorateMaterials-module_materialListContent__2EcC0",_r="decorateMaterials-module_loadingWrap__2JP3h",gr="decorateMaterials-module_emptyWrap__1gXcb",vr="decorateMaterials-module_cardGrid__e0Wj_",yr="decorateMaterials-module_cardCol__3P1Mz",xr="decorateMaterials-module_cardColActive__1KU1H",br="decorateMaterials-module_materialCard__2XiAw",Mr="decorateMaterials-module_cardThumb__KBAs6",wr="decorateMaterials-module_cardInfo__3nNtB",Sr="decorateMaterials-module_titleTooltip__1GCp3",Tr="decorateMaterials-module_cardName__1Xqlr",Er="decorateMaterials-module_cardMetaLine__1LoqM",Cr="decorateMaterials-module_cardMetaLeft__1bHeE",Nr="decorateMaterials-module_cardMetaDivider__Ts6MF",Lr="decorateMaterials-module_cardMetaText__1QwLQ",kr="decorateMaterials-module_cardActions__qb9zk",Ir="decorateMaterials-module_btnMore__2DwN5",Pr="decorateMaterials-module_btnMoreIcon__2jXCx",Ar="decorateMaterials-module_moreDropdown__2ChFV",Rr="decorateMaterials-module_moreDropdownItem__2LrL9",Dr="decorateMaterials-module_paginationWrap__2GPMU",zr="decorateMaterials-module_deleteConfirmModal__3hGc-";je(".decorateMaterials-module_wrap__1XXYC{display:flex;flex-direction:column;height:100%;min-height:calc(100vh - 120px)}@keyframes decorateMaterials-module_dropdownOpen__1eAmS{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.decorateMaterials-module_header__iqGKl{display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e8e8e8;background-color:#fff}.decorateMaterials-module_headerLeft__C7Tbp{display:flex;height:54px;align-items:center;justify-content:center;gap:12px}.decorateMaterials-module_title___r-Ci{font-size:14px;font-weight:500;color:#000f2c;line-height:22px}.decorateMaterials-module_subtitle__1bXEp{font-size:12px;font-weight:400;color:#737b8b}.decorateMaterials-module_uploadBtn__2CiZZ{display:flex;align-items:center;justify-content:center;width:101px;height:32px;gap:6px;background:#1890ff;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:400;cursor:pointer;outline:none}.decorateMaterials-module_body__2USVY{display:flex;flex:1;min-height:0}.decorateMaterials-module_leftPanel__3OuPF{width:247px;flex-shrink:0;border-right:1px solid #dde1e6;background-color:#fff;overflow-y:auto}.decorateMaterials-module_panelTitle__114iP{padding:16px 0 12px 16px;font-size:14px;font-weight:500;color:#000f2c}.decorateMaterials-module_treeRow__3YaHC{display:flex;align-items:center;height:40px;padding:0 16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateMaterials-module_rowFirst__2x9A9{padding-left:12px}.decorateMaterials-module_rowActive__18AXb .decorateMaterials-module_rowLabel__DTzMo{color:#000f2c;font-size:14px;font-weight:500}.decorateMaterials-module_rowActive__18AXb .decorateMaterials-module_rowCount__1oH4e{color:#000f2c}.decorateMaterials-module_rowLabel__DTzMo{flex:1;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#717d99}.decorateMaterials-module_rowSecond__3_0Wo{padding-left:28px;font-size:14px;font-weight:500}.decorateMaterials-module_rowThird__sS-LQ{padding-left:48px;font-size:13px}.decorateMaterials-module_expandBtn__2h1Oe{width:14px;height:14px;margin-right:6px;font-size:11px;color:#717d99;flex-shrink:0;display:flex;align-items:center;justify-content:center}.decorateMaterials-module_rowCount__1oH4e{margin-left:8px;font-size:12px;color:#717d99;flex-shrink:0}.decorateMaterials-module_rightPanel__YkkdF{flex:1;min-width:0;display:flex;flex-direction:column;background:#f5f5f7}.decorateMaterials-module_rightPanelHeader__14WUo{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 12px 28px;flex-shrink:0}.decorateMaterials-module_sortWrap__1o8YL{display:inline-flex;align-items:center;gap:4px;font-size:14px;line-height:22px}.decorateMaterials-module_sortLabel__1_7Tg{color:#737b8b;font-weight:400}.decorateMaterials-module_sortValue__1ROTT{color:#000f2c;font-weight:400}.decorateMaterials-module_sortIcon___jYgc{font-size:12px;color:#000f2c}.decorateMaterials-module_categoryTitle__2nY2E{font-size:16px;font-weight:600;color:#333}.decorateMaterials-module_materialCount__1_vtg{font-size:14px;font-weight:400;color:#737b8b}.decorateMaterials-module_materialList__34klC{flex:1;overflow-y:auto;padding:0 16px 16px}.decorateMaterials-module_materialListContent__2EcC0{min-height:100%;display:flex;flex-direction:column}.decorateMaterials-module_emptyWrap__1gXcb,.decorateMaterials-module_loadingWrap__2JP3h{display:flex;align-items:center;justify-content:center;width:100%;height:300px}.decorateMaterials-module_cardGrid__e0Wj_{display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,224px));justify-content:space-between;gap:16px 0}.decorateMaterials-module_cardCol__3P1Mz{position:relative;width:224px;min-width:0;z-index:1}.decorateMaterials-module_cardColActive__1KU1H{z-index:10}.decorateMaterials-module_materialCard__2XiAw{position:relative;width:224px;height:291px;border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(29,53,87,.08);border:1px solid rgba(235,238,245,.9);overflow:visible;transition:transform .2s ease,box-shadow .2s ease}.decorateMaterials-module_materialCard__2XiAw:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(29,53,87,.12)}.decorateMaterials-module_cardThumb__KBAs6{width:100%;height:224px;background:linear-gradient(180deg,#f7f9fc,#eef2f7);overflow:hidden;border-radius:14px 14px 0 0}.decorateMaterials-module_cardThumb__KBAs6 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.decorateMaterials-module_cardInfo__3nNtB{display:flex;flex-direction:column;justify-content:space-between;height:67px;padding:10px 14px 9px;border-radius:0 0 14px 14px;overflow:hidden}.decorateMaterials-module_titleTooltip__1GCp3 .ant-tooltip-inner{border-radius:8px}.decorateMaterials-module_cardName__1Xqlr{font-size:15px;line-height:22px;color:#1c2635;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.decorateMaterials-module_cardMetaLine__1LoqM{display:flex;align-items:center;justify-content:space-between;gap:8px}.decorateMaterials-module_cardMetaLeft__1bHeE{display:flex;align-items:center;min-width:0;flex:1;overflow:hidden}.decorateMaterials-module_cardMetaDivider__Ts6MF{margin:0 6px;font-size:12px;line-height:20px;color:#8c94a6;flex-shrink:0}.decorateMaterials-module_cardMetaText__1QwLQ{font-size:12px;line-height:20px;color:#8c94a6;white-space:nowrap}.decorateMaterials-module_cardActions__qb9zk{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;margin-left:8px}.decorateMaterials-module_btnMore__2DwN5{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;line-height:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateMaterials-module_btnMoreIcon__2jXCx{display:block;width:24px;height:24px;-o-object-fit:contain;object-fit:contain}.decorateMaterials-module_moreDropdown__2ChFV{position:absolute;right:14px;top:calc(100% + 6px);background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);border:1px solid #e8e8e8;padding:6px;min-width:112px;z-index:9991;transform-origin:top right;animation:decorateMaterials-module_dropdownOpen__1eAmS .2s ease-out forwards}.decorateMaterials-module_moreDropdownItem__2LrL9{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:14px;font-weight:400;border-radius:8px;margin:0;padding:8px 12px;cursor:pointer}.decorateMaterials-module_moreDropdownItem__2LrL9:hover{background:#f5f5f5;color:#1c2635;font-weight:600}.decorateMaterials-module_paginationWrap__2GPMU{display:flex;justify-content:flex-end;margin-top:auto;padding-top:20px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-modal-content{border-radius:8px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn{border-radius:4px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary{background:#1890ff;border-color:#1890ff;border-radius:4px;color:#fff}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary:focus,.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary:hover{background:#1890ff;border-color:#1890ff;color:#fff}");var Ur="https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/7f7ccbce0e5672fe354d358b6cb873f6.png",Br=["10","20","50","100"],Gr=a.connect(function(e){var t=e.decorate;return{materialClassifyList:t.materialClassifyList,materialBrandList:t.materialBrandList,materialList:t.materialList,materialTotal:t.materialTotal}})(Fn=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={secondListCollapsed:!1,expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:null,pageNo:1,pageSize:10,listLoading:!1,uploadModalVisible:!1,uploadModalMode:"upload",uploadModalMaterial:null,modalSubmitting:!1,moreDropdownOpenId:null},e.getCardColClassName=function(t){var a=e.state.moreDropdownOpenId;return"".concat(yr," ").concat(a===t?xr:"")},e.handleDocClick=function(t){t.target.closest(".".concat(kr))||e.setState({moreDropdownOpenId:null})},e.loadMaterialClassifyList=function(){return e.props.dispatch({type:"decorate/fetchMaterialClassifyList",payload:{type:1}})},e.loadMaterialBrandList=function(){return e.props.dispatch({type:"decorate/fetchMaterialBrandList"})},e.loadMaterialList=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.pageNo,n=void 0===a?1:a,r=t.pageSize,o=void 0===r?e.state.pageSize:r,i=t.classify1,l=t.classify2;e.setState({listLoading:!0,pageNo:n,pageSize:o}),e.props.dispatch({type:"decorate/fetchMaterialList",payload:{pageNo:n,pageSize:o,classify1:i,classify2:l}}).finally(function(){e.setState({listLoading:!1})})},e.getCurrentListQuery=function(){var t=e.state.selectedId,a=e.firstLevelItems();if(null===t)return{};if(a.find(function(e){return e.classifyId===t}))return{classify1:t};var n=e.findParentSecond(t);return{classify1:null==n?void 0:n.classifyId,classify2:t}},e.findParentSecond=function(t){return(e.props.materialClassifyList||[]).find(function(e){return e.classifyId===t})},e.handleFirstClick=function(){e.setState(function(t){if(!t.secondListCollapsed)return{secondListCollapsed:!0,expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:null};var a=e.firstLevelItems()[0];return{secondListCollapsed:!1,expandedId:a?a.classifyId:null,selectedId:a?a.classifyId:null,selectedCategory:a?a.name:null,requestedClassifyId:a?a.classifyId:null}}),null!==e.state.requestedClassifyId&&e.loadMaterialList({pageNo:1})},e.handleSecondClick=function(t){e.setState(function(a){return a.expandedId===t.classifyId?{expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:a.requestedClassifyId===t.classifyId?a.requestedClassifyId:null}:(a.requestedClassifyId!==t.classifyId&&e.loadMaterialList({pageNo:1,classify1:t.classifyId}),{expandedId:t.classifyId,selectedId:t.classifyId,selectedCategory:t.name,requestedClassifyId:t.classifyId})})},e.handleThirdClick=function(t){var a=e.findParentSecond(t.parentId),n=a?a.classifyId:void 0;e.setState(function(a){return a.requestedClassifyId!==t.classifyId&&e.loadMaterialList({pageNo:1,classify1:n,classify2:t.classifyId}),{selectedId:t.classifyId,selectedCategory:t.name,requestedClassifyId:t.classifyId}})},e.firstLevelItems=function(){return(e.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber})},e.getThirdItems=function(t){var a=e.firstLevelItems().find(function(e){return e.classifyId===t});return a&&a.nextLevelClassify?a.nextLevelClassify:[]},e.handlePageChange=function(t,a){var n=e.state.selectedId,r=e.firstLevelItems();if(null===n)e.loadMaterialList({pageNo:t,pageSize:a});else if(r.find(function(e){return e.classifyId===n}))e.loadMaterialList({pageNo:t,pageSize:a,classify1:n});else{var o=e.findParentSecond(n);e.loadMaterialList({pageNo:t,pageSize:a,classify1:null==o?void 0:o.classifyId,classify2:n})}},e.openUploadModal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e.setState({uploadModalVisible:!0,uploadModalMode:t?"edit":"upload",uploadModalMaterial:t||null,moreDropdownOpenId:null})},e.closeUploadModal=function(){e.setState({uploadModalVisible:!1,modalSubmitting:!1})},e.handleUploadOk=function(){var t=we(ze().m(function t(a){var n,r,o,i,l;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:return n=e.props.dispatch,o=(r=e.state).pageNo,i=r.uploadModalMode,e.setState({modalSubmitting:!0}),t.p=1,t.n=2,n({type:"decorate/saveMaterial",payload:a});case 2:return O.default.success("edit"===i?"素材编辑成功":"素材上传成功"),e.closeUploadModal(),t.n=3,e.loadMaterialClassifyList();case 3:return t.n=4,e.loadMaterialList(Re({pageNo:o},e.getCurrentListQuery()));case 4:t.n=6;break;case 5:throw t.p=5,console.error("保存素材失败",l=t.v),O.default.error((null==l?void 0:l.message)||"保存素材失败"),l;case 6:return t.p=6,e.setState({modalSubmitting:!1}),t.f(6);case 7:return t.a(2)}},t,null,[[1,5,6,7]])}));return function(e){return t.apply(this,arguments)}}(),e.handleToggleMore=function(t,a){a.stopPropagation(),e.setState(function(e){return{moreDropdownOpenId:e.moreDropdownOpenId===t?null:t}})},e.handleDelete=function(t){var a,n=e.props.dispatch,r=e.state,o=r.pageNo,i=r.pageSize;e.setState({moreDropdownOpenId:null}),oe.default.confirm({title:"确认删除",content:"素材删除后将从您的素材库消失,且无法恢复,请确认是否删除?",okText:"确认",cancelText:"取消",className:zr,onOk:(a=we(ze().m(function a(){var r;return ze().w(function(a){for(;;)switch(a.p=a.n){case 0:return a.p=0,a.n=1,n({type:"decorate/deleteMaterial",payload:{materialId:t.materialId}});case 1:return O.default.success("删除成功"),a.n=2,e.loadMaterialClassifyList();case 2:return a.n=3,e.loadMaterialList(Re({pageNo:o,pageSize:i},e.getCurrentListQuery()));case 3:a.n=5;break;case 4:a.p=4,console.error("删除素材失败",r=a.v),O.default.error((null==r?void 0:r.message)||"删除素材失败");case 5:return a.a(2)}},a,null,[[0,4]])})),function(){return a.apply(this,arguments)})})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.loadMaterialClassifyList(),this.loadMaterialBrandList(),this.loadMaterialList({pageNo:1}),document.addEventListener("click",this.handleDocClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocClick)}},{key:"classify1Options",get:function(){return(this.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber}).map(function(e){return{value:e.classifyId,label:e.name}})}},{key:"classify2Options",get:function(){var e={};return(this.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber}).forEach(function(t){e[t.classifyId]=(t.nextLevelClassify||[]).map(function(e){return{value:e.classifyId,label:e.name}})}),e}},{key:"render",value:function(){var e=this,t=this.props,a=t.materialClassifyList,n=t.materialBrandList,r=t.materialList,o=t.materialTotal,i=this.state,l=i.secondListCollapsed,s=i.expandedId,d=i.selectedId,c=i.listLoading,u=i.uploadModalVisible,m=i.uploadModalMode,p=i.uploadModalMaterial,f=i.modalSubmitting,h=i.pageNo,_=i.pageSize,g=i.moreDropdownOpenId,v=null===d,y=!c&&0===r.length,x=this.firstLevelItems(),b=x.reduce(function(e,t){return e+(Number(t.materialCount)||0)},0),M=!a||0===a.length,w=this.classify1Options,T=this.classify2Options;return V.default.createElement("div",{className:Wn},V.default.createElement("div",{className:qn},V.default.createElement("div",{className:Kn},V.default.createElement("div",{className:Xn},"私人素材库"),V.default.createElement("div",{className:Yn},"管理您的自定义3D模型素材")),V.default.createElement("button",{className:Zn,onClick:function(){return e.openUploadModal()}},V.default.createElement("span",null,"上传3D素材"))),V.default.createElement("div",{className:Qn},V.default.createElement("div",{className:Jn},V.default.createElement("div",{className:$n},"素材分类"),V.default.createElement("div",{className:"".concat(er," ").concat(tr," ").concat(v?ar:""),onClick:this.handleFirstClick},V.default.createElement("span",{className:lr},M?V.default.createElement(te.default,{size:"small"}):V.default.createElement(l?S.RightOutlined:S.DownOutlined,null)),V.default.createElement("span",{className:nr},"全部素材"),V.default.createElement("span",{className:rr},b)),!l&&!M&&x.map(function(t){var a=s===t.classifyId,n=d===t.classifyId,r=e.getThirdItems(t.classifyId);return V.default.createElement("div",{key:t.classifyId},V.default.createElement("div",{className:"".concat(er," ").concat(or," ").concat(n?ar:""),onClick:function(){return e.handleSecondClick(t)}},V.default.createElement("span",{className:lr},V.default.createElement(a?S.DownOutlined:S.RightOutlined,null)),V.default.createElement("span",{className:nr},t.name),V.default.createElement("span",{className:rr},t.materialCount)),a&&r.map(function(a){return V.default.createElement("div",{key:a.classifyId,className:"".concat(er," ").concat(ir," ").concat(d===a.classifyId?ar:""),onClick:function(){return e.handleThirdClick(Re(Re({},a),{},{parentId:t.classifyId}))}},V.default.createElement("span",{className:lr}),V.default.createElement("span",{className:nr},a.name),V.default.createElement("span",{className:rr},a.materialCount))}))})),V.default.createElement("div",{className:sr},V.default.createElement("div",{className:dr},V.default.createElement("span",{className:pr},o>0?"共 ".concat(o," 个素材"):""),V.default.createElement("span",{className:cr},V.default.createElement("span",{className:ur},"排序"),V.default.createElement("span",{className:mr},"最近更新"))),V.default.createElement("div",{className:fr},c?V.default.createElement("div",{className:_r},V.default.createElement(te.default,{size:"large"})):y?V.default.createElement("div",{className:gr},V.default.createElement(re.default,{image:re.default.PRESENTED_IMAGE_SIMPLE,description:"该分类暂无素材"})):V.default.createElement("div",{className:hr},V.default.createElement("div",{className:vr},r.map(function(t){return V.default.createElement("div",{key:t.materialId,className:e.getCardColClassName(t.materialId)},V.default.createElement("div",{className:br},V.default.createElement("div",{className:Mr},V.default.createElement("img",{src:Ur,alt:t.name,onError:function(e){e.target.src=Ur}})),V.default.createElement("div",{className:wr},V.default.createElement(ne.default,{title:t.name,placement:"bottom",overlayClassName:Sr},V.default.createElement("div",{className:Tr},t.name)),V.default.createElement("div",{className:Er},V.default.createElement("div",{className:Cr},V.default.createElement("span",{className:Lr},function(e){if(!e)return"--";var t=(e+"").split("?")[0].split("#")[0].split("/").pop()||"",a=t.includes(".")?t.split(".").pop():"";return a?a.toUpperCase():"--"}(t.url)),V.default.createElement("span",{className:Nr},"/"),V.default.createElement("span",{className:Lr},(a=Number(t.size))&&a>0?1024>a?"".concat(a," B"):1048576>a?"".concat((a/1024).toFixed(102400>a?1:0)," KB"):1073741824>a?"".concat((a/1048576).toFixed(104857600>a?1:0)," MB"):"".concat((a/1073741824).toFixed(1)," GB"):"--")),V.default.createElement("div",{className:kr},V.default.createElement("span",{className:Ir,role:"button",tabIndex:0},V.default.createElement("img",{src:g===t.materialId?tt:et,alt:"",width:24,height:24,className:Pr,draggable:!1,onClick:function(a){return e.handleToggleMore(t.materialId,a)}}))))),g===t.materialId&&V.default.createElement("div",{className:Ar},V.default.createElement("button",{type:"button",className:Rr,onClick:function(){return e.handleDelete(t)}},"删除"),V.default.createElement("button",{type:"button",className:Rr,onClick:function(){return e.openUploadModal(t)}},"编辑"))));var a})),V.default.createElement("div",{className:Dr},V.default.createElement(ae.default,{current:h,pageSize:_,total:o,onChange:this.handlePageChange,onShowSizeChange:this.handlePageChange,pageSizeOptions:Br,showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条")}})))))),V.default.createElement(jn,{visible:u,mode:m,material:p,onOk:this.handleUploadOk,onCancel:this.closeUploadModal,classify1Options:w,classify2Options:T,brandOptions:n,submitting:f}))}}])}(n.Component))||Fn,Fr={page:"douGongSchemeTemplate-module_page__3FenY",container:"douGongSchemeTemplate-module_container__28Kh7",listPane:"douGongSchemeTemplate-module_listPane__2vLv-",listPaneHidden:"douGongSchemeTemplate-module_listPaneHidden__1FlxT",topBar:"douGongSchemeTemplate-module_topBar__LDIKR",topSearch:"douGongSchemeTemplate-module_topSearch__apeWw",topRight:"douGongSchemeTemplate-module_topRight__nL1I5",readonlyTag:"douGongSchemeTemplate-module_readonlyTag__2Q6Hk",successToast:"douGongSchemeTemplate-module_successToast__3wAsJ",errorToast:"douGongSchemeTemplate-module_errorToast__2YRAD",ghostPrimaryButton:"douGongSchemeTemplate-module_ghostPrimaryButton__uWclq",primaryButton:"douGongSchemeTemplate-module_primaryButton__1kTUF",secondaryButton:"douGongSchemeTemplate-module_secondaryButton__2P2It",linkButton:"douGongSchemeTemplate-module_linkButton__3pWfb",tagButton:"douGongSchemeTemplate-module_tagButton__1QYbm",tinyTag:"douGongSchemeTemplate-module_tinyTag__waUqq",headerSection:"douGongSchemeTemplate-module_headerSection__3EeK5",titleBlock:"douGongSchemeTemplate-module_titleBlock__2fHU3",pageTitle:"douGongSchemeTemplate-module_pageTitle__2SHpl",pageDesc:"douGongSchemeTemplate-module_pageDesc__46Bk9",toolbar:"douGongSchemeTemplate-module_toolbar__6rt4u",toolbarLeft:"douGongSchemeTemplate-module_toolbarLeft__2fPEX",searchWrap:"douGongSchemeTemplate-module_searchWrap__18O1V",searchIcon:"douGongSchemeTemplate-module_searchIcon__2Zb5l",searchInput:"douGongSchemeTemplate-module_searchInput__2K_jd",statusFilterGroup:"douGongSchemeTemplate-module_statusFilterGroup__3eurH",statusFilterLabel:"douGongSchemeTemplate-module_statusFilterLabel__NfpNT",filterWrap:"douGongSchemeTemplate-module_filterWrap__3I8mB",filterTrigger:"douGongSchemeTemplate-module_filterTrigger__3CTf0",filterTriggerActive:"douGongSchemeTemplate-module_filterTriggerActive__1gpKF",filterTriggerText:"douGongSchemeTemplate-module_filterTriggerText__-tyTA",filterArrowOpen:"douGongSchemeTemplate-module_filterArrowOpen__35EOc",filterMenu:"douGongSchemeTemplate-module_filterMenu__2IR3a",filterOption:"douGongSchemeTemplate-module_filterOption__2OYSa",filterOptionActive:"douGongSchemeTemplate-module_filterOptionActive__2GDge",filterOptionText:"douGongSchemeTemplate-module_filterOptionText__a3LdL",quickTabs:"douGongSchemeTemplate-module_quickTabs__31Fp-",tagButtonActive:"douGongSchemeTemplate-module_tagButtonActive__1MNPi",statusFlowCard:"douGongSchemeTemplate-module_statusFlowCard__1GrXr",statusFlowHeader:"douGongSchemeTemplate-module_statusFlowHeader__1rpIs",statusFlowContent:"douGongSchemeTemplate-module_statusFlowContent__3WAoV",statusFlowSteps:"douGongSchemeTemplate-module_statusFlowSteps__1F6ma",flowStatus:"douGongSchemeTemplate-module_flowStatus__3-nmf",flowStatusWaiting:"douGongSchemeTemplate-module_flowStatusWaiting__3r1aO",flowStatusSynced:"douGongSchemeTemplate-module_flowStatusSynced__2Xv40",flowStatusPending:"douGongSchemeTemplate-module_flowStatusPending__2OsoZ",flowStatusLoaded:"douGongSchemeTemplate-module_flowStatusLoaded__3y62K",flowStatusFailed:"douGongSchemeTemplate-module_flowStatusFailed__2dg_T",statusFlowArrow:"douGongSchemeTemplate-module_statusFlowArrow__2bvD7",statusFlowNote:"douGongSchemeTemplate-module_statusFlowNote__Vjxx0",tableCard:"douGongSchemeTemplate-module_tableCard__29TC_",schemeTable:"douGongSchemeTemplate-module_schemeTable__2Wx66",tableCellText:"douGongSchemeTemplate-module_tableCellText__2qFGr",schemeName:"douGongSchemeTemplate-module_schemeName__1ceWV",schemeNameCell:"douGongSchemeTemplate-module_schemeNameCell__2nPKG",missingReplacementTag:"douGongSchemeTemplate-module_missingReplacementTag__Z9ch8",warningIcon:"douGongSchemeTemplate-module_warningIcon__2zRRw",missingReplacementText:"douGongSchemeTemplate-module_missingReplacementText__2zNKu",actionCell:"douGongSchemeTemplate-module_actionCell__3nl3R",tableEmpty:"douGongSchemeTemplate-module_tableEmpty__3Sn9M",thumbPlaceholder:"douGongSchemeTemplate-module_thumbPlaceholder__2CrEd",countTag:"douGongSchemeTemplate-module_countTag__1jVo7",detailStatusTag:"douGongSchemeTemplate-module_detailStatusTag__1XI4X",roomStatusTag:"douGongSchemeTemplate-module_roomStatusTag__1Y4t9",statusTag:"douGongSchemeTemplate-module_statusTag__3DER1",countSynced:"douGongSchemeTemplate-module_countSynced__2a7zL",statusSynced:"douGongSchemeTemplate-module_statusSynced__37Ne1",detailStatusPass:"douGongSchemeTemplate-module_detailStatusPass__2XvB-",roomStatusReady:"douGongSchemeTemplate-module_roomStatusReady__ybwdf",countMissing:"douGongSchemeTemplate-module_countMissing__2K--O",statusMissing:"douGongSchemeTemplate-module_statusMissing__2RxH8",statusPending:"douGongSchemeTemplate-module_statusPending__1ZWi1",detailStatusWarn:"douGongSchemeTemplate-module_detailStatusWarn__-Y94A",countFailed:"douGongSchemeTemplate-module_countFailed__nruJ2",statusFailed:"douGongSchemeTemplate-module_statusFailed__UopKP",countPending:"douGongSchemeTemplate-module_countPending__27xmW",statusLoaded:"douGongSchemeTemplate-module_statusLoaded__12k7U",statusWaitingSync:"douGongSchemeTemplate-module_statusWaitingSync__2jaah",linkButtonMuted:"douGongSchemeTemplate-module_linkButtonMuted__2oeN1",inlineRetryButton:"douGongSchemeTemplate-module_inlineRetryButton__3Vw7_",paginationInfo:"douGongSchemeTemplate-module_paginationInfo__1YZsz",detailPage:"douGongSchemeTemplate-module_detailPage__qtPSM",breadcrumb:"douGongSchemeTemplate-module_breadcrumb__c_H9-",backButton:"douGongSchemeTemplate-module_backButton__tVGM2",detailHeader:"douGongSchemeTemplate-module_detailHeader__3Seoj",detailTitle:"douGongSchemeTemplate-module_detailTitle__xXzXb",detailMeta:"douGongSchemeTemplate-module_detailMeta__2vP9V",detailNotice:"douGongSchemeTemplate-module_detailNotice__16CrR",detailLayout:"douGongSchemeTemplate-module_detailLayout__3mEQR",detailMain:"douGongSchemeTemplate-module_detailMain__29q-l",detailCard:"douGongSchemeTemplate-module_detailCard__394jb",sideCard:"douGongSchemeTemplate-module_sideCard__3g45N",roomsCard:"douGongSchemeTemplate-module_roomsCard__2Q6ug",cardTitle:"douGongSchemeTemplate-module_cardTitle__3yuFg",detailInfo:"douGongSchemeTemplate-module_detailInfo__Jz_Lc",detailPreviewButton:"douGongSchemeTemplate-module_detailPreviewButton__5jeiZ",detailPreviewHint:"douGongSchemeTemplate-module_detailPreviewHint__2TUEI",detailPreview:"douGongSchemeTemplate-module_detailPreview__VnC6W",detailGrid:"douGongSchemeTemplate-module_detailGrid__3lbSq",detailLabel:"douGongSchemeTemplate-module_detailLabel__3J5WH",tableNote:"douGongSchemeTemplate-module_tableNote__3D8p2",roomRow:"douGongSchemeTemplate-module_roomRow__31qry",roomCell:"douGongSchemeTemplate-module_roomCell__ZJpvG",roomHeader:"douGongSchemeTemplate-module_roomHeader__2uRoK",roomEmpty:"douGongSchemeTemplate-module_roomEmpty__24gXy",sideList:"douGongSchemeTemplate-module_sideList__3ICY7",sideRow:"douGongSchemeTemplate-module_sideRow__16PhL",sideEmpty:"douGongSchemeTemplate-module_sideEmpty__3y7N_",imagePreviewOverlay:"douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F",imagePreviewMask:"douGongSchemeTemplate-module_imagePreviewMask__7DYDG",imagePreviewPanel:"douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw",imagePreviewHeader:"douGongSchemeTemplate-module_imagePreviewHeader__reK51",imagePreviewTitle:"douGongSchemeTemplate-module_imagePreviewTitle__2yrsg",imagePreviewClose:"douGongSchemeTemplate-module_imagePreviewClose__302ry",imagePreviewBody:"douGongSchemeTemplate-module_imagePreviewBody__3bvip",imagePreviewMeta:"douGongSchemeTemplate-module_imagePreviewMeta__1Yfha",imagePreviewViewport:"douGongSchemeTemplate-module_imagePreviewViewport__32Vv9",imagePreviewViewportDragging:"douGongSchemeTemplate-module_imagePreviewViewportDragging__zJ7O-",imagePreviewImage:"douGongSchemeTemplate-module_imagePreviewImage__2c8eK",imagePreviewHint:"douGongSchemeTemplate-module_imagePreviewHint__2S7_k",imagePreviewFooter:"douGongSchemeTemplate-module_imagePreviewFooter__1vWfa",imagePreviewFooterButton:"douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt",imagePreviewOverlayOpen:"douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6",tinyTagWarn:"douGongSchemeTemplate-module_tinyTagWarn__3sn-j",tinyTagPending:"douGongSchemeTemplate-module_tinyTagPending__12CgZ",modalOverlay:"douGongSchemeTemplate-module_modalOverlay__1C-cc",modalMask:"douGongSchemeTemplate-module_modalMask__3A1yT",modalPanel:"douGongSchemeTemplate-module_modalPanel__2FV74",modalPanelOpen:"douGongSchemeTemplate-module_modalPanelOpen__5HYe-",modalHeader:"douGongSchemeTemplate-module_modalHeader__20Ezx",modalTitle:"douGongSchemeTemplate-module_modalTitle__2Ho1E",modalClose:"douGongSchemeTemplate-module_modalClose__36Aoz",modalBody:"douGongSchemeTemplate-module_modalBody__S30fF",modalText:"douGongSchemeTemplate-module_modalText__3GpW0",modalNotice:"douGongSchemeTemplate-module_modalNotice__2a08n",warnNotice:"douGongSchemeTemplate-module_warnNotice__2gdpe",modalMetaGrid:"douGongSchemeTemplate-module_modalMetaGrid__1b9uH",modalMetaLabel:"douGongSchemeTemplate-module_modalMetaLabel__1meX8",modalMetaValue:"douGongSchemeTemplate-module_modalMetaValue__3_xcX",modalFooter:"douGongSchemeTemplate-module_modalFooter__1WwN5",modalSecondaryButton:"douGongSchemeTemplate-module_modalSecondaryButton__1FbtV",modalOverlayOpen:"douGongSchemeTemplate-module_modalOverlayOpen__FnhSv"};je(".douGongSchemeTemplate-module_page__3FenY{height:100%;min-height:0;overflow:auto;background:#f5f5f7;color:#000f2c;font-size:14px}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7{padding:16px;height:100%;min-height:0;display:flex;flex-direction:column;font-family:PingFang SC,Microsoft YaHei,sans-serif;box-sizing:border-box}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_listPane__2vLv-{flex:1;min-height:0;overflow:auto}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_listPaneHidden__1FlxT{display:none}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR{height:49px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #eee;border-radius:8px 8px 0 0}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_topSearch__apeWw{width:320px;max-width:100%;height:32px;padding:0 12px;border:none;outline:none;border-radius:6px;background:#f0f2f5;color:#000f2c}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_topRight__nL1I5{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_readonlyTag__2Q6Hk{padding:2px 6px;border-radius:6px;background:#e7f3ff;color:#1890ff;font-size:10px;line-height:18px}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_successToast__3wAsJ{position:fixed;top:28px;left:50%;z-index:1100;margin:0;width:-moz-fit-content;width:fit-content;max-width:100%;padding:4px 12px;display:flex;align-items:center;gap:8px;border:none;border-radius:4px;background:#52b41f;color:#fff;font-size:13px;line-height:20px;box-shadow:0 6px 16px rgba(0,0,0,.12);transform:translateX(-50%)}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_successToast__3wAsJ.douGongSchemeTemplate-module_errorToast__2YRAD{background:#e5484d}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq,.douGongSchemeTemplate-module_linkButton__3pWfb,.douGongSchemeTemplate-module_primaryButton__1kTUF,.douGongSchemeTemplate-module_secondaryButton__2P2It,.douGongSchemeTemplate-module_tagButton__1QYbm,.douGongSchemeTemplate-module_tinyTag__waUqq{border:none;outline:none;cursor:pointer;transition:all .18s ease}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:disabled,.douGongSchemeTemplate-module_linkButton__3pWfb:disabled,.douGongSchemeTemplate-module_primaryButton__1kTUF:disabled,.douGongSchemeTemplate-module_secondaryButton__2P2It:disabled,.douGongSchemeTemplate-module_tagButton__1QYbm:disabled{cursor:not-allowed;opacity:.45}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq{height:32px;padding:0 14px;border-radius:6px;border:1px solid #1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:hover{border-color:#1890ff;background:#1890ff;color:#fff}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:disabled:hover{border-color:#1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_primaryButton__1kTUF{height:32px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #1890ff;border-radius:4px;background:#1890ff;color:#fff;font-size:13px;font-weight:500;white-space:nowrap}.douGongSchemeTemplate-module_primaryButton__1kTUF:hover{border-color:#1890ff;background:#1890ff}.douGongSchemeTemplate-module_secondaryButton__2P2It{height:32px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(115,123,139,.4);border-radius:6px;background:#fff;color:#737b8b;font-size:14px;line-height:22px;font-weight:400;white-space:nowrap}.douGongSchemeTemplate-module_secondaryButton__2P2It:hover{border-color:#1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5{min-height:40px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3{min-width:0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3 .douGongSchemeTemplate-module_pageTitle__2SHpl{margin:0;color:#000f2c;font-size:14px;line-height:20px;font-weight:500}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3 .douGongSchemeTemplate-module_pageDesc__46Bk9{margin:2px 0 0;font-size:12px;line-height:18px;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u{margin-top:16px;display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V{position:relative}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchIcon__2Zb5l{position:absolute;top:50%;left:12px;z-index:1;transform:translateY(-50%);color:#8b93a5;font-size:16px;pointer-events:none}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchInput__2K_jd{width:240px;max-width:100%;height:32px;padding:0 10px 0 34px;border:1px solid #fff;border-radius:6px;background:#fff;color:#000f2c;font-size:14px;line-height:22px;outline:none}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchInput__2K_jd:focus{border-color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH{display:flex;align-items:center;gap:0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_statusFilterLabel__NfpNT{color:#000;font-size:14px;line-height:22px;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB{position:relative}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0{width:140px;height:32px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #fff;border-radius:4px;background:#fff;color:rgba(0,0,0,.7);cursor:pointer}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0.douGongSchemeTemplate-module_filterTriggerActive__1gpKF{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.08)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0 .douGongSchemeTemplate-module_filterTriggerText__-tyTA{max-width:106px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;line-height:22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0 .douGongSchemeTemplate-module_filterArrowOpen__35EOc{transform:rotate(180deg)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a{position:absolute;top:calc(100% + 6px);left:0;z-index:12;width:140px;padding:5px;display:flex;flex-direction:column;gap:0;border:1px solid rgba(113,125,153,.3);border-radius:4px;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.16)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa{width:100%;min-height:36px;padding:8px 10px;display:flex;align-items:center;border:none;border-radius:4px;background:transparent;text-align:left;color:#616778}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa:hover{background:#f7f8fa;cursor:pointer}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa.douGongSchemeTemplate-module_filterOptionActive__2GDge{background:#f2f3f5;color:#000f2c;font-weight:500}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa .douGongSchemeTemplate-module_filterOptionText__a3LdL{display:block;font-size:14px;line-height:22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp-{display:inline-flex;align-items:center;gap:0;padding:0;border-radius:4px;background:#fff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp- .douGongSchemeTemplate-module_tagButton__1QYbm{height:32px;padding:0 12px;border-radius:4px;background:transparent;color:#737b8b;font-size:13px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp- .douGongSchemeTemplate-module_tagButton__1QYbm.douGongSchemeTemplate-module_tagButtonActive__1MNPi{background:#f0f2f5;color:#000f2c;font-weight:600}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr{height:100px;margin-top:16px;overflow:hidden;border-radius:6px;background:#fff;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowHeader__1rpIs{height:46px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid #f1f3f5;color:#000f2c;font-size:14px;line-height:20px;font-weight:500;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowContent__3WAoV{height:54px;padding:0 16px;display:flex;align-items:center;gap:12px;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowSteps__1F6ma{display:flex;align-items:center;gap:8px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf{height:22px;padding:1px 6px;display:inline-flex;align-items:center;border-radius:4px;font-size:14px;line-height:20px;font-weight:400;white-space:nowrap;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusWaiting__3r1aO{background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusSynced__2Xv40{background:#ecfef6;color:#079669}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusPending__2OsoZ{background:#fdf4d3;color:#d97707}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusLoaded__3y62K{background:#e7f3ff;color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusFailed__2dg_T{background:#fef2f2;color:#dc2626}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowArrow__2bvD7{width:22px;height:22px;display:block;flex:0 0 22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowNote__Vjxx0{color:#737b8b;font-size:12px;line-height:18px;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_{margin-top:16px;border:1px solid #fff;border-radius:6px;background:#fff;overflow:hidden}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66{width:100%}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table{color:#000f2c;font-size:14px;font-weight:400}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-container{border-radius:6px 6px 0 0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar{height:8px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar-track{background:#f5f6f8}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar-thumb{border:2px solid #f5f6f8;border-radius:8px;background:#c5ccd6}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;font-weight:400;line-height:20px;white-space:nowrap;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;background:#fff;color:#000f2c;font-size:14px;line-height:20px;font-weight:400;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-cell-fix-right{background:#fff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-thead .ant-table-cell-fix-right{background:#f0f2f5}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-placeholder .ant-table-cell{height:128px;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-pagination{margin:16px 20px 20px}.douGongSchemeTemplate-module_schemeName__1ceWV,.douGongSchemeTemplate-module_tableCellText__2qFGr{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_schemeName__1ceWV{font-size:14px;line-height:20px}.douGongSchemeTemplate-module_schemeNameCell__2nPKG{min-width:0;display:flex;align-items:center;gap:8px}.douGongSchemeTemplate-module_schemeNameCell__2nPKG .douGongSchemeTemplate-module_schemeName__1ceWV{min-width:0;flex:0 1 auto}.douGongSchemeTemplate-module_schemeNameCell__2nPKG .douGongSchemeTemplate-module_missingReplacementTag__Z9ch8{flex:0 1 auto}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8{max-width:100%;height:22px;padding:0 7px;display:inline-flex;align-items:center;gap:4px;overflow:hidden;border-radius:4px;background:#fff4df;color:#d97707;font-size:12px;line-height:22px;cursor:help}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8 .douGongSchemeTemplate-module_warningIcon__2zRRw{width:14px;height:14px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid;border-radius:50%;font-size:10px;font-weight:600;line-height:12px}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8 .douGongSchemeTemplate-module_missingReplacementText__2zNKu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_actionCell__3nl3R{display:flex;align-items:center;gap:10px;white-space:nowrap}.douGongSchemeTemplate-module_tableEmpty__3Sn9M{min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px}.douGongSchemeTemplate-module_thumbPlaceholder__2CrEd{display:flex;align-items:center;justify-content:center;color:#737b8b;font-size:12px}.douGongSchemeTemplate-module_countTag__1jVo7,.douGongSchemeTemplate-module_detailStatusTag__1XI4X,.douGongSchemeTemplate-module_roomStatusTag__1Y4t9{padding:1px 6px;border-radius:4px;font-size:12px;line-height:20px;white-space:nowrap}.douGongSchemeTemplate-module_statusTag__3DER1{padding:1px 6px;border-radius:4px;font-size:14px;line-height:20px;white-space:nowrap}.douGongSchemeTemplate-module_countSynced__2a7zL,.douGongSchemeTemplate-module_detailStatusPass__2XvB-,.douGongSchemeTemplate-module_roomStatusReady__ybwdf,.douGongSchemeTemplate-module_statusSynced__37Ne1{color:#079669;background:#ecfef6}.douGongSchemeTemplate-module_countMissing__2K--O,.douGongSchemeTemplate-module_detailStatusWarn__-Y94A,.douGongSchemeTemplate-module_statusMissing__2RxH8,.douGongSchemeTemplate-module_statusPending__1ZWi1{color:#d97707;background:#fdf4d3}.douGongSchemeTemplate-module_countFailed__nruJ2,.douGongSchemeTemplate-module_statusFailed__UopKP{color:#dc2626;background:#fef2f2}.douGongSchemeTemplate-module_countPending__27xmW,.douGongSchemeTemplate-module_statusLoaded__12k7U{color:#1890ff;background:#e7f3ff}.douGongSchemeTemplate-module_statusWaitingSync__2jaah{color:#737b8b;background:#f0f2f5}.douGongSchemeTemplate-module_linkButton__3pWfb{padding:0;background:transparent;color:#1890ff;font-size:14px;line-height:20px}.douGongSchemeTemplate-module_linkButtonMuted__2oeN1{color:#737b8b}.douGongSchemeTemplate-module_inlineRetryButton__3Vw7_{margin-left:10px;padding:0;border:none;background:transparent;color:#1890ff;cursor:pointer}.douGongSchemeTemplate-module_paginationInfo__1YZsz{margin-top:10px;color:#737b8b;font-size:12px;line-height:18px;text-align:right}.douGongSchemeTemplate-module_detailPage__qtPSM{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_breadcrumb__c_H9-{display:flex;align-items:center;gap:4px;font-size:13px;color:#737b8b}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_breadcrumb__c_H9- .douGongSchemeTemplate-module_backButton__tVGM2{padding:0;display:inline-flex;align-items:center;gap:3px;border:none;background:transparent;color:#737b8b;cursor:pointer}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj{margin-top:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj .douGongSchemeTemplate-module_detailTitle__xXzXb{margin:0;font-size:16px;line-height:22px;font-weight:600}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj .douGongSchemeTemplate-module_detailMeta__2vP9V{margin-top:3px;color:#737b8b;font-size:12px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailNotice__16CrR{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fff;color:#737b8b;font-size:13px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR{flex:1;min-height:0;margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:stretch}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailMain__29q-l{min-height:0;overflow:auto}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailCard__394jb,.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug,.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N{border-radius:12px;background:#fff;overflow:hidden}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_cardTitle__3yuFg{padding:14px 16px 10px;font-size:14px;font-weight:600}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc{padding:0 16px 16px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreviewButton__5jeiZ{position:relative;width:260px;height:146px;padding:0;overflow:hidden;border:none;border-radius:6px;background:#f0f2f5;cursor:zoom-in}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreviewButton__5jeiZ .douGongSchemeTemplate-module_detailPreviewHint__2TUEI{position:absolute;right:2px;bottom:2px;height:21px;padding:0 2px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:rgba(0,0,0,.8);color:#fff;font-size:14px;line-height:20px;white-space:nowrap;pointer-events:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreview__VnC6W{width:100%;height:100%;display:block;border-radius:6px;-o-object-fit:cover;object-fit:cover;background:#f0f2f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreview__VnC6W.douGongSchemeTemplate-module_thumbPlaceholder__2CrEd{display:flex}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailGrid__3lbSq{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px 16px;align-items:center;font-size:14px;line-height:20px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailGrid__3lbSq .douGongSchemeTemplate-module_detailLabel__3J5WH{color:#737b8b}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug{margin-top:12px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_tableNote__3D8p2{margin-left:auto;color:#a0a5b3;font-size:12px;font-weight:400}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry{display:grid;grid-template-columns:1fr 1fr 1fr 1fr}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry:last-child .douGongSchemeTemplate-module_roomCell__ZJpvG{border-bottom:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry .douGongSchemeTemplate-module_roomCell__ZJpvG{padding:11px 14px;border-bottom:1px solid #f1f3f5;font-size:12px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry .douGongSchemeTemplate-module_roomCell__ZJpvG.douGongSchemeTemplate-module_roomHeader__2uRoK{background:#f0f2f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomEmpty__24gXy{padding:24px 16px;color:#737b8b;font-size:12px;line-height:18px;text-align:center}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N{display:flex;flex-direction:column;min-height:0}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_cardTitle__3yuFg{flex:0 0 auto}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideList__3ICY7{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideRow__16PhL{padding:0 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px;gap:12px;border-bottom:1px solid #f1f3f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideRow__16PhL:last-child{border-bottom:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideEmpty__3y7N_{padding:24px 16px;color:#737b8b;font-size:12px;line-height:18px;text-align:center}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F{position:fixed;inset:0;z-index:1200;font-family:PingFang SC,Microsoft YaHei,sans-serif}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewMask__7DYDG{position:absolute;inset:0;background:rgba(18,28,42,.3);opacity:0;transition:opacity .18s ease}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{position:absolute;left:50%;top:50%;width:800px;height:760px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:hidden;border-radius:12px;background:#fff;opacity:0;transform:translate(-50%,-50%) scale(.96);transition:opacity .18s ease,transform .18s ease}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewHeader__reK51{height:52px;padding:0 16px 0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewTitle__2yrsg{color:#000;font-size:16px;line-height:20px;font-weight:600}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewClose__302ry{width:28px;height:28px;padding:0;border:none;background:transparent;color:#737b8b;font-size:16px;cursor:pointer}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewBody__3bvip{height:644px;padding:12px 24px 24px;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewMeta__1Yfha{height:23px;margin:0;overflow:hidden;color:#737b8b;font-size:14px;line-height:23px;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9{position:relative;width:100%;height:573px;margin-top:12px;overflow:hidden;border-radius:12px;background:#f5f5f7;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9.douGongSchemeTemplate-module_imagePreviewViewportDragging__zJ7O-{cursor:grabbing}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewImage__2c8eK{width:100%;height:100%;display:block;-o-object-fit:cover;object-fit:cover;transform-origin:center;transition:transform .08s ease-out;pointer-events:none}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewHint__2S7_k{position:absolute;left:50%;bottom:32px;height:32px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;border:1px solid hsla(0,0%,100%,.16);border-radius:100px;background:rgba(0,0,0,.6);color:#fff;font-size:14px;line-height:20px;white-space:nowrap;transform:translateX(-50%);pointer-events:none;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooter__1vWfa{height:64px;padding-right:24px;display:flex;align-items:center;justify-content:flex-end;border-top:1px solid #dde1e6;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt{height:32px;padding:0 16px;border:1px solid #717d99;border-radius:4px;background:#fff;color:#737b8b;font-size:14px;line-height:22px;cursor:pointer}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt:hover{border-color:#1890ff;color:#1890ff}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F.douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6 .douGongSchemeTemplate-module_imagePreviewMask__7DYDG{opacity:1}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F.douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6 .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{opacity:1;transform:translate(-50%,-50%) scale(1)}.douGongSchemeTemplate-module_tinyTag__waUqq{height:22px;padding:0 6px;border-radius:4px;background:#e7f3ff;color:#1890ff;font-size:12px;line-height:22px}.douGongSchemeTemplate-module_tinyTag__waUqq.douGongSchemeTemplate-module_tinyTagWarn__3sn-j{background:#fff4df;color:#f59e0b}.douGongSchemeTemplate-module_tinyTag__waUqq.douGongSchemeTemplate-module_tinyTagPending__12CgZ{background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc{position:fixed;inset:0;z-index:1000}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalMask__3A1yT{position:absolute;inset:0;background:rgba(18,28,42,.3)}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74{position:absolute;left:50%;top:50%;max-width:calc(100vw - 32px);border-radius:10px;background:#fff;overflow:hidden;transform:translate(-50%,-50%) scale(.96);opacity:0;transition:transform .18s ease,opacity .18s ease}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74.douGongSchemeTemplate-module_modalPanelOpen__5HYe-{transform:translate(-50%,-50%) scale(1);opacity:1}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx{height:48px;padding:0 16px 0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx .douGongSchemeTemplate-module_modalTitle__2Ho1E{font-size:15px;line-height:20px;font-weight:600;color:#000}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx .douGongSchemeTemplate-module_modalClose__36Aoz{width:28px;height:28px;border:none;background:transparent;color:#737b8b;cursor:pointer}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF{padding:18px 24px 20px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalText__3GpW0{margin:0;color:#737b8b;font-size:13px;line-height:21px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalNotice__2a08n,.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_warnNotice__2gdpe{min-height:40px;padding:8px 12px 8px 10px;display:flex;align-items:center;gap:6px;border-radius:4px;font-size:12px;line-height:22px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalNotice__2a08n{margin-top:16px;background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_warnNotice__2gdpe{margin-top:0;background:rgba(250,173,20,.1);color:#f07618}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH{margin-top:24px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px 0;font-size:14px;line-height:24px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH .douGongSchemeTemplate-module_modalMetaLabel__1meX8{color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH .douGongSchemeTemplate-module_modalMetaValue__3_xcX{color:#000;word-break:break-all}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5{min-height:60px;padding:14px 24px;display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #dde1e6}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5 .douGongSchemeTemplate-module_modalSecondaryButton__1FbtV{height:32px;padding:0 14px;border:1px solid #cfd5df;border-radius:4px;background:#fff;color:#5f6878;font-size:13px;cursor:pointer}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5 .douGongSchemeTemplate-module_modalSecondaryButton__1FbtV:disabled{cursor:not-allowed;opacity:.5}.douGongSchemeTemplate-module_modalOverlay__1C-cc.douGongSchemeTemplate-module_modalOverlayOpen__FnhSv .douGongSchemeTemplate-module_modalPanel__2FV74{transform:translate(-50%,-50%) scale(1);opacity:1}@media (max-width:1200px){.douGongSchemeTemplate-module_detailLayout__3mEQR{grid-template-columns:1fr;overflow:auto}}@media (max-height:791px){.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{height:calc(100vh - 32px)}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewBody__3bvip{height:calc(100vh - 148px)}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9{height:calc(100vh - 219px)}}@media (max-width:900px){.douGongSchemeTemplate-module_detailHeader__3Seoj,.douGongSchemeTemplate-module_headerSection__3EeK5,.douGongSchemeTemplate-module_topBar__LDIKR{align-items:stretch;flex-direction:column}.douGongSchemeTemplate-module_filterTrigger__3CTf0,.douGongSchemeTemplate-module_searchInput__2K_jd,.douGongSchemeTemplate-module_toolbarLeft__2fPEX{width:100%}.douGongSchemeTemplate-module_searchWrap__18O1V,.douGongSchemeTemplate-module_statusFilterGroup__3eurH{flex:1 1 100%}.douGongSchemeTemplate-module_filterWrap__3I8mB,.douGongSchemeTemplate-module_statusFilterGroup__3eurH{width:100%}.douGongSchemeTemplate-module_quickTabs__31Fp-{width:100%;justify-content:flex-start;overflow-x:auto}.douGongSchemeTemplate-module_detailInfo__Jz_Lc{grid-template-columns:1fr}.douGongSchemeTemplate-module_detailPreview__VnC6W{width:100%;height:180px}}@media (max-width:640px){.douGongSchemeTemplate-module_container__28Kh7{padding:12px}.douGongSchemeTemplate-module_detailTitle__xXzXb{font-size:18px;line-height:26px}.douGongSchemeTemplate-module_roomRow__31qry{min-width:560px}.douGongSchemeTemplate-module_modalBody__S30fF,.douGongSchemeTemplate-module_modalFooter__1WwN5{padding-left:16px;padding-right:16px}.douGongSchemeTemplate-module_modalHeader__20Ezx{padding-left:16px}.douGongSchemeTemplate-module_modalFooter__1WwN5{gap:12px}}");function Or(e){var t=e.visible,a=e.scheme,r=e.onClose,o=e.onImageError,i=Ge(n.useState(t),2),l=i[0],s=i[1],d=Ge(n.useState(t),2),c=d[0],u=d[1],m=Ge(n.useState(1),2),p=m[0],f=m[1],h=Ge(n.useState({x:0,y:0}),2),_=h[0],g=h[1],v=Ge(n.useState(!1),2),y=v[0],x=v[1],b=n.useRef(null);if(n.useEffect(function(){var e=null;return t?(s(!0),f(1),g({x:0,y:0}),e=window.setTimeout(function(){return u(!0)},10)):l&&(u(!1),e=window.setTimeout(function(){s(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,l]),n.useEffect(function(){if(l){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&r&&r()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[r,l]),n.useEffect(function(){if(y){var e=function(e){if(b.current){var t=b.current;g({x:t.offsetX+e.clientX-t.startX,y:t.offsetY+e.clientY-t.startY})}},t=function(){b.current=null,x(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}},[y]),!l||!a||!a.thumbnail)return null;return fe.default.createPortal(V.default.createElement("div",{className:"".concat(Fr.imagePreviewOverlay," ").concat(c?Fr.imagePreviewOverlayOpen:"")},V.default.createElement("div",{className:Fr.imagePreviewMask,onClick:r}),V.default.createElement("div",{className:"".concat(Fr.imagePreviewPanel," ").concat(c?Fr.imagePreviewPanelOpen:""),role:"dialog","aria-modal":"true","aria-label":"户型图预览"},V.default.createElement("div",{className:Fr.imagePreviewHeader},V.default.createElement("span",{className:Fr.imagePreviewTitle},"户型图预览"),V.default.createElement("button",{type:"button",className:Fr.imagePreviewClose,onClick:r,"aria-label":"关闭户型图预览"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Fr.imagePreviewBody},V.default.createElement("p",{className:Fr.imagePreviewMeta},"".concat(a.name||"--"," · 方案 ID:").concat(a.id||"--")),V.default.createElement("div",{className:"".concat(Fr.imagePreviewViewport," ").concat(y?Fr.imagePreviewViewportDragging:""),onWheel:function(e){e.preventDefault();var t=Math.min(4,Math.max(1,p+(0>e.deltaY?.15:-.15)));f(t),1===t&&g({x:0,y:0})},onMouseDown:function(e){0===e.button&&1!==p&&(b.current={startX:e.clientX,startY:e.clientY,offsetX:_.x,offsetY:_.y},x(!0))}},V.default.createElement("img",{src:a.thumbnail,alt:a.name,className:Fr.imagePreviewImage,style:{transform:"translate(".concat(_.x,"px, ").concat(_.y,"px) scale(").concat(p,")")},draggable:!1,onError:o}),V.default.createElement("span",{className:Fr.imagePreviewHint},"滚轮缩放 · 拖拽平移"))),V.default.createElement("div",{className:Fr.imagePreviewFooter},V.default.createElement("button",{type:"button",className:Fr.imagePreviewFooterButton,onClick:r},"关闭")))),document.body)}function Hr(e){var t=e.scheme,a=e.loading,r=e.error,o=e.onBack,i=e.onOpenRender,l=e.onRetry,s=Ge(n.useState(!1),2),d=s[0],c=s[1],u=Ge(n.useState(!1),2),m=u[0],p=u[1];if(!t)return null;var f="matched"===t.defaultModelStatus?{label:"匹配通过",className:Fr.detailStatusPass}:{label:"缺可替换项",className:Fr.detailStatusWarn};return V.default.createElement("div",{className:Fr.detailPage},V.default.createElement("div",{className:Fr.breadcrumb},V.default.createElement("button",{type:"button",className:Fr.backButton,onClick:o},V.default.createElement(S.LeftOutlined,null),V.default.createElement("span",null,"返回列表")),V.default.createElement("span",null,"/"),V.default.createElement("span",null,"方案详情")),V.default.createElement("div",{className:Fr.detailHeader},V.default.createElement("div",null,V.default.createElement("h2",{className:Fr.detailTitle},t.name),V.default.createElement("div",{className:Fr.detailMeta},"方案 ID:".concat(t.id," · ").concat(t.city||"--"," / ").concat(t.community||"--"," · 场景地址:").concat(t.sceneUrl||"--"))),V.default.createElement("button",{type:"button",className:Fr.primaryButton,onClick:function(){return i(t)}},"打开渲染平台")),a?V.default.createElement("div",{className:Fr.detailNotice},"方案详情加载中..."):null,!a&&r?V.default.createElement("div",{className:Fr.detailNotice},r,V.default.createElement("button",{type:"button",className:Fr.inlineRetryButton,onClick:function(){return l(t)}},"重新加载")):null,V.default.createElement("div",{className:Fr.detailLayout},V.default.createElement("div",{className:Fr.detailMain},V.default.createElement("div",{className:Fr.detailCard},V.default.createElement("div",{className:Fr.cardTitle},"方案信息"),V.default.createElement("div",{className:Fr.detailInfo},t.thumbnail&&!d?V.default.createElement("button",{type:"button",className:Fr.detailPreviewButton,onClick:function(){return p(!0)},"aria-label":"放大查看".concat(t.name||"","户型图")},V.default.createElement("img",{src:t.thumbnail,alt:t.name,className:Fr.detailPreview,onError:function(){return c(!0)}}),V.default.createElement("span",{className:Fr.detailPreviewHint},"点击放大")):V.default.createElement("div",{className:"".concat(Fr.detailPreview," ").concat(Fr.thumbPlaceholder)},"暂无截图"),V.default.createElement("div",{className:Fr.detailGrid},V.default.createElement("span",{className:Fr.detailLabel},"方案 ID"),V.default.createElement("span",null,t.id),V.default.createElement("span",{className:Fr.detailLabel},"城市 / 小区"),V.default.createElement("span",null,"".concat(t.city||"--"," / ").concat(t.community||"--")),V.default.createElement("span",{className:Fr.detailLabel},"户型"),V.default.createElement("span",null,t.houseType),V.default.createElement("span",{className:Fr.detailLabel},"默认模型"),V.default.createElement("span",{className:"".concat(Fr.detailStatusTag," ").concat(f.className)},f.label)))),V.default.createElement("div",{className:Fr.roomsCard},V.default.createElement("div",{className:Fr.cardTitle},"房间列表",V.default.createElement("span",{className:Fr.tableNote},"来自斗拱接口")),V.default.createElement("div",{className:Fr.tableScroll},V.default.createElement("div",{className:Fr.roomRow},V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"房间"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"空间标识"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"构件数量"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"加载状态")),t.rooms&&t.rooms.length?t.rooms.map(function(e){var t=function(e){return"ready"===e?{label:"可加载",className:Fr.roomStatusReady}:{label:"待处理",className:Fr.detailStatusWarn}}(e.status);return V.default.createElement("div",{key:e.id||e.name,className:Fr.roomRow},V.default.createElement("div",{className:Fr.roomCell},e.name),V.default.createElement("div",{className:Fr.roomCell,title:e.info||"--"},e.info||"--"),V.default.createElement("div",{className:Fr.roomCell},e.count),V.default.createElement("div",{className:Fr.roomCell},V.default.createElement("span",{className:"".concat(Fr.roomStatusTag," ").concat(t.className)},t.label)))}):V.default.createElement("div",{className:Fr.roomEmpty},"暂无房间数据")))),V.default.createElement("div",{className:Fr.sideCard},V.default.createElement("div",{className:Fr.cardTitle},"三级分类构件"),V.default.createElement("div",{className:Fr.sideList},t.components&&t.components.length?t.components.map(function(e){return V.default.createElement("div",{key:e.id||e.name,className:Fr.sideRow},V.default.createElement("span",null,e.name),V.default.createElement("span",{className:"".concat(Fr.tinyTag," ").concat("warn"===e.tagType?Fr.tinyTagWarn:"pending"===e.tagType?Fr.tinyTagPending:"")},e.tag))}):V.default.createElement("div",{className:Fr.sideEmpty},"暂无构件数据")))),V.default.createElement(Or,{visible:m,scheme:t,onClose:function(){return p(!1)},onImageError:function(){c(!0),p(!1)}}))}var Vr="data:image/svg+xml,%3Csvg%20preserveAspectRatio%3D%22none%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Frame%201435784736%22%20opacity%3D%220.5%22%3E%3Cpath%20id%3D%22Vector%201325%22%20d%3D%22M4%2011C4.4%2011%2013.1667%2011%2018%2011%22%20stroke%3D%22%23737B8B%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20id%3D%22Vector%201326%22%20d%3D%22M13.5%207L17.8203%2010.8403C17.9138%2010.9233%2017.9089%2011.0708%2017.8102%2011.1476L13.5%2014.5%22%20stroke%3D%22%23737B8B%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";function jr(e){var t=e.visible,a=e.title,r=e.width,o=e.footer,i=e.onClose,l=e.children,s=Ge(n.useState(t),2),d=s[0],c=s[1],u=Ge(n.useState(t),2),m=u[0],p=u[1];return n.useEffect(function(){var e=null;return t?(c(!0),e=window.setTimeout(function(){p(!0)},10)):d&&(p(!1),e=window.setTimeout(function(){c(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,d]),n.useEffect(function(){if(d){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&i&&i()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[d,i]),d?fe.default.createPortal(V.default.createElement("div",{className:"".concat(Fr.modalOverlay," ").concat(m?Fr.modalOverlayOpen:"")},V.default.createElement("div",{className:Fr.modalMask,onClick:i}),V.default.createElement("div",{className:"".concat(Fr.modalPanel," ").concat(m?Fr.modalPanelOpen:""),style:{width:r||576}},V.default.createElement("div",{className:Fr.modalHeader},V.default.createElement("span",{className:Fr.modalTitle},a),V.default.createElement("button",{type:"button",className:Fr.modalClose,onClick:i,"aria-label":"关闭弹窗"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Fr.modalBody},l),o?V.default.createElement("div",{className:Fr.modalFooter},o):null)),document.body):null}function Wr(e){var t=e.syncing,a=e.onClose,n=e.onConfirm;return V.default.createElement(jr,{visible:e.visible,title:"同步斗拱方案",width:576,onClose:a,footer:V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:Fr.modalSecondaryButton,onClick:a,disabled:t},"取消"),V.default.createElement("button",{type:"button",className:Fr.primaryButton,onClick:n,disabled:t},t?"同步中...":"开始同步"))},V.default.createElement("p",{className:Fr.modalText},"从斗拱接收方案 ID、缩略图、城市、小区、户型、房间列表、一级分类构件、 构件位置/姿态和场景数据地址。"),V.default.createElement("div",{className:Fr.modalNotice},V.default.createElement(S.InfoCircleOutlined,null),V.default.createElement("span",null,"工作台只接收和展示斗拱方案,不向斗拱回写替换结果。")))}var qr=[{value:"all",label:"全部"},{value:"synced",label:"已同步"},{value:"pending",label:"待加载"},{value:"missingDefault",label:"缺默认模型"},{value:"failed",label:"加载失败"}],Kr={all:"全部",synced:"已同步",pending:"待加载",missingDefault:"缺默认模型",failed:"加载失败"},Xr={synced:1,pending:2,missingDefault:4,failed:3};function Yr(e){var t=e.active,a=e.schemes,r=e.pagination,o=e.loading,i=e.error,l=e.initialPageNo,s=e.onFetch,d=e.onClearReturnPage,c=e.onViewDetail,u=e.onOpenRender,m=e.onToast,p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState("all"),2),g=_[0],v=_[1],y=Ge(n.useState(!1),2),x=y[0],b=y[1],M=Ge(n.useState(!1),2),w=M[0],T=M[1],E=Ge(n.useState(!1),2),C=E[0],N=E[1],L=Ge(n.useState(240),2),k=L[0],I=L[1],P=n.useRef(null),A=n.useRef(null),R=n.useRef(l||1);n.useEffect(function(){var e=R.current||1;R.current=1,l&&d();var t=window.setTimeout(function(){s({pageNo:e,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]})},300);return function(){return window.clearTimeout(t)}},[r.pageSize,f,g]),n.useEffect(function(){if(x){var e=function(e){P.current&&!P.current.contains(e.target)&&b(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[x]);var D=n.useMemo(function(){var e=f.trim().toLowerCase();return a.filter(function(t){return(!e||[t.name,t.id,t.city,t.community,t.houseType,t.spaces,t.area,t.componentCount,t.syncTime].join(" ").toLowerCase().indexOf(e)>-1)&&("all"===g||t.status===g)})},[a,f,g]);n.useEffect(function(){if(t){var e=function(){if(A.current){var e=A.current.getBoundingClientRect().top;I(Math.max(240,Math.floor(window.innerHeight-e-128)))}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[t,o,D.length]);var z=function(){var e=we(ze().m(function e(){var t,n,o,i,l;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!C){e.n=1;break}return e.a(2);case 1:return N(!0),t=r.totalSize||a.length,e.p=2,e.n=3,s({pageNo:1,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]});case 3:if((o=e.v)&&200===o.code&&!1!==o.success){e.n=4;break}throw Error(o&&o.message||"同步失败,请稍后重试");case 4:i=Number((null==o||null===(n=o.value)||void 0===n?void 0:n.totalSize)||t),l=Math.max(0,i-t),T(!1),m(l>0?"同步完成:新增 ".concat(l," 个斗拱方案"):"同步完成:暂无新增斗拱方案",!1),e.n=6;break;case 5:e.p=5,m(e.v.message||"同步失败,请稍后重试",!0);case 6:return e.p=6,N(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),U=[{title:"方案模版名称",dataIndex:"name",width:361,render:function(e,t){var a=t.missingReplacementClassifyNames||[],n=a.length?"缺可替换项(".concat(a.join("、"),")"):"缺可替换项";return V.default.createElement("div",{className:Fr.schemeNameCell},V.default.createElement("span",{className:Fr.schemeName,title:e||"--"},e||"--"),t.hasMissingReplacement?V.default.createElement(ne.default,{title:n,placement:"topLeft"},V.default.createElement("span",{className:Fr.missingReplacementTag},V.default.createElement("span",{className:Fr.warningIcon},"!"),V.default.createElement("span",{className:Fr.missingReplacementText},a.length>1?"缺可替换项(".concat(a.length,")"):n))):null)}},{title:"方案模板ID",dataIndex:"templateId",width:249,ellipsis:!0,render:function(e,t){return V.default.createElement("span",{className:Fr.tableCellText,title:e||t.id||"--"},e||t.id||"--")}},{title:"版本",dataIndex:"version",width:82,render:function(e){return e||"--"}},{title:"状态",dataIndex:"status",width:106,render:function(e){var t,a=(t={synced:{label:"已同步",className:Fr.statusSynced},failed:{label:"加载失败",className:Fr.statusFailed},pending:{label:"待加载",className:Fr.statusPending},loaded:{label:"已加载",className:Fr.statusLoaded},waitingSync:{label:"待同步",className:Fr.statusWaitingSync},syncFailed:{label:"同步失败",className:Fr.statusFailed},missingDefault:{label:"缺默认模型",className:Fr.statusMissing}})[e]||t.pending;return V.default.createElement("span",{className:"".concat(Fr.statusTag," ").concat(a.className)},a.label)}},{title:"同步时间",dataIndex:"syncTime",width:238,ellipsis:!0,render:function(e){return V.default.createElement("span",{className:Fr.tableCellText,title:e||"--"},e||"--")}},{title:"操作",key:"actions",width:166,fixed:"right",render:function(e,t){return V.default.createElement("div",{className:Fr.actionCell},V.default.createElement("button",{type:"button",className:Fr.linkButton,onClick:function(){return c(t)}},"查看详情"),V.default.createElement("button",{type:"button",className:Fr.linkButton,onClick:function(){return u(t)}},"打开渲染"))}}],B=i?V.default.createElement("div",{className:Fr.tableEmpty},V.default.createElement("span",null,i),V.default.createElement("button",{type:"button",className:Fr.inlineRetryButton,onClick:function(){return s({pageNo:r.pageNo||1,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]})}},"重新加载")):"暂无符合条件的斗拱方案",G=r.totalSize||0;return V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Fr.headerSection},V.default.createElement("div",{className:Fr.titleBlock},V.default.createElement("h2",{className:Fr.pageTitle},"斗拱方案模版"),V.default.createElement("p",{className:Fr.pageDesc},"来自斗拱的设计方案母版,只读不可修改。选择后打开到渲染平台进行展示和替换。")),V.default.createElement("button",{type:"button",className:Fr.secondaryButton,onClick:function(){return T(!0)}},V.default.createElement(S.SyncOutlined,null),"同步斗拱方案")),V.default.createElement("div",{className:Fr.toolbar},V.default.createElement("div",{className:Fr.toolbarLeft},V.default.createElement("div",{className:Fr.searchWrap},V.default.createElement(S.SearchOutlined,{className:Fr.searchIcon}),V.default.createElement("input",{value:f,onChange:function(e){return h(e.target.value)},className:Fr.searchInput,placeholder:"搜索方案ID/名称"})),V.default.createElement("div",{className:Fr.statusFilterGroup},V.default.createElement("span",{className:Fr.statusFilterLabel},"状态:"),V.default.createElement("div",{className:Fr.filterWrap,ref:P},V.default.createElement("button",{type:"button",className:"".concat(Fr.filterTrigger," ").concat(x?Fr.filterTriggerActive:""),onClick:function(){return b(function(e){return!e})}},V.default.createElement("span",{className:Fr.filterTriggerText},Kr[g]),V.default.createElement(S.DownOutlined,{className:x?Fr.filterArrowOpen:""})),x?V.default.createElement("div",{className:Fr.filterMenu},qr.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",className:"".concat(Fr.filterOption," ").concat(e.value===g?Fr.filterOptionActive:""),onClick:function(){v(e.value),b(!1)}},V.default.createElement("span",{className:Fr.filterOptionText},e.label))})):null)))),V.default.createElement("div",{className:Fr.statusFlowCard},V.default.createElement("div",{className:Fr.statusFlowHeader},"状态流转说明"),V.default.createElement("div",{className:Fr.statusFlowContent},V.default.createElement("div",{className:Fr.statusFlowSteps},V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusWaiting)},"待同步"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusSynced)},"已同步"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusPending)},"待加载"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusLoaded)},"已加载"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusFailed)},"加载失败")),V.default.createElement("span",{className:Fr.statusFlowNote},"自动导入验证后回写状态"))),V.default.createElement("div",{ref:A,className:Fr.tableCard},V.default.createElement(he.default,{className:Fr.schemeTable,columns:U,dataSource:i?[]:D,rowKey:"id",loading:{spinning:o,tip:"斗拱方案加载中..."},locale:{emptyText:B},pagination:!i&&G>(r.pageSize||20)&&{current:r.pageNo||1,pageSize:r.pageSize||20,total:G,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}},onChange:function(e){return s({pageNo:e.current,pageSize:e.pageSize,condition:f.trim(),status:Xr[g]})},scroll:{x:1202,y:k},size:"small",tableLayout:"fixed"})),V.default.createElement(Wr,{visible:w,syncing:C,onClose:function(){C||T(!1)},onConfirm:z}))}function Zr(e){var t=new URLSearchParams;return t.set("mode","render"),t.set("schemeId",e.schemeId),t.set("sourceId",e.id),t.set("returnPath","/douGongSchemeTemplate"),"?"+t}var Qr=a.connect(function(e){return{schemeWorkbench:e.schemeWorkbench}})(function(e){var t=e.dispatch,a=e.schemeWorkbench,r=a.douGongSchemes,o=a.douGongPagination,i=a.douGongReturnPageNo,l=a.douGongLoading,s=a.douGongError,d=a.douGongDetailLoading,u=a.douGongDetailError,m=Ge(n.useState(""),2),p=m[0],f=m[1],h=Ge(n.useState({text:"",error:!1}),2),_=h[0],g=h[1];n.useEffect(function(){if(_.text){var e=window.setTimeout(function(){return g({text:"",error:!1})},3e3);return function(){return window.clearTimeout(e)}}},[_.text]);var v=n.useMemo(function(){return r.find(function(e){return e.id===p})||null},[p,r]),y=function(e){f(e.id),t({type:"schemeWorkbench/fetchDouGongSchemeDetail",payload:{schemeId:e.id}})},x=function(e){t({type:"schemeWorkbench/updateState",payload:{douGongRenderPageNo:o.pageNo||1}}),window.dispatchEvent(new CustomEvent("onDecoratePageChange",{detail:{path:"/myScheme",title:"平台方案"}})),t(c.routerRedux.push({pathname:"/myScheme",search:Zr(e)}))};return V.default.createElement("div",{className:Fr.page},V.default.createElement("div",{className:Fr.container},V.default.createElement("div",{className:"".concat(Fr.listPane," ").concat(p?Fr.listPaneHidden:"")},V.default.createElement(Yr,{active:!p,schemes:r,pagination:o,loading:l,error:s,initialPageNo:i,onFetch:function(e){return t({type:"schemeWorkbench/fetchDouGongSchemes",payload:e})},onClearReturnPage:function(){return t({type:"schemeWorkbench/updateState",payload:{douGongReturnPageNo:null}})},onViewDetail:y,onOpenRender:x,onToast:function(e,t){return g({text:e,error:t})}})),p?V.default.createElement(Hr,{scheme:v,loading:d,error:u,onBack:function(){return f("")},onOpenRender:x,onRetry:y}):null),_.text?V.default.createElement("div",{className:"".concat(Fr.successToast," ").concat(_.error?Fr.errorToast:""),role:"status"},V.default.createElement(S.CheckCircleFilled,null),V.default.createElement("span",null,_.text)):null)}),Jr=["containerClassName","scroll"],$r=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).wrapRef=null,e.resizeObserver=null,e.frame=null,e.state={scrollY:void 0},e.setWrapRef=function(t){e.wrapRef=t},e.scheduleUpdate=function(){e.frame&&window.cancelAnimationFrame(e.frame),e.frame=window.requestAnimationFrame(function(){e.frame=null,e.updateScrollY()})},e.updateScrollY=function(){var t=e.wrapRef;if(t){var a=t.querySelector(".ant-table-thead"),n=t.querySelector(".ant-pagination"),r=a?a.getBoundingClientRect().height:0,o=0;if(n){var i=window.getComputedStyle(n);o=n.getBoundingClientRect().height+parseFloat(i.marginTop||0)+parseFloat(i.marginBottom||0)}var l=Math.floor(t.clientHeight-r-o);l>0&&l!==e.state.scrollY&&e.setState({scrollY:l})}},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.scheduleUpdate),this.wrapRef&&window.ResizeObserver&&(this.resizeObserver=new window.ResizeObserver(this.scheduleUpdate),this.resizeObserver.observe(this.wrapRef)),this.scheduleUpdate()}},{key:"componentDidUpdate",value:function(){this.scheduleUpdate()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.scheduleUpdate),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.frame&&(window.cancelAnimationFrame(this.frame),this.frame=null)}},{key:"render",value:function(){var e=this.props,t=e.containerClassName,a=e.scroll,n=De(e,Jr),r=this.state.scrollY,o=r?Re(Re({},a),{},{y:r}):a;return V.default.createElement("div",{className:t,ref:this.setWrapRef},V.default.createElement(he.default,Le({},n,{scroll:o})))}}])}(n.Component),eo={wrap:"defaultMappingTable-module_wrap__26GVw",tip:"defaultMappingTable-module_tip__jwBvS",tableCard:"defaultMappingTable-module_tableCard__AVZwu",primaryCell:"defaultMappingTable-module_primaryCell__16PKI",valueTag:"defaultMappingTable-module_valueTag__DDsxU",valueEmpty:"defaultMappingTable-module_valueEmpty__2BXyU"};je(".defaultMappingTable-module_wrap__26GVw{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.defaultMappingTable-module_wrap__26GVw .ant-table-cell,.defaultMappingTable-module_wrap__26GVw .ant-table-cell *,.defaultMappingTable-module_wrap__26GVw .ant-table-tbody>tr>td,.defaultMappingTable-module_wrap__26GVw .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.defaultMappingTable-module_tip__jwBvS{flex-shrink:0;margin:0;font-size:13px;color:#8c8c8c}.defaultMappingTable-module_tableCard__AVZwu{background:#fff;border-radius:6px;padding:1px}.defaultMappingTable-module_tableCard__AVZwu,.defaultMappingTable-module_tableCard__AVZwu .ant-spin-container,.defaultMappingTable-module_tableCard__AVZwu .ant-spin-nested-loading,.defaultMappingTable-module_tableCard__AVZwu .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.defaultMappingTable-module_tableCard__AVZwu .ant-table{flex:1;min-height:0}.defaultMappingTable-module_tableCard__AVZwu .ant-table-container{height:100%}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th{background:#f0f2f5!important;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;padding:7.5px 12px!important;border:none!important;border-bottom:1px solid #f0f0f0!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th:before{display:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th:first-child{border:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-cell{padding:12px 14px!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr>td{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:not(:last-child)>td{border-bottom:1px solid #f0f0f0!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:last-child>td{border-bottom:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:hover>td{background:#f5f7fa}.defaultMappingTable-module_primaryCell__16PKI{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;letter-spacing:0;vertical-align:middle;color:#000f2c}.defaultMappingTable-module_valueTag__DDsxU{background:#e6f4ff;color:#1890ff}.defaultMappingTable-module_valueEmpty__2BXyU,.defaultMappingTable-module_valueTag__DDsxU{max-width:100%;padding:1px 6px;border-radius:4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.defaultMappingTable-module_valueEmpty__2BXyU{background:#f0f2f5;color:#737b8b}");var to=function(e){var t=e.rows,a=e.type,n=void 0===a?"model":a,r=e.loading,o=void 0!==r&&r,i=e.onPick,l=function(e){for(var t=e.map(function(e,t){return Re(Re({},e),{},{_primaryRowSpan:1,_secondaryRowSpan:1,_hidePrimary:!1,_hideSecondary:!1})}),a=0;t.length>a;){for(var n=t[a],r=a+1;t.length>r&&t[r].primaryCategory===n.primaryCategory;)r++;t[a]._primaryRowSpan=r-a;for(var o=a+1;r>o;o++)t[o]._hidePrimary=!0;for(var i=a;r>i;){for(var l=t[i],s=i+1;r>s&&t[s].secondaryCategory===l.secondaryCategory;)s++;t[i]._secondaryRowSpan=s-i;for(var d=i+1;s>d;d++)t[d]._hideSecondary=!0;i=s}a=r}return t}(void 0===t?[]:t),s="texture"===n?"默认材质":"默认素材",d=[{title:"一级分类",dataIndex:"primaryCategory",key:"primaryCategory",width:290,onCell:function(e){return e._hidePrimary?{rowSpan:0,style:{borderLeft:"none",borderRight:"none",borderBottom:"none"}}:{rowSpan:e._primaryRowSpan,style:{borderLeft:"none"}}},render:function(e){return V.default.createElement("span",{className:eo.primaryCell},e)}},{title:"二级分类",dataIndex:"secondaryCategory",key:"secondaryCategory",width:297,onCell:function(e){return e._hideSecondary?{rowSpan:0,style:{borderLeft:"none",borderRight:"none",borderBottom:"none"}}:{rowSpan:e._secondaryRowSpan,style:{borderLeft:"1px solid #F0F0F0",borderRight:"1px solid #F0F0F0"}}}},{title:"三级分类",dataIndex:"tertiaryCategory",key:"tertiaryCategory",width:216,onCell:function(){return{style:{borderRight:"none"}}}},{title:s,dataIndex:"defaultValue",key:"defaultValue",width:271,onCell:function(){return{style:{borderRight:"none"}}},render:function(e,t){return t.hasValue&&e?V.default.createElement(ne.default,{title:e},V.default.createElement("span",{className:eo.valueTag},e)):V.default.createElement("span",{className:eo.valueEmpty},"未配置")}},{title:"操作",key:"actions",width:128,align:"center",onCell:function(){return{style:{borderRight:"none"}}},render:function(e,t){return V.default.createElement(Y.default,{size:"small",type:"link",className:eo.pickBtn,onClick:function(){return e=t,void("function"==typeof i?i(e):O.default.info("切换".concat(s,"(").concat(e.tertiaryCategory,")")));var e}},t.hasValue?"更换":"设置",t.hasValue?"":"texture"===n?"材质":"素材")}}];return V.default.createElement("div",{className:eo.wrap},V.default.createElement("p",{className:eo.tip},"texture"===n?"配置每个三级分类的默认材质贴图。材质素材默认选此配置。":"配置每个三级分类的默认3D素材。当斗拱方案中的商品只有三级分类、无具体素材ID时,加载此处配置的默认素材。"),V.default.createElement($r,{containerClassName:eo.tableCard,size:"middle",pagination:!1,loading:o,rowKey:function(e){return"".concat(e.primaryCategory,"-").concat(e.secondaryCategory,"-").concat(e.tertiaryCategory)},dataSource:l,columns:d}))},ao="LazyImage-module_image__1KT6F",no="LazyImage-module_placeholder__3GlK4",ro="LazyImage-module_preloadImage__20QyX";je(".LazyImage-module_image__1KT6F{display:block}.LazyImage-module_placeholder__3GlK4{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#f0f2f5;font-size:10px;white-space:nowrap;overflow:hidden;color:#737b8b}.LazyImage-module_preloadImage__20QyX{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}");var oo=function(e){function t(e){var a;return Te(this,t),(a=Se(this,t,[e])).setImageRef=function(e){a.imageNode=e},a.setLoadingImageRef=function(e){a.loadingImageNode=e},a.observeImage=function(){if(a.props.src&&a.imageNode)if(window.IntersectionObserver){var e=a.imageNode.closest("[data-lazy-scroll-root], .ant-table-body"),t=Math.max(e?e.clientHeight:window.innerHeight,200);a.observer=new window.IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&(a.setState({shouldLoad:!0}),a.disconnectObserver())},{root:e||null,rootMargin:"".concat(t,"px 0px")}),a.observer.observe(a.imageNode)}else a.setState({shouldLoad:!0})},a.disconnectObserver=function(){a.observer&&(a.observer.disconnect(),a.observer=null)},a.handleError=function(){a.setState({loadFailed:!0})},a.handleLoad=function(){a.setState({imageLoaded:!0})},a.state={observedSrc:e.src,shouldLoad:!1,loadFailed:!1,imageLoaded:!1},a}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.observeImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(this.disconnectObserver(),this.setState({observedSrc:this.props.src,shouldLoad:!1,loadFailed:!1,imageLoaded:!1},this.observeImage))}},{key:"componentWillUnmount",value:function(){this.disconnectObserver(),this.imageNode&&this.imageNode.removeAttribute("src"),this.loadingImageNode&&this.loadingImageNode.removeAttribute("src")}},{key:"render",value:function(){var e=this.props,t=e.src,a=e.alt,n=e.className,r=void 0===n?"":n,o=this.state,i=o.observedSrc===t,l=i&&o.loadFailed,s=i&&o.shouldLoad&&!l?t:void 0;return i&&o.imageLoaded&&s?V.default.createElement("img",{ref:this.setImageRef,src:s,alt:void 0===a?"":a,className:"".concat(ao," ").concat(r),decoding:"async",onError:this.handleError}):V.default.createElement("span",{ref:this.setImageRef,className:"".concat(no," ").concat(r)},t&&!l?"加载中":null,s?V.default.createElement("img",{ref:this.setLoadingImageRef,src:s,alt:"",className:ro,loading:"lazy",decoding:"async",onLoad:this.handleLoad,onError:this.handleError}):null)}}])}(n.Component),io="Toast-module_toast__12u8N",lo="Toast-module_error__fqb0U";je(".Toast-module_toast__12u8N{position:fixed;top:28px;left:50%;transform:translateX(-50%);z-index:1300;width:-moz-fit-content;width:fit-content;min-width:0;max-width:calc(100vw - 48px);min-height:28px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #6ab015;border-radius:5px;background:#6ab015;color:#fff;font-size:12px;line-height:18px;box-shadow:0 6px 18px rgba(15,23,42,.12);box-sizing:border-box}.Toast-module_toast__12u8N .anticon{flex-shrink:0;color:#fff;font-size:13px}.Toast-module_toast__12u8N span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Toast-module_error__fqb0U{border-color:#ff4d4f;background:#ff4d4f}");var so=function(e){var t=e.message,a=e.type,r=void 0===a?"success":a,o=e.duration,i=void 0===o?2600:o,l=e.toastKey,s=Ge(n.useState(!1),2),d=s[0],c=s[1];return n.useEffect(function(){if(t){c(!0);var e=window.setTimeout(function(){c(!1)},i);return function(){return window.clearTimeout(e)}}c(!1)},[t,i,l]),d?V.default.createElement("div",{className:"".concat(io," ").concat("error"===r?lo:"")},V.default.createElement("error"===r?S.CloseCircleFilled:S.CheckCircleFilled,null),V.default.createElement("span",null,t)):null};function co(){return uo.apply(this,arguments)}function uo(){return uo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listLevel1Classify",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),uo.apply(this,arguments)}function mo(){return po.apply(this,arguments)}function po(){return po=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listClassifyTree",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),po.apply(this,arguments)}function fo(){return ho.apply(this,arguments)}function ho(){return ho=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageClassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ho.apply(this,arguments)}function _o(){return go.apply(this,arguments)}function go(){return go=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/deleteMaterial",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),go.apply(this,arguments)}function vo(){return yo.apply(this,arguments)}function yo(){return yo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/countSkuByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),yo.apply(this,arguments)}function xo(){return bo.apply(this,arguments)}function bo(){return bo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/materialBrand/countSkuByBrand",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),bo.apply(this,arguments)}function Mo(){return wo.apply(this,arguments)}function wo(){return(wo=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/generateSkuId",method:"post",data:{}}))},e)}))).apply(this,arguments)}function So(){return To.apply(this,arguments)}function To(){return To=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/pageSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),To.apply(this,arguments)}function Eo(){return Co.apply(this,arguments)}function Co(){return Co=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/statSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Co.apply(this,arguments)}function No(){return Lo.apply(this,arguments)}function Lo(){return Lo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/exportSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},responseType:"blob"}))},e)})),Lo.apply(this,arguments)}function ko(){return Io.apply(this,arguments)}function Io(){return(Io=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/exportSkuTemplate",method:"post",data:{},responseType:"blob"}))},e)}))).apply(this,arguments)}function Po(){return Ao.apply(this,arguments)}function Ao(){return Ao=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/validateImportSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},headers:{"Content-Type":"multipart/form-data"}}))},e)})),Ao.apply(this,arguments)}function Ro(){return Do.apply(this,arguments)}function Do(){return Do=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/importSkuWithGeneratedId",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},headers:{"Content-Type":"multipart/form-data"}}))},e)})),Do.apply(this,arguments)}function zo(){return Uo.apply(this,arguments)}function Uo(){return(Uo=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/myMaterialList",method:"post"}))},e)}))).apply(this,arguments)}function Bo(){return Go.apply(this,arguments)}function Go(){return Go=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/bindModel",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Go.apply(this,arguments)}function Fo(){return Oo.apply(this,arguments)}function Oo(){return Oo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/queryMaterialAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Oo.apply(this,arguments)}function Ho(){return Vo.apply(this,arguments)}function Vo(){return Vo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/bindModel",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Vo.apply(this,arguments)}function jo(){return Wo.apply(this,arguments)}function Wo(){return Wo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/saveModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Wo.apply(this,arguments)}function qo(){return Ko.apply(this,arguments)}function Ko(){return Ko=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/generateModelAssetIds",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},transformResponse:[function(e){if("string"!=typeof e)return e;var t=e.replace(/(:|\[|,)\s*(\d{16,})(?=\s*[,}\]])/g,'$1"$2"');try{return JSON.parse(t)}catch(t){return e}}]}))},e)})),Ko.apply(this,arguments)}function Xo(){return Yo.apply(this,arguments)}function Yo(){return Yo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/batchSaveModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Yo.apply(this,arguments)}function Zo(){return Qo.apply(this,arguments)}function Qo(){return Qo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageUnclassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Qo.apply(this,arguments)}function Jo(){return $o.apply(this,arguments)}function $o(){return $o=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageClassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),$o.apply(this,arguments)}function ei(){return ti.apply(this,arguments)}function ti(){return ti=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/countModelByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ti.apply(this,arguments)}function ai(){return ni.apply(this,arguments)}function ni(){return ni=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/countTextureByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ni.apply(this,arguments)}function ri(){return oi.apply(this,arguments)}function oi(){return oi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/queryClassifyDefaults",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),oi.apply(this,arguments)}function ii(){return li.apply(this,arguments)}function li(){return li=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/saveClassifyDefault",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),li.apply(this,arguments)}function si(){return di.apply(this,arguments)}function di(){return di=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/queryModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),di.apply(this,arguments)}function ci(){return ui.apply(this,arguments)}function ui(){return ui=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/queryTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ui.apply(this,arguments)}function mi(){return pi.apply(this,arguments)}function pi(){return pi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/pageUnclassifiedTextures",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),pi.apply(this,arguments)}function fi(){return hi.apply(this,arguments)}function hi(){return hi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/pageClassifiedTextures",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),hi.apply(this,arguments)}function _i(){return gi.apply(this,arguments)}function gi(){return gi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/saveSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),gi.apply(this,arguments)}function vi(){return yi.apply(this,arguments)}function yi(){return yi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listClassifyTree",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),yi.apply(this,arguments)}function xi(){return bi.apply(this,arguments)}function bi(){return bi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/saveTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),bi.apply(this,arguments)}function Mi(){return wi.apply(this,arguments)}function wi(){return wi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/generateTextureAssetIds",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},transformResponse:[function(e){if("string"!=typeof e)return e;var t=e.replace(/(:|\[|,)\s*(\d{16,})(?=\s*[,}\]])/g,'$1"$2"');try{return JSON.parse(t)}catch(t){return e}}]}))},e)})),wi.apply(this,arguments)}function Si(){return Ti.apply(this,arguments)}function Ti(){return Ti=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/uploadTextureZip",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ti.apply(this,arguments)}function Ei(){return Ci.apply(this,arguments)}function Ci(){return Ci=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/uploadTextureFolder",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ci.apply(this,arguments)}function Ni(){return Li.apply(this,arguments)}function Li(){return Li=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/batchSaveTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Li.apply(this,arguments)}function ki(){return Ii.apply(this,arguments)}function Ii(){return Ii=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/queryTextureAssetsRelations",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ii.apply(this,arguments)}function Pi(){return Ai.apply(this,arguments)}function Ai(){return Ai=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/deleteTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ai.apply(this,arguments)}function Ri(){return Di.apply(this,arguments)}function Di(){return Di=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/detailSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Di.apply(this,arguments)}function zi(){return Ui.apply(this,arguments)}function Ui(){return Ui=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/saveSkuDetail",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ui.apply(this,arguments)}function Bi(){return Gi.apply(this,arguments)}function Gi(){return Gi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listUnboundSkus",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Gi.apply(this,arguments)}function Fi(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])||[]).map(function(e){return'{"skuId":'.concat((t=e.skuId,JSON.stringify(null==t?"":t+"")),',"materialId":').concat(function(e){if(null==e||""===e)return"null";var t=(e+"").trim();return/^-?\d+$/.test(t)?t:JSON.stringify(t)}(e.materialId),"}");var t});return'{"bindList":['.concat(e.join(","),"]}")}function Oi(){return Hi.apply(this,arguments)}function Hi(){return Hi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/bindMaterialBatch",method:"post",data:Fi((t.length>0&&void 0!==t[0]?t[0]:{}).bindList),headers:{"Content-Type":"application/json"}}))},e)})),Hi.apply(this,arguments)}function Vi(){return ji.apply(this,arguments)}function ji(){return(ji=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/autoBind",method:"post",data:{},headers:{"Content-Type":"application/json"}}))},e)}))).apply(this,arguments)}var Wi={page:"materialTextures-module_page__tYhwH",pageHeader:"materialTextures-module_pageHeader__1nQSZ",headerLeft:"materialTextures-module_headerLeft__374ea",pageTitle:"materialTextures-module_pageTitle__1povI",pageSubtitle:"materialTextures-module_pageSubtitle__I666j",uploadBtn:"materialTextures-module_uploadBtn__1FbPR",pageTabs:"materialTextures-module_pageTabs__LB5hs",pageTab:"materialTextures-module_pageTab__2y6Y9",pageTabActive:"materialTextures-module_pageTabActive__1NMRm",mainContent:"materialTextures-module_mainContent__2_Q_9",sidebar:"materialTextures-module_sidebar__nx350",spaceSelector:"materialTextures-module_spaceSelector__w1fEp",spaceSelect:"materialTextures-module_spaceSelect__qJcsR","ant-select-selection-item":"materialTextures-module_ant-select-selection-item__hrdHQ",tabPills:"materialTextures-module_tabPills__3B3eQ",tabPill:"materialTextures-module_tabPill__3gvQW",active:"materialTextures-module_active__1tyxi",categoryTree:"materialTextures-module_categoryTree__2Pf98",categoryList:"materialTextures-module_categoryList__2GBkR",categoryGroup:"materialTextures-module_categoryGroup__3qJGP",categoryItem:"materialTextures-module_categoryItem__Mjiz_",expandIcon:"materialTextures-module_expandIcon__22PDR",categoryItemTitle:"materialTextures-module_categoryItemTitle__2IacD",categoryItemCount:"materialTextures-module_categoryItemCount__2upE8",subCategoryItem:"materialTextures-module_subCategoryItem__-3v44",subCategoryTitle:"materialTextures-module_subCategoryTitle__3f0xS",subCategoryCount:"materialTextures-module_subCategoryCount__2lgog",content:"materialTextures-module_content__3isSO",filterRow:"materialTextures-module_filterRow__29-Dk",tableCardWrap:"materialTextures-module_tableCardWrap__3oGzI",tableHeader:"materialTextures-module_tableHeader__QyG1V",searchInput:"materialTextures-module_searchInput__2HBQZ",searchInputWrap:"materialTextures-module_searchInputWrap__1e47k",searchClearBtn:"materialTextures-module_searchClearBtn__1stAU",filterLabel:"materialTextures-module_filterLabel__1ziuq",filterSelect:"materialTextures-module_filterSelect__391Hu","ant-select-arrow":"materialTextures-module_ant-select-arrow__1RUk9",segmented:"materialTextures-module_segmented__1xASu",segmentedItem:"materialTextures-module_segmentedItem__1PdDD",segmentedItemSelected:"materialTextures-module_segmentedItemSelected__3swyC",tableCard:"materialTextures-module_tableCard__100S4",dataTable:"materialTextures-module_dataTable__1R9-E",cell:"materialTextures-module_cell___111s",cellName:"materialTextures-module_cellName__3ebQT materialTextures-module_cell___111s",cellMuted:"materialTextures-module_cellMuted__QUu8A materialTextures-module_cell___111s",brandName:"materialTextures-module_brandName__3Ojjx materialTextures-module_cell___111s",formatCell:"materialTextures-module_formatCell__3iVLs materialTextures-module_cell___111s",thumbnailCell:"materialTextures-module_thumbnailCell__2IZ8g",thumbnail:"materialTextures-module_thumbnail__3aRVv",thumbnailImg:"materialTextures-module_thumbnailImg__2zXpY",thumbnailPlaceholder:"materialTextures-module_thumbnailPlaceholder__1ffvL",actions:"materialTextures-module_actions__AVzUs",deleteAction:"materialTextures-module_deleteAction__3Q8Lg",statusNeutral:"materialTextures-module_statusNeutral__1-839",mappingProduct:"materialTextures-module_mappingProduct__1ueX6"};je(".materialTextures-module_page__tYhwH{display:flex;flex-direction:column;height:100%;background:#f5f7fa}.materialTextures-module_pageHeader__1nQSZ{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 7px}.materialTextures-module_headerLeft__374ea{display:flex;flex-direction:column;gap:2px}.materialTextures-module_pageTitle__1povI{font-size:14px;font-weight:500;color:#000f2c}.materialTextures-module_pageSubtitle__I666j{font-size:12px;color:#737b8b;font-weight:400}.materialTextures-module_uploadBtn__1FbPR{height:32px;padding:4px 12px;border-radius:6px;font-size:14px;background:#1890ff;border:none}.materialTextures-module_pageTabs__LB5hs{display:flex;align-items:center;gap:0;padding:0 16px;border-bottom:1px solid rgba(115,123,139,.30196078431372547)}.materialTextures-module_pageTab__2y6Y9{padding:11.5px 0;font-size:14px;font-weight:400;color:#737b8b;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;margin-right:32px}.materialTextures-module_pageTab__2y6Y9:hover{color:#1890ff}.materialTextures-module_pageTabActive__1NMRm{color:#1890ff;border-bottom-color:#1890ff}.materialTextures-module_mainContent__2_Q_9{display:flex;flex:1;overflow:hidden}.materialTextures-module_sidebar__nx350{width:264px;background:#fff;display:flex;flex-direction:column;overflow-y:auto;margin:16px 0 16px 16px;border-radius:6px}.materialTextures-module_spaceSelector__w1fEp{padding:16px 16px 12px}.materialTextures-module_spaceSelect__qJcsR{width:100%}.materialTextures-module_spaceSelect__qJcsR .ant-select-selector{height:36px!important;padding:0 12px!important;border-radius:6px!important;border:1px solid #f0f2f5!important;background:#f0f2f5!important}.materialTextures-module_spaceSelect__qJcsR .ant-select-selector .materialTextures-module_ant-select-selection-item__hrdHQ{line-height:36px!important;font-size:14px}.materialTextures-module_tabPills__3B3eQ{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}.materialTextures-module_tabPill__3gvQW{padding:4px 12px;border-radius:4px;font-size:13px;color:#616778;cursor:pointer;transition:all .2s;background:transparent}.materialTextures-module_tabPill__3gvQW:hover{background:#f0f2f5;color:#000f2c}.materialTextures-module_tabPill__3gvQW.materialTextures-module_active__1tyxi{background:#e6f4ff;color:#1890ff}.materialTextures-module_categoryList__2GBkR,.materialTextures-module_categoryTree__2Pf98{flex:1;overflow-y:auto}.materialTextures-module_categoryGroup__3qJGP.materialTextures-module_active__1tyxi .materialTextures-module_categoryItem__Mjiz_{color:#1890ff;background:#e6f4ff}.materialTextures-module_categoryItem__Mjiz_{display:flex;align-items:center;padding:10px 16px;cursor:pointer;transition:all .2s;font-size:14px;color:#737b8b;font-weight:400}.materialTextures-module_categoryItem__Mjiz_:hover{background:#f5f5f5}.materialTextures-module_categoryItem__Mjiz_.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_expandIcon__22PDR{margin-right:8px;font-size:10px;color:#8c8c8c}.materialTextures-module_categoryItemTitle__2IacD{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.materialTextures-module_categoryItemCount__2upE8{font-size:12px;color:#8c8c8c;margin-left:auto}.materialTextures-module_categoryItemCount__2upE8.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_subCategoryItem__-3v44{display:flex;align-items:center;padding:5px 16px 5px 30px;cursor:pointer;transition:all .2s;font-size:14px;color:#121c2a}.materialTextures-module_subCategoryItem__-3v44:hover{background:#f5f5f5}.materialTextures-module_subCategoryItem__-3v44.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_subCategoryTitle__3f0xS{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.materialTextures-module_subCategoryCount__2lgog{font-size:12px;color:#8c8c8c;margin-left:auto}.materialTextures-module_subCategoryCount__2lgog.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_content__3isSO{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px;overflow:hidden}.materialTextures-module_filterRow__29-Dk{display:flex;gap:12px;margin-bottom:12px}.materialTextures-module_tableCardWrap__3oGzI{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialTextures-module_tableHeader__QyG1V{display:flex;align-items:center;gap:16px;padding:0 0 12px;flex-shrink:0}.materialTextures-module_searchInput__2HBQZ{width:240px;height:32px;padding:0 32px 0 12px;border:1px solid #f0f0f0;border-radius:6px;font-size:13px;outline:none;transition:all .2s}.materialTextures-module_searchInput__2HBQZ:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}.materialTextures-module_searchInputWrap__1e47k{position:relative;display:inline-block}.materialTextures-module_searchClearBtn__1stAU{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#bfbfbf;cursor:pointer;border-radius:50%;font-size:12px;transition:all .2s}.materialTextures-module_searchClearBtn__1stAU:hover{color:#8c8c8c;background:rgba(0,0,0,.08)}.materialTextures-module_filterLabel__1ziuq{font-size:14px;color:#000;white-space:nowrap}.materialTextures-module_filterSelect__391Hu{width:auto;min-width:80px;background:#fff;border-radius:4px}.materialTextures-module_filterSelect__391Hu .ant-select-selector{height:auto!important;padding:0 8px!important;border:none!important;background:transparent!important;box-shadow:none!important}.materialTextures-module_filterSelect__391Hu .ant-select-selector .materialTextures-module_ant-select-selection-item__hrdHQ{line-height:1.2!important;padding:0!important;font-size:14px;color:#616778}.materialTextures-module_filterSelect__391Hu .ant-select-selector .materialTextures-module_ant-select-arrow__1RUk9{right:0!important}.materialTextures-module_segmented__1xASu{display:flex;background:#fff;padding:3px;border-radius:6px}.materialTextures-module_segmentedItem__1PdDD{padding:0 12px;min-height:26px;line-height:26px;font-size:14px;color:#616778;cursor:pointer;border-radius:4px;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.materialTextures-module_segmentedItem__1PdDD:hover{color:#000f2c}.materialTextures-module_segmentedItem__1PdDD.materialTextures-module_segmentedItemSelected__3swyC{background:#f0f2f5;color:#000f2c;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}.materialTextures-module_tableCard__100S4{background:#fff;border-radius:8px;overflow:hidden;border:1px solid #fff}.materialTextures-module_tableCard__100S4,.materialTextures-module_tableCard__100S4 .ant-spin-container,.materialTextures-module_tableCard__100S4 .ant-spin-nested-loading,.materialTextures-module_tableCard__100S4 .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.materialTextures-module_dataTable__1R9-E .ant-table{flex:1;min-height:0;background:transparent;font-size:13px}.materialTextures-module_dataTable__1R9-E .ant-table-container{height:100%;border-radius:0}.materialTextures-module_dataTable__1R9-E .ant-table-thead>tr>th{background:#f5f7fa;padding:7.5px 12px;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;border-bottom:1px solid #f0f0f0}.materialTextures-module_dataTable__1R9-E .ant-table-thead>tr>th:before{display:none}.materialTextures-module_dataTable__1R9-E .ant-table-cell,.materialTextures-module_dataTable__1R9-E .ant-table-cell *,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.materialTextures-module_dataTable__1R9-E .ant-table-cell,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td{padding:12px 14px;font-size:13px;color:#262626;border-bottom:1px solid #f5f5f5}.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr:last-child>td{border-bottom:none}.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr:hover>td{background:#fafafa}.materialTextures-module_dataTable__1R9-E .ant-table-wrapper{border-radius:8px;overflow:hidden}.materialTextures-module_dataTable__1R9-E .ant-table-pagination{margin:0;padding:12px 16px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:flex-end}.materialTextures-module_dataTable__1R9-E .ant-pagination-total-text{color:#8c8c8c;font-size:13px}.materialTextures-module_dataTable__1R9-E .ant-pagination-item{min-width:32px;height:32px;line-height:32px;border:1px solid #f0f0f0}.materialTextures-module_dataTable__1R9-E .ant-pagination-item a{color:#616778}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover{border-color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover a{color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active a{color:#fff}.materialTextures-module_dataTable__1R9-E .ant-pagination-next,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev{min-width:32px;height:32px;line-height:32px}.materialTextures-module_dataTable__1R9-E .ant-pagination-next .ant-pagination-item-link,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev .ant-pagination-item-link{border-radius:6px;border:1px solid #f0f0f0;color:#616778}.materialTextures-module_dataTable__1R9-E .ant-pagination-next .ant-pagination-item-link:hover,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev .ant-pagination-item-link:hover{border-color:#1890ff;color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-disabled .ant-pagination-item-link{color:#d9d9d9}.materialTextures-module_dataTable__1R9-E .ant-pagination-disabled .ant-pagination-item-link:hover{border-color:#f0f0f0;color:#d9d9d9}.materialTextures-module_dataTable__1R9-E .ant-pagination-total-text{font-family:Roboto;font-weight:400;font-size:14px;letter-spacing:0;text-align:center;color:rgba(0,0,0,.65)}.materialTextures-module_dataTable__1R9-E .ant-pagination-item{border:1px solid #d9d9d9;border-radius:6px}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover>a{color:#397bff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active{border:1px solid #397bff;background-color:#fff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active>a{color:#397bff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-link,.materialTextures-module_dataTable__1R9-E .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-radius:6px}.materialTextures-module_cell___111s{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.materialTextures-module_cellName__3ebQT{font-weight:500}.materialTextures-module_cellMuted__QUu8A{font-size:12px;color:#8c8c8c}.materialTextures-module_brandName__3Ojjx{color:#1890ff}.materialTextures-module_thumbnailCell__2IZ8g{display:flex;align-items:center;gap:10px}.materialTextures-module_thumbnail__3aRVv{width:48px;height:48px;border-radius:8px;background:#f0f2f5;overflow:hidden;flex-shrink:0}.materialTextures-module_thumbnailImg__2zXpY{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.materialTextures-module_thumbnailPlaceholder__1ffvL{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f2f5}.materialTextures-module_actions__AVzUs{white-space:nowrap}.materialTextures-module_deleteAction__3Q8Lg{color:#f53f3f!important}.materialTextures-module_deleteAction__3Q8Lg:focus,.materialTextures-module_deleteAction__3Q8Lg:hover{color:#ff7875!important}.materialTextures-module_statusNeutral__1-839{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;color:#8c8c8c;background:#f5f5f5}.materialTextures-module_mappingProduct__1ueX6{color:#1890ff;cursor:pointer}");var qi={overlay:"TextureUploadModal-module_overlay__1UIEB",modal:"TextureUploadModal-module_modal__2chJ9",header:"TextureUploadModal-module_header__3uXk0",title:"TextureUploadModal-module_title__2LprC",closeBtn:"TextureUploadModal-module_closeBtn__2SmJM",body:"TextureUploadModal-module_body__eqYrP",subtitle:"TextureUploadModal-module_subtitle__3vsB5",formItem:"TextureUploadModal-module_formItem__1c3y7",label:"TextureUploadModal-module_label__9Jlk0",required:"TextureUploadModal-module_required__3Fe2U",fieldWrap:"TextureUploadModal-module_fieldWrap__1QHKL",materialIdHint:"TextureUploadModal-module_materialIdHint__3IlvB",input:"TextureUploadModal-module_input__2AAY4",uploadSection:"TextureUploadModal-module_uploadSection__13H4k",referenceArea:"TextureUploadModal-module_referenceArea__3sLFx",chartletLabel:"TextureUploadModal-module_chartletLabel__13Nrx",areaLabel:"TextureUploadModal-module_areaLabel__1d2Kx",refUploadContainer:"TextureUploadModal-module_refUploadContainer__eZ6d8",refUploadEmpty:"TextureUploadModal-module_refUploadEmpty__1uYjY",refUploadOverlay:"TextureUploadModal-module_refUploadOverlay__499m_",refUploading:"TextureUploadModal-module_refUploading__2NQsN",disabled:"TextureUploadModal-module_disabled__2usE6",dragging:"TextureUploadModal-module_dragging__OWsE6",refUploadFilled:"TextureUploadModal-module_refUploadFilled__2f9PX",refUploadIcon:"TextureUploadModal-module_refUploadIcon__1-3c0",refUploadText:"TextureUploadModal-module_refUploadText__3Oj3q",refUploadHint:"TextureUploadModal-module_refUploadHint__2K81b",refUploadingText:"TextureUploadModal-module_refUploadingText__35cu7",refUploadLabel:"TextureUploadModal-module_refUploadLabel__3Knlj",refUploadInfo:"TextureUploadModal-module_refUploadInfo__1FKAo",infoChip:"TextureUploadModal-module_infoChip__3D8oJ",refUploadedImage:"TextureUploadModal-module_refUploadedImage__22PCN",refUploadOverlayText:"TextureUploadModal-module_refUploadOverlayText__2QZpZ",pbrUploadContainer:"TextureUploadModal-module_pbrUploadContainer__2J0jW",pbrUploadEmpty:"TextureUploadModal-module_pbrUploadEmpty__1ijH_",pbrUploading:"TextureUploadModal-module_pbrUploading__1jVwN",pbrUploadFilled:"TextureUploadModal-module_pbrUploadFilled__13toI",pbrUploadOverlay:"TextureUploadModal-module_pbrUploadOverlay__2Optm",pbrUploadIcon:"TextureUploadModal-module_pbrUploadIcon__3M1_u",pbrUploadText:"TextureUploadModal-module_pbrUploadText__21hB8",pbrUploadingText:"TextureUploadModal-module_pbrUploadingText__rD1IK",pbrUploadedImage:"TextureUploadModal-module_pbrUploadedImage__1qWQQ",pbrUploadOverlayText:"TextureUploadModal-module_pbrUploadOverlayText__2mIo6",pbrArea:"TextureUploadModal-module_pbrArea__OZtlg",pbrGrid:"TextureUploadModal-module_pbrGrid__3vxUr",pbrItem:"TextureUploadModal-module_pbrItem__3sww2",pbrLabel:"TextureUploadModal-module_pbrLabel__dk436",footer:"TextureUploadModal-module_footer__6hyV1",cancelBtn:"TextureUploadModal-module_cancelBtn__3eIAO",confirmBtn:"TextureUploadModal-module_confirmBtn__3OftK",submitContent:"TextureUploadModal-module_submitContent__2zF7U",submitLoadingIcon:"TextureUploadModal-module_submitLoadingIcon__3jXTP",uploadTabs:"TextureUploadModal-module_uploadTabs__2G2e1",uploadTab:"TextureUploadModal-module_uploadTab__11m5i",uploadTabActive:"TextureUploadModal-module_uploadTabActive__3m__O",batchMultiWrap:"TextureUploadModal-module_batchMultiWrap__3wU9s",batchOneInput:"TextureUploadModal-module_batchOneInput__1GL18",batchDraggerBatchOne:"TextureUploadModal-module_batchDraggerBatchOne__2jkoN",batchOneChannelSection:"TextureUploadModal-module_batchOneChannelSection__3MrqJ",batchOneChannelTitle:"TextureUploadModal-module_batchOneChannelTitle__1nnXs",batchDragger:"TextureUploadModal-module_batchDragger__22gY6",batchDragging:"TextureUploadModal-module_batchDragging__3S-LA",batchPickerTrigger:"TextureUploadModal-module_batchPickerTrigger__33HJS",batchPickerArrow:"TextureUploadModal-module_batchPickerArrow__1DEAA",batchPickerMenu:"TextureUploadModal-module_batchPickerMenu__LIzmM",batchDraggerIcon:"TextureUploadModal-module_batchDraggerIcon__27YJm",batchDraggerText:"TextureUploadModal-module_batchDraggerText__Y13AQ",batchDraggerHint:"TextureUploadModal-module_batchDraggerHint__JmSK7",batchDraggerInfo:"TextureUploadModal-module_batchDraggerInfo__lfacQ",batchListTitle:"TextureUploadModal-module_batchListTitle__3aNN7",batchList:"TextureUploadModal-module_batchList__1tvg0",batchListHeader:"TextureUploadModal-module_batchListHeader__34VcJ",batchListHeaderCol1:"TextureUploadModal-module_batchListHeaderCol1__3KJYj",batchListHeaderCol2:"TextureUploadModal-module_batchListHeaderCol2__1FlBZ",batchListHeaderCol3:"TextureUploadModal-module_batchListHeaderCol3__1q09-",batchListHeaderCol4:"TextureUploadModal-module_batchListHeaderCol4__1akfg",batchListHeaderCol5:"TextureUploadModal-module_batchListHeaderCol5__3pt0h",batchListRowCol1:"TextureUploadModal-module_batchListRowCol1__2WA8Q",batchListRowCol2:"TextureUploadModal-module_batchListRowCol2__1DwGl",batchListRowCol3:"TextureUploadModal-module_batchListRowCol3__2lsnq",batchListRowCol4:"TextureUploadModal-module_batchListRowCol4__1k7Mt",batchListRowCol5:"TextureUploadModal-module_batchListRowCol5__1GQm4",batchListRow:"TextureUploadModal-module_batchListRow__23Is2",batchListRowCol:"TextureUploadModal-module_batchListRowCol__fHkeb",expandIcon:"TextureUploadModal-module_expandIcon__2EEtS",batchExpandRow:"TextureUploadModal-module_batchExpandRow__1eN0_",expandIconRotated:"TextureUploadModal-module_expandIconRotated__35Pmy",channelLabelGray:"TextureUploadModal-module_channelLabelGray__2MB_k",batchId:"TextureUploadModal-module_batchId__KuOOs",batchChannelCount:"TextureUploadModal-module_batchChannelCount__30P2a",batchRemoveBtn:"TextureUploadModal-module_batchRemoveBtn__33-Ta",batchDeleteBtn:"TextureUploadModal-module_batchDeleteBtn__7IBIL",batchExpandBtn:"TextureUploadModal-module_batchExpandBtn__185n9",batchChannelPreview:"TextureUploadModal-module_batchChannelPreview__1QPxa",channelGrid:"TextureUploadModal-module_channelGrid__1ut9m",channelItem:"TextureUploadModal-module_channelItem__2XPpH",channelActionItem:"TextureUploadModal-module_channelActionItem__2ro04",channelThumb:"TextureUploadModal-module_channelThumb__1bhl-",channelHoverText:"TextureUploadModal-module_channelHoverText__2O3pm",channelThumbWrap:"TextureUploadModal-module_channelThumbWrap__1tiDB",channelThumbMissing:"TextureUploadModal-module_channelThumbMissing__1AKms",channelThumbEmpty:"TextureUploadModal-module_channelThumbEmpty__39DC6",batchOneChannelGrid:"TextureUploadModal-module_batchOneChannelGrid__2UR-V"};je('.TextureUploadModal-module_overlay__1UIEB{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TextureUploadModal-module_modal__2chJ9{width:872px;background:#fff;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden;max-height:90vh;display:flex;flex-direction:column}.TextureUploadModal-module_header__3uXk0{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 20px 0 24px;border-bottom:1px solid #e5e6eb;flex-shrink:0;background:#fff}.TextureUploadModal-module_title__2LprC{font-size:16px;font-weight:600;color:#1d2129}.TextureUploadModal-module_closeBtn__2SmJM{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#4e5969;font-size:14px;transition:all .2s}.TextureUploadModal-module_closeBtn__2SmJM:hover{background:#f2f3f5}.TextureUploadModal-module_body__eqYrP{padding:16px 24px 24px;background:#f7f8fa;flex:1;overflow-y:auto}.TextureUploadModal-module_subtitle__3vsB5{font-size:14px;color:#737b8b;margin:0 0 16px}.TextureUploadModal-module_formItem__1c3y7{display:flex;flex-direction:row;margin-bottom:16px;align-items:flex-start}.TextureUploadModal-module_label__9Jlk0{position:relative;width:56px;flex-shrink:0;font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-right:16px;padding-top:13px}.TextureUploadModal-module_required__3Fe2U{position:absolute;left:-10px;width:8px;color:#ff4d4f;font-family:PingFang SC;font-weight:400;font-style:Regular;line-height:100%;font-size:14px;letter-spacing:0}.TextureUploadModal-module_fieldWrap__1QHKL{flex:1;min-width:0}.TextureUploadModal-module_materialIdHint__3IlvB{display:inline-block;margin-top:6px;font-size:12px;color:#737b8b;white-space:nowrap}.TextureUploadModal-module_input__2AAY4{width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid transparent;border-radius:4px;font-size:14px;outline:none;transition:all .2s;background:#eef0f3;color:#1d2129}.TextureUploadModal-module_input__2AAY4:not(:disabled):focus,.TextureUploadModal-module_input__2AAY4:not(:disabled):hover{border-color:#1890ff}.TextureUploadModal-module_input__2AAY4::-moz-placeholder{color:#999}.TextureUploadModal-module_input__2AAY4::placeholder{color:#999}.TextureUploadModal-module_input__2AAY4:disabled{border-color:transparent;background:#eef0f3;color:#1d2129;cursor:not-allowed}.TextureUploadModal-module_uploadSection__13H4k{display:flex;gap:14px}.TextureUploadModal-module_referenceArea__3sLFx{flex-shrink:0;display:flex;flex-direction:row}.TextureUploadModal-module_chartletLabel__13Nrx{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:14px;line-height:100%;letter-spacing:0;color:#737b8b;white-space:nowrap;margin-right:44px}.TextureUploadModal-module_areaLabel__1d2Kx{font-family:PingFang SC;font-size:14px;font-weight:400;color:#1d2129;margin-bottom:12px}.TextureUploadModal-module_refUploadContainer__eZ6d8{width:318px;height:424px;background:#eef0f3;border-radius:8px;padding:8px;display:flex;flex-direction:column}.TextureUploadModal-module_refUploadEmpty__1uYjY{width:100%;height:316px;border:1px dashed #c7ccd6;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}.TextureUploadModal-module_refUploadEmpty__1uYjY:hover{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_refUploadEmpty__1uYjY:hover .TextureUploadModal-module_refUploadOverlay__499m_{opacity:1}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_refUploading__2NQsN{cursor:default;opacity:.7}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_disabled__2usE6{cursor:not-allowed;opacity:.5}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_refUploadFilled__2f9PX{width:100%;height:100%;border-radius:4px;overflow:hidden;cursor:pointer;position:relative}.TextureUploadModal-module_refUploadFilled__2f9PX:hover .TextureUploadModal-module_refUploadOverlay__499m_{opacity:1}.TextureUploadModal-module_refUploadIcon__1-3c0{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;margin-bottom:4px;position:relative;opacity:.5}.TextureUploadModal-module_refUploadText__3Oj3q{margin-bottom:4px}.TextureUploadModal-module_refUploadHint__2K81b,.TextureUploadModal-module_refUploadText__3Oj3q{color:#737b8b;font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:14px;line-height:22px;letter-spacing:0}.TextureUploadModal-module_refUploadingText__35cu7{font-size:12px;color:#737b8b}.TextureUploadModal-module_refUploadLabel__3Knlj{font-family:PingFang SC;font-weight:600;font-size:14px;color:#1d2129;margin-left:4px;margin-top:12px}.TextureUploadModal-module_refUploadInfo__1FKAo{display:flex;gap:2px;padding:6px 10px;line-height:22px;margin-left:0}.TextureUploadModal-module_infoChip__3D8oJ,.TextureUploadModal-module_refUploadInfo__1FKAo{align-items:center;background:rgba(115,123,139,.12);border-radius:4px;margin-top:8px;font-size:12px;color:#737b8b}.TextureUploadModal-module_infoChip__3D8oJ{display:inline-flex;gap:4px;padding:4px 10px;line-height:20px}.TextureUploadModal-module_refUploadedImage__22PCN{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureUploadModal-module_refUploadOverlay__499m_{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.TextureUploadModal-module_refUploadOverlayText__2QZpZ{font-size:12px;color:#fff;background:rgba(0,0,0,.5);padding:4px 12px;border-radius:4px}.TextureUploadModal-module_pbrUploadContainer__2J0jW{width:100%;aspect-ratio:1}.TextureUploadModal-module_pbrUploadEmpty__1ijH_{width:100%;height:100%;border:1px dashed #c7ccd6;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.TextureUploadModal-module_pbrUploadEmpty__1ijH_:hover{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_pbrUploading__1jVwN{cursor:default;opacity:.7}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_disabled__2usE6{cursor:not-allowed;opacity:.5}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadFilled__13toI{width:100%;aspect-ratio:1;overflow:hidden;cursor:pointer;position:relative;border:1px dashed #c7ccd6;border-radius:4px;transition:all .2s}.TextureUploadModal-module_pbrUploadFilled__13toI:hover .TextureUploadModal-module_pbrUploadOverlay__2Optm{opacity:1}.TextureUploadModal-module_pbrUploadFilled__13toI.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadIcon__3M1_u{font-size:16px;margin-bottom:4px;color:#737b8b}.TextureUploadModal-module_pbrUploadText__21hB8{font-size:11px;color:#737b8b;margin-bottom:2px}.TextureUploadModal-module_pbrUploadingText__rD1IK{font-size:12px;color:#737b8b}.TextureUploadModal-module_pbrUploadedImage__1qWQQ{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureUploadModal-module_pbrUploadOverlay__2Optm{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.TextureUploadModal-module_pbrUploadOverlayText__2mIo6{font-size:12px;color:#fff;background:rgba(0,0,0,.5);padding:4px 12px;border-radius:4px}.TextureUploadModal-module_pbrArea__OZtlg{flex:1}.TextureUploadModal-module_pbrGrid__3vxUr{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.TextureUploadModal-module_pbrItem__3sww2{height:188px;background:#eef0f3;border-radius:8px;padding:8px;display:flex;flex-direction:column}.TextureUploadModal-module_pbrLabel__dk436{font-size:14px;font-weight:600;color:#1d2129;margin-top:12px;margin-left:4px}.TextureUploadModal-module_pbrItem__3sww2 .TextureUploadModal-module_pbrUploadEmpty__1ijH_,.TextureUploadModal-module_pbrItem__3sww2 .TextureUploadModal-module_pbrUploadFilled__13toI{width:100%;aspect-ratio:1;height:auto}.TextureUploadModal-module_footer__6hyV1{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e6eb;background:#fff;flex-shrink:0}.TextureUploadModal-module_cancelBtn__3eIAO{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;color:#737b8b;border:1px solid #717d99;background:#fff;cursor:pointer}.TextureUploadModal-module_cancelBtn__3eIAO:hover{border-color:#1890ff;color:#1890ff}.TextureUploadModal-module_confirmBtn__3OftK{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;background:#1890ff!important;border:1px solid #1890ff;cursor:pointer;color:#fff}.TextureUploadModal-module_confirmBtn__3OftK:hover{background:#2563eb!important}.TextureUploadModal-module_submitContent__2zF7U{display:inline-flex;align-items:center;justify-content:center;gap:6px}.TextureUploadModal-module_submitLoadingIcon__3jXTP{font-size:14px;color:#fff}.TextureUploadModal-module_uploadTabs__2G2e1{display:flex;gap:4px;margin-bottom:16px;background:#eef0f3;padding:3px;border-radius:4px;height:40px;align-items:center;width:-moz-fit-content;width:fit-content}.TextureUploadModal-module_uploadTab__11m5i{height:36px;padding:0 12px;border-radius:2px;font-size:14px;font-weight:400;cursor:pointer;transition:all .2s;border:none;background:transparent;color:#737b8b;white-space:nowrap}.TextureUploadModal-module_uploadTab__11m5i:hover{color:#000f2c}.TextureUploadModal-module_uploadTab__11m5i.TextureUploadModal-module_uploadTabActive__3m__O{background:#fff;color:#000f2c;font-weight:600}.TextureUploadModal-module_batchMultiWrap__3wU9s{margin-top:8px}.TextureUploadModal-module_batchOneInput__1GL18{width:736px;min-width:0}.TextureUploadModal-module_batchDraggerBatchOne__2jkoN{margin-left:0;width:736px}.TextureUploadModal-module_batchOneChannelSection__3MrqJ{display:flex;align-items:flex-start;gap:16px;margin-top:16px}.TextureUploadModal-module_batchOneChannelTitle__1nnXs{flex-shrink:0;font-size:14px;color:#737b8b;font-weight:400;line-height:22px;padding-top:21px}.TextureUploadModal-module_batchDragger__22gY6{width:100%;height:204px;border:1px dashed #c7ccd6;border-radius:4px;background:#eef0f3;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;margin-bottom:16px;position:relative}.TextureUploadModal-module_batchDragger__22gY6:hover{border-color:#1890ff}.TextureUploadModal-module_batchDragger__22gY6.TextureUploadModal-module_batchDragging__3S-LA{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_batchPickerTrigger__33HJS{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;margin-top:12px;padding:0 14px;border:1px solid #1890ff;border-radius:4px;background:#fff;color:#1890ff;font-size:14px;cursor:pointer}.TextureUploadModal-module_batchPickerTrigger__33HJS:hover{background:#f7fbff}.TextureUploadModal-module_batchPickerArrow__1DEAA{font-size:10px}.TextureUploadModal-module_batchPickerMenu__LIzmM{position:absolute;top:126px;left:50%;transform:translateX(-50%);min-width:132px;padding:4px;background:#fff;border:1px solid #dde1e6;border-radius:4px;box-shadow:0 4px 16px rgba(0,15,44,.12);z-index:1}.TextureUploadModal-module_batchPickerMenu__LIzmM button{width:100%;height:32px;padding:0 12px;border:none;border-radius:3px;background:transparent;color:#000f2c;cursor:pointer;text-align:left;white-space:nowrap}.TextureUploadModal-module_batchPickerMenu__LIzmM button:hover{color:#1890ff;background:#f7fbff}.TextureUploadModal-module_batchDraggerIcon__27YJm{width:32px;height:32px;margin-bottom:4px;opacity:.5;position:relative}.TextureUploadModal-module_batchDraggerIcon__27YJm:after,.TextureUploadModal-module_batchDraggerIcon__27YJm:before{content:"";position:absolute;background:#737b8b;border-radius:2px}.TextureUploadModal-module_batchDraggerIcon__27YJm:before{width:16px;height:2px;top:15px;left:8px}.TextureUploadModal-module_batchDraggerIcon__27YJm:after{width:2px;height:16px;top:8px;left:15px}.TextureUploadModal-module_batchDraggerText__Y13AQ{font-size:14px;color:#737b8b;margin-bottom:4px;line-height:22px}.TextureUploadModal-module_batchDraggerHint__JmSK7{font-size:14px;color:#737b8b;line-height:22px;margin-top:4px}.TextureUploadModal-module_batchDraggerInfo__lfacQ{display:flex;align-items:center;gap:2px;background:rgba(115,123,139,.12);padding:6px 10px;border-radius:4px;margin-top:16px;font-size:12px;color:#737b8b;line-height:22px}.TextureUploadModal-module_batchListTitle__3aNN7{font-size:14px;color:#1d2129;font-weight:400;margin-bottom:8px;line-height:22px}.TextureUploadModal-module_batchList__1tvg0{background:#fff;border-radius:4px;border:1px solid #e5e6eb;overflow:hidden}.TextureUploadModal-module_batchListHeader__34VcJ{display:grid;grid-template-columns:220px 300px 110px 90px 76px;background:#eef0f3;font-size:13px;color:#737b8b;font-weight:400;height:32px;align-items:center}.TextureUploadModal-module_batchListHeader__34VcJ>span{padding:0 12px;display:flex;align-items:center;height:100%;line-height:32px}.TextureUploadModal-module_batchListHeaderCol1__3KJYj,.TextureUploadModal-module_batchListHeaderCol2__1FlBZ,.TextureUploadModal-module_batchListHeaderCol3__1q09-,.TextureUploadModal-module_batchListHeaderCol4__1akfg,.TextureUploadModal-module_batchListHeaderCol5__3pt0h,.TextureUploadModal-module_batchListRowCol1__2WA8Q,.TextureUploadModal-module_batchListRowCol2__1DwGl,.TextureUploadModal-module_batchListRowCol3__2lsnq,.TextureUploadModal-module_batchListRowCol4__1k7Mt,.TextureUploadModal-module_batchListRowCol5__1GQm4{min-width:0}.TextureUploadModal-module_batchListHeaderCol1__3KJYj,.TextureUploadModal-module_batchListHeaderCol2__1FlBZ,.TextureUploadModal-module_batchListRowCol1__2WA8Q,.TextureUploadModal-module_batchListRowCol2__1DwGl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureUploadModal-module_batchListRow__23Is2{display:grid;grid-template-columns:220px 300px 110px 90px 76px;font-size:13px;color:#000f2c;height:48px;align-items:center;border-top:1px solid #eef0f3;transition:background .2s}.TextureUploadModal-module_batchListRow__23Is2>span{padding:0 12px;display:flex;height:100%;line-height:48px}.TextureUploadModal-module_batchListRow__23Is2:hover{background:#f9fafb}.TextureUploadModal-module_batchListRowCol__fHkeb{flex-shrink:0;padding:0 12px;display:flex;align-items:center;height:48px;border-right:1px solid #f1f3f5}.TextureUploadModal-module_batchListRowCol__fHkeb:last-child{border-right:none}.TextureUploadModal-module_expandIcon__2EEtS{width:14.7px;height:16px;margin-left:2px;display:inline-flex;align-items:center;justify-content:center}.TextureUploadModal-module_expandIcon__2EEtS svg{display:block}.TextureUploadModal-module_batchExpandRow__1eN0_{padding:16px 12px;background:#fff;border-top:1px solid #eef0f3;display:flex;gap:20px;align-items:center}.TextureUploadModal-module_expandIconRotated__35Pmy{transform:rotate(180deg)}.TextureUploadModal-module_channelLabelGray__2MB_k{color:#737b8b!important}.TextureUploadModal-module_batchId__KuOOs{font-family:monospace;color:#000f2c}.TextureUploadModal-module_batchChannelCount__30P2a{color:#000f2c}.TextureUploadModal-module_batchRemoveBtn__33-Ta{width:20px;height:20px;border:none;background:transparent;color:#ff4d4f;cursor:pointer;border-radius:4px;font-size:12px;display:flex;align-items:center;justify-content:center}.TextureUploadModal-module_batchRemoveBtn__33-Ta:hover{background:#fff1f0}.TextureUploadModal-module_batchRemoveBtn__33-Ta:disabled{cursor:not-allowed;opacity:.5;background:transparent}.TextureUploadModal-module_batchDeleteBtn__7IBIL{height:24px;padding:0 8px;border:none;background:transparent;color:#f53f3f;cursor:pointer;border-radius:4px;font-size:12px}.TextureUploadModal-module_batchDeleteBtn__7IBIL:disabled{cursor:not-allowed;opacity:.5;background:transparent}.TextureUploadModal-module_batchExpandBtn__185n9{color:#1890ff;border:none;background:transparent;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:flex-start;gap:2px;padding:0;line-height:1}.TextureUploadModal-module_batchExpandBtn__185n9:hover{text-decoration:underline}.TextureUploadModal-module_batchChannelPreview__1QPxa{padding:12px;background:#fafafa;border-top:1px solid #f1f3f5}.TextureUploadModal-module_channelGrid__1ut9m{display:flex;gap:16px;align-items:center}.TextureUploadModal-module_channelItem__2XPpH{text-align:center;display:flex;flex-direction:column;align-items:center}.TextureUploadModal-module_channelItem__2XPpH span{display:block;font-size:12px;color:#000f2c}.TextureUploadModal-module_channelActionItem__2ro04{width:64px;padding:0;border:none;background:transparent;cursor:pointer}.TextureUploadModal-module_channelActionItem__2ro04:hover .TextureUploadModal-module_channelThumb__1bhl-{border-color:#1890ff}.TextureUploadModal-module_channelActionItem__2ro04:hover .TextureUploadModal-module_channelHoverText__2O3pm{opacity:1}.TextureUploadModal-module_channelActionItem__2ro04:disabled{cursor:not-allowed;opacity:.7}.TextureUploadModal-module_channelThumbWrap__1tiDB{position:relative;width:64px;height:64px;display:block;margin-top:0!important}.TextureUploadModal-module_channelThumb__1bhl-{width:64px;height:64px;display:block;box-sizing:border-box;border-radius:4px;-o-object-fit:cover;object-fit:cover;background:#eef0f3;border:1px dashed transparent}.TextureUploadModal-module_channelThumbMissing__1AKms{position:relative;background:#fff;border-color:#c7ccd6}.TextureUploadModal-module_channelThumbMissing__1AKms:after,.TextureUploadModal-module_channelThumbMissing__1AKms:before{content:"";position:absolute;left:50%;top:50%;background:#a8b0bd;border-radius:1px;transform:translate(-50%,-50%)}.TextureUploadModal-module_channelThumbMissing__1AKms:before{width:14px;height:2px}.TextureUploadModal-module_channelThumbMissing__1AKms:after{width:2px;height:14px}.TextureUploadModal-module_channelHoverText__2O3pm{position:absolute;inset:0;display:flex!important;align-items:center;justify-content:center;margin-top:0!important;border-radius:4px;background:rgba(0,15,44,.58);color:#fff!important;opacity:0;transition:opacity .2s}.TextureUploadModal-module_channelThumbEmpty__39DC6{width:72px;height:72px;border-radius:6px;background:#f0f2f5;display:flex;align-items:center;justify-content:center;color:#999;font-size:14px}.TextureUploadModal-module_batchOneChannelGrid__2UR-V{display:flex;gap:20px;align-items:flex-start}.TextureUploadModal-module_batchOneChannelGrid__2UR-V .TextureUploadModal-module_channelItem__2XPpH .TextureUploadModal-module_channelThumb__1bhl-,.TextureUploadModal-module_batchOneChannelGrid__2UR-V .TextureUploadModal-module_channelItem__2XPpH .TextureUploadModal-module_channelThumbEmpty__39DC6{width:64px;height:64px}');var Ki=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"metallic",label:"Metallic",icon:"🔶"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"ao",label:"AO",icon:"⚪"},{key:"height",label:"Height",icon:"⬛"}],Xi=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"ao",label:"AO",icon:"⚪"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"height",label:"Height",icon:"⬛"},{key:"metallic",label:"Metallic",icon:"✨"}],Yi=["PNG","JPG","JPEG","EXR","TGA"],Zi=[{key:"referenceImage",token:"_main_hd"},{key:"baseColor",token:"_basecolor"},{key:"normal",token:"_normal"},{key:"ao",token:"_ao"},{key:"roughness",token:"_roughness"},{key:"height",token:"_height"},{key:"metallic",token:"_metallic"}],Qi=[{key:"referenceImage",label:"参考图"}].concat(Fe(Xi.map(function(e){return{key:e.key,label:e.label}}))),Ji=function(){return{referenceImage:null,baseColor:null,normal:null,ao:null,roughness:null,height:null,metallic:null}},$i=function(e,t){return V.default.createElement("span",{className:qi.submitContent},e&&V.default.createElement(S.LoadingOutlined,{className:qi.submitLoadingIcon,spin:!0}),V.default.createElement("span",null,e?"上传中":t))},el=a.connect()(function(e){var t=e.visible,a=e.onClose,r=e.onSuccess,o=e.onError,i=e.editRecord,l=!!i,s=Ge(n.useState(""),2),d=s[0],c=s[1],u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(null),2),h=f[0],_=f[1],g=Ge(n.useState({baseColor:null,normal:null,metallic:null,ao:null,roughness:null,height:null}),2),v=g[0],y=g[1],x=Ge(n.useState(!1),2),b=x[0],M=x[1],w=Ge(n.useState(null),2),T=w[0],E=w[1],C=n.useRef(null),N=n.useRef(null),L=Ge(n.useState(!1),2),k=L[0],I=L[1],P=Ge(n.useState({}),2),A=P[0],R=P[1],D=Ge(n.useState("single"),2),z=D[0],U=D[1],B=Ge(n.useState([]),2),G=B[0],F=B[1],O=n.useRef(null),H=n.useRef(null),j=Ge(n.useState(!1),2),W=j[0],q=j[1],K=Ge(n.useState(!1),2),X=K[0],Y=K[1],Z=Ge(n.useState(""),2),Q=Z[0],$=Z[1],ee=Ge(n.useState(""),2),te=ee[0],ae=ee[1],ne=Ge(n.useState(Ji),2),re=ne[0],oe=ne[1],ie=n.useRef(null),le=n.useRef(null),se=Ge(n.useState(null),2),de=se[0],ce=se[1],ue=Ge(n.useState(null),2),me=ue[0],pe=ue[1],fe=Ge(n.useState(!1),2),he=fe[0],_e=fe[1];n.useEffect(function(){if(t){if(t&&i){U("single"),c(i.name||""),p(i.id||""),_({name:i.refImageName||i.referenceImageName||i.name+"_ref",url:i.referenceImage||i.refImageUrl||i.url,format:i.referenceImageFormat||i.format,resolution:i.resolution}),y({baseColor:i.baseColor||i.baseColorUrl?{name:"BaseColor.png",url:i.baseColor||i.baseColorUrl}:null,normal:i.normal||i.normalUrl?{name:"Normal.png",url:i.normal||i.normalUrl}:null,metallic:i.metallic||i.metallicUrl?{name:"Metallic.png",url:i.metallic||i.metallicUrl}:null,ao:i.ao||i.aoUrl?{name:"AO.png",url:i.ao||i.aoUrl}:null,roughness:i.roughness||i.roughnessUrl?{name:"Roughness.png",url:i.roughness||i.roughnessUrl}:null,height:i.height||i.heightUrl?{name:"Height.png",url:i.height||i.heightUrl}:null})}}else l||(c(""),p(""),_(null),y({baseColor:null,normal:null,metallic:null,ao:null,roughness:null,height:null}),M(!1),U("single"),F([]),$(""),ae(""),oe({referenceImage:null,baseColor:null,normal:null,ao:null,roughness:null,height:null,metallic:null})),E(null),I(!1),R({}),q(!1),Y(!1),_e(!1),C.current&&(C.current.value=""),O.current&&(O.current.value=""),H.current&&(H.current.value=""),ie.current&&(ie.current.value=""),le.current&&(le.current.value="")},[t]);var ge,ve=function(e){return(null==e?void 0:e.data)||e},ye=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Mi({count:t});case 1:if(a=ve(e.v),n=(null==a?void 0:a.value)||[],!(null==a?void 0:a.success)||200!==(null==a?void 0:a.code)||t>n.length){e.n=2;break}return e.a(2,n.slice(0,t).map(function(e){return e+""}));case 2:throw Error((null==a?void 0:a.message)||"生成素材 ID 失败");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),xe=function(){var e=we(ze().m(function e(){var t,a;return ze().w(function(e){for(;;)switch(e.n){case 0:if(!l){e.n=1;break}return e.a(2,((null==i?void 0:i.id)||"")+"");case 1:if(!m){e.n=2;break}return e.a(2,m);case 2:return e.n=3,ye(1);case 3:return t=Ge(e.v,1),p(a=t[0]),e.a(2,a)}},e)}));return function(){return e.apply(this,arguments)}}(),be=function(){var e=we(ze().m(function e(){var t,a;return ze().w(function(e){for(;;)switch(e.n){case 0:if(!te){e.n=1;break}return e.a(2,te);case 1:return e.n=2,ye(1);case 2:return t=Ge(e.v,1),ae(a=t[0]),e.a(2,a)}},e)}));return function(){return e.apply(this,arguments)}}(),Me=function(e){return"ZIP"===function(){var e;return(null===(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(".").pop())||void 0===e?void 0:e.toUpperCase())||""}(null==e?void 0:e.name).toUpperCase()},Se=function(e){return(null==e?void 0:e.file)||e},Te=function(e){var t=Se(e);return(null==e?void 0:e.path)||(null==t?void 0:t.webkitRelativePath)||(null==t?void 0:t.name)},Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.createReader(),n="".concat(t).concat(e.name,"/");return new Promise(function(e){var t=[],r=function(){a.readEntries(function(){var a=we(ze().m(function a(o){return ze().w(function(a){for(;;)switch(a.n){case 0:if(o.length){a.n=2;break}return a.n=1,Promise.all(t.map(function(e){return Ce(e,n)}));case 1:return e(a.v.reduce(function(e,t){return e.concat(t)},[])),a.a(2);case 2:t.push.apply(t,Fe(o)),r();case 3:return a.a(2)}},a)}));return function(e){return a.apply(this,arguments)}}())};r()})},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.isFile?new Promise(function(a){e.file(function(e){return a([{file:e,path:"".concat(t).concat(e.name)}])})}):e.isDirectory?Ee(e,t):Promise.resolve([])},Le=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.n){case 0:if(a=Array.from(t.items||[]),(n=a.map(function(e){return e.webkitGetAsEntry&&e.webkitGetAsEntry()}).filter(Boolean)).length){e.n=1;break}return e.a(2,Array.from(t.files||[]));case 1:return e.n=2,Promise.all(n.map(function(e){return Ce(e)}));case 2:return e.a(2,e.v.reduce(function(e,t){return e.concat(t)},[]))}},e)}));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),t=Zi.find(function(t){return e.includes(t.token)});return(null==t?void 0:t.key)||""},Ie=function(e,t){return{id:(t||(null==e?void 0:e.id)||"")+"",name:(null==e?void 0:e.name)||"",referenceImage:(null==e?void 0:e.referenceImage)||"",resolution:(null==e?void 0:e.resolution)||"",baseColor:(null==e?void 0:e.baseColor)||"",normal:(null==e?void 0:e.normal)||"",ao:(null==e?void 0:e.ao)||"",roughness:(null==e?void 0:e.roughness)||"",height:(null==e?void 0:e.height)||"",metallic:(null==e?void 0:e.metallic)||""}},Pe=function(e,t){return(null==e?void 0:e[t])||Object.values(e||{}).find(function(e){return(null==e?void 0:e.fileName)===t})||{}},Ae=function(e,t){var a,n,r=null===(a=e.name)||void 0===a||null===(n=a.split(".").pop())||void 0===n?void 0:n.toUpperCase();return!!Yi.includes(r)||(o&&o({type:"error",message:"不支持的文件格式 ".concat(r,",请上传 PNG / JPG / EXR / TGA 格式文件")}),!1)},De=function(e){e.preventDefault(),e.stopPropagation(),I(!0)},Ue=function(e){e.preventDefault(),e.stopPropagation(),I(!1)},Be=function(e){e.preventDefault(),e.stopPropagation()},Oe=function(e){e.preventDefault(),e.stopPropagation(),I(!1);var t=e.dataTransfer.files,a=null==t?void 0:t[0];a&&Ae(a)&&(N.current="reference",qe(a))},He=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!0))})}},Ve=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!1))})}},je=function(e){e.preventDefault(),e.stopPropagation()},We=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!1))});var a=t.dataTransfer.files,n=null==a?void 0:a[0];n&&Ae(n)&&(N.current=e,qe(n))}},qe=function(){var e=we(ze().m(function e(t){var a,n,r,i,l,s,d,c;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return E(a=N.current),e.p=2,e.n=3,xe();case 3:return(n=new FormData).append("file",t),e.n=4,da(n);case 4:if(s=(l=(i=(r=e.v)?r.data:r)?i.value:null)&&l.fileAccessUrl||i&&i.fileAccessUrl,!i||200!==i.code||!s){e.n=8;break}if(d=s.split(".").pop()||"","reference"!==a){e.n=6;break}return e.n=5,Ke(s);case 5:_({name:t.name,url:s,file:t,resolution:e.v,format:d}),e.n=7;break;case 6:Ki.find(function(e){return e.key===a})&&y(function(e){return Re(Re({},e),{},Ne({},a,{name:t.name,url:s,file:t}))});case 7:e.n=9;break;case 8:throw Error(i&&i.message?i.message:"上传失败");case 9:e.n=11;break;case 10:e.p=10,console.error("上传失败",c=e.v),o&&o({type:"error",message:c&&c.message?c.message:"上传失败"});case 11:return e.p=11,E(null),N.current=null,C.current&&(C.current.value=""),e.f(11);case 12:return e.a(2)}},e,null,[[2,10,11,12]])}));return function(t){return e.apply(this,arguments)}}(),Ke=function(e){return new Promise(function(t){var a=new Image;a.onload=function(){t(a.naturalWidth+"x"+a.naturalHeight)},a.onerror=function(){t("")},a.src=e})},Xe=function(e){if(!e)return"";var t=e.split(".");return t.length>1?t[t.length-1].toLowerCase():""},Ye=function(e){N.current=e,C.current&&C.current.click()},Ze=function(){var e=we(ze().m(function e(){var t,n,s,c,u,m,p,f,_;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(l||h&&h.url){e.n=1;break}return o&&o({type:"error",message:"请上传参考图"}),e.a(2);case 1:if(t=Object.values(v).some(function(e){return e&&e.url}),l||t){e.n=2;break}return o&&o({type:"error",message:"请至少上传一个 PBR 贴图"}),e.a(2);case 2:if(M(!0),e.p=3,n={name:d,referenceImage:(null==h?void 0:h.url)||"",referenceImageFormat:(null==h?void 0:h.format)||Xe(null==h?void 0:h.url),resolution:(null==h?void 0:h.resolution)||"",baseColor:v.baseColor?v.baseColor.url:"",normal:v.normal?v.normal.url:"",metallic:v.metallic?v.metallic.url:"",ao:v.ao?v.ao.url:"",roughness:v.roughness?v.roughness.url:"",height:v.height?v.height.url:""},!l){e.n=5;break}return n.id=i.id,e.n=4,xi(n);case 4:(null==(c=null==(s=e.v)?void 0:s.data)?void 0:c.success)&&200===(null==c?void 0:c.code)?(r&&r({type:"success",message:"编辑成功"}),a()):o&&o({type:"error",message:(null==c?void 0:c.message)||(null==s?void 0:s.message)||"操作失败"}),e.n=8;break;case 5:return e.n=6,xe();case 6:return n.id=e.v,e.n=7,Ni({items:[Ie(n)]});case 7:(null==(m=null==(u=e.v)?void 0:u.data)?void 0:m.success)&&200===(null==m?void 0:m.code)?(r&&r({type:"success",message:"上传成功"}),a()):o&&o({type:"error",message:(null==m?void 0:m.message)||(null==u?void 0:u.message)||"操作失败"});case 8:e.n=10;break;case 9:e.p=9,console.error("操作失败",_=e.v),o&&o({type:"error",message:(null==_||null===(p=_.response)||void 0===p||null===(f=p.data)||void 0===f?void 0:f.message)||(null==_?void 0:_.message)||"操作失败"});case 10:return e.p=10,M(!1),e.f(10);case 11:return e.a(2)}},e,null,[[3,9,10,11]])}));return function(){return e.apply(this,arguments)}}(),Qe=function(e){var t={referenceImage:e.referenceImage?{name:"参考图",url:e.referenceImage}:null,baseColor:e.baseColor?{name:"BaseColor",url:e.baseColor}:null,normal:e.normal?{name:"Normal",url:e.normal}:null,ao:e.ao?{name:"AO",url:e.ao}:null,roughness:e.roughness?{name:"Roughness",url:e.roughness}:null,height:e.height?{name:"Height",url:e.height}:null,metallic:e.metallic?{name:"Metallic",url:e.metallic}:null};return Re(Re({},Ie(e)),{},{channels:t,channelCount:Xi.filter(function(e){return t[e.key]}).length,expanded:!1})},Je=function(){var e=we(ze().m(function e(t){var a,n,r,o,i,l,s,d,c;return ze().w(function(e){for(;;)switch(e.n){case 0:return(a=new FormData).append("file",t),e.n=1,da(a);case 1:if(i=(o=(r=(n=e.v)?n.data:n)?r.value:null)&&o.fileAccessUrl||r&&r.fileAccessUrl,r&&200===r.code&&i){e.n=2;break}throw Error((null==r?void 0:r.message)||"上传失败");case 2:return l=t.name,s=i,d=t,c=Xe(i),e.n=3,Ke(i);case 3:return e.a(2,{name:l,url:s,file:d,format:c,resolution:e.v})}},e)}));return function(t){return e.apply(this,arguments)}}(),$e=function(e,t,a){F(function(n){return n.map(function(n,r){if(r!==e)return n;var o=Re(Re({},n.channels||{}),{},Ne({},t,{name:a.name,url:a.url})),i=Re(Re({},n),{},Ne(Ne({},t,a.url),"channels",o));return"referenceImage"===t&&(i.resolution=a.resolution||n.resolution||""),i.channelCount=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xi.filter(function(t){var a;return e[t.key]||(null===(a=e.channels)||void 0===a?void 0:a[t.key])}).length}(i),i})})},et=function(){var e=we(ze().m(function e(t){var a,n,r,i;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t.target.files&&t.target.files[0],n=de,t.target.value="",a&&n){e.n=1;break}return ce(null),e.a(2);case 1:if(Ae(a)){e.n=2;break}return ce(null),e.a(2);case 2:if(r="".concat(n.type,"-").concat(n.rowIndex||0,"-").concat(n.channelKey),pe(r),e.p=3,"batchOne"!==n.type){e.n=5;break}return e.n=4,be();case 4:oe(function(e){return Re(Re({},e),{},Ne({},n.channelKey,{name:a.name,url:URL.createObjectURL(a),file:a}))}),e.n=7;break;case 5:return e.n=6,Je(a);case 6:$e(n.rowIndex,n.channelKey,e.v);case 7:e.n=9;break;case 8:e.p=8,console.error("通道上传失败",i=e.v),o&&o({type:"error",message:(null==i?void 0:i.message)||"通道上传失败"});case 9:return e.p=9,pe(null),ce(null),e.f(9);case 10:return e.a(2)}},e,null,[[3,8,9,10]])}));return function(t){return e.apply(this,arguments)}}(),tt=function(){var e=we(ze().m(function e(t,a){var n,r,i,l,s,d;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==t.length){e.n=1;break}return e.a(2);case 1:if(0!==(n=t.filter(function(e){var t=Se(e);return!("zip"===a&&!Me(t))||(o&&o({type:"error",message:"不支持 ".concat(t.name," 格式,请上传 ZIP 压缩包")}),!1)})).length){e.n=2;break}return e.a(2);case 2:if(Y(!1),M(!0),e.p=3,r=new FormData,n.forEach(function(e){var t=Se(e);r.append("folder"===a?"files":"file",t,Te(e))}),"zip"!==a){e.n=5;break}return e.n=4,Si(r);case 4:s=e.v,e.n=7;break;case 5:return e.n=6,Ei(r);case 6:s=e.v;case 7:if((null==(i=ve(s))?void 0:i.success)&&200===(null==i?void 0:i.code)){e.n=8;break}throw Error((null==i?void 0:i.message)||("zip"===a?"上传材质压缩包失败":"上传材质文件夹失败"));case 8:l=(i.value||[]).map(Qe),F(function(e){return[].concat(Fe(e),Fe(l))}),e.n=10;break;case 9:e.p=9,console.error("解析批量材质失败",d=e.v),o&&o({type:"error",message:(null==d?void 0:d.message)||"解析批量材质失败"});case 10:return e.p=10,M(!1),e.f(10);case 11:return e.a(2)}},e,null,[[3,9,10,11]])}));return function(t,a){return e.apply(this,arguments)}}(),at=function(){var e=we(ze().m(function e(t){var a,n,r;return ze().w(function(e){for(;;)switch(e.n){case 0:return t.preventDefault(),t.stopPropagation(),q(!1),e.n=1,Le(t.dataTransfer);case 1:if(n=(a=e.v).filter(function(e){return Me(Se(e))}),r=a.filter(function(e){return!Me(Se(e))}),n.length<=0){e.n=2;break}return e.n=2,tt(n,"zip");case 2:if(r.length<=0){e.n=3;break}return e.n=3,tt(r,"folder");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),nt=function(e){Y(!1),U(e)},rt=function(){var e=we(ze().m(function e(){var t,n,i;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==G.length){e.n=1;break}return o&&o({type:"error",message:"请先添加要上传的文件"}),e.a(2);case 1:return M(!0),e.p=2,t=G.map(function(e){return Ie(e)}),e.n=3,Ni({items:t});case 3:if((null==(n=ve(e.v))?void 0:n.success)&&200===(null==n?void 0:n.code)){e.n=4;break}throw Error((null==n?void 0:n.message)||"批量保存失败");case 4:r&&r({type:"success",message:"上传成功:".concat(t.length," 个材质已加入素材库")}),a(),e.n=6;break;case 5:e.p=5,console.error("批量上传多材质失败",i=e.v),o&&o({type:"error",message:(null==i?void 0:i.message)||"批量上传失败"});case 6:return e.p=6,M(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=Ji(),t.forEach(function(e){if(Ae(e)){var t=ke(e.name);t&&(a[t]={name:e.name,url:URL.createObjectURL(e),file:e})}}),Object.values(a).some(Boolean)){e.n=1;break}return o&&o({type:"error",message:"未识别到符合命名规范的贴图文件"}),e.a(2);case 1:return e.p=1,e.n=2,be();case 2:e.n=4;break;case 3:return e.p=3,console.error("生成素材 ID 失败",n=e.v),o&&o({type:"error",message:(null==n?void 0:n.message)||"生成素材 ID 失败"}),e.a(2);case 4:oe(function(e){return Re(Re({},e),a)});case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=we(ze().m(function e(){var t,n,i,l,s,d,c,u;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==(t=Object.values(re).filter(Boolean)).length){e.n=1;break}return o&&o({type:"error",message:"请先添加要上传的文件"}),e.a(2);case 1:return M(!0),e.p=2,e.n=3,be();case 3:return n=e.v,i=new FormData,t.forEach(function(e){return i.append("file",e.file)}),e.n=4,ua(i);case 4:if((null==(l=ve(e.v))?void 0:l.success)&&200===(null==l?void 0:l.code)){e.n=5;break}throw Error((null==l?void 0:l.message)||"上传文件失败");case 5:return s=(null==l?void 0:l.value)||{},d={id:n,name:Q,referenceImage:"",resolution:"",baseColor:"",normal:"",ao:"",roughness:"",height:"",metallic:""},Object.entries(re).forEach(function(e){var t=Ge(e,2),a=t[0],n=t[1];if(n){var r=Pe(s,n.name).fileAccessUrl||"";if(!r)throw Error("".concat(n.name," 上传地址缺失"));d[a]=r}}),e.n=6,Ni({items:[Ie(d)]});case 6:if((null==(c=ve(e.v))?void 0:c.success)&&200===(null==c?void 0:c.code)){e.n=7;break}throw Error((null==c?void 0:c.message)||"批量保存失败");case 7:r&&r({type:"success",message:"上传成功"}),a(),e.n=9;break;case 8:e.p=8,console.error("同材质多图上传失败",u=e.v),o&&o({type:"error",message:(null==u?void 0:u.message)||"上传失败"});case 9:return e.p=9,M(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(){return e.apply(this,arguments)}}();return t?V.default.createElement("div",{className:qi.overlay,onClick:function(e){}},V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",style:{display:"none"},ref:C,onChange:function(e){var t=e.target.files,a=t&&t[0];a&&Ae(a)&&qe(a)}}),V.default.createElement("input",{type:"file",accept:".zip",multiple:!0,style:{display:"none"},ref:O,onChange:function(e){var t=Array.from(e.target.files||[]);tt(t,"zip"),e.target.value=""}}),V.default.createElement("input",{type:"file",multiple:!0,webkitdirectory:"",directory:"",style:{display:"none"},ref:H,onChange:function(e){var t=Array.from(e.target.files||[]);tt(t,"folder"),e.target.value=""}}),V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",multiple:!0,style:{display:"none"},ref:ie,onChange:function(e){var t=Array.from(e.target.files||[]);ot(t)}}),V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",style:{display:"none"},ref:le,onChange:et}),V.default.createElement("div",{className:qi.modal,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:qi.header},V.default.createElement("span",{className:qi.title},l?"编辑材质素材":"上传材质"),V.default.createElement("button",{className:qi.closeBtn,onClick:a,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:qi.body},!l&&V.default.createElement(V.default.Fragment,null,V.default.createElement("p",{className:qi.subtitle},"上传 PBR 材质贴图,支持 PNG / JPG / EXR / TGA 格式。素材 ID 自动生成,不可编辑。支持两类批量上传。"),V.default.createElement("div",{className:qi.uploadTabs},V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("single"===z?qi.uploadTabActive:""),onClick:function(){return nt("single")}},"单材质上传"),V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("batchMulti"===z?qi.uploadTabActive:""),onClick:function(){return nt("batchMulti")}},"批量上传·多材质"),V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("batchOne"===z?qi.uploadTabActive:""),onClick:function(){return nt("batchOne")}},"批量上传·同材质多图"))),"single"===z&&V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label},"材质名称"),V.default.createElement(J.default,{placeholder:"如:北欧橡木地板纹",className:qi.input,value:d,onChange:function(e){return c(e.target.value)}})),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label},"素材 ID"),V.default.createElement("div",{className:qi.fieldWrap},V.default.createElement(J.default,{className:qi.input,value:m,disabled:!0}),V.default.createElement("span",{className:qi.materialIdHint},"(自动生成,不可编辑)"))),V.default.createElement("div",{className:qi.uploadSection},V.default.createElement("div",{className:qi.referenceArea},V.default.createElement("div",{className:qi.chartletLabel},"贴图"),(ge="reference"===T,V.default.createElement("div",{className:qi.refUploadContainer},h&&h.url?V.default.createElement("div",{className:"".concat(qi.refUploadEmpty," ").concat(k?qi.dragging:""),onClick:function(){return Ye("reference")},onDragEnter:De,onDragOver:Be,onDragLeave:Ue,onDrop:Oe,style:{backgroundImage:"url(".concat(h.url,")"),backgroundSize:"cover",backgroundPosition:"center"}},V.default.createElement("div",{className:qi.refUploadOverlay},V.default.createElement("span",{className:qi.refUploadOverlayText},"点击上传"))):V.default.createElement("div",{className:"".concat(qi.refUploadEmpty," ").concat(ge?qi.refUploading:""," ").concat(""," ").concat(k?qi.dragging:""),onClick:function(){return!ge&&Ye("reference")},onDragEnter:De,onDragOver:Be,onDragLeave:Ue,onDrop:Oe},ge?V.default.createElement("span",{className:qi.refUploadingText},"上传中..."):V.default.createElement(V.default.Fragment,null,V.default.createElement(S.PlusOutlined,{className:qi.refUploadIcon}),V.default.createElement("span",{className:qi.refUploadText},"点击上传"),V.default.createElement("span",{className:qi.refUploadHint},"建议800*800px"),V.default.createElement("span",{className:qi.infoChip},V.default.createElement(S.InfoCircleOutlined,null),"该图将作为材质缩略图"))),V.default.createElement("div",{className:qi.refUploadLabel},"参考图")))),V.default.createElement("div",{className:qi.pbrArea},V.default.createElement("div",{className:qi.areaLabel},"PBR 贴图(6通道)"),V.default.createElement("div",{className:qi.pbrGrid},Ki.map(function(e){return V.default.createElement("div",{key:e.key,className:qi.pbrItem},function(e){var t=T===e.key,a=v[e.key],n=A[e.key]||!1;return a&&a.url?V.default.createElement("div",{className:"".concat(qi.pbrUploadFilled," ").concat(n?qi.dragging:""),onClick:function(){return Ye(e.key)},onDragEnter:He(e.key),onDragOver:je,onDragLeave:Ve(e.key),onDrop:We(e.key)},V.default.createElement("img",{src:a.url,alt:a.name,className:qi.pbrUploadedImage}),V.default.createElement("div",{className:qi.pbrUploadOverlay},V.default.createElement("span",{className:qi.pbrUploadOverlayText},"点击或拖拽上传"))):V.default.createElement("div",{className:"".concat(qi.pbrUploadEmpty," ").concat(t?qi.pbrUploading:""," ").concat(""," ").concat(n?qi.dragging:""),onClick:function(){return!t&&Ye(e.key)},onDragEnter:He(e.key),onDragOver:je,onDragLeave:Ve(e.key),onDrop:We(e.key)},t?V.default.createElement("span",{className:qi.pbrUploadingText},"上传中..."):V.default.createElement(V.default.Fragment,null,V.default.createElement(S.PlusOutlined,{className:qi.pbrUploadIcon}),V.default.createElement("span",{className:qi.pbrUploadText},"点击上传")))}(e),V.default.createElement("div",{className:qi.pbrLabel},e.label))}))))),"batchMulti"===z&&V.default.createElement("div",{className:qi.batchMultiWrap},V.default.createElement("div",{className:"".concat(qi.batchDragger," ").concat(W?qi.batchDragging:""),onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),q(!0)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),q(!1)},onDrop:at,onClick:function(){b||Y(function(e){return!e})}},V.default.createElement("div",{className:qi.batchDraggerIcon}),V.default.createElement("div",{className:qi.batchDraggerText},"拖拽多个材质文件夹/压缩包到此处,或点击选择上传"),V.default.createElement("div",{className:qi.batchDraggerHint},"支持 ZIP 压缩包,或包含参考图与 PBR 通道图的材质文件夹"),V.default.createElement("button",{type:"button",className:qi.batchPickerTrigger},"选择上传类型",V.default.createElement(S.DownOutlined,{className:qi.batchPickerArrow})),X&&V.default.createElement("div",{className:qi.batchPickerMenu,onClick:function(e){return e.stopPropagation()}},V.default.createElement("button",{type:"button",onClick:function(){Y(!1),O.current&&O.current.click()}},V.default.createElement("span",null,"选择压缩包")),V.default.createElement("button",{type:"button",onClick:function(){Y(!1),H.current&&H.current.click()}},V.default.createElement("span",null,"选择文件夹"))),V.default.createElement("div",{className:qi.batchDraggerInfo},V.default.createElement("span",null,"每个材质独立生成素材 ID,自动读取参考图与六通道贴图"))),G.length>0&&V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:qi.batchListTitle},"待上传清单(素材 ID 自动生成)"),V.default.createElement("div",{className:qi.batchList},V.default.createElement("div",{className:qi.batchListHeader},V.default.createElement("span",{className:qi.batchListHeaderCol1},"素材ID"),V.default.createElement("span",{className:qi.batchListHeaderCol2},"材质名称"),V.default.createElement("span",{className:qi.batchListHeaderCol3},"通道数"),V.default.createElement("span",{className:qi.batchListHeaderCol4},"展开"),V.default.createElement("span",{className:qi.batchListHeaderCol5},"操作")),G.map(function(e,t){return V.default.createElement("div",{key:t},V.default.createElement("div",{className:qi.batchListRow},V.default.createElement("span",{className:"".concat(qi.batchListRowCol1," ").concat(qi.batchId)},e.id||"待生成"),V.default.createElement("span",{className:qi.batchListRowCol2},e.name),V.default.createElement("span",{className:qi.batchListRowCol3},e.channelCount,"/6"),V.default.createElement("span",{className:"".concat(qi.batchListRowCol4," ").concat(qi.batchExpandBtn),onClick:function(){var e=Fe(G);e[t].expanded=!e[t].expanded,F(e)}},e.expanded?"收起":"查看",V.default.createElement("span",{className:"".concat(qi.expandIcon," ").concat(e.expanded?qi.expandIconRotated:"")},V.default.createElement("svg",{viewBox:"0 0 14.7 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.default.createElement("path",{d:"M2 4L7.35 11L12 4",stroke:"#1890FF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),V.default.createElement("span",{className:qi.batchListRowCol5},V.default.createElement("button",{type:"button",className:qi.batchDeleteBtn,disabled:!!me||b,onClick:function(a){a.stopPropagation(),function(e,t){F(function(a){return a.filter(function(a,n){return e?a.id+""!=e+"":n!==t})})}(e.id,t)}},"删除"))),e.expanded&&V.default.createElement("div",{className:qi.batchExpandRow},Qi.map(function(a){var n,r=null===(n=e.channels)||void 0===n?void 0:n[a.key],o="batchMulti-".concat(t,"-").concat(a.key),i=me===o;return V.default.createElement("button",{key:a.key,type:"button",className:"".concat(qi.channelItem," ").concat(qi.channelActionItem),onClick:function(){return e=t,n=a.key,void(b||me||(ce({type:"batchMulti",rowIndex:e,channelKey:n}),le.current&&le.current.click()));var e,n},disabled:!!me||b},r?V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("img",{src:r.url,alt:a.label,className:qi.channelThumb}),V.default.createElement("span",{className:qi.channelHoverText},i?"上传中":"替换")):V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("span",{className:"".concat(qi.channelThumb," ").concat(qi.channelThumbMissing)}),V.default.createElement("span",{className:qi.channelHoverText},i?"上传中":"上传")),V.default.createElement("span",{className:r?"":qi.channelLabelGray},a.label))})))})))),"batchOne"===z&&V.default.createElement("div",{className:qi.batchOneWrap},V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}},"材质名称 "),V.default.createElement(J.default,{placeholder:"如:爵士白大理石",className:qi.input,value:Q,onChange:function(e){return $(e.target.value)}})),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}},"素材 ID"),V.default.createElement("div",{className:qi.fieldWrap},V.default.createElement(J.default,{className:qi.input,value:te,disabled:!0}),V.default.createElement("span",{className:qi.materialIdHint},"(自动生成,不可编辑)"))),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}}),V.default.createElement("div",{className:"".concat(qi.batchDragger," ").concat(he?qi.batchDragging:""," ").concat(qi.batchDraggerBatchOne),onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),_e(!0)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),_e(!1)},onDrop:function(e){e.preventDefault(),e.stopPropagation(),_e(!1),ot(Array.from(e.dataTransfer.files||[]))},onClick:function(){ie.current&&ie.current.click()}},V.default.createElement("div",{className:qi.batchDraggerIcon}),V.default.createElement("div",{className:qi.batchDraggerText},"批量选择同一材质的多张贴图(参考图 + 六通道)"),V.default.createElement("div",{className:qi.batchDraggerHint},"系统按文件名自动识别通道(_main_hd / _basecolor / _normal / _ao / _roughness / _height / _metallic)"))),Object.values(re).some(function(e){return e})&&V.default.createElement("div",{className:qi.batchOneChannelSection},V.default.createElement("div",{className:qi.batchOneChannelTitle},"已识别通道"),V.default.createElement("div",{className:qi.batchOneChannelGrid},Qi.map(function(e){var t=re[e.key],a=me==="batchOne-0-".concat(e.key);return V.default.createElement("button",{key:e.key,type:"button",className:"".concat(qi.channelItem," ").concat(qi.channelActionItem),onClick:function(){return t=e.key,void(b||me||(ce({type:"batchOne",channelKey:t}),le.current&&le.current.click()));var t},disabled:!!me||b},t?V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("img",{src:t.url,alt:e.label,className:qi.channelThumb}),V.default.createElement("span",{className:qi.channelHoverText},a?"上传中":"替换")):V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("span",{className:"".concat(qi.channelThumb," ").concat(qi.channelThumbMissing)}),V.default.createElement("span",{className:qi.channelHoverText},a?"上传中":"上传")),V.default.createElement("span",{className:t?"":qi.channelLabelGray},e.label))}))))),V.default.createElement("div",{className:qi.footer},V.default.createElement("button",{className:qi.cancelBtn,onClick:a,type:"button"},"取消"),"single"===z?V.default.createElement("button",{type:"button",className:qi.confirmBtn,onClick:Ze,disabled:b},$i(b,l?"保存":"上传")):V.default.createElement("button","batchMulti"===z?{type:"button",className:qi.confirmBtn,onClick:rt,disabled:b||0===G.length}:{type:"button",className:qi.confirmBtn,onClick:it,disabled:b||!Object.values(re).some(function(e){return e})},$i(b,"上传"))))):null}),tl="TexturePreviewModal-module_overlay__2ZzPl",al="TexturePreviewModal-module_modal__3kCpx",nl="TexturePreviewModal-module_header__2oMTf",rl="TexturePreviewModal-module_title__3LJJs",ol="TexturePreviewModal-module_closeBtn__BcOID",il="TexturePreviewModal-module_body__Pzi3b",ll="TexturePreviewModal-module_subtitle__eYton",sl="TexturePreviewModal-module_separator__3E2S8",dl="TexturePreviewModal-module_previewContent__2VybY",cl="TexturePreviewModal-module_referenceArea__lMOtE",ul="TexturePreviewModal-module_reference__23d0i",ml="TexturePreviewModal-module_areaLabel__1nfRo",pl="TexturePreviewModal-module_materialName__1Isch",fl="TexturePreviewModal-module_referenceImage__2rNLA",hl="TexturePreviewModal-module_loadingPlaceholder__2VCWj",_l="TexturePreviewModal-module_pbrArea__2FaR_",gl="TexturePreviewModal-module_pbrGrid__1HP98",vl="TexturePreviewModal-module_pbrItem__2rvZg",yl="TexturePreviewModal-module_pbrThumbnail__1q2Ei",xl="TexturePreviewModal-module_pbrPlaceholder__jVMYg",bl="TexturePreviewModal-module_pbrLabel__1KZst",Ml="TexturePreviewModal-module_pbrResolution__rYB-b",wl="TexturePreviewModal-module_footer__3darK",Sl="TexturePreviewModal-module_confirmBtn__fXVDk";je(".TexturePreviewModal-module_overlay__2ZzPl{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TexturePreviewModal-module_modal__3kCpx{background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden}.TexturePreviewModal-module_header__2oMTf{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #dde1e6}.TexturePreviewModal-module_title__3LJJs{font-size:18px;font-weight:600;color:#000}.TexturePreviewModal-module_closeBtn__BcOID{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#666;font-size:12px;transition:all .2s}.TexturePreviewModal-module_closeBtn__BcOID:hover{background:#f5f5f5}.TexturePreviewModal-module_body__Pzi3b{padding:20px 24px}.TexturePreviewModal-module_subtitle__eYton{font-size:14px;color:#000;margin:0 0 16px}.TexturePreviewModal-module_subtitle__eYton strong{color:#333;font-weight:500}.TexturePreviewModal-module_separator__3E2S8{margin:0 8px;color:#e8e8e8}.TexturePreviewModal-module_previewContent__2VybY{display:flex;gap:24px}.TexturePreviewModal-module_referenceArea__lMOtE{flex-shrink:0;background:#f0f2f5;border-radius:12px}.TexturePreviewModal-module_reference__23d0i{font-size:12px;font-weight:400;color:#737b8b;margin:12px 0 4px 12px}.TexturePreviewModal-module_areaLabel__1nfRo{font-size:14px;font-weight:400;color:#000;margin-bottom:8px}.TexturePreviewModal-module_materialName__1Isch{font-family:PingFang SC;font-weight:600;font-size:14px;color:#000f2c;margin:0 0 45px 12px}.TexturePreviewModal-module_referenceImage__2rNLA{width:310px;height:310px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:hsla(0,0%,100%,.7);font-size:12px;overflow:hidden;position:relative;margin:4px}.TexturePreviewModal-module_referenceImage__2rNLA img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TexturePreviewModal-module_loadingPlaceholder__2VCWj{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.3);color:#fff}.TexturePreviewModal-module_placeholderText__14GA0{text-align:center;padding:8px}.TexturePreviewModal-module_pbrArea__2FaR_{flex:1}.TexturePreviewModal-module_pbrGrid__1HP98{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:410px}.TexturePreviewModal-module_pbrItem__2rvZg{background:#f0f2f5;border-radius:12px;padding:4px;height:184px}.TexturePreviewModal-module_pbrThumbnail__1q2Ei{width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden}.TexturePreviewModal-module_pbrThumbnail__1q2Ei img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TexturePreviewModal-module_pbrPlaceholder__jVMYg{width:100%;height:100%;background:linear-gradient(135deg,#555,#aaa,#555)}.TexturePreviewModal-module_pbrLabel__1KZst{font-size:14px;font-weight:600;color:#000f2c;margin-left:8px;margin-top:8px}.TexturePreviewModal-module_pbrResolution__rYB-b{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:12px;line-height:22px;letter-spacing:0;margin-left:8px;color:#737b8b}.TexturePreviewModal-module_footer__3darK{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid #e8e8e8;background:#fff}.TexturePreviewModal-module_confirmBtn__fXVDk{padding:4px 15px;border-radius:4px;font-size:14px;color:#737b8b;cursor:pointer;transition:all .2s;background:#fff;border:1px solid #717d99}.TexturePreviewModal-module_confirmBtn__fXVDk:hover{border:1px solid #40a9ff;color:#40a9ff}");var Tl=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"metallic",label:"Metallic",icon:"🔶"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"ao",label:"AO",icon:"⚪"},{key:"height",label:"Height",icon:"⬛"}],El=function(e){var t=e.visible,a=e.record,r=e.onClose,o=Ge(n.useState(!1),2),i=o[0],l=o[1],s=a&&a.name,d=a&&a.referenceImage,c=a&&a.resolution;n.useEffect(function(){t||l(!1)},[t]);var u=a&&{baseColor:a.baseColor,normal:a.normal,metallic:a.metallic,roughness:a.roughness,ao:a.ao,height:a.height};return t?V.default.createElement("div",{className:tl,onClick:function(e){}},V.default.createElement("div",{className:al,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:nl},V.default.createElement("span",{className:rl},"材质预览"),V.default.createElement("button",{className:ol,onClick:r,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:il},V.default.createElement("p",{className:ll},V.default.createElement("span",null,s||"材质名称"),c&&V.default.createElement("span",{className:sl},"·"),c&&V.default.createElement("span",null,c)),V.default.createElement("div",{className:dl},V.default.createElement("div",{className:cl},V.default.createElement("div",{className:fl},d&&V.default.createElement(V.default.Fragment,null,!i&&V.default.createElement("div",{className:hl},"加载中..."),V.default.createElement("img",{src:d,alt:s,onLoad:function(){return l(!0)},onError:function(){return l(!0)},style:{display:i?"block":"none"}}))),V.default.createElement("div",{className:ul},"参考图"),V.default.createElement("div",{className:pl},s||"材质名称")),V.default.createElement("div",{className:_l},V.default.createElement("div",{className:ml},"PBR 贴图"),V.default.createElement("div",{className:gl},Tl.map(function(e){var t=u&&u[e.key];return V.default.createElement("div",{key:e.key,className:vl},V.default.createElement("div",{className:yl},t?V.default.createElement("img",{src:t,alt:e.label}):V.default.createElement("div",{className:xl})),V.default.createElement("div",{className:bl},e.label),c&&V.default.createElement("div",{className:Ml},c))}))))),V.default.createElement("div",{className:wl},V.default.createElement("button",{className:Sl,onClick:r,type:"button"},"关闭")))):null},Cl={overlay:"TextureSelectModal-module_overlay__2zNrF",modal:"TextureSelectModal-module_modal__2cl5U",header:"TextureSelectModal-module_header__3v08Z",title:"TextureSelectModal-module_title__3qAEV",closeBtn:"TextureSelectModal-module_closeBtn__1rn-0",body:"TextureSelectModal-module_body__1g0Tc",currentModelCard:"TextureSelectModal-module_currentModelCard__QaTlT",currentModelLabel:"TextureSelectModal-module_currentModelLabel__3S_sX",currentModelInfo:"TextureSelectModal-module_currentModelInfo__2i2Hi",modelIcon:"TextureSelectModal-module_modelIcon__2FiDR",modelDetail:"TextureSelectModal-module_modelDetail__3PS4Y",modelName:"TextureSelectModal-module_modelName__FrUY9",modelMeta:"TextureSelectModal-module_modelMeta__1Lw3F",searchLabel:"TextureSelectModal-module_searchLabel__3jwsa",searchInput:"TextureSelectModal-module_searchInput__3svlS",searchIcon:"TextureSelectModal-module_searchIcon__3Cdxo",loadingWrap:"TextureSelectModal-module_loadingWrap__3bdvr",materialListWrap:"TextureSelectModal-module_materialListWrap__1BPiK",materialGrid:"TextureSelectModal-module_materialGrid__HVUUR",materialCard:"TextureSelectModal-module_materialCard__1vta6",materialCardSelected:"TextureSelectModal-module_materialCardSelected__1HA0J",materialIcon:"TextureSelectModal-module_materialIcon__2Mj_o",materialInfo:"TextureSelectModal-module_materialInfo__MZx0H",materialName:"TextureSelectModal-module_materialName__3tO_D",materialMeta:"TextureSelectModal-module_materialMeta__36Q1b",resultCount:"TextureSelectModal-module_resultCount__1s8GQ",footer:"TextureSelectModal-module_footer__3mTWa",cancelBtn:"TextureSelectModal-module_cancelBtn__3F4NF",confirmBtn:"TextureSelectModal-module_confirmBtn__g4XsB"};je(".TextureSelectModal-module_overlay__2zNrF{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TextureSelectModal-module_modal__2cl5U{min-width:580px;background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden}.TextureSelectModal-module_header__3v08Z{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 16px 24px;border-bottom:1px solid #e8e8e8}.TextureSelectModal-module_title__3qAEV{font-size:16px;font-weight:600;color:#000f2c}.TextureSelectModal-module_closeBtn__1rn-0{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#666;font-size:12px;transition:all .2s}.TextureSelectModal-module_closeBtn__1rn-0:hover{background:#f5f5f5}.TextureSelectModal-module_body__1g0Tc{padding:12px 24px 24px}.TextureSelectModal-module_currentModelCard__QaTlT{margin-bottom:24px}.TextureSelectModal-module_currentModelLabel__3S_sX{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-bottom:8px}.TextureSelectModal-module_currentModelInfo__2i2Hi{width:260px;padding:10px;background:#f0f2f5;border-radius:8px;display:flex;align-items:center;gap:6px}.TextureSelectModal-module_modelIcon__2FiDR{width:42px;height:42px;background:linear-gradient(135deg,#7b8b6f,#a8b89a);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:600}.TextureSelectModal-module_modelDetail__3PS4Y{flex:1;display:flex;flex-direction:column;justify-content:space-between}.TextureSelectModal-module_modelName__FrUY9{font-family:PingFang SC;font-weight:600;font-size:14px;line-height:100%;color:#000f2c;margin-bottom:2px}.TextureSelectModal-module_modelMeta__1Lw3F{font-family:PingFang SC;font-weight:400;font-size:12px;line-height:22px;color:#737b8b}.TextureSelectModal-module_searchLabel__3jwsa{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-bottom:8px}.TextureSelectModal-module_searchInput__3svlS{width:100%;height:32px;border-radius:6px;border:1px solid #f0f2f5;background:#f0f2f5}.TextureSelectModal-module_searchInput__3svlS .ant-input{background:#f0f2f5}.TextureSelectModal-module_searchInput__3svlS:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.1)}.TextureSelectModal-module_searchIcon__3Cdxo{color:#999}.TextureSelectModal-module_loadingWrap__3bdvr{height:200px;display:flex;align-items:center;justify-content:center}.TextureSelectModal-module_materialListWrap__1BPiK{margin-top:10px}.TextureSelectModal-module_materialGrid__HVUUR{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;max-height:300px;overflow-y:auto}.TextureSelectModal-module_materialCard__1vta6{width:260px;padding:10px;background:#f0f2f5;border-radius:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px;border:1px solid transparent}.TextureSelectModal-module_materialCard__1vta6:hover{background:#e8ecf2}.TextureSelectModal-module_materialCard__1vta6.TextureSelectModal-module_materialCardSelected__1HA0J{border:1px solid #1890ff}.TextureSelectModal-module_materialIcon__2Mj_o{width:42px;height:42px;background:linear-gradient(135deg,#7b8b6f,#a8b89a);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:600;flex-shrink:0;overflow:hidden}.TextureSelectModal-module_materialIcon__2Mj_o>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureSelectModal-module_materialInfo__MZx0H{flex:1;display:flex;flex-direction:column;justify-content:space-between}.TextureSelectModal-module_materialName__3tO_D{font-size:14px;font-weight:600;color:#000f2c;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureSelectModal-module_materialMeta__36Q1b{font-size:12px;color:#737b8b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureSelectModal-module_resultCount__1s8GQ{text-align:center;font-size:11px;color:#999;margin-top:8px}.TextureSelectModal-module_footer__3mTWa{display:flex;justify-content:flex-end;gap:12px;padding:14px 24px;border-top:1px solid #e8e8e8;background:#fafafa}.TextureSelectModal-module_cancelBtn__3F4NF{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;color:#737b8b;border:1px solid #717d99;background:#fff}.TextureSelectModal-module_cancelBtn__3F4NF:hover{color:#1890ff;border-color:#1890ff}.TextureSelectModal-module_confirmBtn__g4XsB{height:32px;padding:0 15px;border-radius:4px;font-weight:400;font-size:14px;background:#1890ff!important;border:none!important}.TextureSelectModal-module_confirmBtn__g4XsB:hover{background:#40a9ff!important}");var Nl=function(e){var t=e.visible,a=e.currentMaterial,r=e.onClose,o=e.onConfirm,i=e.onSuccess,l=e.onError,s=Ge(n.useState(null),2),d=s[0],c=s[1],u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=Ge(n.useState(!1),2),v=g[0],y=g[1],x=Ge(n.useState([]),2),b=x[0],M=x[1],w=n.useRef(""),T=n.useRef(!0),E=function(e){var t=null==e?void 0:e.trim();return t?/^\d+$/.test(t)?{id:t}:{name:t}:{}},C=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:return _(!0),e.p=1,a=E(t),e.n=2,ci(a);case 2:(n=e.v)&&n.data&&n.data.success&&M(n.data.value||[]),e.n=4;break;case 3:e.p=3,console.error(e.v);case 4:return e.p=4,_(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}();n.useEffect(function(){if(t){T.current=!0,c(null),p(""),w.current="",M([]),C("");var e=setTimeout(function(){""!==w.current&&(w.current="",C(""))},300);return function(){return clearTimeout(e)}}},[t]),n.useEffect(function(){if(t){if(!T.current){var e=setTimeout(function(){var e=m;w.current!==e&&(w.current=e,C(e))},300);return function(){return clearTimeout(e)}}T.current=!1}},[m,t]);var N=function(){var e=we(ze().m(function e(){var t,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!==d){e.n=1;break}return l&&l({type:"error",message:"请先选择素材"}),e.a(2);case 1:return t=b[d],y(!0),e.p=2,e.n=3,ii({classify3Id:a&&a._raw?a._raw.classify3Id:void 0,defaultMaterialId:t?t.id:void 0});case 3:(n=e.v)&&n.data&&n.data.success?(i&&i({type:"success",message:"设置成功"}),"function"==typeof o&&o({materialId:t?t.id:"",name:t?t.name:"",url:t?t.url:""})):l&&l({type:"error",message:n&&n.data&&n.data.message||"保存失败"}),e.n=5;break;case 4:e.p=4,console.error(e.v),l&&l({type:"error",message:"保存失败"});case 5:return e.p=5,y(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),L=!(!a||!a.hasValue);return t?V.default.createElement("div",{className:Cl.overlay},V.default.createElement("div",{className:Cl.modal,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:Cl.header},V.default.createElement("span",{className:Cl.title},L?"更换材质":"设置材质"),V.default.createElement("button",{className:Cl.closeBtn,onClick:r},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Cl.body},V.default.createElement("div",{className:Cl.searchCard},V.default.createElement("div",{className:Cl.searchLabel},L?"搜索新材质":"搜索材质素材"),V.default.createElement(J.default,{className:Cl.searchInput,placeholder:"输入材质名称或ID搜索...",prefix:V.default.createElement(S.SearchOutlined,{className:Cl.searchIcon}),value:m,onChange:function(e){return p(e.target.value)}}),V.default.createElement("div",{className:Cl.materialListWrap},h?V.default.createElement("div",{className:Cl.loadingWrap},V.default.createElement(te.default,{size:"large"})):0===b.length?V.default.createElement("div",{className:Cl.loadingWrap},V.default.createElement("span",{style:{color:"#8c8c8c"}},"暂无数据")):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Cl.materialGrid,"data-lazy-scroll-root":!0},b.map(function(e,t){var a=d===t;return V.default.createElement("div",{key:e.id,className:"".concat(Cl.materialCard," ").concat(a?Cl.materialCardSelected:""),onClick:function(){c(t)}},V.default.createElement("div",{className:Cl.materialIcon},e.referenceImage?V.default.createElement(oo,{src:e.referenceImage,alt:e.name}):"贴图"),V.default.createElement("div",{className:Cl.materialInfo},V.default.createElement("div",{className:Cl.materialName,title:e.name},e.name),V.default.createElement("div",{className:Cl.materialMeta,title:e.resolution||"-"},e.resolution||"-")))})),V.default.createElement("div",{className:Cl.resultCount},"共 ",b.length," 条结果"))))),V.default.createElement("div",{className:Cl.footer},V.default.createElement(Y.default,{className:Cl.cancelBtn,onClick:r},"取消"),V.default.createElement(Y.default,{type:"primary",className:Cl.confirmBtn,loading:v,onClick:N},L?"确认更换":"确认设置")))):null},Ll="TextureDeleteModal-module_overlay__lEhlj",kl="TextureDeleteModal-module_modal__23oQn",Il="TextureDeleteModal-module_header__Qtvlh",Pl="TextureDeleteModal-module_title__1VW_d",Al="TextureDeleteModal-module_closeBtn__2QVrs",Rl="TextureDeleteModal-module_body___Wjvw",Dl="TextureDeleteModal-module_confirmText__1AG6I",zl="TextureDeleteModal-module_relationsStatus__3xYeR",Ul="TextureDeleteModal-module_relationsError__J0UmW",Bl="TextureDeleteModal-module_relations__mOpwy",Gl="TextureDeleteModal-module_relationsTitle__11LhE",Fl="TextureDeleteModal-module_relationsList__1Y-Fz",Ol="TextureDeleteModal-module_relationItem__3Sa5m",Hl="TextureDeleteModal-module_defaultMaterialTag__rLjn0",Vl="TextureDeleteModal-module_warning__2RW8s",jl="TextureDeleteModal-module_footer__1vihJ",Wl="TextureDeleteModal-module_cancelBtn__3aS7f",ql="TextureDeleteModal-module_confirmBtn__2f5iD";je(".TextureDeleteModal-module_overlay__lEhlj{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45)}.TextureDeleteModal-module_modal__23oQn{width:400px;min-height:272px;max-height:480px;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);display:flex;flex-direction:column}.TextureDeleteModal-module_header__Qtvlh{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 8px 0 24px;border-bottom:1px solid #e5e6eb;flex-shrink:0}.TextureDeleteModal-module_title__1VW_d{color:#000f2c;font-family:PingFang SC,sans-serif;font-size:16px;font-weight:600}.TextureDeleteModal-module_closeBtn__2QVrs{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:#4e5969;font-size:12px;cursor:pointer;background:transparent;border:0;border-radius:4px}.TextureDeleteModal-module_closeBtn__2QVrs:hover:not(:disabled){background:#f2f3f5}.TextureDeleteModal-module_closeBtn__2QVrs:disabled{cursor:not-allowed}.TextureDeleteModal-module_body___Wjvw{min-height:156px;padding:14px 24px;overflow-y:auto}.TextureDeleteModal-module_confirmText__1AG6I{color:#000f2c;font-family:PingFang SC,sans-serif;font-size:14px;line-height:22px}.TextureDeleteModal-module_relationsError__J0UmW,.TextureDeleteModal-module_relationsStatus__3xYeR{margin-top:10px;color:#737b8b;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px}.TextureDeleteModal-module_relationsError__J0UmW{color:#ff7d00}.TextureDeleteModal-module_relations__mOpwy{margin-top:10px}.TextureDeleteModal-module_relationsTitle__11LhE{margin-bottom:6px;color:#737b8b;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px}.TextureDeleteModal-module_relationsList__1Y-Fz{max-height:112px;overflow-y:auto;border:1px solid #e5e6eb;border-radius:6px}.TextureDeleteModal-module_relationItem__3Sa5m{display:flex;align-items:center;min-height:36px;padding:6px 10px;color:#000f2c;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px;background:#f7f8fa;gap:8px}.TextureDeleteModal-module_relationItem__3Sa5m+.TextureDeleteModal-module_relationItem__3Sa5m{border-top:1px solid #e5e6eb}.TextureDeleteModal-module_relationItem__3Sa5m span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureDeleteModal-module_relationItem__3Sa5m span:first-child{flex:1}.TextureDeleteModal-module_defaultMaterialTag__rLjn0{flex-shrink:0;padding:1px 6px;color:#1890ff;background:#e6f4ff;border-radius:4px}.TextureDeleteModal-module_warning__2RW8s{display:flex;align-items:center;width:352px;min-height:40px;padding:0 10px;margin-top:10px;color:#ff7d00;font-family:PingFang SC,sans-serif;font-size:14px;background:#f0f2f5;border-radius:8px;gap:8px}.TextureDeleteModal-module_warning__2RW8s>span{line-height:20px}.TextureDeleteModal-module_footer__1vihJ{display:flex;align-items:center;justify-content:flex-end;height:64px;padding:0 24px;border-top:1px solid #e5e6eb;gap:20px;flex-shrink:0}.TextureDeleteModal-module_cancelBtn__3aS7f,.TextureDeleteModal-module_confirmBtn__2f5iD{height:32px;border-radius:4px;font-family:PingFang SC,sans-serif;font-size:14px;font-weight:400}.TextureDeleteModal-module_cancelBtn__3aS7f{width:60px;color:#737b8b;border-color:#717d99}.TextureDeleteModal-module_confirmBtn__2f5iD{width:88px;background:#1890ff!important;border-color:#1890ff!important}");var Kl,Xl,Yl=function(e){var t=e.record,a=e.relations,n=void 0===a?[]:a,r=e.relationsLoading,o=e.relationsError,i=e.deleteLoading,l=e.onCancel,s=e.onConfirm;return e.visible?V.default.createElement("div",{className:Ll},V.default.createElement("div",{className:kl,role:"dialog","aria-modal":"true","aria-labelledby":"delete-texture-title"},V.default.createElement("div",{className:Il},V.default.createElement("span",{id:"delete-texture-title",className:Pl},"温馨提示"),V.default.createElement("button",{className:Al,onClick:l,disabled:i,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Rl},V.default.createElement("div",{className:Dl},"确认删除 ",(null==t?void 0:t.name)||"-"," 素材"),r&&V.default.createElement("div",{className:zl},"关联内容查询中..."),!r&&o&&V.default.createElement("div",{className:Ul},o),!r&&!o&&n.length>0&&V.default.createElement("div",{className:Bl},V.default.createElement("div",{className:Gl},"当前关联内容(",n.length,")"),V.default.createElement("div",{className:Fl},n.map(function(e,t){var a=!e.skuId&&e.classify3Name;return V.default.createElement("div",{className:Ol,key:"".concat(e.skuId||e.classify3Name||"relation","-").concat(t)},a?V.default.createElement(V.default.Fragment,null,V.default.createElement("span",{title:e.classify3Name},e.classify3Name),V.default.createElement("span",{className:Hl},"默认材质")):V.default.createElement(V.default.Fragment,null,V.default.createElement("span",null,e.brandName||"-"),V.default.createElement("span",null,e.skuId||"-"),e.classify3Name&&V.default.createElement("span",null,e.classify3Name)))}))),!r&&!o&&0===n.length&&V.default.createElement("div",{className:zl},"当前素材暂无关联内容"),V.default.createElement("div",{className:Vl},V.default.createElement(S.ExclamationCircleOutlined,null),V.default.createElement("span",null,"删除后将不可恢复",n.length>0?",以上关联关系也会同步删除":""))),V.default.createElement("div",{className:jl},V.default.createElement(Y.default,{className:Wl,onClick:l,disabled:i},"取消"),V.default.createElement(Y.default,{className:ql,type:"primary",loading:i,onClick:s},"确认删除")))):null},Zl=[{key:"unclassified",label:"未分类材质"},{key:"classified",label:"已分类材质"},{key:"defaultMapping",label:"三级分类默认材质"}],Ql=(Kl=a.connect(function(e){var t=e.materialTextures,a=e.loading;return{materialTextures:t,spaceOptions:t.spaceOptions||[],unclassifiedList:t.unclassifiedList||[],unclassifiedTotal:t.unclassifiedTotal||0,unclassifiedPageNo:t.unclassifiedPageNo||1,unclassifiedPageSize:t.unclassifiedPageSize||20,unclassifiedLoading:a.effects["materialTextures/fetchUnclassified"],classifyList:t.classifyList||[],classifiedList:t.classifiedList||[],classifiedTotal:t.classifiedTotal||0,classifiedPageNo:t.classifiedPageNo||1,classifiedPageSize:t.classifiedPageSize||20,classifiedLoading:a.effects["materialTextures/fetchClassified"],defaultTextureList:t.defaultTextureList||[],defaultTextureLoading:a.effects["materialTextures/fetchDefault"]}}),Kl(Xl=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).deleteRelationRequestId=0,e.state={selectedSpace:"all",activeTab:"unclassified",selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[],unclassifiedKeyword:"",unclassifiedFormat:"all",unclassifiedTimeType:"all",classifiedKeyword:"",classifiedFormat:"all",uploadModalVisible:!1,uploadEditRecord:null,previewModalVisible:!1,previewRecord:null,textureSelectVisible:!1,selectRecord:null,deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1,deleteLoading:!1,toast:null,toastKey:0},e.handleSpaceChange=function(t){e.setState({selectedSpace:t},function(){e.fetchClassifyList(),e.fetchClassifiedList()})},e.handlePageTabChange=function(t){e.setState({activeTab:t,selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[]},function(){"unclassified"===t?e.fetchUnclassifiedList():"classified"===t?(e.fetchClassifyList(),e.fetchClassifiedList()):"defaultMapping"===t&&e.fetchDefault()})},e.fetchClassifyList=function(){var t=e.props.dispatch,a=e.state.selectedSpace,n={};"all"!==a&&(n.space="kitchen"===a?"厨卫空间":a),t({type:"materialTextures/fetchClassifyList",payload:n})},e.fetchUnclassifiedList=function(){var t=e.props.dispatch,a=e.state,n=a.unclassifiedKeyword,r=a.unclassifiedFormat,o=a.unclassifiedTimeType,i={pageNumber:1,pageSize:20};n&&(i.name=n),"all"!==r&&(i.format=r),"today"===o&&(i.uploadDate=(new Date).toISOString().split("T")[0]),t({type:"materialTextures/fetchUnclassified",payload:i})},e.fetchClassifiedList=function(){var t=e.props.dispatch,a=e.state,n=a.classifiedKeyword,r=a.classifiedFormat,o=a.selectedFirstCategory,i=a.selectedSecondCategory,l=a.selectedSpace,s={pageNumber:1,pageSize:20};n&&(s.name=n),"all"!==r&&(s.format=r),"all"!==l&&(s.space="kitchen"===l?"厨卫空间":l),"all"!==o&&(s.classify1=o),"all"!==i&&(s.classify2=i),t({type:"materialTextures/fetchClassified",payload:s})},e.handleClassifiedKeywordChange=function(t){e.setState({classifiedKeyword:t.target.value},function(){e.fetchClassifiedList()})},e.handleClassifiedFormatChange=function(t){e.setState({classifiedFormat:t},function(){e.fetchClassifiedList()})},e.handleClassifiedPageChange=function(t,a){var n=e.props.dispatch,r=e.state,o=r.classifiedKeyword,i=r.classifiedFormat,l=r.selectedFirstCategory,s=r.selectedSecondCategory,d=r.selectedSpace,c={pageNumber:t,pageSize:a||20};o&&(c.name=o),"all"!==i&&(c.format=i),"all"!==d&&(c.space="kitchen"===d?"厨卫空间":d),"all"!==l&&(c.classify1=l),"all"!==s&&(c.classify2=s),n({type:"materialTextures/fetchClassified",payload:c})},e.handleFirstCategoryClick=function(t){e.setState(function(e){var a=e.expandedCategories.includes(t);return{selectedFirstCategory:t,selectedSecondCategory:"all",expandedCategories:a?e.expandedCategories.filter(function(e){return e!==t}):[].concat(Fe(e.expandedCategories),[t])}},function(){e.fetchClassifiedList()})},e.handleAllCategoryClick=function(){e.setState({selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[]},function(){e.fetchClassifiedList()})},e.handleSecondCategoryClick=function(t,a){e.setState(function(e){var n=e.selectedSecondCategory===a;return{selectedFirstCategory:n?"all":t,selectedSecondCategory:n?"all":a}},function(){e.fetchClassifiedList()})},e.handleFormatChange=function(t){e.setState({selectedFormat:t})},e.handleUnclassifiedKeywordChange=function(t){e.setState({unclassifiedKeyword:t.target.value},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedFormatChange=function(t){e.setState({unclassifiedFormat:t},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedTimeChange=function(t){e.setState({unclassifiedTimeType:t},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedPageChange=function(t,a){var n={pageNumber:t,pageSize:a},r=e.state,o=r.unclassifiedKeyword,i=r.unclassifiedFormat,l=r.unclassifiedTimeType;o&&(n.name=o),"all"!==i&&(n.format=i),"today"===l&&(n.uploadDate=(new Date).toISOString().split("T")[0]),e.props.dispatch({type:"materialTextures/fetchUnclassified",payload:n})},e.handleUpload=function(){console.log("上传材质"),e.setState({uploadModalVisible:!0,uploadEditRecord:null})},e.handleCloseUploadModal=function(){e.setState({uploadModalVisible:!1,uploadEditRecord:null})},e.handleUploadSuccess=function(t){e.showToast(t.message||"操作成功","success"),e.handleCloseUploadModal();var a=e.props,n=e.state,r=n.unclassifiedKeyword,o=n.unclassifiedFormat,i=n.unclassifiedTimeType,l={pageNumber:a.unclassifiedPageNo,pageSize:a.unclassifiedPageSize};r&&(l.name=r),"all"!==o&&(l.format=o),"today"===i&&(l.uploadDate=(new Date).toISOString().split("T")[0]);var s=e.props,d=e.state,c=d.classifiedKeyword,u=d.classifiedFormat,m=d.selectedFirstCategory,p=d.selectedSecondCategory,f=d.selectedSpace,h={pageNumber:s.classifiedPageNo,pageSize:s.classifiedPageSize};c&&(h.name=c),"all"!==u&&(h.format=u),"all"!==f&&(h.space="kitchen"===f?"厨卫空间":f),"all"!==m&&(h.classify1=m),"all"!==p&&(h.classify2=p),e.props.dispatch({type:"materialTextures/fetchUnclassified",payload:l}),e.props.dispatch({type:"materialTextures/fetchClassified",payload:h})},e.handleUploadError=function(t){e.showToast(t.message||"操作失败",t.type||"error")},e.handleTextureSelectSuccess=function(t){e.fetchDefault()},e.handleTextureSelectError=function(t){e.showToast(t.message||"操作失败",t.type||"error")},e.handlePreview=function(t){e.setState({previewModalVisible:!0,previewRecord:t})},e.handleClosePreviewModal=function(){e.setState({previewModalVisible:!1,previewRecord:null})},e.handleEdit=function(t){e.setState({uploadModalVisible:!0,uploadEditRecord:t})},e.handleDelete=function(){var t=we(ze().m(function t(a){var n,r,o,i,l,s;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(null==a?void 0:a.materialId)||(null==a?void 0:a.id)){t.n=1;break}return e.showToast("缺少材质 ID,无法删除","error"),t.a(2);case 1:return r=++e.deleteRelationRequestId,e.setState({deleteModalVisible:!0,deleteRecord:a,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!0}),t.p=2,t.n=3,ki({materialId:n});case 3:if(i=t.v,r===e.deleteRelationRequestId){t.n=4;break}return t.a(2);case 4:(null==i||null===(o=i.data)||void 0===o?void 0:o.success)?e.setState({deleteRelations:Array.isArray(i.data.value)?i.data.value:[],deleteRelationsLoading:!1}):e.setState({deleteRelationsError:"".concat((null==i||null===(l=i.data)||void 0===l?void 0:l.message)||"关联内容查询失败",",不影响删除"),deleteRelationsLoading:!1}),t.n=7;break;case 5:if(t.p=5,s=t.v,r===e.deleteRelationRequestId){t.n=6;break}return t.a(2);case 6:console.error("查询关联资源失败",s),e.setState({deleteRelationsError:"关联内容查询失败,不影响删除",deleteRelationsLoading:!1});case 7:return t.a(2)}},t,null,[[2,5]])}));return function(e){return t.apply(this,arguments)}}(),e.handleCloseDeleteModal=function(){e.state.deleteLoading||(e.deleteRelationRequestId+=1,e.setState({deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1}))},e.handleConfirmDelete=we(ze().m(function t(){var a,n,r,o,i,l,s;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(null==(a=e.state.deleteRecord)?void 0:a.materialId)||(null==a?void 0:a.id)){t.n=1;break}return t.a(2);case 1:return e.setState({deleteLoading:!0}),t.p=2,t.n=3,Pi({materialId:n});case 3:if(null==(o=t.v)||null===(r=o.data)||void 0===r?void 0:r.success){t.n=4;break}return e.showToast((null==o||null===(i=o.data)||void 0===i?void 0:i.message)||"删除失败","error"),t.a(2);case 4:e.showToast(o.data.message||"删除成功","success"),e.deleteRelationRequestId+=1,e.setState({deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1}),"classified"===e.state.activeTab?(e.handleClassifiedPageChange((l=e.props).classifiedPageNo,l.classifiedPageSize),e.fetchClassifyList()):e.handleUnclassifiedPageChange((s=e.props).unclassifiedPageNo,s.unclassifiedPageSize),t.n=6;break;case 5:t.p=5,console.error("删除失败",t.v),e.showToast("删除失败","error");case 6:return t.p=6,e.setState({deleteLoading:!1}),t.f(6);case 7:return t.a(2)}},t,null,[[2,5,6,7]])})),e.handleDefaultMappingPick=function(t){e.setState({textureSelectVisible:!0,selectRecord:t})},e.handleCloseTextureSelect=function(){e.setState({textureSelectVisible:!1,selectRecord:null})},e.fetchDefault=function(){e.props.dispatch({type:"materialTextures/fetchDefault",payload:{assetType:"高清贴图"}})},e.handleConfirmTextureSelect=function(){var t=we(ze().m(function t(a){var n,r,o,i,l;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(e.state.selectRecord||{})._raw){t.n=1;break}return t.a(2);case 1:return r={classify1Id:n.classify1Id,classify2Id:n.classify2Id,classify3Id:n.classify3Id,defaultMaterialId:a.materialId,defaultMaterialName:a.name},t.p=2,t.n=3,e.props.dispatch({type:"materialTextures/saveDefault",payload:r});case 3:(null==(i=t.v)||null===(o=i.data)||void 0===o?void 0:o.success)?(e.showToast(a.name?"默认材质已设置":"默认材质已更换","success"),e.fetchDefault(),e.handleCloseTextureSelect()):e.showToast((null==i||null===(l=i.data)||void 0===l?void 0:l.message)||"保存失败","error"),t.n=5;break;case 4:t.p=4,console.error("保存失败",t.v),e.showToast("保存失败","error");case 5:return t.a(2)}},t,null,[[2,4]])}));return function(e){return t.apply(this,arguments)}}(),e.showToast=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=t,r=a;t&&"object"===He(t)&&"message"in t&&(n=t.message,r=t.type||a),e.setState({toast:{message:n,type:r},toastKey:(e.state.toastKey||0)+1})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.props.dispatch({type:"materialTextures/fetchSpaceOptions"}),this.fetchUnclassifiedList()}},{key:"renderCategoryTree",value:function(){var e=this,t=this.state,a=t.selectedFirstCategory,n=t.selectedSecondCategory,r=this.props.classifyList,o=r.reduce(function(e,t){return e+t.children.reduce(function(e,t){return e+(t.textureCount||0)},0)},0);return V.default.createElement("div",{className:Wi.categoryTree},V.default.createElement("div",{className:"".concat(Wi.categoryItem," ").concat("all"===a?Wi.active:""),style:{marginTop:"8px"},onClick:this.handleAllCategoryClick},V.default.createElement("span",{className:Wi.categoryItemTitle},"全部分类"),V.default.createElement("span",{className:"".concat(Wi.categoryItemCount," ").concat("all"===a?Wi.active:"")},o)),V.default.createElement("div",{className:Wi.categoryList},r.map(function(t){var r=t.children.some(function(e){return e.classify2Id===n}),o=a===t.classify1Id||r;return V.default.createElement("div",{key:t.classify1Id,className:"".concat(Wi.categoryGroup," ").concat(o?Wi.active:"")},V.default.createElement("div",{className:Wi.categoryItem},V.default.createElement("span",{className:Wi.categoryItemTitle},t.classify1Name)),t.children.map(function(a){var r=n===a.classify2Id;return V.default.createElement("div",{key:a.classify2Id,className:"".concat(Wi.subCategoryItem," ").concat(r?Wi.active:""),onClick:function(n){n.stopPropagation(),e.handleSecondCategoryClick(t.classify1Id,a.classify2Id)}},V.default.createElement("span",{className:Wi.subCategoryTitle},a.classify2Name),V.default.createElement("span",{className:"".concat(Wi.subCategoryCount," ").concat(r?Wi.active:"")},a.textureCount||0))}))})))}},{key:"renderUnclassifiedTable",value:function(){var e=this,t=this.props,a=t.unclassifiedList,n=t.unclassifiedTotal,r=t.unclassifiedLoading,o=t.unclassifiedPageNo,i=t.unclassifiedPageSize,l=this.state,s=l.unclassifiedKeyword,d=l.unclassifiedFormat,c=l.unclassifiedTimeType;return V.default.createElement("div",{className:Wi.tableCardWrap},V.default.createElement("div",{className:Wi.tableHeader},V.default.createElement("div",{className:Wi.searchInputWrap},V.default.createElement("input",{className:Wi.searchInput,placeholder:"搜索未分类材质...",value:s,onChange:this.handleUnclassifiedKeywordChange}),s&&V.default.createElement(S.CloseOutlined,{className:Wi.searchClearBtn,onClick:function(){e.setState({unclassifiedKeyword:""},function(){e.fetchUnclassifiedList()})}})),V.default.createElement("div",{className:Wi.filterItem},V.default.createElement("span",{className:Wi.filterLabel},"格式:"),V.default.createElement(me.default,{className:Wi.filterSelect,value:d,onChange:this.handleUnclassifiedFormatChange,options:[{value:"all",label:"全部"},{value:"PNG",label:"PNG"},{value:"JPG",label:"JPG"},{value:"EXR",label:"EXR"},{value:"TGA",label:"TGA"}]})),V.default.createElement("div",{className:Wi.segmented},V.default.createElement("span",{className:"".concat(Wi.segmentedItem," ").concat("all"===c?Wi.segmentedItemSelected:""),onClick:function(){return e.handleUnclassifiedTimeChange("all")}},"全部"),V.default.createElement("span",{className:"".concat(Wi.segmentedItem," ").concat("today"===c?Wi.segmentedItemSelected:""),onClick:function(){return e.handleUnclassifiedTimeChange("today")}},"今日上传"))),V.default.createElement($r,{containerClassName:Wi.tableCard,className:Wi.dataTable,rowKey:"id",loading:r,columns:[{title:"材质名称",dataIndex:"name",width:230,render:function(e,t){return V.default.createElement("div",{className:Wi.thumbnailCell},V.default.createElement("div",{className:Wi.thumbnail},V.default.createElement(oo,{src:null==t?void 0:t.referenceImage,alt:"",className:Wi.thumbnailImg})),V.default.createElement("span",{className:Wi.formatCell},e))}},{title:"材质ID",dataIndex:"id",width:160,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e)}},{title:"分辨率",dataIndex:"resolution",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"上传时间",dataIndex:"uploadTime",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e)}},{title:"状态",dataIndex:"status",width:100,render:function(){return V.default.createElement("span",{className:Wi.statusNeutral},"未分类")}},{title:"操作",dataIndex:"action",width:168,render:function(t,a){return V.default.createElement("span",{className:Wi.actions},V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handlePreview(a)}},"预览"),V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handleEdit(a)}},"编辑"),V.default.createElement(Y.default,{className:Wi.deleteAction,size:"small",type:"link",onClick:function(){return e.handleDelete(a)}},"删除"))}}],dataSource:a,pagination:{current:o,pageSize:i,total:n,onChange:this.handleUnclassifiedPageChange,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}}}))}},{key:"renderClassifiedTable",value:function(){var e=this,t=this.state,a=t.classifiedKeyword,n=t.classifiedFormat,r=this.props,o=r.classifiedList,i=r.classifiedTotal,l=r.classifiedPageNo,s=r.classifiedPageSize,d=r.classifiedLoading;return V.default.createElement("div",{className:Wi.tableCardWrap},V.default.createElement("div",{className:Wi.tableHeader},V.default.createElement("div",{className:Wi.searchInputWrap},V.default.createElement("input",{className:Wi.searchInput,placeholder:"搜索分类材质...",value:a,onChange:this.handleClassifiedKeywordChange}),a&&V.default.createElement(S.CloseOutlined,{className:Wi.searchClearBtn,onClick:function(){e.setState({classifiedKeyword:""},function(){e.fetchClassifiedList()})}})),V.default.createElement("span",{className:Wi.filterLabel},"格式:"),V.default.createElement(me.default,{className:Wi.filterSelect,value:n,onChange:this.handleClassifiedFormatChange,options:[{value:"all",label:"全部"},{value:"PNG",label:"PNG"},{value:"JPG",label:"JPG"},{value:"EXR",label:"EXR"},{value:"TGA",label:"TGA"}]})),V.default.createElement($r,{containerClassName:Wi.tableCard,className:Wi.dataTable,rowKey:"materialId",loading:d,columns:[{title:"材质名称",dataIndex:"name",width:230,render:function(e,t){return V.default.createElement("div",{className:Wi.thumbnailCell},V.default.createElement("div",{className:Wi.thumbnail},V.default.createElement(oo,{src:null==t?void 0:t.referenceImage,alt:"",className:Wi.thumbnailImg})),V.default.createElement("span",{className:Wi.formatCell},e||"-"))}},{title:"材质ID",dataIndex:"id",width:160,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"分辨率",dataIndex:"resolution",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"上传时间",dataIndex:"uploadTime",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"映射商品",dataIndex:"mappedProduct",width:200,render:function(e){return V.default.createElement("span",{className:Wi.brandName},e||"-")}},{title:"操作",dataIndex:"action",width:168,render:function(t,a){return V.default.createElement("span",{className:Wi.actions},V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handlePreview(a)}},"预览"),V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handleEdit(a)}},"编辑"),V.default.createElement(Y.default,{className:Wi.deleteAction,size:"small",type:"link",onClick:function(){return e.handleDelete(a)}},"删除"))}}],dataSource:o,pagination:{current:l,pageSize:s,total:i,onChange:this.handleClassifiedPageChange,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}}}))}},{key:"renderDefaultMapping",value:function(){var e=this.props;return V.default.createElement(to,{rows:e.defaultTextureList,type:"texture",loading:e.defaultTextureLoading,onPick:this.handleDefaultMappingPick})}},{key:"renderRightPane",value:function(){var e=this.state.activeTab;return V.default.createElement("div",{className:Wi.content},"unclassified"===e?this.renderUnclassifiedTable():"defaultMapping"===e?this.renderDefaultMapping():this.renderClassifiedTable())}},{key:"render",value:function(){var e=this,t=this.props.spaceOptions,a=this.state,n=a.selectedSpace,r=a.activeTab,o=a.uploadModalVisible,i=a.uploadEditRecord,l=a.previewModalVisible,s=a.previewRecord,d=a.deleteModalVisible,c=a.deleteRecord,u=a.deleteRelations,m=a.deleteRelationsError,p=a.deleteRelationsLoading,f=a.deleteLoading,h=a.toast,_=a.toastKey,g="classified"===r;return V.default.createElement("div",{className:Wi.page},V.default.createElement("div",{className:Wi.pageHeader},V.default.createElement("div",{className:Wi.headerLeft},V.default.createElement("div",{className:Wi.pageTitle},"材质素材"),V.default.createElement("div",{className:Wi.pageSubtitle},"管理高清贴图、PBR 材质等纹理文件。分类信息(空间/一级/二级)由商品素材映射同步填充。")),V.default.createElement(Y.default,{type:"primary",className:Wi.uploadBtn,onClick:this.handleUpload,icon:V.default.createElement(S.UploadOutlined,null)},"上传材质")),V.default.createElement("div",{className:Wi.pageTabs},Zl.map(function(t){return V.default.createElement("div",{key:t.key,className:"".concat(Wi.pageTab," ").concat(r===t.key?Wi.pageTabActive:""),onClick:function(){return e.handlePageTabChange(t.key)}},t.label)})),V.default.createElement("div",{className:Wi.mainContent},g&&V.default.createElement("div",{className:Wi.sidebar},V.default.createElement("div",{className:Wi.spaceSelector},V.default.createElement(me.default,{value:n,onChange:this.handleSpaceChange,options:t,className:Wi.spaceSelect,suffixIcon:V.default.createElement(S.DownOutlined,null)})),this.renderCategoryTree()),this.renderRightPane()),V.default.createElement(el,{visible:o,onClose:this.handleCloseUploadModal,onSuccess:this.handleUploadSuccess,onError:this.handleUploadError,editRecord:i}),V.default.createElement(El,{visible:l,record:s,onClose:this.handleClosePreviewModal}),V.default.createElement(Nl,{visible:this.state.textureSelectVisible,currentMaterial:this.state.selectRecord,onClose:this.handleCloseTextureSelect,onConfirm:this.handleConfirmTextureSelect,onSuccess:this.handleTextureSelectSuccess,onError:this.handleTextureSelectError}),V.default.createElement(Yl,{visible:d,record:c,relations:u,relationsLoading:p,relationsError:m,deleteLoading:f,onCancel:this.handleCloseDeleteModal,onConfirm:this.handleConfirmDelete}),V.default.createElement(so,{message:null==h?void 0:h.message,type:null==h?void 0:h.type,toastKey:_}))}}])}(n.Component))||Xl),Jl={page:"materialCategoryManagement-module_page__gBiPZ",headerSection:"materialCategoryManagement-module_headerSection__t5Sr_",titleLine:"materialCategoryManagement-module_titleLine__1UlWC",headerActions:"materialCategoryManagement-module_headerActions__2QrtV",primaryButton:"materialCategoryManagement-module_primaryButton__3QqkT",secondaryButton:"materialCategoryManagement-module_secondaryButton__1H3Pm",assetTabs:"materialCategoryManagement-module_assetTabs__gi3OD",assetTabActive:"materialCategoryManagement-module_assetTabActive__2-2-F",layoutBody:"materialCategoryManagement-module_layoutBody__1waD3",managementLayout:"materialCategoryManagement-module_managementLayout__qIH8p",treePanel:"materialCategoryManagement-module_treePanel__1EDge",summaryCard:"materialCategoryManagement-module_summaryCard__3g26T",detailCard:"materialCategoryManagement-module_detailCard__1kIyv",emptyDetail:"materialCategoryManagement-module_emptyDetail__Fu8aa",panelHeader:"materialCategoryManagement-module_panelHeader__s4HzV",treeScroll:"materialCategoryManagement-module_treeScroll__2FgWv",treeNode:"materialCategoryManagement-module_treeNode__3DEJl",treeNodeActive:"materialCategoryManagement-module_treeNodeActive__-MbU2",treeNodeLevel1:"materialCategoryManagement-module_treeNodeLevel1__3y9kN",treeNodeLevel2:"materialCategoryManagement-module_treeNodeLevel2__2wQbz",treeNodeLevel3:"materialCategoryManagement-module_treeNodeLevel3__3izgy",treeNodeName:"materialCategoryManagement-module_treeNodeName__10KwG",treeNodeMeta:"materialCategoryManagement-module_treeNodeMeta__24Z5K",treeNodeDisabled:"materialCategoryManagement-module_treeNodeDisabled__vTgvh",detailColumn:"materialCategoryManagement-module_detailColumn__3Pv5E",summaryHeader:"materialCategoryManagement-module_summaryHeader__3J1o9",categoryTitle:"materialCategoryManagement-module_categoryTitle__1wKvx",summaryActions:"materialCategoryManagement-module_summaryActions__3SKtV",dangerButton:"materialCategoryManagement-module_dangerButton__3IQYG",ruleNotice:"materialCategoryManagement-module_ruleNotice__1YM8r",formNotice:"materialCategoryManagement-module_formNotice__3bWWP",tableWrap:"materialCategoryManagement-module_tableWrap__3x-iF",detailCardHeader:"materialCategoryManagement-module_detailCardHeader__MarHD",referenceHint:"materialCategoryManagement-module_referenceHint__2R5Zw",statusTag:"materialCategoryManagement-module_statusTag__2nR2U",statusEnabled:"materialCategoryManagement-module_statusEnabled__x3rHj",statusDisabled:"materialCategoryManagement-module_statusDisabled__H0GEF",tableActions:"materialCategoryManagement-module_tableActions__2GiV3",modalDescription:"materialCategoryManagement-module_modalDescription__VoK1W",categoryManagementModalBody:"materialCategoryManagement-module_categoryManagementModalBody__15FLl",modeSwitch:"materialCategoryManagement-module_modeSwitch__3wfgL",modeSwitchActive:"materialCategoryManagement-module_modeSwitchActive__2D88K",formGrid:"materialCategoryManagement-module_formGrid__1wwPE",formField:"materialCategoryManagement-module_formField__AEI7y",formFieldFull:"materialCategoryManagement-module_formFieldFull__JH41q",formControl:"materialCategoryManagement-module_formControl__3uLMM",chainPanel:"materialCategoryManagement-module_chainPanel__2Dje6",chainHeader:"materialCategoryManagement-module_chainHeader__3OVtF",inlineButton:"materialCategoryManagement-module_inlineButton__1CB0J",iconDangerButton:"materialCategoryManagement-module_iconDangerButton__3RI3L",chainRow:"materialCategoryManagement-module_chainRow__ckvYv",rootChainRow:"materialCategoryManagement-module_rootChainRow__pe9Gk",formError:"materialCategoryManagement-module_formError__DqzNX",spaceTableWrap:"materialCategoryManagement-module_spaceTableWrap__2x0Nn",spaceManagementModalBody:"materialCategoryManagement-module_spaceManagementModalBody__3bhbm",managementModalOverlay:"materialCategoryManagement-module_managementModalOverlay__2MDRS",managementModalMask:"materialCategoryManagement-module_managementModalMask__1DhMT",managementModalPanel:"materialCategoryManagement-module_managementModalPanel__3ZCHV",managementModalPanelOpen:"materialCategoryManagement-module_managementModalPanelOpen__wjFAF",managementModalHeader:"materialCategoryManagement-module_managementModalHeader__j3m5N",managementModalTitle:"materialCategoryManagement-module_managementModalTitle__13PCJ",managementModalClose:"materialCategoryManagement-module_managementModalClose__1LmyV",managementModalBody:"materialCategoryManagement-module_managementModalBody__y4Ywd",managementModalFooter:"materialCategoryManagement-module_managementModalFooter__-ll4h",managementModalOverlayOpen:"materialCategoryManagement-module_managementModalOverlayOpen__1_sMF",modalCancelButton:"materialCategoryManagement-module_modalCancelButton__213dd",modalPrimaryButton:"materialCategoryManagement-module_modalPrimaryButton__2bOhW",spaceModalDescription:"materialCategoryManagement-module_spaceModalDescription__2Be3p",spaceStatusTag:"materialCategoryManagement-module_spaceStatusTag__1PS2Z",spaceStatusEnabled:"materialCategoryManagement-module_spaceStatusEnabled__2sZlp",spaceStatusDisabled:"materialCategoryManagement-module_spaceStatusDisabled__23maU",spaceTableActions:"materialCategoryManagement-module_spaceTableActions__ulmOq",spaceStopAction:"materialCategoryManagement-module_spaceStopAction__267vD",spaceEnableAction:"materialCategoryManagement-module_spaceEnableAction__2vgjQ",spaceDeleteAction:"materialCategoryManagement-module_spaceDeleteAction__2gzjy",spaceNotice:"materialCategoryManagement-module_spaceNotice__ryevZ",addSpaceRow:"materialCategoryManagement-module_addSpaceRow__1aAPK",toast:"materialCategoryManagement-module_toast__2Nynk",toastError:"materialCategoryManagement-module_toastError__11yKK"};je('.materialCategoryManagement-module_page__gBiPZ{display:flex;flex-direction:column;height:100%;min-height:0;padding:16px;overflow:hidden;background:#f5f5f7;color:#000f2c;font-family:PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}.materialCategoryManagement-module_headerSection__t5Sr_{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;min-height:40px;gap:16px}.materialCategoryManagement-module_headerSection__t5Sr_ h2{margin:0;color:#000f2c;font-size:14px;font-weight:500;line-height:20px}.materialCategoryManagement-module_headerSection__t5Sr_ p{margin:2px 0 0;color:#737b8b;font-size:12px;line-height:18px}.materialCategoryManagement-module_titleLine__1UlWC{display:flex;align-items:center;gap:10px}.materialCategoryManagement-module_headerActions__2QrtV{display:flex;flex:0 0 auto;gap:12px}.materialCategoryManagement-module_primaryButton__3QqkT,.materialCategoryManagement-module_secondaryButton__1H3Pm{height:32px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:6px;font-size:14px;line-height:22px;white-space:nowrap;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .12s ease}.materialCategoryManagement-module_primaryButton__3QqkT:active,.materialCategoryManagement-module_secondaryButton__1H3Pm:active{transform:translateY(1px)}.materialCategoryManagement-module_primaryButton__3QqkT{border:1px solid #1890ff;background:#1890ff;color:#fff}.materialCategoryManagement-module_primaryButton__3QqkT:hover{border-color:#40a9ff;background:#40a9ff}.materialCategoryManagement-module_secondaryButton__1H3Pm{border:1px solid rgba(115,123,139,.4);background:#fff;color:#737b8b}.materialCategoryManagement-module_secondaryButton__1H3Pm:hover{border-color:#1890ff;color:#1890ff}.materialCategoryManagement-module_assetTabs__gi3OD{display:flex;flex:0 0 auto;align-items:center;gap:32px;height:48px;margin-bottom:16px;border-bottom:1px solid rgba(115,123,139,.3)}.materialCategoryManagement-module_assetTabs__gi3OD button{height:48px;padding:0;border:0;border-bottom:2px solid transparent;background:transparent;color:#737b8b;font-size:14px;cursor:pointer}.materialCategoryManagement-module_assetTabs__gi3OD button span{margin-left:0;color:inherit;font-size:14px}.materialCategoryManagement-module_assetTabs__gi3OD button:hover{color:#1890ff}.materialCategoryManagement-module_assetTabs__gi3OD button.materialCategoryManagement-module_assetTabActive__2-2-F{border-bottom-color:#1890ff;color:#1890ff;font-weight:500}.materialCategoryManagement-module_layoutBody__1waD3{flex:1;min-height:0}.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-container,.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-nested-loading{height:100%;min-height:0}.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-container{display:flex;flex-direction:column}.materialCategoryManagement-module_managementLayout__qIH8p{flex:1;min-height:0;display:grid;grid-template-columns:264px minmax(0,1fr);align-items:stretch;gap:16px}.materialCategoryManagement-module_detailCard__1kIyv,.materialCategoryManagement-module_emptyDetail__Fu8aa,.materialCategoryManagement-module_summaryCard__3g26T,.materialCategoryManagement-module_treePanel__1EDge{border:none;border-radius:6px;background:#fff;box-shadow:none}.materialCategoryManagement-module_treePanel__1EDge{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_panelHeader__s4HzV{height:40px;padding:0 16px;display:flex;flex:0 0 auto;align-items:center;border-bottom:1px solid #f1f3f5;color:#121c2a;font-size:14px;font-weight:400;line-height:22px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv{flex:1;min-height:0;padding:8px 0 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e3e5e8 transparent}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar{width:4px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar-thumb{border-radius:2px;background:#e3e5e8}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar-track{background:transparent}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl{width:100%;height:32px;padding:0 16px;display:flex;align-items:center;gap:8px;border:0;border-radius:0;background:transparent;color:#121c2a;text-align:left;cursor:pointer}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl:hover:not(.materialCategoryManagement-module_treeNodeActive__-MbU2){background:#f5f7fa}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel1__3y9kN{padding-left:16px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel2__2wQbz{padding-left:30px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel3__3izgy{padding-left:44px;gap:2px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel3__3izgy:before{content:"";width:12px;height:12px;flex:0 0 12px;background:linear-gradient(#b7b9c1,#b7b9c1) 50%/8px 1px no-repeat}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2{background:#e7f3ff;color:#1890ff}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2 .materialCategoryManagement-module_treeNodeMeta__24Z5K,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2 .materialCategoryManagement-module_treeNodeName__10KwG{color:#1890ff}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh .materialCategoryManagement-module_treeNodeMeta__24Z5K,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh .materialCategoryManagement-module_treeNodeName__10KwG{color:#94999f}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNodeName__10KwG{min-width:0;flex:1;overflow:hidden;color:#121c2a;font-size:14px;line-height:22px;text-overflow:ellipsis;white-space:nowrap}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNodeMeta__24Z5K{flex:0 0 auto;min-width:9px;color:#737b8b;font-size:14px;font-weight:400;line-height:22px;text-align:right}.materialCategoryManagement-module_detailColumn__3Pv5E{min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.materialCategoryManagement-module_summaryCard__3g26T{flex:0 0 auto;height:94px;padding:0}.materialCategoryManagement-module_summaryHeader__3J1o9{height:46px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #f1f3f5}.materialCategoryManagement-module_summaryHeader__3J1o9 p{margin:5px 0 0;color:#667085;font-size:12px}.materialCategoryManagement-module_categoryTitle__1wKvx{display:flex;align-items:center;gap:7px;color:#000f2c;font-size:14px;font-weight:500}.materialCategoryManagement-module_categoryTitle__1wKvx span{height:22px;padding:0 7px;border-radius:4px;background:#e7f3ff;color:#1890ff;font-size:14px;font-weight:400;line-height:22px}.materialCategoryManagement-module_categoryTitle__1wKvx small{color:#737b8b;font-size:12px;font-weight:400}.materialCategoryManagement-module_summaryActions__3SKtV{display:flex;align-items:center;gap:12px}.materialCategoryManagement-module_summaryActions__3SKtV button{height:28px;padding:0 16px;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(115,123,139,.4);border-radius:6px;background:#fff;color:#737b8b;font-size:14px;cursor:pointer}.materialCategoryManagement-module_summaryActions__3SKtV button:hover{border-color:#1890ff;color:#1890ff}.materialCategoryManagement-module_summaryActions__3SKtV button.materialCategoryManagement-module_dangerButton__3IQYG{border-color:transparent;background:rgba(220,38,38,.1);color:#dc2626}.materialCategoryManagement-module_summaryActions__3SKtV button.materialCategoryManagement-module_dangerButton__3IQYG:hover{border-color:#f1a7a1;background:#fff5f4}.materialCategoryManagement-module_formNotice__3bWWP,.materialCategoryManagement-module_ruleNotice__1YM8r{border:none;border-radius:4px;background:#f0f2f5;color:#737b8b;font-size:12px;line-height:20px}.materialCategoryManagement-module_ruleNotice__1YM8r{height:24px;margin:12px 16px;padding:2px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.materialCategoryManagement-module_detailCard__1kIyv{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialCategoryManagement-module_tableWrap__3x-iF{flex:1;min-height:0;overflow:hidden}.materialCategoryManagement-module_tableWrap__3x-iF .ant-spin-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-spin-nested-loading,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-content,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-scroll,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-wrapper{height:100%;min-height:0}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-content,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-scroll{display:flex;flex-direction:column}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-header{flex:0 0 auto}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-body{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important}.materialCategoryManagement-module_detailCardHeader__MarHD{min-height:46px;padding:0 16px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-bottom:1px solid #f1f3f5}.materialCategoryManagement-module_detailCardHeader__MarHD>div{display:flex;align-items:baseline;gap:9px}.materialCategoryManagement-module_detailCardHeader__MarHD h3{margin:0;color:#000f2c;font-size:14px;font-weight:600}.materialCategoryManagement-module_detailCardHeader__MarHD span{color:#737b8b;font-size:12px}.materialCategoryManagement-module_detailCardHeader__MarHD .materialCategoryManagement-module_referenceHint__2R5Zw{cursor:help}.materialCategoryManagement-module_statusTag__2nR2U{min-width:auto;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;font-size:14px}.materialCategoryManagement-module_statusEnabled__x3rHj{background:#ecfef6;color:#079669}.materialCategoryManagement-module_statusDisabled__H0GEF{background:#f0f2f5;color:#737b8b}.materialCategoryManagement-module_tableActions__2GiV3{display:flex;align-items:center;gap:12px}.materialCategoryManagement-module_tableActions__2GiV3 button{padding:0;border:0;background:transparent;color:#1890ff;font-size:14px;cursor:pointer}.materialCategoryManagement-module_detailCard__1kIyv .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;font-weight:400}.materialCategoryManagement-module_detailCard__1kIyv .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;color:#000f2c;font-size:12px}.materialCategoryManagement-module_emptyDetail__Fu8aa{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.materialCategoryManagement-module_modalDescription__VoK1W{margin:-2px 0 15px;color:#667085;font-size:13px;line-height:20px}.materialCategoryManagement-module_categoryManagementModalBody__15FLl .ant-input,.materialCategoryManagement-module_categoryManagementModalBody__15FLl .ant-select-selector{border-color:#dde1e6!important;border-radius:4px!important}.materialCategoryManagement-module_modeSwitch__3wfgL{display:inline-flex;margin-bottom:16px;padding:3px;border-radius:5px;background:#f2f4f7}.materialCategoryManagement-module_modeSwitch__3wfgL button{height:31px;padding:0 13px;border:0;border-radius:4px;background:transparent;color:#667085;font-size:12px;cursor:pointer}.materialCategoryManagement-module_modeSwitch__3wfgL button.materialCategoryManagement-module_modeSwitchActive__2D88K{background:#fff;color:#2563eb;font-weight:600;box-shadow:0 1px 4px rgba(34,54,84,.12)}.materialCategoryManagement-module_formGrid__1wwPE{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.materialCategoryManagement-module_formField__AEI7y{min-width:0}.materialCategoryManagement-module_formField__AEI7y label{margin-bottom:6px;display:block;color:#475467;font-size:12px;font-weight:500}.materialCategoryManagement-module_formField__AEI7y label:after{margin-left:3px;color:#d92d20;content:"*"}.materialCategoryManagement-module_formFieldFull__JH41q{grid-column:-1}.materialCategoryManagement-module_formControl__3uLMM{width:100%}.materialCategoryManagement-module_chainPanel__2Dje6{margin-top:15px;padding:12px;border:1px solid #e4e7ec;border-radius:5px;background:#fafbfc}.materialCategoryManagement-module_chainHeader__3OVtF{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.materialCategoryManagement-module_chainHeader__3OVtF>div{display:flex;flex-direction:column;gap:2px}.materialCategoryManagement-module_chainHeader__3OVtF strong{color:#344054;font-size:12px}.materialCategoryManagement-module_chainHeader__3OVtF span{color:#98a2b3;font-size:11px}.materialCategoryManagement-module_iconDangerButton__3RI3L,.materialCategoryManagement-module_inlineButton__1CB0J{border:0;background:transparent;cursor:pointer}.materialCategoryManagement-module_inlineButton__1CB0J{color:#2563eb;font-size:12px}.materialCategoryManagement-module_chainRow__ckvYv{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:8px;margin-top:8px}.materialCategoryManagement-module_rootChainRow__pe9Gk{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.materialCategoryManagement-module_iconDangerButton__3RI3L{border:1px solid #e4e7ec;border-radius:4px;color:#d92d20}.materialCategoryManagement-module_iconDangerButton__3RI3L:disabled{color:#cbd1da;cursor:not-allowed}.materialCategoryManagement-module_formNotice__3bWWP{margin-top:12px;padding:8px 10px}.materialCategoryManagement-module_formError__DqzNX{margin-top:12px;padding:8px 10px;border:1px solid #fecdca;border-radius:4px;background:#fff5f4;color:#b42318;font-size:12px;line-height:20px}.materialCategoryManagement-module_spaceTableWrap__2x0Nn{overflow:hidden;border:1px solid #f1f3f5;border-radius:4px}.materialCategoryManagement-module_spaceManagementModalBody__3bhbm .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;line-height:20px;font-weight:400}.materialCategoryManagement-module_spaceManagementModalBody__3bhbm .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;color:#000f2c;font-size:12px;line-height:20px}.materialCategoryManagement-module_managementModalOverlay__2MDRS{position:fixed;inset:0;z-index:1000}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalMask__1DhMT{position:absolute;inset:0;background:rgba(18,28,42,.3)}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalPanel__3ZCHV{position:absolute;left:50%;top:50%;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden;border-radius:10px;background:#fff;opacity:0;transform:translate(-50%,-50%) scale(.96);transition:transform .18s ease,opacity .18s ease}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalPanel__3ZCHV.materialCategoryManagement-module_managementModalPanelOpen__wjFAF{opacity:1;transform:translate(-50%,-50%) scale(1)}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalHeader__j3m5N{height:52px;padding:0 16px 0 24px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalTitle__13PCJ{color:#000;font-size:16px;line-height:20px;font-weight:600}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalClose__1LmyV{width:28px;height:28px;border:0;background:transparent;color:#737b8b;cursor:pointer}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalClose__1LmyV:disabled{cursor:not-allowed;opacity:.45}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalBody__y4Ywd{min-height:0;padding:12px 24px 24px;overflow-y:auto}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalFooter__-ll4h{min-height:64px;padding:16px 24px;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #dde1e6}.materialCategoryManagement-module_managementModalOverlay__2MDRS.materialCategoryManagement-module_managementModalOverlayOpen__1_sMF .materialCategoryManagement-module_managementModalPanel__3ZCHV{opacity:1;transform:translate(-50%,-50%) scale(1)}.materialCategoryManagement-module_modalCancelButton__213dd,.materialCategoryManagement-module_modalPrimaryButton__2bOhW{height:32px;padding:0 16px;border-radius:4px;font-size:14px;cursor:pointer}.materialCategoryManagement-module_modalCancelButton__213dd:disabled,.materialCategoryManagement-module_modalPrimaryButton__2bOhW:disabled{cursor:not-allowed;opacity:.55}.materialCategoryManagement-module_modalCancelButton__213dd{border:1px solid #d9d9d9;background:#fff;color:rgba(0,0,0,.85)}.materialCategoryManagement-module_modalPrimaryButton__2bOhW{border:1px solid #1890ff;background:#1890ff;color:#fff}.materialCategoryManagement-module_spaceModalDescription__2Be3p{margin:0 0 16px;color:#737b8b;font-size:14px;line-height:20px;white-space:nowrap}.materialCategoryManagement-module_spaceStatusTag__1PS2Z{height:22px;padding:1px 6px;display:inline-flex;align-items:center;border-radius:4px;font-size:14px;line-height:20px}.materialCategoryManagement-module_spaceStatusEnabled__2sZlp{background:#ecfef6;color:#079669}.materialCategoryManagement-module_spaceStatusDisabled__23maU{background:#f0f2f5;color:#737b8b}.materialCategoryManagement-module_spaceTableActions__ulmOq{display:flex;align-items:center;gap:10px}.materialCategoryManagement-module_spaceTableActions__ulmOq button{padding:0;border:0;background:transparent;font-size:14px;line-height:20px;cursor:pointer}.materialCategoryManagement-module_spaceTableActions__ulmOq button:disabled{cursor:not-allowed;opacity:.5}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceStopAction__267vD{color:#737b8b}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceEnableAction__2vgjQ{color:#079669}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceDeleteAction__2gzjy{color:#dc2626}.materialCategoryManagement-module_spaceNotice__ryevZ{min-height:55px;margin-top:8px;padding:6px 10px;display:flex;gap:6px;border-radius:4px;background:#f0f2f5;color:#737b8b;font-size:14px;line-height:22px}.materialCategoryManagement-module_spaceNotice__ryevZ>span{flex:0 0 auto}.materialCategoryManagement-module_spaceNotice__ryevZ p{margin:0}.materialCategoryManagement-module_addSpaceRow__1aAPK{margin-top:24px;display:flex;align-items:center;gap:8px}.materialCategoryManagement-module_addSpaceRow__1aAPK label{flex:0 0 auto;color:#737b8b;font-size:14px}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input{width:250px;height:40px;padding:8px 10px;border:none;border-radius:4px;background:#f0f2f5;color:#000f2c;font-size:14px}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input::-moz-placeholder{color:#d1d5db}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input::placeholder{color:#d1d5db}.materialCategoryManagement-module_addSpaceRow__1aAPK button{height:40px;padding:0 13px;display:inline-flex;align-items:center;gap:6px;border:1px solid #1890ff;border-radius:4px;background:#1890ff;color:#fff;font-size:14px;cursor:pointer}.materialCategoryManagement-module_toast__2Nynk{position:fixed;top:28px;left:50%;z-index:1100;max-width:520px;padding:10px 16px;border:1px solid #a6f4c5;border-radius:5px;background:#ecfdf3;color:#027a48;font-size:13px;box-shadow:0 8px 24px rgba(34,54,84,.15);transform:translateX(-50%)}.materialCategoryManagement-module_toastError__11yKK{border-color:#fecdca;background:#fff5f4;color:#b42318}@media (max-width:960px){.materialCategoryManagement-module_page__gBiPZ{padding:20px}.materialCategoryManagement-module_headerSection__t5Sr_{flex-direction:column}.materialCategoryManagement-module_managementLayout__qIH8p{grid-template-columns:240px minmax(0,1fr)}.materialCategoryManagement-module_summaryHeader__3J1o9{flex-direction:column}}');function $l(e){var t=e.visible,a=e.title,r=e.width,o=e.footer,i=e.closable,l=void 0===i||i,s=e.bodyClassName,d=void 0===s?"":s,c=e.onClose,u=e.children,m=Ge(n.useState(t),2),p=m[0],f=m[1],h=Ge(n.useState(t),2),_=h[0],g=h[1];if(n.useEffect(function(){var e=null;return t?(f(!0),e=window.setTimeout(function(){return g(!0)},10)):p&&(g(!1),e=window.setTimeout(function(){return f(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,p]),n.useEffect(function(){if(p){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&l&&c&&c()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[l,c,p]),!p)return null;var v=function(){l&&c&&c()};return fe.default.createPortal(V.default.createElement("div",{className:"".concat(Jl.managementModalOverlay," ").concat(_?Jl.managementModalOverlayOpen:"")},V.default.createElement("div",{className:Jl.managementModalMask,onClick:v}),V.default.createElement("div",{className:"".concat(Jl.managementModalPanel," ").concat(_?Jl.managementModalPanelOpen:""),style:{width:r||576},role:"dialog","aria-modal":"true","aria-label":a},V.default.createElement("div",{className:Jl.managementModalHeader},V.default.createElement("span",{className:Jl.managementModalTitle},a),V.default.createElement("button",{type:"button",className:Jl.managementModalClose,disabled:!l,onClick:v,"aria-label":"关闭弹窗"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:"".concat(Jl.managementModalBody," ").concat(d).trim()},u),o?V.default.createElement("div",{className:Jl.managementModalFooter},o):null)),document.body)}var es=me.default.Option;function ts(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return e.concat(t,ts(t.children||[]))},[])}function as(e){var t=e.visible,a=e.editingCategory,r=e.assetTypes,o=e.activeAssetType,i=e.categoryTrees,l=e.onNeedCategoryTree,s=e.onClose,d=e.onSubmit,c=Ge(n.useState(!1),2),u=c[0],m=c[1],p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState("existing"),2),g=_[0],v=_[1],y=Ge(n.useState(o),2),x=y[0],b=y[1],M=Ge(n.useState(2),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState(""),2),k=L[0],I=L[1],P=Ge(n.useState([""]),2),A=P[0],R=P[1],D=Ge(n.useState(""),2),z=D[0],U=D[1],B=Ge(n.useState([{secondName:"",thirdName:""}]),2),G=B[0],F=B[1],O=i[x]||[],H=n.useMemo(function(){return ts(O)},[O]).filter(function(e){return 2===w?1===e.level:2===e.level});n.useEffect(function(){t&&(m(!1),h(""),v("existing"),b(o),T(2),N(""),I(a?a.name:""),R([""]),U(""),F([{secondName:"",thirdName:""}]))},[o,a,t]);var j=function(e){b(e),N(""),"function"==typeof l&&l(e)},W=function(e,t,a){F(function(n){return n.map(function(n,r){return r===e?Re(Re({},n),{},Ne({},t,a)):n})})},q=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(m(!0),h(""),e.p=1,!a){e.n=3;break}return e.n=2,d({action:"edit",assetType:o,id:a.id,name:k,level:a.level,enabled:a.enabled});case 2:e.n=4;break;case 3:return e.n=4,d({action:"create",assetType:x,mode:"root"===g?"newRoot":"existing",level:w,parentId:C,name:k,thirdNames:A,rootName:z,chains:G});case 4:m(!1),s(),e.n=6;break;case 5:e.p=5,t=e.v,m(!1),h(t.message||"保存分类失败");case 6:return e.a(2)}},e,null,[[1,5]])}));return function(){return e.apply(this,arguments)}}();return V.default.createElement($l,{visible:t,title:a?"编辑分类":"新增分类",width:a?520:720,onClose:s,closable:!u,bodyClassName:Jl.categoryManagementModalBody,footer:V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:Jl.modalCancelButton,disabled:u,onClick:s},"取消"),V.default.createElement("button",{type:"button",className:Jl.modalPrimaryButton,disabled:u,onClick:q},u?"保存中...":a?"保存":"确认新增"))},V.default.createElement("p",{className:Jl.modalDescription},a?"重命名会同步影响 SKU 新增、模板和商品素材映射中的分类名称。":"分类层级为素材类型、一级、二级、三级,任何新增链路都必须落到三级。"),a?null:V.default.createElement("div",{className:Jl.modeSwitch},V.default.createElement("button",{type:"button",className:"existing"===g?Jl.modeSwitchActive:"",onClick:function(){return v("existing")}},"已有分类下新增"),V.default.createElement("button",{type:"button",className:"root"===g?Jl.modeSwitchActive:"",onClick:function(){return v("root")}},"新增全新一级分类")),a?V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",null,"素材类型"),V.default.createElement(J.default,{value:(r.find(function(e){return e.value===o})||{}).label,disabled:!0})),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",null,"分类级别"),V.default.createElement(J.default,{value:"".concat(a.level," 级分类"),disabled:!0})),V.default.createElement("div",{className:"".concat(Jl.formField," ").concat(Jl.formFieldFull)},V.default.createElement("label",{htmlFor:"editing-category-name"},"分类名称"),V.default.createElement(J.default,{id:"editing-category-name",value:k,onChange:function(e){return I(e.target.value)}}))):"existing"===g?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-asset-type"},"素材类型"),V.default.createElement(me.default,{id:"category-asset-type",value:x,onChange:j,className:Jl.formControl},r.map(function(e){return V.default.createElement(es,{key:e.value,value:e.value},e.label)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-level"},"新增分类级别"),V.default.createElement(me.default,{id:"category-level",value:w,onChange:function(e){T(e),N("")},className:Jl.formControl},V.default.createElement(es,{value:2},"二级分类"),V.default.createElement(es,{value:3},"三级分类"))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-parent"},"上级",2===w?"一级":"二级","分类"),V.default.createElement(me.default,{id:"category-parent",value:C||void 0,onChange:N,placeholder:"请选择上级分类",className:Jl.formControl,showSearch:!0,optionFilterProp:"children"},H.map(function(e){return V.default.createElement(es,{key:e.id,value:e.id},e.name)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-name"},"分类名称"),V.default.createElement(J.default,{id:"category-name",value:k,onChange:function(e){return I(e.target.value)},placeholder:2===w?"如:岩板台面":"如:超薄岩板"}))),2===w?V.default.createElement("div",{className:Jl.chainPanel},V.default.createElement("div",{className:Jl.chainHeader},V.default.createElement("div",null,V.default.createElement("strong",null,"同时创建三级分类"),V.default.createElement("span",null,"新增二级分类时至少填写一个三级分类")),V.default.createElement("button",{type:"button",className:Jl.inlineButton,onClick:function(){return R(function(e){return e.concat("")})}},V.default.createElement(S.PlusOutlined,null)," 添加三级分类")),A.map(function(e,t){return V.default.createElement("div",{key:t,className:Jl.chainRow},V.default.createElement(J.default,{value:e,onChange:function(e){return function(e,t){R(function(a){return a.map(function(a,n){return n===e?t:a})})}(t,e.target.value)},placeholder:"三级分类名称"}),V.default.createElement("button",{type:"button",className:Jl.iconDangerButton,"aria-label":"删除三级分类输入行",disabled:1===A.length,onClick:function(){return R(function(e){return e.filter(function(e,a){return a!==t})})}},V.default.createElement(S.DeleteOutlined,null)))})):V.default.createElement("div",{className:Jl.formNotice},"新增三级分类必须选择所属二级分类,确保分类链路完整落到三级。")):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"root-asset-type"},"素材类型"),V.default.createElement(me.default,{id:"root-asset-type",value:x,onChange:j,className:Jl.formControl},r.map(function(e){return V.default.createElement(es,{key:e.value,value:e.value},e.label)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"root-category-name"},"一级分类名称"),V.default.createElement(J.default,{id:"root-category-name",value:z,onChange:function(e){return U(e.target.value)},placeholder:"如:智能家居"}))),V.default.createElement("div",{className:Jl.chainPanel},V.default.createElement("div",{className:Jl.chainHeader},V.default.createElement("div",null,V.default.createElement("strong",null,"二级 → 三级分类链路"),V.default.createElement("span",null,"至少建立一条完整链路")),V.default.createElement("button",{type:"button",className:Jl.inlineButton,onClick:function(){return F(function(e){return e.concat({secondName:"",thirdName:""})})}},V.default.createElement(S.PlusOutlined,null)," 添加链路")),G.map(function(e,t){return V.default.createElement("div",{key:t,className:"".concat(Jl.chainRow," ").concat(Jl.rootChainRow)},V.default.createElement(J.default,{value:e.secondName,onChange:function(e){return W(t,"secondName",e.target.value)},placeholder:"二级分类"}),V.default.createElement(J.default,{value:e.thirdName,onChange:function(e){return W(t,"thirdName",e.target.value)},placeholder:"三级分类"}),V.default.createElement("button",{type:"button",className:Jl.iconDangerButton,"aria-label":"删除分类链路",disabled:1===G.length,onClick:function(){return F(function(e){return e.filter(function(e,a){return a!==t})})}},V.default.createElement(S.DeleteOutlined,null)))})),V.default.createElement("div",{className:Jl.formNotice},"一级分类不能单独保存;新分类会同步影响 SKU 新增、模板与商品素材映射分类树。")),f?V.default.createElement("div",{className:Jl.formError,role:"alert"},f):null)}var ns=1,rs=2,os=3,is=4;function ls(){return ss.apply(this,arguments)}function ss(){return ss=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/list",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ss.apply(this,arguments)}function ds(){return cs.apply(this,arguments)}function cs(){return(cs=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/listEnabled",method:"post",data:{}}))},e)}))).apply(this,arguments)}function us(){return[{value:"all",label:"全部空间"}].concat(Fe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return{value:e.name,label:e.viewTab||e.name}}).filter(function(e){return e.value&&e.label})))}function ms(){return ps.apply(this,arguments)}function ps(){return ps=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/save",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ps.apply(this,arguments)}function fs(){return hs.apply(this,arguments)}function hs(){return hs=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/delete",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),hs.apply(this,arguments)}function _s(){return gs.apply(this,arguments)}function gs(){return gs=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/toggle",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),gs.apply(this,arguments)}function vs(){return ys.apply(this,arguments)}function ys(){return ys=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/updateOrder",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ys.apply(this,arguments)}function xs(e){var t=e.visible,a=e.spaces,r=void 0===a?[]:a,o=e.loading,i=e.onClose,l=e.onCreate,s=e.onToggle,d=e.onDelete,c=e.onMove,u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=Ge(n.useState(""),2),v=g[0],y=g[1],x=n.useRef(!1);n.useEffect(function(){t&&(p(""),y(""))},[t]);var b=function(){var e=we(ze().m(function e(t){var a;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!x.current){e.n=1;break}return e.a(2,!1);case 1:return x.current=!0,_(!0),y(""),e.p=2,e.n=3,t();case 3:return e.a(2,!0);case 4:throw e.p=4,y((a=e.v).message||"保存空间配置失败"),a;case 5:return e.p=5,x.current=!1,_(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=m.trim()){e.n=1;break}return y("请输入新空间名称"),e.a(2);case 1:if(!r.some(function(e){return e.name===t})){e.n=2;break}return y("空间名称“".concat(t,"”重复")),e.a(2);case 2:return e.p=2,e.n=3,b(function(){return l(t)});case 3:e.v&&p(""),e.n=5;break;case 4:e.p=4;case 5:return e.a(2)}},e,null,[[2,4]])}));return function(){return e.apply(this,arguments)}}(),w=function(){var e=we(ze().m(function e(t){return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,b(t);case 1:e.n=3;break;case 2:e.p=2;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),T=[{title:"空间名称",dataIndex:"name",width:140},{title:"渲染视图 Tab",dataIndex:"viewName",width:150},{title:"状态",dataIndex:"enabled",width:80,render:function(e){return V.default.createElement("span",{className:"".concat(Jl.spaceStatusTag," ").concat(e?Jl.spaceStatusEnabled:Jl.spaceStatusDisabled)},e?"启用":"停用")}},{title:"排序",width:176,render:function(e,t,a){return V.default.createElement("div",{className:Jl.spaceTableActions},V.default.createElement("button",{type:"button",disabled:h||0===a,onClick:function(){return w(function(){return c(t,ns)})}},"上移"),V.default.createElement("button",{type:"button",disabled:h||a===r.length-1,onClick:function(){return w(function(){return c(t,rs)})}},"下移"),V.default.createElement("button",{type:"button",disabled:h||0===a,onClick:function(){return w(function(){return c(t,os)})}},"置顶"),V.default.createElement("button",{type:"button",disabled:h||a===r.length-1,onClick:function(){return w(function(){return c(t,is)})}},"置底"))}},{title:"操作",width:112,render:function(e,t){return V.default.createElement("div",{className:Jl.spaceTableActions},V.default.createElement("button",{type:"button",className:t.enabled?Jl.spaceStopAction:Jl.spaceEnableAction,disabled:h,onClick:function(){return w(function(){return s(t,!t.enabled)})}},t.enabled?"停用":"启用"),V.default.createElement(_e.default,{title:"删除空间时需确认该空间下无进行中的渲染方案,确认删除吗?",okText:"删除",cancelText:"取消",onConfirm:function(){return w(function(){return d(t)})}},V.default.createElement("button",{type:"button",className:Jl.spaceDeleteAction,disabled:h},"删除")))}}];return V.default.createElement($l,{visible:t,title:"空间管理",width:820,onClose:i,closable:!h,bodyClassName:Jl.spaceManagementModalBody},V.default.createElement("p",{className:Jl.spaceModalDescription},"空间与渲染编辑器里的【视图切换】保持联动。配置持久化后,渲染平台的房间 Tab 同步更新。"),V.default.createElement(te.default,{spinning:!!o,tip:"空间列表加载中..."},V.default.createElement("div",{className:Jl.spaceTableWrap},V.default.createElement(he.default,{rowKey:"id",columns:T,dataSource:r,pagination:!1,size:"small",locale:{emptyText:"暂无空间"}}))),V.default.createElement("div",{className:Jl.spaceNotice},V.default.createElement("span",null,"ⓘ"),V.default.createElement("div",null,V.default.createElement("p",null,"停用空间后,渲染编辑器【视图切换】中该空间 Tab 同步隐藏;"),V.default.createElement("p",null,"删除空间时需确认该空间下无进行中的渲染方案;用上移、下移、置顶、置底调整渲染器 Tab 顺序。"))),V.default.createElement("div",{className:Jl.addSpaceRow},V.default.createElement("label",{htmlFor:"new-space-name"},"新空间名称:"),V.default.createElement(J.default,{id:"new-space-name",value:m,placeholder:"如:阳台",disabled:h,onChange:function(e){return p(e.target.value)},onPressEnter:M}),V.default.createElement("button",{type:"button",disabled:h,onClick:M},V.default.createElement(S.PlusOutlined,null)," 添加空间")),v?V.default.createElement("div",{className:Jl.formError,role:"alert"},v):null)}function bs(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(a){var n=Re(Re({},a),{},{parent:e});t.push(n),bs(a.children||[],n,t)}),t}function Ms(e){var t=e.item,a=e.selectedId,n=e.level,r=e.onSelect,o=t.level||(void 0===n?1:n),i=3===o?"":t.level3Count||0;return V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:"".concat(Jl.treeNode," ").concat(Jl["treeNodeLevel".concat(o)]||""," ").concat(a===t.id?Jl.treeNodeActive:""," ").concat(t.enabled?"":Jl.treeNodeDisabled),onClick:function(){return r(t.id)}},V.default.createElement("span",{className:Jl.treeNodeName},t.name),""!==i?V.default.createElement("span",{className:Jl.treeNodeMeta},i):null),(t.children||[]).map(function(e){return V.default.createElement(Ms,{key:e.id,item:e,selectedId:a,level:o+1,onSelect:r})}))}var ws=a.connect(function(e){return{materialCategoryManagement:e.materialCategoryManagement,spaceManagement:e.spaceManagement}})(function(e){var t=e.dispatch,a=e.materialCategoryManagement||{},r=a.assetTypes,o=void 0===r?[]:r,i=a.categoryTrees,l=void 0===i?{}:i,s=a.activeAssetType,d=void 0===s?"":s,c=a.selectedCategoryId,u=void 0===c?"":c,m=a.loading,p=void 0!==m&&m,f=a.level3List,h=void 0===f?[]:f,_=a.level3Loading,g=void 0!==_&&_,v=e.spaceManagement||{},y=v.spaces,x=void 0===y?[]:y,b=v.loading,M=void 0!==b&&b,w=Ge(n.useState(!1),2),T=w[0],E=w[1],C=Ge(n.useState(!1),2),N=C[0],L=C[1],k=Ge(n.useState(null),2),I=k[0],P=k[1],A=Ge(n.useState({text:"",error:!1}),2),R=A[0],D=A[1],z=l[d]||[],U=n.useMemo(function(){return bs(z,null,[])},[z]).find(function(e){return e.id===u})||null;n.useEffect(function(){t({type:"materialCategoryManagement/fetchManagementData"}).catch(function(){})},[t]),n.useEffect(function(){if(R.text){var e=window.setTimeout(function(){return D({text:"",error:!1})},3e3);return function(){return window.clearTimeout(e)}}},[R.text]);var B=function(e){t({type:"materialCategoryManagement/selectCategory",payload:{id:e}}).catch(function(){})},G=function(e){P(e),E(!0)},F=function(e){var a=!e.enabled;t({type:"materialCategoryManagement/toggleCategory",payload:{assetType:d,id:e.id,enabled:a}}).then(function(){D({text:"".concat(e.name,"已").concat(a?"启用":"停用"),error:!1})}).catch(function(){})},O=function(e){oe.default.confirm({title:"确认删除“".concat(e.name,"”?"),content:"删除前会校验该分类及其子级是否存在 SKU、素材或默认素材引用。",okText:"确认删除",okType:"danger",cancelText:"取消",onOk:function(){return function(e){return t({type:"materialCategoryManagement/deleteCategory",payload:{assetType:d,id:e.id}}).then(function(){D({text:"分类“".concat(e.name,"”已删除"),error:!1})})}(e).catch(function(){})}})},H=h,j=(o.find(function(e){return e.value===d})||{}).label,W=[{title:"三级分类",dataIndex:"name",ellipsis:!0},{title:"所属二级",width:150,render:function(e,t){return t.parent?t.parent.name:"--"}},{title:"状态",dataIndex:"enabled",width:90,render:function(e){return V.default.createElement("span",{className:"".concat(Jl.statusTag," ").concat(e?Jl.statusEnabled:Jl.statusDisabled)},e?"启用":"停用")}},{title:"操作",width:180,render:function(e,t){return V.default.createElement("div",{className:Jl.tableActions},V.default.createElement("button",{type:"button",onClick:function(){return G(t)}},"编辑"),V.default.createElement("button",{type:"button",onClick:function(){return F(t)}},t.enabled?"停用":"启用"))}}];return V.default.createElement("div",{className:Jl.page},V.default.createElement("div",{className:Jl.headerSection},V.default.createElement("div",null,V.default.createElement("div",{className:Jl.titleLine},V.default.createElement("h2",null,"素材分类管理")),V.default.createElement("p",null,"管理素材类型与一、二、三级分类。分类变更会影响 SKU 新增、模板和商品素材映射的分类树。")),V.default.createElement("div",{className:Jl.headerActions},V.default.createElement("button",{type:"button",className:Jl.secondaryButton,onClick:function(){L(!0),t({type:"spaceManagement/fetchSpaces"}).catch(function(){})}},"空间管理"),V.default.createElement("button",{type:"button",className:Jl.primaryButton,onClick:function(){P(null),E(!0)}},V.default.createElement(S.PlusOutlined,null)," 新增分类"))),V.default.createElement("div",{className:Jl.assetTabs,role:"tablist","aria-label":"素材类型"},o.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",role:"tab","aria-selected":d===e.value,className:d===e.value?Jl.assetTabActive:"",onClick:function(){t({type:"materialCategoryManagement/changeAssetType",payload:{assetType:e.value}}).catch(function(){})}},e.label,V.default.createElement("span",null,"(",Number(e.count)||0,")"))})),V.default.createElement("div",{className:Jl.layoutBody},V.default.createElement(te.default,{spinning:p,tip:"分类数据加载中..."},V.default.createElement("div",{className:Jl.managementLayout},V.default.createElement("aside",{className:Jl.treePanel},V.default.createElement("div",{className:Jl.panelHeader},V.default.createElement("span",null,"分类树(素材类型 → 一/二/三级)")),V.default.createElement("div",{className:Jl.treeScroll},z.length?z.map(function(e){return V.default.createElement(Ms,{key:e.id,item:e,selectedId:U?U.id:"",onSelect:B})}):V.default.createElement(re.default,{image:re.default.PRESENTED_IMAGE_SIMPLE,description:"当前素材类型暂无分类"}))),V.default.createElement("main",{className:Jl.detailColumn},U?V.default.createElement(V.default.Fragment,null,V.default.createElement("section",{className:Jl.summaryCard},V.default.createElement("div",{className:Jl.summaryHeader},V.default.createElement("div",null,V.default.createElement("div",{className:Jl.categoryTitle},U.name,V.default.createElement("span",null,j),V.default.createElement("small",null,U.level,"级分类 ·"," ",U.level2Count||0," 个二级分类 ·"," ",U.level3Count||0," 个三级分类"))),V.default.createElement("div",{className:Jl.summaryActions},V.default.createElement("button",{type:"button",onClick:function(){return G(U)}},V.default.createElement(S.EditOutlined,null)," 编辑"),V.default.createElement("button",{type:"button",onClick:function(){return F(U)}},U.enabled?"停用":"启用"),V.default.createElement("button",{type:"button",className:Jl.dangerButton,onClick:function(){return O(U)}},V.default.createElement(S.DeleteOutlined,null)," 删除"))),V.default.createElement("div",{className:Jl.ruleNotice},"ⓘ 停用后:商品素材映射分类树、SKU 新增与模板中将不再出现该分类;已绑定素材不受影响。分类树显示受本模块控制。")),V.default.createElement("section",{className:Jl.detailCard},V.default.createElement("div",{className:Jl.detailCardHeader},V.default.createElement("div",null,V.default.createElement("h3",null,"三级分类明细"),V.default.createElement("span",null,"共 ",H.length," 项"))),V.default.createElement("div",{className:Jl.tableWrap},V.default.createElement(te.default,{spinning:g,tip:"三级分类加载中..."},V.default.createElement(he.default,{rowKey:"id",columns:W,dataSource:H,pagination:!1,size:"small",locale:{emptyText:"当前分类下暂无三级分类"},scroll:{y:"100%"}}))))):V.default.createElement("div",{className:Jl.emptyDetail},V.default.createElement(re.default,{description:"请选择分类或新增完整分类链路"})))))),V.default.createElement(as,{visible:T,editingCategory:I,assetTypes:o,activeAssetType:d,categoryTrees:l,onNeedCategoryTree:function(e){t({type:"materialCategoryManagement/ensureAssetTypeTree",payload:{assetType:e}}).catch(function(){})},onClose:function(){E(!1),P(null)},onSubmit:function(e){return t({type:"materialCategoryManagement/".concat("edit"===e.action?"editCategory":"createCategory"),payload:e}).then(function(){D({text:"edit"===e.action?"分类已保存":"分类已新增,消费页面可重新拉取分类树",error:!1})})}}),V.default.createElement(xs,{visible:N,spaces:x,loading:M,onClose:function(){return L(!1)},onCreate:function(e){return t({type:"spaceManagement/createSpace",payload:{name:e}}).then(function(){D({text:"空间已新增",error:!1})})},onToggle:function(e,a){return t({type:"spaceManagement/toggleSpace",payload:{id:e.id,enabled:a}}).then(function(){D({text:"空间“".concat(e.name,"”已").concat(a?"启用":"停用"),error:!1})})},onDelete:function(e){return t({type:"spaceManagement/deleteSpace",payload:{id:e.id}}).then(function(){D({text:"空间“".concat(e.name,"”已删除"),error:!1})})},onMove:function(e,a){return t({type:"spaceManagement/moveSpace",payload:{id:e.id,operation:a}}).then(function(){D({text:"空间顺序已更新",error:!1})})}}),R.text?V.default.createElement("div",{className:"".concat(Jl.toast," ").concat(R.error?Jl.toastError:""),role:"status"},R.text):null)}),Ss={page:"myMaterialModel-module_page__1V3eV",pageHeader:"myMaterialModel-module_pageHeader__nmZMa",pageTabs:"myMaterialModel-module_pageTabs__2hAyX",pageTab:"myMaterialModel-module_pageTab__1toJJ",pageTabActive:"myMaterialModel-module_pageTabActive__E2X2k",tableCardWrap:"myMaterialModel-module_tableCardWrap__2Gpzi",tableHeader:"myMaterialModel-module_tableHeader__WrWwa",searchInput:"myMaterialModel-module_searchInput__2qT_a",searchInputWrap:"myMaterialModel-module_searchInputWrap__30q1_",searchClearBtn:"myMaterialModel-module_searchClearBtn__1bu_i",filterLabel:"myMaterialModel-module_filterLabel__3qfY7",filterSelect:"myMaterialModel-module_filterSelect__2NlQa","ant-select-selection-item":"myMaterialModel-module_ant-select-selection-item__5prmh","ant-select-arrow":"myMaterialModel-module_ant-select-arrow__2N0va",segmented:"myMaterialModel-module_segmented__320Gb",segmentedItem:"myMaterialModel-module_segmentedItem__3bknN",segmentedItemSelected:"myMaterialModel-module_segmentedItemSelected__30U2P",tableCard:"myMaterialModel-module_tableCard__2se1Q",dataTable:"myMaterialModel-module_dataTable__1EmL0",cell:"myMaterialModel-module_cell__3tt2H",cellName:"myMaterialModel-module_cellName__2Hp8Q myMaterialModel-module_cell__3tt2H",cellMuted:"myMaterialModel-module_cellMuted__3p4Ps myMaterialModel-module_cell__3tt2H",brandName:"myMaterialModel-module_brandName__3ntMz myMaterialModel-module_cell__3tt2H",formatCell:"myMaterialModel-module_formatCell__zfkM0 myMaterialModel-module_cell__3tt2H",thumbnailCell:"myMaterialModel-module_thumbnailCell__BUa2u",thumbnail:"myMaterialModel-module_thumbnail__1LTn6",thumbnailImg:"myMaterialModel-module_thumbnailImg__hwGa5",thumbnailPlaceholder:"myMaterialModel-module_thumbnailPlaceholder__1pr2B",actions:"myMaterialModel-module_actions__2VBHo",statusNeutral:"myMaterialModel-module_statusNeutral__3Gcid",mappingProduct:"myMaterialModel-module_mappingProduct__1sytA",headerLeft:"myMaterialModel-module_headerLeft__3SmyL",pageTitle:"myMaterialModel-module_pageTitle__xQZQW",pageSubtitle:"myMaterialModel-module_pageSubtitle__1XMki",uploadBtn:"myMaterialModel-module_uploadBtn__2j5QH",mainContent:"myMaterialModel-module_mainContent__QGX9K",sidebar:"myMaterialModel-module_sidebar__2TFvY",spaceSelector:"myMaterialModel-module_spaceSelector__wbCod",spaceSelect:"myMaterialModel-module_spaceSelect__1Tw5_",tabPills:"myMaterialModel-module_tabPills__1gvo6",tabPill:"myMaterialModel-module_tabPill__26UPx",active:"myMaterialModel-module_active__1De7F",categoryTree:"myMaterialModel-module_categoryTree__2EBns",categoryList:"myMaterialModel-module_categoryList__4kLk_",categoryGroup:"myMaterialModel-module_categoryGroup__1shvy",categoryItem:"myMaterialModel-module_categoryItem__2Nf9n",expandIcon:"myMaterialModel-module_expandIcon__2Bjzy",categoryItemTitle:"myMaterialModel-module_categoryItemTitle__cXHKc",categoryItemCount:"myMaterialModel-module_categoryItemCount__LAHQL",subCategoryItem:"myMaterialModel-module_subCategoryItem__3zzLw",subCategoryTitle:"myMaterialModel-module_subCategoryTitle__1sPY2",subCategoryCount:"myMaterialModel-module_subCategoryCount__3O4pm",content:"myMaterialModel-module_content__1yTqx",formatTabs:"myMaterialModel-module_formatTabs__3fKIc",formatTab:"myMaterialModel-module_formatTab__3Gxa9",materialGrid:"myMaterialModel-module_materialGrid__1tWr1",paginationWrap:"myMaterialModel-module_paginationWrap__1tHjH",materialCard:"myMaterialModel-module_materialCard__3xbJf",cardCover:"myMaterialModel-module_cardCover__18j6J",cardImage:"myMaterialModel-module_cardImage__Ik-RP",cardImagePlaceholder:"myMaterialModel-module_cardImagePlaceholder__2VBgc",cardBody:"myMaterialModel-module_cardBody__38Lpt",cardHeader:"myMaterialModel-module_cardHeader__1ftO3",cardTitle:"myMaterialModel-module_cardTitle__17Aho",cardSubtitle:"myMaterialModel-module_cardSubtitle__2ooLj",cardMeta:"myMaterialModel-module_cardMeta__AkqZ8",cardFormat:"myMaterialModel-module_cardFormat__3gg-s",cardDivider:"myMaterialModel-module_cardDivider__2khRP",cardSize:"myMaterialModel-module_cardSize__2bw72",cardFooter:"myMaterialModel-module_cardFooter__38-3Y",actionBtn:"myMaterialModel-module_actionBtn__24Hj5",moreBtn:"myMaterialModel-module_moreBtn__1QhQ1",moreIcon:"myMaterialModel-module_moreIcon__eLwcd",cardActions:"myMaterialModel-module_cardActions__3UTMB",moreDropdown:"myMaterialModel-module_moreDropdown__3GHbx",dropdownOpen:"myMaterialModel-module_dropdownOpen__76wL2",moreDropdownItem:"myMaterialModel-module_moreDropdownItem__3o8kP",loadingWrap:"myMaterialModel-module_loadingWrap__3FwDH",empty:"myMaterialModel-module_empty__29mYv"};je(".myMaterialModel-module_page__1V3eV{display:flex;flex-direction:column;height:100%;background:#f5f7fa}.myMaterialModel-module_pageHeader__nmZMa{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 7px}.myMaterialModel-module_pageTabs__2hAyX{display:flex;align-items:center;gap:0;padding:0 16px;border-bottom:1px solid rgba(115,123,139,.30196078431372547)}.myMaterialModel-module_pageTab__1toJJ{padding:11.5px 0;font-size:14px;font-weight:400;color:#737b8b;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;margin-right:32px}.myMaterialModel-module_pageTab__1toJJ:hover{color:#1890ff}.myMaterialModel-module_pageTabActive__E2X2k{color:#1890ff;border-bottom-color:#1890ff}.myMaterialModel-module_tableCardWrap__2Gpzi{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.myMaterialModel-module_tableHeader__WrWwa{display:flex;align-items:center;gap:16px;padding:0 0 12px;flex-shrink:0}.myMaterialModel-module_searchInput__2qT_a{width:240px;height:32px;padding:0 32px 0 12px;border:1px solid #f0f0f0;border-radius:6px;font-size:13px;outline:none;transition:all .2s}.myMaterialModel-module_searchInput__2qT_a:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}.myMaterialModel-module_searchInputWrap__30q1_{position:relative;display:inline-block}.myMaterialModel-module_searchClearBtn__1bu_i{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#bfbfbf;cursor:pointer;border-radius:50%;font-size:12px;transition:all .2s}.myMaterialModel-module_searchClearBtn__1bu_i:hover{color:#8c8c8c;background:rgba(0,0,0,.08)}.myMaterialModel-module_filterLabel__3qfY7{font-size:14px;color:#000;white-space:nowrap}.myMaterialModel-module_filterSelect__2NlQa{width:auto;min-width:80px;background:#fff;border-radius:4px}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector{height:auto!important;padding:0 8px 0 px!important;border:none!important;background:transparent!important;box-shadow:none!important}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector .myMaterialModel-module_ant-select-selection-item__5prmh{line-height:1.2!important;padding:0!important;font-size:14px;color:#616778}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector .myMaterialModel-module_ant-select-arrow__2N0va{right:0!important}.myMaterialModel-module_segmented__320Gb{display:flex;background:#fff;padding:3px;border-radius:6px}.myMaterialModel-module_segmentedItem__3bknN{padding:0 12px;min-height:26px;line-height:26px;font-size:14px;color:#616778;cursor:pointer;border-radius:4px;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.myMaterialModel-module_segmentedItem__3bknN:hover{color:#000f2c}.myMaterialModel-module_segmentedItem__3bknN.myMaterialModel-module_segmentedItemSelected__30U2P{background:#f0f2f5;color:#000f2c;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}.myMaterialModel-module_tableCard__2se1Q{overflow:hidden}.myMaterialModel-module_tableCard__2se1Q,.myMaterialModel-module_tableCard__2se1Q .ant-spin-container,.myMaterialModel-module_tableCard__2se1Q .ant-spin-nested-loading,.myMaterialModel-module_tableCard__2se1Q .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.myMaterialModel-module_tableCard__2se1Q .ant-table-pagination{flex-shrink:0;margin:0;padding:12px 16px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:flex-end}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-total-text{color:#8c8c8c;font-size:13px}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item{min-width:32px;height:32px;line-height:32px;border-radius:6px;border:1px solid #f0f0f0}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item a{color:#616778}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item:hover{border-color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item:hover a{color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item-active a{color:#fff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev{min-width:32px;height:32px;line-height:32px}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next .ant-pagination-item-link,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev .ant-pagination-item-link{border-radius:6px;border:1px solid #f0f0f0;color:#616778}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next .ant-pagination-item-link:hover,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev .ant-pagination-item-link:hover{border-color:#1890ff;color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-disabled .ant-pagination-item-link{color:#d9d9d9}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-disabled .ant-pagination-item-link:hover{border-color:#f0f0f0;color:#d9d9d9}.myMaterialModel-module_dataTable__1EmL0{background:#fff;border:1px solid #fff;border-radius:8px}.myMaterialModel-module_dataTable__1EmL0 .ant-table{flex:1;min-height:0;background:transparent;font-size:13px}.myMaterialModel-module_dataTable__1EmL0 .ant-table-container{height:100%;border-radius:0}.myMaterialModel-module_dataTable__1EmL0 .ant-table-thead>tr>th{background:#f5f7fa;padding:7.5px 12px;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;border-bottom:1px solid #f0f0f0}.myMaterialModel-module_dataTable__1EmL0 .ant-table-thead>tr>th:before{display:none}.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell,.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell *,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td{padding:12px 14px;font-size:13px;color:#262626;border-bottom:1px solid #f5f5f5}.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr:last-child>td{border-bottom:none}.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr:hover>td{background:#fafafa}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-total-text{font-family:Roboto;font-weight:400;font-size:14px;letter-spacing:0;text-align:center;color:rgba(0,0,0,.65)}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item{border:1px solid #d9d9d9;border-radius:6px}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item:hover>a{color:#397bff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-active{border:1px solid #397bff;background-color:#fff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-active>a{color:#397bff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-link,.myMaterialModel-module_dataTable__1EmL0 .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-radius:6px}.myMaterialModel-module_cell__3tt2H{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.myMaterialModel-module_cellName__2Hp8Q{font-weight:500}.myMaterialModel-module_cellMuted__3p4Ps{font-size:12px;color:#8c8c8c}.myMaterialModel-module_brandName__3ntMz{color:#1890ff}.myMaterialModel-module_thumbnailCell__BUa2u{display:flex;align-items:center;gap:10px}.myMaterialModel-module_thumbnail__1LTn6{width:48px;height:48px;border-radius:8px;background:#f0f2f5;overflow:hidden;flex-shrink:0}.myMaterialModel-module_thumbnailImg__hwGa5{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.myMaterialModel-module_thumbnailPlaceholder__1pr2B{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f2f5}.myMaterialModel-module_actions__2VBHo{white-space:nowrap}.myMaterialModel-module_statusNeutral__3Gcid{display:inline-block;padding:2px 8px;border-radius:4px;font-size:14px;color:#8c8c8c;background:#f5f5f5}.myMaterialModel-module_mappingProduct__1sytA{color:#1890ff;cursor:pointer}.myMaterialModel-module_headerLeft__3SmyL{display:flex;flex-direction:column;gap:2px}.myMaterialModel-module_pageTitle__xQZQW{font-size:14px;font-weight:500;color:#000f2c}.myMaterialModel-module_pageSubtitle__1XMki{font-size:12px;color:#737b8b;font-weight:400}.myMaterialModel-module_uploadBtn__2j5QH{height:32px;padding:4px 12px;border-radius:6px;font-size:14px;background:#1890ff;border:none}.myMaterialModel-module_mainContent__QGX9K{display:flex;flex:1;overflow:hidden}.myMaterialModel-module_sidebar__2TFvY{width:264px;background:#fff;display:flex;flex-direction:column;overflow-y:auto;margin:16px 0 16px 16px;border-radius:6px}.myMaterialModel-module_spaceSelector__wbCod{padding:16px 16px 12px}.myMaterialModel-module_spaceSelect__1Tw5_{width:100%}.myMaterialModel-module_spaceSelect__1Tw5_ .ant-select-selector{height:36px!important;padding:0 12px!important;border-radius:6px!important;border:1px solid #f0f2f5!important;background:#f0f2f5!important}.myMaterialModel-module_spaceSelect__1Tw5_ .ant-select-selector .myMaterialModel-module_ant-select-selection-item__5prmh{line-height:36px!important;font-size:14px}.myMaterialModel-module_tabPills__1gvo6{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}.myMaterialModel-module_tabPill__26UPx{padding:4px 12px;border-radius:4px;font-size:13px;color:#616778;cursor:pointer;transition:all .2s;background:transparent}.myMaterialModel-module_tabPill__26UPx:hover{background:#f0f2f5;color:#000f2c}.myMaterialModel-module_tabPill__26UPx.myMaterialModel-module_active__1De7F{background:#e6f4ff;color:#1890ff}.myMaterialModel-module_categoryList__4kLk_,.myMaterialModel-module_categoryTree__2EBns{flex:1;overflow-y:auto}.myMaterialModel-module_categoryGroup__1shvy.myMaterialModel-module_active__1De7F .myMaterialModel-module_categoryItem__2Nf9n{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_categoryItem__2Nf9n{display:flex;align-items:center;padding:10px 16px;cursor:pointer;transition:all .2s;font-size:14px;color:#737b8b;font-weight:400}.myMaterialModel-module_categoryItem__2Nf9n:hover{background:#f5f5f5}.myMaterialModel-module_categoryItem__2Nf9n.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_expandIcon__2Bjzy{margin-right:8px;font-size:10px;color:#8c8c8c}.myMaterialModel-module_categoryItemTitle__cXHKc{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.myMaterialModel-module_categoryItemCount__LAHQL{font-size:12px;color:#8c8c8c;margin-left:auto}.myMaterialModel-module_categoryItemCount__LAHQL.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_subCategoryItem__3zzLw{display:flex;align-items:center;padding:5px 16px 5px 30px;cursor:pointer;transition:all .2s;font-size:14px;font-size:400;color:#121c2a}.myMaterialModel-module_subCategoryItem__3zzLw:hover{background:#f5f5f5}.myMaterialModel-module_subCategoryItem__3zzLw.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_subCategoryTitle__1sPY2{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.myMaterialModel-module_subCategoryCount__3O4pm{font-size:12px;color:#8c8c8c;margin-left:auto}.myMaterialModel-module_subCategoryCount__3O4pm.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_content__1yTqx{flex:1;display:flex;flex-direction:column;padding:16px;min-height:0;overflow:hidden}.myMaterialModel-module_formatTabs__3fKIc{display:flex;gap:4px;margin-bottom:16px;background:#fff;padding:0 3px;border-radius:8px;width:-moz-fit-content;width:fit-content}.myMaterialModel-module_formatTab__3Gxa9{font-size:14px;color:#616778;cursor:pointer;height:26px;line-height:26px;transition:all .2s;padding:0 12px;margin:3px 0}.myMaterialModel-module_formatTab__3Gxa9:hover{color:#000f2c;background:#f0f2f5;border-radius:4px}.myMaterialModel-module_formatTab__3Gxa9.myMaterialModel-module_active__1De7F{color:#000f2c;font-weight:600;background:#f0f2f5;border-radius:4px}.myMaterialModel-module_materialGrid__1tWr1{display:grid;grid-template-columns:repeat(auto-fill,minmax(281px,1fr));gap:24px 16px;overflow-y:auto}.myMaterialModel-module_paginationWrap__1tHjH{position:fixed;bottom:24px;right:24px;background:#fff;padding:12px 16px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.12)}.myMaterialModel-module_materialCard__3xbJf{background:#fff;border-radius:12px;overflow:visible;border:1px solid #f0f0f0;transition:all .2s;height:281px;display:flex;flex-direction:column}.myMaterialModel-module_materialCard__3xbJf:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);border-color:#e6f4ff}.myMaterialModel-module_cardCover__18j6J{position:relative;width:100%;height:197px;flex-shrink:0;overflow:hidden;background:#f5f5f5}.myMaterialModel-module_cardImage__Ik-RP{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.myMaterialModel-module_cardImagePlaceholder__2VBgc{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fafafa,#f0f0f0)}.myMaterialModel-module_cardBody__38Lpt{padding:10px 12px 8px;min-height:50px}.myMaterialModel-module_cardHeader__1ftO3{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.myMaterialModel-module_cardTitle__17Aho{font-size:14px;font-weight:500;color:#000f2c;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.myMaterialModel-module_cardSubtitle__2ooLj{font-size:12px;color:#8c8c8c;line-height:1.4;margin-bottom:6px}.myMaterialModel-module_cardMeta__AkqZ8{display:flex;align-items:center;gap:4px;font-size:12px;color:#8c8c8c;flex-shrink:0}.myMaterialModel-module_cardFormat__3gg-s{color:#616778}.myMaterialModel-module_cardDivider__2khRP{color:#d9d9d9}.myMaterialModel-module_cardSize__2bw72{color:#8c8c8c}.myMaterialModel-module_cardFooter__38-3Y{display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:0 12px;flex-shrink:0}.myMaterialModel-module_actionBtn__24Hj5{flex:1;height:28px;font-size:12px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center}.myMaterialModel-module_moreBtn__1QhQ1{width:28px;min-width:28px;padding:0;display:flex;align-items:center;justify-content:center}.myMaterialModel-module_moreIcon__eLwcd{width:28px;height:28px;cursor:pointer}.myMaterialModel-module_cardActions__3UTMB{position:relative}.myMaterialModel-module_moreDropdown__3GHbx{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);padding:4px;min-width:100px;z-index:9999;animation:myMaterialModel-module_dropdownOpen__76wL2 .2s ease-out}.myMaterialModel-module_moreDropdownItem__3o8kP{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:13px;padding:8px 12px;cursor:pointer;border-radius:4px}.myMaterialModel-module_moreDropdownItem__3o8kP:hover{border-radius:10px;background:#f5f5f5;color:#000f2c}@keyframes myMaterialModel-module_dropdownOpen__76wL2{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.myMaterialModel-module_empty__29mYv,.myMaterialModel-module_loadingWrap__3FwDH{flex:1;display:flex;align-items:center;justify-content:center}.myMaterialModel-module_empty__29mYv{flex-direction:column}");
|
|
3
|
+
var e,t,a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",r=a.toStringTag||"@@toStringTag";function o(a,n,r,o){var s=Object.create((n&&n.prototype instanceof l?n:l).prototype);return Ue(s,"_invoke",function(a,n,r){var o,l,s,d=0,c=r||[],u=!1,m={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,a){return o=t,l=0,s=e,m.n=a,i}};function p(a,n){for(l=a,s=n,t=0;!u&&d&&!r&&c.length>t;t++){var r,o=c[t],p=m.p,f=o[2];a>3?(r=f===n)&&(s=o[(l=o[4])?5:(l=3,3)],o[4]=o[5]=e):p>=o[0]&&((r=2>a&&o[1]>p)?(l=0,m.v=n,m.n=o[1]):f>p&&(r=3>a||o[0]>n||n>f)&&(o[4]=a,o[5]=n,m.n=f,l=0))}if(r||a>1)return i;throw u=!0,n}return function(r,c,f){if(d>1)throw TypeError("Generator is already running");for(u&&1===c&&p(c,f),l=c,s=f;(t=2>l?e:s)||!u;){o||(l?3>l?(l>1&&(m.n=-1),p(l,s)):m.n=s:m.v=s);try{if(d=2,o){if(l||(r="next"),t=o[r]){if(!(t=t.call(o,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,2>l&&(l=0)}else 1===l&&(t=o.return)&&t.call(o),2>l&&(s=TypeError("The iterator does not provide a '"+r+"' method"),l=1);o=e}else if((t=(u=0>m.n)?s:a.call(n,m))!==i)break}catch(t){o=e,l=1,s=t}finally{d=1}}return{value:t,done:u}}}(a,r,o),!0),s}var i={};function l(){}function s(){}function d(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(Ue(t={},n,function(){return this}),t),u=d.prototype=l.prototype=Object.create(c);function m(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,Ue(e,r,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=d,Ue(u,"constructor",d),Ue(d,"constructor",s),s.displayName="GeneratorFunction",Ue(d,r,"GeneratorFunction"),Ue(u),Ue(u,r,"Generator"),Ue(u,n,function(){return this}),Ue(u,"toString",function(){return"[object Generator]"}),(ze=function(){return{w:o,m:m}})()}function Ue(e,t,a,n){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}Ue=function(e,t,a,n){function o(t,a){Ue(e,t,function(e){return this._invoke(t,a,e)})}t?r?r(e,t,{value:a,enumerable:!n,configurable:!n,writable:!n}):e[t]=a:(o("next",0),o("throw",1),o("return",2))},Ue(e,t,a,n)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}function Ge(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,o,i,l=[],s=!0,d=!1;try{if(o=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;s=!1}else for(;!(s=(n=o.call(a)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){d=!0,r=e}finally{try{if(!s&&null!=a.return&&(i=a.return(),Object(i)!==i))return}finally{if(d)throw r}}return l}}(e,t)||Ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oe(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function He(e){return He="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Ve(e,t){if(e){if("string"==typeof e)return be(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?be(e,t):void 0}}function je(e,t){void 0===t&&(t={});var a=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===a&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}je("*{margin:0;padding:0;box-sizing:border-box}#index_root__4PyOE,body,html{width:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}body{font-size:14px;color:#333}");var We,qe="app-module_appWrapper__2AGqq";je(".app-module_appWrapper__2AGqq{height:100vh;width:100%;overflow:hidden;background:#f5f6f8}.ant-tooltip-inner{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important;max-width:400px;word-break:break-all}");var Ke,Xe,Ye=a.connect(function(e){return{app:e.app}})(We=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).changePage=function(t){var a=t.detail,n=a?a.path:"/douGongSchemeTemplate";window.location.pathname!==n&&e.props.dispatch(c.routerRedux.replace({pathname:n}))},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){window.addEventListener("onDecoratePageChange",this.changePage);var e=window.location.pathname;"/"!==e&&"/decoratePlatform"!==e&&"/decoratePlatform/"!==e||this.props.dispatch(c.routerRedux.replace({pathname:"/douGongSchemeTemplate"}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("onDecoratePageChange",this.changePage)}},{key:"render",value:function(){return V.default.createElement(W.default,{locale:q.default},V.default.createElement("div",{className:qe},this.props.children))}}])}(n.Component))||We,Ze=a.connect(function(e){return{app:e.app}})(Ye),Qe=a.connect(function(e){return{decorate:e.decorate}})(Ke=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).handleSubmit=function(e){console.log("提交配置:",e)},e}return Ie(t,e),Ce(t,[{key:"render",value:function(){return V.default.createElement("div",{style:{padding:20}},V.default.createElement(X.default,{title:"配置管理"},V.default.createElement(Q.default,{layout:"vertical",onFinish:this.handleSubmit},V.default.createElement(Q.default.Item,{label:"配置名称",name:"name",rules:[{required:!0}]},V.default.createElement(J.default,null)),V.default.createElement(Q.default.Item,{label:"配置描述",name:"description"},V.default.createElement(J.default.TextArea,{rows:4})),V.default.createElement(Q.default.Item,{label:"启用状态",name:"enabled",valuePropName:"checked"},V.default.createElement(Z.default,null)),V.default.createElement(Q.default.Item,null,V.default.createElement(Y.default,{type:"primary",htmlType:"submit"},"保存")))))}}])}(n.Component))||Ke;function Je(e){if(!e)return"";if(e.query&&e.query.id)return e.query.id+"";var t=e.search||"",a=t.startsWith("?")?t.slice(1):t;try{return new URLSearchParams(a).get("id")||""}catch(e){return""}}var $e=a.connect(function(e){return{decorate:e.decorate,loading:e.loading}})(Xe=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).loadByRoute=function(){var t=Je(e.props.location),a=function(e){if(e){if(e.query&&e.query.version)return e.query.version+"";var t=e.search||"",a=t.startsWith("?")?t.slice(1):t;try{return new URLSearchParams(a).get("version")||void 0}catch(e){return}}}(e.props.location),n=e.props.dispatch;if(t){var r={schemeId:t+""};a&&(r.version=a),n({type:"decorate/fetchDetail",payload:r}).catch(function(e){O.default.error(e.message||"获取详情失败")})}},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.loadByRoute()}},{key:"componentDidUpdate",value:function(e){Je(e.location)!==Je(this.props.location)&&this.loadByRoute()}},{key:"render",value:function(){var e,t,a=this,n=this.props.decorate.detail,r=null===(e=this.props.loading)||void 0===e||null===(t=e.effects)||void 0===t?void 0:t["decorate/fetchDetail"];return V.default.createElement("div",{style:{padding:24,height:"100%",overflow:"auto"}},V.default.createElement(X.default,{title:"方案详情",extra:V.default.createElement(Y.default,{type:"primary",onClick:function(){return a.props.dispatch(c.routerRedux.push("/myScheme"))}},"返回列表")},r?V.default.createElement("div",{style:{textAlign:"center",padding:40}},V.default.createElement(te.default,null)):n&&n.id?V.default.createElement(V.default.Fragment,null,n.cover&&V.default.createElement("div",{style:{marginBottom:20,maxWidth:600,overflow:"auto",maxHeight:500}},V.default.createElement("img",{src:n.cover,alt:n.title||"",style:{borderRadius:8,maxHeight:480,display:"block",width:"100%",objectFit:"contain"}})),V.default.createElement(ee.default,{column:2,bordered:!0},V.default.createElement(ee.default.Item,{label:"方案名称"},n.title||"--"),V.default.createElement(ee.default.Item,{label:"状态"},"draft"===n.status?V.default.createElement($.default,{color:"orange"},"草稿"):V.default.createElement($.default,{color:"blue"},"正式")),V.default.createElement(ee.default.Item,{label:"面积"},n.area?"".concat(n.area,"m²"):"--"),V.default.createElement(ee.default.Item,{label:"风格"},n.style||"--"),V.default.createElement(ee.default.Item,{label:"城市"},n.city||"--"),V.default.createElement(ee.default.Item,{label:"客户"},n.customer||"--"),V.default.createElement(ee.default.Item,{label:"版本号",span:2},n.version||"--"))):V.default.createElement("p",{style:{color:"#999"}},"未找到方案或请从列表进入")))}}])}(n.Component))||Xe,et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAAIdJREFUeAHt090JhiAYhmH9VhLn+dqgmqCaoNqg9tGZ7CXwJCT0IAm6rxNRHn3xTykAAAAAAL5Jl4S990MIoTsnar0ZY/ra2avsDUiRORaJpD9Za8da2ZSfyiSLNtcxOa22ZjYlewNvVXIDa2J4r5lNKfrEzrlFmn8sfPdOn8oCAAAAAAC8wwHqgWkEZK/sPgAAAABJRU5ErkJggg==",tt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAArdJREFUeAHVmrFv00AUxl9DHFGQmgEhIqEOZOhAJJShDCQbDCxIrLDDv1ZYYWeLyJCILGSpBJVggSESiWgjYoa+L70Xna2LfbFd++4nfWp8OdX33b3zne9lj4qhzmqxmqx91gErUBIuWEvWgjVnzdR1LvYoO2h0m3VHKQswckY5zGQxIA1/QNEezstP1intaGRXA0dUfMPjnCpZYWsAcf2YrmK7DDAKn8liNG5QOoesY9YtKo9A3fcv6zypYpoBhEyH7IwWDe55X32eJVXaxpFS1cgTzmhim4F7rEfkDjAha0iEmqEyJmyX3OMhXbUtgslAj673MZkVtOk4XhgPIcR8i9zlpvq7mQ/6CGB4XJi0aWAhrcuFbsCHxgOEUlsuxAB6/5D8YTMKYiDrbrIqNqMgBtrkH+tOhwF5AfENGKjXyL/w0WnBQJP8pQkD1uEzGAxer1ar99BkMnlTRd0Y+3iheUoWe3384263+1IvGw6HJ71e711ZdQ0sYeCFRUVC7wRBcFsvC8PwvNFovCqrroGwRn4TWBsYj8cf4mXT6fRTmXVNIISek+X2meP1bafTeYbPo9HoY7/fPym7rsmA1SR2lCVCaEH+cgEDuc8nK2QBA3PylzkM/CZ/mcFASAkHRw6DyFnKOuCjARzLb15ocBGSX6w7XQyg8WfkD8glrJ+e+lbCp1HY5A90A76MQiSLUzN86fLKjERhJHtj2o2OyM1QQpuG8ULT8fp/1j9y74z0C+tPvHBbfkDCyJUTC4TND9MXSRkaWdyqNpGYtUzLfcEERuMulZ8nQ8x/pZQn4y5p1idU3osP9jljKijNCjCxpSeuM6TQ699YE3XPVLL81EASIUUex8si+p0sGy7k+bEHjGA0cLKd9XB4prRzw4U8BnTEDM5ZD9S1Pl9CJTwQENeI8V+UsdE6l9ZV6UBPSayUAAAAAElFTkSuQmCC",at="CreateSchemeModal-module_overlay__29e36",nt="CreateSchemeModal-module_modal__2j8FN",rt="CreateSchemeModal-module_header__3LqsJ",ot="CreateSchemeModal-module_title__3s-pp",it="CreateSchemeModal-module_closeBtn__1wg29",lt="CreateSchemeModal-module_body__2nKyz",st="CreateSchemeModal-module_bodyLeft__fYgvS",dt="CreateSchemeModal-module_bodyRight__3qPRH",ct="CreateSchemeModal-module_formRow__2htcu",ut="CreateSchemeModal-module_formRowLabel__1R5UU",mt="CreateSchemeModal-module_formRowField__208oe",pt="CreateSchemeModal-module_input__3XL1u",ft="CreateSchemeModal-module_inputError__2V-Ie",ht="CreateSchemeModal-module_error__3psxO",_t="CreateSchemeModal-module_coverBox__VPN9Z",gt="CreateSchemeModal-module_coverPreview__hVXln",vt="CreateSchemeModal-module_coverActions__1FZ_f",yt="CreateSchemeModal-module_fileInput__2rVa1",xt="CreateSchemeModal-module_section__3til5",bt="CreateSchemeModal-module_sectionTitle__3mHMd",Mt="CreateSchemeModal-module_floorPlanRow__1C7ta",wt="CreateSchemeModal-module_floorPlanCard__23xRU",St="CreateSchemeModal-module_floorPlanCardSelected__wbMHL",Tt="CreateSchemeModal-module_floorPlanImage__8WPNr",Et="CreateSchemeModal-module_floorPlanLabel__3t6Jp",Ct="CreateSchemeModal-module_inlineSuffix__ssRnk",Nt="CreateSchemeModal-module_suffix__2jYNZ",Lt="CreateSchemeModal-module_styleSelectWrap__2MVLV",kt="CreateSchemeModal-module_styleSelectTrigger__2nvF_",It="CreateSchemeModal-module_styleSelectText__1-Jrv",Pt="CreateSchemeModal-module_styleSelectArrow__3IOFw",At="CreateSchemeModal-module_styleDropdown__ixKq6",Rt="CreateSchemeModal-module_styleDropdownItem__1zhxd",Dt="CreateSchemeModal-module_styleDropdownItemActive__Z0zUd",zt="CreateSchemeModal-module_styleDesc__2oYKy",Ut="CreateSchemeModal-module_footer__3pbjX";je("@keyframes CreateSchemeModal-module_overlayIn__hjn6T{0%{opacity:0}to{opacity:1}}@keyframes CreateSchemeModal-module_modalIn__3sIkr{0%{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.CreateSchemeModal-module_overlay__29e36{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:CreateSchemeModal-module_overlayIn__hjn6T .25s ease-out forwards}.CreateSchemeModal-module_modal__2j8FN{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:1000px;border-radius:12px;overflow:visible;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:90vh;animation:CreateSchemeModal-module_modalIn__3sIkr .28s cubic-bezier(.16,1,.3,1) forwards}.CreateSchemeModal-module_header__3LqsJ{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.CreateSchemeModal-module_title__3s-pp{font-size:16px;font-weight:600;color:#000f2c}.CreateSchemeModal-module_closeBtn__1wg29{padding:4px;border:none;background:transparent;color:rgba(0,0,0,.45);cursor:pointer;font-size:16px;line-height:1}.CreateSchemeModal-module_closeBtn__1wg29:hover{color:rgba(0,0,0,.65)}.CreateSchemeModal-module_body__2nKyz{padding:24px;display:flex;align-items:flex-start;gap:32px;overflow-y:auto;flex:1}.CreateSchemeModal-module_bodyLeft__fYgvS{flex:1;min-width:0}.CreateSchemeModal-module_bodyRight__3qPRH{flex:0 0 632px;min-width:0}.CreateSchemeModal-module_formRow__2htcu{margin-bottom:16px;display:flex;align-items:flex-start}.CreateSchemeModal-module_formRowLabel__1R5UU{flex:0 0 70px;padding-right:0;line-height:40px;text-align:left;font-size:14px;color:rgba(0,15,44,.7);white-space:nowrap}.CreateSchemeModal-module_formRowField__208oe{flex:1;min-width:0;position:relative}.CreateSchemeModal-module_input__3XL1u{width:200px;height:40px;background:#f5f6f8!important;border-radius:8px;border:1px solid transparent;font-size:14px;padding:0 12px;outline:none;box-sizing:border-box}.CreateSchemeModal-module_input__3XL1u:focus,.CreateSchemeModal-module_input__3XL1u:hover{border-color:#d9d9d9;box-shadow:none}.CreateSchemeModal-module_inputError__2V-Ie{border-color:#ff4d4f!important}.CreateSchemeModal-module_error__3psxO{display:block;color:#ff4d4f;font-size:12px;margin-top:4px;line-height:1.2}.CreateSchemeModal-module_coverBox__VPN9Z{margin-bottom:0}.CreateSchemeModal-module_coverPreview__hVXln{width:200px;height:200px;background-size:cover;background-repeat:no-repeat;background-position:50%;background-color:#f5f5f5;border-radius:10px;margin-bottom:12px}.CreateSchemeModal-module_coverActions__1FZ_f{display:flex;gap:12px}.CreateSchemeModal-module_fileInput__2rVa1{position:absolute;visibility:hidden;width:0;height:0;opacity:0;pointer-events:none}.CreateSchemeModal-module_section__3til5{margin-bottom:24px}.CreateSchemeModal-module_section__3til5:last-child{margin-bottom:0}.CreateSchemeModal-module_sectionTitle__3mHMd{font-size:14px;font-weight:600;color:#000f2c;margin-bottom:12px}.CreateSchemeModal-module_floorPlanRow__1C7ta{display:flex;gap:12px;flex-wrap:nowrap}.CreateSchemeModal-module_floorPlanCard__23xRU,.CreateSchemeModal-module_floorPlanCardSelected__wbMHL{flex:1;display:flex;flex-direction:column;align-items:stretch;padding:0;border-radius:10px;border:1px solid transparent;background:#fff;overflow:hidden;cursor:pointer;transition:all .2s;min-width:200px}.CreateSchemeModal-module_floorPlanCard__23xRU:hover{border-color:#1890ff}.CreateSchemeModal-module_floorPlanCardSelected__wbMHL{border-color:#1c2635;background:#fff}.CreateSchemeModal-module_floorPlanImage__8WPNr{width:200px;height:200px;flex-shrink:0;align-self:center;background-size:cover;background-position:50%;background-color:#fafafa;border-radius:10px 10px 0 0}.CreateSchemeModal-module_floorPlanLabel__3t6Jp{padding:10px 8px;font-size:13px;color:#000f2c;text-align:center;line-height:1.3}.CreateSchemeModal-module_floorPlanCardSelected__wbMHL .CreateSchemeModal-module_floorPlanLabel__3t6Jp{color:#1c2635;font-weight:500}.CreateSchemeModal-module_inlineSuffix__ssRnk{display:flex;align-items:center}.CreateSchemeModal-module_inlineSuffix__ssRnk .CreateSchemeModal-module_input__3XL1u{width:200px;min-width:0}.CreateSchemeModal-module_suffix__2jYNZ{flex-shrink:0;padding:0 8px;font-size:14px;color:#616778;white-space:nowrap}.CreateSchemeModal-module_styleSelectWrap__2MVLV{display:inline-block;min-width:200px}.CreateSchemeModal-module_styleSelectTrigger__2nvF_{display:flex;align-items:center;gap:8px;padding:0 12px;width:200px;height:40px;background:#f5f6f8;border:1px solid transparent;border-radius:8px;cursor:pointer;font-size:14px;color:rgba(0,0,0,.85)}.CreateSchemeModal-module_styleSelectTrigger__2nvF_:hover{border-color:#d9d9d9}.CreateSchemeModal-module_styleSelectText__1-Jrv{flex:1;text-align:left}.CreateSchemeModal-module_styleSelectArrow__3IOFw{flex-shrink:0}.CreateSchemeModal-module_styleDropdown__ixKq6{background:#fff;border:1px solid #d9d9d9;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);z-index:100;overflow:hidden}.CreateSchemeModal-module_styleDropdownItem__1zhxd{display:block;width:100%;padding:10px 12px;border:none;background:transparent;text-align:left;font-size:14px;color:rgba(0,0,0,.85);cursor:pointer}.CreateSchemeModal-module_styleDropdownItem__1zhxd:hover{background:#f5f5f5}.CreateSchemeModal-module_styleDropdownItemActive__Z0zUd{display:block;width:100%;padding:10px 12px;border:none;background:#e6f7ff;text-align:left;font-size:14px;color:#1890ff;cursor:pointer}.CreateSchemeModal-module_styleDesc__2oYKy{display:block;margin-top:8px;font-size:12px;color:#b8860b;line-height:1.4}.CreateSchemeModal-module_footer__3pbjX{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;flex-shrink:0}.CreateSchemeModal-module_deepenModal__1Skfu{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:420px;background:#fff;border-radius:12px;z-index:10000;overflow:hidden}.CreateSchemeModal-module_deepenModalHeader__1xU0g{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f0f0}.CreateSchemeModal-module_deepenModalTitle__3xtEm{font-size:16px;font-weight:600;color:#000f2c}.CreateSchemeModal-module_deepenModalBody__RsMHn{padding:40px 20px}.CreateSchemeModal-module_deepenCheckContent__1fY3L{display:flex;flex-direction:column;align-items:center;text-align:center}.CreateSchemeModal-module_deepenSpinner__2s9qn{width:48px;height:48px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:CreateSchemeModal-module_spin__TvN79 1s linear infinite;margin-bottom:16px}@keyframes CreateSchemeModal-module_spin__TvN79{to{transform:rotate(1turn)}}.CreateSchemeModal-module_deepenCheckText__C2X8p{font-size:15px;color:#000f2c;margin:0 0 8px;font-weight:500}.CreateSchemeModal-module_deepenCheckSubtext__35T0Z{font-size:13px;color:rgba(0,0,0,.45);margin:0 0 20px}.CreateSchemeModal-module_deepenSuccessIcon__2c-1u,.CreateSchemeModal-module_deepenWarningIcon__aH9fL{margin-bottom:16px}.CreateSchemeModal-module_downloadBtn__1gZm1{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 24px;height:40px;background:#1890ff;color:#fff;border-radius:8px;font-size:14px;font-weight:500;text-decoration:none;cursor:pointer;transition:background .2s}.CreateSchemeModal-module_downloadBtn__1gZm1:hover{background:#40a9ff;color:#fff}");var Bt=window.location.host,Gt=[{BASEURL:"".concat("https://3d.onewo.com","/api"),REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"test",WEBSOCKETURL:"wss://3d.onewo.com",MESERVER:"https://me.onewo.com",PRODUCTID:150,PRODUCTKEY:"P150_SZHSCPT",PLANE:"https://3d-ms-editor.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDF4XoRQc5O6aIXLzij96Yu8OEcLUucE+lMva1ywXvKVWiGlTVPiL4y6Uvy+fhNUnX9D8SbAGV8blI91j/babARt++2+CRCD9qV9b1ZUsLTbQ91FGwbg1RtMty2TqU6JEPrXdqSfwd+wGWbQsxzsnrohLEUozr3Tfr5INgn3dFmSwIDAQAB",PREVIEW:"https://ops.onewo.com"},{BASEURL:"http://3d-fat.onewo.com/api",REDIRECTURL:"http://3d-login-fat.onewo.com",SERVERS:"fat",WEBSOCKETURL:"ws://3d-fat.onewo.com",MESERVER:"http://me-fat.onewo.com",PRODUCTID:152,PRODUCTKEY:"P152_SZHSCPT",PLANE:"http://3d-ms-editor-fat.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCHjVAc2xb1z8sNKNhbBZFp1XVG//vlJIsEZfa+C8sUez7x92r2dNWt7mjXoQ7qrzXfGhF+vVqHVfYswbiHiGz26gl7hSNzOi/TaBoHOXtmqNEtyuno3otq5+RBIiml/Tp+ABTO2VQhjzDNkYQDM7suedMjnIZ6NAX8Aag/fxpuoQIDAQAB",PREVIEW:"http://3d-ms-render-fat.onewo.com"},{BASEURL:"https://3d.onewo.com/api",REDIRECTURL:"https://3d-login.onewo.com",SERVERS:"prod",WEBSOCKETURL:"wss://3d.onewo.com",MESERVER:"https://me.onewo.com",PRODUCTID:10016,PRODUCTKEY:"P10016_SZHSCPT",PLANE:"https://3d-ms-editor.onewo.com",AUTHCODE:"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCLhOF8GIgiysc4lLw8SmeAtyaoMsSp1dsKRvCBwVy2gLI1slVdEXPb7oKhb2lGMSDFRhsNWhnJXbH7bwfGLdzQYjoXfyYiFiusgTBsLvn6wiVEa4qSU9ZMIGijfOGrP9aoZvgEPCWaBB0pNRvtVHsMA1tPy6icZ5iTPqxWmKCESwIDAQAB",PREVIEW:"https://ops.onewo.com"}];function Ft(){switch(Bt){case"3d.onewo.com":return Gt[2];case"3d-fat.onewo.com":return Gt[1];default:return Gt[0]}}var Ot=function(e){var t=RegExp("(^| )".concat(e,"=([^;]*)(;|$)")),a=document.cookie.match(t);return a?decodeURIComponent(a[2]):null},Ht=function(e){try{e=JSON.stringify(e)}catch(t){console.log("JSON.stringify Error"),e=""}return e},Vt=function(e){try{e=JSON.parse(e)}catch(t){console.log("JSON.parse Error"),e=""}return e},jt=Ot("accesstoken"),Wt=function(e){e=e||12;for(var t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678",a="",n=0;e>n;n++)a+=t.charAt(Math.floor(48*Math.random()));return a}(12),qt=(new Date).getTime(),Kt=""+se.default(Ot("username")||""),Xt=""+de.default(Wt+Kt+qt+jt),Yt=le.default.create({baseURL:Ft().BASEURL});function Zt(e){if(null==e)return e;if("undefined"!=typeof Blob&&e instanceof Blob)return e;if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return e;if("object"===He(e)){if(Array.isArray(e))return e.map(function(e){return Zt(e)});var t={};for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var n=e[a];t[a]=(/^(id|ids?)$/i.test(a)||/[iI]d$/.test(a)||/_id$/i.test(a))&&"number"==typeof n&&!Number.isSafeInteger(n)?n+"":Zt(n)}return t}return e}function Qt(){return Jt.apply(this,arguments)}function Jt(){return Jt=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/brandList",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Jt.apply(this,arguments)}function $t(){return ea.apply(this,arguments)}function ea(){return ea=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/selfSchemePage",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ea.apply(this,arguments)}function ta(){return aa.apply(this,arguments)}function aa(){return aa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/save",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),aa.apply(this,arguments)}function na(){return ra.apply(this,arguments)}function ra(){return ra=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/deleteScheme",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ra.apply(this,arguments)}function oa(){return ia.apply(this,arguments)}function ia(){return ia=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/schemeInfo",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ia.apply(this,arguments)}function la(){return sa.apply(this,arguments)}function sa(){return sa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/scheme/versionList",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),sa.apply(this,arguments)}function da(){return ca.apply(this,arguments)}function ca(){return ca=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt(Re({url:"/vbim-file-server/file/uploadFile_mult",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}},t.length>1&&void 0!==t[1]?t[1]:{})))},e)})),ca.apply(this,arguments)}function ua(){return ma.apply(this,arguments)}function ma(){return ma=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt(Re({url:"/vbim-file-server/file/batchUploadFile",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}},t.length>1&&void 0!==t[1]?t[1]:{})))},e)})),ma.apply(this,arguments)}function pa(){return fa.apply(this,arguments)}function fa(){return fa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/classifyList",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),fa.apply(this,arguments)}function ha(){return _a.apply(this,arguments)}function _a(){return _a=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/materialPage",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),_a.apply(this,arguments)}function ga(){return va.apply(this,arguments)}function va(){return va=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/saveMaterial",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),va.apply(this,arguments)}function ya(){return xa.apply(this,arguments)}function xa(){return xa=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/deleteMaterial",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),xa.apply(this,arguments)}Yt.defaults.transformResponse=[function(e){if("string"!=typeof e)return e;var t=e.replace(/"((?:[A-Za-z0-9_]*[iI]d|id))":(\d{16,})/g,'"$1":"$2"');try{return JSON.parse(t)}catch(t){return e}}],Yt.interceptors.request.use(function(e){e.vbimRequestSource="3d-decorate-platform";var t=/^(?:https?:)?\/\//i.test(e.url||"")?e.url:"".concat(e.baseURL||"").concat(e.url||""),a=t.match(/^(?:https?:)?\/\/([^/:?#]+)/i);if(a&&/(^|\.)vanke\.com$/i.test(a[1])&&void 0!==console&&console.warn){var n=t.slice(a[0].length).split(/[?#]/)[0]||"/";console.warn("[VBIM_AXIOS_DOMAIN_TRACE]",{source:e.vbimRequestSource,method:e.method,host:a[1],path:n})}var r=JSON.parse(sessionStorage.getItem("projectData"));return r&&r.projectId&&(e.headers.projectId=r.projectId),e.headers["Access-Control-Allow-Origin"]="*",e.headers["Cache-Control"]="no-cache",e.headers.Authorization=jt,e.headers.echostr=Wt,e.headers.nonce=Kt,e.headers.signature=Xt,e.headers.timestamp=qt,e},function(e){return Promise.reject(e)}),Yt.interceptors.response.use(function(e){if(401===e.data.code||1005===e.data.code||1007===e.data.code||1008===e.data.code||1009===e.data.code){var t=window.location.href,a=encodeURIComponent(t);window.location.href="".concat(Ft().REDIRECTURL,"?redirect_url=").concat(a)}return e.data&&(e.data=Zt(e.data)),e},function(e){return Promise.reject(e)});var ba=["https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/54cabb0c2a9fbdc136947aa728b4fbbc.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/ef5e43819f68f3683b6a894582e585cf.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/43943379a720cb460e50d746952db2db.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/8ca744bd91a2aa2c90b5516a8d5a1840.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/16caa8dedde261c7e14431768f15b250.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/01572825cb837ac584bad870ab5abdff.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/992a1c24ad73f382bcd3a6a7b3c188e4.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/ea3d8ad34af341b3e450c58712f97390.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/e0cd84de458bb6bcc8202fa37c74af8b.png","https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/056390444419e4aaece058db2d33674a.png"],Ma=function(){return ba[Math.floor(Math.random()*ba.length)]},wa=[{id:"79",houseType:1,label:"79m² | 两室一厅一卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/6b75d4a8ba8dc32d8b1baa85c22a3ef1.png"},{id:"116",houseType:2,label:"116m² | 三室一厅两卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/2fd28d55d756bc712865c551bdc1540c.png"},{id:"160",houseType:3,label:"160m² | 四室两厅两卫",image:"https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/65537d534151c3e9c50ebf7c15fe9503.png"}],Sa=[{value:"现代简约",label:"现代简约",desc:"干净、少造型、重线条,配色中性,好打理、受众最广。"},{value:"轻奢风",label:"轻奢风",desc:"现代 + 精致金属、石材、玻璃,高级感强,适合多数户型。"},{value:"北欧风",label:"北欧风",desc:"浅木色、大白墙、温馨明亮,小户型显大。"},{value:"新中式",label:"新中式",desc:"东方意境 + 现代简化,沉稳大气,不老旧。"},{value:"日式原木风",label:"日式原木风",desc:"原木、收纳强、极简温馨,适合喜欢安静舒适的家庭。"}],Ta=function(e){var t=e.visible,a=e.onCancel,r=e.onOk,o=Ge(n.useState("116"),2),i=o[0],l=o[1],s=Ge(n.useState(Ma),2),d=s[0],c=s[1],u=Ge(n.useState("现代简约"),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=n.useRef(null),v=n.useRef(null),y=Ge(n.useState({top:0,left:0,width:200}),2),x=y[0],b=y[1],M=Ge(n.useState(!1),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState(""),2),k=L[0],I=L[1],P=Ge(n.useState(""),2),A=P[0],R=P[1],D=Ge(n.useState(""),2),z=D[0],U=D[1],B=Ge(n.useState({}),2),G=B[0],F=B[1],H=Ge(n.useState({}),2),j=H[0],W=H[1];n.useEffect(function(){t&&(l("116"),c(Ma()),p("现代简约"),_(!1),N(""),I(""),R(""),U(""),F({}),W({}))},[t]),n.useEffect(function(){if(t){var e=function(e){e.target.closest(".".concat(Lt))||_(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[t]);var q=function(){var e={};return C.trim()||(e.title="请输入方案名称"),k.trim()||(e.customer="请输入姓名"),A.trim()||(e.city="请输入城市"),F(e),0===Object.keys(e).length},K=function(e){var t;if(console.log("[Deepen] handleOk called, action:",e),W({title:!0,customer:!0,city:!0}),q()){console.log("[Deepen] validate passed");var a={title:C.trim(),customer:k.trim(),city:A.trim(),style:m,budget:z,cover:d,houseType:(null===(t=wa.find(function(e){return e.id===i}))||void 0===t?void 0:t.houseType)||2,versionType:2,saveAndDeepen:"saveAndDeepen"===e};"saveAndDeepen"===e?(console.log("[Deepen] saveAndDeepen path"),r&&r(Re(Re({},a),{},{saveAndDeepen:!0}))):r&&r(a)}else console.log("[Deepen] validate failed")},X=function(e){W(function(t){return Re(Re({},t),{},Ne({},e,!0))}),q()},Z=function(){var e=we(ze().m(function e(t){var a,n,r,o,i,l,s,d,u,m,p,f,h;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if((r=null==t||null===(a=t.target)||void 0===a||null===(n=a.files)||void 0===n?void 0:n[0])&&r.type.startsWith("image/")){e.n=1;break}return e.a(2);case 1:return(o=new FormData).append("file",r),T(!0),e.p=2,e.n=3,da(o);case 3:if((p=e.v)&&p.data){e.n=4;break}return O.default.error("上传失败:响应为空"),e.a(2);case 4:h=(null==(f=p.data)||null===(i=f.value)||void 0===i?void 0:i.fileAccessUrl)||(null==f||null===(l=f.value)||void 0===l?void 0:l.compressImageUrl)||(null==f||null===(s=f.value)||void 0===s?void 0:s.fileUrl)||(null==f||null===(d=f.value)||void 0===d?void 0:d.url)||(null==f||null===(u=f.data)||void 0===u?void 0:u.fileUrl)||(null==f||null===(m=f.data)||void 0===m?void 0:m.url)||(null==f?void 0:f.fileUrl)||(null==f?void 0:f.url),200===(null==f?void 0:f.code)&&h?(c(h),O.default.success("上传成功")):O.default.error((null==f?void 0:f.message)||"上传失败"),e.n=6;break;case 5:e.p=5,console.error("上传失败",e.v),O.default.error("上传失败");case 6:return e.p=6,T(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(t){return e.apply(this,arguments)}}(),Q=Sa.find(function(e){return e.value===m})||Sa[0];return t?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:at,onClick:a}),V.default.createElement("div",{className:nt},V.default.createElement("div",{className:rt},V.default.createElement("span",{className:ot},"创建方案基本信息"),V.default.createElement("button",{type:"button",className:it,onClick:a,"aria-label":"关闭"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:lt},V.default.createElement("div",{className:st},V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"方案名称"),V.default.createElement("div",{className:mt},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.title&&G.title?ft:""),placeholder:"请输入方案名称",value:C,onChange:function(e){N(e.target.value),j.title&&q()},onBlur:function(){return X("title")}}),j.title&&G.title&&V.default.createElement("span",{className:ht},G.title))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"封面图"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:_t},V.default.createElement("div",{className:gt,style:{backgroundImage:"url(".concat(d,")")}}),V.default.createElement("div",{className:vt},V.default.createElement("input",{ref:g,type:"file",accept:"image/*",className:yt,onChange:Z}),V.default.createElement(Y.default,{size:"small",icon:V.default.createElement(S.UploadOutlined,null),loading:w,onClick:function(){var e;return null===(e=g.current)||void 0===e?void 0:e.click()}},"自行替换"),V.default.createElement(Y.default,{size:"small",onClick:function(){c(ba[Math.floor(Math.random()*ba.length)])}},"换一张")))))),V.default.createElement("div",{className:dt},V.default.createElement("div",{className:xt},V.default.createElement("div",{className:bt},"选择基础户型"),V.default.createElement("div",{className:Mt},wa.map(function(e){return V.default.createElement("button",{key:e.id,type:"button",className:i===e.id?St:wt,onClick:function(){return l(e.id)}},V.default.createElement("div",{className:Tt,style:{backgroundImage:e.image?"url(".concat(e.image,")"):void 0}}),V.default.createElement("span",{className:Et},e.label))}))),V.default.createElement("div",{className:xt},V.default.createElement("div",{className:bt},"客户基本信息"),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"客户姓名"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Ct},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.customer&&G.customer?ft:""),placeholder:"请输入姓名",value:k,onChange:function(e){I(e.target.value),j.customer&&q()},onBlur:function(){return X("customer")}}),V.default.createElement("span",{className:Nt},"先生/女士")),j.customer&&G.customer&&V.default.createElement("span",{className:ht},G.customer))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"城市"),V.default.createElement("div",{className:mt},V.default.createElement("input",{type:"text",className:"".concat(pt," ").concat(j.city&&G.city?ft:""),placeholder:"请输入你的城市",value:A,onChange:function(e){R(e.target.value),j.city&&q()},onBlur:function(){return X("city")}}),j.city&&G.city&&V.default.createElement("span",{className:ht},G.city))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"方案风格"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Lt},V.default.createElement("button",{ref:v,type:"button",className:kt,onClick:function(){if(v.current){var e=v.current.getBoundingClientRect();b({top:e.bottom+4,left:e.left,width:e.width})}_(function(e){return!e})}},V.default.createElement("span",{className:It},m),V.default.createElement("span",{className:Pt},V.default.createElement("svg",{width:"10",height:"6",viewBox:"0 0 10 6",fill:"none"},V.default.createElement("path",{d:"M1 1L5 5L9 1",stroke:"#616778",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),h&&V.default.createElement("div",{className:At,style:{position:"fixed",width:x.width}},Sa.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",className:m===e.value?Dt:Rt,onClick:function(){p(e.value),_(!1)}},e.label)})),V.default.createElement("span",{className:zt},Q.desc)))),V.default.createElement("div",{className:ct},V.default.createElement("label",{className:ut},"装修预算"),V.default.createElement("div",{className:mt},V.default.createElement("div",{className:Ct},V.default.createElement("input",{type:"number",className:pt,placeholder:"请输入你的预算",value:z,onChange:function(e){return U(e.target.value)},min:0}),V.default.createElement("span",{className:Nt},"元"))))))),V.default.createElement("div",{className:Ut},V.default.createElement(Y.default,{onClick:a},"取消"),V.default.createElement(Y.default,{onClick:function(){return K("save")}},"保存"),V.default.createElement(Y.default,{type:"primary",onClick:function(){return K("saveAndDeepen")}},"保存并深化")))):null},Ea="HistoryVersionModal-module_overlay__2QPpm",Ca="HistoryVersionModal-module_modal__31a1W",Na="HistoryVersionModal-module_header__3KHmi",La="HistoryVersionModal-module_titleRow__2KiP7",ka="HistoryVersionModal-module_title__3bdlR",Ia="HistoryVersionModal-module_subtitle__1QIfk",Pa="HistoryVersionModal-module_closeBtn__2PxAS",Aa="HistoryVersionModal-module_tabs__R9l_g",Ra="HistoryVersionModal-module_tabsInner__1EMNE",Da="HistoryVersionModal-module_tab__2EQlu",za="HistoryVersionModal-module_tabActive__jncIN",Ua="HistoryVersionModal-module_body__22n__",Ba="HistoryVersionModal-module_listWrap__3JPBb",Ga="HistoryVersionModal-module_loadingWrap__2-mqW",Fa="HistoryVersionModal-module_empty__75bmp",Oa="HistoryVersionModal-module_radioGroup__3P3iu",Ha="HistoryVersionModal-module_versionItem__3f3B6",Va="HistoryVersionModal-module_versionItemActive__yKzxo",ja="HistoryVersionModal-module_radio__3Gvtf",Wa="HistoryVersionModal-module_versionText__3o7Er",qa="HistoryVersionModal-module_tagAuto__2hTT_",Ka="HistoryVersionModal-module_tagManual__2Zoyr",Xa="HistoryVersionModal-module_footer__3x3B0";je("@keyframes HistoryVersionModal-module_overlayIn__12cZH{0%{opacity:0}to{opacity:1}}@keyframes HistoryVersionModal-module_modalIn__11WM4{0%{opacity:0;transform:translate(-50%,-50%) scale(.94)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}.HistoryVersionModal-module_overlay__2QPpm{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:HistoryVersionModal-module_overlayIn__12cZH .25s ease-out forwards}.HistoryVersionModal-module_modal__31a1W{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:366px;border-radius:12px;overflow:hidden;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:90vh;animation:HistoryVersionModal-module_modalIn__11WM4 .28s cubic-bezier(.16,1,.3,1) forwards}.HistoryVersionModal-module_header__3KHmi{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.HistoryVersionModal-module_titleRow__2KiP7{display:flex;align-items:baseline;gap:8px}.HistoryVersionModal-module_title__3bdlR{font-size:16px;font-weight:600;color:#000f2c}.HistoryVersionModal-module_subtitle__1QIfk{font-size:12px;color:rgba(0,0,0,.45)}.HistoryVersionModal-module_closeBtn__2PxAS{padding:4px;border:none;background:transparent;color:rgba(0,0,0,.45);cursor:pointer;font-size:16px;line-height:1}.HistoryVersionModal-module_closeBtn__2PxAS:hover{color:rgba(0,0,0,.65)}.HistoryVersionModal-module_tabs__R9l_g{display:flex;padding:12px 24px;border-bottom:1px solid #f0f0f0;flex-shrink:0}.HistoryVersionModal-module_tabsInner__1EMNE{background:#f5f5f5;border-radius:6px;padding:4px}.HistoryVersionModal-module_tab__2EQlu,.HistoryVersionModal-module_tabActive__jncIN{flex:1;padding:5px 12px;font-size:14px;border:none;cursor:pointer;border-radius:3px;transition:all .2s;font-weight:400}.HistoryVersionModal-module_tab__2EQlu{background:transparent;color:#4a4a4a;border-right:1px solid #e8e8e8}.HistoryVersionModal-module_tab__2EQlu:last-child{border-right:none}.HistoryVersionModal-module_tab__2EQlu:hover{color:#1890ff}.HistoryVersionModal-module_tabActive__jncIN{background:#fff;color:#1890ff;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.06);border-right:none}.HistoryVersionModal-module_body__22n__{height:652px;display:flex;flex-direction:column;overflow:hidden}.HistoryVersionModal-module_listWrap__3JPBb{flex:1;min-height:0;padding:16px 24px;overflow-y:auto}.HistoryVersionModal-module_loadingWrap__2-mqW{display:flex;justify-content:center;align-items:center;min-height:180px}.HistoryVersionModal-module_empty__75bmp{padding:40px 0}.HistoryVersionModal-module_radioGroup__3P3iu{display:flex;flex-direction:column;gap:8px;width:100%}.HistoryVersionModal-module_radioGroup__3P3iu .ant-radio-group{display:flex;flex-direction:column}.HistoryVersionModal-module_versionItem__3f3B6,.HistoryVersionModal-module_versionItemActive__yKzxo{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f5f5f5;border-radius:8px;cursor:pointer;transition:background .2s}.HistoryVersionModal-module_versionItem__3f3B6:hover{background:#eee}.HistoryVersionModal-module_versionItemActive__yKzxo{background:#e6f4ff}.HistoryVersionModal-module_radio__3Gvtf{flex-shrink:0}.HistoryVersionModal-module_radio__3Gvtf .ant-radio-inner{width:16px;height:16px}.HistoryVersionModal-module_versionText__3o7Er{flex:1;font-size:14px;color:#000f2c;min-width:0}.HistoryVersionModal-module_tagAuto__2hTT_,.HistoryVersionModal-module_tagManual__2Zoyr{flex-shrink:0;padding:2px 10px;font-size:12px;border-radius:4px;border:1px solid}.HistoryVersionModal-module_tagAuto__2hTT_{color:#1890ff;border-color:#1890ff}.HistoryVersionModal-module_tagManual__2Zoyr{color:#52c41a;border-color:#52c41a}.HistoryVersionModal-module_footer__3x3B0{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:16px 24px;border-top:1px solid #f0f0f0;background:#fff;flex-shrink:0}");var Ya,Za=[{key:"today",label:"今天"},{key:"yesterday",label:"昨天"},{key:"earlier",label:"更早"}],Qa=a.connect(function(e){return{versionList:e.decorate.versionList,loading:e.loading.effects["decorate/fetchVersionList"]}})(function(e){var t=e.visible,a=e.schemeId,r=e.onCancel,o=e.onOpen,i=e.versionList,l=e.loading,s=e.dispatch,d=Ge(n.useState("today"),2),c=d[0],u=d[1],m=Ge(n.useState(null),2),p=m[0],f=m[1];n.useEffect(function(){t&&a&&s({type:"decorate/fetchVersionList",payload:{schemeId:a,condition:c}})},[t,a,c,s]),n.useEffect(function(){t&&(u("today"),f(null))},[t]),n.useEffect(function(){var e;(null==i?void 0:i.length)&&!p?f(null===(e=i[0])||void 0===e?void 0:e.id):(null==i?void 0:i.length)||f(null)},[i,p]);return t?V.default.createElement("div",{className:Ea},V.default.createElement("div",{className:Ca},V.default.createElement("div",{className:Na},V.default.createElement("div",{className:La},V.default.createElement("span",{className:ka},"历史版本"),V.default.createElement("span",{className:Ia},"每5分钟自动保存")),V.default.createElement("button",{type:"button",className:Pa,onClick:r,"aria-label":"关闭"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Ua},V.default.createElement("div",{className:Aa},V.default.createElement("div",{className:Ra},Za.map(function(e){return V.default.createElement("button",{key:e.key,type:"button",className:c===e.key?za:Da,onClick:function(){return u(e.key),void f(null)}},e.label)}))),V.default.createElement("div",{className:Ba},l?V.default.createElement("div",{className:Ga},V.default.createElement(te.default,{tip:"加载中..."})):(null==i?void 0:i.length)?V.default.createElement(ce.default.Group,{value:p,onChange:function(e){return f(e.target.value)},className:Oa},i.map(function(e){return V.default.createElement("div",{key:e.id,className:p===e.id?Va:Ha},V.default.createElement(ce.default,{value:e.id,className:ja}),V.default.createElement("span",{className:Wa},e.version),V.default.createElement("span",{className:1===e.versionType?qa:Ka},1===e.versionType?"自动":"手动"))})):V.default.createElement(re.default,{description:"暂无历史版本",className:Fa}))),V.default.createElement("div",{className:Xa},V.default.createElement(Y.default,{onClick:r},"取消"),V.default.createElement(Y.default,{type:"primary",onClick:function(){var e=null==i?void 0:i.find(function(e){return e.id===p});e&&(o&&o({schemeId:a,version:e.version,id:e.id}),r&&r())},disabled:!p||!(null==i?void 0:i.length)},"打开")))):null}),Ja="decorateList-module_page__1YdY7",$a="decorateList-module_toolbar__342m2",en="decorateList-module_pageTitle__mOH7H",tn="decorateList-module_listWrapper__3KM5i",an="decorateList-module_toolbarRight__3THOm",nn="decorateList-module_btnNewScheme__3rAsP",rn="decorateList-module_loadingWrap__1qOpS",on="decorateList-module_empty__TYalu",ln="decorateList-module_pagination__2--8-",sn="decorateList-module_schemeCard___LbgW",dn="decorateList-module_coverWrap__3Opei",cn="decorateList-module_cover__1miEK",un="decorateList-module_cardCol__3r2HC",mn="decorateList-module_cardTitle__1XOOv",pn="decorateList-module_titleTooltip__1729f",fn="decorateList-module_meta__2nWBq",hn="decorateList-module_version__2r20D",_n="decorateList-module_cardActions__21ujs",gn="decorateList-module_btnDetail__s9Wej",vn="decorateList-module_btnMore__2zZKw",yn="decorateList-module_btnMoreIcon__2O7fD",xn="decorateList-module_moreDropdown__lRODY",bn="decorateList-module_moreDropdownItem__1n9uF",Mn="decorateList-module_overlay__aOZvH",wn="decorateList-module_deepenModal__RL9Ad",Sn="decorateList-module_deepenModalHeader__S3OGA",Tn="decorateList-module_deepenModalTitle__3Hhkj",En="decorateList-module_deepenModalBody__5rDbW",Cn="decorateList-module_deepenCheckContent__2ILP1",Nn="decorateList-module_deepenSpinner__18Uj7",Ln="decorateList-module_deepenCheckText__1Poah",kn="decorateList-module_deepenCheckSubtext__1hWcB",In="decorateList-module_deepenSuccessIcon__2Ncb7",Pn="decorateList-module_deepenWarningIcon__3Ctcn",An="decorateList-module_downloadBtn__YKTL-",Rn="decorateList-module_closeBtn__1dYyd";je(".decorateList-module_page__1YdY7{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden}@keyframes decorateList-module_dropdownOpen__2OOIV{0%{opacity:0;transform:scale(.92) translateY(-4px)}to{opacity:1;transform:scale(1) translateY(0)}}.decorateList-module_toolbar__342m2{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;background-color:#fff;padding:11px 16px}.decorateList-module_pageTitle__mOH7H{margin:0!important;font-family:PingFang SC;font-weight:500;font-style:Medium;font-size:14px;line-height:22px;letter-spacing:0;color:#000f2c}.decorateList-module_listWrapper__3KM5i{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,1fr));align-content:flex-start;gap:20px;padding:24px;background:#f5f5f7;overflow-y:auto}.decorateList-module_toolbarRight__3THOm{display:flex;flex-wrap:wrap;align-items:center;gap:16px}.decorateList-module_btnNewScheme__3rAsP{height:32px;padding:0 16px!important;border-radius:6px!important;font-size:14px;font-weight:400;background:#1890ff!important;border:none!important;box-shadow:none!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px}.decorateList-module_btnNewScheme__3rAsP:focus,.decorateList-module_btnNewScheme__3rAsP:hover{background:#40a9ff!important;border:none!important;color:#fff!important}.decorateList-module_loadingWrap__1qOpS{display:flex;align-items:center;justify-content:center;min-height:300px}.decorateList-module_empty__TYalu,.decorateList-module_loading__29H7Q{margin-top:80px}.decorateList-module_pagination__2--8-{flex-shrink:0;display:flex;justify-content:flex-end;padding:12px 24px;background:#f5f5f7;overflow:visible}.decorateList-module_schemeCard___LbgW{width:100%;border-radius:16px;overflow:visible;box-shadow:0 2px 12px rgba(0,0,0,.06);border:1px solid #f0f0f0}.decorateList-module_schemeCard___LbgW .ant-card-body{padding:0}.decorateList-module_coverWrap__3Opei{position:relative;width:100%;padding-bottom:100%;height:0;overflow:hidden;background:#f5f5f5;border-radius:14px}.decorateList-module_cover__1miEK{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block;border-radius:14px}.decorateList-module_cardCol__3r2HC{min-width:0;position:relative}.decorateList-module_cardTitle__1XOOv{margin:8px 0 6px!important;font-size:14px!important;line-height:1.35!important;padding:0 10px}.decorateList-module_titleTooltip__1729f .ant-tooltip-arrow,.decorateList-module_titleTooltip__1729f .ant-tooltip-arrow-content{display:none!important}.decorateList-module_titleTooltip__1729f .ant-tooltip-inner{max-width:212px;margin-top:-4px;background:#fff;color:rgba(0,15,44,.85);border-radius:14px;box-shadow:0 4px 12px rgba(0,0,0,.12);border:1px solid #f0f0f0}.decorateList-module_meta__2nWBq{font-size:12px;margin-bottom:4px;line-height:1.4;padding:0 10px}.decorateList-module_version__2r20D{font-size:11px;color:#8c8c8c;padding:0 10px}.decorateList-module_cardActions__21ujs{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px}.decorateList-module_btnDetail__s9Wej{width:82px;height:32px;border-radius:8px!important;padding:0!important}.decorateList-module_btnMore__2zZKw{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;line-height:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateList-module_btnMoreIcon__2O7fD{display:block;width:24px;height:24px;-o-object-fit:contain;object-fit:contain}.decorateList-module_moreDropdown__lRODY{position:absolute;right:0;top:100%;margin-top:6px;background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);border:1px solid #e8e8e8;padding:6px;min-width:112px;z-index:9991;transform-origin:top right;animation:decorateList-module_dropdownOpen__2OOIV .2s ease-out forwards}.decorateList-module_moreDropdownItem__1n9uF{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:14px;font-weight:400;border-radius:8px;margin:0;padding:8px 12px;cursor:pointer}.decorateList-module_moreDropdownItem__1n9uF:hover{background:#f5f5f5;color:#1c2635;font-weight:600}.decorateList-module_overlay__aOZvH{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:9999;animation:decorateList-module_overlayIn__24ndP .25s ease-out forwards}@keyframes decorateList-module_overlayIn__24ndP{0%{opacity:0}to{opacity:1}}.decorateList-module_deepenModal__RL9Ad{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:420px;background:#fff;border-radius:12px;z-index:10000;overflow:hidden}.decorateList-module_deepenModalHeader__S3OGA{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #f0f0f0}.decorateList-module_deepenModalTitle__3Hhkj{font-size:16px;font-weight:600;color:#000f2c}.decorateList-module_deepenModalBody__5rDbW{padding:40px 20px}.decorateList-module_deepenCheckContent__2ILP1{display:flex;flex-direction:column;align-items:center;text-align:center}.decorateList-module_deepenSpinner__18Uj7{width:48px;height:48px;border:3px solid #f0f0f0;border-top-color:#1890ff;border-radius:50%;animation:decorateList-module_spin__2dOML .8s linear infinite;margin-bottom:16px}@keyframes decorateList-module_spin__2dOML{to{transform:rotate(1turn)}}.decorateList-module_deepenCheckText__1Poah{font-size:16px;font-weight:500;color:#000f2c;margin:0 0 8px}.decorateList-module_deepenCheckSubtext__1hWcB{font-size:14px;color:#616778;margin:0 0 20px}.decorateList-module_deepenSuccessIcon__2Ncb7,.decorateList-module_deepenWarningIcon__3Ctcn{margin-bottom:16px}.decorateList-module_downloadBtn__YKTL-{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 20px;background:#1890ff;color:#fff;border-radius:6px;font-size:14px;text-decoration:none}.decorateList-module_downloadBtn__YKTL-:hover{background:#40a9ff;color:#fff}.decorateList-module_closeBtn__1dYyd{background:none;border:none;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;color:#8c8c8c;border-radius:4px}.decorateList-module_closeBtn__1dYyd:hover{background:#f5f5f5;color:#1c2635}");var Dn=ie.default.Title,zn=ie.default.Text,Un=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={checking:!0},e}return Ie(t,e),Ce(t,[{key:"componentDidUpdate",value:function(e){var t=this;this.props.visible&&!e.visible&&(this.setState({checking:!0}),setTimeout(function(){t.setState({checking:!1})},1500))}},{key:"render",value:function(){var e=this.props,t=e.onClose,a=e.hasClient,n=this.state.checking;return e.visible?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Mn,onClick:t}),V.default.createElement("div",{className:wn},V.default.createElement("div",{className:Sn},V.default.createElement("span",{className:Tn},"客户端检测"),V.default.createElement("button",{type:"button",className:Rn,onClick:t},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:En},n?V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:Nn}),V.default.createElement("p",{className:Ln},"正在检测本地客户端...")):a?V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:In},V.default.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},V.default.createElement("circle",{cx:"24",cy:"24",r:"24",fill:"#52C41A",fillOpacity:"0.1"}),V.default.createElement("path",{d:"M20 24L22 26L28 20",stroke:"#52C41A",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}))),V.default.createElement("p",{className:Ln},"检测到本地客户端,正在调起...")):V.default.createElement("div",{className:Cn},V.default.createElement("div",{className:Pn},V.default.createElement("svg",{width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},V.default.createElement("circle",{cx:"24",cy:"24",r:"24",fill:"#FAAD14",fillOpacity:"0.1"}),V.default.createElement("path",{d:"M24 14V26",stroke:"#FAAD14",strokeWidth:"2.5",strokeLinecap:"round"}),V.default.createElement("circle",{cx:"24",cy:"32",r:"1.5",fill:"#FAAD14"}))),V.default.createElement("p",{className:Ln},"未检测到本地客户端"),V.default.createElement("p",{className:kn},"请下载并安装本地客户端"),V.default.createElement("a",{href:"https://placeholder-download-url.com/deepen-client",className:An,target:"_blank",rel:"noopener noreferrer"},V.default.createElement(S.DownloadOutlined,null),"下载客户端"))))):null}}])}(V.default.Component),Bn=a.connect(function(e){return{decorate:e.decorate,loading:e.loading.effects["decorate/fetchList"]}})(Ya=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={createModalVisible:!1,historyModalVisible:!1,historyModalRecord:null,moreDropdownOpenId:null,current:1,pageSize:50,deepenModalVisible:!1,deepenClientInstalled:!1},e.handleDocClick=function(t){t.target.closest(".".concat(_n))||e.setState({moreDropdownOpenId:null})},e.fetchList=function(){var t=e.state;(0,e.props.dispatch)({type:"decorate/fetchList",payload:{pageNo:t.current,pageSize:t.pageSize}}).catch(function(e){O.default.error((null==e?void 0:e.message)||"获取列表失败")})},e.handlePageChange=function(t,a){e.setState({current:t,pageSize:a},e.fetchList)},e.handleNewScheme=function(){console.log("handleNewScheme called, state before:",e.state.createModalVisible),e.setState({createModalVisible:!0},function(){console.log("createModalVisible after setState:",e.state.createModalVisible)})},e.pendingDeepenId=null,e.handleCreateSchemeOk=function(t){var a=e.props.dispatch,n=t&&t.saveAndDeepen;e.setState({createModalVisible:!1}),a({type:"decorate/createScheme",payload:t}).then(function(t){O.default.success("方案已创建"),e.fetchList(),n&&e.setState({deepenModalVisible:!0,deepenClientInstalled:!1})}).catch(function(e){O.default.error((null==e?void 0:e.message)||"方案创建失败")})},e.handleDetail=function(t){var a=t.version&&"--"!==t.version?t.version:"",n="id=".concat(encodeURIComponent(t.id)),r=a?"/decorateDetail?".concat(n,"&version=").concat(encodeURIComponent(a)):"/decorateDetail?".concat(n);e.props.dispatch(c.routerRedux.push(r))},e.handleMenuClick=function(t,a){var n=a.key,r=e.props.dispatch;"delete"===n?oe.default.confirm({title:"确认删除该方案?",content:t.title,okText:"删除",okType:"danger",cancelText:"取消",onOk:function(){r({type:"decorate/deleteScheme",payload:{schemeId:t.id}}).then(function(){O.default.success("已删除"),e.fetchList()}).catch(function(e){O.default.error((null==e?void 0:e.message)||"删除失败")})}}):"copy"===n?r({type:"decorate/copyScheme",payload:{id:t.id}}).then(function(){O.default.success("副本已创建")}).catch(function(e){O.default.error((null==e?void 0:e.message)||"创建副本失败")}):"history"===n&&e.setState({historyModalVisible:!0,historyModalRecord:t})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.fetchList(),document.addEventListener("click",this.handleDocClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocClick)}},{key:"componentDidUpdate",value:function(e){this.pendingDeepenId&&this.props.decorate.lastCreatedId&&this.props.decorate.lastCreatedId!==e.decorate.lastCreatedId&&(this.pendingDeepenId=null,this.props.dispatch(c.routerRedux.push("/decorateDetail?id=".concat(encodeURIComponent(this.props.decorate.lastCreatedId)))))}},{key:"render",value:function(){var e,t=this,a=this.props.decorate,n=a.list,r=a.total,o=this.props.loading,i=this.state,l=i.current,s=i.pageSize;return V.default.createElement("div",{className:Ja},V.default.createElement("div",{className:$a},V.default.createElement(Dn,{level:4,className:en},"我的设计方案"),V.default.createElement("div",{className:an},V.default.createElement(Y.default,{type:"primary",className:nn,onClick:this.handleNewScheme},V.default.createElement(S.PlusOutlined,null),"开启新方案"))),o&&!n.length?V.default.createElement("div",{className:rn},V.default.createElement(te.default,{size:"large"})):0===n.length?V.default.createElement(re.default,{className:on,description:"暂无方案,点击「开启新方案」开始"}):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:tn},n.map(function(e){return V.default.createElement("div",{key:e.id,className:un},V.default.createElement(X.default,{className:sn,hoverable:!0,cover:V.default.createElement("div",{className:dn},V.default.createElement("img",{alt:e.title,src:e.cover,className:cn,onError:function(e){e.target.src="data:image/svg+xml,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="400" height="240" fill="#e8e8e8"><rect width="100%" height="100%"/><text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" fill="#999" font-size="14">预览图</text></svg>')}}))},V.default.createElement(ne.default,{title:e.title,placement:"bottom",overlayClassName:pn},V.default.createElement(Dn,{level:5,className:mn,ellipsis:!0},e.title)),V.default.createElement("div",{className:fn},V.default.createElement(zn,{type:"secondary"},e.area," | ",e.style)),V.default.createElement("div",{className:fn},V.default.createElement(zn,{type:"secondary"},e.city," - ",e.customer)),V.default.createElement("div",{className:hn},e.version),V.default.createElement("div",{className:_n},V.default.createElement(Y.default,{type:"primary",ghost:!0,size:"small",className:gn,onClick:function(){return t.handleDetail(e)}},"查看详情"),V.default.createElement("span",{className:vn,role:"button",tabIndex:0},V.default.createElement("img",{src:t.state.moreDropdownOpenId===e.id?tt:et,alt:"",width:24,height:24,className:yn,draggable:!1,onClick:function(a){a.stopPropagation(),t.setState({moreDropdownOpenId:t.state.moreDropdownOpenId===e.id?null:e.id})}})),t.state.moreDropdownOpenId===e.id&&V.default.createElement("div",{className:xn},V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"delete"})}},"删除"),V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"copy"})}},"创建副本"),V.default.createElement("button",{type:"button",className:bn,onClick:function(){t.setState({moreDropdownOpenId:null}),t.handleMenuClick(e,{key:"history"})}},"历史版本")))))})),V.default.createElement("div",{className:ln},V.default.createElement(ae.default,{current:l,pageSize:s,total:r,onChange:this.handlePageChange,onShowSizeChange:this.handlePageChange,pageSizeOptions:[50,100,200],showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条")}}))),V.default.createElement(Ta,{visible:this.state.createModalVisible,onCancel:function(){return t.setState({createModalVisible:!1})},onOk:this.handleCreateSchemeOk}),V.default.createElement(Qa,{visible:this.state.historyModalVisible,schemeId:null===(e=this.state.historyModalRecord)||void 0===e?void 0:e.id,onCancel:function(){return t.setState({historyModalVisible:!1,historyModalRecord:null})},onOpen:function(e){var a=e.version,n="id=".concat(encodeURIComponent(e.schemeId)),r=a?"/decorateDetail?".concat(n,"&version=").concat(encodeURIComponent(a)):"/decorateDetail?".concat(n);t.props.dispatch(c.routerRedux.push(r))}}),V.default.createElement(Un,{visible:this.state.deepenModalVisible,onClose:function(){return t.setState({deepenModalVisible:!1})},hasClient:this.state.deepenClientInstalled}))}}])}(n.Component))||Ya,Gn={overlay:"MaterialUploadModal-module_overlay__45gB7",overlayIn:"MaterialUploadModal-module_overlayIn__3BdRq",modal:"MaterialUploadModal-module_modal__xuwMo",modalIn:"MaterialUploadModal-module_modalIn__1XsSx",header:"MaterialUploadModal-module_header__3TjBI",title:"MaterialUploadModal-module_title__1flzY",closeBtn:"MaterialUploadModal-module_closeBtn__1mF-n",body:"MaterialUploadModal-module_body__3NXqM",sectionTitle:"MaterialUploadModal-module_sectionTitle__2lxhy",formRow:"MaterialUploadModal-module_formRow__1sIrX",formRowLabel:"MaterialUploadModal-module_formRowLabel__1cWKA",required:"MaterialUploadModal-module_required__29bRx",formRowField:"MaterialUploadModal-module_formRowField__2PG0L",input:"MaterialUploadModal-module_input__2f5Gu",inputNarrow:"MaterialUploadModal-module_inputNarrow__2WACn",inputError:"MaterialUploadModal-module_inputError__1vkxg",inputSuffix:"MaterialUploadModal-module_inputSuffix__2Rbny",suffix:"MaterialUploadModal-module_suffix__wBmip",error:"MaterialUploadModal-module_error__64rTq",classifyRow:"MaterialUploadModal-module_classifyRow__ThGSG",classifyItem:"MaterialUploadModal-module_classifyItem__2nxz6",classifySelect:"MaterialUploadModal-module_classifySelect__3IiJH",brandSelect:"MaterialUploadModal-module_brandSelect__14Xxq",brandOption:"MaterialUploadModal-module_brandOption__3iJFQ",brandOptionLogo:"MaterialUploadModal-module_brandOptionLogo__1RjU2",brandOptionName:"MaterialUploadModal-module_brandOptionName__r4Nc4",uploadTextButton:"MaterialUploadModal-module_uploadTextButton__3yIqt",uploadProgressWrap:"MaterialUploadModal-module_uploadProgressWrap__1xc8Z",uploadProgressMain:"MaterialUploadModal-module_uploadProgressMain__-Csx3",uploadStatusText:"MaterialUploadModal-module_uploadStatusText__3uBhf",retryButton:"MaterialUploadModal-module_retryButton__pKebn",uploadSuccessWrap:"MaterialUploadModal-module_uploadSuccessWrap__2Y7N9",uploadSuccessActions:"MaterialUploadModal-module_uploadSuccessActions__3PFqa",replaceButton:"MaterialUploadModal-module_replaceButton__12cMI",successIcon:"MaterialUploadModal-module_successIcon__19J_v",fileName:"MaterialUploadModal-module_fileName__2gX0H",footer:"MaterialUploadModal-module_footer__oI4b7",footerBtn:"MaterialUploadModal-module_footerBtn__6uu-j",btnCancel:"MaterialUploadModal-module_btnCancel__YZSZQ",btnOk:"MaterialUploadModal-module_btnOk__cL5Fm"};je("@keyframes MaterialUploadModal-module_overlayIn__3BdRq{0%{opacity:0}to{opacity:1}}@keyframes MaterialUploadModal-module_modalIn__1XsSx{0%{opacity:0}to{opacity:1}}.MaterialUploadModal-module_overlay__45gB7{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.45);z-index:9999;animation:MaterialUploadModal-module_overlayIn__3BdRq .2s ease-out forwards}.MaterialUploadModal-module_modal__xuwMo{position:fixed;top:0;right:0;bottom:0;left:0;width:560px;height:-moz-fit-content;height:fit-content;margin:auto;border-radius:16px;overflow:hidden;background:#fff;z-index:9999;display:flex;flex-direction:column;max-height:88vh;animation:MaterialUploadModal-module_modalIn__1XsSx .22s ease-out forwards}.MaterialUploadModal-module_header__3TjBI{display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 24px;height:52px;flex-shrink:0;border-bottom:1px solid #dde1e6}.MaterialUploadModal-module_title__1flzY{font-size:16px;font-weight:600;color:#111827}.MaterialUploadModal-module_closeBtn__1mF-n{width:28px;height:28px;border:none;background:#fff;border-radius:50%;color:rgba(0,0,0,.5);cursor:pointer;font-size:14px;line-height:28px;text-align:center;display:flex;align-items:center;justify-content:center;padding:0;transition:background .15s,color .15s}.MaterialUploadModal-module_closeBtn__1mF-n:hover{background:rgba(0,0,0,.1);color:rgba(0,0,0,.7)}.MaterialUploadModal-module_body__3NXqM{padding:0 24px 8px;overflow-y:visible;flex:1}.MaterialUploadModal-module_sectionTitle__2lxhy{font-size:13px;font-weight:600;color:#111827;padding:16px 0}.MaterialUploadModal-module_formRow__1sIrX{margin-bottom:16px;display:flex;align-items:flex-start}.MaterialUploadModal-module_formRowLabel__1cWKA{flex:0 0 72px;padding-top:13px;font-size:13px;color:rgba(17,24,39,.6);white-space:nowrap;line-height:1}.MaterialUploadModal-module_required__29bRx{color:#ef4444;margin-right:2px}.MaterialUploadModal-module_formRowField__2PG0L{flex:1;min-width:0}.MaterialUploadModal-module_input__2f5Gu{width:100%;height:38px;padding:0 12px;border:1px solid #f0f2f5;border-radius:6px;font-size:13px;color:#111827;background:#f0f2f5;outline:none;box-sizing:border-box;transition:border-color .2s}.MaterialUploadModal-module_input__2f5Gu:focus{border-color:#597aef;box-shadow:0 0 0 3px rgba(89,122,239,.1)}.MaterialUploadModal-module_input__2f5Gu::-moz-placeholder{color:#9ca3af}.MaterialUploadModal-module_input__2f5Gu::placeholder{color:#9ca3af}.MaterialUploadModal-module_inputNarrow__2WACn{width:200px}.MaterialUploadModal-module_inputError__1vkxg{border-color:#ef4444}.MaterialUploadModal-module_inputError__1vkxg:focus{box-shadow:0 0 0 3px rgba(239,68,68,.1)}.MaterialUploadModal-module_inputSuffix__2Rbny{position:relative;width:200px}.MaterialUploadModal-module_suffix__wBmip{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:13px;color:rgba(17,24,39,.5);pointer-events:none}.MaterialUploadModal-module_error__64rTq{display:block;font-size:11px;line-height:1.2;color:#ef4444;margin-top:4px}.MaterialUploadModal-module_classifyRow__ThGSG{display:flex;gap:16px;overflow:visible;position:static;align-items:flex-start}.MaterialUploadModal-module_classifyItem__2nxz6{width:200px}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selector{height:40px!important;border-radius:4px!important;border-color:#f0f2f5!important;background:#f0f2f5!important;display:flex;align-items:center}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-search-input{height:40px!important}.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-item,.MaterialUploadModal-module_classifySelect__3IiJH .ant-select-selection-placeholder{line-height:38px!important}.MaterialUploadModal-module_brandSelect__14Xxq .ant-select-selector{padding:0 12px!important}.MaterialUploadModal-module_brandSelect__14Xxq .ant-select-selection-item{display:flex;align-items:center}.MaterialUploadModal-module_brandOption__3iJFQ{display:flex;align-items:center;gap:8px}.MaterialUploadModal-module_brandOptionLogo__1RjU2{width:24px;height:24px;border-radius:4px;-o-object-fit:cover;object-fit:cover;flex-shrink:0;background:#f5f5f5}.MaterialUploadModal-module_brandOptionName__r4Nc4{min-width:0;color:#111827}.MaterialUploadModal-module_uploadTextButton__3yIqt{padding:0;border:none;background:transparent;color:#597aef;font-size:13px;font-weight:500;cursor:pointer}.MaterialUploadModal-module_uploadTextButton__3yIqt:hover{color:#4061e0}.MaterialUploadModal-module_uploadProgressWrap__1xc8Z{display:flex;align-items:center;gap:24px}.MaterialUploadModal-module_uploadProgressMain__-Csx3{flex:1;min-width:0}.MaterialUploadModal-module_uploadStatusText__3uBhf{flex-shrink:0;color:#616778;font-size:13px}.MaterialUploadModal-module_retryButton__pKebn{flex-shrink:0;width:72px;height:32px;padding:0;border:1px solid #1890ff;border-radius:4px;background:#fff;color:#1890ff;font-size:13px;font-weight:400;cursor:pointer}.MaterialUploadModal-module_retryButton__pKebn:hover{background:#e6f7ff}.MaterialUploadModal-module_uploadSuccessWrap__2Y7N9{display:flex;align-items:center;gap:24px}.MaterialUploadModal-module_uploadSuccessActions__3PFqa{display:flex;align-items:center;gap:8px;flex-shrink:0}.MaterialUploadModal-module_replaceButton__12cMI{width:72px!important;height:32px!important;padding:0!important;border:1px solid #1890ff!important;border-radius:4px!important;background:#fff!important;color:#1890ff!important;font-size:13px!important;font-weight:400!important;box-shadow:none!important}.MaterialUploadModal-module_replaceButton__12cMI:focus,.MaterialUploadModal-module_replaceButton__12cMI:hover{background:#e6f7ff!important;color:#1890ff!important;border-color:#1890ff!important}.MaterialUploadModal-module_successIcon__19J_v{color:#52c41a;font-size:16px}.MaterialUploadModal-module_fileName__2gX0H{font-size:13px;color:#111827;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.MaterialUploadModal-module_footer__oI4b7{display:flex;align-items:center;justify-content:flex-end;gap:20px;padding:16px 24px 16px 0;border-top:1px solid #f3f4f6;flex-shrink:0;margin-top:8px}.MaterialUploadModal-module_footerBtn__6uu-j{height:36px;padding:0 24px;border-radius:4px;font-size:14px;cursor:pointer;outline:none;transition:all .15s;font-weight:400}.MaterialUploadModal-module_btnCancel__YZSZQ{border:1px solid #e5e7eb;background:#fff;color:#737b8b}.MaterialUploadModal-module_btnCancel__YZSZQ:hover{border-color:#1890ff;color:#1890ff}.MaterialUploadModal-module_btnOk__cL5Fm{border:none;background:#1890ff;color:#fff}.MaterialUploadModal-module_btnOk__cL5Fm:hover{background:#1278d7}.MaterialUploadModal-module_btnOk__cL5Fm:disabled{opacity:.5;cursor:not-allowed}");var Fn,On=function(e){var t,a,n,r,o,i;return(null==e||null===(t=e.value)||void 0===t?void 0:t.fileAccessUrl)||(null==e||null===(a=e.value)||void 0===a?void 0:a.compressImageUrl)||(null==e||null===(n=e.value)||void 0===n?void 0:n.fileUrl)||(null==e||null===(r=e.value)||void 0===r?void 0:r.url)||(null==e||null===(o=e.data)||void 0===o?void 0:o.fileUrl)||(null==e||null===(i=e.data)||void 0===i?void 0:i.url)||(null==e?void 0:e.fileUrl)||(null==e?void 0:e.url)},Hn=function(e){return(null==e?void 0:e.data)||e},Vn=function(e){return null!=(null==e?void 0:e.brandId)?e.brandId+"":void 0},jn=function(e){var t=e.visible,a=e.onCancel,r=e.onOk,o=e.material,i=e.mode,l=e.classify1Options,s=void 0===l?[]:l,d=e.classify2Options,c=void 0===d?{}:d,u=e.brandOptions,m=void 0===u?[]:u,p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState(null),2),g=_[0],v=_[1],y=Ge(n.useState(null),2),x=y[0],b=y[1],M=Ge(n.useState(void 0),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState({}),2),k=L[0],I=L[1],P=Ge(n.useState({}),2),A=P[0],R=P[1],D=Ge(n.useState(null),2),z=D[0],U=D[1],B=Ge(n.useState(0),2),G=B[0],F=B[1],H=Ge(n.useState("idle"),2),j=H[0],W=H[1],q=Ge(n.useState(!1),2),K=q[0],X=q[1],Z=n.useRef(null),Q=n.useRef(null);n.useEffect(function(){t&&(o?(h(o.name||""),v(null!=o.classify1Id?o.classify1Id:null!=o.classify1?o.classify1:null),b(null!=o.classify2Id?o.classify2Id:null!=o.classify2?o.classify2:null),T(null!=o.brandId?o.brandId+"":void 0),N(null!=o.unitPrice?Number(o.unitPrice)/100+"":o.price||""),U(function(e){return(null==e?void 0:e.url)?{name:e.name||e.fileName||"已上传素材",url:e.url,size:e.size||0}:null}(o)),W(o.url?"success":"idle"),F(o.url?100:0)):(h(""),v(null),b(null),T(void 0),N(""),U(null),W("idle"),F(0)),I({}),R({}),X(!1),Z.current&&(Z.current.value=""))},[t,o]);var J=function(){var e={};return f.trim()||(e.name="请输入素材名称"),g||(e.classify1Id="请选择一级分类"),x||(e.classify2Id="请选择二级分类"),(null==z?void 0:z.url)||(e.file="请上传素材文件"),I(e),0===Object.keys(e).length},$=function(){I(function(e){var t=Object.assign({},e);return delete t.file,t})},ee=function(){Z.current&&Z.current.click()},te=function(){var e=we(ze().m(function e(t){var a,n,r,o;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return(a=new FormData).append("file",t),W("uploading"),F(0),$(),e.p=2,e.n=3,da(a,{onUploadProgress:function(e){F((null==e?void 0:e.total)?Math.min(99,Math.round(e.loaded/e.total*100)):0)}});case 3:if(n=Hn(e.v),r=On(n),200!==(null==n?void 0:n.code)||!r){e.n=4;break}U({name:t.name,size:t.size,url:r}),F(100),W("success"),$(),e.n=5;break;case 4:throw Error((null==n?void 0:n.message)||"上传失败");case 5:e.n=7;break;case 6:e.p=6,console.error("素材上传失败",o=e.v),W("error"),F(100),O.default.error((null==o?void 0:o.message)||"上传失败");case 7:return e.p=7,Z.current&&(Z.current.value=""),e.f(7);case 8:return e.a(2)}},e,null,[[2,6,7,8]])}));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(R({name:!0,classify1Id:!0,classify2Id:!0}),J()){e.n=1;break}return e.a(2);case 1:return X(!0),e.p=2,t=m.find(function(e){return Vn(e)===w}),e.n=3,null==r?void 0:r({materialId:"edit"===i?null==o?void 0:o.materialId:void 0,name:f.trim(),classify1:g,classify2:x,type:1,url:z.url,size:z.size||0,unitPrice:Math.round(100*(Number(C)||0)),brandId:null==t?void 0:t.brandId,brandName:(null==t?void 0:t.name)||void 0});case 3:return e.p=3,X(!1),e.f(3);case 4:return e.a(2)}},e,null,[[2,,3,4]])}));return function(){return e.apply(this,arguments)}}(),ne=function(e,t){"classify1Id"===e?(v(t),b(null)):"classify2Id"===e&&b(t),I(function(t){var a=Object.assign({},t);return delete a[e],a})},re=g&&c[g+""]||[],oe=m.map(function(e){return{value:Vn(e),label:V.default.createElement("div",{className:Gn.brandOption},V.default.createElement("img",{src:e.logo,alt:e.name,className:Gn.brandOptionLogo}),V.default.createElement("span",{className:Gn.brandOptionName},e.name))}});return t?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Gn.overlay,onClick:a}),V.default.createElement("div",{className:Gn.modal},V.default.createElement("div",{className:Gn.topAccent}),V.default.createElement("div",{className:Gn.header},V.default.createElement("span",{className:Gn.title},"edit"===i?"编辑素材":"上传新素材"),V.default.createElement("button",{type:"button",className:Gn.closeBtn,onClick:a},V.default.createElement(S.CloseOutlined,{style:{fontSize:13}}))),V.default.createElement("div",{className:Gn.body},V.default.createElement("div",{className:Gn.sectionTitle},"素材基本信息"),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},V.default.createElement("span",{className:Gn.required},"*"),"素材文件"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("input",{type:"file",accept:".glb,.gltf,.fbx,.obj",style:{display:"none"},ref:Z,onChange:function(e){var t,a=null===(t=e.target.files)||void 0===t?void 0:t[0];a&&(U({name:a.name,size:a.size,url:""}),te(a))}}),V.default.createElement("div",{className:Gn.uploadPanel},"idle"!==j||z?"uploading"===j?V.default.createElement("div",{className:Gn.uploadProgressWrap},V.default.createElement("div",{className:Gn.uploadProgressMain},V.default.createElement(pe.default,{percent:G,size:"small",showInfo:!1,strokeColor:"#597aef"})),V.default.createElement("span",{className:Gn.uploadStatusText},"上传中")):"error"===j?V.default.createElement("div",{className:Gn.uploadProgressWrap},V.default.createElement("div",{className:Gn.uploadProgressMain},V.default.createElement("div",{className:Gn.fileName},(null==z?void 0:z.name)||"素材上传失败"),V.default.createElement(pe.default,{percent:100,size:"small",showInfo:!1,strokeColor:"#ff4d4f",status:"exception"})),V.default.createElement("button",{type:"button",className:Gn.retryButton,onClick:ee},"重新上传")):V.default.createElement("div",{className:Gn.uploadSuccessWrap},V.default.createElement("div",{className:Gn.fileName,title:null==z?void 0:z.name},null==z?void 0:z.name),V.default.createElement("div",{className:Gn.uploadSuccessActions},V.default.createElement(Y.default,{type:"button",className:Gn.replaceButton,onClick:ee},"替换"),V.default.createElement(S.CheckCircleFilled,{className:Gn.successIcon}))):V.default.createElement("button",{type:"button",className:Gn.uploadTextButton,onClick:ee},"上传素材")),k.file&&V.default.createElement("span",{className:Gn.error},k.file))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},V.default.createElement("span",{className:Gn.required},"*"),"素材分类"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("div",{className:Gn.classifyRow,ref:Q},V.default.createElement("div",{className:Gn.classifyItem},V.default.createElement(me.default,{placeholder:"一级分类",value:g,onChange:function(e){return ne("classify1Id",e)},options:s,className:Gn.classifySelect,style:{width:200},getPopupContainer:function(){return Q.current?Q.current:document.body}}),k.classify1Id&&V.default.createElement("span",{className:Gn.error},k.classify1Id)),V.default.createElement("div",{className:Gn.classifyItem},V.default.createElement(me.default,{placeholder:"二级分类",value:x,onChange:function(e){return ne("classify2Id",e)},options:re,disabled:!g,className:Gn.classifySelect,style:{width:200},getPopupContainer:function(){return Q.current?Q.current:document.body}}),k.classify2Id&&V.default.createElement("span",{className:Gn.error},k.classify2Id))))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"素材名称"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("input",{type:"text",className:"".concat(Gn.input," ").concat(Gn.inputNarrow," ").concat(A.name&&k.name?Gn.inputError:""),placeholder:"请输入素材名称",value:f,onChange:function(e){h(e.target.value),A.name&&J()},onBlur:function(){R(function(e){return Object.assign({},e,{name:!0})}),J()}}),A.name&&k.name&&V.default.createElement("span",{className:Gn.error},k.name))),V.default.createElement("div",{className:Gn.sectionTitle,style:{marginTop:8}},"商品信息"),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"品牌名称"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement(me.default,{placeholder:"请选择品牌名称",value:w,onChange:function(e){return T(e)},options:oe,allowClear:!0,className:"".concat(Gn.classifySelect," ").concat(Gn.brandSelect),style:{width:200},getPopupContainer:function(e){return e.parentNode||document.body},optionLabelProp:"label"}))),V.default.createElement("div",{className:Gn.formRow},V.default.createElement("label",{className:Gn.formRowLabel},"参考单价"),V.default.createElement("div",{className:Gn.formRowField},V.default.createElement("div",{className:"".concat(Gn.inputSuffix," ").concat(Gn.inputNarrow)},V.default.createElement("input",{type:"number",className:"".concat(Gn.input," ").concat(Gn.inputNarrow),placeholder:"请输入参考单价",value:C,onChange:function(e){return N(e.target.value)},min:0,style:{paddingRight:32}}),V.default.createElement("span",{className:Gn.suffix},"元"))))),V.default.createElement("div",{className:Gn.footer},V.default.createElement("button",{type:"button",className:"".concat(Gn.footerBtn," ").concat(Gn.btnCancel),onClick:a},"取消"),V.default.createElement("button",{type:"button",className:"".concat(Gn.footerBtn," ").concat(Gn.btnOk),onClick:ae,disabled:K||"uploading"===j},"确认")))):null},Wn="decorateMaterials-module_wrap__1XXYC",qn="decorateMaterials-module_header__iqGKl",Kn="decorateMaterials-module_headerLeft__C7Tbp",Xn="decorateMaterials-module_title___r-Ci",Yn="decorateMaterials-module_subtitle__1bXEp",Zn="decorateMaterials-module_uploadBtn__2CiZZ",Qn="decorateMaterials-module_body__2USVY",Jn="decorateMaterials-module_leftPanel__3OuPF",$n="decorateMaterials-module_panelTitle__114iP",er="decorateMaterials-module_treeRow__3YaHC",tr="decorateMaterials-module_rowFirst__2x9A9",ar="decorateMaterials-module_rowActive__18AXb",nr="decorateMaterials-module_rowLabel__DTzMo",rr="decorateMaterials-module_rowCount__1oH4e",or="decorateMaterials-module_rowSecond__3_0Wo",ir="decorateMaterials-module_rowThird__sS-LQ",lr="decorateMaterials-module_expandBtn__2h1Oe",sr="decorateMaterials-module_rightPanel__YkkdF",dr="decorateMaterials-module_rightPanelHeader__14WUo",cr="decorateMaterials-module_sortWrap__1o8YL",ur="decorateMaterials-module_sortLabel__1_7Tg",mr="decorateMaterials-module_sortValue__1ROTT",pr="decorateMaterials-module_materialCount__1_vtg",fr="decorateMaterials-module_materialList__34klC",hr="decorateMaterials-module_materialListContent__2EcC0",_r="decorateMaterials-module_loadingWrap__2JP3h",gr="decorateMaterials-module_emptyWrap__1gXcb",vr="decorateMaterials-module_cardGrid__e0Wj_",yr="decorateMaterials-module_cardCol__3P1Mz",xr="decorateMaterials-module_cardColActive__1KU1H",br="decorateMaterials-module_materialCard__2XiAw",Mr="decorateMaterials-module_cardThumb__KBAs6",wr="decorateMaterials-module_cardInfo__3nNtB",Sr="decorateMaterials-module_titleTooltip__1GCp3",Tr="decorateMaterials-module_cardName__1Xqlr",Er="decorateMaterials-module_cardMetaLine__1LoqM",Cr="decorateMaterials-module_cardMetaLeft__1bHeE",Nr="decorateMaterials-module_cardMetaDivider__Ts6MF",Lr="decorateMaterials-module_cardMetaText__1QwLQ",kr="decorateMaterials-module_cardActions__qb9zk",Ir="decorateMaterials-module_btnMore__2DwN5",Pr="decorateMaterials-module_btnMoreIcon__2jXCx",Ar="decorateMaterials-module_moreDropdown__2ChFV",Rr="decorateMaterials-module_moreDropdownItem__2LrL9",Dr="decorateMaterials-module_paginationWrap__2GPMU",zr="decorateMaterials-module_deleteConfirmModal__3hGc-";je(".decorateMaterials-module_wrap__1XXYC{display:flex;flex-direction:column;height:100%;min-height:calc(100vh - 120px)}@keyframes decorateMaterials-module_dropdownOpen__1eAmS{0%{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.decorateMaterials-module_header__iqGKl{display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid #e8e8e8;background-color:#fff}.decorateMaterials-module_headerLeft__C7Tbp{display:flex;height:54px;align-items:center;justify-content:center;gap:12px}.decorateMaterials-module_title___r-Ci{font-size:14px;font-weight:500;color:#000f2c;line-height:22px}.decorateMaterials-module_subtitle__1bXEp{font-size:12px;font-weight:400;color:#737b8b}.decorateMaterials-module_uploadBtn__2CiZZ{display:flex;align-items:center;justify-content:center;width:101px;height:32px;gap:6px;background:#1890ff;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:400;cursor:pointer;outline:none}.decorateMaterials-module_body__2USVY{display:flex;flex:1;min-height:0}.decorateMaterials-module_leftPanel__3OuPF{width:247px;flex-shrink:0;border-right:1px solid #dde1e6;background-color:#fff;overflow-y:auto}.decorateMaterials-module_panelTitle__114iP{padding:16px 0 12px 16px;font-size:14px;font-weight:500;color:#000f2c}.decorateMaterials-module_treeRow__3YaHC{display:flex;align-items:center;height:40px;padding:0 16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateMaterials-module_rowFirst__2x9A9{padding-left:12px}.decorateMaterials-module_rowActive__18AXb .decorateMaterials-module_rowLabel__DTzMo{color:#000f2c;font-size:14px;font-weight:500}.decorateMaterials-module_rowActive__18AXb .decorateMaterials-module_rowCount__1oH4e{color:#000f2c}.decorateMaterials-module_rowLabel__DTzMo{flex:1;font-size:14px;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#717d99}.decorateMaterials-module_rowSecond__3_0Wo{padding-left:28px;font-size:14px;font-weight:500}.decorateMaterials-module_rowThird__sS-LQ{padding-left:48px;font-size:13px}.decorateMaterials-module_expandBtn__2h1Oe{width:14px;height:14px;margin-right:6px;font-size:11px;color:#717d99;flex-shrink:0;display:flex;align-items:center;justify-content:center}.decorateMaterials-module_rowCount__1oH4e{margin-left:8px;font-size:12px;color:#717d99;flex-shrink:0}.decorateMaterials-module_rightPanel__YkkdF{flex:1;min-width:0;display:flex;flex-direction:column;background:#f5f5f7}.decorateMaterials-module_rightPanelHeader__14WUo{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 12px 28px;flex-shrink:0}.decorateMaterials-module_sortWrap__1o8YL{display:inline-flex;align-items:center;gap:4px;font-size:14px;line-height:22px}.decorateMaterials-module_sortLabel__1_7Tg{color:#737b8b;font-weight:400}.decorateMaterials-module_sortValue__1ROTT{color:#000f2c;font-weight:400}.decorateMaterials-module_sortIcon___jYgc{font-size:12px;color:#000f2c}.decorateMaterials-module_categoryTitle__2nY2E{font-size:16px;font-weight:600;color:#333}.decorateMaterials-module_materialCount__1_vtg{font-size:14px;font-weight:400;color:#737b8b}.decorateMaterials-module_materialList__34klC{flex:1;overflow-y:auto;padding:0 16px 16px}.decorateMaterials-module_materialListContent__2EcC0{min-height:100%;display:flex;flex-direction:column}.decorateMaterials-module_emptyWrap__1gXcb,.decorateMaterials-module_loadingWrap__2JP3h{display:flex;align-items:center;justify-content:center;width:100%;height:300px}.decorateMaterials-module_cardGrid__e0Wj_{display:grid;grid-template-columns:repeat(auto-fill,minmax(224px,224px));justify-content:space-between;gap:16px 0}.decorateMaterials-module_cardCol__3P1Mz{position:relative;width:224px;min-width:0;z-index:1}.decorateMaterials-module_cardColActive__1KU1H{z-index:10}.decorateMaterials-module_materialCard__2XiAw{position:relative;width:224px;height:291px;border-radius:14px;background:#fff;box-shadow:0 6px 22px rgba(29,53,87,.08);border:1px solid rgba(235,238,245,.9);overflow:visible;transition:transform .2s ease,box-shadow .2s ease}.decorateMaterials-module_materialCard__2XiAw:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(29,53,87,.12)}.decorateMaterials-module_cardThumb__KBAs6{width:100%;height:224px;background:linear-gradient(180deg,#f7f9fc,#eef2f7);overflow:hidden;border-radius:14px 14px 0 0}.decorateMaterials-module_cardThumb__KBAs6 img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}.decorateMaterials-module_cardInfo__3nNtB{display:flex;flex-direction:column;justify-content:space-between;height:67px;padding:10px 14px 9px;border-radius:0 0 14px 14px;overflow:hidden}.decorateMaterials-module_titleTooltip__1GCp3 .ant-tooltip-inner{border-radius:8px}.decorateMaterials-module_cardName__1Xqlr{font-size:15px;line-height:22px;color:#1c2635;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:0}.decorateMaterials-module_cardMetaLine__1LoqM{display:flex;align-items:center;justify-content:space-between;gap:8px}.decorateMaterials-module_cardMetaLeft__1bHeE{display:flex;align-items:center;min-width:0;flex:1;overflow:hidden}.decorateMaterials-module_cardMetaDivider__Ts6MF{margin:0 6px;font-size:12px;line-height:20px;color:#8c94a6;flex-shrink:0}.decorateMaterials-module_cardMetaText__1QwLQ{font-size:12px;line-height:20px;color:#8c94a6;white-space:nowrap}.decorateMaterials-module_cardActions__qb9zk{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0;margin-left:8px}.decorateMaterials-module_btnMore__2DwN5{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;cursor:pointer;line-height:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.decorateMaterials-module_btnMoreIcon__2jXCx{display:block;width:24px;height:24px;-o-object-fit:contain;object-fit:contain}.decorateMaterials-module_moreDropdown__2ChFV{position:absolute;right:14px;top:calc(100% + 6px);background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);border:1px solid #e8e8e8;padding:6px;min-width:112px;z-index:9991;transform-origin:top right;animation:decorateMaterials-module_dropdownOpen__1eAmS .2s ease-out forwards}.decorateMaterials-module_moreDropdownItem__2LrL9{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:14px;font-weight:400;border-radius:8px;margin:0;padding:8px 12px;cursor:pointer}.decorateMaterials-module_moreDropdownItem__2LrL9:hover{background:#f5f5f5;color:#1c2635;font-weight:600}.decorateMaterials-module_paginationWrap__2GPMU{display:flex;justify-content:flex-end;margin-top:auto;padding-top:20px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-modal-content{border-radius:8px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn{border-radius:4px}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary{background:#1890ff;border-color:#1890ff;border-radius:4px;color:#fff}.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary:focus,.ant-modal-confirm.decorateMaterials-module_deleteConfirmModal__3hGc- .ant-btn-primary:hover{background:#1890ff;border-color:#1890ff;color:#fff}");var Ur="https://3d-platform-onewo.obs.cn-south-1.myhuaweicloud.com:443/7f7ccbce0e5672fe354d358b6cb873f6.png",Br=["10","20","50","100"],Gr=a.connect(function(e){var t=e.decorate;return{materialClassifyList:t.materialClassifyList,materialBrandList:t.materialBrandList,materialList:t.materialList,materialTotal:t.materialTotal}})(Fn=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).state={secondListCollapsed:!1,expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:null,pageNo:1,pageSize:10,listLoading:!1,uploadModalVisible:!1,uploadModalMode:"upload",uploadModalMaterial:null,modalSubmitting:!1,moreDropdownOpenId:null},e.getCardColClassName=function(t){var a=e.state.moreDropdownOpenId;return"".concat(yr," ").concat(a===t?xr:"")},e.handleDocClick=function(t){t.target.closest(".".concat(kr))||e.setState({moreDropdownOpenId:null})},e.loadMaterialClassifyList=function(){return e.props.dispatch({type:"decorate/fetchMaterialClassifyList",payload:{type:1}})},e.loadMaterialBrandList=function(){return e.props.dispatch({type:"decorate/fetchMaterialBrandList"})},e.loadMaterialList=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.pageNo,n=void 0===a?1:a,r=t.pageSize,o=void 0===r?e.state.pageSize:r,i=t.classify1,l=t.classify2;e.setState({listLoading:!0,pageNo:n,pageSize:o}),e.props.dispatch({type:"decorate/fetchMaterialList",payload:{pageNo:n,pageSize:o,classify1:i,classify2:l}}).finally(function(){e.setState({listLoading:!1})})},e.getCurrentListQuery=function(){var t=e.state.selectedId,a=e.firstLevelItems();if(null===t)return{};if(a.find(function(e){return e.classifyId===t}))return{classify1:t};var n=e.findParentSecond(t);return{classify1:null==n?void 0:n.classifyId,classify2:t}},e.findParentSecond=function(t){return(e.props.materialClassifyList||[]).find(function(e){return e.classifyId===t})},e.handleFirstClick=function(){e.setState(function(t){if(!t.secondListCollapsed)return{secondListCollapsed:!0,expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:null};var a=e.firstLevelItems()[0];return{secondListCollapsed:!1,expandedId:a?a.classifyId:null,selectedId:a?a.classifyId:null,selectedCategory:a?a.name:null,requestedClassifyId:a?a.classifyId:null}}),null!==e.state.requestedClassifyId&&e.loadMaterialList({pageNo:1})},e.handleSecondClick=function(t){e.setState(function(a){return a.expandedId===t.classifyId?{expandedId:null,selectedId:null,selectedCategory:null,requestedClassifyId:a.requestedClassifyId===t.classifyId?a.requestedClassifyId:null}:(a.requestedClassifyId!==t.classifyId&&e.loadMaterialList({pageNo:1,classify1:t.classifyId}),{expandedId:t.classifyId,selectedId:t.classifyId,selectedCategory:t.name,requestedClassifyId:t.classifyId})})},e.handleThirdClick=function(t){var a=e.findParentSecond(t.parentId),n=a?a.classifyId:void 0;e.setState(function(a){return a.requestedClassifyId!==t.classifyId&&e.loadMaterialList({pageNo:1,classify1:n,classify2:t.classifyId}),{selectedId:t.classifyId,selectedCategory:t.name,requestedClassifyId:t.classifyId}})},e.firstLevelItems=function(){return(e.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber})},e.getThirdItems=function(t){var a=e.firstLevelItems().find(function(e){return e.classifyId===t});return a&&a.nextLevelClassify?a.nextLevelClassify:[]},e.handlePageChange=function(t,a){var n=e.state.selectedId,r=e.firstLevelItems();if(null===n)e.loadMaterialList({pageNo:t,pageSize:a});else if(r.find(function(e){return e.classifyId===n}))e.loadMaterialList({pageNo:t,pageSize:a,classify1:n});else{var o=e.findParentSecond(n);e.loadMaterialList({pageNo:t,pageSize:a,classify1:null==o?void 0:o.classifyId,classify2:n})}},e.openUploadModal=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e.setState({uploadModalVisible:!0,uploadModalMode:t?"edit":"upload",uploadModalMaterial:t||null,moreDropdownOpenId:null})},e.closeUploadModal=function(){e.setState({uploadModalVisible:!1,modalSubmitting:!1})},e.handleUploadOk=function(){var t=we(ze().m(function t(a){var n,r,o,i,l;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:return n=e.props.dispatch,o=(r=e.state).pageNo,i=r.uploadModalMode,e.setState({modalSubmitting:!0}),t.p=1,t.n=2,n({type:"decorate/saveMaterial",payload:a});case 2:return O.default.success("edit"===i?"素材编辑成功":"素材上传成功"),e.closeUploadModal(),t.n=3,e.loadMaterialClassifyList();case 3:return t.n=4,e.loadMaterialList(Re({pageNo:o},e.getCurrentListQuery()));case 4:t.n=6;break;case 5:throw t.p=5,console.error("保存素材失败",l=t.v),O.default.error((null==l?void 0:l.message)||"保存素材失败"),l;case 6:return t.p=6,e.setState({modalSubmitting:!1}),t.f(6);case 7:return t.a(2)}},t,null,[[1,5,6,7]])}));return function(e){return t.apply(this,arguments)}}(),e.handleToggleMore=function(t,a){a.stopPropagation(),e.setState(function(e){return{moreDropdownOpenId:e.moreDropdownOpenId===t?null:t}})},e.handleDelete=function(t){var a,n=e.props.dispatch,r=e.state,o=r.pageNo,i=r.pageSize;e.setState({moreDropdownOpenId:null}),oe.default.confirm({title:"确认删除",content:"素材删除后将从您的素材库消失,且无法恢复,请确认是否删除?",okText:"确认",cancelText:"取消",className:zr,onOk:(a=we(ze().m(function a(){var r;return ze().w(function(a){for(;;)switch(a.p=a.n){case 0:return a.p=0,a.n=1,n({type:"decorate/deleteMaterial",payload:{materialId:t.materialId}});case 1:return O.default.success("删除成功"),a.n=2,e.loadMaterialClassifyList();case 2:return a.n=3,e.loadMaterialList(Re({pageNo:o,pageSize:i},e.getCurrentListQuery()));case 3:a.n=5;break;case 4:a.p=4,console.error("删除素材失败",r=a.v),O.default.error((null==r?void 0:r.message)||"删除素材失败");case 5:return a.a(2)}},a,null,[[0,4]])})),function(){return a.apply(this,arguments)})})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.loadMaterialClassifyList(),this.loadMaterialBrandList(),this.loadMaterialList({pageNo:1}),document.addEventListener("click",this.handleDocClick)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocClick)}},{key:"classify1Options",get:function(){return(this.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber}).map(function(e){return{value:e.classifyId,label:e.name}})}},{key:"classify2Options",get:function(){var e={};return(this.props.materialClassifyList||[]).filter(function(e){return 1===e.levelNumber}).forEach(function(t){e[t.classifyId]=(t.nextLevelClassify||[]).map(function(e){return{value:e.classifyId,label:e.name}})}),e}},{key:"render",value:function(){var e=this,t=this.props,a=t.materialClassifyList,n=t.materialBrandList,r=t.materialList,o=t.materialTotal,i=this.state,l=i.secondListCollapsed,s=i.expandedId,d=i.selectedId,c=i.listLoading,u=i.uploadModalVisible,m=i.uploadModalMode,p=i.uploadModalMaterial,f=i.modalSubmitting,h=i.pageNo,_=i.pageSize,g=i.moreDropdownOpenId,v=null===d,y=!c&&0===r.length,x=this.firstLevelItems(),b=x.reduce(function(e,t){return e+(Number(t.materialCount)||0)},0),M=!a||0===a.length,w=this.classify1Options,T=this.classify2Options;return V.default.createElement("div",{className:Wn},V.default.createElement("div",{className:qn},V.default.createElement("div",{className:Kn},V.default.createElement("div",{className:Xn},"私人素材库"),V.default.createElement("div",{className:Yn},"管理您的自定义3D模型素材")),V.default.createElement("button",{className:Zn,onClick:function(){return e.openUploadModal()}},V.default.createElement("span",null,"上传3D素材"))),V.default.createElement("div",{className:Qn},V.default.createElement("div",{className:Jn},V.default.createElement("div",{className:$n},"素材分类"),V.default.createElement("div",{className:"".concat(er," ").concat(tr," ").concat(v?ar:""),onClick:this.handleFirstClick},V.default.createElement("span",{className:lr},M?V.default.createElement(te.default,{size:"small"}):V.default.createElement(l?S.RightOutlined:S.DownOutlined,null)),V.default.createElement("span",{className:nr},"全部素材"),V.default.createElement("span",{className:rr},b)),!l&&!M&&x.map(function(t){var a=s===t.classifyId,n=d===t.classifyId,r=e.getThirdItems(t.classifyId);return V.default.createElement("div",{key:t.classifyId},V.default.createElement("div",{className:"".concat(er," ").concat(or," ").concat(n?ar:""),onClick:function(){return e.handleSecondClick(t)}},V.default.createElement("span",{className:lr},V.default.createElement(a?S.DownOutlined:S.RightOutlined,null)),V.default.createElement("span",{className:nr},t.name),V.default.createElement("span",{className:rr},t.materialCount)),a&&r.map(function(a){return V.default.createElement("div",{key:a.classifyId,className:"".concat(er," ").concat(ir," ").concat(d===a.classifyId?ar:""),onClick:function(){return e.handleThirdClick(Re(Re({},a),{},{parentId:t.classifyId}))}},V.default.createElement("span",{className:lr}),V.default.createElement("span",{className:nr},a.name),V.default.createElement("span",{className:rr},a.materialCount))}))})),V.default.createElement("div",{className:sr},V.default.createElement("div",{className:dr},V.default.createElement("span",{className:pr},o>0?"共 ".concat(o," 个素材"):""),V.default.createElement("span",{className:cr},V.default.createElement("span",{className:ur},"排序"),V.default.createElement("span",{className:mr},"最近更新"))),V.default.createElement("div",{className:fr},c?V.default.createElement("div",{className:_r},V.default.createElement(te.default,{size:"large"})):y?V.default.createElement("div",{className:gr},V.default.createElement(re.default,{image:re.default.PRESENTED_IMAGE_SIMPLE,description:"该分类暂无素材"})):V.default.createElement("div",{className:hr},V.default.createElement("div",{className:vr},r.map(function(t){return V.default.createElement("div",{key:t.materialId,className:e.getCardColClassName(t.materialId)},V.default.createElement("div",{className:br},V.default.createElement("div",{className:Mr},V.default.createElement("img",{src:Ur,alt:t.name,onError:function(e){e.target.src=Ur}})),V.default.createElement("div",{className:wr},V.default.createElement(ne.default,{title:t.name,placement:"bottom",overlayClassName:Sr},V.default.createElement("div",{className:Tr},t.name)),V.default.createElement("div",{className:Er},V.default.createElement("div",{className:Cr},V.default.createElement("span",{className:Lr},function(e){if(!e)return"--";var t=(e+"").split("?")[0].split("#")[0].split("/").pop()||"",a=t.includes(".")?t.split(".").pop():"";return a?a.toUpperCase():"--"}(t.url)),V.default.createElement("span",{className:Nr},"/"),V.default.createElement("span",{className:Lr},(a=Number(t.size))&&a>0?1024>a?"".concat(a," B"):1048576>a?"".concat((a/1024).toFixed(102400>a?1:0)," KB"):1073741824>a?"".concat((a/1048576).toFixed(104857600>a?1:0)," MB"):"".concat((a/1073741824).toFixed(1)," GB"):"--")),V.default.createElement("div",{className:kr},V.default.createElement("span",{className:Ir,role:"button",tabIndex:0},V.default.createElement("img",{src:g===t.materialId?tt:et,alt:"",width:24,height:24,className:Pr,draggable:!1,onClick:function(a){return e.handleToggleMore(t.materialId,a)}}))))),g===t.materialId&&V.default.createElement("div",{className:Ar},V.default.createElement("button",{type:"button",className:Rr,onClick:function(){return e.handleDelete(t)}},"删除"),V.default.createElement("button",{type:"button",className:Rr,onClick:function(){return e.openUploadModal(t)}},"编辑"))));var a})),V.default.createElement("div",{className:Dr},V.default.createElement(ae.default,{current:h,pageSize:_,total:o,onChange:this.handlePageChange,onShowSizeChange:this.handlePageChange,pageSizeOptions:Br,showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条")}})))))),V.default.createElement(jn,{visible:u,mode:m,material:p,onOk:this.handleUploadOk,onCancel:this.closeUploadModal,classify1Options:w,classify2Options:T,brandOptions:n,submitting:f}))}}])}(n.Component))||Fn,Fr={page:"douGongSchemeTemplate-module_page__3FenY",container:"douGongSchemeTemplate-module_container__28Kh7",listPane:"douGongSchemeTemplate-module_listPane__2vLv-",listPaneHidden:"douGongSchemeTemplate-module_listPaneHidden__1FlxT",topBar:"douGongSchemeTemplate-module_topBar__LDIKR",topSearch:"douGongSchemeTemplate-module_topSearch__apeWw",topRight:"douGongSchemeTemplate-module_topRight__nL1I5",readonlyTag:"douGongSchemeTemplate-module_readonlyTag__2Q6Hk",successToast:"douGongSchemeTemplate-module_successToast__3wAsJ",errorToast:"douGongSchemeTemplate-module_errorToast__2YRAD",ghostPrimaryButton:"douGongSchemeTemplate-module_ghostPrimaryButton__uWclq",primaryButton:"douGongSchemeTemplate-module_primaryButton__1kTUF",secondaryButton:"douGongSchemeTemplate-module_secondaryButton__2P2It",linkButton:"douGongSchemeTemplate-module_linkButton__3pWfb",tagButton:"douGongSchemeTemplate-module_tagButton__1QYbm",tinyTag:"douGongSchemeTemplate-module_tinyTag__waUqq",headerSection:"douGongSchemeTemplate-module_headerSection__3EeK5",titleBlock:"douGongSchemeTemplate-module_titleBlock__2fHU3",pageTitle:"douGongSchemeTemplate-module_pageTitle__2SHpl",pageDesc:"douGongSchemeTemplate-module_pageDesc__46Bk9",toolbar:"douGongSchemeTemplate-module_toolbar__6rt4u",toolbarLeft:"douGongSchemeTemplate-module_toolbarLeft__2fPEX",searchWrap:"douGongSchemeTemplate-module_searchWrap__18O1V",searchIcon:"douGongSchemeTemplate-module_searchIcon__2Zb5l",searchInput:"douGongSchemeTemplate-module_searchInput__2K_jd",statusFilterGroup:"douGongSchemeTemplate-module_statusFilterGroup__3eurH",statusFilterLabel:"douGongSchemeTemplate-module_statusFilterLabel__NfpNT",filterWrap:"douGongSchemeTemplate-module_filterWrap__3I8mB",filterTrigger:"douGongSchemeTemplate-module_filterTrigger__3CTf0",filterTriggerActive:"douGongSchemeTemplate-module_filterTriggerActive__1gpKF",filterTriggerText:"douGongSchemeTemplate-module_filterTriggerText__-tyTA",filterArrowOpen:"douGongSchemeTemplate-module_filterArrowOpen__35EOc",filterMenu:"douGongSchemeTemplate-module_filterMenu__2IR3a",filterOption:"douGongSchemeTemplate-module_filterOption__2OYSa",filterOptionActive:"douGongSchemeTemplate-module_filterOptionActive__2GDge",filterOptionText:"douGongSchemeTemplate-module_filterOptionText__a3LdL",quickTabs:"douGongSchemeTemplate-module_quickTabs__31Fp-",tagButtonActive:"douGongSchemeTemplate-module_tagButtonActive__1MNPi",statusFlowCard:"douGongSchemeTemplate-module_statusFlowCard__1GrXr",statusFlowHeader:"douGongSchemeTemplate-module_statusFlowHeader__1rpIs",statusFlowContent:"douGongSchemeTemplate-module_statusFlowContent__3WAoV",statusFlowSteps:"douGongSchemeTemplate-module_statusFlowSteps__1F6ma",flowStatus:"douGongSchemeTemplate-module_flowStatus__3-nmf",flowStatusWaiting:"douGongSchemeTemplate-module_flowStatusWaiting__3r1aO",flowStatusSynced:"douGongSchemeTemplate-module_flowStatusSynced__2Xv40",flowStatusPending:"douGongSchemeTemplate-module_flowStatusPending__2OsoZ",flowStatusLoaded:"douGongSchemeTemplate-module_flowStatusLoaded__3y62K",flowStatusFailed:"douGongSchemeTemplate-module_flowStatusFailed__2dg_T",statusFlowArrow:"douGongSchemeTemplate-module_statusFlowArrow__2bvD7",statusFlowNote:"douGongSchemeTemplate-module_statusFlowNote__Vjxx0",tableCard:"douGongSchemeTemplate-module_tableCard__29TC_",schemeTable:"douGongSchemeTemplate-module_schemeTable__2Wx66",tableCellText:"douGongSchemeTemplate-module_tableCellText__2qFGr",schemeName:"douGongSchemeTemplate-module_schemeName__1ceWV",schemeNameCell:"douGongSchemeTemplate-module_schemeNameCell__2nPKG",missingReplacementTag:"douGongSchemeTemplate-module_missingReplacementTag__Z9ch8",warningIcon:"douGongSchemeTemplate-module_warningIcon__2zRRw",missingReplacementText:"douGongSchemeTemplate-module_missingReplacementText__2zNKu",actionCell:"douGongSchemeTemplate-module_actionCell__3nl3R",tableEmpty:"douGongSchemeTemplate-module_tableEmpty__3Sn9M",thumbPlaceholder:"douGongSchemeTemplate-module_thumbPlaceholder__2CrEd",countTag:"douGongSchemeTemplate-module_countTag__1jVo7",detailStatusTag:"douGongSchemeTemplate-module_detailStatusTag__1XI4X",roomStatusTag:"douGongSchemeTemplate-module_roomStatusTag__1Y4t9",statusTag:"douGongSchemeTemplate-module_statusTag__3DER1",countSynced:"douGongSchemeTemplate-module_countSynced__2a7zL",statusSynced:"douGongSchemeTemplate-module_statusSynced__37Ne1",detailStatusPass:"douGongSchemeTemplate-module_detailStatusPass__2XvB-",roomStatusReady:"douGongSchemeTemplate-module_roomStatusReady__ybwdf",countMissing:"douGongSchemeTemplate-module_countMissing__2K--O",statusMissing:"douGongSchemeTemplate-module_statusMissing__2RxH8",statusPending:"douGongSchemeTemplate-module_statusPending__1ZWi1",detailStatusWarn:"douGongSchemeTemplate-module_detailStatusWarn__-Y94A",countFailed:"douGongSchemeTemplate-module_countFailed__nruJ2",statusFailed:"douGongSchemeTemplate-module_statusFailed__UopKP",countPending:"douGongSchemeTemplate-module_countPending__27xmW",statusLoaded:"douGongSchemeTemplate-module_statusLoaded__12k7U",statusWaitingSync:"douGongSchemeTemplate-module_statusWaitingSync__2jaah",linkButtonMuted:"douGongSchemeTemplate-module_linkButtonMuted__2oeN1",inlineRetryButton:"douGongSchemeTemplate-module_inlineRetryButton__3Vw7_",paginationInfo:"douGongSchemeTemplate-module_paginationInfo__1YZsz",detailPage:"douGongSchemeTemplate-module_detailPage__qtPSM",breadcrumb:"douGongSchemeTemplate-module_breadcrumb__c_H9-",backButton:"douGongSchemeTemplate-module_backButton__tVGM2",detailHeader:"douGongSchemeTemplate-module_detailHeader__3Seoj",detailTitle:"douGongSchemeTemplate-module_detailTitle__xXzXb",detailMeta:"douGongSchemeTemplate-module_detailMeta__2vP9V",detailNotice:"douGongSchemeTemplate-module_detailNotice__16CrR",detailLayout:"douGongSchemeTemplate-module_detailLayout__3mEQR",detailMain:"douGongSchemeTemplate-module_detailMain__29q-l",detailCard:"douGongSchemeTemplate-module_detailCard__394jb",sideCard:"douGongSchemeTemplate-module_sideCard__3g45N",roomsCard:"douGongSchemeTemplate-module_roomsCard__2Q6ug",cardTitle:"douGongSchemeTemplate-module_cardTitle__3yuFg",detailInfo:"douGongSchemeTemplate-module_detailInfo__Jz_Lc",detailPreviewButton:"douGongSchemeTemplate-module_detailPreviewButton__5jeiZ",detailPreviewHint:"douGongSchemeTemplate-module_detailPreviewHint__2TUEI",detailPreview:"douGongSchemeTemplate-module_detailPreview__VnC6W",detailGrid:"douGongSchemeTemplate-module_detailGrid__3lbSq",detailLabel:"douGongSchemeTemplate-module_detailLabel__3J5WH",tableNote:"douGongSchemeTemplate-module_tableNote__3D8p2",roomRow:"douGongSchemeTemplate-module_roomRow__31qry",roomCell:"douGongSchemeTemplate-module_roomCell__ZJpvG",roomHeader:"douGongSchemeTemplate-module_roomHeader__2uRoK",roomEmpty:"douGongSchemeTemplate-module_roomEmpty__24gXy",sideList:"douGongSchemeTemplate-module_sideList__3ICY7",sideRow:"douGongSchemeTemplate-module_sideRow__16PhL",sideEmpty:"douGongSchemeTemplate-module_sideEmpty__3y7N_",imagePreviewOverlay:"douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F",imagePreviewMask:"douGongSchemeTemplate-module_imagePreviewMask__7DYDG",imagePreviewPanel:"douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw",imagePreviewHeader:"douGongSchemeTemplate-module_imagePreviewHeader__reK51",imagePreviewTitle:"douGongSchemeTemplate-module_imagePreviewTitle__2yrsg",imagePreviewClose:"douGongSchemeTemplate-module_imagePreviewClose__302ry",imagePreviewBody:"douGongSchemeTemplate-module_imagePreviewBody__3bvip",imagePreviewMeta:"douGongSchemeTemplate-module_imagePreviewMeta__1Yfha",imagePreviewViewport:"douGongSchemeTemplate-module_imagePreviewViewport__32Vv9",imagePreviewViewportDragging:"douGongSchemeTemplate-module_imagePreviewViewportDragging__zJ7O-",imagePreviewImage:"douGongSchemeTemplate-module_imagePreviewImage__2c8eK",imagePreviewHint:"douGongSchemeTemplate-module_imagePreviewHint__2S7_k",imagePreviewFooter:"douGongSchemeTemplate-module_imagePreviewFooter__1vWfa",imagePreviewFooterButton:"douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt",imagePreviewOverlayOpen:"douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6",tinyTagWarn:"douGongSchemeTemplate-module_tinyTagWarn__3sn-j",tinyTagPending:"douGongSchemeTemplate-module_tinyTagPending__12CgZ",modalOverlay:"douGongSchemeTemplate-module_modalOverlay__1C-cc",modalMask:"douGongSchemeTemplate-module_modalMask__3A1yT",modalPanel:"douGongSchemeTemplate-module_modalPanel__2FV74",modalPanelOpen:"douGongSchemeTemplate-module_modalPanelOpen__5HYe-",modalHeader:"douGongSchemeTemplate-module_modalHeader__20Ezx",modalTitle:"douGongSchemeTemplate-module_modalTitle__2Ho1E",modalClose:"douGongSchemeTemplate-module_modalClose__36Aoz",modalBody:"douGongSchemeTemplate-module_modalBody__S30fF",modalText:"douGongSchemeTemplate-module_modalText__3GpW0",modalNotice:"douGongSchemeTemplate-module_modalNotice__2a08n",warnNotice:"douGongSchemeTemplate-module_warnNotice__2gdpe",modalMetaGrid:"douGongSchemeTemplate-module_modalMetaGrid__1b9uH",modalMetaLabel:"douGongSchemeTemplate-module_modalMetaLabel__1meX8",modalMetaValue:"douGongSchemeTemplate-module_modalMetaValue__3_xcX",modalFooter:"douGongSchemeTemplate-module_modalFooter__1WwN5",modalSecondaryButton:"douGongSchemeTemplate-module_modalSecondaryButton__1FbtV",modalOverlayOpen:"douGongSchemeTemplate-module_modalOverlayOpen__FnhSv"};je(".douGongSchemeTemplate-module_page__3FenY{height:100%;min-height:0;overflow:auto;background:#f5f5f7;color:#000f2c;font-size:14px}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7{padding:16px;height:100%;min-height:0;display:flex;flex-direction:column;font-family:PingFang SC,Microsoft YaHei,sans-serif;box-sizing:border-box}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_listPane__2vLv-{flex:1;min-height:0;overflow:auto}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_listPaneHidden__1FlxT{display:none}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR{height:49px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #eee;border-radius:8px 8px 0 0}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_topSearch__apeWw{width:320px;max-width:100%;height:32px;padding:0 12px;border:none;outline:none;border-radius:6px;background:#f0f2f5;color:#000f2c}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_topRight__nL1I5{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_topBar__LDIKR .douGongSchemeTemplate-module_readonlyTag__2Q6Hk{padding:2px 6px;border-radius:6px;background:#e7f3ff;color:#1890ff;font-size:10px;line-height:18px}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_successToast__3wAsJ{position:fixed;top:28px;left:50%;z-index:1100;margin:0;width:-moz-fit-content;width:fit-content;max-width:100%;padding:4px 12px;display:flex;align-items:center;gap:8px;border:none;border-radius:4px;background:#52b41f;color:#fff;font-size:13px;line-height:20px;box-shadow:0 6px 16px rgba(0,0,0,.12);transform:translateX(-50%)}.douGongSchemeTemplate-module_page__3FenY .douGongSchemeTemplate-module_successToast__3wAsJ.douGongSchemeTemplate-module_errorToast__2YRAD{background:#e5484d}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq,.douGongSchemeTemplate-module_linkButton__3pWfb,.douGongSchemeTemplate-module_primaryButton__1kTUF,.douGongSchemeTemplate-module_secondaryButton__2P2It,.douGongSchemeTemplate-module_tagButton__1QYbm,.douGongSchemeTemplate-module_tinyTag__waUqq{border:none;outline:none;cursor:pointer;transition:all .18s ease}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:disabled,.douGongSchemeTemplate-module_linkButton__3pWfb:disabled,.douGongSchemeTemplate-module_primaryButton__1kTUF:disabled,.douGongSchemeTemplate-module_secondaryButton__2P2It:disabled,.douGongSchemeTemplate-module_tagButton__1QYbm:disabled{cursor:not-allowed;opacity:.45}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq{height:32px;padding:0 14px;border-radius:6px;border:1px solid #1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:hover{border-color:#1890ff;background:#1890ff;color:#fff}.douGongSchemeTemplate-module_ghostPrimaryButton__uWclq:disabled:hover{border-color:#1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_primaryButton__1kTUF{height:32px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #1890ff;border-radius:4px;background:#1890ff;color:#fff;font-size:13px;font-weight:500;white-space:nowrap}.douGongSchemeTemplate-module_primaryButton__1kTUF:hover{border-color:#1890ff;background:#1890ff}.douGongSchemeTemplate-module_secondaryButton__2P2It{height:32px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid rgba(115,123,139,.4);border-radius:6px;background:#fff;color:#737b8b;font-size:14px;line-height:22px;font-weight:400;white-space:nowrap}.douGongSchemeTemplate-module_secondaryButton__2P2It:hover{border-color:#1890ff;background:#fff;color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5{min-height:40px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3{min-width:0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3 .douGongSchemeTemplate-module_pageTitle__2SHpl{margin:0;color:#000f2c;font-size:14px;line-height:20px;font-weight:500}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_headerSection__3EeK5 .douGongSchemeTemplate-module_titleBlock__2fHU3 .douGongSchemeTemplate-module_pageDesc__46Bk9{margin:2px 0 0;font-size:12px;line-height:18px;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u{margin-top:16px;display:flex;align-items:center;justify-content:flex-start;gap:16px;flex-wrap:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V{position:relative}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchIcon__2Zb5l{position:absolute;top:50%;left:12px;z-index:1;transform:translateY(-50%);color:#8b93a5;font-size:16px;pointer-events:none}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchInput__2K_jd{width:240px;max-width:100%;height:32px;padding:0 10px 0 34px;border:1px solid #fff;border-radius:6px;background:#fff;color:#000f2c;font-size:14px;line-height:22px;outline:none}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_searchWrap__18O1V .douGongSchemeTemplate-module_searchInput__2K_jd:focus{border-color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH{display:flex;align-items:center;gap:0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_statusFilterLabel__NfpNT{color:#000;font-size:14px;line-height:22px;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB{position:relative}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0{width:140px;height:32px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #fff;border-radius:4px;background:#fff;color:rgba(0,0,0,.7);cursor:pointer}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0.douGongSchemeTemplate-module_filterTriggerActive__1gpKF{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.08)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0 .douGongSchemeTemplate-module_filterTriggerText__-tyTA{max-width:106px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:14px;line-height:22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterTrigger__3CTf0 .douGongSchemeTemplate-module_filterArrowOpen__35EOc{transform:rotate(180deg)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a{position:absolute;top:calc(100% + 6px);left:0;z-index:12;width:140px;padding:5px;display:flex;flex-direction:column;gap:0;border:1px solid rgba(113,125,153,.3);border-radius:4px;background:#fff;box-shadow:0 3px 8px rgba(0,0,0,.16)}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa{width:100%;min-height:36px;padding:8px 10px;display:flex;align-items:center;border:none;border-radius:4px;background:transparent;text-align:left;color:#616778}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa:hover{background:#f7f8fa;cursor:pointer}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa.douGongSchemeTemplate-module_filterOptionActive__2GDge{background:#f2f3f5;color:#000f2c;font-weight:500}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_statusFilterGroup__3eurH .douGongSchemeTemplate-module_filterWrap__3I8mB .douGongSchemeTemplate-module_filterMenu__2IR3a .douGongSchemeTemplate-module_filterOption__2OYSa .douGongSchemeTemplate-module_filterOptionText__a3LdL{display:block;font-size:14px;line-height:22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp-{display:inline-flex;align-items:center;gap:0;padding:0;border-radius:4px;background:#fff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp- .douGongSchemeTemplate-module_tagButton__1QYbm{height:32px;padding:0 12px;border-radius:4px;background:transparent;color:#737b8b;font-size:13px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_toolbar__6rt4u .douGongSchemeTemplate-module_toolbarLeft__2fPEX .douGongSchemeTemplate-module_quickTabs__31Fp- .douGongSchemeTemplate-module_tagButton__1QYbm.douGongSchemeTemplate-module_tagButtonActive__1MNPi{background:#f0f2f5;color:#000f2c;font-weight:600}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr{height:100px;margin-top:16px;overflow:hidden;border-radius:6px;background:#fff;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowHeader__1rpIs{height:46px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid #f1f3f5;color:#000f2c;font-size:14px;line-height:20px;font-weight:500;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowContent__3WAoV{height:54px;padding:0 16px;display:flex;align-items:center;gap:12px;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowSteps__1F6ma{display:flex;align-items:center;gap:8px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf{height:22px;padding:1px 6px;display:inline-flex;align-items:center;border-radius:4px;font-size:14px;line-height:20px;font-weight:400;white-space:nowrap;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusWaiting__3r1aO{background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusSynced__2Xv40{background:#ecfef6;color:#079669}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusPending__2OsoZ{background:#fdf4d3;color:#d97707}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusLoaded__3y62K{background:#e7f3ff;color:#1890ff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_flowStatus__3-nmf.douGongSchemeTemplate-module_flowStatusFailed__2dg_T{background:#fef2f2;color:#dc2626}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowArrow__2bvD7{width:22px;height:22px;display:block;flex:0 0 22px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_statusFlowCard__1GrXr .douGongSchemeTemplate-module_statusFlowNote__Vjxx0{color:#737b8b;font-size:12px;line-height:18px;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_{margin-top:16px;border:1px solid #fff;border-radius:6px;background:#fff;overflow:hidden}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66{width:100%}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table{color:#000f2c;font-size:14px;font-weight:400}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-container{border-radius:6px 6px 0 0}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar{height:8px}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar-track{background:#f5f6f8}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-content::-webkit-scrollbar-thumb{border:2px solid #f5f6f8;border-radius:8px;background:#c5ccd6}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;font-weight:400;line-height:20px;white-space:nowrap;box-sizing:border-box}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;background:#fff;color:#000f2c;font-size:14px;line-height:20px;font-weight:400;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-cell-fix-right{background:#fff}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-thead .ant-table-cell-fix-right{background:#f0f2f5}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-table-placeholder .ant-table-cell{height:128px;color:#737b8b}.douGongSchemeTemplate-module_container__28Kh7 .douGongSchemeTemplate-module_tableCard__29TC_ .douGongSchemeTemplate-module_schemeTable__2Wx66 .ant-pagination{margin:16px 20px 20px}.douGongSchemeTemplate-module_schemeName__1ceWV,.douGongSchemeTemplate-module_tableCellText__2qFGr{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_schemeName__1ceWV{font-size:14px;line-height:20px}.douGongSchemeTemplate-module_schemeNameCell__2nPKG{min-width:0;display:flex;align-items:center;gap:8px}.douGongSchemeTemplate-module_schemeNameCell__2nPKG .douGongSchemeTemplate-module_schemeName__1ceWV{min-width:0;flex:0 1 auto}.douGongSchemeTemplate-module_schemeNameCell__2nPKG .douGongSchemeTemplate-module_missingReplacementTag__Z9ch8{flex:0 1 auto}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8{max-width:100%;height:22px;padding:0 7px;display:inline-flex;align-items:center;gap:4px;overflow:hidden;border-radius:4px;background:#fff4df;color:#d97707;font-size:12px;line-height:22px;cursor:help}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8 .douGongSchemeTemplate-module_warningIcon__2zRRw{width:14px;height:14px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid;border-radius:50%;font-size:10px;font-weight:600;line-height:12px}.douGongSchemeTemplate-module_missingReplacementTag__Z9ch8 .douGongSchemeTemplate-module_missingReplacementText__2zNKu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_actionCell__3nl3R{display:flex;align-items:center;gap:10px;white-space:nowrap}.douGongSchemeTemplate-module_tableEmpty__3Sn9M{min-height:64px;display:flex;align-items:center;justify-content:center;gap:8px}.douGongSchemeTemplate-module_thumbPlaceholder__2CrEd{display:flex;align-items:center;justify-content:center;color:#737b8b;font-size:12px}.douGongSchemeTemplate-module_countTag__1jVo7,.douGongSchemeTemplate-module_detailStatusTag__1XI4X,.douGongSchemeTemplate-module_roomStatusTag__1Y4t9{padding:1px 6px;border-radius:4px;font-size:12px;line-height:20px;white-space:nowrap}.douGongSchemeTemplate-module_statusTag__3DER1{padding:1px 6px;border-radius:4px;font-size:14px;line-height:20px;white-space:nowrap}.douGongSchemeTemplate-module_countSynced__2a7zL,.douGongSchemeTemplate-module_detailStatusPass__2XvB-,.douGongSchemeTemplate-module_roomStatusReady__ybwdf,.douGongSchemeTemplate-module_statusSynced__37Ne1{color:#079669;background:#ecfef6}.douGongSchemeTemplate-module_countMissing__2K--O,.douGongSchemeTemplate-module_detailStatusWarn__-Y94A,.douGongSchemeTemplate-module_statusMissing__2RxH8,.douGongSchemeTemplate-module_statusPending__1ZWi1{color:#d97707;background:#fdf4d3}.douGongSchemeTemplate-module_countFailed__nruJ2,.douGongSchemeTemplate-module_statusFailed__UopKP{color:#dc2626;background:#fef2f2}.douGongSchemeTemplate-module_countPending__27xmW,.douGongSchemeTemplate-module_statusLoaded__12k7U{color:#1890ff;background:#e7f3ff}.douGongSchemeTemplate-module_statusWaitingSync__2jaah{color:#737b8b;background:#f0f2f5}.douGongSchemeTemplate-module_linkButton__3pWfb{padding:0;background:transparent;color:#1890ff;font-size:14px;line-height:20px}.douGongSchemeTemplate-module_linkButtonMuted__2oeN1{color:#737b8b}.douGongSchemeTemplate-module_inlineRetryButton__3Vw7_{margin-left:10px;padding:0;border:none;background:transparent;color:#1890ff;cursor:pointer}.douGongSchemeTemplate-module_paginationInfo__1YZsz{margin-top:10px;color:#737b8b;font-size:12px;line-height:18px;text-align:right}.douGongSchemeTemplate-module_detailPage__qtPSM{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_breadcrumb__c_H9-{display:flex;align-items:center;gap:4px;font-size:13px;color:#737b8b}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_breadcrumb__c_H9- .douGongSchemeTemplate-module_backButton__tVGM2{padding:0;display:inline-flex;align-items:center;gap:3px;border:none;background:transparent;color:#737b8b;cursor:pointer}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj{margin-top:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj .douGongSchemeTemplate-module_detailTitle__xXzXb{margin:0;font-size:16px;line-height:22px;font-weight:600}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailHeader__3Seoj .douGongSchemeTemplate-module_detailMeta__2vP9V{margin-top:3px;color:#737b8b;font-size:12px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailNotice__16CrR{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fff;color:#737b8b;font-size:13px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR{flex:1;min-height:0;margin-top:14px;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:stretch}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailMain__29q-l{min-height:0;overflow:auto}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailCard__394jb,.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug,.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N{border-radius:12px;background:#fff;overflow:hidden}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_cardTitle__3yuFg{padding:14px 16px 10px;font-size:14px;font-weight:600}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc{padding:0 16px 16px;display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:center}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreviewButton__5jeiZ{position:relative;width:260px;height:146px;padding:0;overflow:hidden;border:none;border-radius:6px;background:#f0f2f5;cursor:zoom-in}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreviewButton__5jeiZ .douGongSchemeTemplate-module_detailPreviewHint__2TUEI{position:absolute;right:2px;bottom:2px;height:21px;padding:0 2px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:rgba(0,0,0,.8);color:#fff;font-size:14px;line-height:20px;white-space:nowrap;pointer-events:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreview__VnC6W{width:100%;height:100%;display:block;border-radius:6px;-o-object-fit:cover;object-fit:cover;background:#f0f2f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailPreview__VnC6W.douGongSchemeTemplate-module_thumbPlaceholder__2CrEd{display:flex}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailGrid__3lbSq{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px 16px;align-items:center;font-size:14px;line-height:20px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_detailInfo__Jz_Lc .douGongSchemeTemplate-module_detailGrid__3lbSq .douGongSchemeTemplate-module_detailLabel__3J5WH{color:#737b8b}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug{margin-top:12px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_tableNote__3D8p2{margin-left:auto;color:#a0a5b3;font-size:12px;font-weight:400}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry{display:grid;grid-template-columns:1fr 1fr 1fr 1fr}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry:last-child .douGongSchemeTemplate-module_roomCell__ZJpvG{border-bottom:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry .douGongSchemeTemplate-module_roomCell__ZJpvG{padding:11px 14px;border-bottom:1px solid #f1f3f5;font-size:12px;line-height:18px}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomRow__31qry .douGongSchemeTemplate-module_roomCell__ZJpvG.douGongSchemeTemplate-module_roomHeader__2uRoK{background:#f0f2f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_roomsCard__2Q6ug .douGongSchemeTemplate-module_roomEmpty__24gXy{padding:24px 16px;color:#737b8b;font-size:12px;line-height:18px;text-align:center}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N{display:flex;flex-direction:column;min-height:0}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_cardTitle__3yuFg{flex:0 0 auto}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideList__3ICY7{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideRow__16PhL{padding:0 16px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:44px;gap:12px;border-bottom:1px solid #f1f3f5}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideRow__16PhL:last-child{border-bottom:none}.douGongSchemeTemplate-module_detailPage__qtPSM .douGongSchemeTemplate-module_detailLayout__3mEQR .douGongSchemeTemplate-module_sideCard__3g45N .douGongSchemeTemplate-module_sideEmpty__3y7N_{padding:24px 16px;color:#737b8b;font-size:12px;line-height:18px;text-align:center}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F{position:fixed;inset:0;z-index:1200;font-family:PingFang SC,Microsoft YaHei,sans-serif}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewMask__7DYDG{position:absolute;inset:0;background:rgba(18,28,42,.3);opacity:0;transition:opacity .18s ease}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{position:absolute;left:50%;top:50%;width:800px;height:760px;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);overflow:hidden;border-radius:12px;background:#fff;opacity:0;transform:translate(-50%,-50%) scale(.96);transition:opacity .18s ease,transform .18s ease}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewHeader__reK51{height:52px;padding:0 16px 0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewTitle__2yrsg{color:#000;font-size:16px;line-height:20px;font-weight:600}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewClose__302ry{width:28px;height:28px;padding:0;border:none;background:transparent;color:#737b8b;font-size:16px;cursor:pointer}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewBody__3bvip{height:644px;padding:12px 24px 24px;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewMeta__1Yfha{height:23px;margin:0;overflow:hidden;color:#737b8b;font-size:14px;line-height:23px;text-overflow:ellipsis;white-space:nowrap}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9{position:relative;width:100%;height:573px;margin-top:12px;overflow:hidden;border-radius:12px;background:#f5f5f7;cursor:grab;-webkit-user-select:none;-moz-user-select:none;user-select:none}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9.douGongSchemeTemplate-module_imagePreviewViewportDragging__zJ7O-{cursor:grabbing}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewImage__2c8eK{width:100%;height:100%;display:block;-o-object-fit:cover;object-fit:cover;transform-origin:center;transition:transform .08s ease-out;pointer-events:none}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewHint__2S7_k{position:absolute;left:50%;bottom:32px;height:32px;padding:0 17px;display:inline-flex;align-items:center;justify-content:center;border:1px solid hsla(0,0%,100%,.16);border-radius:100px;background:rgba(0,0,0,.6);color:#fff;font-size:14px;line-height:20px;white-space:nowrap;transform:translateX(-50%);pointer-events:none;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooter__1vWfa{height:64px;padding-right:24px;display:flex;align-items:center;justify-content:flex-end;border-top:1px solid #dde1e6;box-sizing:border-box}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt{height:32px;padding:0 16px;border:1px solid #717d99;border-radius:4px;background:#fff;color:#737b8b;font-size:14px;line-height:22px;cursor:pointer}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewFooterButton__4XHqt:hover{border-color:#1890ff;color:#1890ff}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F.douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6 .douGongSchemeTemplate-module_imagePreviewMask__7DYDG{opacity:1}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F.douGongSchemeTemplate-module_imagePreviewOverlayOpen__2ULl6 .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{opacity:1;transform:translate(-50%,-50%) scale(1)}.douGongSchemeTemplate-module_tinyTag__waUqq{height:22px;padding:0 6px;border-radius:4px;background:#e7f3ff;color:#1890ff;font-size:12px;line-height:22px}.douGongSchemeTemplate-module_tinyTag__waUqq.douGongSchemeTemplate-module_tinyTagWarn__3sn-j{background:#fff4df;color:#f59e0b}.douGongSchemeTemplate-module_tinyTag__waUqq.douGongSchemeTemplate-module_tinyTagPending__12CgZ{background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc{position:fixed;inset:0;z-index:1000}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalMask__3A1yT{position:absolute;inset:0;background:rgba(18,28,42,.3)}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74{position:absolute;left:50%;top:50%;max-width:calc(100vw - 32px);border-radius:10px;background:#fff;overflow:hidden;transform:translate(-50%,-50%) scale(.96);opacity:0;transition:transform .18s ease,opacity .18s ease}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74.douGongSchemeTemplate-module_modalPanelOpen__5HYe-{transform:translate(-50%,-50%) scale(1);opacity:1}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx{height:48px;padding:0 16px 0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx .douGongSchemeTemplate-module_modalTitle__2Ho1E{font-size:15px;line-height:20px;font-weight:600;color:#000}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalHeader__20Ezx .douGongSchemeTemplate-module_modalClose__36Aoz{width:28px;height:28px;border:none;background:transparent;color:#737b8b;cursor:pointer}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF{padding:18px 24px 20px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalText__3GpW0{margin:0;color:#737b8b;font-size:13px;line-height:21px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalNotice__2a08n,.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_warnNotice__2gdpe{min-height:40px;padding:8px 12px 8px 10px;display:flex;align-items:center;gap:6px;border-radius:4px;font-size:12px;line-height:22px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalNotice__2a08n{margin-top:16px;background:#f0f2f5;color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_warnNotice__2gdpe{margin-top:0;background:rgba(250,173,20,.1);color:#f07618}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH{margin-top:24px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:12px 0;font-size:14px;line-height:24px}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH .douGongSchemeTemplate-module_modalMetaLabel__1meX8{color:#737b8b}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalBody__S30fF .douGongSchemeTemplate-module_modalMetaGrid__1b9uH .douGongSchemeTemplate-module_modalMetaValue__3_xcX{color:#000;word-break:break-all}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5{min-height:60px;padding:14px 24px;display:flex;align-items:center;justify-content:flex-end;gap:12px;border-top:1px solid #dde1e6}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5 .douGongSchemeTemplate-module_modalSecondaryButton__1FbtV{height:32px;padding:0 14px;border:1px solid #cfd5df;border-radius:4px;background:#fff;color:#5f6878;font-size:13px;cursor:pointer}.douGongSchemeTemplate-module_modalOverlay__1C-cc .douGongSchemeTemplate-module_modalPanel__2FV74 .douGongSchemeTemplate-module_modalFooter__1WwN5 .douGongSchemeTemplate-module_modalSecondaryButton__1FbtV:disabled{cursor:not-allowed;opacity:.5}.douGongSchemeTemplate-module_modalOverlay__1C-cc.douGongSchemeTemplate-module_modalOverlayOpen__FnhSv .douGongSchemeTemplate-module_modalPanel__2FV74{transform:translate(-50%,-50%) scale(1);opacity:1}@media (max-width:1200px){.douGongSchemeTemplate-module_detailLayout__3mEQR{grid-template-columns:1fr;overflow:auto}}@media (max-height:791px){.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewPanel__3Gqnw{height:calc(100vh - 32px)}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewBody__3bvip{height:calc(100vh - 148px)}.douGongSchemeTemplate-module_imagePreviewOverlay__3zn9F .douGongSchemeTemplate-module_imagePreviewViewport__32Vv9{height:calc(100vh - 219px)}}@media (max-width:900px){.douGongSchemeTemplate-module_detailHeader__3Seoj,.douGongSchemeTemplate-module_headerSection__3EeK5,.douGongSchemeTemplate-module_topBar__LDIKR{align-items:stretch;flex-direction:column}.douGongSchemeTemplate-module_filterTrigger__3CTf0,.douGongSchemeTemplate-module_searchInput__2K_jd,.douGongSchemeTemplate-module_toolbarLeft__2fPEX{width:100%}.douGongSchemeTemplate-module_searchWrap__18O1V,.douGongSchemeTemplate-module_statusFilterGroup__3eurH{flex:1 1 100%}.douGongSchemeTemplate-module_filterWrap__3I8mB,.douGongSchemeTemplate-module_statusFilterGroup__3eurH{width:100%}.douGongSchemeTemplate-module_quickTabs__31Fp-{width:100%;justify-content:flex-start;overflow-x:auto}.douGongSchemeTemplate-module_detailInfo__Jz_Lc{grid-template-columns:1fr}.douGongSchemeTemplate-module_detailPreview__VnC6W{width:100%;height:180px}}@media (max-width:640px){.douGongSchemeTemplate-module_container__28Kh7{padding:12px}.douGongSchemeTemplate-module_detailTitle__xXzXb{font-size:18px;line-height:26px}.douGongSchemeTemplate-module_roomRow__31qry{min-width:560px}.douGongSchemeTemplate-module_modalBody__S30fF,.douGongSchemeTemplate-module_modalFooter__1WwN5{padding-left:16px;padding-right:16px}.douGongSchemeTemplate-module_modalHeader__20Ezx{padding-left:16px}.douGongSchemeTemplate-module_modalFooter__1WwN5{gap:12px}}");function Or(e){var t=e.visible,a=e.scheme,r=e.onClose,o=e.onImageError,i=Ge(n.useState(t),2),l=i[0],s=i[1],d=Ge(n.useState(t),2),c=d[0],u=d[1],m=Ge(n.useState(1),2),p=m[0],f=m[1],h=Ge(n.useState({x:0,y:0}),2),_=h[0],g=h[1],v=Ge(n.useState(!1),2),y=v[0],x=v[1],b=n.useRef(null);if(n.useEffect(function(){var e=null;return t?(s(!0),f(1),g({x:0,y:0}),e=window.setTimeout(function(){return u(!0)},10)):l&&(u(!1),e=window.setTimeout(function(){s(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,l]),n.useEffect(function(){if(l){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&r&&r()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[r,l]),n.useEffect(function(){if(y){var e=function(e){if(b.current){var t=b.current;g({x:t.offsetX+e.clientX-t.startX,y:t.offsetY+e.clientY-t.startY})}},t=function(){b.current=null,x(!1)};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t)}}},[y]),!l||!a||!a.thumbnail)return null;return fe.default.createPortal(V.default.createElement("div",{className:"".concat(Fr.imagePreviewOverlay," ").concat(c?Fr.imagePreviewOverlayOpen:"")},V.default.createElement("div",{className:Fr.imagePreviewMask,onClick:r}),V.default.createElement("div",{className:"".concat(Fr.imagePreviewPanel," ").concat(c?Fr.imagePreviewPanelOpen:""),role:"dialog","aria-modal":"true","aria-label":"户型图预览"},V.default.createElement("div",{className:Fr.imagePreviewHeader},V.default.createElement("span",{className:Fr.imagePreviewTitle},"户型图预览"),V.default.createElement("button",{type:"button",className:Fr.imagePreviewClose,onClick:r,"aria-label":"关闭户型图预览"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Fr.imagePreviewBody},V.default.createElement("p",{className:Fr.imagePreviewMeta},"".concat(a.name||"--"," · 方案 ID:").concat(a.id||"--")),V.default.createElement("div",{className:"".concat(Fr.imagePreviewViewport," ").concat(y?Fr.imagePreviewViewportDragging:""),onWheel:function(e){e.preventDefault();var t=Math.min(4,Math.max(1,p+(0>e.deltaY?.15:-.15)));f(t),1===t&&g({x:0,y:0})},onMouseDown:function(e){0===e.button&&1!==p&&(b.current={startX:e.clientX,startY:e.clientY,offsetX:_.x,offsetY:_.y},x(!0))}},V.default.createElement("img",{src:a.thumbnail,alt:a.name,className:Fr.imagePreviewImage,style:{transform:"translate(".concat(_.x,"px, ").concat(_.y,"px) scale(").concat(p,")")},draggable:!1,onError:o}),V.default.createElement("span",{className:Fr.imagePreviewHint},"滚轮缩放 · 拖拽平移"))),V.default.createElement("div",{className:Fr.imagePreviewFooter},V.default.createElement("button",{type:"button",className:Fr.imagePreviewFooterButton,onClick:r},"关闭")))),document.body)}function Hr(e){var t=e.scheme,a=e.loading,r=e.error,o=e.onBack,i=e.onOpenRender,l=e.onRetry,s=Ge(n.useState(!1),2),d=s[0],c=s[1],u=Ge(n.useState(!1),2),m=u[0],p=u[1];if(!t)return null;var f="matched"===t.defaultModelStatus?{label:"匹配通过",className:Fr.detailStatusPass}:{label:"缺可替换项",className:Fr.detailStatusWarn};return V.default.createElement("div",{className:Fr.detailPage},V.default.createElement("div",{className:Fr.breadcrumb},V.default.createElement("button",{type:"button",className:Fr.backButton,onClick:o},V.default.createElement(S.LeftOutlined,null),V.default.createElement("span",null,"返回列表")),V.default.createElement("span",null,"/"),V.default.createElement("span",null,"方案详情")),V.default.createElement("div",{className:Fr.detailHeader},V.default.createElement("div",null,V.default.createElement("h2",{className:Fr.detailTitle},t.name),V.default.createElement("div",{className:Fr.detailMeta},"方案 ID:".concat(t.id," · ").concat(t.city||"--"," / ").concat(t.community||"--"," · 场景地址:").concat(t.sceneUrl||"--"))),V.default.createElement("button",{type:"button",className:Fr.primaryButton,onClick:function(){return i(t)}},"打开渲染平台")),a?V.default.createElement("div",{className:Fr.detailNotice},"方案详情加载中..."):null,!a&&r?V.default.createElement("div",{className:Fr.detailNotice},r,V.default.createElement("button",{type:"button",className:Fr.inlineRetryButton,onClick:function(){return l(t)}},"重新加载")):null,V.default.createElement("div",{className:Fr.detailLayout},V.default.createElement("div",{className:Fr.detailMain},V.default.createElement("div",{className:Fr.detailCard},V.default.createElement("div",{className:Fr.cardTitle},"方案信息"),V.default.createElement("div",{className:Fr.detailInfo},t.thumbnail&&!d?V.default.createElement("button",{type:"button",className:Fr.detailPreviewButton,onClick:function(){return p(!0)},"aria-label":"放大查看".concat(t.name||"","户型图")},V.default.createElement("img",{src:t.thumbnail,alt:t.name,className:Fr.detailPreview,onError:function(){return c(!0)}}),V.default.createElement("span",{className:Fr.detailPreviewHint},"点击放大")):V.default.createElement("div",{className:"".concat(Fr.detailPreview," ").concat(Fr.thumbPlaceholder)},"暂无截图"),V.default.createElement("div",{className:Fr.detailGrid},V.default.createElement("span",{className:Fr.detailLabel},"方案 ID"),V.default.createElement("span",null,t.id),V.default.createElement("span",{className:Fr.detailLabel},"城市 / 小区"),V.default.createElement("span",null,"".concat(t.city||"--"," / ").concat(t.community||"--")),V.default.createElement("span",{className:Fr.detailLabel},"户型"),V.default.createElement("span",null,t.houseType),V.default.createElement("span",{className:Fr.detailLabel},"默认模型"),V.default.createElement("span",{className:"".concat(Fr.detailStatusTag," ").concat(f.className)},f.label)))),V.default.createElement("div",{className:Fr.roomsCard},V.default.createElement("div",{className:Fr.cardTitle},"房间列表",V.default.createElement("span",{className:Fr.tableNote},"来自斗拱接口")),V.default.createElement("div",{className:Fr.tableScroll},V.default.createElement("div",{className:Fr.roomRow},V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"房间"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"空间标识"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"构件数量"),V.default.createElement("div",{className:"".concat(Fr.roomCell," ").concat(Fr.roomHeader)},"加载状态")),t.rooms&&t.rooms.length?t.rooms.map(function(e){var t=function(e){return"ready"===e?{label:"可加载",className:Fr.roomStatusReady}:{label:"待处理",className:Fr.detailStatusWarn}}(e.status);return V.default.createElement("div",{key:e.id||e.name,className:Fr.roomRow},V.default.createElement("div",{className:Fr.roomCell},e.name),V.default.createElement("div",{className:Fr.roomCell,title:e.info||"--"},e.info||"--"),V.default.createElement("div",{className:Fr.roomCell},e.count),V.default.createElement("div",{className:Fr.roomCell},V.default.createElement("span",{className:"".concat(Fr.roomStatusTag," ").concat(t.className)},t.label)))}):V.default.createElement("div",{className:Fr.roomEmpty},"暂无房间数据")))),V.default.createElement("div",{className:Fr.sideCard},V.default.createElement("div",{className:Fr.cardTitle},"三级分类构件"),V.default.createElement("div",{className:Fr.sideList},t.components&&t.components.length?t.components.map(function(e){return V.default.createElement("div",{key:e.id||e.name,className:Fr.sideRow},V.default.createElement("span",null,e.name),V.default.createElement("span",{className:"".concat(Fr.tinyTag," ").concat("warn"===e.tagType?Fr.tinyTagWarn:"pending"===e.tagType?Fr.tinyTagPending:"")},e.tag))}):V.default.createElement("div",{className:Fr.sideEmpty},"暂无构件数据")))),V.default.createElement(Or,{visible:m,scheme:t,onClose:function(){return p(!1)},onImageError:function(){c(!0),p(!1)}}))}var Vr="data:image/svg+xml,%3Csvg%20preserveAspectRatio%3D%22none%22%20overflow%3D%22visible%22%20style%3D%22display%3A%20block%3B%22%20width%3D%2222%22%20height%3D%2222%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20id%3D%22Frame%201435784736%22%20opacity%3D%220.5%22%3E%3Cpath%20id%3D%22Vector%201325%22%20d%3D%22M4%2011C4.4%2011%2013.1667%2011%2018%2011%22%20stroke%3D%22%23737B8B%22%20stroke-linecap%3D%22round%22%2F%3E%3Cpath%20id%3D%22Vector%201326%22%20d%3D%22M13.5%207L17.8203%2010.8403C17.9138%2010.9233%2017.9089%2011.0708%2017.8102%2011.1476L13.5%2014.5%22%20stroke%3D%22%23737B8B%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E";function jr(e){var t=e.visible,a=e.title,r=e.width,o=e.footer,i=e.onClose,l=e.children,s=Ge(n.useState(t),2),d=s[0],c=s[1],u=Ge(n.useState(t),2),m=u[0],p=u[1];return n.useEffect(function(){var e=null;return t?(c(!0),e=window.setTimeout(function(){p(!0)},10)):d&&(p(!1),e=window.setTimeout(function(){c(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,d]),n.useEffect(function(){if(d){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&i&&i()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[d,i]),d?fe.default.createPortal(V.default.createElement("div",{className:"".concat(Fr.modalOverlay," ").concat(m?Fr.modalOverlayOpen:"")},V.default.createElement("div",{className:Fr.modalMask,onClick:i}),V.default.createElement("div",{className:"".concat(Fr.modalPanel," ").concat(m?Fr.modalPanelOpen:""),style:{width:r||576}},V.default.createElement("div",{className:Fr.modalHeader},V.default.createElement("span",{className:Fr.modalTitle},a),V.default.createElement("button",{type:"button",className:Fr.modalClose,onClick:i,"aria-label":"关闭弹窗"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Fr.modalBody},l),o?V.default.createElement("div",{className:Fr.modalFooter},o):null)),document.body):null}function Wr(e){var t=e.syncing,a=e.onClose,n=e.onConfirm;return V.default.createElement(jr,{visible:e.visible,title:"同步斗拱方案",width:576,onClose:a,footer:V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:Fr.modalSecondaryButton,onClick:a,disabled:t},"取消"),V.default.createElement("button",{type:"button",className:Fr.primaryButton,onClick:n,disabled:t},t?"同步中...":"开始同步"))},V.default.createElement("p",{className:Fr.modalText},"从斗拱接收方案 ID、缩略图、城市、小区、户型、房间列表、一级分类构件、 构件位置/姿态和场景数据地址。"),V.default.createElement("div",{className:Fr.modalNotice},V.default.createElement(S.InfoCircleOutlined,null),V.default.createElement("span",null,"工作台只接收和展示斗拱方案,不向斗拱回写替换结果。")))}var qr=[{value:"all",label:"全部"},{value:"synced",label:"已同步"},{value:"pending",label:"待加载"},{value:"missingDefault",label:"缺默认模型"},{value:"failed",label:"加载失败"}],Kr={all:"全部",synced:"已同步",pending:"待加载",missingDefault:"缺默认模型",failed:"加载失败"},Xr={synced:1,pending:2,missingDefault:4,failed:3};function Yr(e){var t=e.active,a=e.schemes,r=e.pagination,o=e.loading,i=e.error,l=e.initialPageNo,s=e.onFetch,d=e.onClearReturnPage,c=e.onViewDetail,u=e.onOpenRender,m=e.onToast,p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState("all"),2),g=_[0],v=_[1],y=Ge(n.useState(!1),2),x=y[0],b=y[1],M=Ge(n.useState(!1),2),w=M[0],T=M[1],E=Ge(n.useState(!1),2),C=E[0],N=E[1],L=Ge(n.useState(240),2),k=L[0],I=L[1],P=n.useRef(null),A=n.useRef(null),R=n.useRef(l||1);n.useEffect(function(){var e=R.current||1;R.current=1,l&&d();var t=window.setTimeout(function(){s({pageNo:e,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]})},300);return function(){return window.clearTimeout(t)}},[r.pageSize,f,g]),n.useEffect(function(){if(x){var e=function(e){P.current&&!P.current.contains(e.target)&&b(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}},[x]);var D=n.useMemo(function(){var e=f.trim().toLowerCase();return a.filter(function(t){return(!e||[t.name,t.id,t.city,t.community,t.houseType,t.spaces,t.area,t.componentCount,t.syncTime].join(" ").toLowerCase().indexOf(e)>-1)&&("all"===g||t.status===g)})},[a,f,g]);n.useEffect(function(){if(t){var e=function(){if(A.current){var e=A.current.getBoundingClientRect().top;I(Math.max(240,Math.floor(window.innerHeight-e-128)))}};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}},[t,o,D.length]);var z=function(){var e=we(ze().m(function e(){var t,n,o,i,l;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!C){e.n=1;break}return e.a(2);case 1:return N(!0),t=r.totalSize||a.length,e.p=2,e.n=3,s({pageNo:1,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]});case 3:if((o=e.v)&&200===o.code&&!1!==o.success){e.n=4;break}throw Error(o&&o.message||"同步失败,请稍后重试");case 4:i=Number((null==o||null===(n=o.value)||void 0===n?void 0:n.totalSize)||t),l=Math.max(0,i-t),T(!1),m(l>0?"同步完成:新增 ".concat(l," 个斗拱方案"):"同步完成:暂无新增斗拱方案",!1),e.n=6;break;case 5:e.p=5,m(e.v.message||"同步失败,请稍后重试",!0);case 6:return e.p=6,N(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),U=[{title:"方案模版名称",dataIndex:"name",width:361,render:function(e,t){var a=t.missingReplacementClassifyNames||[],n=a.length?"缺可替换项(".concat(a.join("、"),")"):"缺可替换项";return V.default.createElement("div",{className:Fr.schemeNameCell},V.default.createElement("span",{className:Fr.schemeName,title:e||"--"},e||"--"),t.hasMissingReplacement?V.default.createElement(ne.default,{title:n,placement:"topLeft"},V.default.createElement("span",{className:Fr.missingReplacementTag},V.default.createElement("span",{className:Fr.warningIcon},"!"),V.default.createElement("span",{className:Fr.missingReplacementText},a.length>1?"缺可替换项(".concat(a.length,")"):n))):null)}},{title:"方案模板ID",dataIndex:"templateId",width:249,ellipsis:!0,render:function(e,t){return V.default.createElement("span",{className:Fr.tableCellText,title:e||t.id||"--"},e||t.id||"--")}},{title:"版本",dataIndex:"version",width:82,render:function(e){return e||"--"}},{title:"状态",dataIndex:"status",width:106,render:function(e){var t,a=(t={synced:{label:"已同步",className:Fr.statusSynced},failed:{label:"加载失败",className:Fr.statusFailed},pending:{label:"待加载",className:Fr.statusPending},loaded:{label:"已加载",className:Fr.statusLoaded},waitingSync:{label:"待同步",className:Fr.statusWaitingSync},syncFailed:{label:"同步失败",className:Fr.statusFailed},missingDefault:{label:"缺默认模型",className:Fr.statusMissing}})[e]||t.pending;return V.default.createElement("span",{className:"".concat(Fr.statusTag," ").concat(a.className)},a.label)}},{title:"同步时间",dataIndex:"syncTime",width:238,ellipsis:!0,render:function(e){return V.default.createElement("span",{className:Fr.tableCellText,title:e||"--"},e||"--")}},{title:"操作",key:"actions",width:166,fixed:"right",render:function(e,t){return V.default.createElement("div",{className:Fr.actionCell},V.default.createElement("button",{type:"button",className:Fr.linkButton,onClick:function(){return c(t)}},"查看详情"),V.default.createElement("button",{type:"button",className:Fr.linkButton,onClick:function(){return u(t)}},"打开渲染"))}}],B=i?V.default.createElement("div",{className:Fr.tableEmpty},V.default.createElement("span",null,i),V.default.createElement("button",{type:"button",className:Fr.inlineRetryButton,onClick:function(){return s({pageNo:r.pageNo||1,pageSize:r.pageSize||20,condition:f.trim(),status:Xr[g]})}},"重新加载")):"暂无符合条件的斗拱方案",G=r.totalSize||0;return V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Fr.headerSection},V.default.createElement("div",{className:Fr.titleBlock},V.default.createElement("h2",{className:Fr.pageTitle},"斗拱方案模版"),V.default.createElement("p",{className:Fr.pageDesc},"来自斗拱的设计方案母版,只读不可修改。选择后打开到渲染平台进行展示和替换。")),V.default.createElement("button",{type:"button",className:Fr.secondaryButton,onClick:function(){return T(!0)}},V.default.createElement(S.SyncOutlined,null),"同步斗拱方案")),V.default.createElement("div",{className:Fr.toolbar},V.default.createElement("div",{className:Fr.toolbarLeft},V.default.createElement("div",{className:Fr.searchWrap},V.default.createElement(S.SearchOutlined,{className:Fr.searchIcon}),V.default.createElement("input",{value:f,onChange:function(e){return h(e.target.value)},className:Fr.searchInput,placeholder:"搜索方案ID/名称"})),V.default.createElement("div",{className:Fr.statusFilterGroup},V.default.createElement("span",{className:Fr.statusFilterLabel},"状态:"),V.default.createElement("div",{className:Fr.filterWrap,ref:P},V.default.createElement("button",{type:"button",className:"".concat(Fr.filterTrigger," ").concat(x?Fr.filterTriggerActive:""),onClick:function(){return b(function(e){return!e})}},V.default.createElement("span",{className:Fr.filterTriggerText},Kr[g]),V.default.createElement(S.DownOutlined,{className:x?Fr.filterArrowOpen:""})),x?V.default.createElement("div",{className:Fr.filterMenu},qr.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",className:"".concat(Fr.filterOption," ").concat(e.value===g?Fr.filterOptionActive:""),onClick:function(){v(e.value),b(!1)}},V.default.createElement("span",{className:Fr.filterOptionText},e.label))})):null)))),V.default.createElement("div",{className:Fr.statusFlowCard},V.default.createElement("div",{className:Fr.statusFlowHeader},"状态流转说明"),V.default.createElement("div",{className:Fr.statusFlowContent},V.default.createElement("div",{className:Fr.statusFlowSteps},V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusWaiting)},"待同步"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusSynced)},"已同步"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusPending)},"待加载"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusLoaded)},"已加载"),V.default.createElement("img",{src:Vr,className:Fr.statusFlowArrow,alt:""}),V.default.createElement("span",{className:"".concat(Fr.flowStatus," ").concat(Fr.flowStatusFailed)},"加载失败")),V.default.createElement("span",{className:Fr.statusFlowNote},"自动导入验证后回写状态"))),V.default.createElement("div",{ref:A,className:Fr.tableCard},V.default.createElement(he.default,{className:Fr.schemeTable,columns:U,dataSource:i?[]:D,rowKey:"id",loading:{spinning:o,tip:"斗拱方案加载中..."},locale:{emptyText:B},pagination:!i&&G>(r.pageSize||20)&&{current:r.pageNo||1,pageSize:r.pageSize||20,total:G,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}},onChange:function(e){return s({pageNo:e.current,pageSize:e.pageSize,condition:f.trim(),status:Xr[g]})},scroll:{x:1202,y:k},size:"small",tableLayout:"fixed"})),V.default.createElement(Wr,{visible:w,syncing:C,onClose:function(){C||T(!1)},onConfirm:z}))}function Zr(e){var t=new URLSearchParams;return t.set("mode","render"),t.set("schemeId",e.schemeId),t.set("sourceId",e.id),t.set("returnPath","/douGongSchemeTemplate"),"?"+t}var Qr=a.connect(function(e){return{schemeWorkbench:e.schemeWorkbench}})(function(e){var t=e.dispatch,a=e.schemeWorkbench,r=a.douGongSchemes,o=a.douGongPagination,i=a.douGongReturnPageNo,l=a.douGongLoading,s=a.douGongError,d=a.douGongDetailLoading,u=a.douGongDetailError,m=Ge(n.useState(""),2),p=m[0],f=m[1],h=Ge(n.useState({text:"",error:!1}),2),_=h[0],g=h[1];n.useEffect(function(){if(_.text){var e=window.setTimeout(function(){return g({text:"",error:!1})},3e3);return function(){return window.clearTimeout(e)}}},[_.text]);var v=n.useMemo(function(){return r.find(function(e){return e.id===p})||null},[p,r]),y=function(e){f(e.id),t({type:"schemeWorkbench/fetchDouGongSchemeDetail",payload:{schemeId:e.id}})},x=function(e){t({type:"schemeWorkbench/updateState",payload:{douGongRenderPageNo:o.pageNo||1}}),window.dispatchEvent(new CustomEvent("onDecoratePageChange",{detail:{path:"/myScheme",title:"平台方案"}})),t(c.routerRedux.push({pathname:"/myScheme",search:Zr(e)}))};return V.default.createElement("div",{className:Fr.page},V.default.createElement("div",{className:Fr.container},V.default.createElement("div",{className:"".concat(Fr.listPane," ").concat(p?Fr.listPaneHidden:"")},V.default.createElement(Yr,{active:!p,schemes:r,pagination:o,loading:l,error:s,initialPageNo:i,onFetch:function(e){return t({type:"schemeWorkbench/fetchDouGongSchemes",payload:e})},onClearReturnPage:function(){return t({type:"schemeWorkbench/updateState",payload:{douGongReturnPageNo:null}})},onViewDetail:y,onOpenRender:x,onToast:function(e,t){return g({text:e,error:t})}})),p?V.default.createElement(Hr,{scheme:v,loading:d,error:u,onBack:function(){return f("")},onOpenRender:x,onRetry:y}):null),_.text?V.default.createElement("div",{className:"".concat(Fr.successToast," ").concat(_.error?Fr.errorToast:""),role:"status"},V.default.createElement(S.CheckCircleFilled,null),V.default.createElement("span",null,_.text)):null)}),Jr=["containerClassName","scroll"],$r=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).wrapRef=null,e.resizeObserver=null,e.frame=null,e.state={scrollY:void 0},e.setWrapRef=function(t){e.wrapRef=t},e.scheduleUpdate=function(){e.frame&&window.cancelAnimationFrame(e.frame),e.frame=window.requestAnimationFrame(function(){e.frame=null,e.updateScrollY()})},e.updateScrollY=function(){var t=e.wrapRef;if(t){var a=t.querySelector(".ant-table-thead"),n=t.querySelector(".ant-pagination"),r=a?a.getBoundingClientRect().height:0,o=0;if(n){var i=window.getComputedStyle(n);o=n.getBoundingClientRect().height+parseFloat(i.marginTop||0)+parseFloat(i.marginBottom||0)}var l=Math.floor(t.clientHeight-r-o);l>0&&l!==e.state.scrollY&&e.setState({scrollY:l})}},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.scheduleUpdate),this.wrapRef&&window.ResizeObserver&&(this.resizeObserver=new window.ResizeObserver(this.scheduleUpdate),this.resizeObserver.observe(this.wrapRef)),this.scheduleUpdate()}},{key:"componentDidUpdate",value:function(){this.scheduleUpdate()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.scheduleUpdate),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.frame&&(window.cancelAnimationFrame(this.frame),this.frame=null)}},{key:"render",value:function(){var e=this.props,t=e.containerClassName,a=e.scroll,n=De(e,Jr),r=this.state.scrollY,o=r?Re(Re({},a),{},{y:r}):a;return V.default.createElement("div",{className:t,ref:this.setWrapRef},V.default.createElement(he.default,Le({},n,{scroll:o})))}}])}(n.Component),eo={wrap:"defaultMappingTable-module_wrap__26GVw",tip:"defaultMappingTable-module_tip__jwBvS",tableCard:"defaultMappingTable-module_tableCard__AVZwu",primaryCell:"defaultMappingTable-module_primaryCell__16PKI",valueTag:"defaultMappingTable-module_valueTag__DDsxU",valueEmpty:"defaultMappingTable-module_valueEmpty__2BXyU"};je(".defaultMappingTable-module_wrap__26GVw{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.defaultMappingTable-module_wrap__26GVw .ant-table-cell,.defaultMappingTable-module_wrap__26GVw .ant-table-cell *,.defaultMappingTable-module_wrap__26GVw .ant-table-tbody>tr>td,.defaultMappingTable-module_wrap__26GVw .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.defaultMappingTable-module_tip__jwBvS{flex-shrink:0;margin:0;font-size:13px;color:#8c8c8c}.defaultMappingTable-module_tableCard__AVZwu{background:#fff;border-radius:6px;padding:1px}.defaultMappingTable-module_tableCard__AVZwu,.defaultMappingTable-module_tableCard__AVZwu .ant-spin-container,.defaultMappingTable-module_tableCard__AVZwu .ant-spin-nested-loading,.defaultMappingTable-module_tableCard__AVZwu .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.defaultMappingTable-module_tableCard__AVZwu .ant-table{flex:1;min-height:0}.defaultMappingTable-module_tableCard__AVZwu .ant-table-container{height:100%}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th{background:#f0f2f5!important;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;padding:7.5px 12px!important;border:none!important;border-bottom:1px solid #f0f0f0!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th:before{display:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-thead>tr>th:first-child{border:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-cell{padding:12px 14px!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr>td{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:not(:last-child)>td{border-bottom:1px solid #f0f0f0!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:last-child>td{border-bottom:none!important}.defaultMappingTable-module_tableCard__AVZwu .ant-table-tbody>tr:hover>td{background:#f5f7fa}.defaultMappingTable-module_primaryCell__16PKI{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;letter-spacing:0;vertical-align:middle;color:#000f2c}.defaultMappingTable-module_valueTag__DDsxU{background:#e6f4ff;color:#1890ff}.defaultMappingTable-module_valueEmpty__2BXyU,.defaultMappingTable-module_valueTag__DDsxU{max-width:100%;padding:1px 6px;border-radius:4px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.defaultMappingTable-module_valueEmpty__2BXyU{background:#f0f2f5;color:#737b8b}");var to=function(e){var t=e.rows,a=e.type,n=void 0===a?"model":a,r=e.loading,o=void 0!==r&&r,i=e.onPick,l=function(e){for(var t=e.map(function(e,t){return Re(Re({},e),{},{_primaryRowSpan:1,_secondaryRowSpan:1,_hidePrimary:!1,_hideSecondary:!1})}),a=0;t.length>a;){for(var n=t[a],r=a+1;t.length>r&&t[r].primaryCategory===n.primaryCategory;)r++;t[a]._primaryRowSpan=r-a;for(var o=a+1;r>o;o++)t[o]._hidePrimary=!0;for(var i=a;r>i;){for(var l=t[i],s=i+1;r>s&&t[s].secondaryCategory===l.secondaryCategory;)s++;t[i]._secondaryRowSpan=s-i;for(var d=i+1;s>d;d++)t[d]._hideSecondary=!0;i=s}a=r}return t}(void 0===t?[]:t),s="texture"===n?"默认材质":"默认素材",d=[{title:"一级分类",dataIndex:"primaryCategory",key:"primaryCategory",width:290,onCell:function(e){return e._hidePrimary?{rowSpan:0,style:{borderLeft:"none",borderRight:"none",borderBottom:"none"}}:{rowSpan:e._primaryRowSpan,style:{borderLeft:"none"}}},render:function(e){return V.default.createElement("span",{className:eo.primaryCell},e)}},{title:"二级分类",dataIndex:"secondaryCategory",key:"secondaryCategory",width:297,onCell:function(e){return e._hideSecondary?{rowSpan:0,style:{borderLeft:"none",borderRight:"none",borderBottom:"none"}}:{rowSpan:e._secondaryRowSpan,style:{borderLeft:"1px solid #F0F0F0",borderRight:"1px solid #F0F0F0"}}}},{title:"三级分类",dataIndex:"tertiaryCategory",key:"tertiaryCategory",width:216,onCell:function(){return{style:{borderRight:"none"}}}},{title:s,dataIndex:"defaultValue",key:"defaultValue",width:271,onCell:function(){return{style:{borderRight:"none"}}},render:function(e,t){return t.hasValue&&e?V.default.createElement(ne.default,{title:e},V.default.createElement("span",{className:eo.valueTag},e)):V.default.createElement("span",{className:eo.valueEmpty},"未配置")}},{title:"操作",key:"actions",width:128,align:"center",onCell:function(){return{style:{borderRight:"none"}}},render:function(e,t){return V.default.createElement(Y.default,{size:"small",type:"link",className:eo.pickBtn,onClick:function(){return e=t,void("function"==typeof i?i(e):O.default.info("切换".concat(s,"(").concat(e.tertiaryCategory,")")));var e}},t.hasValue?"更换":"设置",t.hasValue?"":"texture"===n?"材质":"素材")}}];return V.default.createElement("div",{className:eo.wrap},V.default.createElement("p",{className:eo.tip},"texture"===n?"配置每个三级分类的默认材质贴图。材质素材默认选此配置。":"配置每个三级分类的默认3D素材。当斗拱方案中的商品只有三级分类、无具体素材ID时,加载此处配置的默认素材。"),V.default.createElement($r,{containerClassName:eo.tableCard,size:"middle",pagination:!1,loading:o,rowKey:function(e){return"".concat(e.primaryCategory,"-").concat(e.secondaryCategory,"-").concat(e.tertiaryCategory)},dataSource:l,columns:d}))},ao="LazyImage-module_image__1KT6F",no="LazyImage-module_placeholder__3GlK4",ro="LazyImage-module_preloadImage__20QyX";je(".LazyImage-module_image__1KT6F{display:block}.LazyImage-module_placeholder__3GlK4{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:#f0f2f5;font-size:10px;white-space:nowrap;overflow:hidden;color:#737b8b}.LazyImage-module_preloadImage__20QyX{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}");var oo=function(e){function t(e){var a;return Te(this,t),(a=Se(this,t,[e])).setImageRef=function(e){a.imageNode=e},a.setLoadingImageRef=function(e){a.loadingImageNode=e},a.observeImage=function(){if(a.props.src&&a.imageNode)if(window.IntersectionObserver){var e=a.imageNode.closest("[data-lazy-scroll-root], .ant-table-body"),t=Math.max(e?e.clientHeight:window.innerHeight,200);a.observer=new window.IntersectionObserver(function(e){e.some(function(e){return e.isIntersecting})&&(a.setState({shouldLoad:!0}),a.disconnectObserver())},{root:e||null,rootMargin:"".concat(t,"px 0px")}),a.observer.observe(a.imageNode)}else a.setState({shouldLoad:!0})},a.disconnectObserver=function(){a.observer&&(a.observer.disconnect(),a.observer=null)},a.handleError=function(){a.setState({loadFailed:!0})},a.handleLoad=function(){a.setState({imageLoaded:!0})},a.state={observedSrc:e.src,shouldLoad:!1,loadFailed:!1,imageLoaded:!1},a}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.observeImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(this.disconnectObserver(),this.setState({observedSrc:this.props.src,shouldLoad:!1,loadFailed:!1,imageLoaded:!1},this.observeImage))}},{key:"componentWillUnmount",value:function(){this.disconnectObserver(),this.imageNode&&this.imageNode.removeAttribute("src"),this.loadingImageNode&&this.loadingImageNode.removeAttribute("src")}},{key:"render",value:function(){var e=this.props,t=e.src,a=e.alt,n=e.className,r=void 0===n?"":n,o=this.state,i=o.observedSrc===t,l=i&&o.loadFailed,s=i&&o.shouldLoad&&!l?t:void 0;return i&&o.imageLoaded&&s?V.default.createElement("img",{ref:this.setImageRef,src:s,alt:void 0===a?"":a,className:"".concat(ao," ").concat(r),decoding:"async",onError:this.handleError}):V.default.createElement("span",{ref:this.setImageRef,className:"".concat(no," ").concat(r)},t&&!l?"加载中":null,s?V.default.createElement("img",{ref:this.setLoadingImageRef,src:s,alt:"",className:ro,loading:"lazy",decoding:"async",onLoad:this.handleLoad,onError:this.handleError}):null)}}])}(n.Component),io="Toast-module_toast__12u8N",lo="Toast-module_error__fqb0U";je(".Toast-module_toast__12u8N{position:fixed;top:28px;left:50%;transform:translateX(-50%);z-index:1300;width:-moz-fit-content;width:fit-content;min-width:0;max-width:calc(100vw - 48px);min-height:28px;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #6ab015;border-radius:5px;background:#6ab015;color:#fff;font-size:12px;line-height:18px;box-shadow:0 6px 18px rgba(15,23,42,.12);box-sizing:border-box}.Toast-module_toast__12u8N .anticon{flex-shrink:0;color:#fff;font-size:13px}.Toast-module_toast__12u8N span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Toast-module_error__fqb0U{border-color:#ff4d4f;background:#ff4d4f}");var so=function(e){var t=e.message,a=e.type,r=void 0===a?"success":a,o=e.duration,i=void 0===o?2600:o,l=e.toastKey,s=Ge(n.useState(!1),2),d=s[0],c=s[1];return n.useEffect(function(){if(t){c(!0);var e=window.setTimeout(function(){c(!1)},i);return function(){return window.clearTimeout(e)}}c(!1)},[t,i,l]),d?V.default.createElement("div",{className:"".concat(io," ").concat("error"===r?lo:"")},V.default.createElement("error"===r?S.CloseCircleFilled:S.CheckCircleFilled,null),V.default.createElement("span",null,t)):null};function co(){return uo.apply(this,arguments)}function uo(){return uo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listLevel1Classify",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),uo.apply(this,arguments)}function mo(){return po.apply(this,arguments)}function po(){return po=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listClassifyTree",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),po.apply(this,arguments)}function fo(){return ho.apply(this,arguments)}function ho(){return ho=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageClassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ho.apply(this,arguments)}function _o(){return go.apply(this,arguments)}function go(){return go=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/deleteMaterial",method:"post",params:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),go.apply(this,arguments)}function vo(){return yo.apply(this,arguments)}function yo(){return yo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/countSkuByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),yo.apply(this,arguments)}function xo(){return bo.apply(this,arguments)}function bo(){return bo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/materialBrand/countSkuByBrand",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),bo.apply(this,arguments)}function Mo(){return wo.apply(this,arguments)}function wo(){return(wo=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/generateSkuId",method:"post",data:{}}))},e)}))).apply(this,arguments)}function So(){return To.apply(this,arguments)}function To(){return To=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/pageSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),To.apply(this,arguments)}function Eo(){return Co.apply(this,arguments)}function Co(){return Co=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/statSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Co.apply(this,arguments)}function No(){return Lo.apply(this,arguments)}function Lo(){return Lo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/exportSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},responseType:"blob"}))},e)})),Lo.apply(this,arguments)}function ko(){return Io.apply(this,arguments)}function Io(){return(Io=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/exportSkuTemplate",method:"post",data:{},responseType:"blob"}))},e)}))).apply(this,arguments)}function Po(){return Ao.apply(this,arguments)}function Ao(){return Ao=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/validateImportSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},headers:{"Content-Type":"multipart/form-data"}}))},e)})),Ao.apply(this,arguments)}function Ro(){return Do.apply(this,arguments)}function Do(){return Do=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/importSkuWithGeneratedId",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},headers:{"Content-Type":"multipart/form-data"}}))},e)})),Do.apply(this,arguments)}function zo(){return Uo.apply(this,arguments)}function Uo(){return(Uo=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/myMaterialList",method:"post"}))},e)}))).apply(this,arguments)}function Bo(){return Go.apply(this,arguments)}function Go(){return Go=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-scene-server/material/bindModel",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Go.apply(this,arguments)}function Fo(){return Oo.apply(this,arguments)}function Oo(){return Oo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/queryMaterialAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Oo.apply(this,arguments)}function Ho(){return Vo.apply(this,arguments)}function Vo(){return Vo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/bindModel",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Vo.apply(this,arguments)}function jo(){return Wo.apply(this,arguments)}function Wo(){return Wo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/saveModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Wo.apply(this,arguments)}function qo(){return Ko.apply(this,arguments)}function Ko(){return Ko=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/generateModelAssetIds",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},transformResponse:[function(e){if("string"!=typeof e)return e;var t=e.replace(/(:|\[|,)\s*(\d{16,})(?=\s*[,}\]])/g,'$1"$2"');try{return JSON.parse(t)}catch(t){return e}}]}))},e)})),Ko.apply(this,arguments)}function Xo(){return Yo.apply(this,arguments)}function Yo(){return Yo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/batchSaveModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Yo.apply(this,arguments)}function Zo(){return Qo.apply(this,arguments)}function Qo(){return Qo=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageUnclassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Qo.apply(this,arguments)}function Jo(){return $o.apply(this,arguments)}function $o(){return $o=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/pageClassifiedModels",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),$o.apply(this,arguments)}function ei(){return ti.apply(this,arguments)}function ti(){return ti=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/countModelByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ti.apply(this,arguments)}function ai(){return ni.apply(this,arguments)}function ni(){return ni=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/countTextureByClassify",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ni.apply(this,arguments)}function ri(){return oi.apply(this,arguments)}function oi(){return oi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/queryClassifyDefaults",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),oi.apply(this,arguments)}function ii(){return li.apply(this,arguments)}function li(){return li=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/saveClassifyDefault",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),li.apply(this,arguments)}function si(){return di.apply(this,arguments)}function di(){return di=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/modelAssets/queryModelAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),di.apply(this,arguments)}function ci(){return ui.apply(this,arguments)}function ui(){return ui=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/queryTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ui.apply(this,arguments)}function mi(){return pi.apply(this,arguments)}function pi(){return pi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/pageUnclassifiedTextures",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),pi.apply(this,arguments)}function fi(){return hi.apply(this,arguments)}function hi(){return hi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/pageClassifiedTextures",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),hi.apply(this,arguments)}function _i(){return gi.apply(this,arguments)}function gi(){return gi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/saveSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),gi.apply(this,arguments)}function vi(){return yi.apply(this,arguments)}function yi(){return yi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listClassifyTree",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),yi.apply(this,arguments)}function xi(){return bi.apply(this,arguments)}function bi(){return bi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/saveTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),bi.apply(this,arguments)}function Mi(){return wi.apply(this,arguments)}function wi(){return wi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/generateTextureAssetIds",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{},transformResponse:[function(e){if("string"!=typeof e)return e;var t=e.replace(/(:|\[|,)\s*(\d{16,})(?=\s*[,}\]])/g,'$1"$2"');try{return JSON.parse(t)}catch(t){return e}}]}))},e)})),wi.apply(this,arguments)}function Si(){return Ti.apply(this,arguments)}function Ti(){return Ti=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/uploadTextureZip",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ti.apply(this,arguments)}function Ei(){return Ci.apply(this,arguments)}function Ci(){return Ci=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/uploadTextureFolder",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ci.apply(this,arguments)}function Ni(){return Li.apply(this,arguments)}function Li(){return Li=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/batchSaveTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Li.apply(this,arguments)}function ki(){return Ii.apply(this,arguments)}function Ii(){return Ii=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/queryTextureAssetsRelations",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ii.apply(this,arguments)}function Pi(){return Ai.apply(this,arguments)}function Ai(){return Ai=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/textureAssets/deleteTextureAssets",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ai.apply(this,arguments)}function Ri(){return Di.apply(this,arguments)}function Di(){return Di=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/detailSku",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Di.apply(this,arguments)}function zi(){return Ui.apply(this,arguments)}function Ui(){return Ui=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/saveSkuDetail",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Ui.apply(this,arguments)}function Bi(){return Gi.apply(this,arguments)}function Gi(){return Gi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/listUnboundSkus",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),Gi.apply(this,arguments)}function Fi(){var e=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[])||[]).map(function(e){return'{"skuId":'.concat((t=e.skuId,JSON.stringify(null==t?"":t+"")),',"materialId":').concat(function(e){if(null==e||""===e)return"null";var t=(e+"").trim();return/^-?\d+$/.test(t)?t:JSON.stringify(t)}(e.materialId),"}");var t});return'{"bindList":['.concat(e.join(","),"]}")}function Oi(){return Hi.apply(this,arguments)}function Hi(){return Hi=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/bindMaterialBatch",method:"post",data:Fi((t.length>0&&void 0!==t[0]?t[0]:{}).bindList),headers:{"Content-Type":"application/json"}}))},e)})),Hi.apply(this,arguments)}function Vi(){return ji.apply(this,arguments)}function ji(){return(ji=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/goodMaterialMap/autoBind",method:"post",data:{},headers:{"Content-Type":"application/json"}}))},e)}))).apply(this,arguments)}var Wi={page:"materialTextures-module_page__tYhwH",pageHeader:"materialTextures-module_pageHeader__1nQSZ",headerLeft:"materialTextures-module_headerLeft__374ea",pageTitle:"materialTextures-module_pageTitle__1povI",pageSubtitle:"materialTextures-module_pageSubtitle__I666j",uploadBtn:"materialTextures-module_uploadBtn__1FbPR",pageTabs:"materialTextures-module_pageTabs__LB5hs",pageTab:"materialTextures-module_pageTab__2y6Y9",pageTabActive:"materialTextures-module_pageTabActive__1NMRm",mainContent:"materialTextures-module_mainContent__2_Q_9",sidebar:"materialTextures-module_sidebar__nx350",spaceSelector:"materialTextures-module_spaceSelector__w1fEp",spaceSelect:"materialTextures-module_spaceSelect__qJcsR","ant-select-selection-item":"materialTextures-module_ant-select-selection-item__hrdHQ",tabPills:"materialTextures-module_tabPills__3B3eQ",tabPill:"materialTextures-module_tabPill__3gvQW",active:"materialTextures-module_active__1tyxi",categoryTree:"materialTextures-module_categoryTree__2Pf98",categoryList:"materialTextures-module_categoryList__2GBkR",categoryGroup:"materialTextures-module_categoryGroup__3qJGP",categoryItem:"materialTextures-module_categoryItem__Mjiz_",expandIcon:"materialTextures-module_expandIcon__22PDR",categoryItemTitle:"materialTextures-module_categoryItemTitle__2IacD",categoryItemCount:"materialTextures-module_categoryItemCount__2upE8",subCategoryItem:"materialTextures-module_subCategoryItem__-3v44",subCategoryTitle:"materialTextures-module_subCategoryTitle__3f0xS",subCategoryCount:"materialTextures-module_subCategoryCount__2lgog",content:"materialTextures-module_content__3isSO",filterRow:"materialTextures-module_filterRow__29-Dk",tableCardWrap:"materialTextures-module_tableCardWrap__3oGzI",tableHeader:"materialTextures-module_tableHeader__QyG1V",searchInput:"materialTextures-module_searchInput__2HBQZ",searchInputWrap:"materialTextures-module_searchInputWrap__1e47k",searchClearBtn:"materialTextures-module_searchClearBtn__1stAU",filterLabel:"materialTextures-module_filterLabel__1ziuq",filterSelect:"materialTextures-module_filterSelect__391Hu","ant-select-arrow":"materialTextures-module_ant-select-arrow__1RUk9",segmented:"materialTextures-module_segmented__1xASu",segmentedItem:"materialTextures-module_segmentedItem__1PdDD",segmentedItemSelected:"materialTextures-module_segmentedItemSelected__3swyC",tableCard:"materialTextures-module_tableCard__100S4",dataTable:"materialTextures-module_dataTable__1R9-E",cell:"materialTextures-module_cell___111s",cellName:"materialTextures-module_cellName__3ebQT materialTextures-module_cell___111s",cellMuted:"materialTextures-module_cellMuted__QUu8A materialTextures-module_cell___111s",brandName:"materialTextures-module_brandName__3Ojjx materialTextures-module_cell___111s",formatCell:"materialTextures-module_formatCell__3iVLs materialTextures-module_cell___111s",thumbnailCell:"materialTextures-module_thumbnailCell__2IZ8g",thumbnail:"materialTextures-module_thumbnail__3aRVv",thumbnailImg:"materialTextures-module_thumbnailImg__2zXpY",thumbnailPlaceholder:"materialTextures-module_thumbnailPlaceholder__1ffvL",actions:"materialTextures-module_actions__AVzUs",deleteAction:"materialTextures-module_deleteAction__3Q8Lg",statusNeutral:"materialTextures-module_statusNeutral__1-839",mappingProduct:"materialTextures-module_mappingProduct__1ueX6"};je(".materialTextures-module_page__tYhwH{display:flex;flex-direction:column;height:100%;background:#f5f7fa}.materialTextures-module_pageHeader__1nQSZ{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 7px}.materialTextures-module_headerLeft__374ea{display:flex;flex-direction:column;gap:2px}.materialTextures-module_pageTitle__1povI{font-size:14px;font-weight:500;color:#000f2c}.materialTextures-module_pageSubtitle__I666j{font-size:12px;color:#737b8b;font-weight:400}.materialTextures-module_uploadBtn__1FbPR{height:32px;padding:4px 12px;border-radius:6px;font-size:14px;background:#1890ff;border:none}.materialTextures-module_pageTabs__LB5hs{display:flex;align-items:center;gap:0;padding:0 16px;border-bottom:1px solid rgba(115,123,139,.30196078431372547)}.materialTextures-module_pageTab__2y6Y9{padding:11.5px 0;font-size:14px;font-weight:400;color:#737b8b;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;margin-right:32px}.materialTextures-module_pageTab__2y6Y9:hover{color:#1890ff}.materialTextures-module_pageTabActive__1NMRm{color:#1890ff;border-bottom-color:#1890ff}.materialTextures-module_mainContent__2_Q_9{display:flex;flex:1;overflow:hidden}.materialTextures-module_sidebar__nx350{width:264px;background:#fff;display:flex;flex-direction:column;overflow-y:auto;margin:16px 0 16px 16px;border-radius:6px}.materialTextures-module_spaceSelector__w1fEp{padding:16px 16px 12px}.materialTextures-module_spaceSelect__qJcsR{width:100%}.materialTextures-module_spaceSelect__qJcsR .ant-select-selector{height:36px!important;padding:0 12px!important;border-radius:6px!important;border:1px solid #f0f2f5!important;background:#f0f2f5!important}.materialTextures-module_spaceSelect__qJcsR .ant-select-selector .materialTextures-module_ant-select-selection-item__hrdHQ{line-height:36px!important;font-size:14px}.materialTextures-module_tabPills__3B3eQ{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}.materialTextures-module_tabPill__3gvQW{padding:4px 12px;border-radius:4px;font-size:13px;color:#616778;cursor:pointer;transition:all .2s;background:transparent}.materialTextures-module_tabPill__3gvQW:hover{background:#f0f2f5;color:#000f2c}.materialTextures-module_tabPill__3gvQW.materialTextures-module_active__1tyxi{background:#e6f4ff;color:#1890ff}.materialTextures-module_categoryList__2GBkR,.materialTextures-module_categoryTree__2Pf98{flex:1;overflow-y:auto}.materialTextures-module_categoryGroup__3qJGP.materialTextures-module_active__1tyxi .materialTextures-module_categoryItem__Mjiz_{color:#1890ff;background:#e6f4ff}.materialTextures-module_categoryItem__Mjiz_{display:flex;align-items:center;padding:10px 16px;cursor:pointer;transition:all .2s;font-size:14px;color:#737b8b;font-weight:400}.materialTextures-module_categoryItem__Mjiz_:hover{background:#f5f5f5}.materialTextures-module_categoryItem__Mjiz_.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_expandIcon__22PDR{margin-right:8px;font-size:10px;color:#8c8c8c}.materialTextures-module_categoryItemTitle__2IacD{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.materialTextures-module_categoryItemCount__2upE8{font-size:12px;color:#8c8c8c;margin-left:auto}.materialTextures-module_categoryItemCount__2upE8.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_subCategoryItem__-3v44{display:flex;align-items:center;padding:5px 16px 5px 30px;cursor:pointer;transition:all .2s;font-size:14px;color:#121c2a}.materialTextures-module_subCategoryItem__-3v44:hover{background:#f5f5f5}.materialTextures-module_subCategoryItem__-3v44.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_subCategoryTitle__3f0xS{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.materialTextures-module_subCategoryCount__2lgog{font-size:12px;color:#8c8c8c;margin-left:auto}.materialTextures-module_subCategoryCount__2lgog.materialTextures-module_active__1tyxi{color:#1890ff;background:#e6f4ff}.materialTextures-module_content__3isSO{flex:1;min-height:0;display:flex;flex-direction:column;padding:16px;overflow:hidden}.materialTextures-module_filterRow__29-Dk{display:flex;gap:12px;margin-bottom:12px}.materialTextures-module_tableCardWrap__3oGzI{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialTextures-module_tableHeader__QyG1V{display:flex;align-items:center;gap:16px;padding:0 0 12px;flex-shrink:0}.materialTextures-module_searchInput__2HBQZ{width:240px;height:32px;padding:0 32px 0 12px;border:1px solid #f0f0f0;border-radius:6px;font-size:13px;outline:none;transition:all .2s}.materialTextures-module_searchInput__2HBQZ:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}.materialTextures-module_searchInputWrap__1e47k{position:relative;display:inline-block}.materialTextures-module_searchClearBtn__1stAU{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#bfbfbf;cursor:pointer;border-radius:50%;font-size:12px;transition:all .2s}.materialTextures-module_searchClearBtn__1stAU:hover{color:#8c8c8c;background:rgba(0,0,0,.08)}.materialTextures-module_filterLabel__1ziuq{font-size:14px;color:#000;white-space:nowrap}.materialTextures-module_filterSelect__391Hu{width:auto;min-width:80px;background:#fff;border-radius:4px}.materialTextures-module_filterSelect__391Hu .ant-select-selector{height:auto!important;padding:0 8px!important;border:none!important;background:transparent!important;box-shadow:none!important}.materialTextures-module_filterSelect__391Hu .ant-select-selector .materialTextures-module_ant-select-selection-item__hrdHQ{line-height:1.2!important;padding:0!important;font-size:14px;color:#616778}.materialTextures-module_filterSelect__391Hu .ant-select-selector .materialTextures-module_ant-select-arrow__1RUk9{right:0!important}.materialTextures-module_segmented__1xASu{display:flex;background:#fff;padding:3px;border-radius:6px}.materialTextures-module_segmentedItem__1PdDD{padding:0 12px;min-height:26px;line-height:26px;font-size:14px;color:#616778;cursor:pointer;border-radius:4px;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.materialTextures-module_segmentedItem__1PdDD:hover{color:#000f2c}.materialTextures-module_segmentedItem__1PdDD.materialTextures-module_segmentedItemSelected__3swyC{background:#f0f2f5;color:#000f2c;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}.materialTextures-module_tableCard__100S4{background:#fff;border-radius:8px;overflow:hidden;border:1px solid #fff}.materialTextures-module_tableCard__100S4,.materialTextures-module_tableCard__100S4 .ant-spin-container,.materialTextures-module_tableCard__100S4 .ant-spin-nested-loading,.materialTextures-module_tableCard__100S4 .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.materialTextures-module_dataTable__1R9-E .ant-table{flex:1;min-height:0;background:transparent;font-size:13px}.materialTextures-module_dataTable__1R9-E .ant-table-container{height:100%;border-radius:0}.materialTextures-module_dataTable__1R9-E .ant-table-thead>tr>th{background:#f5f7fa;padding:7.5px 12px;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;border-bottom:1px solid #f0f0f0}.materialTextures-module_dataTable__1R9-E .ant-table-thead>tr>th:before{display:none}.materialTextures-module_dataTable__1R9-E .ant-table-cell,.materialTextures-module_dataTable__1R9-E .ant-table-cell *,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.materialTextures-module_dataTable__1R9-E .ant-table-cell,.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr>td{padding:12px 14px;font-size:13px;color:#262626;border-bottom:1px solid #f5f5f5}.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr:last-child>td{border-bottom:none}.materialTextures-module_dataTable__1R9-E .ant-table-tbody>tr:hover>td{background:#fafafa}.materialTextures-module_dataTable__1R9-E .ant-table-wrapper{border-radius:8px;overflow:hidden}.materialTextures-module_dataTable__1R9-E .ant-table-pagination{margin:0;padding:12px 16px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:flex-end}.materialTextures-module_dataTable__1R9-E .ant-pagination-total-text{color:#8c8c8c;font-size:13px}.materialTextures-module_dataTable__1R9-E .ant-pagination-item{min-width:32px;height:32px;line-height:32px;border:1px solid #f0f0f0}.materialTextures-module_dataTable__1R9-E .ant-pagination-item a{color:#616778}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover{border-color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover a{color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active a{color:#fff}.materialTextures-module_dataTable__1R9-E .ant-pagination-next,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev{min-width:32px;height:32px;line-height:32px}.materialTextures-module_dataTable__1R9-E .ant-pagination-next .ant-pagination-item-link,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev .ant-pagination-item-link{border-radius:6px;border:1px solid #f0f0f0;color:#616778}.materialTextures-module_dataTable__1R9-E .ant-pagination-next .ant-pagination-item-link:hover,.materialTextures-module_dataTable__1R9-E .ant-pagination-prev .ant-pagination-item-link:hover{border-color:#1890ff;color:#1890ff}.materialTextures-module_dataTable__1R9-E .ant-pagination-disabled .ant-pagination-item-link{color:#d9d9d9}.materialTextures-module_dataTable__1R9-E .ant-pagination-disabled .ant-pagination-item-link:hover{border-color:#f0f0f0;color:#d9d9d9}.materialTextures-module_dataTable__1R9-E .ant-pagination-total-text{font-family:Roboto;font-weight:400;font-size:14px;letter-spacing:0;text-align:center;color:rgba(0,0,0,.65)}.materialTextures-module_dataTable__1R9-E .ant-pagination-item{border:1px solid #d9d9d9;border-radius:6px}.materialTextures-module_dataTable__1R9-E .ant-pagination-item:hover>a{color:#397bff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active{border:1px solid #397bff;background-color:#fff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-active>a{color:#397bff}.materialTextures-module_dataTable__1R9-E .ant-pagination-item-link,.materialTextures-module_dataTable__1R9-E .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-radius:6px}.materialTextures-module_cell___111s{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.materialTextures-module_cellName__3ebQT{font-weight:500}.materialTextures-module_cellMuted__QUu8A{font-size:12px;color:#8c8c8c}.materialTextures-module_brandName__3Ojjx{color:#1890ff}.materialTextures-module_thumbnailCell__2IZ8g{display:flex;align-items:center;gap:10px}.materialTextures-module_thumbnail__3aRVv{width:48px;height:48px;border-radius:8px;background:#f0f2f5;overflow:hidden;flex-shrink:0}.materialTextures-module_thumbnailImg__2zXpY{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.materialTextures-module_thumbnailPlaceholder__1ffvL{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f2f5}.materialTextures-module_actions__AVzUs{white-space:nowrap}.materialTextures-module_deleteAction__3Q8Lg{color:#f53f3f!important}.materialTextures-module_deleteAction__3Q8Lg:focus,.materialTextures-module_deleteAction__3Q8Lg:hover{color:#ff7875!important}.materialTextures-module_statusNeutral__1-839{display:inline-block;padding:2px 8px;border-radius:4px;font-size:12px;color:#8c8c8c;background:#f5f5f5}.materialTextures-module_mappingProduct__1ueX6{color:#1890ff;cursor:pointer}");var qi={overlay:"TextureUploadModal-module_overlay__1UIEB",modal:"TextureUploadModal-module_modal__2chJ9",header:"TextureUploadModal-module_header__3uXk0",title:"TextureUploadModal-module_title__2LprC",closeBtn:"TextureUploadModal-module_closeBtn__2SmJM",body:"TextureUploadModal-module_body__eqYrP",subtitle:"TextureUploadModal-module_subtitle__3vsB5",formItem:"TextureUploadModal-module_formItem__1c3y7",label:"TextureUploadModal-module_label__9Jlk0",required:"TextureUploadModal-module_required__3Fe2U",fieldWrap:"TextureUploadModal-module_fieldWrap__1QHKL",materialIdHint:"TextureUploadModal-module_materialIdHint__3IlvB",input:"TextureUploadModal-module_input__2AAY4",uploadSection:"TextureUploadModal-module_uploadSection__13H4k",referenceArea:"TextureUploadModal-module_referenceArea__3sLFx",chartletLabel:"TextureUploadModal-module_chartletLabel__13Nrx",areaLabel:"TextureUploadModal-module_areaLabel__1d2Kx",refUploadContainer:"TextureUploadModal-module_refUploadContainer__eZ6d8",refUploadEmpty:"TextureUploadModal-module_refUploadEmpty__1uYjY",refUploadOverlay:"TextureUploadModal-module_refUploadOverlay__499m_",refUploading:"TextureUploadModal-module_refUploading__2NQsN",disabled:"TextureUploadModal-module_disabled__2usE6",dragging:"TextureUploadModal-module_dragging__OWsE6",refUploadFilled:"TextureUploadModal-module_refUploadFilled__2f9PX",refUploadIcon:"TextureUploadModal-module_refUploadIcon__1-3c0",refUploadText:"TextureUploadModal-module_refUploadText__3Oj3q",refUploadHint:"TextureUploadModal-module_refUploadHint__2K81b",refUploadingText:"TextureUploadModal-module_refUploadingText__35cu7",refUploadLabel:"TextureUploadModal-module_refUploadLabel__3Knlj",refUploadInfo:"TextureUploadModal-module_refUploadInfo__1FKAo",infoChip:"TextureUploadModal-module_infoChip__3D8oJ",refUploadedImage:"TextureUploadModal-module_refUploadedImage__22PCN",refUploadOverlayText:"TextureUploadModal-module_refUploadOverlayText__2QZpZ",pbrUploadContainer:"TextureUploadModal-module_pbrUploadContainer__2J0jW",pbrUploadEmpty:"TextureUploadModal-module_pbrUploadEmpty__1ijH_",pbrUploading:"TextureUploadModal-module_pbrUploading__1jVwN",pbrUploadFilled:"TextureUploadModal-module_pbrUploadFilled__13toI",pbrUploadOverlay:"TextureUploadModal-module_pbrUploadOverlay__2Optm",pbrUploadIcon:"TextureUploadModal-module_pbrUploadIcon__3M1_u",pbrUploadText:"TextureUploadModal-module_pbrUploadText__21hB8",pbrUploadingText:"TextureUploadModal-module_pbrUploadingText__rD1IK",pbrUploadedImage:"TextureUploadModal-module_pbrUploadedImage__1qWQQ",pbrUploadOverlayText:"TextureUploadModal-module_pbrUploadOverlayText__2mIo6",pbrArea:"TextureUploadModal-module_pbrArea__OZtlg",pbrGrid:"TextureUploadModal-module_pbrGrid__3vxUr",pbrItem:"TextureUploadModal-module_pbrItem__3sww2",pbrLabel:"TextureUploadModal-module_pbrLabel__dk436",footer:"TextureUploadModal-module_footer__6hyV1",cancelBtn:"TextureUploadModal-module_cancelBtn__3eIAO",confirmBtn:"TextureUploadModal-module_confirmBtn__3OftK",submitContent:"TextureUploadModal-module_submitContent__2zF7U",submitLoadingIcon:"TextureUploadModal-module_submitLoadingIcon__3jXTP",uploadTabs:"TextureUploadModal-module_uploadTabs__2G2e1",uploadTab:"TextureUploadModal-module_uploadTab__11m5i",uploadTabActive:"TextureUploadModal-module_uploadTabActive__3m__O",batchMultiWrap:"TextureUploadModal-module_batchMultiWrap__3wU9s",batchOneInput:"TextureUploadModal-module_batchOneInput__1GL18",batchDraggerBatchOne:"TextureUploadModal-module_batchDraggerBatchOne__2jkoN",batchOneChannelSection:"TextureUploadModal-module_batchOneChannelSection__3MrqJ",batchOneChannelTitle:"TextureUploadModal-module_batchOneChannelTitle__1nnXs",batchDragger:"TextureUploadModal-module_batchDragger__22gY6",batchDragging:"TextureUploadModal-module_batchDragging__3S-LA",batchPickerTrigger:"TextureUploadModal-module_batchPickerTrigger__33HJS",batchPickerArrow:"TextureUploadModal-module_batchPickerArrow__1DEAA",batchPickerMenu:"TextureUploadModal-module_batchPickerMenu__LIzmM",batchDraggerIcon:"TextureUploadModal-module_batchDraggerIcon__27YJm",batchDraggerText:"TextureUploadModal-module_batchDraggerText__Y13AQ",batchDraggerHint:"TextureUploadModal-module_batchDraggerHint__JmSK7",batchDraggerInfo:"TextureUploadModal-module_batchDraggerInfo__lfacQ",batchListTitle:"TextureUploadModal-module_batchListTitle__3aNN7",batchList:"TextureUploadModal-module_batchList__1tvg0",batchListHeader:"TextureUploadModal-module_batchListHeader__34VcJ",batchListHeaderCol1:"TextureUploadModal-module_batchListHeaderCol1__3KJYj",batchListHeaderCol2:"TextureUploadModal-module_batchListHeaderCol2__1FlBZ",batchListHeaderCol3:"TextureUploadModal-module_batchListHeaderCol3__1q09-",batchListHeaderCol4:"TextureUploadModal-module_batchListHeaderCol4__1akfg",batchListHeaderCol5:"TextureUploadModal-module_batchListHeaderCol5__3pt0h",batchListRowCol1:"TextureUploadModal-module_batchListRowCol1__2WA8Q",batchListRowCol2:"TextureUploadModal-module_batchListRowCol2__1DwGl",batchListRowCol3:"TextureUploadModal-module_batchListRowCol3__2lsnq",batchListRowCol4:"TextureUploadModal-module_batchListRowCol4__1k7Mt",batchListRowCol5:"TextureUploadModal-module_batchListRowCol5__1GQm4",batchListRow:"TextureUploadModal-module_batchListRow__23Is2",batchListRowCol:"TextureUploadModal-module_batchListRowCol__fHkeb",expandIcon:"TextureUploadModal-module_expandIcon__2EEtS",batchExpandRow:"TextureUploadModal-module_batchExpandRow__1eN0_",expandIconRotated:"TextureUploadModal-module_expandIconRotated__35Pmy",channelLabelGray:"TextureUploadModal-module_channelLabelGray__2MB_k",batchId:"TextureUploadModal-module_batchId__KuOOs",batchChannelCount:"TextureUploadModal-module_batchChannelCount__30P2a",batchRemoveBtn:"TextureUploadModal-module_batchRemoveBtn__33-Ta",batchDeleteBtn:"TextureUploadModal-module_batchDeleteBtn__7IBIL",batchExpandBtn:"TextureUploadModal-module_batchExpandBtn__185n9",batchChannelPreview:"TextureUploadModal-module_batchChannelPreview__1QPxa",channelGrid:"TextureUploadModal-module_channelGrid__1ut9m",channelItem:"TextureUploadModal-module_channelItem__2XPpH",channelActionItem:"TextureUploadModal-module_channelActionItem__2ro04",channelThumb:"TextureUploadModal-module_channelThumb__1bhl-",channelHoverText:"TextureUploadModal-module_channelHoverText__2O3pm",channelThumbWrap:"TextureUploadModal-module_channelThumbWrap__1tiDB",channelThumbMissing:"TextureUploadModal-module_channelThumbMissing__1AKms",channelThumbEmpty:"TextureUploadModal-module_channelThumbEmpty__39DC6",batchOneChannelGrid:"TextureUploadModal-module_batchOneChannelGrid__2UR-V"};je('.TextureUploadModal-module_overlay__1UIEB{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TextureUploadModal-module_modal__2chJ9{width:872px;background:#fff;border-radius:8px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden;max-height:90vh;display:flex;flex-direction:column}.TextureUploadModal-module_header__3uXk0{display:flex;align-items:center;justify-content:space-between;height:56px;padding:0 20px 0 24px;border-bottom:1px solid #e5e6eb;flex-shrink:0;background:#fff}.TextureUploadModal-module_title__2LprC{font-size:16px;font-weight:600;color:#1d2129}.TextureUploadModal-module_closeBtn__2SmJM{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#4e5969;font-size:14px;transition:all .2s}.TextureUploadModal-module_closeBtn__2SmJM:hover{background:#f2f3f5}.TextureUploadModal-module_body__eqYrP{padding:16px 24px 24px;background:#f7f8fa;flex:1;overflow-y:auto}.TextureUploadModal-module_subtitle__3vsB5{font-size:14px;color:#737b8b;margin:0 0 16px}.TextureUploadModal-module_formItem__1c3y7{display:flex;flex-direction:row;margin-bottom:16px;align-items:flex-start}.TextureUploadModal-module_label__9Jlk0{position:relative;width:56px;flex-shrink:0;font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-right:16px;padding-top:13px}.TextureUploadModal-module_required__3Fe2U{position:absolute;left:-10px;width:8px;color:#ff4d4f;font-family:PingFang SC;font-weight:400;font-style:Regular;line-height:100%;font-size:14px;letter-spacing:0}.TextureUploadModal-module_fieldWrap__1QHKL{flex:1;min-width:0}.TextureUploadModal-module_materialIdHint__3IlvB{display:inline-block;margin-top:6px;font-size:12px;color:#737b8b;white-space:nowrap}.TextureUploadModal-module_input__2AAY4{width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid transparent;border-radius:4px;font-size:14px;outline:none;transition:all .2s;background:#eef0f3;color:#1d2129}.TextureUploadModal-module_input__2AAY4:not(:disabled):focus,.TextureUploadModal-module_input__2AAY4:not(:disabled):hover{border-color:#1890ff}.TextureUploadModal-module_input__2AAY4::-moz-placeholder{color:#999}.TextureUploadModal-module_input__2AAY4::placeholder{color:#999}.TextureUploadModal-module_input__2AAY4:disabled{border-color:transparent;background:#eef0f3;color:#1d2129;cursor:not-allowed}.TextureUploadModal-module_uploadSection__13H4k{display:flex;gap:14px}.TextureUploadModal-module_referenceArea__3sLFx{flex-shrink:0;display:flex;flex-direction:row}.TextureUploadModal-module_chartletLabel__13Nrx{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:14px;line-height:100%;letter-spacing:0;color:#737b8b;white-space:nowrap;margin-right:44px}.TextureUploadModal-module_areaLabel__1d2Kx{font-family:PingFang SC;font-size:14px;font-weight:400;color:#1d2129;margin-bottom:12px}.TextureUploadModal-module_refUploadContainer__eZ6d8{width:318px;height:424px;background:#eef0f3;border-radius:8px;padding:8px;display:flex;flex-direction:column}.TextureUploadModal-module_refUploadEmpty__1uYjY{width:100%;height:316px;border:1px dashed #c7ccd6;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;position:relative;overflow:hidden}.TextureUploadModal-module_refUploadEmpty__1uYjY:hover{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_refUploadEmpty__1uYjY:hover .TextureUploadModal-module_refUploadOverlay__499m_{opacity:1}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_refUploading__2NQsN{cursor:default;opacity:.7}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_disabled__2usE6{cursor:not-allowed;opacity:.5}.TextureUploadModal-module_refUploadEmpty__1uYjY.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_refUploadFilled__2f9PX{width:100%;height:100%;border-radius:4px;overflow:hidden;cursor:pointer;position:relative}.TextureUploadModal-module_refUploadFilled__2f9PX:hover .TextureUploadModal-module_refUploadOverlay__499m_{opacity:1}.TextureUploadModal-module_refUploadIcon__1-3c0{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;margin-bottom:4px;position:relative;opacity:.5}.TextureUploadModal-module_refUploadText__3Oj3q{margin-bottom:4px}.TextureUploadModal-module_refUploadHint__2K81b,.TextureUploadModal-module_refUploadText__3Oj3q{color:#737b8b;font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:14px;line-height:22px;letter-spacing:0}.TextureUploadModal-module_refUploadingText__35cu7{font-size:12px;color:#737b8b}.TextureUploadModal-module_refUploadLabel__3Knlj{font-family:PingFang SC;font-weight:600;font-size:14px;color:#1d2129;margin-left:4px;margin-top:12px}.TextureUploadModal-module_refUploadInfo__1FKAo{display:flex;gap:2px;padding:6px 10px;line-height:22px;margin-left:0}.TextureUploadModal-module_infoChip__3D8oJ,.TextureUploadModal-module_refUploadInfo__1FKAo{align-items:center;background:rgba(115,123,139,.12);border-radius:4px;margin-top:8px;font-size:12px;color:#737b8b}.TextureUploadModal-module_infoChip__3D8oJ{display:inline-flex;gap:4px;padding:4px 10px;line-height:20px}.TextureUploadModal-module_refUploadedImage__22PCN{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureUploadModal-module_refUploadOverlay__499m_{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.TextureUploadModal-module_refUploadOverlayText__2QZpZ{font-size:12px;color:#fff;background:rgba(0,0,0,.5);padding:4px 12px;border-radius:4px}.TextureUploadModal-module_pbrUploadContainer__2J0jW{width:100%;aspect-ratio:1}.TextureUploadModal-module_pbrUploadEmpty__1ijH_{width:100%;height:100%;border:1px dashed #c7ccd6;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.TextureUploadModal-module_pbrUploadEmpty__1ijH_:hover{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_pbrUploading__1jVwN{cursor:default;opacity:.7}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_disabled__2usE6{cursor:not-allowed;opacity:.5}.TextureUploadModal-module_pbrUploadEmpty__1ijH_.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadFilled__13toI{width:100%;aspect-ratio:1;overflow:hidden;cursor:pointer;position:relative;border:1px dashed #c7ccd6;border-radius:4px;transition:all .2s}.TextureUploadModal-module_pbrUploadFilled__13toI:hover .TextureUploadModal-module_pbrUploadOverlay__2Optm{opacity:1}.TextureUploadModal-module_pbrUploadFilled__13toI.TextureUploadModal-module_dragging__OWsE6{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_pbrUploadIcon__3M1_u{font-size:16px;margin-bottom:4px;color:#737b8b}.TextureUploadModal-module_pbrUploadText__21hB8{font-size:11px;color:#737b8b;margin-bottom:2px}.TextureUploadModal-module_pbrUploadingText__rD1IK{font-size:12px;color:#737b8b}.TextureUploadModal-module_pbrUploadedImage__1qWQQ{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureUploadModal-module_pbrUploadOverlay__2Optm{position:absolute;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.TextureUploadModal-module_pbrUploadOverlayText__2mIo6{font-size:12px;color:#fff;background:rgba(0,0,0,.5);padding:4px 12px;border-radius:4px}.TextureUploadModal-module_pbrArea__OZtlg{flex:1}.TextureUploadModal-module_pbrGrid__3vxUr{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.TextureUploadModal-module_pbrItem__3sww2{height:188px;background:#eef0f3;border-radius:8px;padding:8px;display:flex;flex-direction:column}.TextureUploadModal-module_pbrLabel__dk436{font-size:14px;font-weight:600;color:#1d2129;margin-top:12px;margin-left:4px}.TextureUploadModal-module_pbrItem__3sww2 .TextureUploadModal-module_pbrUploadEmpty__1ijH_,.TextureUploadModal-module_pbrItem__3sww2 .TextureUploadModal-module_pbrUploadFilled__13toI{width:100%;aspect-ratio:1;height:auto}.TextureUploadModal-module_footer__6hyV1{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5e6eb;background:#fff;flex-shrink:0}.TextureUploadModal-module_cancelBtn__3eIAO{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;color:#737b8b;border:1px solid #717d99;background:#fff;cursor:pointer}.TextureUploadModal-module_cancelBtn__3eIAO:hover{border-color:#1890ff;color:#1890ff}.TextureUploadModal-module_confirmBtn__3OftK{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;background:#1890ff!important;border:1px solid #1890ff;cursor:pointer;color:#fff}.TextureUploadModal-module_confirmBtn__3OftK:hover{background:#2563eb!important}.TextureUploadModal-module_submitContent__2zF7U{display:inline-flex;align-items:center;justify-content:center;gap:6px}.TextureUploadModal-module_submitLoadingIcon__3jXTP{font-size:14px;color:#fff}.TextureUploadModal-module_uploadTabs__2G2e1{display:flex;gap:4px;margin-bottom:16px;background:#eef0f3;padding:3px;border-radius:4px;height:40px;align-items:center;width:-moz-fit-content;width:fit-content}.TextureUploadModal-module_uploadTab__11m5i{height:36px;padding:0 12px;border-radius:2px;font-size:14px;font-weight:400;cursor:pointer;transition:all .2s;border:none;background:transparent;color:#737b8b;white-space:nowrap}.TextureUploadModal-module_uploadTab__11m5i:hover{color:#000f2c}.TextureUploadModal-module_uploadTab__11m5i.TextureUploadModal-module_uploadTabActive__3m__O{background:#fff;color:#000f2c;font-weight:600}.TextureUploadModal-module_batchMultiWrap__3wU9s{margin-top:8px}.TextureUploadModal-module_batchOneInput__1GL18{width:736px;min-width:0}.TextureUploadModal-module_batchDraggerBatchOne__2jkoN{margin-left:0;width:736px}.TextureUploadModal-module_batchOneChannelSection__3MrqJ{display:flex;align-items:flex-start;gap:16px;margin-top:16px}.TextureUploadModal-module_batchOneChannelTitle__1nnXs{flex-shrink:0;font-size:14px;color:#737b8b;font-weight:400;line-height:22px;padding-top:21px}.TextureUploadModal-module_batchDragger__22gY6{width:100%;height:204px;border:1px dashed #c7ccd6;border-radius:4px;background:#eef0f3;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;margin-bottom:16px;position:relative}.TextureUploadModal-module_batchDragger__22gY6:hover{border-color:#1890ff}.TextureUploadModal-module_batchDragger__22gY6.TextureUploadModal-module_batchDragging__3S-LA{border-color:#1890ff;background:#f7fbff}.TextureUploadModal-module_batchPickerTrigger__33HJS{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;margin-top:12px;padding:0 14px;border:1px solid #1890ff;border-radius:4px;background:#fff;color:#1890ff;font-size:14px;cursor:pointer}.TextureUploadModal-module_batchPickerTrigger__33HJS:hover{background:#f7fbff}.TextureUploadModal-module_batchPickerArrow__1DEAA{font-size:10px}.TextureUploadModal-module_batchPickerMenu__LIzmM{position:absolute;top:126px;left:50%;transform:translateX(-50%);min-width:132px;padding:4px;background:#fff;border:1px solid #dde1e6;border-radius:4px;box-shadow:0 4px 16px rgba(0,15,44,.12);z-index:1}.TextureUploadModal-module_batchPickerMenu__LIzmM button{width:100%;height:32px;padding:0 12px;border:none;border-radius:3px;background:transparent;color:#000f2c;cursor:pointer;text-align:left;white-space:nowrap}.TextureUploadModal-module_batchPickerMenu__LIzmM button:hover{color:#1890ff;background:#f7fbff}.TextureUploadModal-module_batchDraggerIcon__27YJm{width:32px;height:32px;margin-bottom:4px;opacity:.5;position:relative}.TextureUploadModal-module_batchDraggerIcon__27YJm:after,.TextureUploadModal-module_batchDraggerIcon__27YJm:before{content:"";position:absolute;background:#737b8b;border-radius:2px}.TextureUploadModal-module_batchDraggerIcon__27YJm:before{width:16px;height:2px;top:15px;left:8px}.TextureUploadModal-module_batchDraggerIcon__27YJm:after{width:2px;height:16px;top:8px;left:15px}.TextureUploadModal-module_batchDraggerText__Y13AQ{font-size:14px;color:#737b8b;margin-bottom:4px;line-height:22px}.TextureUploadModal-module_batchDraggerHint__JmSK7{font-size:14px;color:#737b8b;line-height:22px;margin-top:4px}.TextureUploadModal-module_batchDraggerInfo__lfacQ{display:flex;align-items:center;gap:2px;background:rgba(115,123,139,.12);padding:6px 10px;border-radius:4px;margin-top:16px;font-size:12px;color:#737b8b;line-height:22px}.TextureUploadModal-module_batchListTitle__3aNN7{font-size:14px;color:#1d2129;font-weight:400;margin-bottom:8px;line-height:22px}.TextureUploadModal-module_batchList__1tvg0{background:#fff;border-radius:4px;border:1px solid #e5e6eb;overflow:hidden}.TextureUploadModal-module_batchListHeader__34VcJ{display:grid;grid-template-columns:220px 300px 110px 90px 76px;background:#eef0f3;font-size:13px;color:#737b8b;font-weight:400;height:32px;align-items:center}.TextureUploadModal-module_batchListHeader__34VcJ>span{padding:0 12px;display:flex;align-items:center;height:100%;line-height:32px}.TextureUploadModal-module_batchListHeaderCol1__3KJYj,.TextureUploadModal-module_batchListHeaderCol2__1FlBZ,.TextureUploadModal-module_batchListHeaderCol3__1q09-,.TextureUploadModal-module_batchListHeaderCol4__1akfg,.TextureUploadModal-module_batchListHeaderCol5__3pt0h,.TextureUploadModal-module_batchListRowCol1__2WA8Q,.TextureUploadModal-module_batchListRowCol2__1DwGl,.TextureUploadModal-module_batchListRowCol3__2lsnq,.TextureUploadModal-module_batchListRowCol4__1k7Mt,.TextureUploadModal-module_batchListRowCol5__1GQm4{min-width:0}.TextureUploadModal-module_batchListHeaderCol1__3KJYj,.TextureUploadModal-module_batchListHeaderCol2__1FlBZ,.TextureUploadModal-module_batchListRowCol1__2WA8Q,.TextureUploadModal-module_batchListRowCol2__1DwGl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureUploadModal-module_batchListRow__23Is2{display:grid;grid-template-columns:220px 300px 110px 90px 76px;font-size:13px;color:#000f2c;height:48px;align-items:center;border-top:1px solid #eef0f3;transition:background .2s}.TextureUploadModal-module_batchListRow__23Is2>span{padding:0 12px;display:flex;height:100%;line-height:48px}.TextureUploadModal-module_batchListRow__23Is2:hover{background:#f9fafb}.TextureUploadModal-module_batchListRowCol__fHkeb{flex-shrink:0;padding:0 12px;display:flex;align-items:center;height:48px;border-right:1px solid #f1f3f5}.TextureUploadModal-module_batchListRowCol__fHkeb:last-child{border-right:none}.TextureUploadModal-module_expandIcon__2EEtS{width:14.7px;height:16px;margin-left:2px;display:inline-flex;align-items:center;justify-content:center}.TextureUploadModal-module_expandIcon__2EEtS svg{display:block}.TextureUploadModal-module_batchExpandRow__1eN0_{padding:16px 12px;background:#fff;border-top:1px solid #eef0f3;display:flex;gap:20px;align-items:center}.TextureUploadModal-module_expandIconRotated__35Pmy{transform:rotate(180deg)}.TextureUploadModal-module_channelLabelGray__2MB_k{color:#737b8b!important}.TextureUploadModal-module_batchId__KuOOs{font-family:monospace;color:#000f2c}.TextureUploadModal-module_batchChannelCount__30P2a{color:#000f2c}.TextureUploadModal-module_batchRemoveBtn__33-Ta{width:20px;height:20px;border:none;background:transparent;color:#ff4d4f;cursor:pointer;border-radius:4px;font-size:12px;display:flex;align-items:center;justify-content:center}.TextureUploadModal-module_batchRemoveBtn__33-Ta:hover{background:#fff1f0}.TextureUploadModal-module_batchRemoveBtn__33-Ta:disabled{cursor:not-allowed;opacity:.5;background:transparent}.TextureUploadModal-module_batchDeleteBtn__7IBIL{height:24px;padding:0 8px;border:none;background:transparent;color:#f53f3f;cursor:pointer;border-radius:4px;font-size:12px}.TextureUploadModal-module_batchDeleteBtn__7IBIL:disabled{cursor:not-allowed;opacity:.5;background:transparent}.TextureUploadModal-module_batchExpandBtn__185n9{color:#1890ff;border:none;background:transparent;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:flex-start;gap:2px;padding:0;line-height:1}.TextureUploadModal-module_batchExpandBtn__185n9:hover{text-decoration:underline}.TextureUploadModal-module_batchChannelPreview__1QPxa{padding:12px;background:#fafafa;border-top:1px solid #f1f3f5}.TextureUploadModal-module_channelGrid__1ut9m{display:flex;gap:16px;align-items:center}.TextureUploadModal-module_channelItem__2XPpH{text-align:center;display:flex;flex-direction:column;align-items:center}.TextureUploadModal-module_channelItem__2XPpH span{display:block;font-size:12px;color:#000f2c}.TextureUploadModal-module_channelActionItem__2ro04{width:64px;padding:0;border:none;background:transparent;cursor:pointer}.TextureUploadModal-module_channelActionItem__2ro04:hover .TextureUploadModal-module_channelThumb__1bhl-{border-color:#1890ff}.TextureUploadModal-module_channelActionItem__2ro04:hover .TextureUploadModal-module_channelHoverText__2O3pm{opacity:1}.TextureUploadModal-module_channelActionItem__2ro04:disabled{cursor:not-allowed;opacity:.7}.TextureUploadModal-module_channelThumbWrap__1tiDB{position:relative;width:64px;height:64px;display:block;margin-top:0!important}.TextureUploadModal-module_channelThumb__1bhl-{width:64px;height:64px;display:block;box-sizing:border-box;border-radius:4px;-o-object-fit:cover;object-fit:cover;background:#eef0f3;border:1px dashed transparent}.TextureUploadModal-module_channelThumbMissing__1AKms{position:relative;background:#fff;border-color:#c7ccd6}.TextureUploadModal-module_channelThumbMissing__1AKms:after,.TextureUploadModal-module_channelThumbMissing__1AKms:before{content:"";position:absolute;left:50%;top:50%;background:#a8b0bd;border-radius:1px;transform:translate(-50%,-50%)}.TextureUploadModal-module_channelThumbMissing__1AKms:before{width:14px;height:2px}.TextureUploadModal-module_channelThumbMissing__1AKms:after{width:2px;height:14px}.TextureUploadModal-module_channelHoverText__2O3pm{position:absolute;inset:0;display:flex!important;align-items:center;justify-content:center;margin-top:0!important;border-radius:4px;background:rgba(0,15,44,.58);color:#fff!important;opacity:0;transition:opacity .2s}.TextureUploadModal-module_channelThumbEmpty__39DC6{width:72px;height:72px;border-radius:6px;background:#f0f2f5;display:flex;align-items:center;justify-content:center;color:#999;font-size:14px}.TextureUploadModal-module_batchOneChannelGrid__2UR-V{display:flex;gap:20px;align-items:flex-start}.TextureUploadModal-module_batchOneChannelGrid__2UR-V .TextureUploadModal-module_channelItem__2XPpH .TextureUploadModal-module_channelThumb__1bhl-,.TextureUploadModal-module_batchOneChannelGrid__2UR-V .TextureUploadModal-module_channelItem__2XPpH .TextureUploadModal-module_channelThumbEmpty__39DC6{width:64px;height:64px}');var Ki=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"metallic",label:"Metallic",icon:"🔶"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"ao",label:"AO",icon:"⚪"},{key:"height",label:"Height",icon:"⬛"}],Xi=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"ao",label:"AO",icon:"⚪"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"height",label:"Height",icon:"⬛"},{key:"metallic",label:"Metallic",icon:"✨"}],Yi=["PNG","JPG","JPEG","EXR","TGA"],Zi=[{key:"referenceImage",token:"_main_hd"},{key:"baseColor",token:"_basecolor"},{key:"normal",token:"_normal"},{key:"ao",token:"_ao"},{key:"roughness",token:"_roughness"},{key:"height",token:"_height"},{key:"metallic",token:"_metallic"}],Qi=[{key:"referenceImage",label:"参考图"}].concat(Fe(Xi.map(function(e){return{key:e.key,label:e.label}}))),Ji=function(){return{referenceImage:null,baseColor:null,normal:null,ao:null,roughness:null,height:null,metallic:null}},$i=function(e,t){return V.default.createElement("span",{className:qi.submitContent},e&&V.default.createElement(S.LoadingOutlined,{className:qi.submitLoadingIcon,spin:!0}),V.default.createElement("span",null,e?"上传中":t))},el=a.connect()(function(e){var t=e.visible,a=e.onClose,r=e.onSuccess,o=e.onError,i=e.editRecord,l=!!i,s=Ge(n.useState(""),2),d=s[0],c=s[1],u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(null),2),h=f[0],_=f[1],g=Ge(n.useState({baseColor:null,normal:null,metallic:null,ao:null,roughness:null,height:null}),2),v=g[0],y=g[1],x=Ge(n.useState(!1),2),b=x[0],M=x[1],w=Ge(n.useState(null),2),T=w[0],E=w[1],C=n.useRef(null),N=n.useRef(null),L=Ge(n.useState(!1),2),k=L[0],I=L[1],P=Ge(n.useState({}),2),A=P[0],R=P[1],D=Ge(n.useState("single"),2),z=D[0],U=D[1],B=Ge(n.useState([]),2),G=B[0],F=B[1],O=n.useRef(null),H=n.useRef(null),j=Ge(n.useState(!1),2),W=j[0],q=j[1],K=Ge(n.useState(!1),2),X=K[0],Y=K[1],Z=Ge(n.useState(""),2),Q=Z[0],$=Z[1],ee=Ge(n.useState(""),2),te=ee[0],ae=ee[1],ne=Ge(n.useState(Ji),2),re=ne[0],oe=ne[1],ie=n.useRef(null),le=n.useRef(null),se=Ge(n.useState(null),2),de=se[0],ce=se[1],ue=Ge(n.useState(null),2),me=ue[0],pe=ue[1],fe=Ge(n.useState(!1),2),he=fe[0],_e=fe[1];n.useEffect(function(){if(t){if(t&&i){U("single"),c(i.name||""),p(i.id||""),_({name:i.refImageName||i.referenceImageName||i.name+"_ref",url:i.referenceImage||i.refImageUrl||i.url,format:i.referenceImageFormat||i.format,resolution:i.resolution}),y({baseColor:i.baseColor||i.baseColorUrl?{name:"BaseColor.png",url:i.baseColor||i.baseColorUrl}:null,normal:i.normal||i.normalUrl?{name:"Normal.png",url:i.normal||i.normalUrl}:null,metallic:i.metallic||i.metallicUrl?{name:"Metallic.png",url:i.metallic||i.metallicUrl}:null,ao:i.ao||i.aoUrl?{name:"AO.png",url:i.ao||i.aoUrl}:null,roughness:i.roughness||i.roughnessUrl?{name:"Roughness.png",url:i.roughness||i.roughnessUrl}:null,height:i.height||i.heightUrl?{name:"Height.png",url:i.height||i.heightUrl}:null})}}else l||(c(""),p(""),_(null),y({baseColor:null,normal:null,metallic:null,ao:null,roughness:null,height:null}),M(!1),U("single"),F([]),$(""),ae(""),oe({referenceImage:null,baseColor:null,normal:null,ao:null,roughness:null,height:null,metallic:null})),E(null),I(!1),R({}),q(!1),Y(!1),_e(!1),C.current&&(C.current.value=""),O.current&&(O.current.value=""),H.current&&(H.current.value=""),ie.current&&(ie.current.value=""),le.current&&(le.current.value="")},[t]);var ge,ve=function(e){return(null==e?void 0:e.data)||e},ye=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Mi({count:t});case 1:if(a=ve(e.v),n=(null==a?void 0:a.value)||[],!(null==a?void 0:a.success)||200!==(null==a?void 0:a.code)||t>n.length){e.n=2;break}return e.a(2,n.slice(0,t).map(function(e){return e+""}));case 2:throw Error((null==a?void 0:a.message)||"生成素材 ID 失败");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),xe=function(){var e=we(ze().m(function e(){var t,a;return ze().w(function(e){for(;;)switch(e.n){case 0:if(!l){e.n=1;break}return e.a(2,((null==i?void 0:i.id)||"")+"");case 1:if(!m){e.n=2;break}return e.a(2,m);case 2:return e.n=3,ye(1);case 3:return t=Ge(e.v,1),p(a=t[0]),e.a(2,a)}},e)}));return function(){return e.apply(this,arguments)}}(),be=function(){var e=we(ze().m(function e(){var t,a;return ze().w(function(e){for(;;)switch(e.n){case 0:if(!te){e.n=1;break}return e.a(2,te);case 1:return e.n=2,ye(1);case 2:return t=Ge(e.v,1),ae(a=t[0]),e.a(2,a)}},e)}));return function(){return e.apply(this,arguments)}}(),Me=function(e){return"ZIP"===function(){var e;return(null===(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(".").pop())||void 0===e?void 0:e.toUpperCase())||""}(null==e?void 0:e.name).toUpperCase()},Se=function(e){return(null==e?void 0:e.file)||e},Te=function(e){var t=Se(e);return(null==e?void 0:e.path)||(null==t?void 0:t.webkitRelativePath)||(null==t?void 0:t.name)},Ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=e.createReader(),n="".concat(t).concat(e.name,"/");return new Promise(function(e){var t=[],r=function(){a.readEntries(function(){var a=we(ze().m(function a(o){return ze().w(function(a){for(;;)switch(a.n){case 0:if(o.length){a.n=2;break}return a.n=1,Promise.all(t.map(function(e){return Ce(e,n)}));case 1:return e(a.v.reduce(function(e,t){return e.concat(t)},[])),a.a(2);case 2:t.push.apply(t,Fe(o)),r();case 3:return a.a(2)}},a)}));return function(e){return a.apply(this,arguments)}}())};r()})},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.isFile?new Promise(function(a){e.file(function(e){return a([{file:e,path:"".concat(t).concat(e.name)}])})}):e.isDirectory?Ee(e,t):Promise.resolve([])},Le=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.n){case 0:if(a=Array.from(t.items||[]),(n=a.map(function(e){return e.webkitGetAsEntry&&e.webkitGetAsEntry()}).filter(Boolean)).length){e.n=1;break}return e.a(2,Array.from(t.files||[]));case 1:return e.n=2,Promise.all(n.map(function(e){return Ce(e)}));case 2:return e.a(2,e.v.reduce(function(e,t){return e.concat(t)},[]))}},e)}));return function(t){return e.apply(this,arguments)}}(),ke=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),t=Zi.find(function(t){return e.includes(t.token)});return(null==t?void 0:t.key)||""},Ie=function(e,t){return{id:(t||(null==e?void 0:e.id)||"")+"",name:(null==e?void 0:e.name)||"",referenceImage:(null==e?void 0:e.referenceImage)||"",resolution:(null==e?void 0:e.resolution)||"",baseColor:(null==e?void 0:e.baseColor)||"",normal:(null==e?void 0:e.normal)||"",ao:(null==e?void 0:e.ao)||"",roughness:(null==e?void 0:e.roughness)||"",height:(null==e?void 0:e.height)||"",metallic:(null==e?void 0:e.metallic)||""}},Pe=function(e,t){return(null==e?void 0:e[t])||Object.values(e||{}).find(function(e){return(null==e?void 0:e.fileName)===t})||{}},Ae=function(e,t){var a,n,r=null===(a=e.name)||void 0===a||null===(n=a.split(".").pop())||void 0===n?void 0:n.toUpperCase();return!!Yi.includes(r)||(o&&o({type:"error",message:"不支持的文件格式 ".concat(r,",请上传 PNG / JPG / EXR / TGA 格式文件")}),!1)},De=function(e){e.preventDefault(),e.stopPropagation(),I(!0)},Ue=function(e){e.preventDefault(),e.stopPropagation(),I(!1)},Be=function(e){e.preventDefault(),e.stopPropagation()},Oe=function(e){e.preventDefault(),e.stopPropagation(),I(!1);var t=e.dataTransfer.files,a=null==t?void 0:t[0];a&&Ae(a)&&(N.current="reference",qe(a))},He=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!0))})}},Ve=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!1))})}},je=function(e){e.preventDefault(),e.stopPropagation()},We=function(e){return function(t){t.preventDefault(),t.stopPropagation(),R(function(t){return Re(Re({},t),{},Ne({},e,!1))});var a=t.dataTransfer.files,n=null==a?void 0:a[0];n&&Ae(n)&&(N.current=e,qe(n))}},qe=function(){var e=we(ze().m(function e(t){var a,n,r,i,l,s,d,c;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:return E(a=N.current),e.p=2,e.n=3,xe();case 3:return(n=new FormData).append("file",t),e.n=4,da(n);case 4:if(s=(l=(i=(r=e.v)?r.data:r)?i.value:null)&&l.fileAccessUrl||i&&i.fileAccessUrl,!i||200!==i.code||!s){e.n=8;break}if(d=s.split(".").pop()||"","reference"!==a){e.n=6;break}return e.n=5,Ke(s);case 5:_({name:t.name,url:s,file:t,resolution:e.v,format:d}),e.n=7;break;case 6:Ki.find(function(e){return e.key===a})&&y(function(e){return Re(Re({},e),{},Ne({},a,{name:t.name,url:s,file:t}))});case 7:e.n=9;break;case 8:throw Error(i&&i.message?i.message:"上传失败");case 9:e.n=11;break;case 10:e.p=10,console.error("上传失败",c=e.v),o&&o({type:"error",message:c&&c.message?c.message:"上传失败"});case 11:return e.p=11,E(null),N.current=null,C.current&&(C.current.value=""),e.f(11);case 12:return e.a(2)}},e,null,[[2,10,11,12]])}));return function(t){return e.apply(this,arguments)}}(),Ke=function(e){return new Promise(function(t){var a=new Image;a.onload=function(){t(a.naturalWidth+"x"+a.naturalHeight)},a.onerror=function(){t("")},a.src=e})},Xe=function(e){if(!e)return"";var t=e.split(".");return t.length>1?t[t.length-1].toLowerCase():""},Ye=function(e){N.current=e,C.current&&C.current.click()},Ze=function(){var e=we(ze().m(function e(){var t,n,s,c,u,m,p,f,_;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(l||h&&h.url){e.n=1;break}return o&&o({type:"error",message:"请上传参考图"}),e.a(2);case 1:if(t=Object.values(v).some(function(e){return e&&e.url}),l||t){e.n=2;break}return o&&o({type:"error",message:"请至少上传一个 PBR 贴图"}),e.a(2);case 2:if(M(!0),e.p=3,n={name:d,referenceImage:(null==h?void 0:h.url)||"",referenceImageFormat:(null==h?void 0:h.format)||Xe(null==h?void 0:h.url),resolution:(null==h?void 0:h.resolution)||"",baseColor:v.baseColor?v.baseColor.url:"",normal:v.normal?v.normal.url:"",metallic:v.metallic?v.metallic.url:"",ao:v.ao?v.ao.url:"",roughness:v.roughness?v.roughness.url:"",height:v.height?v.height.url:""},!l){e.n=5;break}return n.id=i.id,e.n=4,xi(n);case 4:(null==(c=null==(s=e.v)?void 0:s.data)?void 0:c.success)&&200===(null==c?void 0:c.code)?(r&&r({type:"success",message:"编辑成功"}),a()):o&&o({type:"error",message:(null==c?void 0:c.message)||(null==s?void 0:s.message)||"操作失败"}),e.n=8;break;case 5:return e.n=6,xe();case 6:return n.id=e.v,e.n=7,Ni({items:[Ie(n)]});case 7:(null==(m=null==(u=e.v)?void 0:u.data)?void 0:m.success)&&200===(null==m?void 0:m.code)?(r&&r({type:"success",message:"上传成功"}),a()):o&&o({type:"error",message:(null==m?void 0:m.message)||(null==u?void 0:u.message)||"操作失败"});case 8:e.n=10;break;case 9:e.p=9,console.error("操作失败",_=e.v),o&&o({type:"error",message:(null==_||null===(p=_.response)||void 0===p||null===(f=p.data)||void 0===f?void 0:f.message)||(null==_?void 0:_.message)||"操作失败"});case 10:return e.p=10,M(!1),e.f(10);case 11:return e.a(2)}},e,null,[[3,9,10,11]])}));return function(){return e.apply(this,arguments)}}(),Qe=function(e){var t={referenceImage:e.referenceImage?{name:"参考图",url:e.referenceImage}:null,baseColor:e.baseColor?{name:"BaseColor",url:e.baseColor}:null,normal:e.normal?{name:"Normal",url:e.normal}:null,ao:e.ao?{name:"AO",url:e.ao}:null,roughness:e.roughness?{name:"Roughness",url:e.roughness}:null,height:e.height?{name:"Height",url:e.height}:null,metallic:e.metallic?{name:"Metallic",url:e.metallic}:null};return Re(Re({},Ie(e)),{},{channels:t,channelCount:Xi.filter(function(e){return t[e.key]}).length,expanded:!1})},Je=function(){var e=we(ze().m(function e(t){var a,n,r,o,i,l,s,d,c;return ze().w(function(e){for(;;)switch(e.n){case 0:return(a=new FormData).append("file",t),e.n=1,da(a);case 1:if(i=(o=(r=(n=e.v)?n.data:n)?r.value:null)&&o.fileAccessUrl||r&&r.fileAccessUrl,r&&200===r.code&&i){e.n=2;break}throw Error((null==r?void 0:r.message)||"上传失败");case 2:return l=t.name,s=i,d=t,c=Xe(i),e.n=3,Ke(i);case 3:return e.a(2,{name:l,url:s,file:d,format:c,resolution:e.v})}},e)}));return function(t){return e.apply(this,arguments)}}(),$e=function(e,t,a){F(function(n){return n.map(function(n,r){if(r!==e)return n;var o=Re(Re({},n.channels||{}),{},Ne({},t,{name:a.name,url:a.url})),i=Re(Re({},n),{},Ne(Ne({},t,a.url),"channels",o));return"referenceImage"===t&&(i.resolution=a.resolution||n.resolution||""),i.channelCount=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Xi.filter(function(t){var a;return e[t.key]||(null===(a=e.channels)||void 0===a?void 0:a[t.key])}).length}(i),i})})},et=function(){var e=we(ze().m(function e(t){var a,n,r,i;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=t.target.files&&t.target.files[0],n=de,t.target.value="",a&&n){e.n=1;break}return ce(null),e.a(2);case 1:if(Ae(a)){e.n=2;break}return ce(null),e.a(2);case 2:if(r="".concat(n.type,"-").concat(n.rowIndex||0,"-").concat(n.channelKey),pe(r),e.p=3,"batchOne"!==n.type){e.n=5;break}return e.n=4,be();case 4:oe(function(e){return Re(Re({},e),{},Ne({},n.channelKey,{name:a.name,url:URL.createObjectURL(a),file:a}))}),e.n=7;break;case 5:return e.n=6,Je(a);case 6:$e(n.rowIndex,n.channelKey,e.v);case 7:e.n=9;break;case 8:e.p=8,console.error("通道上传失败",i=e.v),o&&o({type:"error",message:(null==i?void 0:i.message)||"通道上传失败"});case 9:return e.p=9,pe(null),ce(null),e.f(9);case 10:return e.a(2)}},e,null,[[3,8,9,10]])}));return function(t){return e.apply(this,arguments)}}(),tt=function(){var e=we(ze().m(function e(t,a){var n,r,i,l,s,d;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==t.length){e.n=1;break}return e.a(2);case 1:if(0!==(n=t.filter(function(e){var t=Se(e);return!("zip"===a&&!Me(t))||(o&&o({type:"error",message:"不支持 ".concat(t.name," 格式,请上传 ZIP 压缩包")}),!1)})).length){e.n=2;break}return e.a(2);case 2:if(Y(!1),M(!0),e.p=3,r=new FormData,n.forEach(function(e){var t=Se(e);r.append("folder"===a?"files":"file",t,Te(e))}),"zip"!==a){e.n=5;break}return e.n=4,Si(r);case 4:s=e.v,e.n=7;break;case 5:return e.n=6,Ei(r);case 6:s=e.v;case 7:if((null==(i=ve(s))?void 0:i.success)&&200===(null==i?void 0:i.code)){e.n=8;break}throw Error((null==i?void 0:i.message)||("zip"===a?"上传材质压缩包失败":"上传材质文件夹失败"));case 8:l=(i.value||[]).map(Qe),F(function(e){return[].concat(Fe(e),Fe(l))}),e.n=10;break;case 9:e.p=9,console.error("解析批量材质失败",d=e.v),o&&o({type:"error",message:(null==d?void 0:d.message)||"解析批量材质失败"});case 10:return e.p=10,M(!1),e.f(10);case 11:return e.a(2)}},e,null,[[3,9,10,11]])}));return function(t,a){return e.apply(this,arguments)}}(),at=function(){var e=we(ze().m(function e(t){var a,n,r;return ze().w(function(e){for(;;)switch(e.n){case 0:return t.preventDefault(),t.stopPropagation(),q(!1),e.n=1,Le(t.dataTransfer);case 1:if(n=(a=e.v).filter(function(e){return Me(Se(e))}),r=a.filter(function(e){return!Me(Se(e))}),n.length<=0){e.n=2;break}return e.n=2,tt(n,"zip");case 2:if(r.length<=0){e.n=3;break}return e.n=3,tt(r,"folder");case 3:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}(),nt=function(e){Y(!1),U(e)},rt=function(){var e=we(ze().m(function e(){var t,n,i;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==G.length){e.n=1;break}return o&&o({type:"error",message:"请先添加要上传的文件"}),e.a(2);case 1:return M(!0),e.p=2,t=G.map(function(e){return Ie(e)}),e.n=3,Ni({items:t});case 3:if((null==(n=ve(e.v))?void 0:n.success)&&200===(null==n?void 0:n.code)){e.n=4;break}throw Error((null==n?void 0:n.message)||"批量保存失败");case 4:r&&r({type:"success",message:"上传成功:".concat(t.length," 个材质已加入素材库")}),a(),e.n=6;break;case 5:e.p=5,console.error("批量上传多材质失败",i=e.v),o&&o({type:"error",message:(null==i?void 0:i.message)||"批量上传失败"});case 6:return e.p=6,M(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),ot=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a=Ji(),t.forEach(function(e){if(Ae(e)){var t=ke(e.name);t&&(a[t]={name:e.name,url:URL.createObjectURL(e),file:e})}}),Object.values(a).some(Boolean)){e.n=1;break}return o&&o({type:"error",message:"未识别到符合命名规范的贴图文件"}),e.a(2);case 1:return e.p=1,e.n=2,be();case 2:e.n=4;break;case 3:return e.p=3,console.error("生成素材 ID 失败",n=e.v),o&&o({type:"error",message:(null==n?void 0:n.message)||"生成素材 ID 失败"}),e.a(2);case 4:oe(function(e){return Re(Re({},e),a)});case 5:return e.a(2)}},e,null,[[1,3]])}));return function(t){return e.apply(this,arguments)}}(),it=function(){var e=we(ze().m(function e(){var t,n,i,l,s,d,c,u;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(0!==(t=Object.values(re).filter(Boolean)).length){e.n=1;break}return o&&o({type:"error",message:"请先添加要上传的文件"}),e.a(2);case 1:return M(!0),e.p=2,e.n=3,be();case 3:return n=e.v,i=new FormData,t.forEach(function(e){return i.append("file",e.file)}),e.n=4,ua(i);case 4:if((null==(l=ve(e.v))?void 0:l.success)&&200===(null==l?void 0:l.code)){e.n=5;break}throw Error((null==l?void 0:l.message)||"上传文件失败");case 5:return s=(null==l?void 0:l.value)||{},d={id:n,name:Q,referenceImage:"",resolution:"",baseColor:"",normal:"",ao:"",roughness:"",height:"",metallic:""},Object.entries(re).forEach(function(e){var t=Ge(e,2),a=t[0],n=t[1];if(n){var r=Pe(s,n.name).fileAccessUrl||"";if(!r)throw Error("".concat(n.name," 上传地址缺失"));d[a]=r}}),e.n=6,Ni({items:[Ie(d)]});case 6:if((null==(c=ve(e.v))?void 0:c.success)&&200===(null==c?void 0:c.code)){e.n=7;break}throw Error((null==c?void 0:c.message)||"批量保存失败");case 7:r&&r({type:"success",message:"上传成功"}),a(),e.n=9;break;case 8:e.p=8,console.error("同材质多图上传失败",u=e.v),o&&o({type:"error",message:(null==u?void 0:u.message)||"上传失败"});case 9:return e.p=9,M(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(){return e.apply(this,arguments)}}();return t?V.default.createElement("div",{className:qi.overlay,onClick:function(e){}},V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",style:{display:"none"},ref:C,onChange:function(e){var t=e.target.files,a=t&&t[0];a&&Ae(a)&&qe(a)}}),V.default.createElement("input",{type:"file",accept:".zip",multiple:!0,style:{display:"none"},ref:O,onChange:function(e){var t=Array.from(e.target.files||[]);tt(t,"zip"),e.target.value=""}}),V.default.createElement("input",{type:"file",multiple:!0,webkitdirectory:"",directory:"",style:{display:"none"},ref:H,onChange:function(e){var t=Array.from(e.target.files||[]);tt(t,"folder"),e.target.value=""}}),V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",multiple:!0,style:{display:"none"},ref:ie,onChange:function(e){var t=Array.from(e.target.files||[]);ot(t)}}),V.default.createElement("input",{type:"file",accept:".png,.jpg,.jpeg,.exr,.tga",style:{display:"none"},ref:le,onChange:et}),V.default.createElement("div",{className:qi.modal,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:qi.header},V.default.createElement("span",{className:qi.title},l?"编辑材质素材":"上传材质"),V.default.createElement("button",{className:qi.closeBtn,onClick:a,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:qi.body},!l&&V.default.createElement(V.default.Fragment,null,V.default.createElement("p",{className:qi.subtitle},"上传 PBR 材质贴图,支持 PNG / JPG / EXR / TGA 格式。素材 ID 自动生成,不可编辑。支持两类批量上传。"),V.default.createElement("div",{className:qi.uploadTabs},V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("single"===z?qi.uploadTabActive:""),onClick:function(){return nt("single")}},"单材质上传"),V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("batchMulti"===z?qi.uploadTabActive:""),onClick:function(){return nt("batchMulti")}},"批量上传·多材质"),V.default.createElement("button",{className:"".concat(qi.uploadTab," ").concat("batchOne"===z?qi.uploadTabActive:""),onClick:function(){return nt("batchOne")}},"批量上传·同材质多图"))),"single"===z&&V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label},"材质名称"),V.default.createElement(J.default,{placeholder:"如:北欧橡木地板纹",className:qi.input,value:d,onChange:function(e){return c(e.target.value)}})),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label},"素材 ID"),V.default.createElement("div",{className:qi.fieldWrap},V.default.createElement(J.default,{className:qi.input,value:m,disabled:!0}),V.default.createElement("span",{className:qi.materialIdHint},"(自动生成,不可编辑)"))),V.default.createElement("div",{className:qi.uploadSection},V.default.createElement("div",{className:qi.referenceArea},V.default.createElement("div",{className:qi.chartletLabel},"贴图"),(ge="reference"===T,V.default.createElement("div",{className:qi.refUploadContainer},h&&h.url?V.default.createElement("div",{className:"".concat(qi.refUploadEmpty," ").concat(k?qi.dragging:""),onClick:function(){return Ye("reference")},onDragEnter:De,onDragOver:Be,onDragLeave:Ue,onDrop:Oe,style:{backgroundImage:"url(".concat(h.url,")"),backgroundSize:"cover",backgroundPosition:"center"}},V.default.createElement("div",{className:qi.refUploadOverlay},V.default.createElement("span",{className:qi.refUploadOverlayText},"点击上传"))):V.default.createElement("div",{className:"".concat(qi.refUploadEmpty," ").concat(ge?qi.refUploading:""," ").concat(""," ").concat(k?qi.dragging:""),onClick:function(){return!ge&&Ye("reference")},onDragEnter:De,onDragOver:Be,onDragLeave:Ue,onDrop:Oe},ge?V.default.createElement("span",{className:qi.refUploadingText},"上传中..."):V.default.createElement(V.default.Fragment,null,V.default.createElement(S.PlusOutlined,{className:qi.refUploadIcon}),V.default.createElement("span",{className:qi.refUploadText},"点击上传"),V.default.createElement("span",{className:qi.refUploadHint},"建议800*800px"),V.default.createElement("span",{className:qi.infoChip},V.default.createElement(S.InfoCircleOutlined,null),"该图将作为材质缩略图"))),V.default.createElement("div",{className:qi.refUploadLabel},"参考图")))),V.default.createElement("div",{className:qi.pbrArea},V.default.createElement("div",{className:qi.areaLabel},"PBR 贴图(6通道)"),V.default.createElement("div",{className:qi.pbrGrid},Ki.map(function(e){return V.default.createElement("div",{key:e.key,className:qi.pbrItem},function(e){var t=T===e.key,a=v[e.key],n=A[e.key]||!1;return a&&a.url?V.default.createElement("div",{className:"".concat(qi.pbrUploadFilled," ").concat(n?qi.dragging:""),onClick:function(){return Ye(e.key)},onDragEnter:He(e.key),onDragOver:je,onDragLeave:Ve(e.key),onDrop:We(e.key)},V.default.createElement("img",{src:a.url,alt:a.name,className:qi.pbrUploadedImage}),V.default.createElement("div",{className:qi.pbrUploadOverlay},V.default.createElement("span",{className:qi.pbrUploadOverlayText},"点击或拖拽上传"))):V.default.createElement("div",{className:"".concat(qi.pbrUploadEmpty," ").concat(t?qi.pbrUploading:""," ").concat(""," ").concat(n?qi.dragging:""),onClick:function(){return!t&&Ye(e.key)},onDragEnter:He(e.key),onDragOver:je,onDragLeave:Ve(e.key),onDrop:We(e.key)},t?V.default.createElement("span",{className:qi.pbrUploadingText},"上传中..."):V.default.createElement(V.default.Fragment,null,V.default.createElement(S.PlusOutlined,{className:qi.pbrUploadIcon}),V.default.createElement("span",{className:qi.pbrUploadText},"点击上传")))}(e),V.default.createElement("div",{className:qi.pbrLabel},e.label))}))))),"batchMulti"===z&&V.default.createElement("div",{className:qi.batchMultiWrap},V.default.createElement("div",{className:"".concat(qi.batchDragger," ").concat(W?qi.batchDragging:""),onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),q(!0)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),q(!1)},onDrop:at,onClick:function(){b||Y(function(e){return!e})}},V.default.createElement("div",{className:qi.batchDraggerIcon}),V.default.createElement("div",{className:qi.batchDraggerText},"拖拽多个材质文件夹/压缩包到此处,或点击选择上传"),V.default.createElement("div",{className:qi.batchDraggerHint},"支持 ZIP 压缩包,或包含参考图与 PBR 通道图的材质文件夹"),V.default.createElement("button",{type:"button",className:qi.batchPickerTrigger},"选择上传类型",V.default.createElement(S.DownOutlined,{className:qi.batchPickerArrow})),X&&V.default.createElement("div",{className:qi.batchPickerMenu,onClick:function(e){return e.stopPropagation()}},V.default.createElement("button",{type:"button",onClick:function(){Y(!1),O.current&&O.current.click()}},V.default.createElement("span",null,"选择压缩包")),V.default.createElement("button",{type:"button",onClick:function(){Y(!1),H.current&&H.current.click()}},V.default.createElement("span",null,"选择文件夹"))),V.default.createElement("div",{className:qi.batchDraggerInfo},V.default.createElement("span",null,"每个材质独立生成素材 ID,自动读取参考图与六通道贴图"))),G.length>0&&V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:qi.batchListTitle},"待上传清单(素材 ID 自动生成)"),V.default.createElement("div",{className:qi.batchList},V.default.createElement("div",{className:qi.batchListHeader},V.default.createElement("span",{className:qi.batchListHeaderCol1},"素材ID"),V.default.createElement("span",{className:qi.batchListHeaderCol2},"材质名称"),V.default.createElement("span",{className:qi.batchListHeaderCol3},"通道数"),V.default.createElement("span",{className:qi.batchListHeaderCol4},"展开"),V.default.createElement("span",{className:qi.batchListHeaderCol5},"操作")),G.map(function(e,t){return V.default.createElement("div",{key:t},V.default.createElement("div",{className:qi.batchListRow},V.default.createElement("span",{className:"".concat(qi.batchListRowCol1," ").concat(qi.batchId)},e.id||"待生成"),V.default.createElement("span",{className:qi.batchListRowCol2},e.name),V.default.createElement("span",{className:qi.batchListRowCol3},e.channelCount,"/6"),V.default.createElement("span",{className:"".concat(qi.batchListRowCol4," ").concat(qi.batchExpandBtn),onClick:function(){var e=Fe(G);e[t].expanded=!e[t].expanded,F(e)}},e.expanded?"收起":"查看",V.default.createElement("span",{className:"".concat(qi.expandIcon," ").concat(e.expanded?qi.expandIconRotated:"")},V.default.createElement("svg",{viewBox:"0 0 14.7 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},V.default.createElement("path",{d:"M2 4L7.35 11L12 4",stroke:"#1890FF",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),V.default.createElement("span",{className:qi.batchListRowCol5},V.default.createElement("button",{type:"button",className:qi.batchDeleteBtn,disabled:!!me||b,onClick:function(a){a.stopPropagation(),function(e,t){F(function(a){return a.filter(function(a,n){return e?a.id+""!=e+"":n!==t})})}(e.id,t)}},"删除"))),e.expanded&&V.default.createElement("div",{className:qi.batchExpandRow},Qi.map(function(a){var n,r=null===(n=e.channels)||void 0===n?void 0:n[a.key],o="batchMulti-".concat(t,"-").concat(a.key),i=me===o;return V.default.createElement("button",{key:a.key,type:"button",className:"".concat(qi.channelItem," ").concat(qi.channelActionItem),onClick:function(){return e=t,n=a.key,void(b||me||(ce({type:"batchMulti",rowIndex:e,channelKey:n}),le.current&&le.current.click()));var e,n},disabled:!!me||b},r?V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("img",{src:r.url,alt:a.label,className:qi.channelThumb}),V.default.createElement("span",{className:qi.channelHoverText},i?"上传中":"替换")):V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("span",{className:"".concat(qi.channelThumb," ").concat(qi.channelThumbMissing)}),V.default.createElement("span",{className:qi.channelHoverText},i?"上传中":"上传")),V.default.createElement("span",{className:r?"":qi.channelLabelGray},a.label))})))})))),"batchOne"===z&&V.default.createElement("div",{className:qi.batchOneWrap},V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}},"材质名称 "),V.default.createElement(J.default,{placeholder:"如:爵士白大理石",className:qi.input,value:Q,onChange:function(e){return $(e.target.value)}})),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}},"素材 ID"),V.default.createElement("div",{className:qi.fieldWrap},V.default.createElement(J.default,{className:qi.input,value:te,disabled:!0}),V.default.createElement("span",{className:qi.materialIdHint},"(自动生成,不可编辑)"))),V.default.createElement("div",{className:qi.formItem},V.default.createElement("label",{className:qi.label,style:{width:"70px"}}),V.default.createElement("div",{className:"".concat(qi.batchDragger," ").concat(he?qi.batchDragging:""," ").concat(qi.batchDraggerBatchOne),onDragEnter:function(e){e.preventDefault(),e.stopPropagation(),_e(!0)},onDragOver:function(e){e.preventDefault(),e.stopPropagation()},onDragLeave:function(e){e.preventDefault(),e.stopPropagation(),_e(!1)},onDrop:function(e){e.preventDefault(),e.stopPropagation(),_e(!1),ot(Array.from(e.dataTransfer.files||[]))},onClick:function(){ie.current&&ie.current.click()}},V.default.createElement("div",{className:qi.batchDraggerIcon}),V.default.createElement("div",{className:qi.batchDraggerText},"批量选择同一材质的多张贴图(参考图 + 六通道)"),V.default.createElement("div",{className:qi.batchDraggerHint},"系统按文件名自动识别通道(_main_hd / _basecolor / _normal / _ao / _roughness / _height / _metallic)"))),Object.values(re).some(function(e){return e})&&V.default.createElement("div",{className:qi.batchOneChannelSection},V.default.createElement("div",{className:qi.batchOneChannelTitle},"已识别通道"),V.default.createElement("div",{className:qi.batchOneChannelGrid},Qi.map(function(e){var t=re[e.key],a=me==="batchOne-0-".concat(e.key);return V.default.createElement("button",{key:e.key,type:"button",className:"".concat(qi.channelItem," ").concat(qi.channelActionItem),onClick:function(){return t=e.key,void(b||me||(ce({type:"batchOne",channelKey:t}),le.current&&le.current.click()));var t},disabled:!!me||b},t?V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("img",{src:t.url,alt:e.label,className:qi.channelThumb}),V.default.createElement("span",{className:qi.channelHoverText},a?"上传中":"替换")):V.default.createElement("span",{className:qi.channelThumbWrap},V.default.createElement("span",{className:"".concat(qi.channelThumb," ").concat(qi.channelThumbMissing)}),V.default.createElement("span",{className:qi.channelHoverText},a?"上传中":"上传")),V.default.createElement("span",{className:t?"":qi.channelLabelGray},e.label))}))))),V.default.createElement("div",{className:qi.footer},V.default.createElement("button",{className:qi.cancelBtn,onClick:a,type:"button"},"取消"),"single"===z?V.default.createElement("button",{type:"button",className:qi.confirmBtn,onClick:Ze,disabled:b},$i(b,l?"保存":"上传")):V.default.createElement("button","batchMulti"===z?{type:"button",className:qi.confirmBtn,onClick:rt,disabled:b||0===G.length}:{type:"button",className:qi.confirmBtn,onClick:it,disabled:b||!Object.values(re).some(function(e){return e})},$i(b,"上传"))))):null}),tl="TexturePreviewModal-module_overlay__2ZzPl",al="TexturePreviewModal-module_modal__3kCpx",nl="TexturePreviewModal-module_header__2oMTf",rl="TexturePreviewModal-module_title__3LJJs",ol="TexturePreviewModal-module_closeBtn__BcOID",il="TexturePreviewModal-module_body__Pzi3b",ll="TexturePreviewModal-module_subtitle__eYton",sl="TexturePreviewModal-module_separator__3E2S8",dl="TexturePreviewModal-module_previewContent__2VybY",cl="TexturePreviewModal-module_referenceArea__lMOtE",ul="TexturePreviewModal-module_reference__23d0i",ml="TexturePreviewModal-module_areaLabel__1nfRo",pl="TexturePreviewModal-module_materialName__1Isch",fl="TexturePreviewModal-module_referenceImage__2rNLA",hl="TexturePreviewModal-module_loadingPlaceholder__2VCWj",_l="TexturePreviewModal-module_pbrArea__2FaR_",gl="TexturePreviewModal-module_pbrGrid__1HP98",vl="TexturePreviewModal-module_pbrItem__2rvZg",yl="TexturePreviewModal-module_pbrThumbnail__1q2Ei",xl="TexturePreviewModal-module_pbrPlaceholder__jVMYg",bl="TexturePreviewModal-module_pbrLabel__1KZst",Ml="TexturePreviewModal-module_pbrResolution__rYB-b",wl="TexturePreviewModal-module_footer__3darK",Sl="TexturePreviewModal-module_confirmBtn__fXVDk";je(".TexturePreviewModal-module_overlay__2ZzPl{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TexturePreviewModal-module_modal__3kCpx{background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden}.TexturePreviewModal-module_header__2oMTf{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #dde1e6}.TexturePreviewModal-module_title__3LJJs{font-size:18px;font-weight:600;color:#000}.TexturePreviewModal-module_closeBtn__BcOID{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#666;font-size:12px;transition:all .2s}.TexturePreviewModal-module_closeBtn__BcOID:hover{background:#f5f5f5}.TexturePreviewModal-module_body__Pzi3b{padding:20px 24px}.TexturePreviewModal-module_subtitle__eYton{font-size:14px;color:#000;margin:0 0 16px}.TexturePreviewModal-module_subtitle__eYton strong{color:#333;font-weight:500}.TexturePreviewModal-module_separator__3E2S8{margin:0 8px;color:#e8e8e8}.TexturePreviewModal-module_previewContent__2VybY{display:flex;gap:24px}.TexturePreviewModal-module_referenceArea__lMOtE{flex-shrink:0;background:#f0f2f5;border-radius:12px}.TexturePreviewModal-module_reference__23d0i{font-size:12px;font-weight:400;color:#737b8b;margin:12px 0 4px 12px}.TexturePreviewModal-module_areaLabel__1nfRo{font-size:14px;font-weight:400;color:#000;margin-bottom:8px}.TexturePreviewModal-module_materialName__1Isch{font-family:PingFang SC;font-weight:600;font-size:14px;color:#000f2c;margin:0 0 45px 12px}.TexturePreviewModal-module_referenceImage__2rNLA{width:310px;height:310px;border-radius:8px;display:flex;align-items:center;justify-content:center;color:hsla(0,0%,100%,.7);font-size:12px;overflow:hidden;position:relative;margin:4px}.TexturePreviewModal-module_referenceImage__2rNLA img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TexturePreviewModal-module_loadingPlaceholder__2VCWj{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.3);color:#fff}.TexturePreviewModal-module_placeholderText__14GA0{text-align:center;padding:8px}.TexturePreviewModal-module_pbrArea__2FaR_{flex:1}.TexturePreviewModal-module_pbrGrid__1HP98{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;width:410px}.TexturePreviewModal-module_pbrItem__2rvZg{background:#f0f2f5;border-radius:12px;padding:4px;height:184px}.TexturePreviewModal-module_pbrThumbnail__1q2Ei{width:100%;aspect-ratio:1;border-radius:8px;overflow:hidden}.TexturePreviewModal-module_pbrThumbnail__1q2Ei img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TexturePreviewModal-module_pbrPlaceholder__jVMYg{width:100%;height:100%;background:linear-gradient(135deg,#555,#aaa,#555)}.TexturePreviewModal-module_pbrLabel__1KZst{font-size:14px;font-weight:600;color:#000f2c;margin-left:8px;margin-top:8px}.TexturePreviewModal-module_pbrResolution__rYB-b{font-family:PingFang SC;font-weight:400;font-style:Regular;font-size:12px;line-height:22px;letter-spacing:0;margin-left:8px;color:#737b8b}.TexturePreviewModal-module_footer__3darK{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid #e8e8e8;background:#fff}.TexturePreviewModal-module_confirmBtn__fXVDk{padding:4px 15px;border-radius:4px;font-size:14px;color:#737b8b;cursor:pointer;transition:all .2s;background:#fff;border:1px solid #717d99}.TexturePreviewModal-module_confirmBtn__fXVDk:hover{border:1px solid #40a9ff;color:#40a9ff}");var Tl=[{key:"baseColor",label:"BaseColor",icon:"🎨"},{key:"normal",label:"Normal",icon:"🔵"},{key:"metallic",label:"Metallic",icon:"🔶"},{key:"roughness",label:"Roughness",icon:"🔘"},{key:"ao",label:"AO",icon:"⚪"},{key:"height",label:"Height",icon:"⬛"}],El=function(e){var t=e.visible,a=e.record,r=e.onClose,o=Ge(n.useState(!1),2),i=o[0],l=o[1],s=a&&a.name,d=a&&a.referenceImage,c=a&&a.resolution;n.useEffect(function(){t||l(!1)},[t]);var u=a&&{baseColor:a.baseColor,normal:a.normal,metallic:a.metallic,roughness:a.roughness,ao:a.ao,height:a.height};return t?V.default.createElement("div",{className:tl,onClick:function(e){}},V.default.createElement("div",{className:al,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:nl},V.default.createElement("span",{className:rl},"材质预览"),V.default.createElement("button",{className:ol,onClick:r,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:il},V.default.createElement("p",{className:ll},V.default.createElement("span",null,s||"材质名称"),c&&V.default.createElement("span",{className:sl},"·"),c&&V.default.createElement("span",null,c)),V.default.createElement("div",{className:dl},V.default.createElement("div",{className:cl},V.default.createElement("div",{className:fl},d&&V.default.createElement(V.default.Fragment,null,!i&&V.default.createElement("div",{className:hl},"加载中..."),V.default.createElement("img",{src:d,alt:s,onLoad:function(){return l(!0)},onError:function(){return l(!0)},style:{display:i?"block":"none"}}))),V.default.createElement("div",{className:ul},"参考图"),V.default.createElement("div",{className:pl},s||"材质名称")),V.default.createElement("div",{className:_l},V.default.createElement("div",{className:ml},"PBR 贴图"),V.default.createElement("div",{className:gl},Tl.map(function(e){var t=u&&u[e.key];return V.default.createElement("div",{key:e.key,className:vl},V.default.createElement("div",{className:yl},t?V.default.createElement("img",{src:t,alt:e.label}):V.default.createElement("div",{className:xl})),V.default.createElement("div",{className:bl},e.label),c&&V.default.createElement("div",{className:Ml},c))}))))),V.default.createElement("div",{className:wl},V.default.createElement("button",{className:Sl,onClick:r,type:"button"},"关闭")))):null},Cl={overlay:"TextureSelectModal-module_overlay__2zNrF",modal:"TextureSelectModal-module_modal__2cl5U",header:"TextureSelectModal-module_header__3v08Z",title:"TextureSelectModal-module_title__3qAEV",closeBtn:"TextureSelectModal-module_closeBtn__1rn-0",body:"TextureSelectModal-module_body__1g0Tc",currentModelCard:"TextureSelectModal-module_currentModelCard__QaTlT",currentModelLabel:"TextureSelectModal-module_currentModelLabel__3S_sX",currentModelInfo:"TextureSelectModal-module_currentModelInfo__2i2Hi",modelIcon:"TextureSelectModal-module_modelIcon__2FiDR",modelDetail:"TextureSelectModal-module_modelDetail__3PS4Y",modelName:"TextureSelectModal-module_modelName__FrUY9",modelMeta:"TextureSelectModal-module_modelMeta__1Lw3F",searchLabel:"TextureSelectModal-module_searchLabel__3jwsa",searchInput:"TextureSelectModal-module_searchInput__3svlS",searchIcon:"TextureSelectModal-module_searchIcon__3Cdxo",loadingWrap:"TextureSelectModal-module_loadingWrap__3bdvr",materialListWrap:"TextureSelectModal-module_materialListWrap__1BPiK",materialGrid:"TextureSelectModal-module_materialGrid__HVUUR",materialCard:"TextureSelectModal-module_materialCard__1vta6",materialCardSelected:"TextureSelectModal-module_materialCardSelected__1HA0J",materialIcon:"TextureSelectModal-module_materialIcon__2Mj_o",materialInfo:"TextureSelectModal-module_materialInfo__MZx0H",materialName:"TextureSelectModal-module_materialName__3tO_D",materialMeta:"TextureSelectModal-module_materialMeta__36Q1b",resultCount:"TextureSelectModal-module_resultCount__1s8GQ",footer:"TextureSelectModal-module_footer__3mTWa",cancelBtn:"TextureSelectModal-module_cancelBtn__3F4NF",confirmBtn:"TextureSelectModal-module_confirmBtn__g4XsB"};je(".TextureSelectModal-module_overlay__2zNrF{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.TextureSelectModal-module_modal__2cl5U{min-width:580px;background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);overflow:hidden}.TextureSelectModal-module_header__3v08Z{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 16px 24px;border-bottom:1px solid #e8e8e8}.TextureSelectModal-module_title__3qAEV{font-size:16px;font-weight:600;color:#000f2c}.TextureSelectModal-module_closeBtn__1rn-0{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;border-radius:4px;color:#666;font-size:12px;transition:all .2s}.TextureSelectModal-module_closeBtn__1rn-0:hover{background:#f5f5f5}.TextureSelectModal-module_body__1g0Tc{padding:12px 24px 24px}.TextureSelectModal-module_currentModelCard__QaTlT{margin-bottom:24px}.TextureSelectModal-module_currentModelLabel__3S_sX{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-bottom:8px}.TextureSelectModal-module_currentModelInfo__2i2Hi{width:260px;padding:10px;background:#f0f2f5;border-radius:8px;display:flex;align-items:center;gap:6px}.TextureSelectModal-module_modelIcon__2FiDR{width:42px;height:42px;background:linear-gradient(135deg,#7b8b6f,#a8b89a);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:600}.TextureSelectModal-module_modelDetail__3PS4Y{flex:1;display:flex;flex-direction:column;justify-content:space-between}.TextureSelectModal-module_modelName__FrUY9{font-family:PingFang SC;font-weight:600;font-size:14px;line-height:100%;color:#000f2c;margin-bottom:2px}.TextureSelectModal-module_modelMeta__1Lw3F{font-family:PingFang SC;font-weight:400;font-size:12px;line-height:22px;color:#737b8b}.TextureSelectModal-module_searchLabel__3jwsa{font-family:PingFang SC;font-weight:400;font-size:14px;line-height:100%;color:#737b8b;margin-bottom:8px}.TextureSelectModal-module_searchInput__3svlS{width:100%;height:32px;border-radius:6px;border:1px solid #f0f2f5;background:#f0f2f5}.TextureSelectModal-module_searchInput__3svlS .ant-input{background:#f0f2f5}.TextureSelectModal-module_searchInput__3svlS:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.1)}.TextureSelectModal-module_searchIcon__3Cdxo{color:#999}.TextureSelectModal-module_loadingWrap__3bdvr{height:200px;display:flex;align-items:center;justify-content:center}.TextureSelectModal-module_materialListWrap__1BPiK{margin-top:10px}.TextureSelectModal-module_materialGrid__HVUUR{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;max-height:300px;overflow-y:auto}.TextureSelectModal-module_materialCard__1vta6{width:260px;padding:10px;background:#f0f2f5;border-radius:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:6px;border:1px solid transparent}.TextureSelectModal-module_materialCard__1vta6:hover{background:#e8ecf2}.TextureSelectModal-module_materialCard__1vta6.TextureSelectModal-module_materialCardSelected__1HA0J{border:1px solid #1890ff}.TextureSelectModal-module_materialIcon__2Mj_o{width:42px;height:42px;background:linear-gradient(135deg,#7b8b6f,#a8b89a);border-radius:4px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:600;flex-shrink:0;overflow:hidden}.TextureSelectModal-module_materialIcon__2Mj_o>img{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.TextureSelectModal-module_materialInfo__MZx0H{flex:1;display:flex;flex-direction:column;justify-content:space-between}.TextureSelectModal-module_materialName__3tO_D{font-size:14px;font-weight:600;color:#000f2c;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureSelectModal-module_materialMeta__36Q1b{font-size:12px;color:#737b8b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureSelectModal-module_resultCount__1s8GQ{text-align:center;font-size:11px;color:#999;margin-top:8px}.TextureSelectModal-module_footer__3mTWa{display:flex;justify-content:flex-end;gap:12px;padding:14px 24px;border-top:1px solid #e8e8e8;background:#fafafa}.TextureSelectModal-module_cancelBtn__3F4NF{height:32px;padding:0 15px;border-radius:4px;font-size:14px;font-weight:400;color:#737b8b;border:1px solid #717d99;background:#fff}.TextureSelectModal-module_cancelBtn__3F4NF:hover{color:#1890ff;border-color:#1890ff}.TextureSelectModal-module_confirmBtn__g4XsB{height:32px;padding:0 15px;border-radius:4px;font-weight:400;font-size:14px;background:#1890ff!important;border:none!important}.TextureSelectModal-module_confirmBtn__g4XsB:hover{background:#40a9ff!important}");var Nl=function(e){var t=e.visible,a=e.currentMaterial,r=e.onClose,o=e.onConfirm,i=e.onSuccess,l=e.onError,s=Ge(n.useState(null),2),d=s[0],c=s[1],u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=Ge(n.useState(!1),2),v=g[0],y=g[1],x=Ge(n.useState([]),2),b=x[0],M=x[1],w=n.useRef(""),T=n.useRef(!0),E=function(e){var t=null==e?void 0:e.trim();return t?/^\d+$/.test(t)?{id:t}:{name:t}:{}},C=function(){var e=we(ze().m(function e(t){var a,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:return _(!0),e.p=1,a=E(t),e.n=2,ci(a);case 2:(n=e.v)&&n.data&&n.data.success&&M(n.data.value||[]),e.n=4;break;case 3:e.p=3,console.error(e.v);case 4:return e.p=4,_(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(t){return e.apply(this,arguments)}}();n.useEffect(function(){if(t){T.current=!0,c(null),p(""),w.current="",M([]),C("");var e=setTimeout(function(){""!==w.current&&(w.current="",C(""))},300);return function(){return clearTimeout(e)}}},[t]),n.useEffect(function(){if(t){if(!T.current){var e=setTimeout(function(){var e=m;w.current!==e&&(w.current=e,C(e))},300);return function(){return clearTimeout(e)}}T.current=!1}},[m,t]);var N=function(){var e=we(ze().m(function e(){var t,n;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!==d){e.n=1;break}return l&&l({type:"error",message:"请先选择素材"}),e.a(2);case 1:return t=b[d],y(!0),e.p=2,e.n=3,ii({classify3Id:a&&a._raw?a._raw.classify3Id:void 0,defaultMaterialId:t?t.id:void 0});case 3:(n=e.v)&&n.data&&n.data.success?(i&&i({type:"success",message:"设置成功"}),"function"==typeof o&&o({materialId:t?t.id:"",name:t?t.name:"",url:t?t.url:""})):l&&l({type:"error",message:n&&n.data&&n.data.message||"保存失败"}),e.n=5;break;case 4:e.p=4,console.error(e.v),l&&l({type:"error",message:"保存失败"});case 5:return e.p=5,y(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),L=!(!a||!a.hasValue);return t?V.default.createElement("div",{className:Cl.overlay},V.default.createElement("div",{className:Cl.modal,onClick:function(e){return e.stopPropagation()}},V.default.createElement("div",{className:Cl.header},V.default.createElement("span",{className:Cl.title},L?"更换材质":"设置材质"),V.default.createElement("button",{className:Cl.closeBtn,onClick:r},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Cl.body},V.default.createElement("div",{className:Cl.searchCard},V.default.createElement("div",{className:Cl.searchLabel},L?"搜索新材质":"搜索材质素材"),V.default.createElement(J.default,{className:Cl.searchInput,placeholder:"输入材质名称或ID搜索...",prefix:V.default.createElement(S.SearchOutlined,{className:Cl.searchIcon}),value:m,onChange:function(e){return p(e.target.value)}}),V.default.createElement("div",{className:Cl.materialListWrap},h?V.default.createElement("div",{className:Cl.loadingWrap},V.default.createElement(te.default,{size:"large"})):0===b.length?V.default.createElement("div",{className:Cl.loadingWrap},V.default.createElement("span",{style:{color:"#8c8c8c"}},"暂无数据")):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Cl.materialGrid,"data-lazy-scroll-root":!0},b.map(function(e,t){var a=d===t;return V.default.createElement("div",{key:e.id,className:"".concat(Cl.materialCard," ").concat(a?Cl.materialCardSelected:""),onClick:function(){c(t)}},V.default.createElement("div",{className:Cl.materialIcon},e.referenceImage?V.default.createElement(oo,{src:e.referenceImage,alt:e.name}):"贴图"),V.default.createElement("div",{className:Cl.materialInfo},V.default.createElement("div",{className:Cl.materialName,title:e.name},e.name),V.default.createElement("div",{className:Cl.materialMeta,title:e.resolution||"-"},e.resolution||"-")))})),V.default.createElement("div",{className:Cl.resultCount},"共 ",b.length," 条结果"))))),V.default.createElement("div",{className:Cl.footer},V.default.createElement(Y.default,{className:Cl.cancelBtn,onClick:r},"取消"),V.default.createElement(Y.default,{type:"primary",className:Cl.confirmBtn,loading:v,onClick:N},L?"确认更换":"确认设置")))):null},Ll="TextureDeleteModal-module_overlay__lEhlj",kl="TextureDeleteModal-module_modal__23oQn",Il="TextureDeleteModal-module_header__Qtvlh",Pl="TextureDeleteModal-module_title__1VW_d",Al="TextureDeleteModal-module_closeBtn__2QVrs",Rl="TextureDeleteModal-module_body___Wjvw",Dl="TextureDeleteModal-module_confirmText__1AG6I",zl="TextureDeleteModal-module_relationsStatus__3xYeR",Ul="TextureDeleteModal-module_relationsError__J0UmW",Bl="TextureDeleteModal-module_relations__mOpwy",Gl="TextureDeleteModal-module_relationsTitle__11LhE",Fl="TextureDeleteModal-module_relationsList__1Y-Fz",Ol="TextureDeleteModal-module_relationItem__3Sa5m",Hl="TextureDeleteModal-module_defaultMaterialTag__rLjn0",Vl="TextureDeleteModal-module_warning__2RW8s",jl="TextureDeleteModal-module_footer__1vihJ",Wl="TextureDeleteModal-module_cancelBtn__3aS7f",ql="TextureDeleteModal-module_confirmBtn__2f5iD";je(".TextureDeleteModal-module_overlay__lEhlj{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45)}.TextureDeleteModal-module_modal__23oQn{width:400px;min-height:272px;max-height:480px;overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 8px 40px rgba(0,0,0,.15);display:flex;flex-direction:column}.TextureDeleteModal-module_header__Qtvlh{display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 8px 0 24px;border-bottom:1px solid #e5e6eb;flex-shrink:0}.TextureDeleteModal-module_title__1VW_d{color:#000f2c;font-family:PingFang SC,sans-serif;font-size:16px;font-weight:600}.TextureDeleteModal-module_closeBtn__2QVrs{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;color:#4e5969;font-size:12px;cursor:pointer;background:transparent;border:0;border-radius:4px}.TextureDeleteModal-module_closeBtn__2QVrs:hover:not(:disabled){background:#f2f3f5}.TextureDeleteModal-module_closeBtn__2QVrs:disabled{cursor:not-allowed}.TextureDeleteModal-module_body___Wjvw{min-height:156px;padding:14px 24px;overflow-y:auto}.TextureDeleteModal-module_confirmText__1AG6I{color:#000f2c;font-family:PingFang SC,sans-serif;font-size:14px;line-height:22px}.TextureDeleteModal-module_relationsError__J0UmW,.TextureDeleteModal-module_relationsStatus__3xYeR{margin-top:10px;color:#737b8b;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px}.TextureDeleteModal-module_relationsError__J0UmW{color:#ff7d00}.TextureDeleteModal-module_relations__mOpwy{margin-top:10px}.TextureDeleteModal-module_relationsTitle__11LhE{margin-bottom:6px;color:#737b8b;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px}.TextureDeleteModal-module_relationsList__1Y-Fz{max-height:112px;overflow-y:auto;border:1px solid #e5e6eb;border-radius:6px}.TextureDeleteModal-module_relationItem__3Sa5m{display:flex;align-items:center;min-height:36px;padding:6px 10px;color:#000f2c;font-family:PingFang SC,sans-serif;font-size:12px;line-height:20px;background:#f7f8fa;gap:8px}.TextureDeleteModal-module_relationItem__3Sa5m+.TextureDeleteModal-module_relationItem__3Sa5m{border-top:1px solid #e5e6eb}.TextureDeleteModal-module_relationItem__3Sa5m span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.TextureDeleteModal-module_relationItem__3Sa5m span:first-child{flex:1}.TextureDeleteModal-module_defaultMaterialTag__rLjn0{flex-shrink:0;padding:1px 6px;color:#1890ff;background:#e6f4ff;border-radius:4px}.TextureDeleteModal-module_warning__2RW8s{display:flex;align-items:center;width:352px;min-height:40px;padding:0 10px;margin-top:10px;color:#ff7d00;font-family:PingFang SC,sans-serif;font-size:14px;background:#f0f2f5;border-radius:8px;gap:8px}.TextureDeleteModal-module_warning__2RW8s>span{line-height:20px}.TextureDeleteModal-module_footer__1vihJ{display:flex;align-items:center;justify-content:flex-end;height:64px;padding:0 24px;border-top:1px solid #e5e6eb;gap:20px;flex-shrink:0}.TextureDeleteModal-module_cancelBtn__3aS7f,.TextureDeleteModal-module_confirmBtn__2f5iD{height:32px;border-radius:4px;font-family:PingFang SC,sans-serif;font-size:14px;font-weight:400}.TextureDeleteModal-module_cancelBtn__3aS7f{width:60px;color:#737b8b;border-color:#717d99}.TextureDeleteModal-module_confirmBtn__2f5iD{width:88px;background:#1890ff!important;border-color:#1890ff!important}");var Kl,Xl,Yl=function(e){var t=e.record,a=e.relations,n=void 0===a?[]:a,r=e.relationsLoading,o=e.relationsError,i=e.deleteLoading,l=e.onCancel,s=e.onConfirm;return e.visible?V.default.createElement("div",{className:Ll},V.default.createElement("div",{className:kl,role:"dialog","aria-modal":"true","aria-labelledby":"delete-texture-title"},V.default.createElement("div",{className:Il},V.default.createElement("span",{id:"delete-texture-title",className:Pl},"温馨提示"),V.default.createElement("button",{className:Al,onClick:l,disabled:i,type:"button"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:Rl},V.default.createElement("div",{className:Dl},"确认删除 ",(null==t?void 0:t.name)||"-"," 素材"),r&&V.default.createElement("div",{className:zl},"关联内容查询中..."),!r&&o&&V.default.createElement("div",{className:Ul},o),!r&&!o&&n.length>0&&V.default.createElement("div",{className:Bl},V.default.createElement("div",{className:Gl},"当前关联内容(",n.length,")"),V.default.createElement("div",{className:Fl},n.map(function(e,t){var a=!e.skuId&&e.classify3Name;return V.default.createElement("div",{className:Ol,key:"".concat(e.skuId||e.classify3Name||"relation","-").concat(t)},a?V.default.createElement(V.default.Fragment,null,V.default.createElement("span",{title:e.classify3Name},e.classify3Name),V.default.createElement("span",{className:Hl},"默认材质")):V.default.createElement(V.default.Fragment,null,V.default.createElement("span",null,e.brandName||"-"),V.default.createElement("span",null,e.skuId||"-"),e.classify3Name&&V.default.createElement("span",null,e.classify3Name)))}))),!r&&!o&&0===n.length&&V.default.createElement("div",{className:zl},"当前素材暂无关联内容"),V.default.createElement("div",{className:Vl},V.default.createElement(S.ExclamationCircleOutlined,null),V.default.createElement("span",null,"删除后将不可恢复",n.length>0?",以上关联关系也会同步删除":""))),V.default.createElement("div",{className:jl},V.default.createElement(Y.default,{className:Wl,onClick:l,disabled:i},"取消"),V.default.createElement(Y.default,{className:ql,type:"primary",loading:i,onClick:s},"确认删除")))):null},Zl=[{key:"unclassified",label:"未分类材质"},{key:"classified",label:"已分类材质"},{key:"defaultMapping",label:"三级分类默认材质"}],Ql=(Kl=a.connect(function(e){var t=e.materialTextures,a=e.loading;return{materialTextures:t,spaceOptions:t.spaceOptions||[],unclassifiedList:t.unclassifiedList||[],unclassifiedTotal:t.unclassifiedTotal||0,unclassifiedPageNo:t.unclassifiedPageNo||1,unclassifiedPageSize:t.unclassifiedPageSize||20,unclassifiedLoading:a.effects["materialTextures/fetchUnclassified"],classifyList:t.classifyList||[],classifiedList:t.classifiedList||[],classifiedTotal:t.classifiedTotal||0,classifiedPageNo:t.classifiedPageNo||1,classifiedPageSize:t.classifiedPageSize||20,classifiedLoading:a.effects["materialTextures/fetchClassified"],defaultTextureList:t.defaultTextureList||[],defaultTextureLoading:a.effects["materialTextures/fetchDefault"]}}),Kl(Xl=function(e){function t(){var e;Te(this,t);for(var a=arguments.length,n=Array(a),r=0;a>r;r++)n[r]=arguments[r];return(e=Se(this,t,[].concat(n))).deleteRelationRequestId=0,e.state={selectedSpace:"all",activeTab:"unclassified",selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[],unclassifiedKeyword:"",unclassifiedFormat:"all",unclassifiedTimeType:"all",classifiedKeyword:"",classifiedFormat:"all",uploadModalVisible:!1,uploadEditRecord:null,previewModalVisible:!1,previewRecord:null,textureSelectVisible:!1,selectRecord:null,deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1,deleteLoading:!1,toast:null,toastKey:0},e.handleSpaceChange=function(t){e.setState({selectedSpace:t},function(){e.fetchClassifyList(),e.fetchClassifiedList()})},e.handlePageTabChange=function(t){e.setState({activeTab:t,selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[]},function(){"unclassified"===t?e.fetchUnclassifiedList():"classified"===t?(e.fetchClassifyList(),e.fetchClassifiedList()):"defaultMapping"===t&&e.fetchDefault()})},e.fetchClassifyList=function(){var t=e.props.dispatch,a=e.state.selectedSpace,n={};"all"!==a&&(n.space="kitchen"===a?"厨卫空间":a),t({type:"materialTextures/fetchClassifyList",payload:n})},e.fetchUnclassifiedList=function(){var t=e.props.dispatch,a=e.state,n=a.unclassifiedKeyword,r=a.unclassifiedFormat,o=a.unclassifiedTimeType,i={pageNumber:1,pageSize:20};n&&(i.name=n),"all"!==r&&(i.format=r),"today"===o&&(i.uploadDate=(new Date).toISOString().split("T")[0]),t({type:"materialTextures/fetchUnclassified",payload:i})},e.fetchClassifiedList=function(){var t=e.props.dispatch,a=e.state,n=a.classifiedKeyword,r=a.classifiedFormat,o=a.selectedFirstCategory,i=a.selectedSecondCategory,l=a.selectedSpace,s={pageNumber:1,pageSize:20};n&&(s.name=n),"all"!==r&&(s.format=r),"all"!==l&&(s.space="kitchen"===l?"厨卫空间":l),"all"!==o&&(s.classify1=o),"all"!==i&&(s.classify2=i),t({type:"materialTextures/fetchClassified",payload:s})},e.handleClassifiedKeywordChange=function(t){e.setState({classifiedKeyword:t.target.value},function(){e.fetchClassifiedList()})},e.handleClassifiedFormatChange=function(t){e.setState({classifiedFormat:t},function(){e.fetchClassifiedList()})},e.handleClassifiedPageChange=function(t,a){var n=e.props.dispatch,r=e.state,o=r.classifiedKeyword,i=r.classifiedFormat,l=r.selectedFirstCategory,s=r.selectedSecondCategory,d=r.selectedSpace,c={pageNumber:t,pageSize:a||20};o&&(c.name=o),"all"!==i&&(c.format=i),"all"!==d&&(c.space="kitchen"===d?"厨卫空间":d),"all"!==l&&(c.classify1=l),"all"!==s&&(c.classify2=s),n({type:"materialTextures/fetchClassified",payload:c})},e.handleFirstCategoryClick=function(t){e.setState(function(e){var a=e.expandedCategories.includes(t);return{selectedFirstCategory:t,selectedSecondCategory:"all",expandedCategories:a?e.expandedCategories.filter(function(e){return e!==t}):[].concat(Fe(e.expandedCategories),[t])}},function(){e.fetchClassifiedList()})},e.handleAllCategoryClick=function(){e.setState({selectedFirstCategory:"all",selectedSecondCategory:"all",expandedCategories:[]},function(){e.fetchClassifiedList()})},e.handleSecondCategoryClick=function(t,a){e.setState(function(e){var n=e.selectedSecondCategory===a;return{selectedFirstCategory:n?"all":t,selectedSecondCategory:n?"all":a}},function(){e.fetchClassifiedList()})},e.handleFormatChange=function(t){e.setState({selectedFormat:t})},e.handleUnclassifiedKeywordChange=function(t){e.setState({unclassifiedKeyword:t.target.value},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedFormatChange=function(t){e.setState({unclassifiedFormat:t},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedTimeChange=function(t){e.setState({unclassifiedTimeType:t},function(){e.fetchUnclassifiedList()})},e.handleUnclassifiedPageChange=function(t,a){var n={pageNumber:t,pageSize:a},r=e.state,o=r.unclassifiedKeyword,i=r.unclassifiedFormat,l=r.unclassifiedTimeType;o&&(n.name=o),"all"!==i&&(n.format=i),"today"===l&&(n.uploadDate=(new Date).toISOString().split("T")[0]),e.props.dispatch({type:"materialTextures/fetchUnclassified",payload:n})},e.handleUpload=function(){console.log("上传材质"),e.setState({uploadModalVisible:!0,uploadEditRecord:null})},e.handleCloseUploadModal=function(){e.setState({uploadModalVisible:!1,uploadEditRecord:null})},e.handleUploadSuccess=function(t){e.showToast(t.message||"操作成功","success"),e.handleCloseUploadModal();var a=e.props,n=e.state,r=n.unclassifiedKeyword,o=n.unclassifiedFormat,i=n.unclassifiedTimeType,l={pageNumber:a.unclassifiedPageNo,pageSize:a.unclassifiedPageSize};r&&(l.name=r),"all"!==o&&(l.format=o),"today"===i&&(l.uploadDate=(new Date).toISOString().split("T")[0]);var s=e.props,d=e.state,c=d.classifiedKeyword,u=d.classifiedFormat,m=d.selectedFirstCategory,p=d.selectedSecondCategory,f=d.selectedSpace,h={pageNumber:s.classifiedPageNo,pageSize:s.classifiedPageSize};c&&(h.name=c),"all"!==u&&(h.format=u),"all"!==f&&(h.space="kitchen"===f?"厨卫空间":f),"all"!==m&&(h.classify1=m),"all"!==p&&(h.classify2=p),e.props.dispatch({type:"materialTextures/fetchUnclassified",payload:l}),e.props.dispatch({type:"materialTextures/fetchClassified",payload:h})},e.handleUploadError=function(t){e.showToast(t.message||"操作失败",t.type||"error")},e.handleTextureSelectSuccess=function(t){e.fetchDefault()},e.handleTextureSelectError=function(t){e.showToast(t.message||"操作失败",t.type||"error")},e.handlePreview=function(t){e.setState({previewModalVisible:!0,previewRecord:t})},e.handleClosePreviewModal=function(){e.setState({previewModalVisible:!1,previewRecord:null})},e.handleEdit=function(t){e.setState({uploadModalVisible:!0,uploadEditRecord:t})},e.handleDelete=function(){var t=we(ze().m(function t(a){var n,r,o,i,l,s;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(null==a?void 0:a.materialId)||(null==a?void 0:a.id)){t.n=1;break}return e.showToast("缺少材质 ID,无法删除","error"),t.a(2);case 1:return r=++e.deleteRelationRequestId,e.setState({deleteModalVisible:!0,deleteRecord:a,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!0}),t.p=2,t.n=3,ki({materialId:n});case 3:if(i=t.v,r===e.deleteRelationRequestId){t.n=4;break}return t.a(2);case 4:(null==i||null===(o=i.data)||void 0===o?void 0:o.success)?e.setState({deleteRelations:Array.isArray(i.data.value)?i.data.value:[],deleteRelationsLoading:!1}):e.setState({deleteRelationsError:"".concat((null==i||null===(l=i.data)||void 0===l?void 0:l.message)||"关联内容查询失败",",不影响删除"),deleteRelationsLoading:!1}),t.n=7;break;case 5:if(t.p=5,s=t.v,r===e.deleteRelationRequestId){t.n=6;break}return t.a(2);case 6:console.error("查询关联资源失败",s),e.setState({deleteRelationsError:"关联内容查询失败,不影响删除",deleteRelationsLoading:!1});case 7:return t.a(2)}},t,null,[[2,5]])}));return function(e){return t.apply(this,arguments)}}(),e.handleCloseDeleteModal=function(){e.state.deleteLoading||(e.deleteRelationRequestId+=1,e.setState({deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1}))},e.handleConfirmDelete=we(ze().m(function t(){var a,n,r,o,i,l,s;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(null==(a=e.state.deleteRecord)?void 0:a.materialId)||(null==a?void 0:a.id)){t.n=1;break}return t.a(2);case 1:return e.setState({deleteLoading:!0}),t.p=2,t.n=3,Pi({materialId:n});case 3:if(null==(o=t.v)||null===(r=o.data)||void 0===r?void 0:r.success){t.n=4;break}return e.showToast((null==o||null===(i=o.data)||void 0===i?void 0:i.message)||"删除失败","error"),t.a(2);case 4:e.showToast(o.data.message||"删除成功","success"),e.deleteRelationRequestId+=1,e.setState({deleteModalVisible:!1,deleteRecord:null,deleteRelations:[],deleteRelationsError:"",deleteRelationsLoading:!1}),"classified"===e.state.activeTab?(e.handleClassifiedPageChange((l=e.props).classifiedPageNo,l.classifiedPageSize),e.fetchClassifyList()):e.handleUnclassifiedPageChange((s=e.props).unclassifiedPageNo,s.unclassifiedPageSize),t.n=6;break;case 5:t.p=5,console.error("删除失败",t.v),e.showToast("删除失败","error");case 6:return t.p=6,e.setState({deleteLoading:!1}),t.f(6);case 7:return t.a(2)}},t,null,[[2,5,6,7]])})),e.handleDefaultMappingPick=function(t){e.setState({textureSelectVisible:!0,selectRecord:t})},e.handleCloseTextureSelect=function(){e.setState({textureSelectVisible:!1,selectRecord:null})},e.fetchDefault=function(){e.props.dispatch({type:"materialTextures/fetchDefault",payload:{assetType:"高清贴图"}})},e.handleConfirmTextureSelect=function(){var t=we(ze().m(function t(a){var n,r,o,i,l;return ze().w(function(t){for(;;)switch(t.p=t.n){case 0:if(n=(e.state.selectRecord||{})._raw){t.n=1;break}return t.a(2);case 1:return r={classify1Id:n.classify1Id,classify2Id:n.classify2Id,classify3Id:n.classify3Id,defaultMaterialId:a.materialId,defaultMaterialName:a.name},t.p=2,t.n=3,e.props.dispatch({type:"materialTextures/saveDefault",payload:r});case 3:(null==(i=t.v)||null===(o=i.data)||void 0===o?void 0:o.success)?(e.showToast(a.name?"默认材质已设置":"默认材质已更换","success"),e.fetchDefault(),e.handleCloseTextureSelect()):e.showToast((null==i||null===(l=i.data)||void 0===l?void 0:l.message)||"保存失败","error"),t.n=5;break;case 4:t.p=4,console.error("保存失败",t.v),e.showToast("保存失败","error");case 5:return t.a(2)}},t,null,[[2,4]])}));return function(e){return t.apply(this,arguments)}}(),e.showToast=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=t,r=a;t&&"object"===He(t)&&"message"in t&&(n=t.message,r=t.type||a),e.setState({toast:{message:n,type:r},toastKey:(e.state.toastKey||0)+1})},e}return Ie(t,e),Ce(t,[{key:"componentDidMount",value:function(){this.props.dispatch({type:"materialTextures/fetchSpaceOptions"}),this.fetchUnclassifiedList()}},{key:"renderCategoryTree",value:function(){var e=this,t=this.state,a=t.selectedFirstCategory,n=t.selectedSecondCategory,r=this.props.classifyList,o=r.reduce(function(e,t){return e+t.children.reduce(function(e,t){return e+(t.textureCount||0)},0)},0);return V.default.createElement("div",{className:Wi.categoryTree},V.default.createElement("div",{className:"".concat(Wi.categoryItem," ").concat("all"===a?Wi.active:""),style:{marginTop:"8px"},onClick:this.handleAllCategoryClick},V.default.createElement("span",{className:Wi.categoryItemTitle},"全部分类"),V.default.createElement("span",{className:"".concat(Wi.categoryItemCount," ").concat("all"===a?Wi.active:"")},o)),V.default.createElement("div",{className:Wi.categoryList},r.map(function(t){var r=t.children.some(function(e){return e.classify2Id===n}),o=a===t.classify1Id||r;return V.default.createElement("div",{key:t.classify1Id,className:"".concat(Wi.categoryGroup," ").concat(o?Wi.active:"")},V.default.createElement("div",{className:Wi.categoryItem},V.default.createElement("span",{className:Wi.categoryItemTitle},t.classify1Name)),t.children.map(function(a){var r=n===a.classify2Id;return V.default.createElement("div",{key:a.classify2Id,className:"".concat(Wi.subCategoryItem," ").concat(r?Wi.active:""),onClick:function(n){n.stopPropagation(),e.handleSecondCategoryClick(t.classify1Id,a.classify2Id)}},V.default.createElement("span",{className:Wi.subCategoryTitle},a.classify2Name),V.default.createElement("span",{className:"".concat(Wi.subCategoryCount," ").concat(r?Wi.active:"")},a.textureCount||0))}))})))}},{key:"renderUnclassifiedTable",value:function(){var e=this,t=this.props,a=t.unclassifiedList,n=t.unclassifiedTotal,r=t.unclassifiedLoading,o=t.unclassifiedPageNo,i=t.unclassifiedPageSize,l=this.state,s=l.unclassifiedKeyword,d=l.unclassifiedFormat,c=l.unclassifiedTimeType;return V.default.createElement("div",{className:Wi.tableCardWrap},V.default.createElement("div",{className:Wi.tableHeader},V.default.createElement("div",{className:Wi.searchInputWrap},V.default.createElement("input",{className:Wi.searchInput,placeholder:"搜索未分类材质...",value:s,onChange:this.handleUnclassifiedKeywordChange}),s&&V.default.createElement(S.CloseOutlined,{className:Wi.searchClearBtn,onClick:function(){e.setState({unclassifiedKeyword:""},function(){e.fetchUnclassifiedList()})}})),V.default.createElement("div",{className:Wi.filterItem},V.default.createElement("span",{className:Wi.filterLabel},"格式:"),V.default.createElement(me.default,{className:Wi.filterSelect,value:d,onChange:this.handleUnclassifiedFormatChange,options:[{value:"all",label:"全部"},{value:"PNG",label:"PNG"},{value:"JPG",label:"JPG"},{value:"EXR",label:"EXR"},{value:"TGA",label:"TGA"}]})),V.default.createElement("div",{className:Wi.segmented},V.default.createElement("span",{className:"".concat(Wi.segmentedItem," ").concat("all"===c?Wi.segmentedItemSelected:""),onClick:function(){return e.handleUnclassifiedTimeChange("all")}},"全部"),V.default.createElement("span",{className:"".concat(Wi.segmentedItem," ").concat("today"===c?Wi.segmentedItemSelected:""),onClick:function(){return e.handleUnclassifiedTimeChange("today")}},"今日上传"))),V.default.createElement($r,{containerClassName:Wi.tableCard,className:Wi.dataTable,rowKey:"id",loading:r,columns:[{title:"材质名称",dataIndex:"name",width:230,render:function(e,t){return V.default.createElement("div",{className:Wi.thumbnailCell},V.default.createElement("div",{className:Wi.thumbnail},V.default.createElement(oo,{src:null==t?void 0:t.referenceImage,alt:"",className:Wi.thumbnailImg})),V.default.createElement("span",{className:Wi.formatCell},e))}},{title:"材质ID",dataIndex:"id",width:160,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e)}},{title:"分辨率",dataIndex:"resolution",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"上传时间",dataIndex:"uploadTime",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e)}},{title:"状态",dataIndex:"status",width:100,render:function(){return V.default.createElement("span",{className:Wi.statusNeutral},"未分类")}},{title:"操作",dataIndex:"action",width:168,render:function(t,a){return V.default.createElement("span",{className:Wi.actions},V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handlePreview(a)}},"预览"),V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handleEdit(a)}},"编辑"),V.default.createElement(Y.default,{className:Wi.deleteAction,size:"small",type:"link",onClick:function(){return e.handleDelete(a)}},"删除"))}}],dataSource:a,pagination:{current:o,pageSize:i,total:n,onChange:this.handleUnclassifiedPageChange,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}}}))}},{key:"renderClassifiedTable",value:function(){var e=this,t=this.state,a=t.classifiedKeyword,n=t.classifiedFormat,r=this.props,o=r.classifiedList,i=r.classifiedTotal,l=r.classifiedPageNo,s=r.classifiedPageSize,d=r.classifiedLoading;return V.default.createElement("div",{className:Wi.tableCardWrap},V.default.createElement("div",{className:Wi.tableHeader},V.default.createElement("div",{className:Wi.searchInputWrap},V.default.createElement("input",{className:Wi.searchInput,placeholder:"搜索分类材质...",value:a,onChange:this.handleClassifiedKeywordChange}),a&&V.default.createElement(S.CloseOutlined,{className:Wi.searchClearBtn,onClick:function(){e.setState({classifiedKeyword:""},function(){e.fetchClassifiedList()})}})),V.default.createElement("span",{className:Wi.filterLabel},"格式:"),V.default.createElement(me.default,{className:Wi.filterSelect,value:n,onChange:this.handleClassifiedFormatChange,options:[{value:"all",label:"全部"},{value:"PNG",label:"PNG"},{value:"JPG",label:"JPG"},{value:"EXR",label:"EXR"},{value:"TGA",label:"TGA"}]})),V.default.createElement($r,{containerClassName:Wi.tableCard,className:Wi.dataTable,rowKey:"materialId",loading:d,columns:[{title:"材质名称",dataIndex:"name",width:230,render:function(e,t){return V.default.createElement("div",{className:Wi.thumbnailCell},V.default.createElement("div",{className:Wi.thumbnail},V.default.createElement(oo,{src:null==t?void 0:t.referenceImage,alt:"",className:Wi.thumbnailImg})),V.default.createElement("span",{className:Wi.formatCell},e||"-"))}},{title:"材质ID",dataIndex:"id",width:160,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"分辨率",dataIndex:"resolution",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"上传时间",dataIndex:"uploadTime",width:120,render:function(e){return V.default.createElement("span",{className:Wi.formatCell},e||"-")}},{title:"映射商品",dataIndex:"mappedProduct",width:200,render:function(e){return V.default.createElement("span",{className:Wi.brandName},e||"-")}},{title:"操作",dataIndex:"action",width:168,render:function(t,a){return V.default.createElement("span",{className:Wi.actions},V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handlePreview(a)}},"预览"),V.default.createElement(Y.default,{size:"small",type:"link",onClick:function(){return e.handleEdit(a)}},"编辑"),V.default.createElement(Y.default,{className:Wi.deleteAction,size:"small",type:"link",onClick:function(){return e.handleDelete(a)}},"删除"))}}],dataSource:o,pagination:{current:l,pageSize:s,total:i,onChange:this.handleClassifiedPageChange,showSizeChanger:!1,showTotal:function(e){return"共 ".concat(e," 条")}}}))}},{key:"renderDefaultMapping",value:function(){var e=this.props;return V.default.createElement(to,{rows:e.defaultTextureList,type:"texture",loading:e.defaultTextureLoading,onPick:this.handleDefaultMappingPick})}},{key:"renderRightPane",value:function(){var e=this.state.activeTab;return V.default.createElement("div",{className:Wi.content},"unclassified"===e?this.renderUnclassifiedTable():"defaultMapping"===e?this.renderDefaultMapping():this.renderClassifiedTable())}},{key:"render",value:function(){var e=this,t=this.props.spaceOptions,a=this.state,n=a.selectedSpace,r=a.activeTab,o=a.uploadModalVisible,i=a.uploadEditRecord,l=a.previewModalVisible,s=a.previewRecord,d=a.deleteModalVisible,c=a.deleteRecord,u=a.deleteRelations,m=a.deleteRelationsError,p=a.deleteRelationsLoading,f=a.deleteLoading,h=a.toast,_=a.toastKey,g="classified"===r;return V.default.createElement("div",{className:Wi.page},V.default.createElement("div",{className:Wi.pageHeader},V.default.createElement("div",{className:Wi.headerLeft},V.default.createElement("div",{className:Wi.pageTitle},"材质素材"),V.default.createElement("div",{className:Wi.pageSubtitle},"管理高清贴图、PBR 材质等纹理文件。分类信息(空间/一级/二级)由商品素材映射同步填充。")),V.default.createElement(Y.default,{type:"primary",className:Wi.uploadBtn,onClick:this.handleUpload,icon:V.default.createElement(S.UploadOutlined,null)},"上传材质")),V.default.createElement("div",{className:Wi.pageTabs},Zl.map(function(t){return V.default.createElement("div",{key:t.key,className:"".concat(Wi.pageTab," ").concat(r===t.key?Wi.pageTabActive:""),onClick:function(){return e.handlePageTabChange(t.key)}},t.label)})),V.default.createElement("div",{className:Wi.mainContent},g&&V.default.createElement("div",{className:Wi.sidebar},V.default.createElement("div",{className:Wi.spaceSelector},V.default.createElement(me.default,{value:n,onChange:this.handleSpaceChange,options:t,className:Wi.spaceSelect,suffixIcon:V.default.createElement(S.DownOutlined,null)})),this.renderCategoryTree()),this.renderRightPane()),V.default.createElement(el,{visible:o,onClose:this.handleCloseUploadModal,onSuccess:this.handleUploadSuccess,onError:this.handleUploadError,editRecord:i}),V.default.createElement(El,{visible:l,record:s,onClose:this.handleClosePreviewModal}),V.default.createElement(Nl,{visible:this.state.textureSelectVisible,currentMaterial:this.state.selectRecord,onClose:this.handleCloseTextureSelect,onConfirm:this.handleConfirmTextureSelect,onSuccess:this.handleTextureSelectSuccess,onError:this.handleTextureSelectError}),V.default.createElement(Yl,{visible:d,record:c,relations:u,relationsLoading:p,relationsError:m,deleteLoading:f,onCancel:this.handleCloseDeleteModal,onConfirm:this.handleConfirmDelete}),V.default.createElement(so,{message:null==h?void 0:h.message,type:null==h?void 0:h.type,toastKey:_}))}}])}(n.Component))||Xl),Jl={page:"materialCategoryManagement-module_page__gBiPZ",headerSection:"materialCategoryManagement-module_headerSection__t5Sr_",titleLine:"materialCategoryManagement-module_titleLine__1UlWC",headerActions:"materialCategoryManagement-module_headerActions__2QrtV",primaryButton:"materialCategoryManagement-module_primaryButton__3QqkT",secondaryButton:"materialCategoryManagement-module_secondaryButton__1H3Pm",assetTabs:"materialCategoryManagement-module_assetTabs__gi3OD",assetTabActive:"materialCategoryManagement-module_assetTabActive__2-2-F",layoutBody:"materialCategoryManagement-module_layoutBody__1waD3",managementLayout:"materialCategoryManagement-module_managementLayout__qIH8p",treePanel:"materialCategoryManagement-module_treePanel__1EDge",summaryCard:"materialCategoryManagement-module_summaryCard__3g26T",detailCard:"materialCategoryManagement-module_detailCard__1kIyv",emptyDetail:"materialCategoryManagement-module_emptyDetail__Fu8aa",panelHeader:"materialCategoryManagement-module_panelHeader__s4HzV",treeScroll:"materialCategoryManagement-module_treeScroll__2FgWv",treeNode:"materialCategoryManagement-module_treeNode__3DEJl",treeNodeActive:"materialCategoryManagement-module_treeNodeActive__-MbU2",treeNodeLevel1:"materialCategoryManagement-module_treeNodeLevel1__3y9kN",treeNodeLevel2:"materialCategoryManagement-module_treeNodeLevel2__2wQbz",treeNodeLevel3:"materialCategoryManagement-module_treeNodeLevel3__3izgy",treeNodeName:"materialCategoryManagement-module_treeNodeName__10KwG",treeNodeMeta:"materialCategoryManagement-module_treeNodeMeta__24Z5K",treeNodeDisabled:"materialCategoryManagement-module_treeNodeDisabled__vTgvh",detailColumn:"materialCategoryManagement-module_detailColumn__3Pv5E",summaryHeader:"materialCategoryManagement-module_summaryHeader__3J1o9",categoryTitle:"materialCategoryManagement-module_categoryTitle__1wKvx",summaryActions:"materialCategoryManagement-module_summaryActions__3SKtV",dangerButton:"materialCategoryManagement-module_dangerButton__3IQYG",ruleNotice:"materialCategoryManagement-module_ruleNotice__1YM8r",formNotice:"materialCategoryManagement-module_formNotice__3bWWP",tableWrap:"materialCategoryManagement-module_tableWrap__3x-iF",detailCardHeader:"materialCategoryManagement-module_detailCardHeader__MarHD",referenceHint:"materialCategoryManagement-module_referenceHint__2R5Zw",statusTag:"materialCategoryManagement-module_statusTag__2nR2U",statusEnabled:"materialCategoryManagement-module_statusEnabled__x3rHj",statusDisabled:"materialCategoryManagement-module_statusDisabled__H0GEF",tableActions:"materialCategoryManagement-module_tableActions__2GiV3",modalDescription:"materialCategoryManagement-module_modalDescription__VoK1W",categoryManagementModalBody:"materialCategoryManagement-module_categoryManagementModalBody__15FLl",modeSwitch:"materialCategoryManagement-module_modeSwitch__3wfgL",modeSwitchActive:"materialCategoryManagement-module_modeSwitchActive__2D88K",formGrid:"materialCategoryManagement-module_formGrid__1wwPE",formField:"materialCategoryManagement-module_formField__AEI7y",formFieldFull:"materialCategoryManagement-module_formFieldFull__JH41q",formControl:"materialCategoryManagement-module_formControl__3uLMM",chainPanel:"materialCategoryManagement-module_chainPanel__2Dje6",chainHeader:"materialCategoryManagement-module_chainHeader__3OVtF",inlineButton:"materialCategoryManagement-module_inlineButton__1CB0J",iconDangerButton:"materialCategoryManagement-module_iconDangerButton__3RI3L",chainRow:"materialCategoryManagement-module_chainRow__ckvYv",rootChainRow:"materialCategoryManagement-module_rootChainRow__pe9Gk",formError:"materialCategoryManagement-module_formError__DqzNX",spaceTableWrap:"materialCategoryManagement-module_spaceTableWrap__2x0Nn",spaceManagementModalBody:"materialCategoryManagement-module_spaceManagementModalBody__3bhbm",managementModalOverlay:"materialCategoryManagement-module_managementModalOverlay__2MDRS",managementModalMask:"materialCategoryManagement-module_managementModalMask__1DhMT",managementModalPanel:"materialCategoryManagement-module_managementModalPanel__3ZCHV",managementModalPanelOpen:"materialCategoryManagement-module_managementModalPanelOpen__wjFAF",managementModalHeader:"materialCategoryManagement-module_managementModalHeader__j3m5N",managementModalTitle:"materialCategoryManagement-module_managementModalTitle__13PCJ",managementModalClose:"materialCategoryManagement-module_managementModalClose__1LmyV",managementModalBody:"materialCategoryManagement-module_managementModalBody__y4Ywd",managementModalFooter:"materialCategoryManagement-module_managementModalFooter__-ll4h",managementModalOverlayOpen:"materialCategoryManagement-module_managementModalOverlayOpen__1_sMF",modalCancelButton:"materialCategoryManagement-module_modalCancelButton__213dd",modalPrimaryButton:"materialCategoryManagement-module_modalPrimaryButton__2bOhW",spaceModalDescription:"materialCategoryManagement-module_spaceModalDescription__2Be3p",spaceStatusTag:"materialCategoryManagement-module_spaceStatusTag__1PS2Z",spaceStatusEnabled:"materialCategoryManagement-module_spaceStatusEnabled__2sZlp",spaceStatusDisabled:"materialCategoryManagement-module_spaceStatusDisabled__23maU",spaceTableActions:"materialCategoryManagement-module_spaceTableActions__ulmOq",spaceStopAction:"materialCategoryManagement-module_spaceStopAction__267vD",spaceEnableAction:"materialCategoryManagement-module_spaceEnableAction__2vgjQ",spaceDeleteAction:"materialCategoryManagement-module_spaceDeleteAction__2gzjy",spaceNotice:"materialCategoryManagement-module_spaceNotice__ryevZ",addSpaceRow:"materialCategoryManagement-module_addSpaceRow__1aAPK",toast:"materialCategoryManagement-module_toast__2Nynk",toastError:"materialCategoryManagement-module_toastError__11yKK"};je('.materialCategoryManagement-module_page__gBiPZ{display:flex;flex-direction:column;height:100%;min-height:0;padding:16px;overflow:hidden;background:#f5f5f7;color:#000f2c;font-family:PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}.materialCategoryManagement-module_headerSection__t5Sr_{display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;min-height:40px;gap:16px}.materialCategoryManagement-module_headerSection__t5Sr_ h2{margin:0;color:#000f2c;font-size:14px;font-weight:500;line-height:20px}.materialCategoryManagement-module_headerSection__t5Sr_ p{margin:2px 0 0;color:#737b8b;font-size:12px;line-height:18px}.materialCategoryManagement-module_titleLine__1UlWC{display:flex;align-items:center;gap:10px}.materialCategoryManagement-module_headerActions__2QrtV{display:flex;flex:0 0 auto;gap:12px}.materialCategoryManagement-module_primaryButton__3QqkT,.materialCategoryManagement-module_secondaryButton__1H3Pm{height:32px;padding:0 13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border-radius:6px;font-size:14px;line-height:22px;white-space:nowrap;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .12s ease}.materialCategoryManagement-module_primaryButton__3QqkT:active,.materialCategoryManagement-module_secondaryButton__1H3Pm:active{transform:translateY(1px)}.materialCategoryManagement-module_primaryButton__3QqkT{border:1px solid #1890ff;background:#1890ff;color:#fff}.materialCategoryManagement-module_primaryButton__3QqkT:hover{border-color:#40a9ff;background:#40a9ff}.materialCategoryManagement-module_secondaryButton__1H3Pm{border:1px solid rgba(115,123,139,.4);background:#fff;color:#737b8b}.materialCategoryManagement-module_secondaryButton__1H3Pm:hover{border-color:#1890ff;color:#1890ff}.materialCategoryManagement-module_assetTabs__gi3OD{display:flex;flex:0 0 auto;align-items:center;gap:32px;height:48px;margin-bottom:16px;border-bottom:1px solid rgba(115,123,139,.3)}.materialCategoryManagement-module_assetTabs__gi3OD button{height:48px;padding:0;border:0;border-bottom:2px solid transparent;background:transparent;color:#737b8b;font-size:14px;cursor:pointer}.materialCategoryManagement-module_assetTabs__gi3OD button span{margin-left:0;color:inherit;font-size:14px}.materialCategoryManagement-module_assetTabs__gi3OD button:hover{color:#1890ff}.materialCategoryManagement-module_assetTabs__gi3OD button.materialCategoryManagement-module_assetTabActive__2-2-F{border-bottom-color:#1890ff;color:#1890ff;font-weight:500}.materialCategoryManagement-module_layoutBody__1waD3{flex:1;min-height:0}.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-container,.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-nested-loading{height:100%;min-height:0}.materialCategoryManagement-module_layoutBody__1waD3 .ant-spin-container{display:flex;flex-direction:column}.materialCategoryManagement-module_managementLayout__qIH8p{flex:1;min-height:0;display:grid;grid-template-columns:264px minmax(0,1fr);align-items:stretch;gap:16px}.materialCategoryManagement-module_detailCard__1kIyv,.materialCategoryManagement-module_emptyDetail__Fu8aa,.materialCategoryManagement-module_summaryCard__3g26T,.materialCategoryManagement-module_treePanel__1EDge{border:none;border-radius:6px;background:#fff;box-shadow:none}.materialCategoryManagement-module_treePanel__1EDge{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_panelHeader__s4HzV{height:40px;padding:0 16px;display:flex;flex:0 0 auto;align-items:center;border-bottom:1px solid #f1f3f5;color:#121c2a;font-size:14px;font-weight:400;line-height:22px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv{flex:1;min-height:0;padding:8px 0 12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#e3e5e8 transparent}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar{width:4px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar-thumb{border-radius:2px;background:#e3e5e8}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeScroll__2FgWv::-webkit-scrollbar-track{background:transparent}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl{width:100%;height:32px;padding:0 16px;display:flex;align-items:center;gap:8px;border:0;border-radius:0;background:transparent;color:#121c2a;text-align:left;cursor:pointer}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl:hover:not(.materialCategoryManagement-module_treeNodeActive__-MbU2){background:#f5f7fa}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel1__3y9kN{padding-left:16px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel2__2wQbz{padding-left:30px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel3__3izgy{padding-left:44px;gap:2px}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeLevel3__3izgy:before{content:"";width:12px;height:12px;flex:0 0 12px;background:linear-gradient(#b7b9c1,#b7b9c1) 50%/8px 1px no-repeat}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2{background:#e7f3ff;color:#1890ff}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2 .materialCategoryManagement-module_treeNodeMeta__24Z5K,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeActive__-MbU2 .materialCategoryManagement-module_treeNodeName__10KwG{color:#1890ff}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh .materialCategoryManagement-module_treeNodeMeta__24Z5K,.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNode__3DEJl.materialCategoryManagement-module_treeNodeDisabled__vTgvh .materialCategoryManagement-module_treeNodeName__10KwG{color:#94999f}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNodeName__10KwG{min-width:0;flex:1;overflow:hidden;color:#121c2a;font-size:14px;line-height:22px;text-overflow:ellipsis;white-space:nowrap}.materialCategoryManagement-module_treePanel__1EDge .materialCategoryManagement-module_treeNodeMeta__24Z5K{flex:0 0 auto;min-width:9px;color:#737b8b;font-size:14px;font-weight:400;line-height:22px;text-align:right}.materialCategoryManagement-module_detailColumn__3Pv5E{min-width:0;min-height:0;display:flex;flex-direction:column;gap:16px}.materialCategoryManagement-module_summaryCard__3g26T{flex:0 0 auto;height:94px;padding:0}.materialCategoryManagement-module_summaryHeader__3J1o9{height:46px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #f1f3f5}.materialCategoryManagement-module_summaryHeader__3J1o9 p{margin:5px 0 0;color:#667085;font-size:12px}.materialCategoryManagement-module_categoryTitle__1wKvx{display:flex;align-items:center;gap:7px;color:#000f2c;font-size:14px;font-weight:500}.materialCategoryManagement-module_categoryTitle__1wKvx span{height:22px;padding:0 7px;border-radius:4px;background:#e7f3ff;color:#1890ff;font-size:14px;font-weight:400;line-height:22px}.materialCategoryManagement-module_categoryTitle__1wKvx small{color:#737b8b;font-size:12px;font-weight:400}.materialCategoryManagement-module_summaryActions__3SKtV{display:flex;align-items:center;gap:12px}.materialCategoryManagement-module_summaryActions__3SKtV button{height:28px;padding:0 16px;display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(115,123,139,.4);border-radius:6px;background:#fff;color:#737b8b;font-size:14px;cursor:pointer}.materialCategoryManagement-module_summaryActions__3SKtV button:hover{border-color:#1890ff;color:#1890ff}.materialCategoryManagement-module_summaryActions__3SKtV button.materialCategoryManagement-module_dangerButton__3IQYG{border-color:transparent;background:rgba(220,38,38,.1);color:#dc2626}.materialCategoryManagement-module_summaryActions__3SKtV button.materialCategoryManagement-module_dangerButton__3IQYG:hover{border-color:#f1a7a1;background:#fff5f4}.materialCategoryManagement-module_formNotice__3bWWP,.materialCategoryManagement-module_ruleNotice__1YM8r{border:none;border-radius:4px;background:#f0f2f5;color:#737b8b;font-size:12px;line-height:20px}.materialCategoryManagement-module_ruleNotice__1YM8r{height:24px;margin:12px 16px;padding:2px 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.materialCategoryManagement-module_detailCard__1kIyv{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.materialCategoryManagement-module_tableWrap__3x-iF{flex:1;min-height:0;overflow:hidden}.materialCategoryManagement-module_tableWrap__3x-iF .ant-spin-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-spin-nested-loading,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-content,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-scroll,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-wrapper{height:100%;min-height:0}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-container,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-content,.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-scroll{display:flex;flex-direction:column}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-header{flex:0 0 auto}.materialCategoryManagement-module_tableWrap__3x-iF .ant-table-body{flex:1 1 auto;min-height:0;max-height:none!important;overflow-y:auto!important}.materialCategoryManagement-module_detailCardHeader__MarHD{min-height:46px;padding:0 16px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-bottom:1px solid #f1f3f5}.materialCategoryManagement-module_detailCardHeader__MarHD>div{display:flex;align-items:baseline;gap:9px}.materialCategoryManagement-module_detailCardHeader__MarHD h3{margin:0;color:#000f2c;font-size:14px;font-weight:600}.materialCategoryManagement-module_detailCardHeader__MarHD span{color:#737b8b;font-size:12px}.materialCategoryManagement-module_detailCardHeader__MarHD .materialCategoryManagement-module_referenceHint__2R5Zw{cursor:help}.materialCategoryManagement-module_statusTag__2nR2U{min-width:auto;height:22px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;font-size:14px}.materialCategoryManagement-module_statusEnabled__x3rHj{background:#ecfef6;color:#079669}.materialCategoryManagement-module_statusDisabled__H0GEF{background:#f0f2f5;color:#737b8b}.materialCategoryManagement-module_tableActions__2GiV3{display:flex;align-items:center;gap:12px}.materialCategoryManagement-module_tableActions__2GiV3 button{padding:0;border:0;background:transparent;color:#1890ff;font-size:14px;cursor:pointer}.materialCategoryManagement-module_detailCard__1kIyv .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;font-weight:400}.materialCategoryManagement-module_detailCard__1kIyv .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;color:#000f2c;font-size:12px}.materialCategoryManagement-module_emptyDetail__Fu8aa{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.materialCategoryManagement-module_modalDescription__VoK1W{margin:-2px 0 15px;color:#667085;font-size:13px;line-height:20px}.materialCategoryManagement-module_categoryManagementModalBody__15FLl .ant-input,.materialCategoryManagement-module_categoryManagementModalBody__15FLl .ant-select-selector{border-color:#dde1e6!important;border-radius:4px!important}.materialCategoryManagement-module_modeSwitch__3wfgL{display:inline-flex;margin-bottom:16px;padding:3px;border-radius:5px;background:#f2f4f7}.materialCategoryManagement-module_modeSwitch__3wfgL button{height:31px;padding:0 13px;border:0;border-radius:4px;background:transparent;color:#667085;font-size:12px;cursor:pointer}.materialCategoryManagement-module_modeSwitch__3wfgL button.materialCategoryManagement-module_modeSwitchActive__2D88K{background:#fff;color:#2563eb;font-weight:600;box-shadow:0 1px 4px rgba(34,54,84,.12)}.materialCategoryManagement-module_formGrid__1wwPE{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.materialCategoryManagement-module_formField__AEI7y{min-width:0}.materialCategoryManagement-module_formField__AEI7y label{margin-bottom:6px;display:block;color:#475467;font-size:12px;font-weight:500}.materialCategoryManagement-module_formField__AEI7y label:after{margin-left:3px;color:#d92d20;content:"*"}.materialCategoryManagement-module_formFieldFull__JH41q{grid-column:-1}.materialCategoryManagement-module_formControl__3uLMM{width:100%}.materialCategoryManagement-module_chainPanel__2Dje6{margin-top:15px;padding:12px;border:1px solid #e4e7ec;border-radius:5px;background:#fafbfc}.materialCategoryManagement-module_chainHeader__3OVtF{margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.materialCategoryManagement-module_chainHeader__3OVtF>div{display:flex;flex-direction:column;gap:2px}.materialCategoryManagement-module_chainHeader__3OVtF strong{color:#344054;font-size:12px}.materialCategoryManagement-module_chainHeader__3OVtF span{color:#98a2b3;font-size:11px}.materialCategoryManagement-module_iconDangerButton__3RI3L,.materialCategoryManagement-module_inlineButton__1CB0J{border:0;background:transparent;cursor:pointer}.materialCategoryManagement-module_inlineButton__1CB0J{color:#2563eb;font-size:12px}.materialCategoryManagement-module_chainRow__ckvYv{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:8px;margin-top:8px}.materialCategoryManagement-module_rootChainRow__pe9Gk{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.materialCategoryManagement-module_iconDangerButton__3RI3L{border:1px solid #e4e7ec;border-radius:4px;color:#d92d20}.materialCategoryManagement-module_iconDangerButton__3RI3L:disabled{color:#cbd1da;cursor:not-allowed}.materialCategoryManagement-module_formNotice__3bWWP{margin-top:12px;padding:8px 10px}.materialCategoryManagement-module_formError__DqzNX{margin-top:12px;padding:8px 10px;border:1px solid #fecdca;border-radius:4px;background:#fff5f4;color:#b42318;font-size:12px;line-height:20px}.materialCategoryManagement-module_spaceTableWrap__2x0Nn{overflow:hidden;border:1px solid #f1f3f5;border-radius:4px}.materialCategoryManagement-module_spaceManagementModalBody__3bhbm .ant-table-thead>tr>th{height:32px;padding:4px 12px;border-bottom:0;background:#f0f2f5;color:#737b8b;font-size:12px;line-height:20px;font-weight:400}.materialCategoryManagement-module_spaceManagementModalBody__3bhbm .ant-table-tbody>tr>td{height:48px;padding:4px 12px;border-bottom-color:#f1f3f5;color:#000f2c;font-size:12px;line-height:20px}.materialCategoryManagement-module_managementModalOverlay__2MDRS{position:fixed;inset:0;z-index:1000}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalMask__1DhMT{position:absolute;inset:0;background:rgba(18,28,42,.3)}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalPanel__3ZCHV{position:absolute;left:50%;top:50%;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);display:flex;flex-direction:column;overflow:hidden;border-radius:10px;background:#fff;opacity:0;transform:translate(-50%,-50%) scale(.96);transition:transform .18s ease,opacity .18s ease}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalPanel__3ZCHV.materialCategoryManagement-module_managementModalPanelOpen__wjFAF{opacity:1;transform:translate(-50%,-50%) scale(1)}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalHeader__j3m5N{height:52px;padding:0 16px 0 24px;display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;border-bottom:1px solid #dde1e6}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalTitle__13PCJ{color:#000;font-size:16px;line-height:20px;font-weight:600}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalClose__1LmyV{width:28px;height:28px;border:0;background:transparent;color:#737b8b;cursor:pointer}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalClose__1LmyV:disabled{cursor:not-allowed;opacity:.45}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalBody__y4Ywd{min-height:0;padding:12px 24px 24px;overflow-y:auto}.materialCategoryManagement-module_managementModalOverlay__2MDRS .materialCategoryManagement-module_managementModalFooter__-ll4h{min-height:64px;padding:16px 24px;display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #dde1e6}.materialCategoryManagement-module_managementModalOverlay__2MDRS.materialCategoryManagement-module_managementModalOverlayOpen__1_sMF .materialCategoryManagement-module_managementModalPanel__3ZCHV{opacity:1;transform:translate(-50%,-50%) scale(1)}.materialCategoryManagement-module_modalCancelButton__213dd,.materialCategoryManagement-module_modalPrimaryButton__2bOhW{height:32px;padding:0 16px;border-radius:4px;font-size:14px;cursor:pointer}.materialCategoryManagement-module_modalCancelButton__213dd:disabled,.materialCategoryManagement-module_modalPrimaryButton__2bOhW:disabled{cursor:not-allowed;opacity:.55}.materialCategoryManagement-module_modalCancelButton__213dd{border:1px solid #d9d9d9;background:#fff;color:rgba(0,0,0,.85)}.materialCategoryManagement-module_modalPrimaryButton__2bOhW{border:1px solid #1890ff;background:#1890ff;color:#fff}.materialCategoryManagement-module_spaceModalDescription__2Be3p{margin:0 0 16px;color:#737b8b;font-size:14px;line-height:20px;white-space:nowrap}.materialCategoryManagement-module_spaceStatusTag__1PS2Z{height:22px;padding:1px 6px;display:inline-flex;align-items:center;border-radius:4px;font-size:14px;line-height:20px}.materialCategoryManagement-module_spaceStatusEnabled__2sZlp{background:#ecfef6;color:#079669}.materialCategoryManagement-module_spaceStatusDisabled__23maU{background:#f0f2f5;color:#737b8b}.materialCategoryManagement-module_spaceTableActions__ulmOq{display:flex;align-items:center;gap:10px}.materialCategoryManagement-module_spaceTableActions__ulmOq button{padding:0;border:0;background:transparent;font-size:14px;line-height:20px;cursor:pointer}.materialCategoryManagement-module_spaceTableActions__ulmOq button:disabled{cursor:not-allowed;opacity:.5}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceStopAction__267vD{color:#737b8b}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceEnableAction__2vgjQ{color:#079669}.materialCategoryManagement-module_spaceTableActions__ulmOq .materialCategoryManagement-module_spaceDeleteAction__2gzjy{color:#dc2626}.materialCategoryManagement-module_spaceNotice__ryevZ{min-height:55px;margin-top:8px;padding:6px 10px;display:flex;gap:6px;border-radius:4px;background:#f0f2f5;color:#737b8b;font-size:14px;line-height:22px}.materialCategoryManagement-module_spaceNotice__ryevZ>span{flex:0 0 auto}.materialCategoryManagement-module_spaceNotice__ryevZ p{margin:0}.materialCategoryManagement-module_addSpaceRow__1aAPK{margin-top:24px;display:flex;align-items:center;gap:8px}.materialCategoryManagement-module_addSpaceRow__1aAPK label{flex:0 0 auto;color:#737b8b;font-size:14px}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input{width:250px;height:40px;padding:8px 10px;border:none;border-radius:4px;background:#f0f2f5;color:#000f2c;font-size:14px}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input::-moz-placeholder{color:#d1d5db}.materialCategoryManagement-module_addSpaceRow__1aAPK .ant-input::placeholder{color:#d1d5db}.materialCategoryManagement-module_addSpaceRow__1aAPK button{height:40px;padding:0 13px;display:inline-flex;align-items:center;gap:6px;border:1px solid #1890ff;border-radius:4px;background:#1890ff;color:#fff;font-size:14px;cursor:pointer}.materialCategoryManagement-module_toast__2Nynk{position:fixed;top:28px;left:50%;z-index:1100;max-width:520px;padding:10px 16px;border:1px solid #a6f4c5;border-radius:5px;background:#ecfdf3;color:#027a48;font-size:13px;box-shadow:0 8px 24px rgba(34,54,84,.15);transform:translateX(-50%)}.materialCategoryManagement-module_toastError__11yKK{border-color:#fecdca;background:#fff5f4;color:#b42318}@media (max-width:960px){.materialCategoryManagement-module_page__gBiPZ{padding:20px}.materialCategoryManagement-module_headerSection__t5Sr_{flex-direction:column}.materialCategoryManagement-module_managementLayout__qIH8p{grid-template-columns:240px minmax(0,1fr)}.materialCategoryManagement-module_summaryHeader__3J1o9{flex-direction:column}}');function $l(e){var t=e.visible,a=e.title,r=e.width,o=e.footer,i=e.closable,l=void 0===i||i,s=e.bodyClassName,d=void 0===s?"":s,c=e.onClose,u=e.children,m=Ge(n.useState(t),2),p=m[0],f=m[1],h=Ge(n.useState(t),2),_=h[0],g=h[1];if(n.useEffect(function(){var e=null;return t?(f(!0),e=window.setTimeout(function(){return g(!0)},10)):p&&(g(!1),e=window.setTimeout(function(){return f(!1)},180)),function(){e&&window.clearTimeout(e)}},[t,p]),n.useEffect(function(){if(p){var e=document.body.style.overflow,t=function(e){"Escape"===e.key&&l&&c&&c()};return document.body.style.overflow="hidden",document.addEventListener("keydown",t),function(){document.body.style.overflow=e,document.removeEventListener("keydown",t)}}},[l,c,p]),!p)return null;var v=function(){l&&c&&c()};return fe.default.createPortal(V.default.createElement("div",{className:"".concat(Jl.managementModalOverlay," ").concat(_?Jl.managementModalOverlayOpen:"")},V.default.createElement("div",{className:Jl.managementModalMask,onClick:v}),V.default.createElement("div",{className:"".concat(Jl.managementModalPanel," ").concat(_?Jl.managementModalPanelOpen:""),style:{width:r||576},role:"dialog","aria-modal":"true","aria-label":a},V.default.createElement("div",{className:Jl.managementModalHeader},V.default.createElement("span",{className:Jl.managementModalTitle},a),V.default.createElement("button",{type:"button",className:Jl.managementModalClose,disabled:!l,onClick:v,"aria-label":"关闭弹窗"},V.default.createElement(S.CloseOutlined,null))),V.default.createElement("div",{className:"".concat(Jl.managementModalBody," ").concat(d).trim()},u),o?V.default.createElement("div",{className:Jl.managementModalFooter},o):null)),document.body)}var es=me.default.Option;function ts(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,t){return e.concat(t,ts(t.children||[]))},[])}function as(e){var t=e.visible,a=e.editingCategory,r=e.assetTypes,o=e.activeAssetType,i=e.categoryTrees,l=e.onNeedCategoryTree,s=e.onClose,d=e.onSubmit,c=Ge(n.useState(!1),2),u=c[0],m=c[1],p=Ge(n.useState(""),2),f=p[0],h=p[1],_=Ge(n.useState("existing"),2),g=_[0],v=_[1],y=Ge(n.useState(o),2),x=y[0],b=y[1],M=Ge(n.useState(2),2),w=M[0],T=M[1],E=Ge(n.useState(""),2),C=E[0],N=E[1],L=Ge(n.useState(""),2),k=L[0],I=L[1],P=Ge(n.useState([""]),2),A=P[0],R=P[1],D=Ge(n.useState(""),2),z=D[0],U=D[1],B=Ge(n.useState([{secondName:"",thirdName:""}]),2),G=B[0],F=B[1],O=i[x]||[],H=n.useMemo(function(){return ts(O)},[O]).filter(function(e){return 2===w?1===e.level:2===e.level});n.useEffect(function(){t&&(m(!1),h(""),v("existing"),b(o),T(2),N(""),I(a?a.name:""),R([""]),U(""),F([{secondName:"",thirdName:""}]))},[o,a,t]);var j=function(e){b(e),N(""),"function"==typeof l&&l(e)},W=function(e,t,a){F(function(n){return n.map(function(n,r){return r===e?Re(Re({},n),{},Ne({},t,a)):n})})},q=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(m(!0),h(""),e.p=1,!a){e.n=3;break}return e.n=2,d({action:"edit",assetType:o,id:a.id,name:k,level:a.level,enabled:a.enabled});case 2:e.n=4;break;case 3:return e.n=4,d({action:"create",assetType:x,mode:"root"===g?"newRoot":"existing",level:w,parentId:C,name:k,thirdNames:A,rootName:z,chains:G});case 4:m(!1),s(),e.n=6;break;case 5:e.p=5,t=e.v,m(!1),h(t.message||"保存分类失败");case 6:return e.a(2)}},e,null,[[1,5]])}));return function(){return e.apply(this,arguments)}}();return V.default.createElement($l,{visible:t,title:a?"编辑分类":"新增分类",width:a?520:720,onClose:s,closable:!u,bodyClassName:Jl.categoryManagementModalBody,footer:V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:Jl.modalCancelButton,disabled:u,onClick:s},"取消"),V.default.createElement("button",{type:"button",className:Jl.modalPrimaryButton,disabled:u,onClick:q},u?"保存中...":a?"保存":"确认新增"))},V.default.createElement("p",{className:Jl.modalDescription},a?"重命名会同步影响 SKU 新增、模板和商品素材映射中的分类名称。":"分类层级为素材类型、一级、二级、三级,任何新增链路都必须落到三级。"),a?null:V.default.createElement("div",{className:Jl.modeSwitch},V.default.createElement("button",{type:"button",className:"existing"===g?Jl.modeSwitchActive:"",onClick:function(){return v("existing")}},"已有分类下新增"),V.default.createElement("button",{type:"button",className:"root"===g?Jl.modeSwitchActive:"",onClick:function(){return v("root")}},"新增全新一级分类")),a?V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",null,"素材类型"),V.default.createElement(J.default,{value:(r.find(function(e){return e.value===o})||{}).label,disabled:!0})),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",null,"分类级别"),V.default.createElement(J.default,{value:"".concat(a.level," 级分类"),disabled:!0})),V.default.createElement("div",{className:"".concat(Jl.formField," ").concat(Jl.formFieldFull)},V.default.createElement("label",{htmlFor:"editing-category-name"},"分类名称"),V.default.createElement(J.default,{id:"editing-category-name",value:k,onChange:function(e){return I(e.target.value)}}))):"existing"===g?V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-asset-type"},"素材类型"),V.default.createElement(me.default,{id:"category-asset-type",value:x,onChange:j,className:Jl.formControl},r.map(function(e){return V.default.createElement(es,{key:e.value,value:e.value},e.label)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-level"},"新增分类级别"),V.default.createElement(me.default,{id:"category-level",value:w,onChange:function(e){T(e),N("")},className:Jl.formControl},V.default.createElement(es,{value:2},"二级分类"),V.default.createElement(es,{value:3},"三级分类"))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-parent"},"上级",2===w?"一级":"二级","分类"),V.default.createElement(me.default,{id:"category-parent",value:C||void 0,onChange:N,placeholder:"请选择上级分类",className:Jl.formControl,showSearch:!0,optionFilterProp:"children"},H.map(function(e){return V.default.createElement(es,{key:e.id,value:e.id},e.name)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"category-name"},"分类名称"),V.default.createElement(J.default,{id:"category-name",value:k,onChange:function(e){return I(e.target.value)},placeholder:2===w?"如:岩板台面":"如:超薄岩板"}))),2===w?V.default.createElement("div",{className:Jl.chainPanel},V.default.createElement("div",{className:Jl.chainHeader},V.default.createElement("div",null,V.default.createElement("strong",null,"同时创建三级分类"),V.default.createElement("span",null,"新增二级分类时至少填写一个三级分类")),V.default.createElement("button",{type:"button",className:Jl.inlineButton,onClick:function(){return R(function(e){return e.concat("")})}},V.default.createElement(S.PlusOutlined,null)," 添加三级分类")),A.map(function(e,t){return V.default.createElement("div",{key:t,className:Jl.chainRow},V.default.createElement(J.default,{value:e,onChange:function(e){return function(e,t){R(function(a){return a.map(function(a,n){return n===e?t:a})})}(t,e.target.value)},placeholder:"三级分类名称"}),V.default.createElement("button",{type:"button",className:Jl.iconDangerButton,"aria-label":"删除三级分类输入行",disabled:1===A.length,onClick:function(){return R(function(e){return e.filter(function(e,a){return a!==t})})}},V.default.createElement(S.DeleteOutlined,null)))})):V.default.createElement("div",{className:Jl.formNotice},"新增三级分类必须选择所属二级分类,确保分类链路完整落到三级。")):V.default.createElement(V.default.Fragment,null,V.default.createElement("div",{className:Jl.formGrid},V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"root-asset-type"},"素材类型"),V.default.createElement(me.default,{id:"root-asset-type",value:x,onChange:j,className:Jl.formControl},r.map(function(e){return V.default.createElement(es,{key:e.value,value:e.value},e.label)}))),V.default.createElement("div",{className:Jl.formField},V.default.createElement("label",{htmlFor:"root-category-name"},"一级分类名称"),V.default.createElement(J.default,{id:"root-category-name",value:z,onChange:function(e){return U(e.target.value)},placeholder:"如:智能家居"}))),V.default.createElement("div",{className:Jl.chainPanel},V.default.createElement("div",{className:Jl.chainHeader},V.default.createElement("div",null,V.default.createElement("strong",null,"二级 → 三级分类链路"),V.default.createElement("span",null,"至少建立一条完整链路")),V.default.createElement("button",{type:"button",className:Jl.inlineButton,onClick:function(){return F(function(e){return e.concat({secondName:"",thirdName:""})})}},V.default.createElement(S.PlusOutlined,null)," 添加链路")),G.map(function(e,t){return V.default.createElement("div",{key:t,className:"".concat(Jl.chainRow," ").concat(Jl.rootChainRow)},V.default.createElement(J.default,{value:e.secondName,onChange:function(e){return W(t,"secondName",e.target.value)},placeholder:"二级分类"}),V.default.createElement(J.default,{value:e.thirdName,onChange:function(e){return W(t,"thirdName",e.target.value)},placeholder:"三级分类"}),V.default.createElement("button",{type:"button",className:Jl.iconDangerButton,"aria-label":"删除分类链路",disabled:1===G.length,onClick:function(){return F(function(e){return e.filter(function(e,a){return a!==t})})}},V.default.createElement(S.DeleteOutlined,null)))})),V.default.createElement("div",{className:Jl.formNotice},"一级分类不能单独保存;新分类会同步影响 SKU 新增、模板与商品素材映射分类树。")),f?V.default.createElement("div",{className:Jl.formError,role:"alert"},f):null)}var ns=1,rs=2,os=3,is=4;function ls(){return ss.apply(this,arguments)}function ss(){return ss=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/list",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ss.apply(this,arguments)}function ds(){return cs.apply(this,arguments)}function cs(){return(cs=we(ze().m(function e(){return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/listEnabled",method:"post",data:{}}))},e)}))).apply(this,arguments)}function us(){return[{value:"all",label:"全部空间"}].concat(Fe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(function(e){return{value:e.name,label:e.viewTab||e.name}}).filter(function(e){return e.value&&e.label})))}function ms(){return ps.apply(this,arguments)}function ps(){return ps=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/save",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ps.apply(this,arguments)}function fs(){return hs.apply(this,arguments)}function hs(){return hs=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/delete",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),hs.apply(this,arguments)}function _s(){return gs.apply(this,arguments)}function gs(){return gs=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/toggle",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),gs.apply(this,arguments)}function vs(){return ys.apply(this,arguments)}function ys(){return ys=we(ze().m(function e(){var t=arguments;return ze().w(function(e){for(;;)if(0===e.n)return e.a(2,Yt({url:"/vbim-decoration-server/space/updateOrder",method:"post",data:t.length>0&&void 0!==t[0]?t[0]:{}}))},e)})),ys.apply(this,arguments)}function xs(e){var t=e.visible,a=e.spaces,r=void 0===a?[]:a,o=e.loading,i=e.onClose,l=e.onCreate,s=e.onToggle,d=e.onDelete,c=e.onMove,u=Ge(n.useState(""),2),m=u[0],p=u[1],f=Ge(n.useState(!1),2),h=f[0],_=f[1],g=Ge(n.useState(""),2),v=g[0],y=g[1],x=n.useRef(!1);n.useEffect(function(){t&&(p(""),y(""))},[t]);var b=function(){var e=we(ze().m(function e(t){var a;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!x.current){e.n=1;break}return e.a(2,!1);case 1:return x.current=!0,_(!0),y(""),e.p=2,e.n=3,t();case 3:return e.a(2,!0);case 4:throw e.p=4,y((a=e.v).message||"保存空间配置失败"),a;case 5:return e.p=5,x.current=!1,_(!1),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=we(ze().m(function e(){var t;return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t=m.trim()){e.n=1;break}return y("请输入新空间名称"),e.a(2);case 1:if(!r.some(function(e){return e.name===t})){e.n=2;break}return y("空间名称“".concat(t,"”重复")),e.a(2);case 2:return e.p=2,e.n=3,b(function(){return l(t)});case 3:e.v&&p(""),e.n=5;break;case 4:e.p=4;case 5:return e.a(2)}},e,null,[[2,4]])}));return function(){return e.apply(this,arguments)}}(),w=function(){var e=we(ze().m(function e(t){return ze().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,b(t);case 1:e.n=3;break;case 2:e.p=2;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(t){return e.apply(this,arguments)}}(),T=[{title:"空间名称",dataIndex:"name",width:140},{title:"渲染视图 Tab",dataIndex:"viewName",width:150},{title:"状态",dataIndex:"enabled",width:80,render:function(e){return V.default.createElement("span",{className:"".concat(Jl.spaceStatusTag," ").concat(e?Jl.spaceStatusEnabled:Jl.spaceStatusDisabled)},e?"启用":"停用")}},{title:"排序",width:176,render:function(e,t,a){return V.default.createElement("div",{className:Jl.spaceTableActions},V.default.createElement("button",{type:"button",disabled:h||0===a,onClick:function(){return w(function(){return c(t,ns)})}},"上移"),V.default.createElement("button",{type:"button",disabled:h||a===r.length-1,onClick:function(){return w(function(){return c(t,rs)})}},"下移"),V.default.createElement("button",{type:"button",disabled:h||0===a,onClick:function(){return w(function(){return c(t,os)})}},"置顶"),V.default.createElement("button",{type:"button",disabled:h||a===r.length-1,onClick:function(){return w(function(){return c(t,is)})}},"置底"))}},{title:"操作",width:112,render:function(e,t){return V.default.createElement("div",{className:Jl.spaceTableActions},V.default.createElement("button",{type:"button",className:t.enabled?Jl.spaceStopAction:Jl.spaceEnableAction,disabled:h,onClick:function(){return w(function(){return s(t,!t.enabled)})}},t.enabled?"停用":"启用"),V.default.createElement(_e.default,{title:"删除空间时需确认该空间下无进行中的渲染方案,确认删除吗?",okText:"删除",cancelText:"取消",onConfirm:function(){return w(function(){return d(t)})}},V.default.createElement("button",{type:"button",className:Jl.spaceDeleteAction,disabled:h},"删除")))}}];return V.default.createElement($l,{visible:t,title:"空间管理",width:820,onClose:i,closable:!h,bodyClassName:Jl.spaceManagementModalBody},V.default.createElement("p",{className:Jl.spaceModalDescription},"空间与渲染编辑器里的【视图切换】保持联动。配置持久化后,渲染平台的房间 Tab 同步更新。"),V.default.createElement(te.default,{spinning:!!o,tip:"空间列表加载中..."},V.default.createElement("div",{className:Jl.spaceTableWrap},V.default.createElement(he.default,{rowKey:"id",columns:T,dataSource:r,pagination:!1,size:"small",locale:{emptyText:"暂无空间"}}))),V.default.createElement("div",{className:Jl.spaceNotice},V.default.createElement("span",null,"ⓘ"),V.default.createElement("div",null,V.default.createElement("p",null,"停用空间后,渲染编辑器【视图切换】中该空间 Tab 同步隐藏;"),V.default.createElement("p",null,"删除空间时需确认该空间下无进行中的渲染方案;用上移、下移、置顶、置底调整渲染器 Tab 顺序。"))),V.default.createElement("div",{className:Jl.addSpaceRow},V.default.createElement("label",{htmlFor:"new-space-name"},"新空间名称:"),V.default.createElement(J.default,{id:"new-space-name",value:m,placeholder:"如:阳台",disabled:h,onChange:function(e){return p(e.target.value)},onPressEnter:M}),V.default.createElement("button",{type:"button",disabled:h,onClick:M},V.default.createElement(S.PlusOutlined,null)," 添加空间")),v?V.default.createElement("div",{className:Jl.formError,role:"alert"},v):null)}function bs(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(a){var n=Re(Re({},a),{},{parent:e});t.push(n),bs(a.children||[],n,t)}),t}function Ms(e){var t=e.item,a=e.selectedId,n=e.level,r=e.onSelect,o=t.level||(void 0===n?1:n),i=3===o?"":t.level3Count||0;return V.default.createElement(V.default.Fragment,null,V.default.createElement("button",{type:"button",className:"".concat(Jl.treeNode," ").concat(Jl["treeNodeLevel".concat(o)]||""," ").concat(a===t.id?Jl.treeNodeActive:""," ").concat(t.enabled?"":Jl.treeNodeDisabled),onClick:function(){return r(t.id)}},V.default.createElement("span",{className:Jl.treeNodeName},t.name),""!==i?V.default.createElement("span",{className:Jl.treeNodeMeta},i):null),(t.children||[]).map(function(e){return V.default.createElement(Ms,{key:e.id,item:e,selectedId:a,level:o+1,onSelect:r})}))}var ws=a.connect(function(e){return{materialCategoryManagement:e.materialCategoryManagement,spaceManagement:e.spaceManagement}})(function(e){var t=e.dispatch,a=e.materialCategoryManagement||{},r=a.assetTypes,o=void 0===r?[]:r,i=a.categoryTrees,l=void 0===i?{}:i,s=a.activeAssetType,d=void 0===s?"":s,c=a.selectedCategoryId,u=void 0===c?"":c,m=a.loading,p=void 0!==m&&m,f=a.level3List,h=void 0===f?[]:f,_=a.level3Loading,g=void 0!==_&&_,v=e.spaceManagement||{},y=v.spaces,x=void 0===y?[]:y,b=v.loading,M=void 0!==b&&b,w=Ge(n.useState(!1),2),T=w[0],E=w[1],C=Ge(n.useState(!1),2),N=C[0],L=C[1],k=Ge(n.useState(null),2),I=k[0],P=k[1],A=Ge(n.useState({text:"",error:!1}),2),R=A[0],D=A[1],z=l[d]||[],U=n.useMemo(function(){return bs(z,null,[])},[z]).find(function(e){return e.id===u})||null;n.useEffect(function(){t({type:"materialCategoryManagement/fetchManagementData"}).catch(function(){})},[t]),n.useEffect(function(){if(R.text){var e=window.setTimeout(function(){return D({text:"",error:!1})},3e3);return function(){return window.clearTimeout(e)}}},[R.text]);var B=function(e){t({type:"materialCategoryManagement/selectCategory",payload:{id:e}}).catch(function(){})},G=function(e){P(e),E(!0)},F=function(e){var a=!e.enabled;t({type:"materialCategoryManagement/toggleCategory",payload:{assetType:d,id:e.id,enabled:a}}).then(function(){D({text:"".concat(e.name,"已").concat(a?"启用":"停用"),error:!1})}).catch(function(){})},O=function(e){oe.default.confirm({title:"确认删除“".concat(e.name,"”?"),content:"删除前会校验该分类及其子级是否存在 SKU、素材或默认素材引用。",okText:"确认删除",okType:"danger",cancelText:"取消",onOk:function(){return function(e){return t({type:"materialCategoryManagement/deleteCategory",payload:{assetType:d,id:e.id}}).then(function(){D({text:"分类“".concat(e.name,"”已删除"),error:!1})})}(e).catch(function(){})}})},H=h,j=(o.find(function(e){return e.value===d})||{}).label,W=[{title:"三级分类",dataIndex:"name",ellipsis:!0},{title:"所属二级",width:150,render:function(e,t){return t.parent?t.parent.name:"--"}},{title:"状态",dataIndex:"enabled",width:90,render:function(e){return V.default.createElement("span",{className:"".concat(Jl.statusTag," ").concat(e?Jl.statusEnabled:Jl.statusDisabled)},e?"启用":"停用")}},{title:"操作",width:180,render:function(e,t){return V.default.createElement("div",{className:Jl.tableActions},V.default.createElement("button",{type:"button",onClick:function(){return G(t)}},"编辑"),V.default.createElement("button",{type:"button",onClick:function(){return F(t)}},t.enabled?"停用":"启用"))}}];return V.default.createElement("div",{className:Jl.page},V.default.createElement("div",{className:Jl.headerSection},V.default.createElement("div",null,V.default.createElement("div",{className:Jl.titleLine},V.default.createElement("h2",null,"素材分类管理")),V.default.createElement("p",null,"管理素材类型与一、二、三级分类。分类变更会影响 SKU 新增、模板和商品素材映射的分类树。")),V.default.createElement("div",{className:Jl.headerActions},V.default.createElement("button",{type:"button",className:Jl.secondaryButton,onClick:function(){L(!0),t({type:"spaceManagement/fetchSpaces"}).catch(function(){})}},"空间管理"),V.default.createElement("button",{type:"button",className:Jl.primaryButton,onClick:function(){P(null),E(!0)}},V.default.createElement(S.PlusOutlined,null)," 新增分类"))),V.default.createElement("div",{className:Jl.assetTabs,role:"tablist","aria-label":"素材类型"},o.map(function(e){return V.default.createElement("button",{key:e.value,type:"button",role:"tab","aria-selected":d===e.value,className:d===e.value?Jl.assetTabActive:"",onClick:function(){t({type:"materialCategoryManagement/changeAssetType",payload:{assetType:e.value}}).catch(function(){})}},e.label,V.default.createElement("span",null,"(",Number(e.count)||0,")"))})),V.default.createElement("div",{className:Jl.layoutBody},V.default.createElement(te.default,{spinning:p,tip:"分类数据加载中..."},V.default.createElement("div",{className:Jl.managementLayout},V.default.createElement("aside",{className:Jl.treePanel},V.default.createElement("div",{className:Jl.panelHeader},V.default.createElement("span",null,"分类树(素材类型 → 一/二/三级)")),V.default.createElement("div",{className:Jl.treeScroll},z.length?z.map(function(e){return V.default.createElement(Ms,{key:e.id,item:e,selectedId:U?U.id:"",onSelect:B})}):V.default.createElement(re.default,{image:re.default.PRESENTED_IMAGE_SIMPLE,description:"当前素材类型暂无分类"}))),V.default.createElement("main",{className:Jl.detailColumn},U?V.default.createElement(V.default.Fragment,null,V.default.createElement("section",{className:Jl.summaryCard},V.default.createElement("div",{className:Jl.summaryHeader},V.default.createElement("div",null,V.default.createElement("div",{className:Jl.categoryTitle},U.name,V.default.createElement("span",null,j),V.default.createElement("small",null,U.level,"级分类 ·"," ",U.level2Count||0," 个二级分类 ·"," ",U.level3Count||0," 个三级分类"))),V.default.createElement("div",{className:Jl.summaryActions},V.default.createElement("button",{type:"button",onClick:function(){return G(U)}},V.default.createElement(S.EditOutlined,null)," 编辑"),V.default.createElement("button",{type:"button",onClick:function(){return F(U)}},U.enabled?"停用":"启用"),V.default.createElement("button",{type:"button",className:Jl.dangerButton,onClick:function(){return O(U)}},V.default.createElement(S.DeleteOutlined,null)," 删除"))),V.default.createElement("div",{className:Jl.ruleNotice},"ⓘ 停用后:商品素材映射分类树、SKU 新增与模板中将不再出现该分类;已绑定素材不受影响。分类树显示受本模块控制。")),V.default.createElement("section",{className:Jl.detailCard},V.default.createElement("div",{className:Jl.detailCardHeader},V.default.createElement("div",null,V.default.createElement("h3",null,"三级分类明细"),V.default.createElement("span",null,"共 ",H.length," 项"))),V.default.createElement("div",{className:Jl.tableWrap},V.default.createElement(te.default,{spinning:g,tip:"三级分类加载中..."},V.default.createElement(he.default,{rowKey:"id",columns:W,dataSource:H,pagination:!1,size:"small",locale:{emptyText:"当前分类下暂无三级分类"},scroll:{y:"100%"}}))))):V.default.createElement("div",{className:Jl.emptyDetail},V.default.createElement(re.default,{description:"请选择分类或新增完整分类链路"})))))),V.default.createElement(as,{visible:T,editingCategory:I,assetTypes:o,activeAssetType:d,categoryTrees:l,onNeedCategoryTree:function(e){t({type:"materialCategoryManagement/ensureAssetTypeTree",payload:{assetType:e}}).catch(function(){})},onClose:function(){E(!1),P(null)},onSubmit:function(e){return t({type:"materialCategoryManagement/".concat("edit"===e.action?"editCategory":"createCategory"),payload:e}).then(function(){D({text:"edit"===e.action?"分类已保存":"分类已新增,消费页面可重新拉取分类树",error:!1})})}}),V.default.createElement(xs,{visible:N,spaces:x,loading:M,onClose:function(){return L(!1)},onCreate:function(e){return t({type:"spaceManagement/createSpace",payload:{name:e}}).then(function(){D({text:"空间已新增",error:!1})})},onToggle:function(e,a){return t({type:"spaceManagement/toggleSpace",payload:{id:e.id,enabled:a}}).then(function(){D({text:"空间“".concat(e.name,"”已").concat(a?"启用":"停用"),error:!1})})},onDelete:function(e){return t({type:"spaceManagement/deleteSpace",payload:{id:e.id}}).then(function(){D({text:"空间“".concat(e.name,"”已删除"),error:!1})})},onMove:function(e,a){return t({type:"spaceManagement/moveSpace",payload:{id:e.id,operation:a}}).then(function(){D({text:"空间顺序已更新",error:!1})})}}),R.text?V.default.createElement("div",{className:"".concat(Jl.toast," ").concat(R.error?Jl.toastError:""),role:"status"},R.text):null)}),Ss={page:"myMaterialModel-module_page__1V3eV",pageHeader:"myMaterialModel-module_pageHeader__nmZMa",pageTabs:"myMaterialModel-module_pageTabs__2hAyX",pageTab:"myMaterialModel-module_pageTab__1toJJ",pageTabActive:"myMaterialModel-module_pageTabActive__E2X2k",tableCardWrap:"myMaterialModel-module_tableCardWrap__2Gpzi",tableHeader:"myMaterialModel-module_tableHeader__WrWwa",searchInput:"myMaterialModel-module_searchInput__2qT_a",searchInputWrap:"myMaterialModel-module_searchInputWrap__30q1_",searchClearBtn:"myMaterialModel-module_searchClearBtn__1bu_i",filterLabel:"myMaterialModel-module_filterLabel__3qfY7",filterSelect:"myMaterialModel-module_filterSelect__2NlQa","ant-select-selection-item":"myMaterialModel-module_ant-select-selection-item__5prmh","ant-select-arrow":"myMaterialModel-module_ant-select-arrow__2N0va",segmented:"myMaterialModel-module_segmented__320Gb",segmentedItem:"myMaterialModel-module_segmentedItem__3bknN",segmentedItemSelected:"myMaterialModel-module_segmentedItemSelected__30U2P",tableCard:"myMaterialModel-module_tableCard__2se1Q",dataTable:"myMaterialModel-module_dataTable__1EmL0",cell:"myMaterialModel-module_cell__3tt2H",cellName:"myMaterialModel-module_cellName__2Hp8Q myMaterialModel-module_cell__3tt2H",cellMuted:"myMaterialModel-module_cellMuted__3p4Ps myMaterialModel-module_cell__3tt2H",brandName:"myMaterialModel-module_brandName__3ntMz myMaterialModel-module_cell__3tt2H",formatCell:"myMaterialModel-module_formatCell__zfkM0 myMaterialModel-module_cell__3tt2H",thumbnailCell:"myMaterialModel-module_thumbnailCell__BUa2u",thumbnail:"myMaterialModel-module_thumbnail__1LTn6",thumbnailImg:"myMaterialModel-module_thumbnailImg__hwGa5",thumbnailPlaceholder:"myMaterialModel-module_thumbnailPlaceholder__1pr2B",actions:"myMaterialModel-module_actions__2VBHo",statusNeutral:"myMaterialModel-module_statusNeutral__3Gcid",mappingProduct:"myMaterialModel-module_mappingProduct__1sytA",headerLeft:"myMaterialModel-module_headerLeft__3SmyL",pageTitle:"myMaterialModel-module_pageTitle__xQZQW",pageSubtitle:"myMaterialModel-module_pageSubtitle__1XMki",uploadBtn:"myMaterialModel-module_uploadBtn__2j5QH",mainContent:"myMaterialModel-module_mainContent__QGX9K",sidebar:"myMaterialModel-module_sidebar__2TFvY",spaceSelector:"myMaterialModel-module_spaceSelector__wbCod",spaceSelect:"myMaterialModel-module_spaceSelect__1Tw5_",tabPills:"myMaterialModel-module_tabPills__1gvo6",tabPill:"myMaterialModel-module_tabPill__26UPx",active:"myMaterialModel-module_active__1De7F",categoryTree:"myMaterialModel-module_categoryTree__2EBns",categoryList:"myMaterialModel-module_categoryList__4kLk_",categoryGroup:"myMaterialModel-module_categoryGroup__1shvy",categoryItem:"myMaterialModel-module_categoryItem__2Nf9n",expandIcon:"myMaterialModel-module_expandIcon__2Bjzy",categoryItemTitle:"myMaterialModel-module_categoryItemTitle__cXHKc",categoryItemCount:"myMaterialModel-module_categoryItemCount__LAHQL",subCategoryItem:"myMaterialModel-module_subCategoryItem__3zzLw",subCategoryTitle:"myMaterialModel-module_subCategoryTitle__1sPY2",subCategoryCount:"myMaterialModel-module_subCategoryCount__3O4pm",content:"myMaterialModel-module_content__1yTqx",formatTabs:"myMaterialModel-module_formatTabs__3fKIc",formatTab:"myMaterialModel-module_formatTab__3Gxa9",materialGrid:"myMaterialModel-module_materialGrid__1tWr1",paginationWrap:"myMaterialModel-module_paginationWrap__1tHjH",materialCard:"myMaterialModel-module_materialCard__3xbJf",cardCover:"myMaterialModel-module_cardCover__18j6J",cardImage:"myMaterialModel-module_cardImage__Ik-RP",cardImagePlaceholder:"myMaterialModel-module_cardImagePlaceholder__2VBgc",cardBody:"myMaterialModel-module_cardBody__38Lpt",cardHeader:"myMaterialModel-module_cardHeader__1ftO3",cardTitle:"myMaterialModel-module_cardTitle__17Aho",cardSubtitle:"myMaterialModel-module_cardSubtitle__2ooLj",cardMeta:"myMaterialModel-module_cardMeta__AkqZ8",cardFormat:"myMaterialModel-module_cardFormat__3gg-s",cardDivider:"myMaterialModel-module_cardDivider__2khRP",cardSize:"myMaterialModel-module_cardSize__2bw72",cardFooter:"myMaterialModel-module_cardFooter__38-3Y",actionBtn:"myMaterialModel-module_actionBtn__24Hj5",moreBtn:"myMaterialModel-module_moreBtn__1QhQ1",moreIcon:"myMaterialModel-module_moreIcon__eLwcd",cardActions:"myMaterialModel-module_cardActions__3UTMB",moreDropdown:"myMaterialModel-module_moreDropdown__3GHbx",dropdownOpen:"myMaterialModel-module_dropdownOpen__76wL2",moreDropdownItem:"myMaterialModel-module_moreDropdownItem__3o8kP",loadingWrap:"myMaterialModel-module_loadingWrap__3FwDH",empty:"myMaterialModel-module_empty__29mYv"};je(".myMaterialModel-module_page__1V3eV{display:flex;flex-direction:column;height:100%;background:#f5f7fa}.myMaterialModel-module_pageHeader__nmZMa{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 7px}.myMaterialModel-module_pageTabs__2hAyX{display:flex;align-items:center;gap:0;padding:0 16px;border-bottom:1px solid rgba(115,123,139,.30196078431372547)}.myMaterialModel-module_pageTab__1toJJ{padding:11.5px 0;font-size:14px;font-weight:400;color:#737b8b;cursor:pointer;border-bottom:2px solid transparent;transition:all .2s;margin-right:32px}.myMaterialModel-module_pageTab__1toJJ:hover{color:#1890ff}.myMaterialModel-module_pageTabActive__E2X2k{color:#1890ff;border-bottom-color:#1890ff}.myMaterialModel-module_tableCardWrap__2Gpzi{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}.myMaterialModel-module_tableHeader__WrWwa{display:flex;align-items:center;gap:16px;padding:0 0 12px;flex-shrink:0}.myMaterialModel-module_searchInput__2qT_a{width:240px;height:32px;padding:0 32px 0 12px;border:1px solid #f0f0f0;border-radius:6px;font-size:13px;outline:none;transition:all .2s}.myMaterialModel-module_searchInput__2qT_a:focus{border-color:#1890ff;box-shadow:0 0 0 2px rgba(24,144,255,.12)}.myMaterialModel-module_searchInputWrap__30q1_{position:relative;display:inline-block}.myMaterialModel-module_searchClearBtn__1bu_i{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:18px;height:18px;display:flex;align-items:center;justify-content:center;color:#bfbfbf;cursor:pointer;border-radius:50%;font-size:12px;transition:all .2s}.myMaterialModel-module_searchClearBtn__1bu_i:hover{color:#8c8c8c;background:rgba(0,0,0,.08)}.myMaterialModel-module_filterLabel__3qfY7{font-size:14px;color:#000;white-space:nowrap}.myMaterialModel-module_filterSelect__2NlQa{width:auto;min-width:80px;background:#fff;border-radius:4px}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector{height:auto!important;padding:0 8px 0 px!important;border:none!important;background:transparent!important;box-shadow:none!important}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector .myMaterialModel-module_ant-select-selection-item__5prmh{line-height:1.2!important;padding:0!important;font-size:14px;color:#616778}.myMaterialModel-module_filterSelect__2NlQa .ant-select-selector .myMaterialModel-module_ant-select-arrow__2N0va{right:0!important}.myMaterialModel-module_segmented__320Gb{display:flex;background:#fff;padding:3px;border-radius:6px}.myMaterialModel-module_segmentedItem__3bknN{padding:0 12px;min-height:26px;line-height:26px;font-size:14px;color:#616778;cursor:pointer;border-radius:4px;transition:all .2s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.myMaterialModel-module_segmentedItem__3bknN:hover{color:#000f2c}.myMaterialModel-module_segmentedItem__3bknN.myMaterialModel-module_segmentedItemSelected__30U2P{background:#f0f2f5;color:#000f2c;font-weight:600;box-shadow:0 1px 4px rgba(0,0,0,.08)}.myMaterialModel-module_tableCard__2se1Q{overflow:hidden}.myMaterialModel-module_tableCard__2se1Q,.myMaterialModel-module_tableCard__2se1Q .ant-spin-container,.myMaterialModel-module_tableCard__2se1Q .ant-spin-nested-loading,.myMaterialModel-module_tableCard__2se1Q .ant-table-wrapper{flex:1;min-height:0;display:flex;flex-direction:column}.myMaterialModel-module_tableCard__2se1Q .ant-table-pagination{flex-shrink:0;margin:0;padding:12px 16px;border-top:1px solid #f0f0f0;display:flex;align-items:center;justify-content:flex-end}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-total-text{color:#8c8c8c;font-size:13px}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item{min-width:32px;height:32px;line-height:32px;border-radius:6px;border:1px solid #f0f0f0}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item a{color:#616778}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item:hover{border-color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item:hover a{color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item-active{background:#1890ff;border-color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-item-active a{color:#fff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev{min-width:32px;height:32px;line-height:32px}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next .ant-pagination-item-link,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev .ant-pagination-item-link{border-radius:6px;border:1px solid #f0f0f0;color:#616778}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-next .ant-pagination-item-link:hover,.myMaterialModel-module_tableCard__2se1Q .ant-pagination-prev .ant-pagination-item-link:hover{border-color:#1890ff;color:#1890ff}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-disabled .ant-pagination-item-link{color:#d9d9d9}.myMaterialModel-module_tableCard__2se1Q .ant-pagination-disabled .ant-pagination-item-link:hover{border-color:#f0f0f0;color:#d9d9d9}.myMaterialModel-module_dataTable__1EmL0{background:#fff;border:1px solid #fff;border-radius:8px}.myMaterialModel-module_dataTable__1EmL0 .ant-table{flex:1;min-height:0;background:transparent;font-size:13px}.myMaterialModel-module_dataTable__1EmL0 .ant-table-container{height:100%;border-radius:0}.myMaterialModel-module_dataTable__1EmL0 .ant-table-thead>tr>th{background:#f5f7fa;padding:7.5px 12px;font-family:PingFang SC;font-weight:400;font-size:12px;letter-spacing:0;vertical-align:middle;color:#737b8b;border-bottom:1px solid #f0f0f0}.myMaterialModel-module_dataTable__1EmL0 .ant-table-thead>tr>th:before{display:none}.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell,.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell *,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td *{-moz-user-select:text!important;user-select:text!important;-webkit-user-select:text!important}.myMaterialModel-module_dataTable__1EmL0 .ant-table-cell,.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr>td{padding:12px 14px;font-size:13px;color:#262626;border-bottom:1px solid #f5f5f5}.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr:last-child>td{border-bottom:none}.myMaterialModel-module_dataTable__1EmL0 .ant-table-tbody>tr:hover>td{background:#fafafa}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-total-text{font-family:Roboto;font-weight:400;font-size:14px;letter-spacing:0;text-align:center;color:rgba(0,0,0,.65)}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item{border:1px solid #d9d9d9;border-radius:6px}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item:hover>a{color:#397bff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-active{border:1px solid #397bff;background-color:#fff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-active>a{color:#397bff}.myMaterialModel-module_dataTable__1EmL0 .ant-pagination-item-link,.myMaterialModel-module_dataTable__1EmL0 .ant-select:not(.ant-select-customize-input) .ant-select-selector{border-radius:6px}.myMaterialModel-module_cell__3tt2H{font-family:PingFang SC;font-weight:400;font-size:14px;letter-spacing:0;vertical-align:middle;color:#000f2c}.myMaterialModel-module_cellName__2Hp8Q{font-weight:500}.myMaterialModel-module_cellMuted__3p4Ps{font-size:12px;color:#8c8c8c}.myMaterialModel-module_brandName__3ntMz{color:#1890ff}.myMaterialModel-module_thumbnailCell__BUa2u{display:flex;align-items:center;gap:10px}.myMaterialModel-module_thumbnail__1LTn6{width:48px;height:48px;border-radius:8px;background:#f0f2f5;overflow:hidden;flex-shrink:0}.myMaterialModel-module_thumbnailImg__hwGa5{width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.myMaterialModel-module_thumbnailPlaceholder__1pr2B{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f0f2f5}.myMaterialModel-module_actions__2VBHo{white-space:nowrap}.myMaterialModel-module_statusNeutral__3Gcid{display:inline-block;padding:2px 8px;border-radius:4px;font-size:14px;color:#8c8c8c;background:#f5f5f5}.myMaterialModel-module_mappingProduct__1sytA{color:#1890ff;cursor:pointer}.myMaterialModel-module_headerLeft__3SmyL{display:flex;flex-direction:column;gap:2px}.myMaterialModel-module_pageTitle__xQZQW{font-size:14px;font-weight:500;color:#000f2c}.myMaterialModel-module_pageSubtitle__1XMki{font-size:12px;color:#737b8b;font-weight:400}.myMaterialModel-module_uploadBtn__2j5QH{height:32px;padding:4px 12px;border-radius:6px;font-size:14px;background:#1890ff;border:none}.myMaterialModel-module_mainContent__QGX9K{display:flex;flex:1;overflow:hidden}.myMaterialModel-module_sidebar__2TFvY{width:264px;background:#fff;display:flex;flex-direction:column;overflow-y:auto;margin:16px 0 16px 16px;border-radius:6px}.myMaterialModel-module_spaceSelector__wbCod{padding:16px 16px 12px}.myMaterialModel-module_spaceSelect__1Tw5_{width:100%}.myMaterialModel-module_spaceSelect__1Tw5_ .ant-select-selector{height:36px!important;padding:0 12px!important;border-radius:6px!important;border:1px solid #f0f2f5!important;background:#f0f2f5!important}.myMaterialModel-module_spaceSelect__1Tw5_ .ant-select-selector .myMaterialModel-module_ant-select-selection-item__5prmh{line-height:36px!important;font-size:14px}.myMaterialModel-module_tabPills__1gvo6{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}.myMaterialModel-module_tabPill__26UPx{padding:4px 12px;border-radius:4px;font-size:13px;color:#616778;cursor:pointer;transition:all .2s;background:transparent}.myMaterialModel-module_tabPill__26UPx:hover{background:#f0f2f5;color:#000f2c}.myMaterialModel-module_tabPill__26UPx.myMaterialModel-module_active__1De7F{background:#e6f4ff;color:#1890ff}.myMaterialModel-module_categoryList__4kLk_,.myMaterialModel-module_categoryTree__2EBns{flex:1;overflow-y:auto}.myMaterialModel-module_categoryGroup__1shvy.myMaterialModel-module_active__1De7F .myMaterialModel-module_categoryItem__2Nf9n{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_categoryItem__2Nf9n{display:flex;align-items:center;padding:10px 16px;cursor:pointer;transition:all .2s;font-size:14px;color:#737b8b;font-weight:400}.myMaterialModel-module_categoryItem__2Nf9n:hover{background:#f5f5f5}.myMaterialModel-module_categoryItem__2Nf9n.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_expandIcon__2Bjzy{margin-right:8px;font-size:10px;color:#8c8c8c}.myMaterialModel-module_categoryItemTitle__cXHKc{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.myMaterialModel-module_categoryItemCount__LAHQL{font-size:12px;color:#8c8c8c;margin-left:auto}.myMaterialModel-module_categoryItemCount__LAHQL.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_subCategoryItem__3zzLw{display:flex;align-items:center;padding:5px 16px 5px 30px;cursor:pointer;transition:all .2s;font-size:14px;font-size:400;color:#121c2a}.myMaterialModel-module_subCategoryItem__3zzLw:hover{background:#f5f5f5}.myMaterialModel-module_subCategoryItem__3zzLw.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_subCategoryTitle__1sPY2{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.myMaterialModel-module_subCategoryCount__3O4pm{font-size:12px;color:#8c8c8c;margin-left:auto}.myMaterialModel-module_subCategoryCount__3O4pm.myMaterialModel-module_active__1De7F{color:#1890ff;background:#e6f4ff}.myMaterialModel-module_content__1yTqx{flex:1;display:flex;flex-direction:column;padding:16px;min-height:0;overflow:hidden}.myMaterialModel-module_formatTabs__3fKIc{display:flex;gap:4px;margin-bottom:16px;background:#fff;padding:0 3px;border-radius:8px;width:-moz-fit-content;width:fit-content}.myMaterialModel-module_formatTab__3Gxa9{font-size:14px;color:#616778;cursor:pointer;height:26px;line-height:26px;transition:all .2s;padding:0 12px;margin:3px 0}.myMaterialModel-module_formatTab__3Gxa9:hover{color:#000f2c;background:#f0f2f5;border-radius:4px}.myMaterialModel-module_formatTab__3Gxa9.myMaterialModel-module_active__1De7F{color:#000f2c;font-weight:600;background:#f0f2f5;border-radius:4px}.myMaterialModel-module_materialGrid__1tWr1{display:grid;grid-template-columns:repeat(auto-fill,minmax(281px,1fr));gap:24px 16px;overflow-y:auto}.myMaterialModel-module_paginationWrap__1tHjH{position:fixed;bottom:24px;right:24px;background:#fff;padding:12px 16px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.12)}.myMaterialModel-module_materialCard__3xbJf{background:#fff;border-radius:12px;overflow:visible;border:1px solid #f0f0f0;transition:all .2s;height:281px;display:flex;flex-direction:column}.myMaterialModel-module_materialCard__3xbJf:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);border-color:#e6f4ff}.myMaterialModel-module_cardCover__18j6J{position:relative;width:100%;height:197px;flex-shrink:0;overflow:hidden;background:#f5f5f5}.myMaterialModel-module_cardImage__Ik-RP{position:absolute;top:0;left:0;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.myMaterialModel-module_cardImagePlaceholder__2VBgc{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#fafafa,#f0f0f0)}.myMaterialModel-module_cardBody__38Lpt{padding:10px 12px 8px;min-height:50px}.myMaterialModel-module_cardHeader__1ftO3{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.myMaterialModel-module_cardTitle__17Aho{font-size:14px;font-weight:500;color:#000f2c;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.myMaterialModel-module_cardSubtitle__2ooLj{font-size:12px;color:#8c8c8c;line-height:1.4;margin-bottom:6px}.myMaterialModel-module_cardMeta__AkqZ8{display:flex;align-items:center;gap:4px;font-size:12px;color:#8c8c8c;flex-shrink:0}.myMaterialModel-module_cardFormat__3gg-s{color:#616778}.myMaterialModel-module_cardDivider__2khRP{color:#d9d9d9}.myMaterialModel-module_cardSize__2bw72{color:#8c8c8c}.myMaterialModel-module_cardFooter__38-3Y{display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:0 12px;flex-shrink:0}.myMaterialModel-module_actionBtn__24Hj5{flex:1;height:28px;font-size:12px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center}.myMaterialModel-module_moreBtn__1QhQ1{width:28px;min-width:28px;padding:0;display:flex;align-items:center;justify-content:center}.myMaterialModel-module_moreIcon__eLwcd{width:28px;height:28px;cursor:pointer}.myMaterialModel-module_cardActions__3UTMB{position:relative}.myMaterialModel-module_moreDropdown__3GHbx{position:absolute;right:0;top:100%;margin-top:4px;background:#fff;border-radius:14px;box-shadow:0 8px 24px rgba(0,0,0,.12),0 2px 8px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06);padding:4px;min-width:100px;z-index:9999;animation:myMaterialModel-module_dropdownOpen__76wL2 .2s ease-out}.myMaterialModel-module_moreDropdownItem__3o8kP{display:block;width:100%;text-align:left;border:none;background:transparent;color:#616778;font-size:13px;padding:8px 12px;cursor:pointer;border-radius:4px}.myMaterialModel-module_moreDropdownItem__3o8kP:hover{border-radius:10px;background:#f5f5f5;color:#000f2c}@keyframes myMaterialModel-module_dropdownOpen__76wL2{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.myMaterialModel-module_empty__29mYv,.myMaterialModel-module_loadingWrap__3FwDH{flex:1;display:flex;align-items:center;justify-content:center}.myMaterialModel-module_empty__29mYv{flex-direction:column}");
|
|
4
4
|
/**
|
|
5
5
|
* @license
|
|
6
6
|
* Copyright 2010-2021 Three.js Authors
|