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
65 KiB
2 lines
65 KiB
3 years ago
|
/*! For license information please see 50.1f7e30e0.chunk.js.LICENSE.txt */
|
||
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[50],{1548:function(e,t,n){"use strict";var r=n(19),o=n(561),a=n(58),i=n(33),l=n(2),c=n.n(l),s=n(79),u=n.n(s),f=n(183),p=n.n(f),d=n(559),m=n.n(d),b=n(1056),g=n(865),h=n(568),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,g=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(b.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 g?p.a.createPortal(k,Object(h.m)(g)):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=g.a,t.a=C},1549:function(e,t,n){"use strict";var r=n(19),o=n(58),a=n(580),i=n(33),l=n(2),c=n.n(l),s=n(79),u=n.n(s),f=n(559),p=n.n(f),d=n(865),m=n(568),b=["className","cssModule","divider","tag","header","active","text"],g={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,g=Object(o.a)(n,b),h=Object(m.p)(p()(a,{disabled:g.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":g.href?s="a":d&&(s="span")),c.a.createElement(s,Object(r.a)({type:"button"===s&&(g.onClick||this.props.toggle)?"button":void 0},g,{tabIndex:e,role:t,className:h,onClick:this.onClick}))},t}(c.a.Component);h.propTypes=g,h.defaultProps={tag:"button",toggle:!0},h.contextType=d.
|