"use strict";(self.webpackChunkhostinger_reach=self.webpackChunkhostinger_reach||[]).push([[337],{342:function(e,t,l){l.d(t,{A:function(){return r}});var n=l(425);const o=(0,n.KR)(0),a=(0,n.KR)(null),i={class:"base-modal"},c={class:"base-modal__header"},d={key:0,class:"base-modal__title"};var s=(0,n.pM)({__name:"BaseModal",props:{title:{},subtitle:{},titleAlignment:{default:"left"},disableScroll:{type:Boolean,default:!0}},setup(e){const t=e,{lockScroll:l,unlockScroll:s}={lockScroll:()=>{if(o.value++,1===o.value){a.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:()=>{o.value=Math.max(0,o.value-1),0===o.value&&a.value&&(document.body.style.overflow=a.value.overflow,document.body.style.paddingRight=a.value.paddingRight,a.value=null)},isLocked:()=>o.value>0};return(0,n.sV)(()=>{t.disableScroll&&l()}),(0,n.hi)(()=>{t.disableScroll&&s()}),(t,l)=>((0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",c,[(0,n.RG)(t.$slots,"back-button"),(0,n.Lk)("span",{class:(0,n.C4)(["base-modal__title-container",{"base-modal__title-container--centered":"centered"===e.titleAlignment}])},[(0,n.RG)(t.$slots,"title-icon"),e.title?((0,n.uX)(),(0,n.CE)("h2",d,(0,n.v_)(e.title),1)):(0,n.Q3)("v-if",!0)],2)]),e.subtitle?((0,n.uX)(),(0,n.CE)("p",{key:0,class:(0,n.C4)(["base-modal__subtitle",{"base-modal__subtitle--centered":"centered"===e.titleAlignment}])},(0,n.v_)(e.subtitle),3)):(0,n.Q3)("v-if",!0),(0,n.RG)(t.$slots,"default")]))}});var r=(0,l(262).A)(s,[["__scopeId","data-v-330ecf55"]])},480:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var n=l(425),o=l(342),a=l(229),i=l(187),c=l(408);const d={class:"confirm-disconnect-modal"},s={class:"confirm-disconnect-modal__content"},r={class:"confirm-disconnect-modal__footer"};var u=(0,n.pM)({__name:"ConfirmDisconnectModal",props:{data:{}},setup(e){const{closeModal:t}=(0,a.hS)(),l=(0,i.Q1)(),u=e,_=()=>{const e=u.data?.backButtonRedirectAction;e?e():t()};return(e,t)=>{const a=(0,n.g2)("HIcon"),i=(0,n.g2)("HText"),m=(0,n.g2)("HButton");return(0,n.uX)(),(0,n.Wv)(o.A,{"title-alignment":"left",title:(0,n.R1)(c.T)("hostinger_reach_confirm_disconnect_modal_title")},{"title-icon":(0,n.k6)(()=>[(0,n.bF)(a,{class:"confirm-disconnect-modal__icon",name:"ic-warning-circle-filled-24",color:"danger--600"})]),default:(0,n.k6)(()=>[(0,n.Lk)("div",d,[(0,n.Lk)("div",s,[(0,n.bF)(i,{variant:"body-2",as:"p",class:"confirm-disconnect-modal__text"},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(c.T)("hostinger_reach_confirm_disconnect_modal_text")),1)]),_:1})]),(0,n.Lk)("div",r,[(0,n.bF)(m,{variant:"text",color:"neutral",size:"small",onClick:_},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(c.T)("hostinger_reach_confirm_disconnect_modal_cancel")),1)]),_:1}),(0,n.bF)(m,{color:"danger",size:"small","is-disabled":(0,n.R1)(l).isIntegrationLoading(u.data?.integration),onClick:t[0]||(t[0]=e=>(async e=>{await l.toggleIntegrationStatus(e,!1),_()})(u.data?.integration))},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(c.T)("hostinger_reach_confirm_disconnect_modal_disconnect")),1)]),_:1},8,["is-disabled"])])])]),_:1},8,["title"])}}});var _=(0,l(262).A)(u,[["__scopeId","data-v-5df88622"]])}}]);