(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9504],{36795:function(o,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/construct/flow/libro",function(){return t(3675)}])},3675:function(o,n,t){"use strict";t.r(n);var c=t(85893),e=t(41468),a=t(39332),l=t(67294),i=t(67421);n.default=()=>{let o=(0,a.useSearchParams)(),{i18n:n}=(0,i.$G)(),{mode:t}=(0,l.useContext)(e.p),u=(0,l.useRef)(null),r=(null==o?void 0:o.get("id"))||"";return(0,l.useEffect)(()=>{console.log(window.location);let o=o=>{var n,t;null===(n=u.current)||void 0===n||null===(t=n.contentWindow)||void 0===t||t.postMessage("lang:".concat(o),"".concat(window.location.protocol,"//").concat(window.location.hostname,":5671"))};return n.on("languageChanged",o),()=>{n.off("languageChanged",o)}},[]),(0,l.useEffect)(()=>{var o,n;null===(o=u.current)||void 0===o||null===(n=o.contentWindow)||void 0===n||n.postMessage("theme:".concat(t),"".concat(window.location.protocol,"//").concat(window.location.hostname,":5671"))},[t]),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)("iframe",{src:"".concat(window.location.protocol,"//").concat(window.location.hostname,":5671/dbgpt?flow_uid=").concat(r),className:"h-full",ref:u})})}}},function(o){o.O(0,[9774,2888,179],function(){return o(o.s=36795)}),_N_E=o.O()}]);