var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
import{b as a}from"https://www.convertcalculator.com/scripts/chunk-VBGB5CH2.js";import"https://www.convertcalculator.com/scripts/chunk-CDMV5D6B.js";import"https://www.convertcalculator.com/scripts/chunk-66GJGIWN.js";var m=({calculatorId:o,el:t})=>{let e=document.createElement("iframe");e.className="calculator-frame",e.id=`calculator-frame-${o}`,e.sandbox="allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox",e.title="Calculator Frame",e.style="border:none;",e.width="100%",e.height="16rem";let n="https://www.convertcalculator.com";e.src=`${n}/embed/${o}?url=${encodeURIComponent(window.location.href)}&framed=1`,t.firstChild&&t.removeChild(t.firstChild),t.appendChild(e);let r=l=>{let{data:i={}}=l,{calculatorId:s,payload:d,type:c}=i;s===o&&a({calculatorId:o,payload:d,type:c,context:{parentWindow:window,calculatorContainer:e}})};window.addEventListener("message",r)},w=m;export{w as default};
//# sourceMappingURL=https://www.convertcalculator.com/scripts/initFramedCalculator-HM2GGITZ.js.map

}