import{makeAspectRatio as e,getResponsiveValueByScreen as t,makeStyleResponsive as l,makeWidth as o}from"@gem-sdk/core";let r=["mobile","tablet","desktop"],a=e=>!!e&&["EXTERNAL_VIDEO","MODEL_3D","VIDEO"].includes(e),i=e=>{let a=e?.ftWidth;return r.forEach(l=>{let o=t(e?.position,l),r=t(e?.galleryVisible,l);a={...a,[l]:("left"===o||"right"===o)&&r?t(e?.ftWidthHorizontalLayout,l):t(e?.ftWidth,l)}}),{...l("w",o(a,{desktop:!1,tablet:!1,mobile:!1}))}},p=(e,t)=>{if(!e)return t;if("number"==typeof e)return e;let l="string"==typeof e?e.replaceAll("px","").replaceAll("%","").replaceAll("rem","").replaceAll("em",""):t;return isNaN(Number(l))?t:Number(l)},g=e=>({desktop:e?.desktop?.width,tablet:e?.tablet?.width,mobile:e?.mobile?.width}),s=e=>({desktop:e?.desktop?.height,tablet:e?.tablet?.height,mobile:e?.mobile?.height}),b=(t,l)=>e(l,g(t),s(t)),m=e=>{let o={desktop:"flex-start",mobile:"flex-start",tablet:"flex-start"};return["desktop","mobile","tablet"].forEach(l=>{let r=t(e,l);o={...o,[`${l}`]:"bottom-left"===r?"flex-start":"bottom-center"===r?"center":"left"===r?"flex-start":"flex-end"}}),l("jc",o)},d=()=>"!gp-flex gp-absolute gp-z-1 gp-h-[150px] gp-w-[150px] gp-cursor-none gp-rounded-full gp-bg-no-repeat gp-shadow-glasses gp-bg-white",f=()=>"gp-absolute gp-left-0 gp-top-0 gp-opacity-0 gp-transition-opacity gp-bg-white";export{p as convertUnitToNumber,b as getFeatureImageAspectRatio,m as getStyleFeatureImageJustify,i as getStyleFeaturedImageWidth,f as getZoomImageClass,d as getZoomLenClass,a as isFeatureMedia};
