IOPaint/lama_cleaner/app/build/static/js/main.6b34bb53.chunk.js

1 line
44 KiB
JavaScript
Raw Normal View History

2022-06-29 15:56:39 +02:00
(this["webpackJsonplama-cleaner"]=this["webpackJsonplama-cleaner"]||[]).push([[0],{54:function(e,t,n){},57:function(e,t,n){"use strict";n.r(t);var a=n(0),c=n.n(a),i=n(12),r=n.n(i),o=(n(54),n(11)),s=n(3),l=n(61),u=n(46),j=n(10),d=n.n(j),b=n(13);var h=n(2),f=n(14),p=n(22),O=n(1),v=function(e){var t=e.width,n=e.value,c=e.chevronDirection,i=e.options,r=e.autoFocusAfterClose,o=e.onChange,s=Object(a.useRef)(null);return Object(O.jsxs)(p.f,{value:n,onValueChange:o,onOpenChange:function(e){e||r||window.setTimeout((function(){var e;null===s||void 0===s||null===(e=s.current)||void 0===e||e.blur()}),100)},children:[Object(O.jsxs)(p.g,{className:"select-trigger",style:{width:t},ref:s,children:[Object(O.jsx)(p.h,{}),Object(O.jsx)(p.b,{children:"up"===c?Object(O.jsx)(f.d,{}):Object(O.jsx)(f.c,{})})]}),Object(O.jsx)(p.a,{className:"select-content",children:Object(O.jsx)(p.i,{className:"select-viewport",children:i.map((function(e){return Object(O.jsxs)(p.c,{value:e,className:"select-item",children:[Object(O.jsx)(p.e,{children:e}),Object(O.jsx)(p.d,{className:"select-item-indicator",children:Object(O.jsx)(f.b,{})})]},e)}))})})]})};v.defaultProps={chevronDirection:"down",autoFocusAfterClose:!0};var g=v,m=n(4),x=["value","onValue"],w=c.a.forwardRef((function(e,t){var n=e.value,a=e.onValue,c=Object(m.a)(e,x);return Object(O.jsx)("input",Object(h.a)(Object(h.a)({value:n,onInput:function(e){var t=e.target.value.replace(/\D/g,"");null===a||void 0===a||a(t)},className:"number-input"},c),{},{ref:t,type:"text"}))})),y=n(26),C=function(e){var t=e.content,n=e.children;return Object(O.jsx)(y.d,{children:Object(O.jsxs)(y.c,{children:[Object(O.jsx)(y.e,{className:"tooltip-trigger",children:n}),Object(O.jsxs)(y.b,{className:"tooltip-content",children:[t,Object(O.jsx)(y.a,{className:"tooltip-arrow"})]})]})})};var k=function(e){var t=e.title,n=e.desc,a=e.input,c=e.optionDesc,i=e.className;return Object(O.jsxs)("div",{className:"setting-block ".concat(i),children:[Object(O.jsxs)("div",{className:"setting-block-content",children:[Object(O.jsxs)("div",{className:"setting-block-content-title",children:[Object(O.jsx)("span",{children:t}),n&&Object(O.jsx)(C,{content:Object(O.jsx)("div",{style:{width:400},children:n}),children:Object(O.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Object(O.jsx)("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})})]}),a]}),c&&Object(O.jsx)("div",{className:"option-desc",children:c})]})};var S,M,L=function(e){var t=e.title,n=e.value,a=e.suffix,c=e.onValue;return Object(O.jsx)(k,{className:"sub-setting-block",title:t,input:Object(O.jsxs)("div",{style:{display:"flex",justifyContent:"center"