"use strict";var e=require("../../helpers.js"),t=require("./helpers.js");function s(e){return e.split(" ").reduce((e,t)=>(e[t]=!0,e),{})}exports.getBackdropClasses=e=>{let t="gp-fixed gp-inset-0 gp-z-50 gp-flex gp-overflow-y-auto gp-overflow-x-hidden gp-shadow-xl";return"center"===e&&(t+=" gp-items-center gp-justify-center"),"top"===e&&(t+=" gp-justify-center gp-items-start"),"top-right"===e&&(t+=" gp-justify-end gp-items-start"),"top-left"===e&&(t+=" gp-justify-start gp-items-start"),"bottom"===e&&(t+=" gp-items-end gp-justify-center"),"left"===e&&(t+=" gp-items-center gp-justify-start"),"right"===e&&(t+=" gp-items-center gp-justify-end"),"bottom-left"===e&&(t+=" gp-items-end gp-justify-start"),"bottom-right"===e&&(t+=" gp-items-end gp-justify-end"),{...s(t)}},exports.getBodyContentClasses=()=>({...s("gp-h-full gp-w-full gp-overflow-y-auto gp-overflow-x-hidden !gp-max-h-screen")}),exports.getButtonContentClasses=e=>{let t="gp-absolute gp-top-0 gp-right-0 gp-inline-flex gp-items-center gp-justify-center gp-outline-none focus-visible:gp-shadow-none focus-visible:gp-outline-none gp-overflow-hidden gp-z-1";return"outside"===e&&(t+=" gp-translate-x-1/2 -gp-translate-y-1/2 gp-shadow-md gp-z-[999999]"),{...s(t)}},exports.getContainClasses=(e,p,g)=>{let n="gp-dialog gp-bg-transparent gp-z-[999999]";return"0%"!=t.getOverlayOpacity(p)&&g&&"transparent"!=g||(n+=" backdrop:!gp-bg-transparent"),e&&(n+=` ${e}`),{...s(n)}},exports.getDialogContentClasses=({setting:t,enableEffect:p,isILP:g})=>{let{effectType:n,background:o,closeButtonPosition:a}=t??{},i="gp-relative gp-max-h-full gp-max-w-full";return"fade"===n&&p&&(i+=" gp-animate-[fadeIn_0.4s_ease-in]"),"zoom"===n&&p&&(i+=" gp-animate-[zoomIn_0.3s_ease-in]"),"zoom-out"===n&&p&&(i+=" gp-animate-[zoomOut_0.3s_ease-in]"),"horizontal"===n&&p&&(i+=" gp-animate-[slideInLeft_0.3s_ease-in]"),"vertical"===n&&p&&(i+=" gp-animate-[slideInUp_0.3s_ease-in]"),"unfold"===n&&p&&(i+=" gp-animate-[unfold_0.3s_ease-in-out]"),"outside"!==a&&(i+=" gp-overflow-hidden"),e.isTransparentColor(o?.desktop?.color)||(i+=" gp-shadow-xl"),!p&&g&&(i+=" gp-animate-[fadeOut_0.2s_ease-out]"),{...s(i)}},exports.getHeadContentClasses=()=>({...s("gp-inline-block gp-h-screen gp-align-middle")}),exports.getOverlayClasses=()=>({...s("gp-fixed gp-inset-0 gp-block gp-transition-all gp-duration-100")}),exports.getSvgContentClasses=()=>({...s("[&>svg]:!gp-w-auto [&>svg]:!gp-h-[var(--height-icon)]")});
