owncast/static/web/_next/static/chunks/2891-0a36d2e6458c18b5.js
2023-07-10 01:36:23 +00:00

1 line
No EOL
8.5 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2891],{33398:function(e,t,n){var o=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(10434)),r=a(n(27424)),i=a(n(26937)),u=a(n(94184)),c=o(n(67294)),s=a(n(65400)),f=n(31929),d=n(46549),p=a(n(48301)),v=a(n(74048)),m=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 a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)0>t.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},g=function(e){var t=c.useContext(f.ConfigContext),n=t.getPopupContainer,o=t.getPrefixCls,a=t.direction,g=e.prefixCls,C=e.type,y=void 0===C?"default":C,b=e.danger,h=e.disabled,w=e.loading,O=e.onClick,E=e.htmlType,P=e.children,N=e.className,x=e.menu,k=e.arrow,R=e.autoFocus,A=e.overlay,L=e.trigger,S=e.align,_=e.visible,j=e.open,T=e.onVisibleChange,V=e.onOpenChange,D=e.placement,Z=e.getPopupContainer,F=e.href,M=e.icon,I=void 0===M?c.createElement(i.default,null):M,H=e.title,B=e.buttonsRender,W=e.mouseEnterDelay,z=e.mouseLeaveDelay,U=e.overlayClassName,X=e.overlayStyle,Y=e.destroyPopupOnHide,q=m(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"]),G=o("dropdown-button",g),J={menu:x,arrow:k,autoFocus:R,align:S,disabled:h,trigger:h?[]:L,onOpenChange:V||T,getPopupContainer:Z||n,mouseEnterDelay:W,mouseLeaveDelay:z,overlayClassName:U,overlayStyle:X,destroyPopupOnHide:Y},K=(0,d.useCompactItemContext)(G,a),Q=K.compactSize,$=K.compactItemClassnames,ee=(0,u.default)(G,$,N);"overlay"in e&&(J.overlay=A),"open"in e?J.open=j:"visible"in e&&(J.open=_),"placement"in e?J.placement=D:J.placement="rtl"===a?"bottomLeft":"bottomRight";var et=(void 0===B?function(e){return e}:B)([c.createElement(s.default,{type:y,danger:b,disabled:h,loading:w,onClick:O,htmlType:E,href:F,title:H},P),c.createElement(s.default,{type:y,danger:b,icon:I})]),en=(0,r.default)(et,2),eo=en[0],ea=en[1];return c.createElement(v.default.Compact,(0,l.default)({className:ee,size:Q,block:!0},q),eo,c.createElement(p.default,(0,l.default)({},J),ea))};g.__ANT_BUTTON=!0,t.default=g},48301:function(e,t,n){var o=n(75263).default,a=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=a(n(10434)),r=a(n(18698)),i=a(n(38416)),u=a(n(27424)),c=a(n(67638)),s=a(n(94184)),f=a(n(60057)),d=a(n(18545)),p=a(n(60869)),v=o(n(67294)),m=a(n(12386)),g=n(31929),C=n(2639),y=a(n(74132)),b=n(47419),h=n(66764);a(n(13594));var w=a(n(33398)),O=n(46549);(0,h.tuple)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom");var E=function(e){var t,n,o,a,h,w=v.useContext(g.ConfigContext),E=w.getPopupContainer,P=w.getPrefixCls,N=w.direction,x=e.menu,k=e.arrow,R=e.prefixCls,A=e.children,L=e.trigger,S=e.disabled,_=e.dropdownRender,j=e.getPopupContainer,T=e.overlayClassName,V=e.visible,D=e.open,Z=e.onVisibleChange,F=e.onOpenChange,M=e.mouseEnterDelay,I=e.mouseLeaveDelay,H=e.autoAdjustOverflow,B=P("dropdown",R),W=v.Children.only(A),z=(0,b.cloneElement)(W,{className:(0,s.default)("".concat(B,"-trigger"),(0,i.default)({},"".concat(B,"-rtl"),"rtl"===N),W.props.className),disabled:S}),U=S?[]:L;U&&U.includes("contextMenu")&&(h=!0);var X=(0,p.default)(!1,{value:void 0!==D?D:V}),Y=(0,u.default)(X,2),q=Y[0],G=Y[1],J=(0,d.default)(function(e){null==Z||Z(e),null==F||F(e),G(e)}),K=(0,s.default)(T,(0,i.default)({},"".concat(B,"-rtl"),"rtl"===N)),Q=(0,y.default)({arrowPointAtCenter:"object"===(0,r.default)(k)&&k.pointAtCenter,autoAdjustOverflow:void 0===H||H}),$=v.useCallback(function(){G(!1)},[]);return v.createElement(f.default,(0,l.default)({alignPoint:h},e,{mouseEnterDelay:void 0===M?.15:M,mouseLeaveDelay:void 0===I?.1:I,visible:q,builtinPlacements:Q,arrow:!!k,overlayClassName:K,prefixCls:B,getPopupContainer:j||E,transitionName:(t=P(),n=e.placement,void 0!==(o=e.transitionName)?o:(void 0===n?"":n).includes("top")?"".concat(t,"-slide-down"):"".concat(t,"-slide-up")),trigger:U,overlay:function(){var t,n=e.overlay;return t=(null==x?void 0:x.items)?v.createElement(m.default,(0,l.default)({},x)):"function"==typeof n?n():n,_&&(t=_(t)),t=v.Children.only("string"==typeof t?v.createElement("span",null,t):t),v.createElement(C.OverrideProvider,{prefixCls:"".concat(B,"-menu"),expandIcon:v.createElement("span",{className:"".concat(B,"-menu-submenu-arrow")},v.createElement(c.default,{className:"".concat(B,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:$,validator:function(e){e.mode}},v.createElement(O.NoCompactStyle,null,t))},placement:(a=e.placement)?a.includes("Center")?a.slice(0,a.indexOf("Center")):a:"rtl"===N?"bottomRight":"bottomLeft",onVisibleChange:J}),z)};E.Button=w.default,t.default=E},82891:function(e,t,n){var o=n(64836).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(48301)).default;t.default=a},60057:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var o=n(4942),a=n(1413),l=n(97685),r=n(45987),i=n(67294),u=n(81263),c=n(94184),s=n.n(c),f={adjustX:1,adjustY:1},d=[0,0],p={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:d},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:d},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:d},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:d},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:d}},v=n(15105),m=n(75164),g=n(88603),C=v.Z.ESC,y=v.Z.TAB,b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"],h=i.forwardRef(function(e,t){var n,c,f,d,v,h,w,O,E,P,N,x,k,R,A,L,S=e.arrow,_=void 0!==S&&S,j=e.prefixCls,T=void 0===j?"rc-dropdown":j,V=e.transitionName,D=e.animation,Z=e.align,F=e.placement,M=e.placements,I=e.getPopupContainer,H=e.showAction,B=e.hideAction,W=e.overlayClassName,z=e.overlayStyle,U=e.visible,X=e.trigger,Y=void 0===X?["hover"]:X,q=e.autoFocus,G=(0,r.Z)(e,b),J=i.useState(),K=(0,l.Z)(J,2),Q=K[0],$=K[1],ee="visible"in e?U:Q,et=i.useRef(null);i.useImperativeHandle(t,function(){return et.current}),f=(c={visible:ee,setTriggerVisible:$,triggerRef:et,onVisibleChange:e.onVisibleChange,autoFocus:q}).visible,d=c.setTriggerVisible,v=c.triggerRef,h=c.onVisibleChange,w=c.autoFocus,O=i.useRef(!1),E=function(){if(f&&v.current){var e,t,n,o;null===(e=v.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(n=t.current)||void 0===n||null===(o=n.focus)||void 0===o||o.call(n),d(!1),"function"==typeof h&&h(!1)}},P=function(){var e,t,n,o,a=(0,g.tS)(null===(e=v.current)||void 0===e?void 0:null===(t=e.popupRef)||void 0===t?void 0:null===(n=t.current)||void 0===n?void 0:null===(o=n.getElement)||void 0===o?void 0:o.call(n))[0];return null!=a&&!!a.focus&&(a.focus(),O.current=!0,!0)},N=function(e){switch(e.keyCode){case C:E();break;case y:var t=!1;O.current||(t=P()),t?e.preventDefault():E()}},i.useEffect(function(){return f?(window.addEventListener("keydown",N),w&&(0,m.Z)(P,3),function(){window.removeEventListener("keydown",N),O.current=!1}):function(){O.current=!1}},[f]);var en=function(){var t=e.overlay;return"function"==typeof t?t():t},eo=function(){var e=en();return i.createElement(i.Fragment,null,_&&i.createElement("div",{className:"".concat(T,"-arrow")}),e)},ea=B;return ea||-1===Y.indexOf("contextMenu")||(ea=["click"]),i.createElement(u.Z,(0,a.Z)((0,a.Z)({builtinPlacements:void 0===M?p:M},G),{},{prefixCls:T,ref:et,popupClassName:s()(W,(0,o.Z)({},"".concat(T,"-show-arrow"),_)),popupStyle:z,action:Y,showAction:H,hideAction:ea||[],popupPlacement:void 0===F?"bottomLeft":F,popupAlign:Z,popupTransitionName:V,popupAnimation:D,popupVisible:ee,stretch:(x=e.minOverlayWidthMatchTrigger,k=e.alignPoint,"minOverlayWidthMatchTrigger"in e?x:!k)?"minWidth":"",popup:"function"==typeof e.overlay?eo:eo(),onPopupVisibleChange:function(t){var n=e.onVisibleChange;$(t),"function"==typeof n&&n(t)},onPopupClick:function(t){var n=e.onOverlayClick;$(!1),n&&n(t)},getPopupContainer:I}),(A=(R=e.children).props?R.props:{},L=s()(A.className,void 0!==(n=e.openClassName)?n:"".concat(T,"-open")),ee&&R?i.cloneElement(R,{className:L}):R))})}}]);