"use strict";(self.webpackChunkdami=self.webpackChunkdami||[]).push([[499],{30499:(a,t,e)=>{e.r(t),e.d(t,{default:()=>r});var i=e(93150),s=e.n(i),d=e(31263),o=e(31791);const r=async function(a){await async function(a){if("upload-file"===a){if(await s().extension.isAllowedFileSchemeAccess())return!0;throw new Error("no-file-access")}if("clipboard"===a&&!await s().permissions.contains({permissions:["clipboardRead"]}))throw new Error("no-clipboard-acces");return!0}(a.label);const t=(a.data.settings?.debugMode??!1)&&!this.settings.debugMode;try{t&&(await(0,o.xq)(this.activeTab.id),a.debugMode=!0);const e=await this._sendMessageToTab(a,{frameId:this.activeTab.frameId||0});if(a.data.saveData&&"forms"!==a.label||a.data.getValue&&a.data.saveData){const t=this.engine.columns[a.data.dataColumn]?.type||"any",i=t=>{this.addDataToColumn(a.data.dataColumn,t);(0,d.aX)(a.data,"extraRowDataColumn")&&a.data.addExtraRow&&this.addDataToColumn(a.data.extraRowDataColumn,a.data.extraRowValue)};Array.isArray(e)&&"array"!==t?e.forEach((a=>{i(a)})):i(e)}return a.data.assignVariable&&this.setVariable(a.data.variableName,e),t&&chrome.debugger.detach({tabId:this.activeTab.id}),{data:e,nextBlockId:this.getBlockConnections(a.id)}}catch(e){throw t&&chrome.debugger.detach({tabId:this.activeTab.id}),e.data={name:a.label,selector:a.data.selector},e}}}}]);