filesbox/web/dist/94013.bae96ac4.async.js

2 lines
9.5 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[94013],{56829:function(oe,f,r){"use strict";r.r(f),r.d(f,{default:function(){return W}});var ce=r(57338),y=r(273),he=r(57663),S=r(71577),ue=r(13062),c=r(71230),ge=r(47673),h=r(4107),ve=r(66126),u=r(99177),de=r(89032),l=r(15746),t=r(11849),_e=r(18106),E=r(95562),I=r(67294),B=r(28216),F=r(49101),K=r(41273),T=r(7861),L=r(44258),i=r.n(L),g=r(30672),U=r(19755),me=r.n(U),e=r(85893),p,x,j=E.Z.TabPane,W=(p=(0,B.$j)(m=>{var s=m.globaldesign,o=m.commondesign;return{globaldesign:s,commondesign:o}}),p(x=class extends I.Component{constructor(){super(...arguments);this.state={filterSelect:"",filter:{blur:0,brightness:1,contrast:1,saturate:1,grayscale:0,sepia:0,hueRotate:0,invert:0},filterVisible:!1}}shouldComponentUpdate(){return!window.startMouseMove}changeFilter(){var s=this,o=this.state.filter;(0,K.gV)({type:"filter",parentSelf:s,filter:o})}renderFilter(){var s=this,o=this.state,v=o.filterSelect,n=o.filter,_=n.blur,R=n.brightness,C=n.contrast,M=n.saturate,b=n.grayscale,D=n.sepia,P=n.hueRotate,O=n.invert,Z=s.props.globaldesign.selectElement,A=(0,g.lw)((0,g.Kd)()),N=(0,T.GA)("image/"),V=Z.find("img").length>0&&Z.find("img").eq(0).attr("src")?Z.find("img").eq(0).attr("src"):N+"filter.jpg",w={value:_,min:0,max:100,step:.1,onAfterChange:a=>{window.termination=!1},onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{blur:a})},()=>{s.changeFilter()})}},$={value:_,min:0,max:100,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{blur:a.target.value})},()=>{s.changeFilter()})}},G={value:R,min:0,max:10,step:.1,onAfterChange:a=>{window.termination=!1},onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{brightness:a})},()=>{s.changeFilter()})}},X={value:R,min:0,max:10,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{brightness:a.target.value})},()=>{s.changeFilter()})}},z={value:C,min:0,max:10,step:.1,onAfterChange:a=>{window.termination=!1},onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{contrast:a})},()=>{s.changeFilter()})}},H={value:C,min:0,max:10,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{contrast:a.target.value})},()=>{s.changeFilter()})}},J={value:M,min:0,max:10,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{saturate:a})},()=>{s.changeFilter()})}},Q={value:M,min:0,max:10,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{saturate:a.target.value})},()=>{s.changeFilter()})}},Y={value:b,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{grayscale:a})},()=>{s.changeFilter()})}},k={value:b,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{grayscale:a.target.value})},()=>{s.changeFilter()})}},q={value:D,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{sepia:a})},()=>{s.changeFilter()})}},ee={value:D,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{sepia:a.target.value})},()=>{s.changeFilter()})}},te={value:P,min:0,max:360,step:.1,onAfterChange:a=>{window.termination=!1},onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{hueRotate:a})},()=>{s.changeFilter()})}},ae={value:P,min:0,max:360,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{hueRotate:a.target.value})},()=>{s.changeFilter()})}},se={value:O,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{invert:a})},()=>{s.changeFilter()})}},re={value:O,min:0,max:1,step:.1,onChange:a=>{s.setState({filter:(0,t.Z)((0,t.Z)({},n),{},{invert:a.target.value})},()=>{s.changeFilter()})}},ne=()=>{s.setState({filterSelect:"",filter:{blur:0,brightness:1,contrast:1,saturate:1,grayscale:0,sepia:0,hueRotate:0,invert:0}},()=>{s.changeFilter()})},le=[{name:"1977",filter:{brightness:1.1,contrast:1.1,blur:0,saturate:1.3,grayscale:0,sepia:0,hueRotate:0,invert:0}},{name:"\u4E9A\u4E01",filter:{brightness:1.2,contrast:.9,blur:0,saturate:.85,grayscale:0,sepia:0,hueRotate:20,invert:0}},{name:"\u963F\u9A6C\u7F57",filter:{brightness:1.1,contrast:.9,blur:0,saturate:1.5,grayscale:0