"use strict";(self.webpackChunkhostinger_reach=self.webpackChunkhostinger_reach||[]).push([[132],{132:function(e,l,t){t.r(l),t.d(l,{default:function(){return u}});var o=t(425);const a=(0,o.KR)(0),d=(0,o.KR)(null),n={class:"base-modal"},s={class:"base-modal__header"},i={key:0,class:"base-modal__title"};var c=(0,o.pM)({__name:"BaseModal",props:{title:{},subtitle:{},titleAlignment:{default:"left"},disableScroll:{type:Boolean,default:!0}},setup(e){const l=e,{lockScroll:t,unlockScroll:c}={lockScroll:()=>{if(a.value++,1===a.value){d.value={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight};const e=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow="hidden",e>0&&(document.body.style.paddingRight=`${e}px`)}},unlockScroll:()=>{a.value=Math.max(0,a.value-1),0===a.value&&d.value&&(document.body.style.overflow=d.value.overflow,document.body.style.paddingRight=d.value.paddingRight,d.value=null)},isLocked:()=>a.value>0};return(0,o.sV)(()=>{l.disableScroll&&t()}),(0,o.hi)(()=>{l.disableScroll&&c()}),(l,t)=>((0,o.uX)(),(0,o.CE)("div",n,[(0,o.Lk)("div",s,[(0,o.RG)(l.$slots,"back-button"),(0,o.Lk)("span",{class:(0,o.C4)(["base-modal__title-container",{"base-modal__title-container--centered":"centered"===e.titleAlignment}])},[(0,o.RG)(l.$slots,"title-icon"),e.title?((0,o.uX)(),(0,o.CE)("h2",i,(0,o.v_)(e.title),1)):(0,o.Q3)("v-if",!0)],2)]),e.subtitle?((0,o.uX)(),(0,o.CE)("p",{key:0,class:(0,o.C4)(["base-modal__subtitle",{"base-modal__subtitle--centered":"centered"===e.titleAlignment}])},(0,o.v_)(e.subtitle),3)):(0,o.Q3)("v-if",!0),(0,o.RG)(l.$slots,"default")]))}});var u=(0,t(262).A)(c,[["__scopeId","data-v-330ecf55"]])}}]);