(window.webpackJsonp=window.webpackJsonp||[]).push([[66],{2146:function(e,t,n){"use strict";n.r(t);n(28);var r=n(51),o=n.n(r),c=n(2),l=Object(c.h)({props:{settings:Object},setup:function(e,t){var n=Object(c.J)(null),r=location.origin,l=Object(c.J)(e.settings);Object(c.Y)(l,(function(e){t.emit("input",e)}),{deep:!0});var d=Object(c.b)((function(){return"".concat(window.location.origin,"/credentials/oauth/tokens")})),h=Object(c.b)((function(){var e="scope=channel:edit:commercial channel:moderate chat:edit chat:read clips:edit user:edit:broadcast user:read:broadcast whispers:edit whispers:read channel:manage:broadcast moderator:manage:announcements",t=l.value.general.tokenServiceCustomClientId[0],n=l.value.general.tokenServiceCustomClientSecret[0];return"SogeBot Token Generator"===l.value.general.tokenService[0]?"https://twitch-token-generator.soge.workers.dev/request-tokens?".concat(e):"".concat(d.value,"?").concat(e,"&clientId=").concat(t,"&clientSecret=").concat(n)})),v=Object(c.b)((function(){if(!l.value)return"";var e="scope=channel:edit:commercial channel:manage:polls channel:manage:predictions channel:moderate channel:read:hype_train channel:read:polls channel:read:redemptions channel:read:subscriptions channel_editor chat:edit chat:read moderation:read moderator:read:chatters user:edit:broadcast user:read:broadcast",t=l.value.general.tokenServiceCustomClientId[0],n=l.value.general.tokenServiceCustomClientSecret[0];return"SogeBot Token Generator"===l.value.general.tokenService[0]?"https://twitch-token-generator.soge.workers.dev/request-tokens?".concat(e):"".concat(d.value,"?").concat(e,"&clientId=").concat(t,"&clientSecret=").concat(n)}));return{_settings:l,translate:o.a,origin:r,tab:n,redirectUri:d,botUrl:h,broadcasterUrl:v}}}),d=n(46),h=n(44),v=n.n(h),m=n(141),component=Object(d.a)(l,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-overlay",[e._v("\n  Please set your tokens at\n  "),n("div",{staticStyle:{"font-size":"2em","font-weight":"bold"}},[n("a",{attrs:{href:"https://dash.sogebot.xyz/settings/modules/services/twitch?server="+e.origin,target:"_blank"}},[e._v("https://dash.sogebot.xyz/settings/modules/services/twitch?server="+e._s(e.origin))])])])}),[],!1,null,null,null);t.default=component.exports;v()(component,{VOverlay:m.a})}}]);