@para-ui/core 2.2.48 → 2.2.50

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.
@@ -11,4 +11,4 @@ object-assign
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,r={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,n)&&!c.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:s,props:r,_owner:a.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},7712:function(e,t,i){var n=i(3379),o=i(3603);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},5415:function(e,t,i){var n=i(3379),o=i(7843);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},8939:function(e,t,i){var n=i(3379),o=i(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),a=[];function l(e){for(var t=-1,i=0;i<a.length;i++)if(a[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:b(p,t),references:1}),n.push(s)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function f(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,h=0;function b(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=u(t)),n=p.bind(null,i,r,!1),o=p.bind(null,i,r,!0)}else i=u(t),n=f.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=l(i[n]);a[o].references--}for(var r=c(e,t),u=0;u<i.length;u++){var s=l(i[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),a=i(8543),l=(i(9271),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,c=void 0!==i&&i,u=e.placement,s=void 0===u?"bottom-start":u,d=e.tips,p=void 0===d?"":d,f=e.className,x=void 0===f?"":f,h=e.beyondText,b=void 0===h||h,g=e.interactive,v=void 0===g||g,m=e.style,y=(0,o.useRef)(),w=(0,o.useRef)(),j=(0,o.useState)(""),S=j[0],O=j[1];(0,o.useEffect)((function(){O(p)}),[p]);var C;return(0,n.jsx)("div",l({ref:y,className:(C="paraui-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(C+=" paraui-auto-tips-safari"),x&&(C+=" "+x),C),onMouseOver:function(){var e="",i=y.current,n=i.getBoundingClientRect(),o=w.current.getBoundingClientRect();y.current&&((0,a.isIE)()?n.width>o.width&&(e=p||(b?i.innerText:t)):o.width>n.width&&(e=p||(b?i.innerText:t))),O(e)},style:m},{children:(0,n.jsx)(r.default,l({arrow:c,title:S,placement:s,interactive:v,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",l({className:"auto-tips-content",ref:w},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),a=i.n(r),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,r=e.children,l=e.arrow,d=void 0===l||l,p=e.interactive,f=void 0===p||p,x=e.className,h=e.placement,b=void 0===h?"top-start":h,g=s(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:b},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(a(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,a=e.error,l=void 0!==a&&a,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),l&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r),l=function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var i=o().useContext(a()).componentsProps,n=i&&i[t];return l(l({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,a=e.label,l=e.labelSign,c=e.required,u=void 0!==c&&c,s=e.tooltip,d=e.tooltipType,p=void 0===d?"icon":d,f=e.placement,x=e.arrow,h=e.tooltipIcon,b=function(){var e="paraui-label";return p&&(e+=" paraui-label-"+p),s&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,r({title:s,placement:f,arrow:x},{children:h}))]})),"line"===p&&(0,n.jsx)(o.default,r({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),a=i.n(r),l=(i(3492),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(a(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7853:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7320),a=i(8767),l=i(4254),c=i(1632),u=i.n(c),s=i(4104),d=i.n(s),p=(i(5415),function(){return p=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)}),f=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,i=e.style,c=e.size,s=void 0===c?"large":c,x=e.placeholderKey,h=void 0===x?"":x,b=e.placeholderValue,g=void 0===b?"":b,v=e.label,m=void 0===v?"":v,y=e.labelTooltip,w=e.labelSign,j=e.disabled,S=void 0!==j&&j,O=e.required,C=void 0!==O&&O,N=e.error,k=void 0!==N&&N,P=e.helperText,M=void 0===P?"":P,q=e.value,E=e.replaceFields,_=e.onChange,z=e.fetchSuggestionsKey,T=e.fetchSuggestionsValue,F=(0,o.useState)([]),H=F[0],L=F[1],I=(0,o.useState)({key:"label",value:"value"}),A=I[0],B=I[1];(0,o.useEffect)((function(){void 0!==e.defaultValue&&L(f([],e.defaultValue,!0))}),[]),(0,o.useEffect)((function(){void 0!==q&&L(f([],q,!0))}),[q]),(0,o.useEffect)((function(){if(E){var e=p(p({},A),E);B(e)}}),[E]);var R,D=function(t){return function(){S||(H.splice(t,1),void 0===e.value&&L(f([],H,!0)),_&&_(H))}},K=function(t,i){return function(n){H[i][t]=n.target.value,void 0===e.value&&L(f([],H,!0)),_&&_(H)}},U=function(e){return function(t,i){"key"===e?z&&z(t,i):T&&T(t,i)}},Y=function(t,i){return function(n){H[i][t]=n,"object"==typeof n&&null!==n&&(H[i][t]=n.value),void 0===e.value&&L(f([],H,!0)),_&&_(H)}};return(0,n.jsxs)("div",p({className:(R="paraui-multi-box multi-box",t&&(R+=" "+t),s&&(R+=" multi-box-"+s),k&&(R+=" multi-box-error"),S&&(R+=" multi-box-disabled"),R),style:i},{children:[function(){if(!m&&!w)return null;var e;return(0,n.jsx)(a.default,p({label:m,required:C,labelSign:w},y,{className:(e="multi-box-label",y&&y.className&&(e+=" "+y.className),e)}))}(),(0,n.jsx)("div",p({className:"multi-box-content"},{children:H.map((function(e,t){return(0,n.jsxs)("div",p({className:"multi-box-content-item"},{children:[(0,n.jsxs)("div",p({className:"multi-box-content-item-input"},{children:[(0,n.jsx)(r.default,{size:s,disabled:S,placeholder:h,value:e[A.key||""],onChange:K(A.key||"",t),fetchSuggestions:z?U("key"):void 0,onSelect:Y(A.key||"",t)}),(0,n.jsx)("span",{children:":"}),(0,n.jsx)(r.default,{size:s,disabled:S,placeholder:g,value:e[A.value||""],onChange:K(A.value||"",t),fetchSuggestions:T?U("value"):void 0,onSelect:Y(A.value||"",t)})]})),(0,n.jsx)("span",p({className:"single-box-content-item-svg"},{children:(0,n.jsx)(d(),{onClick:D(t)})}))]}),t)}))})),(0,n.jsx)("div",p({className:"multi-box-add",onClick:function(){S||(H.push({}),void 0===e.value&&L(f([],H,!0)),_&&_(H))}},{children:(0,n.jsx)(u(),{})})),(0,n.jsx)(l.default,{className:"multi-box-error-text",error:k,helperText:M})]}))}},7083:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=(i(8939),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)}),a=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.className,l=e.children,c=e.classes,u=e.style,s=a(e,["className","children","classes","style"]);return(0,n.jsx)(o.Popover,r({style:r({zIndex:1300},u),className:(t="paraui-popover",i&&(t+=" "+i),t),classes:{paper:c?"paraui-popover-paper ".concat(c):"paraui-popover-paper"}},s,{children:l}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),a=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),h=i(7371),b=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}),m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},y=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,g.Z)(e,"TextField"),i=t.className,l=t.style,u=t.size,d=void 0===u?"large":u,w=t.labelMode,j=void 0===w?"outside":w,S=t.placeholder,O=void 0===S?"":S,C=t.label,N=void 0===C?"":C,k=t.labelTooltip,P=t.disabled,M=void 0!==P&&P,q=t.multiline,E=void 0!==q&&q,_=t.required,z=void 0!==_&&_,T=t.labelSign,F=t.rows,H=void 0===F?2:F,L=t.error,I=void 0!==L&&L,A=t.helperText,B=void 0===A?"":A,R=t.addonBefore,D=void 0===R?"":R,K=t.addonAfter,U=void 0===K?"":K,Y=(t.defaultValue,t.value),V=t.autoFocus,J=void 0!==V&&V,W=t.type,Q=void 0===W?"text":W,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,re=t.renderSelectItem,ae=t.showSelectName,le=void 0===ae?"value":ae,ce=t.resize,ue=void 0===ce||ce,se=t.searchEmpty,de=t.onBlur,pe=t.onFocus,fe=t.onChange,xe=t.onKeydown,he=t.onKeyUp,be=t.onEnter,ge=t.onClickAddonBefore,ve=t.onClickAddonAfter,me=t.onSelect,ye=t.onClear,we=m(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),je=(0,o.useState)("text-field-select-content-"+(0,a.UUID)())[0],Se=(0,o.useState)(!0),Oe=Se[0],Ce=Se[1],Ne=(0,o.useState)(""),ke=Ne[0],Pe=Ne[1],Me=(0,o.useState)(!1),qe=Me[0],Ee=Me[1],_e=(0,o.useState)("text"),ze=_e[0],Te=_e[1],Fe=(0,o.useState)(!1),He=Fe[0],Le=Fe[1],Ie=(0,o.useState)(!1),Ae=Ie[0],Be=Ie[1],Re=(0,o.useState)([]),De=Re[0],Ke=Re[1],Ue=(0,o.useRef)(null),Ye=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==ze&&Te(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&Pe(Y)}),[Y]),(0,o.useEffect)((function(){Ce(""===ke||void 0===ke)}),[ke]),(0,o.useEffect)((function(){ne&&Le(qe)}),[qe,ne]),(0,o.useEffect)((function(){return He?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[He]),(0,o.useEffect)((function(){if(!qe&&ke){var t=Je(ke);if(t!==ke){var i={};i.target=Ue.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[ke,qe]);var Ve,Je=function(t){var i=t;return y(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},We=function(){M||(Ce(!1),(Ue&&Ue.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+je),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ue&&Ue.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Ce(!0),de&&de(e)},Xe=function(e){ne&&(Be(!0),ne(e,(function(e){Ke(e||[]),Be(!1)})))},et=function(e){Ee(!0),pe&&pe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Ce(!1),void 0===e.value&&Pe(i),fe&&fe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&be&&be(e),xe&&xe(e)},nt=function(e){he&&he(e)},ot=function(e){"password"===Q&&("text"===ze&&Te("password"),"password"===ze&&Te("text")),G&&G(e)},rt=function(){return void 0===e.value?ke:Y},at=function(){Le(!1)},lt=function(e){return function(t){me&&me(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:y(ie)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(ke?ke.toString().length:0)+"/"+ie}))})}),[ie,ke]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===ze?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",v({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,ze,G]),st=function(){var t=Ue.current;t.value="",void 0===e.value&&Pe(""),fe&&fe({target:t}),Xe(""),ye&&ye()},dt=function(){if(rt()&&!M&&te)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:st},{children:(0,n.jsx)(p(),{})}))},pt=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Ye},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",v({ref:Ue,rows:H,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)):(0,n.jsx)("input",v({ref:Ue,type:ze,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)),Oe&&!qe&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?O:(0,n.jsxs)(n.Fragment,{children:[N||O,z&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),T&&(0,n.jsx)("span",{children:T})]})}))]})),dt(),ct,ut]}))}),[Oe,qe,J,ze,ke,ct,ut,j,O,N,M,E,H,we,fe,ne,G,te,ye]),ft=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[le]:e};return(0,n.jsxs)("div",v({className:(e="text-field-select-content",Ae&&(e+=" text-field-select-content-loading"),je&&(e+=" "+je),e),style:{width:(Ye&&Ye.current?Ye.current.offsetWidth:0)+"px"}},{children:[De&&De.map((function(e,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:lt(e),"data-val":JSON.stringify(e)},{children:re?re(e):(0,n.jsx)(f.default,{children:t(e)})}),i)})),0===De.length&&se,Ae&&(0,n.jsx)(x.default,{})]}))}),[Ye,He,De,re,le,me,Ae,je,se]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(h.default,v({open:He,title:ft,onClose:at,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",d&&(e+=" paraui-text-field-select-"+d),oe&&(e+=" "+oe),De.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:pt}));var e}),[Oe,qe,J,ze,ke,ct,ut,j,O,N,M,E,H,we,fe,ne,me,Ye,He,oe,d,G,De,te,ye,se]),ht=(0,o.useMemo)((function(){var e,t=Boolean(z||T||N);if("outside"===j&&t){return(0,n.jsx)(r.default,v({label:N,required:z,labelSign:T},k,{className:(e="text-field-label",k&&k.className&&(e+=" "+k.className),e)}))}return null}),[j,N,T,z,k]);return(0,n.jsxs)("div",v({className:(Ve="paraui-text-field",Ve+=" text-field",d&&!E&&(Ve+=" text-field-"+d),i&&(Ve+=" "+i),I&&(Ve+=" text-field-error"),qe&&(Ve+=" text-field-focus"),M&&(Ve+=" text-field-disabled"),E&&(Ve+=" text-field-multiline"),y(e.limitLength)&&(Ve+=" text-field-limit-length"),y(e.limitLength)&&ke&&ke.toString().length>Number(e.limitLength)&&(Ve+=" text-field-limit"),ue&&(Ve+=" text-field-resize"),rt()&&(Ve+=" text-field-value"),te&&(Ve+=" text-field-allow-clear"),Ve),style:l},{children:[ht,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(e){ge&&ge(e)}},{children:D})),ne?xt:pt,U&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ve&&ve(e)}},{children:U}))]})),(0,n.jsx)(b.default,{className:"text-field-error-text",error:I,helperText:B})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),a=i.n(r),l=(i(2310),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,r=void 0===i?"top-start":i,u=e.className,s=e.arrow,d=void 0===s||s,p=e.PopperProps,f=e.boundariesElement,x=void 0===f?"scrollParent":f,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=l(l({},e.classes),{popper:a()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},h,{enterTouchDelay:0,arrow:d,placement:r,classes:b,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=u},2426:function(e){"use strict";e.exports=p},6788:function(e){"use strict";e.exports=l},4104:function(e){"use strict";e.exports=d},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},1632:function(e){"use strict";e.exports=s},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=a},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},x={};function h(e){var t=x[e];if(void 0!==t)return t.exports;var i=x[e]={id:e,exports:{}};return f[e](i,i.exports,h),i.exports}h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nc=void 0;var b={};return function(){"use strict";h.r(b),h.d(b,{InputLang:function(){return s}});var e=h(5893),t=h(8156),i=h(7320),n=h(7853),o=h(7083),r=h(2426),a=h.n(r),l=h(8543),c=(h(7712),function(){return c=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)}),u=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=function(r){var s=r.className,d=void 0===s?"":s,p=r.style,f=r.label,x=void 0===f?"":f,h=r.labelTooltip,b=r.size,g=void 0===b?"large":b,v=r.placeholder,m=void 0===v?"":v,y=r.placeholderKey,w=void 0===y?"":y,j=r.placeholderValue,S=void 0===j?"":j,O=r.error,C=void 0!==O&&O,N=r.helperText,k=void 0===N?"":N,P=r.required,M=void 0!==P&&P,q=r.popoverClassName,E=r.value,_=r.onChange,z=r.langList,T=void 0===z?["zh","en"]:z,F=r.disabled,H=void 0!==F&&F,L=(0,t.useState)(!1),I=L[0],A=L[1],B=(0,t.useState)(null),R=B[0],D=B[1],K=(0,t.useState)("input-lang-"+(0,l.UUID)())[0],U=(0,t.useState)((0,l.GetLanguage)()||"zh")[0],Y=(0,t.useState)({}),V=Y[0],J=Y[1],W=(0,t.useState)([]),Q=W[0],G=W[1];(0,t.useEffect)((function(){void 0!==r.defaultValue&&$(r.defaultValue)}),[]),(0,t.useEffect)((function(){void 0!==E&&$(E)}),[E]);var Z,$=function(e){var t=c({},e);void 0===t[U]&&(t[U]="");for(var i=Object.keys(t),n=[],o=0,r=i.length;o<r;o++){var a=i[o],l=t[a];a!==U&&n.push({label:a,value:l})}G(n),J(t)},X=function(e){G(u([],e,!0))},ee=function(e,t){for(var i=[],n=(0,l.ArrayToObject)("label",Q),o=0,r=T.length;o<r;o++){var a=T[o];n[a]||a===U||i.push({label:a,value:a})}t(i)},te=function(){D(null),A(!1);var e={};e[U]=V[U];for(var t=0,i=Q.length;t<i;t++){var n=Q[t];n.label&&(e[n.label]=n.value||"")}void 0===r.value&&J(c({},e)),_&&_(c({},e))},ie=(0,t.useMemo)((function(){return(0,e.jsx)("div",{children:U})}),[U]),ne=(0,t.useMemo)((function(){return(0,e.jsx)("div",c({className:"lang-list-icon"},{children:(0,e.jsx)(a(),{})}))}),[]),oe=(0,t.useMemo)((function(){return(0,e.jsx)(o.default,c({open:I,anchorEl:R,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:(t="paraui-input-lang-popover",q&&(t+=" "+q),t)},{children:(0,e.jsx)("div",c({className:"input-lang-list"},{children:(0,e.jsx)(n.default,{size:g,disabled:H,value:Q,onChange:X,fetchSuggestionsKey:ee,placeholderKey:w,placeholderValue:S})}))}));var t}),[I,q,Q,w,S,U,T,g,H]);return(0,e.jsxs)("div",c({className:(Z="paraui-input-lang input-lang",Z+=" "+K,g&&(Z+=" input-lang-"+g),d&&(Z+=" "+d),Z),style:p},{children:[(0,e.jsx)(i.default,{size:g,error:C,disabled:H,required:M,helperText:k,label:x,labelTooltip:h,placeholder:m,value:V[U],addonAfter:ne,addonBefore:ie,onClickAddonAfter:function(){var e=document.querySelector("."+K+" .text-field-content-after");D(e),A(!0)},onChange:function(e){V[U]=e.target.value;var t=c({},V);void 0===r.value&&J(t),_&&_(t)}}),oe]}))};b.default=s}(),b}()}));
14
+ */i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,r={},u=null,s=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(s=t.ref),t)l.call(t,n)&&!c.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:s,props:r,_owner:a.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},7712:function(e,t,i){var n=i(3379),o=i(3603);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},5415:function(e,t,i){var n=i(3379),o=i(7843);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},8939:function(e,t,i){var n=i(3379),o=i(5845);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),a=[];function l(e){for(var t=-1,i=0;i<a.length;i++)if(a[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=i[c]||0,s="".concat(c," ").concat(u);i[c]=u+1;var d=l(s),p={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:s,updater:b(p,t),references:1}),n.push(s)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var s,d=(s=[],function(e,t){return s[e]=t,s.filter(Boolean).join("\n")});function p(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=d(t,o);else{var r=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(r,a[t]):e.appendChild(r)}}function f(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,h=0;function b(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=u(t)),n=p.bind(null,i,r,!1),o=p.bind(null,i,r,!0)}else i=u(t),n=f.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=l(i[n]);a[o].references--}for(var r=c(e,t),u=0;u<i.length;u++){var s=l(i[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),a=i(8543),l=(i(9271),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,c=void 0!==i&&i,u=e.placement,s=void 0===u?"bottom-start":u,d=e.tips,p=void 0===d?"":d,f=e.className,x=void 0===f?"":f,h=e.beyondText,b=void 0===h||h,g=e.interactive,v=void 0===g||g,m=e.style,y=(0,o.useRef)(),w=(0,o.useRef)(),j=(0,o.useState)(""),S=j[0],O=j[1];(0,o.useEffect)((function(){O(p)}),[p]);var C;return(0,n.jsx)("div",l({ref:y,className:(C="paraui-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(C+=" paraui-auto-tips-safari"),x&&(C+=" "+x),C),onMouseOver:function(){var e="",i=y.current,n=i.getBoundingClientRect(),o=w.current.getBoundingClientRect();y.current&&((0,a.isIE)()?n.width>o.width&&(e=p||(b?i.innerText:t)):o.width>n.width&&(e=p||(b?i.innerText:t))),O(e)},style:m},{children:(0,n.jsx)(r.default,l({arrow:c,title:S,placement:s,interactive:v,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",l({className:"auto-tips-content",ref:w},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),a=i.n(r),l=i(5744),c=i.n(l),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),s=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,r=e.children,l=e.arrow,d=void 0===l||l,p=e.interactive,f=void 0===p||p,x=e.className,h=e.placement,b=void 0===h?"top-start":h,g=s(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:d,interactive:f,placement:b},g,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(a(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,a=e.error,l=void 0!==a&&a,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),l&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),a=i.n(r),l=function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function c(e,t){var i=o().useContext(a()).componentsProps,n=i&&i[t];return l(l({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,a=e.label,l=e.labelSign,c=e.required,u=void 0!==c&&c,s=e.tooltip,d=e.tooltipType,p=void 0===d?"icon":d,f=e.placement,x=e.arrow,h=e.tooltipIcon,b=function(){var e="paraui-label";return p&&(e+=" paraui-label-"+p),s&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===p&&(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l}),s&&(0,n.jsx)(o.default,r({title:s,placement:f,arrow:x},{children:h}))]})),"line"===p&&(0,n.jsx)(o.default,r({title:s||"",placement:f,arrow:x},{children:(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:a}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),l&&(0,n.jsx)("span",{children:l})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),a=i.n(r),l=(i(3492),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var s;return(0,n.jsxs)("div",l({className:(s="paraui-loading",t&&(s+=" "+t),s),style:i,ref:u},{children:[(0,n.jsx)("div",l({className:"paraui-loading-box"},{children:(0,n.jsx)(a(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7853:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7320),a=i(8767),l=i(4254),c=i(1632),u=i.n(c),s=i(4104),d=i.n(s),p=(i(5415),function(){return p=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},p.apply(this,arguments)}),f=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};t.default=function(e){var t=e.className,i=e.style,c=e.size,s=void 0===c?"large":c,x=e.placeholderKey,h=void 0===x?"":x,b=e.placeholderValue,g=void 0===b?"":b,v=e.label,m=void 0===v?"":v,y=e.labelTooltip,w=e.labelSign,j=e.disabled,S=void 0!==j&&j,O=e.required,C=void 0!==O&&O,N=e.error,k=void 0!==N&&N,P=e.helperText,M=void 0===P?"":P,q=e.value,E=e.replaceFields,_=e.onChange,z=e.fetchSuggestionsKey,T=e.fetchSuggestionsValue,F=(0,o.useState)([]),H=F[0],L=F[1],I=(0,o.useState)({key:"label",value:"value"}),A=I[0],B=I[1];(0,o.useEffect)((function(){void 0!==e.defaultValue&&L(f([],e.defaultValue,!0))}),[]),(0,o.useEffect)((function(){void 0!==q&&L(f([],q,!0))}),[q]),(0,o.useEffect)((function(){if(E){var e=p(p({},A),E);B(e)}}),[E]);var R,D=function(t){return function(){S||(H.splice(t,1),void 0===e.value&&L(f([],H,!0)),_&&_(H))}},K=function(t,i){return function(n){H[i][t]=n.target.value,void 0===e.value&&L(f([],H,!0)),_&&_(H)}},U=function(e){return function(t,i){"key"===e?z&&z(t,i):T&&T(t,i)}},V=function(t,i){return function(n){H[i][t]=n,"object"==typeof n&&null!==n&&(H[i][t]=n.value),void 0===e.value&&L(f([],H,!0)),_&&_(H)}};return(0,n.jsxs)("div",p({className:(R="paraui-multi-box multi-box",t&&(R+=" "+t),s&&(R+=" multi-box-"+s),k&&(R+=" multi-box-error"),S&&(R+=" multi-box-disabled"),R),style:i},{children:[function(){if(!m&&!w)return null;var e;return(0,n.jsx)(a.default,p({label:m,required:C,labelSign:w},y,{className:(e="multi-box-label",y&&y.className&&(e+=" "+y.className),e)}))}(),(0,n.jsx)("div",p({className:"multi-box-content"},{children:H.map((function(e,t){return(0,n.jsxs)("div",p({className:"multi-box-content-item"},{children:[(0,n.jsxs)("div",p({className:"multi-box-content-item-input"},{children:[(0,n.jsx)(r.default,{size:s,disabled:S,placeholder:h,value:e[A.key||""],onChange:K(A.key||"",t),fetchSuggestions:z?U("key"):void 0,onSelect:V(A.key||"",t)}),(0,n.jsx)("span",{children:":"}),(0,n.jsx)(r.default,{size:s,disabled:S,placeholder:g,value:e[A.value||""],onChange:K(A.value||"",t),fetchSuggestions:T?U("value"):void 0,onSelect:V(A.value||"",t)})]})),(0,n.jsx)("span",p({className:"single-box-content-item-svg"},{children:(0,n.jsx)(d(),{onClick:D(t)})}))]}),t)}))})),(0,n.jsx)("div",p({className:"multi-box-add",onClick:function(){S||(H.push({}),void 0===e.value&&L(f([],H,!0)),_&&_(H))}},{children:(0,n.jsx)(u(),{})})),(0,n.jsx)(l.default,{className:"multi-box-error-text",error:k,helperText:M})]}))}},7083:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=(i(8939),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)}),a=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.className,l=e.children,c=e.classes,u=e.style,s=a(e,["className","children","classes","style"]);return(0,n.jsx)(o.Popover,r({style:r({zIndex:1300},u),className:(t="paraui-popover",i&&(t+=" "+i),t),classes:{paper:c?"paraui-popover-paper ".concat(c):"paraui-popover-paper"}},s,{children:l}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),a=i(8543),l=i(5428),c=i.n(l),u=i(9979),s=i.n(u),d=i(6788),p=i.n(d),f=i(7839),x=i(7502),h=i(7371),b=i(4254),g=i(6010),v=(i(6202),function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},v.apply(this,arguments)}),m=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},y=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,g.Z)(e,"TextField"),i=t.className,l=t.style,u=t.size,d=void 0===u?"large":u,w=t.labelMode,j=void 0===w?"outside":w,S=t.placeholder,O=void 0===S?"":S,C=t.label,N=void 0===C?"":C,k=t.labelTooltip,P=t.disabled,M=void 0!==P&&P,q=t.multiline,E=void 0!==q&&q,_=t.required,z=void 0!==_&&_,T=t.labelSign,F=t.rows,H=void 0===F?2:F,L=t.error,I=void 0!==L&&L,A=t.helperText,B=void 0===A?"":A,R=t.addonBefore,D=void 0===R?"":R,K=t.addonAfter,U=void 0===K?"":K,V=(t.defaultValue,t.value),Y=t.autoFocus,J=void 0!==Y&&Y,W=t.type,Q=void 0===W?"text":W,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,re=t.renderSelectItem,ae=t.showSelectName,le=void 0===ae?"value":ae,ce=t.resize,ue=void 0===ce||ce,se=t.searchEmpty,de=t.onBlur,pe=t.onFocus,fe=t.onChange,xe=t.onKeydown,he=t.onKeyUp,be=t.onEnter,ge=t.onClickAddonBefore,ve=t.onClickAddonAfter,me=t.onSelect,ye=t.onClear,we=m(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),je=(0,o.useState)("text-field-select-content-"+(0,a.UUID)())[0],Se=(0,o.useState)(!0),Oe=Se[0],Ce=Se[1],Ne=(0,o.useState)(""),ke=Ne[0],Pe=Ne[1],Me=(0,o.useState)(!1),qe=Me[0],Ee=Me[1],_e=(0,o.useState)("text"),ze=_e[0],Te=_e[1],Fe=(0,o.useState)(!1),He=Fe[0],Le=Fe[1],Ie=(0,o.useState)(!1),Ae=Ie[0],Be=Ie[1],Re=(0,o.useState)([]),De=Re[0],Ke=Re[1],Ue=(0,o.useRef)(null),Ve=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(null===e.defaultValue?"":e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==ze&&Te(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==V&&Pe(null===V?"":V)}),[V]),(0,o.useEffect)((function(){Ce(""===ke||void 0===ke)}),[ke]),(0,o.useEffect)((function(){ne&&Le(qe)}),[qe,ne]),(0,o.useEffect)((function(){return He?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[He]),(0,o.useEffect)((function(){if(!qe&&ke){var t=Je(ke);if(t!==ke){var i={};i.target=Ue.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[ke,qe]);var Ye,Je=function(t){var i=t;return y(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},We=function(){M||(Ce(!1),(Ue&&Ue.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+je),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;lt(JSON.parse(o))(e),(Ue&&Ue.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Ce(!0),de&&de(e)},Xe=function(e){ne&&(Be(!0),ne(e,(function(e){Ke(e||[]),Be(!1)})))},et=function(e){Ee(!0),pe&&pe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Ce(!1),void 0===e.value&&Pe(i),fe&&fe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&be&&be(e),xe&&xe(e)},nt=function(e){he&&he(e)},ot=function(e){"password"===Q&&("text"===ze&&Te("password"),"password"===ze&&Te("text")),G&&G(e)},rt=function(){return void 0===e.value?ke:V},at=function(){Le(!1)},lt=function(e){return function(t){me&&me(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:y(ie)&&(0,n.jsx)("span",v({className:"length-limit"},{children:(ke?ke.toString().length:0)+"/"+ie}))})}),[ie,ke]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===ze?(0,n.jsx)(c(),{}):(0,n.jsx)(s(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",v({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,ze,G]),st=function(){var t=Ue.current;t.value="",void 0===e.value&&Pe(""),fe&&fe({target:t}),Xe(""),ye&&ye()},dt=function(){if(rt()&&!M&&te)return(0,n.jsx)("span",v({className:"clean-up-icon",onClick:st},{children:(0,n.jsx)(p(),{})}))},pt=(0,o.useMemo)((function(){return(0,n.jsxs)("div",v({className:"text-field-content-within",ref:Ve},{children:[(0,n.jsxs)("div",v({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",v({ref:Ue,rows:H,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)):(0,n.jsx)("input",v({ref:Ue,type:ze,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)),Oe&&!qe&&(0,n.jsx)("span",v({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?O:(0,n.jsxs)(n.Fragment,{children:[N||O,z&&(0,n.jsx)("span",v({className:"text-field-required"},{children:"*"})),T&&(0,n.jsx)("span",{children:T})]})}))]})),dt(),ct,ut]}))}),[Oe,qe,J,ze,ke,ct,ut,j,O,N,M,E,H,we,fe,ne,G,te,ye]),ft=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[le]:e};return(0,n.jsxs)("div",v({className:(e="text-field-select-content",Ae&&(e+=" text-field-select-content-loading"),je&&(e+=" "+je),e),style:{width:(Ve&&Ve.current?Ve.current.offsetWidth:0)+"px"}},{children:[De&&De.map((function(e,i){return(0,n.jsx)("div",v({className:"text-field-select-content-item",onMouseDown:lt(e),"data-val":JSON.stringify(e)},{children:re?re(e):(0,n.jsx)(f.default,{children:t(e)})}),i)})),0===De.length&&se,Ae&&(0,n.jsx)(x.default,{})]}))}),[Ve,He,De,re,le,me,Ae,je,se]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(h.default,v({open:He,title:ft,onClose:at,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",d&&(e+=" paraui-text-field-select-"+d),oe&&(e+=" "+oe),De.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:pt}));var e}),[Oe,qe,J,ze,ke,ct,ut,j,O,N,M,E,H,we,fe,ne,me,Ve,He,oe,d,G,De,te,ye,se]),ht=(0,o.useMemo)((function(){var e,t=Boolean(z||T||N);if("outside"===j&&t){return(0,n.jsx)(r.default,v({label:N,required:z,labelSign:T},k,{className:(e="text-field-label",k&&k.className&&(e+=" "+k.className),e)}))}return null}),[j,N,T,z,k]);return(0,n.jsxs)("div",v({className:(Ye="paraui-text-field",Ye+=" text-field",d&&!E&&(Ye+=" text-field-"+d),i&&(Ye+=" "+i),I&&(Ye+=" text-field-error"),qe&&(Ye+=" text-field-focus"),M&&(Ye+=" text-field-disabled"),E&&(Ye+=" text-field-multiline"),y(e.limitLength)&&(Ye+=" text-field-limit-length"),y(e.limitLength)&&ke&&ke.toString().length>Number(e.limitLength)&&(Ye+=" text-field-limit"),ue&&(Ye+=" text-field-resize"),rt()&&(Ye+=" text-field-value"),te&&(Ye+=" text-field-allow-clear"),Ye),style:l},{children:[ht,(0,n.jsxs)("div",v({className:"text-field-content"},{children:[D&&(0,n.jsx)("div",v({className:"text-field-content-before",onClick:function(e){ge&&ge(e)}},{children:D})),ne?xt:pt,U&&(0,n.jsx)("div",v({className:"text-field-content-after",onClick:function(e){ve&&ve(e)}},{children:U}))]})),(0,n.jsx)(b.default,{className:"text-field-error-text",error:I,helperText:B})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),a=i.n(r),l=(i(2310),function(){return l=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,r=void 0===i?"top-start":i,u=e.className,s=e.arrow,d=void 0===s||s,p=e.PopperProps,f=e.boundariesElement,x=void 0===f?"scrollParent":f,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=l(l({},e.classes),{popper:a()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,l({},h,{enterTouchDelay:0,arrow:d,placement:r,classes:b,PopperProps:l(l({},p),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=u},2426:function(e){"use strict";e.exports=p},6788:function(e){"use strict";e.exports=l},4104:function(e){"use strict";e.exports=d},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},1632:function(e){"use strict";e.exports=s},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=a},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},x={};function h(e){var t=x[e];if(void 0!==t)return t.exports;var i=x[e]={id:e,exports:{}};return f[e](i,i.exports,h),i.exports}h.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return h.d(t,{a:t}),t},h.d=function(e,t){for(var i in t)h.o(t,i)&&!h.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},h.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},h.nc=void 0;var b={};return function(){"use strict";h.r(b),h.d(b,{InputLang:function(){return s}});var e=h(5893),t=h(8156),i=h(7320),n=h(7853),o=h(7083),r=h(2426),a=h.n(r),l=h(8543),c=(h(7712),function(){return c=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},c.apply(this,arguments)}),u=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=function(r){var s=r.className,d=void 0===s?"":s,p=r.style,f=r.label,x=void 0===f?"":f,h=r.labelTooltip,b=r.size,g=void 0===b?"large":b,v=r.placeholder,m=void 0===v?"":v,y=r.placeholderKey,w=void 0===y?"":y,j=r.placeholderValue,S=void 0===j?"":j,O=r.error,C=void 0!==O&&O,N=r.helperText,k=void 0===N?"":N,P=r.required,M=void 0!==P&&P,q=r.popoverClassName,E=r.value,_=r.onChange,z=r.langList,T=void 0===z?["zh","en"]:z,F=r.disabled,H=void 0!==F&&F,L=(0,t.useState)(!1),I=L[0],A=L[1],B=(0,t.useState)(null),R=B[0],D=B[1],K=(0,t.useState)("input-lang-"+(0,l.UUID)())[0],U=(0,t.useState)((0,l.GetLanguage)()||"zh")[0],V=(0,t.useState)({}),Y=V[0],J=V[1],W=(0,t.useState)([]),Q=W[0],G=W[1];(0,t.useEffect)((function(){void 0!==r.defaultValue&&$(r.defaultValue)}),[]),(0,t.useEffect)((function(){void 0!==E&&$(E)}),[E]);var Z,$=function(e){var t=c({},e);void 0===t[U]&&(t[U]="");for(var i=Object.keys(t),n=[],o=0,r=i.length;o<r;o++){var a=i[o],l=t[a];a!==U&&n.push({label:a,value:l})}G(n),J(t)},X=function(e){G(u([],e,!0))},ee=function(e,t){for(var i=[],n=(0,l.ArrayToObject)("label",Q),o=0,r=T.length;o<r;o++){var a=T[o];n[a]||a===U||i.push({label:a,value:a})}t(i)},te=function(){D(null),A(!1);var e={};e[U]=Y[U];for(var t=0,i=Q.length;t<i;t++){var n=Q[t];n.label&&(e[n.label]=n.value||"")}void 0===r.value&&J(c({},e)),_&&_(c({},e))},ie=(0,t.useMemo)((function(){return(0,e.jsx)("div",{children:U})}),[U]),ne=(0,t.useMemo)((function(){return(0,e.jsx)("div",c({className:"lang-list-icon"},{children:(0,e.jsx)(a(),{})}))}),[]),oe=(0,t.useMemo)((function(){return(0,e.jsx)(o.default,c({open:I,anchorEl:R,onClose:te,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},className:(t="paraui-input-lang-popover",q&&(t+=" "+q),t)},{children:(0,e.jsx)("div",c({className:"input-lang-list"},{children:(0,e.jsx)(n.default,{size:g,disabled:H,value:Q,onChange:X,fetchSuggestionsKey:ee,placeholderKey:w,placeholderValue:S})}))}));var t}),[I,q,Q,w,S,U,T,g,H]);return(0,e.jsxs)("div",c({className:(Z="paraui-input-lang input-lang",Z+=" "+K,g&&(Z+=" input-lang-"+g),d&&(Z+=" "+d),Z),style:p},{children:[(0,e.jsx)(i.default,{size:g,error:C,disabled:H,required:M,helperText:k,label:x,labelTooltip:h,placeholder:m,value:Y[U],addonAfter:ne,addonBefore:ie,onClickAddonAfter:function(){var e=document.querySelector("."+K+" .text-field-content-after");D(e),A(!0)},onChange:function(e){Y[U]=e.target.value;var t=c({},Y);void 0===r.value&&J(t),_&&_(t)}}),oe]}))};b.default=s}(),b}()}));
package/MultiBox/index.js CHANGED
@@ -11,4 +11,4 @@ object-assign
11
11
  *
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
- */i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,r={},u=null,d=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:d,props:r,_owner:l.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},5415:function(e,t,i){var n=i(3379),o=i(7843);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),l=[];function a(e){for(var t=-1,i=0;i<l.length;i++)if(l[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var s=a(d),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==s?(l[s].references++,l[s].updater(f)):l.push({identifier:d,updater:b(f,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var l=r(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var d,s=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function f(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=s(t,o);else{var r=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(r,l[t]):e.appendChild(r)}}function p(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,h=0;function b(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=u(t)),n=f.bind(null,i,r,!1),o=f.bind(null,i,r,!0)}else i=u(t),n=p.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);l[o].references--}for(var r=c(e,t),u=0;u<i.length;u++){var d=a(i[u]);0===l[d].references&&(l[d].updater(),l.splice(d,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),l=i(8543),a=(i(9271),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,c=void 0!==i&&i,u=e.placement,d=void 0===u?"bottom-start":u,s=e.tips,f=void 0===s?"":s,p=e.className,x=void 0===p?"":p,h=e.beyondText,b=void 0===h||h,m=e.interactive,g=void 0===m||m,v=e.style,y=(0,o.useRef)(),w=(0,o.useRef)(),j=(0,o.useState)(""),S=j[0],O=j[1];(0,o.useEffect)((function(){O(f)}),[f]);var C;return(0,n.jsx)("div",a({ref:y,className:(C="paraui-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(C+=" paraui-auto-tips-safari"),x&&(C+=" "+x),C),onMouseOver:function(){var e="",i=y.current,n=i.getBoundingClientRect(),o=w.current.getBoundingClientRect();y.current&&((0,l.isIE)()?n.width>o.width&&(e=f||(b?i.innerText:t)):o.width>n.width&&(e=f||(b?i.innerText:t))),O(e)},style:v},{children:(0,n.jsx)(r.default,a({arrow:c,title:S,placement:d,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content",ref:w},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),l=i.n(r),a=i(5744),c=i.n(a),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,r=e.children,a=e.arrow,s=void 0===a||a,f=e.interactive,p=void 0===f||f,x=e.className,h=e.placement,b=void 0===h?"top-start":h,m=d(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:s,interactive:p,placement:b},m,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(l(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,l=e.error,a=void 0!==l&&l,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),a&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),l=i.n(r),a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function c(e,t){var i=o().useContext(l()).componentsProps,n=i&&i[t];return a(a({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,l=e.label,a=e.labelSign,c=e.required,u=void 0!==c&&c,d=e.tooltip,s=e.tooltipType,f=void 0===s?"icon":s,p=e.placement,x=e.arrow,h=e.tooltipIcon,b=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),d&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===f&&(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a}),d&&(0,n.jsx)(o.default,r({title:d,placement:p,arrow:x},{children:h}))]})),"line"===f&&(0,n.jsx)(o.default,r({title:d||"",placement:p,arrow:x},{children:(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),l=i.n(r),a=(i(3492),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var d;return(0,n.jsxs)("div",a({className:(d="paraui-loading",t&&(d+=" "+t),d),style:i,ref:u},{children:[(0,n.jsx)("div",a({className:"paraui-loading-box"},{children:(0,n.jsx)(l(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),l=i(8543),a=i(5428),c=i.n(a),u=i(9979),d=i.n(u),s=i(6788),f=i.n(s),p=i(7839),x=i(7502),h=i(7371),b=i(4254),m=i(6010),g=(i(6202),function(){return g=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)}),v=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},y=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,m.Z)(e,"TextField"),i=t.className,a=t.style,u=t.size,s=void 0===u?"large":u,w=t.labelMode,j=void 0===w?"outside":w,S=t.placeholder,O=void 0===S?"":S,C=t.label,N=void 0===C?"":C,k=t.labelTooltip,P=t.disabled,M=void 0!==P&&P,q=t.multiline,E=void 0!==q&&q,_=t.required,F=void 0!==_&&_,T=t.labelSign,z=t.rows,L=void 0===z?2:z,H=t.error,I=void 0!==H&&H,B=t.helperText,R=void 0===B?"":B,D=t.addonBefore,A=void 0===D?"":D,K=t.addonAfter,U=void 0===K?"":K,Y=(t.defaultValue,t.value),J=t.autoFocus,V=void 0!==J&&J,W=t.type,Q=void 0===W?"text":W,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,re=t.renderSelectItem,le=t.showSelectName,ae=void 0===le?"value":le,ce=t.resize,ue=void 0===ce||ce,de=t.searchEmpty,se=t.onBlur,fe=t.onFocus,pe=t.onChange,xe=t.onKeydown,he=t.onKeyUp,be=t.onEnter,me=t.onClickAddonBefore,ge=t.onClickAddonAfter,ve=t.onSelect,ye=t.onClear,we=v(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),je=(0,o.useState)("text-field-select-content-"+(0,l.UUID)())[0],Se=(0,o.useState)(!0),Oe=Se[0],Ce=Se[1],Ne=(0,o.useState)(""),ke=Ne[0],Pe=Ne[1],Me=(0,o.useState)(!1),qe=Me[0],Ee=Me[1],_e=(0,o.useState)("text"),Fe=_e[0],Te=_e[1],ze=(0,o.useState)(!1),Le=ze[0],He=ze[1],Ie=(0,o.useState)(!1),Be=Ie[0],Re=Ie[1],De=(0,o.useState)([]),Ae=De[0],Ke=De[1],Ue=(0,o.useRef)(null),Ye=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==Fe&&Te(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&Pe(Y)}),[Y]),(0,o.useEffect)((function(){Ce(""===ke||void 0===ke)}),[ke]),(0,o.useEffect)((function(){ne&&He(qe)}),[qe,ne]),(0,o.useEffect)((function(){return Le?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[Le]),(0,o.useEffect)((function(){if(!qe&&ke){var t=Ve(ke);if(t!==ke){var i={};i.target=Ue.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[ke,qe]);var Je,Ve=function(t){var i=t;return y(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},We=function(){M||(Ce(!1),(Ue&&Ue.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+je),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;at(JSON.parse(o))(e),(Ue&&Ue.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Ce(!0),se&&se(e)},Xe=function(e){ne&&(Re(!0),ne(e,(function(e){Ke(e||[]),Re(!1)})))},et=function(e){Ee(!0),fe&&fe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Ce(!1),void 0===e.value&&Pe(i),pe&&pe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&be&&be(e),xe&&xe(e)},nt=function(e){he&&he(e)},ot=function(e){"password"===Q&&("text"===Fe&&Te("password"),"password"===Fe&&Te("text")),G&&G(e)},rt=function(){return void 0===e.value?ke:Y},lt=function(){He(!1)},at=function(e){return function(t){ve&&ve(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:y(ie)&&(0,n.jsx)("span",g({className:"length-limit"},{children:(ke?ke.toString().length:0)+"/"+ie}))})}),[ie,ke]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===Fe?(0,n.jsx)(c(),{}):(0,n.jsx)(d(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",g({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,Fe,G]),dt=function(){var t=Ue.current;t.value="",void 0===e.value&&Pe(""),pe&&pe({target:t}),Xe(""),ye&&ye()},st=function(){if(rt()&&!M&&te)return(0,n.jsx)("span",g({className:"clean-up-icon",onClick:dt},{children:(0,n.jsx)(f(),{})}))},ft=(0,o.useMemo)((function(){return(0,n.jsxs)("div",g({className:"text-field-content-within",ref:Ye},{children:[(0,n.jsxs)("div",g({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",g({ref:Ue,rows:L,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)):(0,n.jsx)("input",g({ref:Ue,type:Fe,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)),Oe&&!qe&&(0,n.jsx)("span",g({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?O:(0,n.jsxs)(n.Fragment,{children:[N||O,F&&(0,n.jsx)("span",g({className:"text-field-required"},{children:"*"})),T&&(0,n.jsx)("span",{children:T})]})}))]})),st(),ct,ut]}))}),[Oe,qe,V,Fe,ke,ct,ut,j,O,N,M,E,L,we,pe,ne,G,te,ye]),pt=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[ae]:e};return(0,n.jsxs)("div",g({className:(e="text-field-select-content",Be&&(e+=" text-field-select-content-loading"),je&&(e+=" "+je),e),style:{width:(Ye&&Ye.current?Ye.current.offsetWidth:0)+"px"}},{children:[Ae&&Ae.map((function(e,i){return(0,n.jsx)("div",g({className:"text-field-select-content-item",onMouseDown:at(e),"data-val":JSON.stringify(e)},{children:re?re(e):(0,n.jsx)(p.default,{children:t(e)})}),i)})),0===Ae.length&&de,Be&&(0,n.jsx)(x.default,{})]}))}),[Ye,Le,Ae,re,ae,ve,Be,je,de]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(h.default,g({open:Le,title:pt,onClose:lt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",s&&(e+=" paraui-text-field-select-"+s),oe&&(e+=" "+oe),Ae.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:ft}));var e}),[Oe,qe,V,Fe,ke,ct,ut,j,O,N,M,E,L,we,pe,ne,ve,Ye,Le,oe,s,G,Ae,te,ye,de]),ht=(0,o.useMemo)((function(){var e,t=Boolean(F||T||N);if("outside"===j&&t){return(0,n.jsx)(r.default,g({label:N,required:F,labelSign:T},k,{className:(e="text-field-label",k&&k.className&&(e+=" "+k.className),e)}))}return null}),[j,N,T,F,k]);return(0,n.jsxs)("div",g({className:(Je="paraui-text-field",Je+=" text-field",s&&!E&&(Je+=" text-field-"+s),i&&(Je+=" "+i),I&&(Je+=" text-field-error"),qe&&(Je+=" text-field-focus"),M&&(Je+=" text-field-disabled"),E&&(Je+=" text-field-multiline"),y(e.limitLength)&&(Je+=" text-field-limit-length"),y(e.limitLength)&&ke&&ke.toString().length>Number(e.limitLength)&&(Je+=" text-field-limit"),ue&&(Je+=" text-field-resize"),rt()&&(Je+=" text-field-value"),te&&(Je+=" text-field-allow-clear"),Je),style:a},{children:[ht,(0,n.jsxs)("div",g({className:"text-field-content"},{children:[A&&(0,n.jsx)("div",g({className:"text-field-content-before",onClick:function(e){me&&me(e)}},{children:A})),ne?xt:ft,U&&(0,n.jsx)("div",g({className:"text-field-content-after",onClick:function(e){ge&&ge(e)}},{children:U}))]})),(0,n.jsx)(b.default,{className:"text-field-error-text",error:I,helperText:R})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),l=i.n(r),a=(i(2310),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,r=void 0===i?"top-start":i,u=e.className,d=e.arrow,s=void 0===d||d,f=e.PopperProps,p=e.boundariesElement,x=void 0===p?"scrollParent":p,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=a(a({},e.classes),{popper:l()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},h,{enterTouchDelay:0,arrow:s,placement:r,classes:b,PopperProps:a(a({},f),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=u},6788:function(e){"use strict";e.exports=a},4104:function(e){"use strict";e.exports=s},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},1632:function(e){"use strict";e.exports=d},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=l},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},p={};function x(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={id:e,exports:{}};return f[e](i,i.exports,x),i.exports}x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var i in t)x.o(t,i)&&!x.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nc=void 0;var h={};return function(){"use strict";x.r(h),x.d(h,{MultiBox:function(){return s}});var e=x(5893),t=x(8156),i=x(7320),n=x(8767),o=x(4254),r=x(1632),l=x.n(r),a=x(4104),c=x.n(a),u=(x(5415),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),d=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=function(r){var a=r.className,s=r.style,f=r.size,p=void 0===f?"large":f,x=r.placeholderKey,h=void 0===x?"":x,b=r.placeholderValue,m=void 0===b?"":b,g=r.label,v=void 0===g?"":g,y=r.labelTooltip,w=r.labelSign,j=r.disabled,S=void 0!==j&&j,O=r.required,C=void 0!==O&&O,N=r.error,k=void 0!==N&&N,P=r.helperText,M=void 0===P?"":P,q=r.value,E=r.replaceFields,_=r.onChange,F=r.fetchSuggestionsKey,T=r.fetchSuggestionsValue,z=(0,t.useState)([]),L=z[0],H=z[1],I=(0,t.useState)({key:"label",value:"value"}),B=I[0],R=I[1];(0,t.useEffect)((function(){void 0!==r.defaultValue&&H(d([],r.defaultValue,!0))}),[]),(0,t.useEffect)((function(){void 0!==q&&H(d([],q,!0))}),[q]),(0,t.useEffect)((function(){if(E){var e=u(u({},B),E);R(e)}}),[E]);var D,A=function(e){return function(){S||(L.splice(e,1),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},K=function(e,t){return function(i){L[t][e]=i.target.value,void 0===r.value&&H(d([],L,!0)),_&&_(L)}},U=function(e){return function(t,i){"key"===e?F&&F(t,i):T&&T(t,i)}},Y=function(e,t){return function(i){L[t][e]=i,"object"==typeof i&&null!==i&&(L[t][e]=i.value),void 0===r.value&&H(d([],L,!0)),_&&_(L)}};return(0,e.jsxs)("div",u({className:(D="paraui-multi-box multi-box",a&&(D+=" "+a),p&&(D+=" multi-box-"+p),k&&(D+=" multi-box-error"),S&&(D+=" multi-box-disabled"),D),style:s},{children:[function(){if(!v&&!w)return null;var t;return(0,e.jsx)(n.default,u({label:v,required:C,labelSign:w},y,{className:(t="multi-box-label",y&&y.className&&(t+=" "+y.className),t)}))}(),(0,e.jsx)("div",u({className:"multi-box-content"},{children:L.map((function(t,n){return(0,e.jsxs)("div",u({className:"multi-box-content-item"},{children:[(0,e.jsxs)("div",u({className:"multi-box-content-item-input"},{children:[(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:h,value:t[B.key||""],onChange:K(B.key||"",n),fetchSuggestions:F?U("key"):void 0,onSelect:Y(B.key||"",n)}),(0,e.jsx)("span",{children:":"}),(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:m,value:t[B.value||""],onChange:K(B.value||"",n),fetchSuggestions:T?U("value"):void 0,onSelect:Y(B.value||"",n)})]})),(0,e.jsx)("span",u({className:"single-box-content-item-svg"},{children:(0,e.jsx)(c(),{onClick:A(n)})}))]}),n)}))})),(0,e.jsx)("div",u({className:"multi-box-add",onClick:function(){S||(L.push({}),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},{children:(0,e.jsx)(l(),{})})),(0,e.jsx)(o.default,{className:"multi-box-error-text",error:k,helperText:M})]}))};h.default=s}(),h}()}));
14
+ */i(7418);var n=i(8156),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var r=Symbol.for;o=r("react.element"),t.Fragment=r("react.fragment")}var l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,i){var n,r={},u=null,d=null;for(n in void 0!==i&&(u=""+i),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,n)&&!c.hasOwnProperty(n)&&(r[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===r[n]&&(r[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:d,props:r,_owner:l.current}}t.jsx=u,t.jsxs=u},5893:function(e,t,i){"use strict";e.exports=i(5251)},9271:function(e,t,i){var n=i(3379),o=i(2565);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2113:function(e,t,i){var n=i(3379),o=i(7381);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3936:function(e,t,i){var n=i(3379),o=i(9916);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},9663:function(e,t,i){var n=i(3379),o=i(4928);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3492:function(e,t,i){var n=i(3379),o=i(5714);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},5415:function(e,t,i){var n=i(3379),o=i(7843);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},6202:function(e,t,i){var n=i(3379),o=i(3637);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},2310:function(e,t,i){var n=i(3379),o=i(9929);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:("body","body"),singleton:!1};n(o,r);e.exports=o.locals||{}},3379:function(e,t,i){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},r=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),l=[];function a(e){for(var t=-1,i=0;i<l.length;i++)if(l[i].identifier===e){t=i;break}return t}function c(e,t){for(var i={},n=[],o=0;o<e.length;o++){var r=e[o],c=t.base?r[0]+t.base:r[0],u=i[c]||0,d="".concat(c," ").concat(u);i[c]=u+1;var s=a(d),f={css:r[1],media:r[2],sourceMap:r[3]};-1!==s?(l[s].references++,l[s].updater(f)):l.push({identifier:d,updater:b(f,t),references:1}),n.push(d)}return n}function u(e){var t=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var o=i.nc;o&&(n.nonce=o)}if(Object.keys(n).forEach((function(e){t.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(t);else{var l=r(e.insert||"head");if(!l)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");l.appendChild(t)}return t}var d,s=(d=[],function(e,t){return d[e]=t,d.filter(Boolean).join("\n")});function f(e,t,i,n){var o=i?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=s(t,o);else{var r=document.createTextNode(o),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(r,l[t]):e.appendChild(r)}}function p(e,t,i){var n=i.css,o=i.media,r=i.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var x=null,h=0;function b(e,t){var i,n,o;if(t.singleton){var r=h++;i=x||(x=u(t)),n=f.bind(null,i,r,!1),o=f.bind(null,i,r,!0)}else i=u(t),n=p.bind(null,i,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return n(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;n(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var i=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<i.length;n++){var o=a(i[n]);l[o].references--}for(var r=c(e,t),u=0;u<i.length;u++){var d=a(i[u]);0===l[d].references&&(l[d].updater(),l.splice(d,1))}i=r}}}},7839:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(7371),l=i(8543),a=(i(9271),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.children,i=e.arrow,c=void 0!==i&&i,u=e.placement,d=void 0===u?"bottom-start":u,s=e.tips,f=void 0===s?"":s,p=e.className,x=void 0===p?"":p,h=e.beyondText,b=void 0===h||h,m=e.interactive,g=void 0===m||m,v=e.style,y=(0,o.useRef)(),w=(0,o.useRef)(),j=(0,o.useState)(""),S=j[0],O=j[1];(0,o.useEffect)((function(){O(f)}),[f]);var C;return(0,n.jsx)("div",a({ref:y,className:(C="paraui-auto-tips",function(){if(navigator.userAgent.indexOf("Safari")>-1)return!0}()&&(C+=" paraui-auto-tips-safari"),x&&(C+=" "+x),C),onMouseOver:function(){var e="",i=y.current,n=i.getBoundingClientRect(),o=w.current.getBoundingClientRect();y.current&&((0,l.isIE)()?n.width>o.width&&(e=f||(b?i.innerText:t)):o.width>n.width&&(e=f||(b?i.innerText:t))),O(e)},style:v},{children:(0,n.jsx)(r.default,a({arrow:c,title:S,placement:d,interactive:g,boundariesElement:"viewport",className:"paraui-auto-tips-tooltip"},{children:(0,n.jsx)("div",a({className:"auto-tips-content",ref:w},{children:t}))}))}))}},3566:function(e,t,i){"use strict";var n=i(5893),o=i(7371),r=i(8076),l=i.n(r),a=i(5744),c=i.n(a),u=(i(2113),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),d=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t=e.title,i=void 0===t?"":t,r=e.children,a=e.arrow,s=void 0===a||a,f=e.interactive,p=void 0===f||f,x=e.className,h=e.placement,b=void 0===h?"top-start":h,m=d(e,["title","children","arrow","interactive","className","placement"]);return(0,n.jsx)(o.default,u({title:i,arrow:s,interactive:p,placement:b},m,{children:(0,n.jsx)("span",u({className:c()("paraui-help",x)},{children:r||(0,n.jsx)(l(),{})}))}))}},4254:function(e,t,i){"use strict";var n=i(5893),o=(i(3936),function(){return o=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)});t.default=function(e){var t,i=e.className,r=e.style,l=e.error,a=void 0!==l&&l,c=e.helperText;return(0,n.jsx)("p",o({className:(t="paraui-helper-text",i&&(t+=" "+i),a&&(t+=" paraui-helper-text-error"),t),style:r},{children:c}))}},6010:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var n=i(8156),o=i.n(n),r=i(5395),l=i.n(r),a=function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function c(e,t){var i=o().useContext(l()).componentsProps,n=i&&i[t];return a(a({},n),e)}},8767:function(e,t,i){"use strict";var n=i(5893),o=i(3566),r=(i(9663),function(){return r=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,l=e.label,a=e.labelSign,c=e.required,u=void 0!==c&&c,d=e.tooltip,s=e.tooltipType,f=void 0===s?"icon":s,p=e.placement,x=e.arrow,h=e.tooltipIcon,b=function(){var e="paraui-label";return f&&(e+=" paraui-label-"+f),d&&(e+=" paraui-label-tooltip"),t&&(e+=" "+t),e};return(0,n.jsxs)(n.Fragment,{children:["icon"===f&&(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a}),d&&(0,n.jsx)(o.default,r({title:d,placement:p,arrow:x},{children:h}))]})),"line"===f&&(0,n.jsx)(o.default,r({title:d||"",placement:p,arrow:x},{children:(0,n.jsxs)("label",r({className:b(),style:i},{children:[(0,n.jsx)(n.Fragment,{children:l}),u&&(0,n.jsx)("span",r({className:"paraui-label-required"},{children:"*"})),a&&(0,n.jsx)("span",{children:a})]}))}))]})}},7502:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(2788),l=i.n(r),a=(i(3492),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)});t.default=function(e){var t=e.className,i=e.style,r=e.opacity,c=void 0===r?.7:r,u=(0,o.useRef)(null);(0,o.useEffect)((function(){u&&u.current&&u.current.parentNode&&(u.current.parentNode.style.position||(u.current.parentNode.style.position="relative"))}),[]);var d;return(0,n.jsxs)("div",a({className:(d="paraui-loading",t&&(d+=" "+t),d),style:i,ref:u},{children:[(0,n.jsx)("div",a({className:"paraui-loading-box"},{children:(0,n.jsx)(l(),{})})),(0,n.jsx)("div",{className:"paraui-loading-mask",style:{opacity:c}})]}))}},7320:function(e,t,i){"use strict";var n=i(5893),o=i(8156),r=i(8767),l=i(8543),a=i(5428),c=i.n(a),u=i(9979),d=i.n(u),s=i(6788),f=i.n(s),p=i(7839),x=i(7502),h=i(7371),b=i(4254),m=i(6010),g=(i(6202),function(){return g=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)}),v=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i},y=function(e){return"number"==typeof e&&!isNaN(e)};t.default=function(e){var t=(0,m.Z)(e,"TextField"),i=t.className,a=t.style,u=t.size,s=void 0===u?"large":u,w=t.labelMode,j=void 0===w?"outside":w,S=t.placeholder,O=void 0===S?"":S,C=t.label,N=void 0===C?"":C,k=t.labelTooltip,P=t.disabled,M=void 0!==P&&P,q=t.multiline,E=void 0!==q&&q,_=t.required,F=void 0!==_&&_,T=t.labelSign,z=t.rows,L=void 0===z?2:z,H=t.error,I=void 0!==H&&H,B=t.helperText,R=void 0===B?"":B,D=t.addonBefore,A=void 0===D?"":D,K=t.addonAfter,U=void 0===K?"":K,Y=(t.defaultValue,t.value),J=t.autoFocus,V=void 0!==J&&J,W=t.type,Q=void 0===W?"text":W,G=t.onClickIcon,Z=t.rightIcon,$=t.showRightIcon,X=void 0===$||$,ee=t.allowClear,te=void 0!==ee&&ee,ie=t.limitLength,ne=t.fetchSuggestions,oe=t.selectPopoverClass,re=t.renderSelectItem,le=t.showSelectName,ae=void 0===le?"value":le,ce=t.resize,ue=void 0===ce||ce,de=t.searchEmpty,se=t.onBlur,fe=t.onFocus,pe=t.onChange,xe=t.onKeydown,he=t.onKeyUp,be=t.onEnter,me=t.onClickAddonBefore,ge=t.onClickAddonAfter,ve=t.onSelect,ye=t.onClear,we=v(t,["className","style","size","labelMode","placeholder","label","labelTooltip","disabled","multiline","required","labelSign","rows","error","helperText","addonBefore","addonAfter","defaultValue","value","autoFocus","type","onClickIcon","rightIcon","showRightIcon","allowClear","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","resize","searchEmpty","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect","onClear"]),je=(0,o.useState)("text-field-select-content-"+(0,l.UUID)())[0],Se=(0,o.useState)(!0),Oe=Se[0],Ce=Se[1],Ne=(0,o.useState)(""),ke=Ne[0],Pe=Ne[1],Me=(0,o.useState)(!1),qe=Me[0],Ee=Me[1],_e=(0,o.useState)("text"),Fe=_e[0],Te=_e[1],ze=(0,o.useState)(!1),Le=ze[0],He=ze[1],Ie=(0,o.useState)(!1),Be=Ie[0],Re=Ie[1],De=(0,o.useState)([]),Ae=De[0],Ke=De[1],Ue=(0,o.useRef)(null),Ye=(0,o.useRef)(null);(0,o.useEffect)((function(){void 0!==e.defaultValue&&Pe(null===e.defaultValue?"":e.defaultValue)}),[]),(0,o.useEffect)((function(){Q!==Fe&&Te(Q)}),[Q]),(0,o.useEffect)((function(){void 0!==Y&&Pe(null===Y?"":Y)}),[Y]),(0,o.useEffect)((function(){Ce(""===ke||void 0===ke)}),[ke]),(0,o.useEffect)((function(){ne&&He(qe)}),[qe,ne]),(0,o.useEffect)((function(){return Le?window.addEventListener("keydown",Ze):window.removeEventListener("keydown",Ze),function(){window.removeEventListener("keydown",Ze)}}),[Le]),(0,o.useEffect)((function(){if(!qe&&ke){var t=Ve(ke);if(t!==ke){var i={};i.target=Ue.current,i.target.value=t,void 0===e.value&&Pe(t),e.onChange&&e.onChange(i)}}}),[ke,qe]);var Je,Ve=function(t){var i=t;return y(e.limitLength)&&t.toString().length>Number(e.limitLength)&&(i=i.toString().substr(0,e.limitLength)),i},We=function(){M||(Ce(!1),(Ue&&Ue.current).focus())},Qe=function(e){var t=e.selectDom,i=e.keyCode,n=e.currentDom,o="nextSibling",r=".text-field-select-content-item";38===i&&(o="previousSibling",r=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(r)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var i=t.clientHeight,n=e.offsetTop+e.clientHeight-i;t.scrollTop=n>0?n:0},Ze=function(e){var t=document.querySelector("."+je),i=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;at(JSON.parse(o))(e),(Ue&&Ue.current).blur()}n&&(i=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i}),38===e.keyCode&&Qe({selectDom:t,keyCode:e.keyCode,currentDom:i})},$e=function(e){Ee(!1),""===e.target.value&&Ce(!0),se&&se(e)},Xe=function(e){ne&&(Re(!0),ne(e,(function(e){Ke(e||[]),Re(!1)})))},et=function(e){Ee(!0),fe&&fe(e),Xe(e.target.value)},tt=function(t){var i=t.target.value;i&&Ce(!1),void 0===e.value&&Pe(i),pe&&pe(t),Xe(t.target.value)},it=function(e){13===e.keyCode&&be&&be(e),xe&&xe(e)},nt=function(e){he&&he(e)},ot=function(e){"password"===Q&&("text"===Fe&&Te("password"),"password"===Fe&&Te("text")),G&&G(e)},rt=function(){return void 0===e.value?ke:Y},lt=function(){He(!1)},at=function(e){return function(t){ve&&ve(e)}},ct=(0,o.useMemo)((function(){return(0,n.jsx)(n.Fragment,{children:y(ie)&&(0,n.jsx)("span",g({className:"length-limit"},{children:(ke?ke.toString().length:0)+"/"+ie}))})}),[ie,ke]),ut=(0,o.useMemo)((function(){var e=Z||("password"===Q?"password"===Fe?(0,n.jsx)(c(),{}):(0,n.jsx)(d(),{}):null);return(0,n.jsx)(n.Fragment,{children:X&&e&&(0,n.jsx)("span",g({className:"password"===Q?"right-icon right-icon-password":"right-icon",onClick:ot},{children:e}))})}),[X,Z,Q,Fe,G]),dt=function(){var t=Ue.current;t.value="",void 0===e.value&&Pe(""),pe&&pe({target:t}),Xe(""),ye&&ye()},st=function(){if(rt()&&!M&&te)return(0,n.jsx)("span",g({className:"clean-up-icon",onClick:dt},{children:(0,n.jsx)(f(),{})}))},ft=(0,o.useMemo)((function(){return(0,n.jsxs)("div",g({className:"text-field-content-within",ref:Ye},{children:[(0,n.jsxs)("div",g({className:"text-field-content-within-input"},{children:[E?(0,n.jsx)("textarea",g({ref:Ue,rows:L,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)):(0,n.jsx)("input",g({ref:Ue,type:Fe,value:rt(),onBlur:$e,onFocus:et,onChange:tt,onKeyDown:it,onKeyUp:nt,disabled:M},we)),Oe&&!qe&&(0,n.jsx)("span",g({className:"text-field-label-placeholder",onClick:We},{children:"outside"===j?O:(0,n.jsxs)(n.Fragment,{children:[N||O,F&&(0,n.jsx)("span",g({className:"text-field-required"},{children:"*"})),T&&(0,n.jsx)("span",{children:T})]})}))]})),st(),ct,ut]}))}),[Oe,qe,V,Fe,ke,ct,ut,j,O,N,M,E,L,we,pe,ne,G,te,ye]),pt=(0,o.useMemo)((function(){var e,t=function(e){return"object"==typeof e&&null!==e?e[ae]:e};return(0,n.jsxs)("div",g({className:(e="text-field-select-content",Be&&(e+=" text-field-select-content-loading"),je&&(e+=" "+je),e),style:{width:(Ye&&Ye.current?Ye.current.offsetWidth:0)+"px"}},{children:[Ae&&Ae.map((function(e,i){return(0,n.jsx)("div",g({className:"text-field-select-content-item",onMouseDown:at(e),"data-val":JSON.stringify(e)},{children:re?re(e):(0,n.jsx)(p.default,{children:t(e)})}),i)})),0===Ae.length&&de,Be&&(0,n.jsx)(x.default,{})]}))}),[Ye,Le,Ae,re,ae,ve,Be,je,de]),xt=(0,o.useMemo)((function(){return(0,n.jsx)(h.default,g({open:Le,title:pt,onClose:lt,arrow:!1,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,placement:"bottom-start",classes:{popper:(e="paraui-text-field-select paraui-scrollbar-small",s&&(e+=" paraui-text-field-select-"+s),oe&&(e+=" "+oe),Ae.length>0&&(e+=" paraui-text-field-select-data"),e)}},{children:ft}));var e}),[Oe,qe,V,Fe,ke,ct,ut,j,O,N,M,E,L,we,pe,ne,ve,Ye,Le,oe,s,G,Ae,te,ye,de]),ht=(0,o.useMemo)((function(){var e,t=Boolean(F||T||N);if("outside"===j&&t){return(0,n.jsx)(r.default,g({label:N,required:F,labelSign:T},k,{className:(e="text-field-label",k&&k.className&&(e+=" "+k.className),e)}))}return null}),[j,N,T,F,k]);return(0,n.jsxs)("div",g({className:(Je="paraui-text-field",Je+=" text-field",s&&!E&&(Je+=" text-field-"+s),i&&(Je+=" "+i),I&&(Je+=" text-field-error"),qe&&(Je+=" text-field-focus"),M&&(Je+=" text-field-disabled"),E&&(Je+=" text-field-multiline"),y(e.limitLength)&&(Je+=" text-field-limit-length"),y(e.limitLength)&&ke&&ke.toString().length>Number(e.limitLength)&&(Je+=" text-field-limit"),ue&&(Je+=" text-field-resize"),rt()&&(Je+=" text-field-value"),te&&(Je+=" text-field-allow-clear"),Je),style:a},{children:[ht,(0,n.jsxs)("div",g({className:"text-field-content"},{children:[A&&(0,n.jsx)("div",g({className:"text-field-content-before",onClick:function(e){me&&me(e)}},{children:A})),ne?xt:ft,U&&(0,n.jsx)("div",g({className:"text-field-content-after",onClick:function(e){ge&&ge(e)}},{children:U}))]})),(0,n.jsx)(b.default,{className:"text-field-error-text",error:I,helperText:R})]}))}},7371:function(e,t,i){"use strict";var n=i(5893),o=i(670),r=i(5744),l=i.n(r),a=(i(2310),function(){return a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)}),c=function(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(i[n[o]]=e[n[o]])}return i};t.default=function(e){var t,i=e.placement,r=void 0===i?"top-start":i,u=e.className,d=e.arrow,s=void 0===d||d,f=e.PopperProps,p=e.boundariesElement,x=void 0===p?"scrollParent":p,h=c(e,["placement","className","arrow","PopperProps","boundariesElement"]),b=a(a({},e.classes),{popper:l()("paraui-tooltip",u,null===(t=e.classes)||void 0===t?void 0:t.popper,{"paraui-tooltip-left-right":(null==r?void 0:r.includes("left"))||(null==r?void 0:r.includes("right")),"paraui-tooltip-top-bottom":(null==r?void 0:r.includes("top"))||(null==r?void 0:r.includes("bottom"))})});return(0,n.jsx)(o.Tooltip,a({},h,{enterTouchDelay:0,arrow:s,placement:r,classes:b,PopperProps:a(a({},f),{modifiers:{preventOverflow:{boundariesElement:x}}})}))}},670:function(e){"use strict";e.exports=t},5395:function(e){"use strict";e.exports=u},6788:function(e){"use strict";e.exports=a},4104:function(e){"use strict";e.exports=s},8076:function(e){"use strict";e.exports=n},2788:function(e){"use strict";e.exports=c},1632:function(e){"use strict";e.exports=d},5428:function(e){"use strict";e.exports=r},9979:function(e){"use strict";e.exports=l},8543:function(e){"use strict";e.exports=o},5744:function(e){"use strict";e.exports=i},8156:function(t){"use strict";t.exports=e}},p={};function x(e){var t=p[e];if(void 0!==t)return t.exports;var i=p[e]={id:e,exports:{}};return f[e](i,i.exports,x),i.exports}x.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return x.d(t,{a:t}),t},x.d=function(e,t){for(var i in t)x.o(t,i)&&!x.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},x.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},x.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},x.nc=void 0;var h={};return function(){"use strict";x.r(h),x.d(h,{MultiBox:function(){return s}});var e=x(5893),t=x(8156),i=x(7320),n=x(8767),o=x(4254),r=x(1632),l=x.n(r),a=x(4104),c=x.n(a),u=(x(5415),function(){return u=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var o in t=arguments[i])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},u.apply(this,arguments)}),d=function(e,t,i){if(i||2===arguments.length)for(var n,o=0,r=t.length;o<r;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},s=function(r){var a=r.className,s=r.style,f=r.size,p=void 0===f?"large":f,x=r.placeholderKey,h=void 0===x?"":x,b=r.placeholderValue,m=void 0===b?"":b,g=r.label,v=void 0===g?"":g,y=r.labelTooltip,w=r.labelSign,j=r.disabled,S=void 0!==j&&j,O=r.required,C=void 0!==O&&O,N=r.error,k=void 0!==N&&N,P=r.helperText,M=void 0===P?"":P,q=r.value,E=r.replaceFields,_=r.onChange,F=r.fetchSuggestionsKey,T=r.fetchSuggestionsValue,z=(0,t.useState)([]),L=z[0],H=z[1],I=(0,t.useState)({key:"label",value:"value"}),B=I[0],R=I[1];(0,t.useEffect)((function(){void 0!==r.defaultValue&&H(d([],r.defaultValue,!0))}),[]),(0,t.useEffect)((function(){void 0!==q&&H(d([],q,!0))}),[q]),(0,t.useEffect)((function(){if(E){var e=u(u({},B),E);R(e)}}),[E]);var D,A=function(e){return function(){S||(L.splice(e,1),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},K=function(e,t){return function(i){L[t][e]=i.target.value,void 0===r.value&&H(d([],L,!0)),_&&_(L)}},U=function(e){return function(t,i){"key"===e?F&&F(t,i):T&&T(t,i)}},Y=function(e,t){return function(i){L[t][e]=i,"object"==typeof i&&null!==i&&(L[t][e]=i.value),void 0===r.value&&H(d([],L,!0)),_&&_(L)}};return(0,e.jsxs)("div",u({className:(D="paraui-multi-box multi-box",a&&(D+=" "+a),p&&(D+=" multi-box-"+p),k&&(D+=" multi-box-error"),S&&(D+=" multi-box-disabled"),D),style:s},{children:[function(){if(!v&&!w)return null;var t;return(0,e.jsx)(n.default,u({label:v,required:C,labelSign:w},y,{className:(t="multi-box-label",y&&y.className&&(t+=" "+y.className),t)}))}(),(0,e.jsx)("div",u({className:"multi-box-content"},{children:L.map((function(t,n){return(0,e.jsxs)("div",u({className:"multi-box-content-item"},{children:[(0,e.jsxs)("div",u({className:"multi-box-content-item-input"},{children:[(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:h,value:t[B.key||""],onChange:K(B.key||"",n),fetchSuggestions:F?U("key"):void 0,onSelect:Y(B.key||"",n)}),(0,e.jsx)("span",{children:":"}),(0,e.jsx)(i.default,{size:p,disabled:S,placeholder:m,value:t[B.value||""],onChange:K(B.value||"",n),fetchSuggestions:T?U("value"):void 0,onSelect:Y(B.value||"",n)})]})),(0,e.jsx)("span",u({className:"single-box-content-item-svg"},{children:(0,e.jsx)(c(),{onClick:A(n)})}))]}),n)}))})),(0,e.jsx)("div",u({className:"multi-box-add",onClick:function(){S||(L.push({}),void 0===r.value&&H(d([],L,!0)),_&&_(L))}},{children:(0,e.jsx)(l(),{})})),(0,e.jsx)(o.default,{className:"multi-box-error-text",error:k,helperText:M})]}))};h.default=s}(),h}()}));