import{h as s}from"./p-2c9d0870.js";import{StringUtils as t}from"@sankhyalabs/core";class n{constructor(s,t,n){this.snkApplication=s,this.keyConfigEnableContinuousInsert=`${t}enableContinuousInsert${n||""}`}handleSaveConfig(s){return this.snkApplication.saveConfig(this.keyConfigEnableContinuousInsert,s)}getConfig(){return this.snkApplication.getConfig(this.keyConfigEnableContinuousInsert).then((s=>!!s&&"true"==s)).catch((()=>!1))}getMessage(s,t){var n,i;return null===(i=null===(n=this.snkApplication)||void 0===n?void 0:n.messagesBuilder)||void 0===i?void 0:i.getMessage(s,t)}actionContinuousInsert(n,i){return{value:t.generateUUID(),label:this.getMessage(n?"continuousInsertUtils.actions.disable":"continuousInsertUtils.actions.enable"),enabled:!0,itemBuilder:()=>s("div",{class:"ez-dropdown__item-wrapper",onClick:i},s("span",{class:"ez-dropdown__item-label"},this.getMessage(n?"continuousInsertUtils.actions.disable":"continuousInsertUtils.actions.enable")))}}}export{n as C}