owncast/static/web/_next/static/chunks/3013-1ba17ac9d4a12b8b.js

1 line
7.8 KiB
JavaScript
Raw Normal View History

2023-02-02 05:51:46 +03:00
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3013],{18562:function(e,t,n){n.d(t,{Z:function(){return x}});var o=n(87462),r=n(71002),i=n(4942),a=n(97685),l=n(18073),s=n(94184),c=n.n(s),u=n(60057),p=n(66680),f=n(21770),m=n(67294),d=n(66516),v=n(53124),g=n(76529),y=n(80636),b=n(96159),C=n(93355),h=n(89705),w=n(71577),Z=n(4173),E=n(26713),O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)0>t.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n},N=function(e){var t=m.useContext(v.E_),n=t.getPopupContainer,r=t.getPrefixCls,i=t.direction,l=e.prefixCls,s=e.type,u=void 0===s?"default":s,p=e.danger,f=e.disabled,d=e.loading,g=e.onClick,y=e.htmlType,b=e.children,C=e.className,N=e.menu,P=e.arrow,k=e.autoFocus,R=e.overlay,A=e.trigger,L=e.align,T=e.visible,S=e.open,V=e.onVisibleChange,D=e.onOpenChange,j=e.placement,_=e.getPopupContainer,F=e.href,B=e.icon,H=void 0===B?m.createElement(h.Z,null):B,I=e.title,M=e.buttonsRender,W=e.mouseEnterDelay,z=e.mouseLeaveDelay,J=e.overlayClassName,U=e.overlayStyle,X=e.destroyPopupOnHide,Y=O(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),q=r("dropdown-button",l),G={menu:N,arrow:P,autoFocus:k,align:L,disabled:f,trigger:f?[]:A,onOpenChange:D||V,getPopupContainer:_||n,mouseEnterDelay:W,mouseLeaveDelay:z,overlayClassName:J,overlayStyle:U,destroyPopupOnHide:X},K=(0,Z.ri)(q,i),Q=K.compactSize,$=K.compactItemClassnames,ee=c()(q,$,C);"overlay"in e&&(G.overlay=R),"open"in e?G.open=S:"visible"in e&&(G.open=T),"placement"in e?G.placement=j:G.placement="rtl"===i?"bottomLeft":"bottomRight";var et=(void 0===M?function(e){return e}:M)([m.createElement(w.Z,{type:u,danger:p,disabled:f,loading:d,onClick:g,htmlType:y,href:F,title:I},b),m.createElement(w.Z,{type:u,danger:p,icon:H})]),en=(0,a.Z)(et,2),eo=en[0],er=en[1];return m.createElement(E.Z.Compact,(0,o.Z)({className:ee,size:Q,block:!0},Y),eo,m.createElement(x,(0,o.Z)({},G),er))};N.__ANT_BUTTON=!0,(0,C.b)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom");var P=function(e){var t,n,s,C,h,w=m.useContext(v.E_),E=w.getPopupContainer,O=w.getPrefixCls,N=w.direction,P=e.menu,x=e.arrow,k=e.prefixCls,R=e.children,A=e.trigger,L=e.disabled,T=e.dropdownRender,S=e.getPopupContainer,V=e.overlayClassName,D=e.visible,j=e.open,_=e.onVisibleChange,F=e.onOpenChange,B=e.mouseEnterDelay,H=e.mouseLeaveDelay,I=e.autoAdjustOverflow,M=O("dropdown",k),W=m.Children.only(R),z=(0,b.Tm)(W,{className:c()("".concat(M,"-trigger"),(0,i.Z)({},"".concat(M,"-rtl"),"rtl"===N),W.props.className),disabled:L}),J=L?[]:A;J&&J.includes("contextMenu")&&(h=!0);var U=(0,f.Z)(!1,{value:void 0!==j?j:D}),X=(0,a.Z)(U,2),Y=X[0],q=X[1],G=(0,p.Z)(function(e){null==_||_(e),null==F||F(e),q(e)}),K=c()(V,(0,i.Z)({},"".concat(M,"-rtl"),"rtl"===N)),Q=(0,y.Z)({arrowPointAtCenter:"object"===(0,r.Z)(x)&&x.pointAtCenter,autoAdjustOverflow:void 0===I||I}),$=m.useCallback(function(){q(!1)},[]);return m.createElement(u.Z,(0,o.Z)({alignPoint:h},e,{mouseEnterDelay:void 0===B?.15:B,mouseLeaveDelay:void 0===H?.1:H,visible:Y,builtinPlacements:Q,arrow:!!x,overlayClassName:K,prefixCls:M,getPopupContainer:S||E,transitionName:(t=O(),n=e.placement,void 0!==(s=e.transitionName)?s:(void 0===n?"":n).includes("top")?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")),trigger:J,overlay:function(){var t,n=e.overlay;return t=(null==P?void 0:P.items)?m.createElement(d.Z,(0,o.Z)({},P)):"function"==typeof n?n():n,T&&(t=T(t)),t=m.Children.only("string"==typeof t?m.createElement("span",null,t):t),m.createElement(g.J,{prefixCls:"".concat(M,"-menu"),expandIcon:m