build/static/js/101.a5c4f97d.chunk.js

1 line
4.1 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[101],{"0X2M":function(t,e,a){"use strict";var n=a("Q3sF"),o=a("xcSo"),i=Array.prototype;t.exports=function(t){var e=t.lastIndexOf;return t===i||n(i,t)&&e===i.lastIndexOf?o:e}},BfIq:function(t,e,a){t.exports=a("k2Gq")},MW1W:function(t,e,a){"use strict";a.r(e);var n=a("EcSs"),o=a.n(n),i=(a("+L6B"),a("2/Rp")),r=(a("miYZ"),a("tsqr")),c=a("zLi2"),s=a.n(c),l=a("BfIq"),u=a.n(l),d=a("cDcd"),m=a.n(d),f=a("jKe7"),b=a("2INN"),g=a("CnBM"),p=a.n(g),v=a("HUFq"),E=a("2iEm"),h=a("5A3O"),x=a("spEH"),y=(a("ifVa"),a("m/JD")),B=p()({loader:function(){return Promise.all([a.e(2),a.e(3),a.e(4),a.e(5),a.e(57)]).then(a.bind(null,"ygQT"))},loading:v.a}),O=p()({loader:function(){return a.e(105).then(a.bind(null,"CdhJ"))},loading:v.a}),I=p()({loader:function(){return a.e(123).then(a.bind(null,"IlXg"))},loading:v.a}),j=p()({loader:function(){return Promise.all([a.e(5),a.e(10),a.e(154)]).then(a.bind(null,"8MPT"))},loading:v.a});e.default=Object(h.a)((function(t){var e=t.match.params.id,a=t.current_user,n=t.location.pathname,c=t.history,l=Object(d.useState)(void 0),g=s()(l,2),p=g[0],v=g[1],h=Object(d.useState)(void 0),N=s()(h,2),_=N[0],D=N[1];return Object(d.useEffect)((function(){Object(y.l)({user_id:a&&a.user_id,bot_id:e}).then((function(t){if(t&&200===t.code){var e=t.data.bot_output_vo.bot_name;document.title="".concat(e,"-Bot开发者配置"),D(t.data.bot_output_vo)}else t&&500===t.code&&(r.a.error("您没有权限访问该bot"),c.push("/settings/mybot/configuration"))}))}),[p]),m.a.createElement("div",{className:"configurateBotBox"},m.a.createElement("div",{className:"configurateBotHead mb30"},m.a.createElement("span",{className:"font-18 configurateBotTitle"},"Bot开发者配置"),m.a.createElement(i.a,{style:{width:"53px",padding:"0"},className:"grayBorBut"},m.a.createElement(E.a,{to:"/settings/mybot/configuration"},"返回"))),m.a.createElement(x.g,null,m.a.createElement("div",{className:"leftBox mr30"},m.a.createElement(E.a,{to:"/settings/mybot/configuration/".concat(e,"/basic"),className:-1===u()(n).call(n,"/jurisdiction")&&-1===u()(n).call(n,"/advanced")?"active itemBox":"itemBox"},"基本信息"),m.a.createElement(E.a,{to:"/settings/mybot/configuration/".concat(e,"/jurisdiction"),className:u()(n).call(n,"/jurisdiction")>-1?"active itemBox":"itemBox"},"权限&订阅"),m.a.createElement(E.a,{to:"/settings/mybot/configuration/".concat(e,"/advanced"),className:u()(n).call(n,"/advanced")>-1?"active itemBox":"itemBox"},"高级选项")),m.a.createElement(f.a,null,m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id/advanced/putaway",render:function(e){return m.a.createElement(j,o()({},t,e,{botDetail:_,setReload:v}))}}),m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id/advanced/putaway/edit",render:function(e){return m.a.createElement(j,o()({},t,e,{botDetail:_,setReload:v}))}}),m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id/basic",render:function(e){return m.a.createElement(B,o()({},t,e,{botDetail:_,setReload:v}))}}),m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id/jurisdiction",render:function(e){return m.a.createElement(O,o()({},t,e,{botDetail:_,setReload:v}))}}),m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id/advanced",render:function(e){return m.a.createElement(I,o()({},t,e,{botDetail:_,setReload:v}))}}),m.a.createElement(b.a,{path:"/settings/mybot/configuration/:id",render:function(e){return m.a.createElement(B,o()({},t,e,{botDetail:_,setReload:v}))}}))))}))},OG05:function(t,e,a){"use strict";var n=a("pevS"),o=a("hVCs");n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},hVCs:function(t,e,a){"use strict";var n=a("oLk2"),o=a("pCEo"),i=a("x9K+"),r=a("x08Q"),c=a("n2Hk"),s=Math.min,l=[].lastIndexOf,u=!!l&&1/[1].lastIndexOf(1,-0)<0,d=c("lastIndexOf"),m=u||!d;t.exports=m?function(t){if(u)return n(l,this,arguments)||0;var e=o(this),a=r(e);if(0===a)return-1;var c=a-1;for(arguments.length>1&&(c=s(c,i(arguments[1]))),c<0&&(c=a+c);c>=0;c--)if(c in e&&e[c]===t)return c||0;return-1}:l},ifVa:function(t,e,a){},k2Gq:function(t,e,a){"use strict";var n=a("0X2M");t.exports=n},xcSo:function(t,e,a){"use strict";a("OG05");var n=a("wY6U");t.exports=n("Array","lastIndexOf")}}]);