PageSourceSearch

https://www.officer.com/_nuxt/WebImage-BRmiTuSd.mjs

js officer.com collected 2026-09-24 08:46:42 UTC 4,570 bytes, 1 lines download raw bytes

1import{A as e,D as t,H as n,Mn as r,O as i,Ot as a,P as o,dt as s,it as c,k as l,kn as u,un as d}from"./vue.runtime.esm-bundler-DK-ieOMu.mjs";import{t as f}from"./IconElement-DRwLcDEX.mjs";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.mjs";import{m}from"#entry";d(),n();var h={props:{credit:{type:String,required:!0},width:{type:[Number,String]}},data(){return{isActive:!1}},computed:{},methods:{showCredit(){this.isActive=!this.isActive}}},g={class:`text-wrapper`},_=[`innerHTML`],v={class:`icon-wrapper`};function y(n,i,a,s,d,p){let m=f;return a.credit&&a.credit!==`undefined`?(c(),e(`div`,{key:0,class:u([`image-credit`,d.isActive?`click`:``])},[t(`div`,g,[t(`div`,{class:`text`,style:r({fontFamily:n.$ss.general.primaryFontFamily}),innerHTML:a.credit},null,12,_)]),t(`div`,v,[o(m,{class:`icon`,width:16,icon:`mdi:image-area`,onClick:i[0]||=e=>p.showCredit()})])],2)):l(``,!0)}var b=Object.assign(p(h,[[`render`,y],[`__scopeId`,`data-v-ab10a904`]]),{__name:`WebImageCredit`});n(),d();var x={props:{alt:{type:String},caption:{type:String},credit:{type:String},image:{type:String},metaData:{type:Object},width:{type:Number},height:{type:Number},contentType:{type:String,default:``},imageLink:{type:String,default:``},maxCaptionWidth:{type:String,default:`100%`},captionAlignment:{type:String,default:`left`},lazyLoad:{type:Boolean,default:!0},aspectRatio:{type:[Number,String],default:``},ignoreStyling:{type:Boolean,default:!1},useNativeSize:{type:Boolean,default:!1},target:{type:String},underlineCaption:{type:Boolean,default:!0},roundedCorners:{type:Boolean}},data(){return{currSize:this.width&this.height?`custom`:`tiny`,borderRadius:`0`}},computed:{imageInfo(){let e=this.width&this.height?{custom:`custom`}:{tiny:250,small:320,medium:640,large:950,xlarge:1200},t={};return Object.keys(e).forEach(n=>{let r=this.image.replace(/&h=[0-9]*/gi,``).replace(/&w=[0-9]*/gi,``),i=parseFloat(this.aspectRatio)>0?parseFloat(this.aspectRatio):this.aspectRatio===`full-teaser`?1.8:this.aspectRatio===`small-teaser`?100:this.aspectRatio===`issue`?.72:this.metaData?.PixelWidth?this.metaData.PixelWidth/this.metaData.PixelHeight:``,a=this.height??i?Math.round(e[n]/i):``,o=this.width??i?e[n]:``,s=i?`${a?`&h=${a}&height=${a}`:``}${o?`&w=${o}&width=${o}`:``}`:`?w=${e[n]}&width=${e[n]}`;t[n]={url:`${r}${s}`,height:a,width:o||e[n]}}),t},imageCredits(){let e=this.credit??void 0;if(e){let t=e.matchAll(RegExp(`<s*a[^>]*>(.*?)<s*/s*a>`,`g`));for(let n of t)e=e.replace(n[0],n[0].replace(`>`,` rel="nofollow"; style="color: #ffffff;" target="_blank";>`))}return e}},unmounted(){window.removeEventListener(`resize`,this.determineImageSize)},mounted(){window.addEventListener(`resize`,this.determineImageSize),this.determineImageSize()},methods:{determineImageSize(){let e=this.$el.clientWidth;if(!this.width&!this.height){let t=this.width&this.height?`custom`:`tiny`;this.borderRadius=this.roundedCorners?`0 20px`:`0`,e>250&&e<=320?t=`small`:e>320&&e<=640?t=`medium`:e>640&&e<=950?(t=`large`,this.borderRadius=this.roundedCorners?`0 24px`:`0`):e>950&&(t=`xlarge`),this.currSize!==t&&(this.currSize=t)}}}},S={ref:`web-image`,class:`web-image`},C={class:`ebm-image-wrapper`},w={key:0},T={key:1,class:`image-content`},E=[`innerHTML`];function D(n,d,f,p,h,g){let _=b,v=m;return c(),e(`div`,S,[t(`figure`,C,[g.imageCredits?(c(),i(_,{key:0,credit:g.imageCredits},null,8,[`credit`])):l(``,!0),(c(),i(s(f.imageLink?`a`:`div`),{href:f.imageLink,target:f.target?f.target:f.imageLink[0]===`/`?`_self`:`_blank`,"aria-label":f.imageLink?f.imageLink.split(`/`).pop().replaceAll(`-`,` `):``,class:u([`ebm-image`,`${f.contentType.toLowerCase()}-type`,f.useNativeSize?`native`:`container`,f.aspectRatio]),style:{padding:0}},{default:a(()=>[f.useNativeSize?(c(),e(`div`,w,[o(v,{src:f.image,alt:f.alt,"lazy-load":!0,"border-radius":h.borderRadius}
1,null,8,[`src`,`alt`,`border-radius`])])):(c(),e(`div`,T,[o(v,{src:g.imageInfo[h.currSize].url,alt:f.alt,height:g.imageInfo[h.currSize].height,width:g.imageInfo[h.currSize].width,"lazy-load":!0,"border-radius":h.borderRadius},null,8,[`src`,`alt`,`height`,`width`,`border-radius`])])),f.caption?(c(),e(`figcaption`,{key:2,class:`ebm-image-caption`,style:r({fontFamily:n.$ss.general.primaryFontFamily,maxWidth:f.maxCaptionWidth,textAlign:f.captionAlignment,borderBottom:f.underlineCaption?`1px solid #e0e0e0`:null,padding:f.underlineCaption?`10px 0`:`10px 0 0`}),innerHTML:f.caption},null,12,E)):l(``,!0)]),_:1},8,[`href`,`target`,`aria-label`,`class`]))])],512)}var O=Object.assign(p(x,[[`render`,D]]),{__name:`WebImage`});export{b as n,O as t};

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.