Files
CoeurUAPam/wp-content/plugins/hostinger-easy-onboarding/assets/js/main.min/710.js
T
2025-11-18 16:39:33 +00:00

2 lines
39 KiB
JavaScript

/*! For license information please see 710.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[25,710],{426:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".payment-icons[data-v-227d8944]{align-items:center;display:flex;gap:8px}.payment-icons__item[data-v-227d8944]{height:auto;width:32px}",""]);const i=r},969:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".base-modal__title-container[data-v-3554f916]{align-items:center;display:flex;justify-content:flex-start;margin-bottom:4px}.base-modal__title-container--centered[data-v-3554f916]{justify-content:center}.base-modal__title[data-v-3554f916]{color:var(--neutral--600);font-size:20px;font-weight:700;margin:0}.base-modal__subtitle[data-v-3554f916]{color:var(--neutral--300);font-size:14px;margin-bottom:24px;margin-top:4px}.base-modal__subtitle--centered[data-v-3554f916]{text-align:center}",""]);const i=r},1488:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".h-popover-body[data-v-38aa8d12]{background-color:var(--v45df0a66);border-radius:var(--v4afc36e1);box-shadow:0 0 49px rgba(29,30,32,.16);position:absolute;text-align:left;visibility:visible;z-index:var(--v1afaa192)}.h-popover-body--default[data-v-38aa8d12]{padding:16px;width:490px}.h-popover-body--compact[data-v-38aa8d12]{padding:16px;width:420px}.h-popover-body--small[data-v-38aa8d12]{padding:24px;width:320px}.h-popover-body__arrow[data-v-38aa8d12]{background-color:var(--v45df0a66);height:24px;opacity:1;position:absolute;transform:rotate(45deg);transition:opacity .2s ease-in-out;width:24px}@media(max-width:576px){.h-popover-body[data-v-38aa8d12]{width:90vw}}",""]);const i=r},3025:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var o=n(9726),r={class:"base-modal"},i={key:1,class:"base-modal__title"};const a=(0,o.pM)({__name:"BaseModal",props:{title:{},subtitle:{},titleIcon:{},titleAlignment:{default:"left"}},setup:function(t){return function(e,n){var a=(0,o.g2)("HIcon");return(0,o.uX)(),(0,o.CE)("div",r,[(0,o.Lk)("span",{class:(0,o.C4)(["base-modal__title-container",{"base-modal__title-container--centered":"centered"===t.titleAlignment}])},[t.titleIcon?((0,o.uX)(),(0,o.Wv)(a,{key:0,class:"h-mr-8",name:t.titleIcon.name,color:t.titleIcon.color},null,8,["name","color"])):(0,o.Q3)("",!0),t.title?((0,o.uX)(),(0,o.CE)("h2",i,(0,o.v_)(t.title),1)):(0,o.Q3)("",!0)],2),t.subtitle?((0,o.uX)(),(0,o.CE)("p",{key:0,class:(0,o.C4)(["base-modal__subtitle",{"base-modal__subtitle--centered":"centered"===t.titleAlignment}])},(0,o.v_)(t.subtitle),3)):(0,o.Q3)("",!0),(0,o.RG)(e.$slots,"default")])}}});var l=n(100),c=n.n(l),s=n(969),u={insert:"head",singleton:!1};c()(s.A,u);s.A.locals;const f=(0,n(6262).A)(a,[["__scopeId","data-v-3554f916"]])},4481:(t,e,n)=>{n.d(e,{A:()=>Vt});var o=n(9726);const r=["start","end"],i=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+r[0],e+"-"+r[1]),[]),a=Math.min,l=Math.max,c=Math.round,s=Math.floor,u=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(t,e,n){return l(t,a(e,n))}function m(t,e){return"function"==typeof t?t(e):t}function v(t){return t.split("-")[0]}function g(t){return t.split("-")[1]}function y(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}const b=new Set(["top","bottom"]);function w(t){return b.has(v(t))?"y":"x"}function x(t){return y(w(t))}function _(t){return t.replace(/start|end/g,t=>d[t])}function A(t){return t.replace(/left|right|bottom|top/g,t=>f[t])}function E(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function R(t){const{x:e,y:n,width:o,height:r}=t;return{width:o,height:r,top:n,left:e,right:e+o,bottom:n+r,x:e,y:n}}function C(t,e,n){let{reference:o,floating:r}=t;const i=w(e),a=x(e),l=h(a),c=v(e),s="y"===i,u=o.x+o.width/2-r.width/2,f=o.y+o.height/2-r.height/2,d=o[l]/2-r[l]/2;let p;switch(c){case"top":p={x:u,y:o.y-r.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-r.width,y:f};break;default:p={x:o.x,y:o.y}}switch(g(e)){case"start":p[a]-=d*(n&&s?-1:1);break;case"end":p[a]+=d*(n&&s?-1:1)}return p}async function P(t,e){var n;void 0===e&&(e={});const{x:o,y:r,platform:i,rects:a,elements:l,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=m(e,t),v=E(p),g=l[d?"floating"===f?"reference":"floating":f],y=R(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(l.floating)),boundary:s,rootBoundary:u,strategy:c})),h="floating"===f?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(l.floating)),w=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=R(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:h,offsetParent:b,strategy:c}):h);return{top:(y.top-x.top+v.top)/w.y,bottom:(x.bottom-y.bottom+v.bottom)/w.y,left:(y.left-x.left+v.left)/w.x,right:(x.right-y.right+v.right)/w.x}}const k=new Set(["left","top"]);function O(){return"undefined"!=typeof window}function T(t){return W(t)?(t.nodeName||"").toLowerCase():"#document"}function L(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function S(t){var e;return null==(e=(W(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function W(t){return!!O()&&(t instanceof Node||t instanceof L(t).Node)}function I(t){return!!O()&&(t instanceof Element||t instanceof L(t).Element)}function D(t){return!!O()&&(t instanceof HTMLElement||t instanceof L(t).HTMLElement)}function j(t){return!(!O()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof L(t).ShadowRoot)}const M=new Set(["inline","contents"]);function B(t){const{overflow:e,overflowX:n,overflowY:o,display:r}=$(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!M.has(r)}const F=new Set(["table","td","th"]);function X(t){return F.has(T(t))}const H=[":popover-open",":modal"];function N(t){return H.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const z=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],V=["paint","layout","strict","content"];function Y(t){const e=U(),n=I(t)?$(t):t;return z.some(t=>!!n[t]&&"none"!==n[t])||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||K.some(t=>(n.willChange||"").includes(t))||V.some(t=>(n.contain||"").includes(t))}function U(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const G=new Set(["html","body","#document"]);function Q(t){return G.has(T(t))}function $(t){return L(t).getComputedStyle(t)}function q(t){return I(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if("html"===T(t))return t;const e=t.assignedSlot||t.parentNode||j(t)&&t.host||S(t);return j(e)?e.host:e}function Z(t){const e=J(t);return Q(e)?t.ownerDocument?t.ownerDocument.body:t.body:D(e)&&B(e)?e:Z(e)}function tt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const r=Z(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),a=L(r);if(i){const t=et(a);return e.concat(a,a.visualViewport||[],B(r)?r:[],t&&n?tt(t):[])}return e.concat(r,tt(r,[],n))}function et(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nt(t){const e=$(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=D(t),i=r?t.offsetWidth:n,a=r?t.offsetHeight:o,l=c(n)!==i||c(o)!==a;return l&&(n=i,o=a),{width:n,height:o,$:l}}function ot(t){return I(t)?t:t.contextElement}function rt(t){const e=ot(t);if(!D(e))return u(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:i}=nt(e);let a=(i?c(n.width):n.width)/o,l=(i?c(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const it=u(0);function at(t){const e=L(t);return U()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:it}function lt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),i=ot(t);let a=u(1);e&&(o?I(o)&&(a=rt(o)):a=rt(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==L(t))&&e}(i,n,o)?at(i):u(0);let c=(r.left+l.x)/a.x,s=(r.top+l.y)/a.y,f=r.width/a.x,d=r.height/a.y;if(i){const t=L(i),e=o&&I(o)?L(o):o;let n=t,r=et(n);for(;r&&o&&e!==n;){const t=rt(r),e=r.getBoundingClientRect(),o=$(r),i=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,s*=t.y,f*=t.x,d*=t.y,c+=i,s+=a,n=L(r),r=et(n)}}return R({width:f,height:d,x:c,y:s})}function ct(t,e){const n=q(t).scrollLeft;return e?e.left+n:lt(S(t)).left+n}function st(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-ct(t,n),y:n.top+e.scrollTop}}const ut=new Set(["absolute","fixed"]);function ft(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=L(t),o=S(t),r=n.visualViewport;let i=o.clientWidth,a=o.clientHeight,l=0,c=0;if(r){i=r.width,a=r.height;const t=U();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,c=r.offsetTop)}const s=ct(o);if(s<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-e.clientWidth-r);a<=25&&(i-=a)}else s<=25&&(i+=s);return{width:i,height:a,x:l,y:c}}(t,n);else if("document"===e)o=function(t){const e=S(t),n=q(t),o=t.ownerDocument.body,r=l(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=l(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ct(t);const c=-n.scrollTop;return"rtl"===$(o).direction&&(a+=l(e.clientWidth,o.clientWidth)-r),{width:r,height:i,x:a,y:c}}(S(t));else if(I(e))o=function(t,e){const n=lt(t,!0,"fixed"===e),o=n.top+t.clientTop,r=n.left+t.clientLeft,i=D(t)?rt(t):u(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(e,n);else{const n=at(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return R(o)}function dt(t,e){const n=J(t);return!(n===e||!I(n)||Q(n))&&("fixed"===$(n).position||dt(n,e))}function pt(t,e,n){const o=D(e),r=S(e),i="fixed"===n,a=lt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const c=u(0);function s(){c.x=ct(r)}if(o||!o&&!i)if(("body"!==T(e)||B(r))&&(l=q(e)),o){const t=lt(e,!0,i,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else r&&s();i&&!o&&r&&s();const f=!r||o||i?u(0):st(r,l);return{x:a.left+l.scrollLeft-c.x-f.x,y:a.top+l.scrollTop-c.y-f.y,width:a.width,height:a.height}}function mt(t){return"static"===$(t).position}function vt(t,e){if(!D(t)||"fixed"===$(t).position)return null;if(e)return e(t);let n=t.offsetParent;return S(t)===n&&(n=n.ownerDocument.body),n}function gt(t,e){const n=L(t);if(N(t))return n;if(!D(t)){let e=J(t);for(;e&&!Q(e);){if(I(e)&&!mt(e))return e;e=J(e)}return n}let o=vt(t,e);for(;o&&X(o)&&mt(o);)o=vt(o,e);return o&&Q(o)&&mt(o)&&!Y(o)?n:o||function(t){let e=J(t);for(;D(e)&&!Q(e);){if(Y(e))return e;if(N(e))return null;e=J(e)}return null}(t)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const i="fixed"===r,a=S(o),l=!!e&&N(e.floating);if(o===a||l&&i)return n;let c={scrollLeft:0,scrollTop:0},s=u(1);const f=u(0),d=D(o);if((d||!d&&!i)&&(("body"!==T(o)||B(a))&&(c=q(o)),D(o))){const t=lt(o);s=rt(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const p=!a||d||i?u(0):st(a,c);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+f.x+p.x,y:n.y*s.y-c.scrollTop*s.y+f.y+p.y}},getDocumentElement:S,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:r}=t;const i=[..."clippingAncestors"===n?N(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter(t=>I(t)&&"body"!==T(t)),r=null;const i="fixed"===$(t).position;let a=i?J(t):t;for(;I(a)&&!Q(a);){const e=$(a),n=Y(a);n||"fixed"!==e.position||(r=null),(i?!n&&!r:!n&&"static"===e.position&&r&&ut.has(r.position)||B(a)&&!n&&dt(t,a))?o=o.filter(t=>t!==a):r=e,a=J(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],c=i[0],s=i.reduce((t,n)=>{const o=ft(e,n,r);return t.top=l(o.top,t.top),t.right=a(o.right,t.right),t.bottom=a(o.bottom,t.bottom),t.left=l(o.left,t.left),t},ft(e,c,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:gt,getElementRects:async function(t){const e=this.getOffsetParent||gt,n=this.getDimensions,o=await n(t.floating);return{reference:pt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=nt(t);return{width:e,height:n}},getScale:rt,isElement:I,isRTL:function(t){return"rtl"===$(t).direction}};function ht(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function bt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,d=ot(t),p=r||i?[...d?tt(d):[],...tt(e)]:[];p.forEach(t=>{r&&t.addEventListener("scroll",n,{passive:!0}),i&&t.addEventListener("resize",n)});const m=d&&u?function(t,e){let n,o=null;const r=S(t);function i(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function c(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),i();const d=t.getBoundingClientRect(),{left:p,top:m,width:v,height:g}=d;if(u||e(),!v||!g)return;const y={rootMargin:-s(m)+"px "+-s(r.clientWidth-(p+v))+"px "+-s(r.clientHeight-(m+g))+"px "+-s(p)+"px",threshold:l(0,a(1,f))||1};let h=!0;function b(e){const o=e[0].intersectionRatio;if(o!==f){if(!h)return c();o?c(!1,o):n=setTimeout(()=>{c(!1,1e-7)},1e3)}1!==o||ht(d,t.getBoundingClientRect())||c(),h=!1}try{o=new IntersectionObserver(b,{...y,root:r.ownerDocument})}catch(t){o=new IntersectionObserver(b,y)}o.observe(t)}(!0),i}(d,n):null;let v,g=-1,y=null;c&&(y=new ResizeObserver(t=>{let[o]=t;o&&o.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=y)||t.observe(e)})),n()}),d&&!f&&y.observe(d),y.observe(e));let h=f?lt(t):null;return f&&function e(){const o=lt(t);h&&!ht(h,o)&&n();h=o,v=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach(t=>{r&&t.removeEventListener("scroll",n),i&&t.removeEventListener("resize",n)}),null==m||m(),null==(t=y)||t.disconnect(),y=null,f&&cancelAnimationFrame(v)}}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:r,y:i,placement:a,middlewareData:l}=e,c=await async function(t,e){const{placement:n,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=v(n),l=g(n),c="y"===w(n),s=k.has(a)?-1:1,u=i&&c?-1:1,f=m(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof y&&(p="end"===l?-1*y:y),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:a}}}}},xt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,r;const{rects:a,middlewareData:l,placement:c,platform:s,elements:u}=e,{crossAxis:f=!1,alignment:d,allowedPlacements:p=i,autoAlignment:y=!0,...b}=m(t,e),w=void 0!==d||p===i?function(t,e,n){return(t?[...n.filter(e=>g(e)===t),...n.filter(e=>g(e)!==t)]:n.filter(t=>v(t)===t)).filter(n=>!t||g(n)===t||!!e&&_(n)!==n)}(d||null,y,p):p,E=await P(e,b),R=(null==(n=l.autoPlacement)?void 0:n.index)||0,C=w[R];if(null==C)return{};const k=function(t,e,n){void 0===n&&(n=!1);const o=g(t),r=x(t),i=h(r);let a="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=A(a)),[a,A(a)]}(C,a,await(null==s.isRTL?void 0:s.isRTL(u.floating)));if(c!==C)return{reset:{placement:w[0]}};const O=[E[v(C)],E[k[0]],E[k[1]]],T=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:C,overflows:O}],L=w[R+1];if(L)return{data:{index:R+1,overflows:T},reset:{placement:L}};const S=T.map(t=>{const e=g(t.placement);return[t.placement,e&&f?t.overflows.slice(0,2).reduce((t,e)=>t+e,0):t.overflows[0],t.overflows]}).sort((t,e)=>t[1]-e[1]),W=(null==(r=S.filter(t=>t[2].slice(0,g(t[0])?2:3).every(t=>t<=0))[0])?void 0:r[0])||S[0][0];return W!==c?{data:{index:R+1,overflows:T},reset:{placement:W}}:{}}}},_t=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:r}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=m(t,e),s={x:n,y:o},u=await P(e,c),f=w(v(r)),d=y(f);let g=s[d],h=s[f];if(i){const t="y"===d?"bottom":"right";g=p(g+u["y"===d?"top":"left"],g,g-u[t])}if(a){const t="y"===f?"bottom":"right";h=p(h+u["y"===f?"top":"left"],h,h-u[t])}const b=l.fn({...e,[d]:g,[f]:h});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[d]:i,[f]:a}}}}}},At=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:r,rects:i,platform:c,elements:s}=e,{apply:u=()=>{},...f}=m(t,e),d=await P(e,f),p=v(r),y=g(r),h="y"===w(r),{width:b,height:x}=i.floating;let _,A;"top"===p||"bottom"===p?(_=p,A=y===(await(null==c.isRTL?void 0:c.isRTL(s.floating))?"start":"end")?"left":"right"):(A=p,_="end"===y?"top":"bottom");const E=x-d.top-d.bottom,R=b-d.left-d.right,C=a(x-d[_],E),k=a(b-d[A],R),O=!e.middlewareData.shift;let T=C,L=k;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(L=R),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(T=E),O&&!y){const t=l(d.left,0),e=l(d.right,0),n=l(d.top,0),o=l(d.bottom,0);h?L=b-2*(0!==t||0!==e?t+e:l(d.left,d.right)):T=x-2*(0!==n||0!==o?n+o:l(d.top,d.bottom))}await u({...e,availableWidth:L,availableHeight:T});const S=await c.getDimensions(s.floating);return b!==S.width||x!==S.height?{reset:{rects:!0}}:{}}}},Et=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:r,rects:i,platform:l,elements:c,middlewareData:s}=e,{element:u,padding:f=0}=m(t,e)||{};if(null==u)return{};const d=E(f),v={x:n,y:o},y=x(r),b=h(y),w=await l.getDimensions(u),_="y"===y,A=_?"top":"left",R=_?"bottom":"right",C=_?"clientHeight":"clientWidth",P=i.reference[b]+i.reference[y]-v[y]-i.floating[b],k=v[y]-i.reference[y],O=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let T=O?O[C]:0;T&&await(null==l.isElement?void 0:l.isElement(O))||(T=c.floating[C]||i.floating[b]);const L=P/2-k/2,S=T/2-w[b]/2-1,W=a(d[A],S),I=a(d[R],S),D=W,j=T-w[b]-I,M=T/2-w[b]/2+L,B=p(D,M,j),F=!s.arrow&&null!=g(r)&&M!==B&&i.reference[b]/2-(M<D?W:I)-w[b]/2<0,X=F?M<D?M-D:M-j:0;return{[y]:v[y]+X,data:{[y]:B,centerOffset:M-B-X,...F&&{alignmentOffset:X}},reset:F}}}),Rt=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:r,rects:i,middlewareData:a}=e,{offset:l=0,mainAxis:c=!0,crossAxis:s=!0}=m(t,e),u={x:n,y:o},f=w(r),d=y(f);let p=u[d],g=u[f];const h=m(l,e),b="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const t="y"===d?"height":"width",e=i.reference[d]-i.floating[t]+b.mainAxis,n=i.reference[d]+i.reference[t]-b.mainAxis;p<e?p=e:p>n&&(p=n)}if(s){var x,_;const t="y"===d?"width":"height",e=k.has(v(r)),n=i.reference[f]-i.floating[t]+(e&&(null==(x=a.offset)?void 0:x[f])||0)+(e?0:b.crossAxis),o=i.reference[f]+i.reference[t]+(e?0:(null==(_=a.offset)?void 0:_[f])||0)-(e?b.crossAxis:0);g<n?g=n:g>o&&(g=o)}return{[d]:p,[f]:g}}}},Ct=(t,e,n)=>{const o=new Map,r={platform:yt,...n},i={...r.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,l=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(e));let s=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:u,y:f}=C(s,o,c),d=o,p={},m=0;for(let n=0;n<l.length;n++){const{name:i,fn:v}=l[n],{x:g,y,data:h,reset:b}=await v({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:s,platform:a,elements:{reference:t,floating:e}});u=null!=g?g:u,f=null!=y?y:f,p={...p,[i]:{...p[i],...h}},b&&m<=50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):b.rects),({x:u,y:f}=C(s,d,c))),n=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:p}})(t,e,{...r,platform:i})};var Pt=n(2189);function kt(t){if(function(t){return null!=t&&"object"==typeof t&&"$el"in t}(t)){const e=t.$el;return W(e)&&"#comment"===T(e)?null:e}return t}function Ot(t){return"function"==typeof t?t():(0,Pt.R1X)(t)}function Tt(t){return{name:"arrow",options:t,fn(e){const n=kt(Ot(t.element));return null==n?{}:Et({element:n,padding:t.padding}).fn(e)}}}function Lt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function St(t,e){const n=Lt(t);return Math.round(e*n)/n}var Wt=n(4336),It=n(979);function Dt(t){return Dt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dt(t)}function jt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(o=i.call(n)).done)&&(l.push(o.value),l.length!==e);c=!0);}catch(t){s=!0,r=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw r}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Mt(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function Ft(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Dt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Dt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Xt=(0,o.pM)({__name:"Popover",props:{isActive:{type:Boolean},placement:{default:"bottom"},variant:{default:"default"},offsetValue:{default:10},customAutoPlacementOptions:{},backgroundColor:{default:"ghost-white"},id:{},isCoveredByHeader:{type:Boolean,default:!1},maxWidth:{},maxHeight:{},teleportTo:{default:"#hostinger-affiliate-plugin-app"}},setup:function(t){(0,o.$9)(function(t){return{v45df0a66:u.value,v1afaa192:d.value,v4afc36e1:f.value}});var e=t,n={top:80,left:20,right:20,bottom:20},r=(0,Wt.e)(),i=(0,o.KR)(null),a=(0,o.KR)(null),l=(0,o.KR)(null),c=(0,o.KR)(!1);(0,o.sV)(function(){return c.value=!0});var s=(0,o.EW)(function(){return e.isActive&&c.value}),u=(0,o.EW)(function(){return e.backgroundColor?(0,It.IW)(e.backgroundColor):""}),f=(0,o.EW)(function(){return"".concat(16,"px")}),d=(0,o.EW)(function(){return e.isCoveredByHeader?"var(--z-index-4)":"var(--z-index-6)"}),p=(0,o.EW)(function(){return document.querySelector(e.teleportTo)?e.teleportTo:"#hostinger-easy-onboarding-vue-app"}),m=function(t,e,n){void 0===n&&(n={});const o=n.whileElementsMounted,r=(0,Pt.EWP)(()=>{var t;return null==(t=Ot(n.open))||t}),i=(0,Pt.EWP)(()=>Ot(n.middleware)),a=(0,Pt.EWP)(()=>{var t;return null!=(t=Ot(n.placement))?t:"bottom"}),l=(0,Pt.EWP)(()=>{var t;return null!=(t=Ot(n.strategy))?t:"absolute"}),c=(0,Pt.EWP)(()=>{var t;return null==(t=Ot(n.transform))||t}),s=(0,Pt.EWP)(()=>kt(t.value)),u=(0,Pt.EWP)(()=>kt(e.value)),f=(0,Pt.KRz)(0),d=(0,Pt.KRz)(0),p=(0,Pt.KRz)(l.value),m=(0,Pt.KRz)(a.value),v=(0,Pt.IJ)({}),g=(0,Pt.KRz)(!1),y=(0,Pt.EWP)(()=>{const t={position:p.value,left:"0",top:"0"};if(!u.value)return t;const e=St(u.value,f.value),n=St(u.value,d.value);return c.value?{...t,transform:"translate("+e+"px, "+n+"px)",...Lt(u.value)>=1.5&&{willChange:"transform"}}:{position:p.value,left:e+"px",top:n+"px"}});let h;function b(){if(null==s.value||null==u.value)return;const t=r.value;Ct(s.value,u.value,{middleware:i.value,placement:a.value,strategy:l.value}).then(e=>{f.value=e.x,d.value=e.y,p.value=e.strategy,m.value=e.placement,v.value=e.middlewareData,g.value=!1!==t})}function w(){"function"==typeof h&&(h(),h=void 0)}return(0,Pt.wBe)([i,a,l,r],b,{flush:"sync"}),(0,Pt.wBe)([s,u],function(){w(),void 0!==o?null==s.value||null==u.value||(h=o(s.value,u.value,b)):b()},{flush:"sync"}),(0,Pt.wBe)(r,function(){r.value||(g.value=!1)},{flush:"sync"}),(0,Pt.o55)()&&(0,Pt.jr2)(w),{x:(0,Pt.nDr)(f),y:(0,Pt.nDr)(d),strategy:(0,Pt.nDr)(p),placement:(0,Pt.nDr)(m),middlewareData:(0,Pt.nDr)(v),isPositioned:(0,Pt.nDr)(g),floatingStyles:y,update:b}}(i,a,{middleware:[wt(function(){return e.offsetValue}),_t({limiter:Rt(),padding:n}),xt(function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bt(Object(n),!0).forEach(function(e){Ft(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({padding:n,alignment:"start",allowedPlacements:["right","left","bottom","top"]},e.customAutoPlacementOptions)}),At({apply:function(t){var n=t.availableWidth,o=t.availableHeight,r=t.elements;Object.assign(r.floating.style,{maxWidth:"".concat(e.maxWidth||n,"px"),maxHeight:"".concat(e.maxHeight||o,"px")})}}),Tt({element:l,padding:16})],placement:function(){return e.placement},whileElementsMounted:bt}),v=m.floatingStyles,g=m.middlewareData,y=m.placement;return(0,o.wB)(s,function(t){e.id&&(t?r.setPopoverActive(e.id):r.setPopoverInactive(e.id))}),(0,o.wB)([g,y],function(t){var e=jt(t,2),n=e[0],o=e[1];if(n.arrow&&l.value){var r=n.arrow,i=function(t,e,n){return"top"===t?{left:"".concat(e,"px"),bottom:"".concat(-10,"px"),top:"unset"}:"bottom"===t?{left:"".concat(e,"px"),top:"".concat(-10,"px"),bottom:"unset"}:"left"===t||"left-start"===t?{right:"".concat(-10,"px"),top:"".concat(n,"px"),left:"unset"}:"right"===t?{left:"".concat(-10,"px"),top:"".concat(n,"px"),right:"unset"}:void 0}(o,r.x,r.y);Object.assign(l.value.style,i)}},{deep:!0}),function(e,n){return(0,o.uX)(),(0,o.CE)("div",{ref_key:"popover",ref:i,class:"h-popover__wrapper"},[(0,o.RG)(e.$slots,"trigger"),s.value?((0,o.uX)(),(0,o.Wv)(o.Im,{key:0,to:p.value},[(0,o.Lk)("div",{ref_key:"popoverBody",ref:a,class:(0,o.C4)(["h-popover-body","h-popover-body--".concat(t.variant)]),style:(0,o.Tr)((0,o.R1)(v))},[(0,o.Lk)("div",{ref_key:"floatingArrow",ref:l,class:"h-popover-body__arrow"},null,512),(0,o.RG)(e.$slots,"content")],6)],8,["to"])):(0,o.Q3)("",!0)],512)}}});var Ht=n(100),Nt=n.n(Ht),zt=n(1488),Kt={insert:"head",singleton:!1};Nt()(zt.A,Kt);zt.A.locals;const Vt=(0,n(6262).A)(Xt,[["__scopeId","data-v-38aa8d12"]])},6661:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".payment-plugin-list__header[data-v-c08ff182]{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px}.payment-plugin-list__completion[data-v-c08ff182]{align-items:center;display:flex;gap:4px}.payment-plugin-list__section[data-v-c08ff182]{margin-bottom:24px}.payment-plugin-list__title[data-v-c08ff182]{color:var(--gray-text);font-weight:600;margin-bottom:16px}.payment-plugin-list__items[data-v-c08ff182]{display:flex;flex-direction:column;gap:8px}.payment-plugin-list__view-more[data-v-c08ff182]{display:flex;justify-content:center;margin-top:16px}.payment-plugin-list__view-more--open[data-v-c08ff182]{margin-bottom:16px}.payment-plugin-list[data-v-c08ff182] .h-button-v2{min-width:unset!important}",""]);const i=r},6710:(t,e,n)=>{n.r(e),n.d(e,{default:()=>tt});var o=n(9726),r=n(3025),i=n(979),a={class:"payment-icons"},l=["src","alt"];const c=(0,o.pM)({__name:"PaymentIcons",setup:function(t){var e=[{name:"Visa",src:"icons/visa-icon.svg"},{name:"American Express",src:"icons/american-express-icon.svg"},{name:"Mastercard",src:"icons/master-card-icon.svg"},{name:"Apple Pay",src:"icons/apple-pay-icon.svg"},{name:"Google Pay",src:"icons/google-pay-icon.svg"}];return function(t,n){return(0,o.uX)(),(0,o.CE)("div",a,[((0,o.uX)(),(0,o.CE)(o.FK,null,(0,o.pI)(e,function(t){return(0,o.Lk)("img",{key:t.name,src:(0,o.R1)(i.iA)(t.src),alt:t.name,class:"payment-icons__item"},null,8,l)}),64))])}}});var s=n(100),u=n.n(s),f=n(426),d={insert:"head",singleton:!1};u()(f.A,d);f.A.locals;var p=n(6262);const m=(0,p.A)(c,[["__scopeId","data-v-227d8944"]]);var v=n(4481),g=n(2153),y=n(4483),h=n(611),b={class:"payment-plugin-row"},w={class:"payment-plugin-row__content"},x=["src","alt"],_={class:"payment-plugin-row__text"},A={class:"payment-plugin-row__title-container"},E={class:"payment-plugin-row__title text-bold-2"},R={key:0},C={class:"popover-content text-body-3"},P={class:"payment-plugin-row__actions"},k={key:0,class:"payment-plugin-row__status"},O={class:"payment-plugin-row__status-text"};const T=(0,o.pM)({__name:"PaymentPluginRow",props:{iconUrl:{},name:{},slug:{},localeSupported:{},global:{type:Boolean},type:{},isLoading:{type:Boolean},isButtonDisabled:{type:Boolean},isRecommended:{type:Boolean},description:{},isActive:{type:Boolean},isInstalled:{type:Boolean},isConfigUrl:{type:Boolean},configUrl:{},linkUrl:{}},emits:["click"],setup:function(t,e){var n=e.emit,r=t,a=n,l=(0,g.db)().sendAmplitudeEvent,c=(0,o.KR)(!1),s=(0,o.KR)(!1),u=(0,o.EW)(function(){return r.isInstalled&&!r.isActive?{color:(0,i.IW)("primary--500"),iconAppend:"",iconColor:"primary--500",hoverColor:(0,i.IW)("primary--50"),text:(0,h.T)("hostinger_easy_onboarding_plugin_activate"),cursor:"pointer"}:r.isActive&&r.isInstalled?r.isConfigUrl?{variant:"contain",color:(0,i.IW)("neutral--0"),iconAppend:"ic-arrow-up-right-square-24",iconColor:"neutral--0",hoverColor:(0,i.IW)("primary--600"),text:(0,h.T)("hostinger_easy_onboarding_plugin_configure"),cursor:"pointer"}:{color:(0,i.IW)("success--500"),icon:"ic-check-24",iconAppend:"",iconColor:"success--500",hoverColor:"",text:(0,h.T)("hostinger_easy_onboarding_plugin_added"),cursor:"default"}:{color:(0,i.IW)("primary--500"),iconColor:"primary--500",iconAppend:"",hoverColor:(0,i.IW)("primary--50"),text:(0,h.T)("hostinger_easy_onboarding_add"),cursor:"pointer"}}),f=function(){if(r.slug!==y.uY.DIRECT_BANK_TRANSFER&&r.slug!==y.uY.CASH_ON_DELIVERY){if(r.isInstalled||r.isActive||l(y.lg.PLUGIN_INSTALLED),r.isInstalled&&r.isActive&&l(y.lg.PLUGIN_CONFIGURED),r.isInstalled&&r.isActive&&r.isConfigUrl)return c.value=!0,void(window.location.href=r.configUrl);a("click",r.slug)}else window.location.href=r.linkUrl},d=(0,o.EW)(function(){return r.isButtonDisabled||r.isLoading});return function(e,n){var r=(0,o.g2)("HIcon"),i=(0,o.g2)("HButton");return(0,o.uX)(),(0,o.CE)("div",b,[(0,o.Lk)("div",w,[t.iconUrl&&t.slug!==(0,o.R1)(y.uY).WOOCOMMERCE_PAYMENTS?((0,o.uX)(),(0,o.CE)("img",{key:0,src:t.iconUrl,alt:t.name,class:"payment-plugin-row__icon"},null,8,x)):(0,o.Q3)("",!0),(0,o.Lk)("div",_,[(0,o.Lk)("div",A,[(0,o.Lk)("h3",E,(0,o.v_)(t.name),1),t.slug===(0,o.R1)(y.uY).WOOCOMMERCE_PAYMENTS?((0,o.uX)(),(0,o.CE)("div",R,(0,o.v_)((0,o.R1)(h.T)("hostinger_easy_onboarding_credit_debit_card")),1)):(0,o.Q3)("",!0),t.description?((0,o.uX)(),(0,o.Wv)(v.A,{key:1,class:"popover","is-active":s.value,"background-color":"primary--1000","offset-value":10},{trigger:(0,o.k6)(function(){return[(0,o.bF)(r,{name:"ic-info-16",dimensions:"16px",color:"gray",onMouseenter:n[0]||(n[0]=function(t){return s.value=!0}),onMouseleave:n[1]||(n[1]=function(t){return s.value=!1})})]}),content:(0,o.k6)(function(){return[(0,o.Lk)("div",C,(0,o.v_)(t.description),1)]}),_:1},8,["is-active"])):(0,o.Q3)("",!0)]),t.slug===(0,o.R1)(y.uY).WOOCOMMERCE_PAYMENTS?((0,o.uX)(),(0,o.Wv)(m,{key:0})):(0,o.Q3)("",!0)])]),(0,o.Lk)("div",P,[t.isInstalled?((0,o.uX)(),(0,o.CE)("span",k,[(0,o.bF)(r,{name:"ic-check-24",color:"success-dark"}),(0,o.Lk)("span",O,(0,o.v_)((0,o.R1)(h.T)("hostinger_easy_onboarding_installed")),1)])):(0,o.Q3)("",!0),(0,o.Lk)("span",null,[(0,o.bF)(i,{class:"payment-plugin-row__button",variant:u.value.variant||"outline",size:"small","is-disabled":d.value,"is-loading":t.isLoading||c.value,icon:u.value.iconColor,"icon-prepend":u.value.icon,"icon-append":u.value.iconAppend,onClick:f},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)(u.value.text),1)]}),_:1},8,["variant","is-disabled","is-loading","icon","icon-prepend","icon-append"])])])])}}});var L=n(9909),S={insert:"head",singleton:!1};u()(L.A,S);L.A.locals;const W=(0,p.A)(T,[["__scopeId","data-v-27c61fd7"]]);var I=n(3803),D={class:"payment-plugin-list"},j={class:"payment-plugin-list__section"},M={class:"payment-plugin-list__items"},B={class:"text-button-2"},F={key:1,class:"payment-plugin-list__items"};const X=(0,o.pM)({__name:"PaymentPluginList",emits:["install-plugin"],setup:function(t,e){var n=e.emit,r=(0,I.qh)(),i=(0,o.KR)(!1),a=(0,o.EW)(function(){return r.sortedPaymentPlugins.some(function(t){return t.slug===y.uY.WOO_PAYMENTS})}),l=(0,o.EW)(function(){return a.value?r.sortedPaymentPlugins.slice(0,3):r.sortedPaymentPlugins}),c=(0,o.EW)(function(){return a.value?r.sortedPaymentPlugins.slice(3):[]});return function(t,e){var r=(0,o.g2)("HButton");return(0,o.uX)(),(0,o.CE)("div",D,[(0,o.Lk)("div",j,[(0,o.Lk)("div",M,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(l.value,function(t){return(0,o.uX)(),(0,o.Wv)(W,(0,o.v6)({key:t.slug},{ref_for:!0},t,{onClick:function(e){return n("install-plugin",t.slug)}}),null,16,["onClick"])}),128))]),a.value?((0,o.uX)(),(0,o.CE)("div",{key:0,class:(0,o.C4)(["payment-plugin-list__view-more",{"payment-plugin-list__view-more--open":i.value}])},[(0,o.bF)(r,{variant:"text",onClick:e[0]||(e[0]=function(t){return i.value=!i.value})},{default:(0,o.k6)(function(){return[(0,o.Lk)("span",B,(0,o.v_)(i.value?(0,o.R1)(h.T)("hostinger_easy_onboarding_view_less"):(0,o.R1)(h.T)("hostinger_easy_onboarding_view_more")),1)]}),_:1})],2)):(0,o.Q3)("",!0),i.value?((0,o.uX)(),(0,o.CE)("div",F,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(c.value,function(t){return(0,o.uX)(),(0,o.Wv)(W,(0,o.v6)({key:t.slug},{ref_for:!0},t,{onClick:function(e){return n("install-plugin",t.slug)}}),null,16,["onClick"])}),128))])):(0,o.Q3)("",!0)])])}}});var H=n(6661),N={insert:"head",singleton:!1};u()(H.A,N);H.A.locals;const z=(0,p.A)(X,[["__scopeId","data-v-c08ff182"]]);var K=n(5619);function V(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return Y(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],f=!1,d={p:0,n:0,v:t,a:p,f:p.bind(t,4),d:function(e,n){return i=e,l=0,c=t,d.n=n,a}};function p(n,o){for(l=n,c=o,e=0;!f&&s&&!r&&e<u.length;e++){var r,i=u[e],p=d.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=t):i[0]<=p&&((r=n<2&&p<i[1])?(l=0,d.v=o,d.n=i[1]):p<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,d.n=m,l=0))}if(r||n>1)return a;throw f=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(f&&1===u&&p(u,m),l=u,c=m;(e=l<2?t:c)||!f;){i||(l?l<3?(l>1&&(d.n=-1),p(l,c)):d.n=c:d.v=c);try{if(s=2,i){if(l||(r="next"),e=i[r]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,l<2&&(l=0)}else 1===l&&(e=i.return)&&e.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=t}else if((e=(f=d.n<0)?c:n.call(o,d))!==a)break}catch(e){i=t,l=1,c=e}finally{s=1}}return{value:e,done:f}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}e=Object.getPrototypeOf;var u=[][o]?e(e([][o]())):(Y(e={},o,function(){return this}),e),f=s.prototype=l.prototype=Object.create(u);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,Y(t,r,"GeneratorFunction")),t.prototype=Object.create(f),t}return c.prototype=s,Y(f,"constructor",s),Y(s,"constructor",c),c.displayName="GeneratorFunction",Y(s,r,"GeneratorFunction"),Y(f),Y(f,r,"Generator"),Y(f,o,function(){return this}),Y(f,"toString",function(){return"[object Generator]"}),(V=function(){return{w:i,m:d}})()}function Y(t,e,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(t){r=0}Y=function(t,e,n,o){function i(e,n){Y(t,e,function(t){return this._invoke(e,n,t)})}e?r?r(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(i("next",0),i("throw",1),i("return",2))},Y(t,e,n,o)}function U(t,e,n,o,r,i,a){try{var l=t[i](a),c=l.value}catch(t){return void n(t)}l.done?e(c):Promise.resolve(c).then(o,r)}var G={class:"setup-payment-method-modal"},Q={key:0,class:"setup-payment-method-modal__loader"},$={key:1};const q=(0,o.pM)({__name:"SetupPaymentMethodModal",props:{data:{}},setup:function(t){var e,n=(0,K.qh)(),i=(0,o.KR)(!1),a=(0,g.nC)(y.Fb.PAYMENT).onInstallPlugin;return(e=V().m(function t(){return V().w(function(t){for(;;)switch(t.n){case 0:return i.value=!0,t.n=1,n.fetchPlugins(y.Fb.PAYMENT);case 1:i.value=!1;case 2:return t.a(2)}},t)}),function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(t){U(i,o,r,a,l,"next",t)}function l(t){U(i,o,r,a,l,"throw",t)}a(void 0)})})(),function(t,e){var n=(0,o.g2)("HCircleLoader");return(0,o.uX)(),(0,o.Wv)(r.default,{"title-alignment":"centered",title:(0,o.R1)(h.T)("hostinger_easy_onboarding_set_up_payments")},{default:(0,o.k6)(function(){return[(0,o.Lk)("div",G,[i.value?((0,o.uX)(),(0,o.CE)("div",Q,[(0,o.bF)(n,{size:"large"})])):((0,o.uX)(),(0,o.CE)("div",$,[(0,o.bF)(z,{onInstallPlugin:(0,o.R1)(a)},null,8,["onInstallPlugin"])]))])]}),_:1},8,["title"])}}});var J=n(7772),Z={insert:"head",singleton:!1};u()(J.A,Z);J.A.locals;const tt=(0,p.A)(q,[["__scopeId","data-v-59b25ce0"]])},7772:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".setup-payment-method-modal[data-v-59b25ce0]{margin-top:24px}.setup-payment-method-modal__loader[data-v-59b25ce0]{align-items:center;display:flex;justify-content:center}button[data-v-59b25ce0]:after{display:none}",""]);const i=r},9909:(t,e,n)=>{n.d(e,{A:()=>i});var o=n(6798),r=n.n(o)()(function(t){return t[1]});r.push([t.id,".payment-plugin-row[data-v-27c61fd7]{align-items:center;background:var(--neutral--0);border:1px solid var(--neutral--200);border-radius:12px;display:flex;justify-content:space-between;padding:16px}.payment-plugin-row__content[data-v-27c61fd7]{align-items:center;display:flex;gap:16px}.payment-plugin-row__icon[data-v-27c61fd7]{border-radius:4px;height:32px;width:32px}.payment-plugin-row__text[data-v-27c61fd7]{display:flex;flex-direction:column;justify-content:center}.payment-plugin-row__title-container[data-v-27c61fd7]{align-items:center;display:flex;gap:4px}.payment-plugin-row__title[data-v-27c61fd7]{color:var(--neutral--500);margin:0}.payment-plugin-row__actions[data-v-27c61fd7]{align-items:center;display:flex;gap:16px}.payment-plugin-row__status[data-v-27c61fd7]{align-items:center;color:var(--success--600);display:flex;font-size:14px;gap:4px}.payment-plugin-row__status-text[data-v-27c61fd7]{font-weight:500}.payment-plugin-row__button[data-v-27c61fd7]{min-width:100px}.popover-content[data-v-27c61fd7]{color:var(--neutral--0)!important}",""]);const i=r}}]);