1import{K as _,e as a,D as r,G as i,O as u,F as k,E as f,Q as C,R as M,W as o,T as n}from"./vendor.BbJGQBol.js";import{t as A,F as w,__tla as I}from"./botMenu.DQuTw-Kv.js";import{_ as v,p as B,__tla as D}from"./index.Io32nV-M.js";import"./ic_fishFood.CrX4shhi.js";import"./ic_crown.BARlYXfv.js";let c,E=Promise.all([(()=>{try{return I}catch{}})(),(()=>{try{return D}catch{}})()]).then(async()=>{const l={class:"thirdPartyMarket"},p={class:"thirdPartyMarket__herder"},b={class:"desc"},g={class:"thirdPartyMarket__body"},y=["lkey","onClick"];c=v({name:"ThirdPartyMarket",props:{},components:{FeatureCard:w},data:()=>({botId:"",thirdPartyMarkets:A}),methods:{...n(["updateBreadcrumbPath"]),...n("chatbot",["getChatbot"]),...n("alert",["openDialog"]),async initBreadcrumb(){this.tempChatbot.botName||await this.getChatbot(this.botId),this.updateBreadcrumbPath([{name:this.tempChatbot.botName,path:{name:"chatbotMainPage"}},{nameKey:"thirdPartyMarket"}])},showDialog(t,s,d){const h={callback:async()=>{await s()},message:t,okText:d,icName:"ic_manta_alert",classOk:"btn--primaryDark"};this.openDialog(h)},getPermission(t){return!t||this.botConfig[t]||this.botConfig[t]===null},goToPage(t,s){s||s===void 0?this.$router.push(t):this.showDialog(this.$t("upgradePlanMessage"),()=>{this.$router.push({name:"account"})},this.$t("upgrade"))}},computed:{...o("chatbot",["tempChatbot"]),...o("user",["isAdmin","userConfig"]),...o("chatbot",["tempChatbot","isEdited","isInuse","editPermission","botConfig","userBotViewPermissions"]),isEdit(){return!this.isEdited||Object.values(this.isEdited).some(t=>t)},isAgency(){return B.agent.vip.indexOf(this.userConfig.userVip)!==-1},thirdPartyMarketsList(){return this.thirdPartyMarkets.filter(t=>!t.requiresAdmin&&!t.requiresAgency||!(!t.requiresAdmin||!this.isAdmin)||!(!t.requiresAgency||!this.isAgency)).map(t=>({...t,permission:this.getPermission(t.permission),disabled:!this.getPermission(t.permission)||!this.userBotViewPermissions[t.viewPermissionKey]&&!this.editPermission}))}},watch:{},async created(){this.botId=this.$route.params.chatbotID,this.initBreadcrumb()},unmounted(){}},[["render",function(t,s,d,h,$,m){const P=_("FeatureCard");return a(),r("div",l,[i("div",p,[i("h2",null,u(t.$t("thirdPartyMarketTitle")),1),i("p",b,u(t.$t("thirdPartyMarketDesc")),1)]),i("div",g,[i("ul",null,[(a(!0),r(k,null,f(m.thirdPartyMarketsList,(e,T)=>(a(),r("li",{lkey:e.nameKey,onClick:N=>m.goToPage(e.to,e.permission)},[C(P,M({ref_for:!0},e,{showBadge:t.isEdited[e.isEditedName],isInuse:t.isInuse[e.inuseName],disabled:e.disabled,isAdmin:t.isAdmin}),null,16,["showBadge","isInuse","disabled","isAdmin"])],8,y))),256))])])])}],["__scopeId","data-v-d8cc02ca"]])});export{E as __tla,c as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.