"use strict";const getLabelAttrs=({label:t="",positionId:e="left",componentUid:a})=>({label:t,positionId:e,uid:a}),getLabelLiquidAttrs=({pageContext:t,translateLabel:e})=>({pageContext:t,translateLabel:e}),getImagePlaceholderAttrs=({width:t=0,height:e=0})=>({src:"",width:t,height:e,"data-testid":"temp-image"}),getBaseImageAttrs=({src:t,title:e=""})=>({src:t,title:e}),getImageLiquidAttrs=({id:t,src:e,title:a="",priority:r=!1,isDisableObjectFit:s=!1,isDisableAspectStyle:g=!1})=>({...getBaseImageAttrs({src:e,title:a}),id:t,priority:r,isDisableObjectFit:s,isDisableAspectStyle:g}),getImageReactAttrs=({src:t,testId:e,width:a=0,height:r=0,title:s="",priority:g=!1})=>{let i=g?{fetchpriority:"high",loading:"eager"}:{loading:"lazy",fetchpriority:"low"},A=getBaseImageAttrs({src:t,title:s});return{...A,...i,width:a,height:r,"data-testid":e,"base-src":g?"":A.src}};exports.getBaseImageAttrs=getBaseImageAttrs,exports.getImageLiquidAttrs=getImageLiquidAttrs,exports.getImagePlaceholderAttrs=getImagePlaceholderAttrs,exports.getImageReactAttrs=getImageReactAttrs,exports.getLabelAttrs=getLabelAttrs,exports.getLabelLiquidAttrs=getLabelLiquidAttrs;
