1import{d as C,l as t,m as i,t as r,v as s,ae as $,p as n,F as g,a8 as y,cf as B,z as d,_ as D,C as k,y as z,B as c,q as p,cO as A,cC as u,am as U,h as _,aq as V}from"./Bo-05TsC.js";const H={class:"px-5 py-4"},L={class:"border-b px-4 py-3 font-semibold"},N={key:0,class:"flex flex-wrap gap-5 px-5"},j=["src","alt"],q={key:1,class:"bg-light mx-5 inline-flex min-h-[9rem] flex-col items-center justify-center rounded p-5"},E={class:"mt-2 text-sm font-medium opacity-60"},F={class:"border-b px-4 py-3 font-semibold"},M={key:1,class:"empty"},G={class:"border-b px-4 py-3 font-semibold"},O={key:0,class:"px-5"},P={class:"mb-2 font-bold"},W={class:"max-w-md flex-1"},J={key:0,class:"text-baseText/60 flex-1"},K={key:1,class:"text-baseText/60 flex-1"},Q={key:0},R={key:1},X=C({__name:"preview",props:{device:{}},setup(e){const I=U(),f=_(()=>{const a=[],b=e.device instanceof u&&e.device.deviceMedia?.map(o=>({url:o.url,alt:o.altText}))||[];return e.device instanceof u?(e.device.frontImageUrl&&a.push({url:e.device.frontImageUrl,alt:e.device.frontImageAltText}),e.device.backImageUrl&&a.push({url:e.device.backImageUrl,alt:e.device.backImageAltText})):e.device.promotionalImages?.length?e.device.promotionalImages.forEach(o=>{a.push({url:o.image,alt:o.altText})}):(e.device.image&&a.push({url:e.device.image,alt:e.device.imageAltText}),e.device.backImage&&a.push({url:e.device.backImage,alt:e.device.backImageAltText})),[...a,...b]}),x=_(()=>e.device instanceof u&&e.device.specificationGroups?.map(a=>({name:a.name,specifications:a.customDeviceSpecifications}))||[]);return(a,b)=>{const o=D,w=B,S=z,v=$;return t(),i("div",H,[r(v,{"no-body":"",class:"mx-auto max-w-7xl rounded border"},{default:s(()=>[r(v,null,{header:s(()=>[d("div",L,c(a.$t("authoring.device_edit-images-section")),1)]),default:s(()=>[n(f)&&n(f).length?(t(),i("div",N,[(t(!0),i(g,null,y(n(f),(l,h)=>(t(),i("div",{key:h,class:"flex w-[220px] items-center justify-center"},[r(w,null,{image:s(()=>[l.url?(t(),i("img",{key:0,src:n(I)({src:l.url,maxWidth:200,maxHeight:249}),alt:l.alt||void 0},null,8,j)):k("",!0)]),preloader:s(()=>[d("div",null,[r(o,{size:"12px",class:"text-dark mr-2"})])]),_:2},1024)]))),128))])):(t(),i("div",q,[r(S,{type:"image",size:36,"stroke-color":"currentColor","stroke-size":1,class:"opacity-60"}),d("p",E,c(a.$t("authoring.text_not-image")),1)]))]),_:1}),r(v,null,{header:s(()=>[d("div",F,c(a.$t("authoring.device_edit-description-section")),1)]),default:s(()=>[e.device.content?(t(),p(A,{key:0,data:e.device.content,"editor-version":e.device instanceof n(u)&&e.device.editorVersion},null,8,["data","editor-version"])):(t(),i("div",M,c(a.$t("authoring.text_not-specified")),1))]),_:1}),e.device instanceof n(u)&&e.device.hasSpecifications?(t(),p(v,{key:0},{header:s(()=>[d("div",G,c(a.$t("authoring.device_edit-specs-section")),1)]),default:s(()=>[n(x)&&n(x).length?(t(),i("div",O,[(t(!0),i(g,null,y(n(x),(l,h)=>(t(),i("div",{key:h,class:"pb-14 pt-1 text-sm"},[d("h4",P,c(l.name),1),(t(!0),i(g,null,y(l.specifications,(m,T)=>(t(),i("div",{key:T,class:"mx-2 my-1 flex flex-nowrap items-center text-sm leading-7"},[d("div",W,c(m.name),1),m.value?(t(),i("span",J,c(m.value),1)):(t(),i("span",K,[m.isSupported!==null?(t(),i("span",Q,c(a.$t("all.btn_"+(m.isSupported?"yes":"no"))),1)):(t(),i("span",R,"-"))]))]))),128))]))),128))])):k("",!0)]),_:1})):k("",!0)]),_:1})])}}}),Z=V(X,[["__scopeId","data-v-a712cc69"]]);export{Z as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.