You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
64 KiB
2 lines
64 KiB
2 years ago
|
/*! For license information please see 54.c762f7a4.chunk.js.LICENSE.txt */
|
||
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[54],{1643:function(e,t,n){"use strict";var r=n(23),o=n(563),a=n(59),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),f=n(183),p=n.n(f),d=n(562),m=n.n(d),g=n(1098),b=n(886),h=n(569),v=["className","cssModule","right","tag","flip","modifiers","persist","positionFixed","container"];function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){Object(o.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O={tag:h.t,children:u.a.node.isRequired,right:u.a.bool,flip:u.a.bool,modifiers:u.a.object,className:u.a.string,cssModule:u.a.object,persist:u.a.bool,positionFixed:u.a.bool,container:h.u},j={flip:{enabled:!1}},w={up:"top",left:"left",right:"right",down:"bottom"},C=function(e){function t(){return e.apply(this,arguments)||this}Object(i.a)(t,e);var n=t.prototype;return n.getRole=function(){return"listbox"===this.context.menuRole?"listbox":"menu"},n.render=function(){var e=this,t=this.props,n=t.className,o=t.cssModule,i=t.right,l=t.tag,s=t.flip,u=t.modifiers,f=t.persist,d=t.positionFixed,b=t.container,y=Object(a.a)(t,v),O=Object(h.p)(m()(n,"dropdown-menu",{"dropdown-menu-right":i,show:this.context.isOpen}),o),C=l;if(f||this.context.isOpen&&!this.context.inNavbar){var x=(w[this.context.direction]||"bottom")+"-"+(i?"end":"start"),N=s?u:A(A({},u),j),E=!!d,k=c.a.createElement(g.a,{placement:x,modifiers:N,positionFixed:E},(function(t){var n=t.ref,o=t.style,a=t.placement,i=A(A({},e.props.style),o);return c.a.createElement(C,Object(r.a)({tabIndex:"-1",role:e.getRole(),ref:function(t){n(t);var r=e.context.onMenuRef;r&&r(t)}},y,{style:i,"aria-hidden":!e.context.isOpen,className:O,"x-placement":a}))}));return b?p.a.createPortal(k,Object(h.m)(b)):k}return c.a.createElement(C,Object(r.a)({tabIndex:"-1",role:this.getRole()},y,{"aria-hidden":!this.context.isOpen,className:O,"x-placement":y.placement}))},t}(c.a.Component);C.propTypes=O,C.defaultProps={tag:"div",flip:!0},C.contextType=b.a,t.a=C},1644:function(e,t,n){"use strict";var r=n(23),o=n(59),a=n(584),i=n(33),l=n(2),c=n.n(l),s=n(80),u=n.n(s),f=n(562),p=n.n(f),d=n(886),m=n(569),g=["className","cssModule","divider","tag","header","active","text"],b={children:u.a.node,active:u.a.bool,disabled:u.a.bool,divider:u.a.bool,tag:m.t,header:u.a.bool,onClick:u.a.func,className:u.a.string,cssModule:u.a.object,toggle:u.a.bool,text:u.a.bool},h=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind(Object(a.a)(n)),n.getTabIndex=n.getTabIndex.bind(Object(a.a)(n)),n}Object(i.a)(t,e);var n=t.prototype;return n.getRole=function(){return"listbox"===this.context.menuRole?"option":"menuitem"},n.onClick=function(e){var t=this.props,n=t.disabled,r=t.header,o=t.divider,a=t.text;n||r||o||a?e.preventDefault():(this.props.onClick&&this.props.onClick(e),this.props.toggle&&this.context.toggle(e))},n.getTabIndex=function(){var e=this.props,t=e.disabled,n=e.header,r=e.divider,o=e.text;return t||n||r||o?"-1":"0"},n.render=function(){var e=this.getTabIndex(),t=e>-1?this.getRole():void 0,n=Object(m.q)(this.props,["toggle"]),a=n.className,i=n.cssModule,l=n.divider,s=n.tag,u=n.header,f=n.active,d=n.text,b=Object(o.a)(n,g),h=Object(m.p)(p()(a,{disabled:b.disabled,"dropdown-item":!l&&!u&&!d,active:f,"dropdown-header":u,"dropdown-divider":l,"dropdown-item-text":d}),i);return"button"===s&&(u?s="h6":l?s="div":b.href?s="a":d&&(s="span")),c.a.createElement(s,Object(r.a)({type:"button"===s&&(b.onClick||this.props.toggle)?"button":void 0},b,{tabIndex:e,role:t,className:h,onClick:this.onClick}))},t}(c.a.Component);h.propTypes=b,h.defaultProps={tag:"button",toggle:!0},h.contextType=d.
|