"use strict";(self.webpackChunkflow_web_extension=self.webpackChunkflow_web_extension||[]).push([["43744"],{733479:function(e,t,n){n.r(t),n.d(t,{CreditToastCmdPlugin:()=>l});var i=n(57723),s=n(788704),a=n(383154),o=n(41139),c=n(666291),d=[i.PO.CreditBlockSceneUsageDetail,i.PO.CreditBlockSceneCreditEstimation],r=[i.PO.CreditBlockSceneNone,i.PO.CreditBlockSceneInsufficientBalance,i.PO.CreditBlockSceneCreditRefund];class l{constructor(){this.pluginIdentifier=c.$,this.handleCmd=e=>{if("1.0"===e.data.version){var{conversation_id:t}=e.data.data;o.k.persist.info({message:"Cmd: PushToast",meta:{conversation_id:t}});var{credit_toast:n="",credit_scene:i}=e.data.data.ext||{};if(n&&i){if((0,s.L)("credit_toast_show",{type:"credit_deduct"}),r.includes(Number(i))){a.FN.warning({showClose:!1,content:n});return}d.includes(Number(i))&&a.FN.info({showClose:!1,content:n})}}}}}}}]);
//# sourceMappingURL=credit-toast-cmd-plugin.js.map