1 line
20 KiB
JavaScript
Vendored
1 line
20 KiB
JavaScript
Vendored
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[490],{27049:function(e,t,n){"use strict";var r=n(87462),a=n(4942),o=n(94184),i=n.n(o),c=n(67294),s=n(53124),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};t.Z=function(e){var t,n=c.useContext(s.E_),o=n.getPrefixCls,u=n.direction,d=e.prefixCls,f=e.type,p=void 0===f?"horizontal":f,m=e.orientation,v=void 0===m?"center":m,h=e.orientationMargin,g=e.className,x=e.children,b=e.dashed,w=e.plain,y=l(e,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),Z=o("divider",d),C=v.length>0?"-".concat(v):v,j=!!x,E="left"===v&&null!=h,N="right"===v&&null!=h,k=i()(Z,"".concat(Z,"-").concat(p),(t={},(0,a.Z)(t,"".concat(Z,"-with-text"),j),(0,a.Z)(t,"".concat(Z,"-with-text").concat(C),j),(0,a.Z)(t,"".concat(Z,"-dashed"),!!b),(0,a.Z)(t,"".concat(Z,"-plain"),!!w),(0,a.Z)(t,"".concat(Z,"-rtl"),"rtl"===u),(0,a.Z)(t,"".concat(Z,"-no-default-orientation-margin-left"),E),(0,a.Z)(t,"".concat(Z,"-no-default-orientation-margin-right"),N),t),g),O=(0,r.Z)((0,r.Z)({},E&&{marginLeft:h}),N&&{marginRight:h});return c.createElement("div",(0,r.Z)({className:k},y,{role:"separator"}),x&&"vertical"!==p&&c.createElement("span",{className:"".concat(Z,"-inner-text"),style:O},x))}},26303:function(e,t,n){"use strict";n.d(t,{Z:function(){return Z}});var r=n(4942),a=n(87462),o=n(71002),i=n(94184),c=n.n(i),s=n(67294),l=n(53124),u=n(98423),d=function(e){var t,n,o=e.prefixCls,i=e.className,l=e.style,u=e.size,d=e.shape,f=c()((t={},(0,r.Z)(t,"".concat(o,"-lg"),"large"===u),(0,r.Z)(t,"".concat(o,"-sm"),"small"===u),t)),p=c()((n={},(0,r.Z)(n,"".concat(o,"-circle"),"circle"===d),(0,r.Z)(n,"".concat(o,"-square"),"square"===d),(0,r.Z)(n,"".concat(o,"-round"),"round"===d),n)),m=s.useMemo(function(){return"number"==typeof u?{width:u,height:u,lineHeight:"".concat(u,"px")}:{}},[u]);return s.createElement("span",{className:c()(o,f,p,i),style:(0,a.Z)((0,a.Z)({},m),l)})},f=n(1413),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},m=n(42135),v=function(e,t){return s.createElement(m.Z,(0,f.Z)((0,f.Z)({},e),{},{ref:t,icon:p}))};v.displayName="DotChartOutlined";var h=s.forwardRef(v),g=n(74902),x=function(e){var t=function(t){var n=e.width,r=e.rows;return Array.isArray(n)?n[t]:(void 0===r?2:r)-1===t?n:void 0},n=e.prefixCls,r=e.className,a=e.style,o=e.rows,i=(0,g.Z)(Array(o)).map(function(e,n){return s.createElement("li",{key:n,style:{width:t(n)}})});return s.createElement("ul",{className:c()(n,r),style:a},i)},b=function(e){var t=e.prefixCls,n=e.className,r=e.width,o=e.style;return s.createElement("h3",{className:c()(t,n),style:(0,a.Z)({width:r},o)})};function w(e){return e&&"object"===(0,o.Z)(e)?e:{}}var y=function(e){var t=e.prefixCls,n=e.loading,o=e.className,i=e.style,u=e.children,f=e.avatar,p=void 0!==f&&f,m=e.title,v=void 0===m||m,h=e.paragraph,g=void 0===h||h,y=e.active,Z=e.round,C=s.useContext(l.E_),j=C.getPrefixCls,E=C.direction,N=j("skeleton",t);if(n||!("loading"in e)){var k=!!p,O=!!v,_=!!g;if(k){var z=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-avatar")},O&&!_?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),w(p));S=s.createElement("div",{className:"".concat(N,"-header")},s.createElement(d,(0,a.Z)({},z)))}if(O||_){if(O){var P,S,A,R,D,M=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-title")},!k&&_?{width:"38%"}:k&&_?{width:"50%"}:{}),w(v));R=s.createElement(b,(0,a.Z)({},M))}if(_){var I,T=(0,a.Z)((0,a.Z)({prefixCls:"".concat(N,"-paragraph")},(I={},k&&O||(I.width="61%"),!k&&O?I.rows=3:I.rows=2,I)),w(g));D=s.createElement(x,(0,a.Z)({},T))}A=s.createElement("div",{className:"".concat(N,"-content")},R,D)}var q=c()(N,(P={},(0,r.Z)(P,"".concat(N,"-with-avatar"),k),(0,r.Z)(P,"".concat(N,"-active"),y),(0,r.Z)(P,"".concat(N,"-rtl"),"rtl"===E),(0,r.Z)(P,"".concat(N,"-round"),Z),P),o);return s.createElement("div",{className:q,style:i},S,A)}return void 0!==u?u:null};y.Button=function(e){var t,n=e.prefixCls,o=e.className,i=e.active,f=e.block,p=e.size,m=(0,s.useContext(l.E_).getPrefixCls)("skeleton",n),v=(0,u.Z)(e,["prefixCls"]),h=c()(m,"".concat(m,"-element"),(t={},(0,r.Z)(t,"".concat(m,"-active"),i),(0,r.Z)(t,"".concat(m,"-block"),void 0!==f&&f),t),o);return s.createElement("div",{className:h},s.createElement(d,(0,a.Z)({prefixCls:"".concat(m,"-button"),size:void 0===p?"default":p},v)))},y.Avatar=function(e){var t=e.prefixCls,n=e.className,o=e.active,i=e.shape,f=e.size,p=(0,s.useContext(l.E_).getPrefixCls)("skeleton",t),m=(0,u.Z)(e,["prefixCls","className"]),v=c()(p,"".concat(p,"-element"),(0,r.Z)({},"".concat(p,"-active"),o),n);return s.createElement("div",{className:v},s.createElement(d,(0,a.Z)({prefixCls:"".concat(p,"-avatar"),shape:void 0===i?"circle":i,size:void 0===f?"default":f},m)))},y.Input=function(e){var t,n=e.prefixCls,o=e.className,i=e.active,f=e.block,p=e.size,m=(0,s.useContext(l.E_).getPrefixCls)("skeleton",n),v=(0,u.Z)(e,["prefixCls"]),h=c()(m,"".concat(m,"-element"),(t={},(0,r.Z)(t,"".concat(m,"-active"),i),(0,r.Z)(t,"".concat(m,"-block"),f),t),o);return s.createElement("div",{className:h},s.createElement(d,(0,a.Z)({prefixCls:"".concat(m,"-input"),size:void 0===p?"default":p},v)))},y.Image=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,i=(0,s.useContext(l.E_).getPrefixCls)("skeleton",t),u=c()(i,"".concat(i,"-element"),(0,r.Z)({},"".concat(i,"-active"),o),n);return s.createElement("div",{className:u},s.createElement("div",{className:c()("".concat(i,"-image"),n),style:a},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(i,"-image-svg")},s.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(i,"-image-path")}))))},y.Node=function(e){var t=e.prefixCls,n=e.className,a=e.style,o=e.active,i=e.children,u=(0,s.useContext(l.E_).getPrefixCls)("skeleton",t),d=c()(u,"".concat(u,"-element"),(0,r.Z)({},"".concat(u,"-active"),o),n),f=null!=i?i:s.createElement(h,null);return s.createElement("div",{className:d},s.createElement("div",{className:c()("".concat(u,"-image"),n),style:a},f))};var Z=y},89281:function(e,t,n){"use strict";var r=n(75263).default,a=n(64836).default;t.Z=void 0;var o=a(n(10434)),i=a(n(94184)),c=r(n(67294)),s=n(31929),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)0>t.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};t.Z=function(e){return c.createElement(s.ConfigConsumer,null,function(t){var n=t.getPrefixCls,r=e.prefixCls,a=e.className,s=e.avatar,u=e.title,d=e.description,f=l(e,["prefixCls","className","avatar","title","description"]),p=n("card",r),m=(0,i.default)("".concat(p,"-meta"),a),v=s?c.createElement("div",{className:"".concat(p,"-meta-avatar")},s):null,h=u?c.createElement("div",{className:"".concat(p,"-meta-title")},u):null,g=d?c.createElement("div",{className:"".concat(p,"-meta-description")},d):null,x=h||g?c.createElement("div",{className:"".concat(p,"-meta-detail")},h,g):null;return c.createElement("div",(0,o.default)({},f,{className:m}),v,x)})}},20640:function(e,t,n){"use strict";var r=n(11742),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,i,c,s,l,u,d,f=!1;t||(t={}),i=t.debug||!1;try{if(s=r(),l=document.createRange(),u=document.getSelection(),(d=document.createElement("span")).textContent=e,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),void 0===n.clipboardData){i&&console.warn("unable to use e.clipboardData"),i&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var r=a[t.format]||a.default;window.clipboardData.setData(r,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand("copy"))throw Error("copy command was unsuccessful");f=!0}catch(r){i&&console.error("unable to copy using execCommand: ",r),i&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(r){i&&console.error("unable to copy using clipboardData: ",r),i&&console.error("falling back to prompt"),n="message"in t?t.message:"Copy to clipboard: #{key}, Enter",o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C",c=n.replace(/#{\s*key\s*}/g,o),window.prompt(c,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),s()}return f}},93645:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function a(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(19013),a=n(13882);function o(e,t){return(0,a.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(59910),a=n(13882),o=n(93645);function i(e,t,n){(0,a.Z)(2,arguments);var i=(0,r.Z)(e,t)/1e3;return(0,o.u)(null==n?void 0:n.roundingMethod)(i)}},54779:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/admin/help",function(){return n(44130)}])},44130:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(85893),a=n(71230),o=n(15746),i=n(33859),c=n(71577),s=n(27049),l=n(59652),u=n(89281),d=n(11700);n(67294);var f=n(5152),p=n.n(f),m=n(6960);let v=p()(()=>n.e(2424).then(n.t.bind(n,32424,23)),{loadableGenerated:{webpack:()=>[32424]},ssr:!1}),h=p()(()=>n.e(4143).then(n.t.bind(n,14143,23)),{loadableGenerated:{webpack:()=>[14143]},ssr:!1}),g=p()(()=>n.e(6460).then(n.t.bind(n,36460,23)),{loadableGenerated:{webpack:()=>[36460]},ssr:!1}),x=p()(()=>n.e(7118).then(n.t.bind(n,87118,23)),{loadableGenerated:{webpack:()=>[87118]},ssr:!1}),b=p()(()=>n.e(3436).then(n.t.bind(n,3436,23)),{loadableGenerated:{webpack:()=>[3436]},ssr:!1}),w=p()(()=>n.e(4829).then(n.t.bind(n,4829,23)),{loadableGenerated:{webpack:()=>[4829]},ssr:!1}),y=p()(()=>n.e(8864).then(n.t.bind(n,38864,23)),{loadableGenerated:{webpack:()=>[38864]},ssr:!1}),Z=p()(()=>n.e(6802).then(n.t.bind(n,36802,23)),{loadableGenerated:{webpack:()=>[36802]},ssr:!1}),C=p()(()=>n.e(2711).then(n.t.bind(n,2711,23)),{loadableGenerated:{webpack:()=>[2711]},ssr:!1}),j=p()(()=>n.e(1010).then(n.t.bind(n,71010,23)),{loadableGenerated:{webpack:()=>[71010]},ssr:!1});function E(){let e=[{icon:(0,r.jsx)(C,{style:{fontSize:"24px"}}),title:"I want to configure my owncast instance",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/configuration/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})},{icon:(0,r.jsx)(g,{style:{fontSize:"24px"}}),title:"Help configuring my broadcasting software",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/broadcasting/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})},{icon:(0,r.jsx)(w,{style:{fontSize:"24px"}}),title:"I want to embed my stream into another site",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/embed/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})},{icon:(0,r.jsx)(b,{style:{fontSize:"24px"}}),title:"I want to customize my website",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/website/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})},{icon:(0,r.jsx)(j,{style:{fontSize:"24px"}}),title:"I want to tweak my video output",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/encoding/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})},{icon:(0,r.jsx)(x,{style:{fontSize:"24px"}}),title:"I want to use an external storage provider",content:(0,r.jsx)("div",{children:(0,r.jsxs)("a",{href:"https://owncast.online/docs/storage/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(y,{})," Learn more"]})})}],t=[{icon:(0,r.jsx)(h,{style:{fontSize:"24px"}}),title:"I found a bug",content:(0,r.jsxs)("div",{children:["If you found a bug, then please",(0,r.jsxs)("a",{href:"https://github.com/owncast/owncast/issues/new/choose",target:"_blank",rel:"noopener noreferrer",children:[" ","let us know"]})]})},{icon:(0,r.jsx)(Z,{style:{fontSize:"24px"}}),title:"I have a general question",content:(0,r.jsxs)("div",{children:["Most general questions are answered in our",(0,r.jsxs)("a",{href:"https://owncast.online/faq/?source=admin",target:"_blank",rel:"noopener noreferrer",children:[" ","FAQ"]})," ","or exist in our"," ",(0,r.jsx)("a",{href:"https://github.com/owncast/owncast/discussions",target:"_blank",rel:"noopener noreferrer",children:"discussions"})]})},{icon:(0,r.jsx)(v,{style:{fontSize:"24px"}}),title:"I want to build add-ons for Owncast",content:(0,r.jsxs)("div",{children:["You can build your own bots, overlays, tools and add-ons with our",(0,r.jsx)("a",{href:"https://owncast.online/thirdparty?source=admin",target:"_blank",rel:"noopener noreferrer",children:"\xa0developer APIs.\xa0"})]})}];return(0,r.jsxs)("div",{className:"help-page",children:[(0,r.jsx)(d.Z,{style:{textAlign:"center"},children:"How can we help you?"}),(0,r.jsxs)(a.Z,{gutter:[16,16],justify:"space-around",align:"middle",children:[(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"500"}),(0,r.jsx)(d.Z,{level:2,children:"Troubleshooting"}),(0,r.jsx)(c.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs/troubleshooting/?source=admin",icon:(0,r.jsx)(y,{}),type:"primary",children:"Fix your problems"})]}),(0,r.jsxs)(o.Z,{xs:24,lg:12,style:{textAlign:"center"},children:[(0,r.jsx)(i.ZP,{status:"404"}),(0,r.jsx)(d.Z,{level:2,children:"Documentation"}),(0,r.jsx)(c.Z,{target:"_blank",rel:"noopener noreferrer",href:"https://owncast.online/docs?source=admin",icon:(0,r.jsx)(y,{}),type:"primary",children:"Read the Docs"})]})]}),(0,r.jsx)(s.Z,{}),(0,r.jsx)(d.Z,{level:2,children:"Common tasks"}),(0,r.jsx)(a.Z,{gutter:[16,16],children:e.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(l.Z,{children:(0,r.jsx)(u.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))}),(0,r.jsx)(s.Z,{}),(0,r.jsx)(d.Z,{level:2,children:"Other"}),(0,r.jsx)(a.Z,{gutter:[16,16],children:t.map(e=>(0,r.jsx)(o.Z,{xs:24,lg:12,children:(0,r.jsx)(l.Z,{children:(0,r.jsx)(u.Z,{avatar:e.icon,title:e.title,description:e.content})})},e.title))})]})}E.getLayout=function(e){return(0,r.jsx)(m.l,{page:e})}},11163:function(e,t,n){e.exports=n(80880)},60057:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(4942),a=n(1413),o=n(97685),i=n(45987),c=n(67294),s=n(81263),l=n(94184),u=n.n(l),d={adjustX:1,adjustY:1},f=[0,0],p={topLeft:{points:["bl","tl"],overflow:d,offset:[0,-4],targetOffset:f},topCenter:{points:["bc","tc"],overflow:d,offset:[0,-4],targetOffset:f},topRight:{points:["br","tr"],overflow:d,offset:[0,-4],targetOffset:f},bottomLeft:{points:["tl","bl"],overflow:d,offset:[0,4],targetOffset:f},bottomCenter:{points:["tc","bc"],overflow:d,offset:[0,4],targetOffset:f},bottomRight:{points:["tr","br"],overflow:d,offset:[0,4],targetOffset:f}},m=n(15105),v=n(75164),h=n(88603),g=m.Z.ESC,x=m.Z.TAB,b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"],w=c.forwardRef(function(e,t){var n,l,d,f,m,w,y,Z,C,j,E,N,k,O,_,z,P=e.arrow,S=void 0!==P&&P,A=e.prefixCls,R=void 0===A?"rc-dropdown":A,D=e.transitionName,M=e.animation,I=e.align,T=e.placement,q=e.placements,L=e.getPopupContainer,G=e.showAction,V=e.hideAction,F=e.overlayClassName,H=e.overlayStyle,U=e.visible,B=e.trigger,X=void 0===B?["hover"]:B,W=e.autoFocus,Y=(0,i.Z)(e,b),Q=c.useState(),J=(0,o.Z)(Q,2),K=J[0],$=J[1],ee="visible"in e?U:K,et=c.useRef(null);c.useImperativeHandle(t,function(){return et.current}),d=(l={visible:ee,setTriggerVisible:$,triggerRef:et,onVisibleChange:e.onVisibleChange,autoFocus:W}).visible,f=l.setTriggerVisible,m=l.triggerRef,w=l.onVisibleChange,y=l.autoFocus,Z=c.useRef(!1),C=function(){if(d&&m.current){var e,t,n,r;null===(e=m.current)||void 0===e||null===(t=e.triggerRef)||void 0===t||null===(n=t.current)||void 0===n||null===(r=n.focus)||void 0===r||r.call(n),f(!1),"function"==typeof w&&w(!1)}},j=function(){var e,t,n,r,a=(0,h.tS)(null===(e=m.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===(r=n.getElement)||void 0===r?void 0:r.call(n))[0];return null!=a&&!!a.focus&&(a.focus(),Z.current=!0,!0)},E=function(e){switch(e.keyCode){case g:C();break;case x:var t=!1;Z.current||(t=j()),t?e.preventDefault():C()}},c.useEffect(function(){return d?(window.addEventListener("keydown",E),y&&(0,v.Z)(j,3),function(){window.removeEventListener("keydown",E),Z.current=!1}):function(){Z.current=!1}},[d]);var en=function(){var t=e.overlay;return"function"==typeof t?t():t},er=function(){var e=en();return c.createElement(c.Fragment,null,S&&c.createElement("div",{className:"".concat(R,"-arrow")}),e)},ea=V;return ea||-1===X.indexOf("contextMenu")||(ea=["click"]),c.createElement(s.Z,(0,a.Z)((0,a.Z)({builtinPlacements:void 0===q?p:q},Y),{},{prefixCls:R,ref:et,popupClassName:u()(F,(0,r.Z)({},"".concat(R,"-show-arrow"),S)),popupStyle:H,action:X,showAction:G,hideAction:ea||[],popupPlacement:void 0===T?"bottomLeft":T,popupAlign:I,popupTransitionName:D,popupAnimation:M,popupVisible:ee,stretch:(N=e.minOverlayWidthMatchTrigger,k=e.alignPoint,"minOverlayWidthMatchTrigger"in e?N:!k)?"minWidth":"",popup:"function"==typeof e.overlay?er:er(),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:L}),(_=(O=e.children).props?O.props:{},z=u()(_.className,void 0!==(n=e.openClassName)?n:"".concat(R,"-open")),ee&&O?c.cloneElement(O,{className:z}):O))})},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}},function(e){e.O(0,[2074,173,164,2744,9680,4931,5402,2231,492,7524,9915,4526,5101,2928,1700,3859,180,6960,9774,2888,179],function(){return e(e.s=54779)}),_N_E=e.O()}]); |