"use strict";(self.webpackChunkhostinger_reach=self.webpackChunkhostinger_reach||[]).push([[192],{132: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"},s={class:"base-modal__header"},c={key:0,class:"base-modal__title"};var d=(0,n.pM)({__name:"BaseModal",props:{title:{},subtitle:{},titleAlignment:{default:"left"},disableScroll:{type:Boolean,default:!0}},setup(e){const t=e,{lockScroll:l,unlockScroll:d}={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&&d()}),(t,l)=>((0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",s,[(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",c,(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)(d,[["__scopeId","data-v-330ecf55"]])},192:function(e,t,l){l.r(t),l.d(t,{default:function(){return _}});var n=l(425),o=l(132),a=l(229),i=l(187),s=l(408);const c={class:"confirm-disconnect-modal"},d={class:"confirm-disconnect-modal__content"},r={class:"confirm-disconnect-modal__footer"};var u=(0,n.pM)({__name:"ConfirmSyncModal",props:{integration:{}},setup(e){const{closeModal:t}=(0,a.hS)(),l=(0,i.Q1)(),u=e,_=()=>{const e=u.data?.backButtonRedirectAction;e?e():t()},m=async()=>{if(!u?.integration?.id)return;const e=(0,n.Kh)({});e[u.integration.id]=new Set(Object.keys(u?.integration?.importStatus?.summary??[])),await l.syncContacts(e),t()};return(e,t)=>{const a=(0,n.g2)("HText"),i=(0,n.g2)("HButton");return(0,n.uX)(),(0,n.Wv)(o.A,{"title-alignment":"left",title:(0,n.R1)(s.T)("hostinger_reach_confirm_sync_modal_title")},{default:(0,n.k6)(()=>[(0,n.Lk)("div",c,[(0,n.Lk)("div",d,[(0,n.bF)(a,{variant:"body-2",as:"p",class:"confirm-disconnect-modal__text"},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(s.T)("hostinger_reach_confirm_sync_modal_text")),1)]),_:1})]),(0,n.Lk)("div",r,[(0,n.bF)(i,{variant:"text",color:"neutral",size:"small","is-disabled":(0,n.R1)(l).isLoading,onClick:_},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(s.T)("hostinger_reach_confirm_sync_modal_cancel")),1)]),_:1},8,["is-disabled"]),(0,n.bF)(i,{color:"primary",size:"small","is-disabled":(0,n.R1)(l).isLoading,"is-loading":(0,n.R1)(l).isLoading,onClick:m},{default:(0,n.k6)(()=>[(0,n.eW)((0,n.v_)((0,n.R1)(s.T)("hostinger_reach_confirm_sync_modal_confirm")),1)]),_:1},8,["is-disabled","is-loading"])])])]),_:1},8,["title"])}}});var _=(0,l(262).A)(u,[["__scopeId","data-v-8166ef46"]])}}]);