暫無描述

index.js.map 8.7KB

1
  1. {"version":3,"file":"index.js","sources":["../../src/components/Payment/assets/icon/close@2x.png","../../src/components/Payment/WantedPublishPopover/index.tsx"],"sourcesContent":["const img = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAFNElEQVRYR82Yf0jcdRjH33enp1NbTQ3FdKhTY64hTTsURc6keQeSqIPSQJIiMHM3zj8ST/BE/And+c8wmSSMomHl4EaaP2aeuq/R1MwrraEgLVbLXcvpReY847l9v3I7774/LKUHjuN79/k8z+v7+fG8n89Hhv+pyf4F1xEAxwE8BSAIQDAAPwB/AnCwnzsAVgHsSI0jFcwfwEkA8QAiRAYj0BUACwDsIvtALJgcwLMA0tjREevfs90tADcBbAg5EAN2FEAegFAhZyL/3wYwBeB7vvZCYFEAzgIIEBlUSjMCYwA4vXXiA6N1lAuApvGg7DaAL7zB+QILB1DA7rKDguL80shNegbxBkZbv4jd/gcNxfmfYHftbjxvYDR9CYdFxMahDfExm/tcP3mC0RQWHzIUF+5HAGPcgydYPoBn+MCSk5ODm5ubs4qKigadTq8b6rHuFRUVcYmJicf0ev2swAuTOnwC4L7niD0J4FW+zvHx8YEMw+gjIiKOz8zM3MjIyPhwa2vLp9xUV1cntra2VioUCv+WlpYug8EwLwD3HYAbnmApANL5OlZVVZ0wm806hUKhpHbz8/Nfq1Sqns3NzT1wdXV1J41GYwXXdnZ2lklNTb0sAEaK8JEnGKWHSKH1xY2Cn59fILVdXFz8RqVSXdrY2Nid16amptM1NTVvyeVy0laIGV23uJ+SpnJrTAHgTSEo7v/Kyso4k8l0XqlUUoWBpaUlW3p6epfdbn9oMpnO6HS6N+RyOfnE1NTUWFZW1hUx65H1T3I1z4E9AaBULBi1Ky8vj+ns7NQFBASE0PPKysqi1WqdKSsrK5XJZC61sFqtw2q1+jMpfgmK3ocDoymkqZRkJSUlUd3d3ReCgoJI6B+zwcHBzzUazTVJDh81XgJwnQOLY8Vasp+CgoKI3t7ed5VKJSmGy4aGhvrz8vIskp096kDF5TUOjCpR7X4c9fX1nS0sLCQJ27XV1dXbubm5HTabjSpZqfYTgAEOLAzAOake+vv787VaLSVlsh2Hw/EgODiY8iHsdvsdjUbTMT09/UCi3x9oeXJgtLvKpDgYHR0tzMnJoQISOzs7zq6urss9PT0LAwMDF0JDQ6mOw9ra2t38/Hzz5OTkHxJ8k0Lc5MDo+3UArsTJZ3K5HOPj469kZmbmsFDbHR0dH+j1+hl6TklJCRkZGdGFh4fH0PP6+vq94uJi8/DwsNh6/0sAt9y18kUAiXxQ/v7+MoZhXktLS8uidk6n82FbW9ul2trab937JSUlBVmt1vORkZGx9LvD4bhfWlpqtlgsvwm8NykIqcNf7mBUsb7E19FoNJ6qr6+vojbb29t/NzY2vt/Q0ECnnz0WGxsbODEx8U50dLSrhFpeXrYlJCRcFAD7BYBrN7uDkXzQOqOzoU+zWCwarVarNRgMF9vb2+nU49OioqKUDMO8HRIScjQ7O/u9hYUFoV1KZwCbJxg9vwDgjNA6U6vVx8bGxlzliZCFhYX5xcTEHJmbm1sXaEvnzysAtryB0eIvAeAS6EO2caoJuJjeSutTAFyL+xDtdwCkqbsViq9T0mHW/ZsArlLacx8IX2C0AV4G8PQBjxqlh34AP3vG4TvwkihrDhCOTkZ0+KBqYo8JXRHQyKkBnPiPR4524CAAnwlXCIzjOc3e9AhKlogXoCspOnnz5jSxYBSPLlaeB/AcAFfZLNHuAvgKwK9i+kkB4/xRjqP6jXSQhJpPKUi4aYToc08MEF8ek9KfRo675qRv7qqTu+6kVLAv28+I7SuQ1E7/AHTQdDZ7M6+KAAAAAElFTkSuQmCC\";\n export default img;","import React from \"react\";\nimport { Popover } from \"antd\";\nimport { PopoverProps } from \"antd/lib/popover\";\nimport WantedPublishView from \"../WantedPublishView\";\n\nimport popClose from \"../assets/icon/close@2x.png\";\nimport styles from \"./WantedPublishPopover.less\";\nimport {\n WatnedPublishBase,\n WatnedPublishBaseP\n} from \"@components/Payment/BaseClassComponents/WantedPublish\";\n\nexport interface WantedPublishPopoverProp extends WatnedPublishBaseP {\n popoverConfig?: PopoverProps;\n}\n\nexport interface WantedPublishPopoverState {\n visible: boolean;\n current_wanted: number | string | null;\n}\n\nexport class WantedPublishPopover extends WatnedPublishBase<\n WantedPublishPopoverProp,\n WantedPublishPopoverState\n> {\n constructor(props: WantedPublishPopoverProp) {\n super(props);\n this.state = {\n visible: false,\n current_wanted: null\n };\n }\n\n handleConfirmButton = (containerRef?: React.RefObject<any>) => {\n const { handleConfirm } = this.props;\n if (handleConfirm) {\n const value = this.formatCurrentWanted(this.state.current_wanted);\n handleConfirm(this.formatResult(value), containerRef);\n }\n this.setState({ visible: false });\n };\n\n renderInitView() {\n const { current_wanted } = this.state;\n return (\n <WantedPublishView\n type=\"pop\"\n current_wanted={current_wanted}\n InputWantedValueChange={(v: string) =>\n this.setState({ current_wanted: v })\n }\n InputWantedPressEnter={(v: string) => {\n const value = this.formatCurrentWanted(v);\n if (this.props.handleConfirm)\n this.props.handleConfirm(this.formatResult(value));\n this.setState({ current_wanted: value, visible: false });\n }}\n InputWantedOnBlur={(v: string) => {\n const value = this.formatCurrentWanted(v);\n this.setState({ current_wanted: value });\n }}\n InputWantedClear={() => {\n this.setState(\n {\n current_wanted: null\n },\n () => {\n if (this.props.handleConfirm) this.props.handleConfirm(null);\n this.setState({ visible: false });\n }\n );\n }}\n InputWantedConfirm={this.handleConfirmButton}\n {...this.props.viewConfig}\n />\n );\n }\n\n render() {\n const { children, popoverConfig = {}, currentWanted } = this.props;\n\n return (\n <Popover\n placement=\"left\"\n trigger=\"click\"\n visible={this.state.visible}\n onVisibleChange={(value: boolean) => {\n if (value && currentWanted) {\n this.setState({ current_wanted: +currentWanted });\n }\n this.setState({ visible: value });\n }}\n {...popoverConfig}\n content={\n <div className={styles.wantedWrapper}>\n <div role=\"button\" tabIndex={1} className={styles.closeBtnWrapper}>\n <div\n className={styles.closeBtn}\n onClick={() => {\n this.setState({ visible: false });\n }}\n >\n <img src={popClose} alt=\"close wanted button\" />\n </div>\n </div>\n {this.renderInitView()}\n </div>\n }\n >\n {children}\n </Popover>\n );\n }\n}\n\nexport default WantedPublishPopover;\n"],"names":["img","WantedPublishPopover","props","handleConfirmButton","containerRef","handleConfirm","_this","value","formatCurrentWanted","state","current_wanted","formatResult","setState","visible","React","createElement","WantedPublishView","Object","assign","type","InputWantedValueChange","v","_this2","InputWantedPressEnter","InputWantedOnBlur","InputWantedClear","InputWantedConfirm","viewConfig","children","popoverConfig","currentWanted","Popover","placement","trigger","onVisibleChange","_this3","content","className","styles","wantedWrapper","role","tabIndex","closeBtnWrapper","closeBtn","onClick","src","popClose","alt","renderInitView","WatnedPublishBase"],"mappings":";;;;;;;;;;;AAAA,IAAMA,GAAG,GAAG,o1DAAZ;;;;;;;;;;ICqBaC,oBAAb;AAAA;AAAA,4BAAA;;;gCAIcC,OAA+B;;;;;8FACnCA;;UAORC,sBAAsB,UAACC,YAAD,EAAwC;UACpDC,aADoD,GAClCC,MAAKJ,KAAL,CAAlBG;;UACJA,eAAe;YACXE,KAAK,GAAGD,MAAKE,mBAAL,CAAyBF,MAAKG,KAAL,CAAWC,cAApC;;AACdL,QAAAA,aAAa,CAACC,MAAKK,YAAL,CAAkBJ,KAAlB,CAAD,EAA2BH,YAA3B,CAAb;;;YAEGQ,SAAS;AAAEC,QAAAA,OAAO,EAAE;AAAX;AANhB;;UANOJ,QAAQ;AACXI,MAAAA,OAAO,EAAE,KADE;AAEXH,MAAAA,cAAc,EAAE;AAFL;;;;;;qCAeD;;;UACJA,cADI,GACe,KAAKD,KAAL,CAAnBC;aAENI,KAAA,CAAAC,aAAA,CAACC,iBAAD,EAAkBC,MAAA,CAAAC,MAAA,CAAA;AAChBC,QAAAA,IAAI,EAAC,KADW;AAEhBT,QAAAA,cAAc,EAAEA,cAFA;AAGhBU,QAAAA,sBAAsB,EAAE,+BAAA,CAACC,CAAD;iBACtBC,MAAI,CAACV,QAAL,CAAc;AAAEF,YAAAA,cAAc,EAAEW;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