import{_}from"./WebSourceEsbPartDetails-BtJaMGPz.mjs";import{_ as m,o as u,c as p,a as n,d,h as l,k as r,b,l as i}from"./CmnEfQIC.js";import"./WebSourceEsbDataSheetButton-CV8srUCo.mjs";import"./Modal-CZRoBy2z.mjs";const f={name:"WebSourceEsbDataSheet",props:{dataSheetUrl:{type:String,required:!0},partNumber:{type:String,required:!0},manufacturer:{type:[Number,String],required:!0},page:{type:Object}}},h={class:"sesb-data-sheet-wrapper"},S={class:"sesb-data-sheet"},g=["src"];function y(a,e,t,c,s,x){const o=_;return u(),p("div",h,[n("div",S,[d(o,{"part-number":t.partNumber,manufacturer:t.manufacturer,"show-button-bar":!1,"data-sheet-mode":"tab",class:"details"},null,8,["part-number","manufacturer"]),n("iframe",{class:"iframe",src:"https://docs.google.com/viewer?embedded=true&url="+encodeURIComponent(t.dataSheetUrl)},null,8,g)])])}const k=m(f,[["render",y],["__scopeId","data-v-62f89f76"]]),v={__name:"SourceEsbDataSheetBlock",props:{page:{type:Object,required:!0}},setup(a){const{query:e}=l();return(t,c)=>{const s=k;return r(e).part_number?(u(),b(s,{key:0,"part-number":r(e).part_number,manufacturer:r(e).manufacturer,"data-sheet-url":r(e).data_sheet_url,page:a.page},null,8,["part-number","manufacturer","data-sheet-url","page"])):i("",!0)}}};export{v as default};