"use strict";(self.webpackChunkdami=self.webpackChunkdami||[]).push([[3623],{73623:(t,a,e)=>{e.r(a),e.d(a,{default:()=>s});var i=e(31263),r=e(31791);const s=async function(t){const a=this.getBlockConnections(t.id);try{if("main-window"===t.data.windowType)return this.activeTab.frameId=0,delete this.frameSelector,{data:"",nextBlockId:a};const{url:e,isSameOrigin:s}=await this._sendMessageToTab(t,{frameId:0});if(s)return this.frameSelector=t.data.selector,{data:t.data.selector,nextBlockId:a};const c=await(0,r.Xs)(this.activeTab.id);if((0,i.aX)(c,e))return this.activeTab.frameId=c[e],await(0,i._v)(1e3),{data:this.activeTab.frameId,nextBlockId:a};throw new Error("no-iframe-id")}catch(e){throw e.data={selector:t.data.selector},e.nextBlockId=a,e}}}}]);