Net.Like.Xue.Tokyo/Assets/Vuplex/WebView/Documentation/static/js/main.687535a3.chunk.jsm

1 line
222 KiB
JavaScript
Raw Normal View History

2025-06-09 15:55:24 +08:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{25:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return o});var a=n(2),i=n(3),r=n(56),o=function(){function t(){Object(a.a)(this,t)}return Object(i.a)(t,null,[{key:"isStaging",value:function(){if("object"===typeof location&&"string"===typeof location.host){var t=location.host;return"localhost"===location.hostname&&location.port.length<=4||t.includes("192.168")||t.includes("staging")}return!("object"!==typeof e||!Object({NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_LOCAL_DOCS:"true"}))&&(Object({NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_LOCAL_DOCS:"true"}).STAGE||Object({NODE_ENV:"production",PUBLIC_URL:".",REACT_APP_LOCAL_DOCS:"true"}).GATSBY_STAGE)===r.a.Staging}}]),t}()}).call(this,n(35))},293:function(e,t,n){},295:function(e,t,n){},297:function(e,t,n){},299:function(e,t,n){},301:function(e,t,n){},305:function(e,t,n){},307:function(e,t,n){},309:function(e,t,n){},311:function(e,t,n){},313:function(e,t,n){},315:function(e,t,n){},318:function(e,t,n){},36:function(e,t,n){},399:function(e,t,n){},401:function(e,t,n){},403:function(e,t,n){},405:function(e,t,n){},407:function(e,t,n){},411:function(e,t,n){},413:function(e,t,n){},415:function(e,t,n){},418:function(e,t,n){},420:function(e,t,n){},424:function(e,t,n){},428:function(e,t,n){"use strict";n.r(t);var a=n(0),i=n.n(a),r=n(54),o=n(431),s=n(13),l=n(55),c=n.n(l),d=n(22),p=n.n(d),u=n(43),m=n.n(u),h=n(42),b=n.n(h),w=n(2),f=n(3),v=n(6),g=n(4),y=n(5),W=n(432),V=n(429),E=n(430),A=n(434),I=n(25),P=I.a.isStaging(),x={Contact:"https://support.vuplex.com/contact",Dashboard:P?"https://dashboard-staging.vuplex.com":"https://dashboard.vuplex.com",Developer:"https://developer.vuplex.com",Login:P?"https://login-staging.vuplex.com":"https://login.vuplex.com",Store:P?"https://store-staging.vuplex.com":"https://store.vuplex.com",Facebook:"https://www.facebook.com/vuplexbrowser/",GitHub:"https://github.com/vuplex",Twitter:"https://twitter.com/vuplex"},k=n(57),S=n.n(k),T=n(58),D=n.n(T),C=(n(293),"https://support.vuplex.com/search"),U=function(e){function t(){var e,n;Object(w.a)(this,t);for(var a=arguments.length,i=new Array(a),r=0;r<a;r++)i[r]=arguments[r];return(n=Object(v.a)(this,(e=Object(g.a)(t)).call.apply(e,[this].concat(i)))).state={value:""},n._handleInputChange=function(e){return n.setState({value:e.target.value})},n._handleKeyDown=function(e){13===e.keyCode&&n._submitSearch()},n._submitSearch=function(){n.state.value.trim().length&&(location.href="".concat(C,"?q=").concat(encodeURIComponent(n.state.value.trim())))},n}return Object(y.a)(t,e),Object(f.a)(t,[{key:"render",value:function(){return i.a.createElement("div",{className:"search-input"},i.a.createElement("input",{type:"search",placeholder:"Search documentation",value:this.state.value,onChange:this._handleInputChange,onKeyDown:this._handleKeyDown}),i.a.createElement("button",{disabled:!this.state.value.trim().length,onClick:this._submitSearch},i.a.createElement("img",{src:D.a,alt:"search"})))}}]),t}(a.Component),O=n(59),N=n.n(O);n(295);function L(){var e;location.href=(e=location.href,"".concat(x.Login,"/login?returnUrl=").concat(encodeURI(e)))}var R=n(34),M=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"The user is not authenticated; navigating to login...";return Object(w.a)(this,t),Object(v.a)(this,Object(g.a)(t).call(this,e))}return Object(y.a)(t,e),t}(Object(R.a)(Error)),F=/vx-s=([a-z0-9]+)/i,z=function(){function e(){Object(w.a)(this,e)}return Object(f.a)(e,null,[{key:"clearSession",value:function(){this._setSessionCookie("")}},{key:"getSession",value:function(){try{var e=F.exec(document.cookie);if(!e)return null;var t=e[1];if(!t)return null;var n=atob(t);return JSON.parse(n)}catch(a){return console.warn("An error occurred while getting the session info: "+a),null}}},{key:"getSessionOrNavigateToLogin",value:function(){var t=e.getSession();if(!t)throw L(),new M;return t}},{key:"setSession",value:function(e){var t=JSON.stringify(e),n=btoa(t);this._setSessionCookie(n,1209600)}},{key:"_setSessionCookie",val