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

2 lines
41 KiB
JavaScript

/*! For license information please see 915.js.LICENSE.txt */
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[25,915],{969:(t,e,n)=>{n.d(e,{A:()=>r});var o=n(6798),i=n.n(o)()(function(t){return t[1]});i.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 r=i},1488:(t,e,n)=>{n.d(e,{A:()=>r});var o=n(6798),i=n.n(o)()(function(t){return t[1]});i.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 r=i},2742:(t,e,n)=>{n.d(e,{A:()=>r});var o=n(6798),i=n.n(o)()(function(t){return t[1]});i.push([t.id,".shipping-plugin-row[data-v-1fc374a0]{align-items:center;background:var(--neutral--0);border:1px solid var(--neutral--200);border-radius:12px;display:flex;justify-content:space-between;padding:16px}.shipping-plugin-row__content[data-v-1fc374a0]{align-items:center;display:flex;gap:16px}.shipping-plugin-row__icon[data-v-1fc374a0]{border-radius:4px;height:32px;width:32px}.shipping-plugin-row__text[data-v-1fc374a0]{display:flex;flex-direction:column;justify-content:center}.shipping-plugin-row__title-container[data-v-1fc374a0]{align-items:center;display:flex;gap:4px}.shipping-plugin-row__title[data-v-1fc374a0]{color:var(--neutral--500);margin:0}.shipping-plugin-row__actions[data-v-1fc374a0]{align-items:center;display:flex;gap:16px}.shipping-plugin-row__status[data-v-1fc374a0]{align-items:center;color:var(--success--600);display:flex;font-size:14px;gap:4px}.shipping-plugin-row__status-text[data-v-1fc374a0]{font-weight:500}.shipping-plugin-row__button[data-v-1fc374a0]{min-width:100px}.popover-content[data-v-1fc374a0]{color:var(--neutral--0)!important}",""]);const r=i},3025:(t,e,n)=>{n.r(e),n.d(e,{default:()=>f});var o=n(9726),i={class:"base-modal"},r={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",i,[(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",r,(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),s=n.n(l),c=n(969),u={insert:"head",singleton:!1};s()(c.A,u);c.A.locals;const f=(0,n(6262).A)(a,[["__scopeId","data-v-3554f916"]])},3915:(t,e,n)=>{n.r(e),n.d(e,{default:()=>q});var o=n(9726),i=n(881),r=n(3025),a=n(4481),l=n(2153),s=n(4483),c=n(979),u=n(611),f={class:"shipping-plugin-row"},p={class:"shipping-plugin-row__content"},d=["src","alt"],g={class:"shipping-plugin-row__text"},h={class:"shipping-plugin-row__title-container"},m={class:"shipping-plugin-row__title text-bold-2"},v={class:"popover-content text-body-3"},y={class:"shipping-plugin-row__actions"},x={key:0,class:"shipping-plugin-row__status"},w={class:"shipping-plugin-row__status-text"};const b=(0,o.pM)({__name:"ShippingPluginRow",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,i=t,r=n,b=(0,l.db)().sendAmplitudeEvent,_=(0,o.KR)(!1),A=(0,o.KR)(!1),k=(0,o.EW)(function(){return i.isInstalled&&!i.isActive?{color:(0,c.IW)("primary--500"),iconAppend:"",iconColor:"primary--500",hoverColor:(0,c.IW)("primary--50"),text:(0,u.T)("hostinger_easy_onboarding_plugin_activate"),cursor:"pointer"}:i.isActive&&i.isInstalled?i.isConfigUrl?{variant:"contain",color:(0,c.IW)("neutral--0"),iconAppend:"ic-arrow-up-right-square-24",iconColor:"neutral--0",hoverColor:(0,c.IW)("primary--600"),text:(0,u.T)("hostinger_easy_onboarding_plugin_configure"),cursor:"pointer"}:{color:(0,c.IW)("success--500"),icon:"ic-check-24",iconAppend:"",iconColor:"success--500",hoverColor:"",text:(0,u.T)("hostinger_easy_onboarding_plugin_added"),cursor:"default"}:{color:(0,c.IW)("primary--500"),iconColor:"primary--500",iconAppend:"",hoverColor:(0,c.IW)("primary--50"),text:(0,u.T)("hostinger_easy_onboarding_add"),cursor:"pointer"}}),E=function(){if(i.slug!==s.uY.FREE_SHIPPING&&i.slug!==s.uY.FLAT_RATE&&i.slug!==s.uY.LOCAL_PICKUP){if(i.isInstalled||i.isActive||b(s.lg.PLUGIN_INSTALLED),i.isInstalled&&i.isActive&&b(s.lg.PLUGIN_CONFIGURED),i.isInstalled&&i.isActive&&i.isConfigUrl)return _.value=!0,void(window.location.href=i.configUrl);r("click",i.slug)}else i.linkUrl&&(window.location.href=i.linkUrl)},C=(0,o.EW)(function(){return i.isButtonDisabled||i.isLoading});return function(e,n){var i=(0,o.g2)("HIcon"),r=(0,o.g2)("HButton");return(0,o.uX)(),(0,o.CE)("div",f,[(0,o.Lk)("div",p,[t.iconUrl?((0,o.uX)(),(0,o.CE)("img",{key:0,src:t.iconUrl,alt:t.name,class:"shipping-plugin-row__icon"},null,8,d)):(0,o.Q3)("",!0),(0,o.Lk)("div",g,[(0,o.Lk)("div",h,[(0,o.Lk)("h3",m,(0,o.v_)(t.name),1),t.description?((0,o.uX)(),(0,o.Wv)(a.A,{key:0,class:"popover","is-active":A.value,"background-color":"primary--1000","offset-value":10},{trigger:(0,o.k6)(function(){return[(0,o.bF)(i,{name:"ic-info-16",dimensions:"16px",color:"gray",onMouseenter:n[0]||(n[0]=function(t){return A.value=!0}),onMouseleave:n[1]||(n[1]=function(t){return A.value=!1})})]}),content:(0,o.k6)(function(){return[(0,o.Lk)("div",v,(0,o.v_)(t.description),1)]}),_:1},8,["is-active"])):(0,o.Q3)("",!0)])])]),(0,o.Lk)("div",y,[t.isInstalled?((0,o.uX)(),(0,o.CE)("span",x,[(0,o.bF)(i,{name:"ic-check-24",color:"success-dark"}),(0,o.Lk)("span",w,(0,o.v_)((0,o.R1)(u.T)("hostinger_easy_onboarding_installed")),1)])):(0,o.Q3)("",!0),(0,o.Lk)("span",null,[(0,o.bF)(r,{class:"shipping-plugin-row__button",variant:k.value.variant||"outline",size:"small","is-disabled":C.value,"is-loading":t.isLoading||_.value,icon:k.value.iconColor,"icon-prepend":k.value.icon,"icon-append":k.value.iconAppend,onClick:E},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)(k.value.text),1)]}),_:1},8,["variant","is-disabled","is-loading","icon","icon-prepend","icon-append"])])])])}}});var _=n(100),A=n.n(_),k=n(2742),E={insert:"head",singleton:!1};A()(k.A,E);k.A.locals;var C=n(6262);const P=(0,C.A)(b,[["__scopeId","data-v-1fc374a0"]]);var R=n(5619),L=n(5634),S=n(9143);function T(){var t,e,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.toStringTag||"@@toStringTag";function r(n,o,i,r){var s=o&&o.prototype instanceof l?o:l,c=Object.create(s.prototype);return I(c,"_invoke",function(n,o,i){var r,l,s,c=0,u=i||[],f=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(e,n){return r=e,l=0,s=t,p.n=n,a}};function d(n,o){for(l=n,s=o,e=0;!f&&c&&!i&&e<u.length;e++){var i,r=u[e],d=p.p,g=r[2];n>3?(i=g===o)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=t):r[0]<=d&&((i=n<2&&d<r[1])?(l=0,p.v=o,p.n=r[1]):d<g&&(i=n<3||r[0]>o||o>g)&&(r[4]=n,r[5]=o,p.n=g,l=0))}if(i||n>1)return a;throw f=!0,o}return function(i,u,g){if(c>1)throw TypeError("Generator is already running");for(f&&1===u&&d(u,g),l=u,s=g;(e=l<2?t:s)||!f;){r||(l?l<3?(l>1&&(p.n=-1),d(l,s)):p.n=s:p.v=s);try{if(c=2,r){if(l||(i="next"),e=r[i]){if(!(e=e.call(r,s)))throw TypeError("iterator result is not an object");if(!e.done)return e;s=e.value,l<2&&(l=0)}else 1===l&&(e=r.return)&&e.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+i+"' method"),l=1);r=t}else if((e=(f=p.n<0)?s:n.call(o,p))!==a)break}catch(e){r=t,l=1,s=e}finally{c=1}}return{value:e,done:f}}}(n,i,r),!0),c}var a={};function l(){}function s(){}function c(){}e=Object.getPrototypeOf;var u=[][o]?e(e([][o]())):(I(e={},o,function(){return this}),e),f=c.prototype=l.prototype=Object.create(u);function p(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,c):(t.__proto__=c,I(t,i,"GeneratorFunction")),t.prototype=Object.create(f),t}return s.prototype=c,I(f,"constructor",c),I(c,"constructor",s),s.displayName="GeneratorFunction",I(c,i,"GeneratorFunction"),I(f),I(f,i,"Generator"),I(f,o,function(){return this}),I(f,"toString",function(){return"[object Generator]"}),(T=function(){return{w:r,m:p}})()}function I(t,e,n,o){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}I=function(t,e,n,o){function r(e,n){I(t,e,function(t){return this._invoke(e,n,t)})}e?i?i(t,e,{value:n,enumerable:!o,configurable:!o,writable:!o}):t[e]=n:(r("next",0),r("throw",1),r("return",2))},I(t,e,n,o)}function O(t,e,n,o,i,r,a){try{var l=t[r](a),s=l.value}catch(t){return void n(t)}l.done?e(s):Promise.resolve(s).then(o,i)}function W(t){return function(){var e=this,n=arguments;return new Promise(function(o,i){var r=t.apply(e,n);function a(t){O(r,o,i,a,l,"next",t)}function l(t){O(r,o,i,a,l,"throw",t)}a(void 0)})}}var B={class:"setup-shipping-method-modal"},D={key:0,class:"setup-shipping-method-modal__loader"},F={key:1,class:"setup-shipping-method-modal__content"},j={class:"setup-shipping-method-modal__header"},M={class:"setup-shipping-method-modal__zone"},H={class:"setup-shipping-method-modal__methods-container"},z={class:"setup-shipping-method-modal__methods"},X=["onClick"],N={class:"shipping-method-item__content"},K={class:"shipping-method-item__name text-bold-2"},U={key:0,class:"setup-shipping-method-modal__view-more"},G={key:0,class:"setup-shipping-method-modal__plugins"};const V=(0,o.pM)({__name:"SetupShippingMethodModal",setup:function(t){var e=(0,R.qh)(),n=(0,R.NK)(),a=(0,o.KR)(!1),c=(0,o.KR)(!1),f=(0,o.KR)(!1),p=(0,o.EW)(function(){return"".concat(n.adminPath,"admin.php?page=wc-settings&tab=shipping")}),d=(0,l.nC)(s.Fb.SHIPPING).onInstallPlugin,g=(0,l.hS)().openModal,h=(0,o.EW)(function(){return e.shippingPlugins?e.shippingPlugins.filter(function(t){return t.slug===S.x.FREE_SHIPPING||t.slug===S.x.FLAT_RATE||t.slug===S.x.LOCAL_PICKUP}):[]}),m=(0,o.EW)(function(){return e.shippingPlugins?e.shippingPlugins.filter(function(t){return t.slug!==S.x.FREE_SHIPPING&&t.slug!==S.x.FLAT_RATE&&t.slug!==S.x.LOCAL_PICKUP}):[]}),v=(0,o.EW)(function(){return m.value.length>0}),y=(0,o.EW)(function(){var t,o=e.wooCommerceOptions,i=null===(t=n.woo)||void 0===t?void 0:t.storeCountries;if(null==o||!o.woocommerceDefaultCountry||!i)return"default";var r=o.woocommerceDefaultCountry;return i[r]||r||"default"}),x=function(){var t=W(T().m(function t(e){return T().w(function(t){for(;;)switch(t.n){case 0:e.slug===S.x.FREE_SHIPPING?g(L.B.ShippingOptionModal,{data:{onBackClick:function(){g(L.B.SetupShippingMethodModal,{data:{}},{isXL:!0,hasCloseButton:!0})},zoneId:"0",shippingMethodType:S.x.FREE_SHIPPING}},{isXL:!0,hasBackButton:!0,hasCloseButton:!0}):e.slug===S.x.FLAT_RATE?g(L.B.ShippingOptionModal,{data:{onBackClick:function(){g(L.B.SetupShippingMethodModal,{data:{}},{isXL:!0,hasCloseButton:!0})},zoneId:"0",shippingMethodType:S.x.FLAT_RATE}},{isXL:!0,hasBackButton:!0,hasCloseButton:!0}):e.slug===S.x.LOCAL_PICKUP?g(L.B.ShippingOptionModal,{data:{onBackClick:function(){g(L.B.SetupShippingMethodModal,{data:{}},{isXL:!0,hasCloseButton:!0})},zoneId:"0",shippingMethodType:S.x.LOCAL_PICKUP}},{isXL:!0,hasBackButton:!0,hasCloseButton:!0}):e.linkUrl&&(window.location.href=e.linkUrl);case 1:return t.a(2)}},t)}));return function(e){return t.apply(this,arguments)}}();return W(T().m(function t(){var n,o,i,r;return T().w(function(t){for(;;)switch(t.p=t.n){case 0:return a.value=!0,t.p=1,n=(0,R.NK)(),o=n.woo,i=[e.fetchPlugins(s.Fb.SHIPPING)],o&&i.push(e.fetchWooCommerceOptions()),t.n=2,Promise.all(i);case 2:t.n=4;break;case 3:t.p=3,r=t.v,console.error("Failed to load shipping modal data:",r);case 4:return t.p=4,a.value=!1,t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])}))(),function(t,e){return(0,o.uX)(),(0,o.Wv)(r.default,{"title-alignment":"centered",title:(0,o.R1)(u.T)("hostinger_easy_onboarding_manage_shipping"),"has-close-button":""},{default:(0,o.k6)(function(){return[(0,o.Lk)("div",B,[a.value?((0,o.uX)(),(0,o.CE)("div",D,[(0,o.bF)((0,o.R1)(i.M1),{size:"large"})])):((0,o.uX)(),(0,o.CE)("div",F,[(0,o.Lk)("div",j,[(0,o.Lk)("div",M,[(0,o.eW)((0,o.v_)((0,o.R1)(u.T)("hostinger_easy_onboarding_current_zone"))+": ",1),(0,o.Lk)("strong",null,(0,o.v_)(y.value),1)]),(0,o.bF)((0,o.R1)(i.BN),{variant:"text",size:"small",color:"primary","is-loading":f.value,to:p.value,onClick:e[0]||(e[0]=function(t){return f.value=!0})},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)((0,o.R1)(u.T)("hostinger_easy_onboarding_manage")),1)]}),_:1},8,["is-loading","to"])]),(0,o.Lk)("div",H,[(0,o.Lk)("div",z,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(h.value,function(t){return(0,o.uX)(),(0,o.CE)("div",{key:t.slug,class:"shipping-method-item",onClick:function(e){return x(t)}},[(0,o.Lk)("div",N,[(0,o.Lk)("div",K,(0,o.v_)(t.name),1),t.slug===(0,o.R1)(S.x).FREE_SHIPPING?((0,o.uX)(),(0,o.Wv)((0,o.R1)(i.L8),{key:0,variant:"contain",color:"primary",class:"shipping-method-item__badge"},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)((0,o.R1)(u.T)("hostinger_easy_onboarding_most_popular")),1)]}),_:1})):(0,o.Q3)("",!0)]),(0,o.bF)((0,o.R1)(i.QC),{name:"ic-chevron-right-24",color:"neutral--400"})],8,X)}),128))]),v.value?((0,o.uX)(),(0,o.CE)("div",U,[(0,o.bF)((0,o.R1)(i.BN),{variant:"text",color:"primary",size:"medium",onClick:e[1]||(e[1]=function(t){return c.value=!c.value})},{default:(0,o.k6)(function(){return[(0,o.eW)((0,o.v_)(c.value?(0,o.R1)(u.T)("hostinger_easy_onboarding_view_less"):(0,o.R1)(u.T)("hostinger_easy_onboarding_view_more")),1)]}),_:1})])):(0,o.Q3)("",!0)]),c.value?((0,o.uX)(),(0,o.CE)("div",G,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(m.value,function(t){return(0,o.uX)(),(0,o.Wv)(P,(0,o.v6)({key:t.slug},{ref_for:!0},t,{onClick:(0,o.R1)(d)}),null,16,["onClick"])}),128))])):(0,o.Q3)("",!0)]))])]}),_:1},8,["title"])}}});var Q=n(5867),$={insert:"head",singleton:!1};A()(Q.A,$);Q.A.locals;const q=(0,C.A)(V,[["__scopeId","data-v-443c0183"]])},4481:(t,e,n)=>{n.d(e,{A:()=>Ut});var o=n(9726);const i=["start","end"],r=["top","right","bottom","left"].reduce((t,e)=>t.concat(e,e+"-"+i[0],e+"-"+i[1]),[]),a=Math.min,l=Math.max,s=Math.round,c=Math.floor,u=t=>({x:t,y:t}),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function d(t,e,n){return l(t,a(e,n))}function g(t,e){return"function"==typeof t?t(e):t}function h(t){return t.split("-")[0]}function m(t){return t.split("-")[1]}function v(t){return"x"===t?"y":"x"}function y(t){return"y"===t?"height":"width"}const x=new Set(["top","bottom"]);function w(t){return x.has(h(t))?"y":"x"}function b(t){return v(w(t))}function _(t){return t.replace(/start|end/g,t=>p[t])}function A(t){return t.replace(/left|right|bottom|top/g,t=>f[t])}function k(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 E(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function C(t,e,n){let{reference:o,floating:i}=t;const r=w(e),a=b(e),l=y(a),s=h(e),c="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[l]/2-i[l]/2;let d;switch(s){case"top":d={x:u,y:o.y-i.height};break;case"bottom":d={x:u,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-i.width,y:f};break;default:d={x:o.x,y:o.y}}switch(m(e)){case"start":d[a]-=p*(n&&c?-1:1);break;case"end":d[a]+=p*(n&&c?-1:1)}return d}async function P(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:p=!1,padding:d=0}=g(e,t),h=k(d),m=l[p?"floating"===f?"reference":"floating":f],v=E(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(l.floating)),boundary:c,rootBoundary:u,strategy:s})),y="floating"===f?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(l.floating)),w=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},b=E(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:s}):y);return{top:(v.top-b.top+h.top)/w.y,bottom:(b.bottom-v.bottom+h.bottom)/w.y,left:(v.left-b.left+h.left)/w.x,right:(b.right-v.right+h.right)/w.x}}const R=new Set(["left","top"]);function L(){return"undefined"!=typeof window}function S(t){return O(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(O(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function O(t){return!!L()&&(t instanceof Node||t instanceof T(t).Node)}function W(t){return!!L()&&(t instanceof Element||t instanceof T(t).Element)}function B(t){return!!L()&&(t instanceof HTMLElement||t instanceof T(t).HTMLElement)}function D(t){return!(!L()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof T(t).ShadowRoot)}const F=new Set(["inline","contents"]);function j(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=q(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!F.has(i)}const M=new Set(["table","td","th"]);function H(t){return M.has(S(t))}const z=[":popover-open",":modal"];function X(t){return z.some(e=>{try{return t.matches(e)}catch(t){return!1}})}const N=["transform","translate","scale","rotate","perspective"],K=["transform","translate","scale","rotate","perspective","filter"],U=["paint","layout","strict","content"];function G(t){const e=V(),n=W(t)?q(t):t;return N.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))||U.some(t=>(n.contain||"").includes(t))}function V(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const Q=new Set(["html","body","#document"]);function $(t){return Q.has(S(t))}function q(t){return T(t).getComputedStyle(t)}function Y(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if("html"===S(t))return t;const e=t.assignedSlot||t.parentNode||D(t)&&t.host||I(t);return D(e)?e.host:e}function Z(t){const e=J(t);return $(e)?t.ownerDocument?t.ownerDocument.body:t.body:B(e)&&j(e)?e:Z(e)}function tt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Z(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),a=T(i);if(r){const t=et(a);return e.concat(a,a.visualViewport||[],j(i)?i:[],t&&n?tt(t):[])}return e.concat(i,tt(i,[],n))}function et(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nt(t){const e=q(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=B(t),r=i?t.offsetWidth:n,a=i?t.offsetHeight:o,l=s(n)!==r||s(o)!==a;return l&&(n=r,o=a),{width:n,height:o,$:l}}function ot(t){return W(t)?t:t.contextElement}function it(t){const e=ot(t);if(!B(e))return u(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=nt(e);let a=(r?s(n.width):n.width)/o,l=(r?s(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const rt=u(0);function at(t){const e=T(t);return V()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rt}function lt(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=ot(t);let a=u(1);e&&(o?W(o)&&(a=it(o)):a=it(t));const l=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==T(t))&&e}(r,n,o)?at(r):u(0);let s=(i.left+l.x)/a.x,c=(i.top+l.y)/a.y,f=i.width/a.x,p=i.height/a.y;if(r){const t=T(r),e=o&&W(o)?T(o):o;let n=t,i=et(n);for(;i&&o&&e!==n;){const t=it(i),e=i.getBoundingClientRect(),o=q(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,a=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=r,c+=a,n=T(i),i=et(n)}}return E({width:f,height:p,x:s,y:c})}function st(t,e){const n=Y(t).scrollLeft;return e?e.left+n:lt(I(t)).left+n}function ct(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-st(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=T(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,a=o.clientHeight,l=0,s=0;if(i){r=i.width,a=i.height;const t=V();(!t||t&&"fixed"===e)&&(l=i.offsetLeft,s=i.offsetTop)}const c=st(o);if(c<=0){const t=o.ownerDocument,e=t.body,n=getComputedStyle(e),i="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(o.clientWidth-e.clientWidth-i);a<=25&&(r-=a)}else c<=25&&(r+=c);return{width:r,height:a,x:l,y:s}}(t,n);else if("document"===e)o=function(t){const e=I(t),n=Y(t),o=t.ownerDocument.body,i=l(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=l(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+st(t);const s=-n.scrollTop;return"rtl"===q(o).direction&&(a+=l(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:a,y:s}}(I(t));else if(W(e))o=function(t,e){const n=lt(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=B(t)?it(t):u(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.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 E(o)}function pt(t,e){const n=J(t);return!(n===e||!W(n)||$(n))&&("fixed"===q(n).position||pt(n,e))}function dt(t,e,n){const o=B(e),i=I(e),r="fixed"===n,a=lt(t,!0,r,e);let l={scrollLeft:0,scrollTop:0};const s=u(0);function c(){s.x=st(i)}if(o||!o&&!r)if(("body"!==S(e)||j(i))&&(l=Y(e)),o){const t=lt(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&c();r&&!o&&i&&c();const f=!i||o||r?u(0):ct(i,l);return{x:a.left+l.scrollLeft-s.x-f.x,y:a.top+l.scrollTop-s.y-f.y,width:a.width,height:a.height}}function gt(t){return"static"===q(t).position}function ht(t,e){if(!B(t)||"fixed"===q(t).position)return null;if(e)return e(t);let n=t.offsetParent;return I(t)===n&&(n=n.ownerDocument.body),n}function mt(t,e){const n=T(t);if(X(t))return n;if(!B(t)){let e=J(t);for(;e&&!$(e);){if(W(e)&&!gt(e))return e;e=J(e)}return n}let o=ht(t,e);for(;o&&H(o)&&gt(o);)o=ht(o,e);return o&&$(o)&&gt(o)&&!G(o)?n:o||function(t){let e=J(t);for(;B(e)&&!$(e);){if(G(e))return e;if(X(e))return null;e=J(e)}return null}(t)||n}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,a=I(o),l=!!e&&X(e.floating);if(o===a||l&&r)return n;let s={scrollLeft:0,scrollTop:0},c=u(1);const f=u(0),p=B(o);if((p||!p&&!r)&&(("body"!==S(o)||j(a))&&(s=Y(o)),B(o))){const t=lt(o);c=it(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const d=!a||p||r?u(0):ct(a,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+f.x+d.x,y:n.y*c.y-s.scrollTop*c.y+f.y+d.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter(t=>W(t)&&"body"!==S(t)),i=null;const r="fixed"===q(t).position;let a=r?J(t):t;for(;W(a)&&!$(a);){const e=q(a),n=G(a);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&ut.has(i.position)||j(a)&&!n&&pt(t,a))?o=o.filter(t=>t!==a):i=e,a=J(a)}return e.set(t,o),o}(e,this._c):[].concat(n),o],s=r[0],c=r.reduce((t,n)=>{const o=ft(e,n,i);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,s,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:mt,getElementRects:async function(t){const e=this.getOffsetParent||mt,n=this.getDimensions,o=await n(t.floating);return{reference:dt(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:it,isElement:W,isRTL:function(t){return"rtl"===q(t).direction}};function yt(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function xt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,p=ot(t),d=i||r?[...p?tt(p):[],...tt(e)]:[];d.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)});const g=p&&u?function(t,e){let n,o=null;const i=I(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function s(u,f){void 0===u&&(u=!1),void 0===f&&(f=1),r();const p=t.getBoundingClientRect(),{left:d,top:g,width:h,height:m}=p;if(u||e(),!h||!m)return;const v={rootMargin:-c(g)+"px "+-c(i.clientWidth-(d+h))+"px "+-c(i.clientHeight-(g+m))+"px "+-c(d)+"px",threshold:l(0,a(1,f))||1};let y=!0;function x(e){const o=e[0].intersectionRatio;if(o!==f){if(!y)return s();o?s(!1,o):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==o||yt(p,t.getBoundingClientRect())||s(),y=!1}try{o=new IntersectionObserver(x,{...v,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(x,v)}o.observe(t)}(!0),r}(p,n):null;let h,m=-1,v=null;s&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===p&&v&&(v.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),n()}),p&&!f&&v.observe(p),v.observe(e));let y=f?lt(t):null;return f&&function e(){const o=lt(t);y&&!yt(y,o)&&n();y=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach(t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)}),null==g||g(),null==(t=v)||t.disconnect(),v=null,f&&cancelAnimationFrame(h)}}const wt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:a,middlewareData:l}=e,s=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=h(n),l=m(n),s="y"===w(n),c=R.has(a)?-1:1,u=r&&s?-1:1,f=g(e,t);let{mainAxis:p,crossAxis:d,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&"number"==typeof v&&(d="end"===l?-1*v:v),s?{x:d*u,y:p*c}:{x:p*c,y:d*u}}(e,t);return a===(null==(n=l.offset)?void 0:n.placement)&&null!=(o=l.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:a}}}}},bt=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,o,i;const{rects:a,middlewareData:l,placement:s,platform:c,elements:u}=e,{crossAxis:f=!1,alignment:p,allowedPlacements:d=r,autoAlignment:v=!0,...x}=g(t,e),w=void 0!==p||d===r?function(t,e,n){return(t?[...n.filter(e=>m(e)===t),...n.filter(e=>m(e)!==t)]:n.filter(t=>h(t)===t)).filter(n=>!t||m(n)===t||!!e&&_(n)!==n)}(p||null,v,d):d,k=await P(e,x),E=(null==(n=l.autoPlacement)?void 0:n.index)||0,C=w[E];if(null==C)return{};const R=function(t,e,n){void 0===n&&(n=!1);const o=m(t),i=b(t),r=y(i);let a="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=A(a)),[a,A(a)]}(C,a,await(null==c.isRTL?void 0:c.isRTL(u.floating)));if(s!==C)return{reset:{placement:w[0]}};const L=[k[h(C)],k[R[0]],k[R[1]]],S=[...(null==(o=l.autoPlacement)?void 0:o.overflows)||[],{placement:C,overflows:L}],T=w[E+1];if(T)return{data:{index:E+1,overflows:S},reset:{placement:T}};const I=S.map(t=>{const e=m(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]),O=(null==(i=I.filter(t=>t[2].slice(0,m(t[0])?2:3).every(t=>t<=0))[0])?void 0:i[0])||I[0][0];return O!==s?{data:{index:E+1,overflows:S},reset:{placement:O}}:{}}}},_t=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=g(t,e),c={x:n,y:o},u=await P(e,s),f=w(h(i)),p=v(f);let m=c[p],y=c[f];if(r){const t="y"===p?"bottom":"right";m=d(m+u["y"===p?"top":"left"],m,m-u[t])}if(a){const t="y"===f?"bottom":"right";y=d(y+u["y"===f?"top":"left"],y,y-u[t])}const x=l.fn({...e,[p]:m,[f]:y});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[p]:r,[f]:a}}}}}},At=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:s,elements:c}=e,{apply:u=()=>{},...f}=g(t,e),p=await P(e,f),d=h(i),v=m(i),y="y"===w(i),{width:x,height:b}=r.floating;let _,A;"top"===d||"bottom"===d?(_=d,A=v===(await(null==s.isRTL?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(A=d,_="end"===v?"top":"bottom");const k=b-p.top-p.bottom,E=x-p.left-p.right,C=a(b-p[_],k),R=a(x-p[A],E),L=!e.middlewareData.shift;let S=C,T=R;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(T=E),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(S=k),L&&!v){const t=l(p.left,0),e=l(p.right,0),n=l(p.top,0),o=l(p.bottom,0);y?T=x-2*(0!==t||0!==e?t+e:l(p.left,p.right)):S=b-2*(0!==n||0!==o?n+o:l(p.top,p.bottom))}await u({...e,availableWidth:T,availableHeight:S});const I=await s.getDimensions(c.floating);return x!==I.width||b!==I.height?{reset:{rects:!0}}:{}}}},kt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=g(t,e)||{};if(null==u)return{};const p=k(f),h={x:n,y:o},v=b(i),x=y(v),w=await l.getDimensions(u),_="y"===v,A=_?"top":"left",E=_?"bottom":"right",C=_?"clientHeight":"clientWidth",P=r.reference[x]+r.reference[v]-h[v]-r.floating[x],R=h[v]-r.reference[v],L=await(null==l.getOffsetParent?void 0:l.getOffsetParent(u));let S=L?L[C]:0;S&&await(null==l.isElement?void 0:l.isElement(L))||(S=s.floating[C]||r.floating[x]);const T=P/2-R/2,I=S/2-w[x]/2-1,O=a(p[A],I),W=a(p[E],I),B=O,D=S-w[x]-W,F=S/2-w[x]/2+T,j=d(B,F,D),M=!c.arrow&&null!=m(i)&&F!==j&&r.reference[x]/2-(F<B?O:W)-w[x]/2<0,H=M?F<B?F-B:F-D:0;return{[v]:h[v]+H,data:{[v]:j,centerOffset:F-j-H,...M&&{alignmentOffset:H}},reset:M}}}),Et=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:r,middlewareData:a}=e,{offset:l=0,mainAxis:s=!0,crossAxis:c=!0}=g(t,e),u={x:n,y:o},f=w(i),p=v(f);let d=u[p],m=u[f];const y=g(l,e),x="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(s){const t="y"===p?"height":"width",e=r.reference[p]-r.floating[t]+x.mainAxis,n=r.reference[p]+r.reference[t]-x.mainAxis;d<e?d=e:d>n&&(d=n)}if(c){var b,_;const t="y"===p?"width":"height",e=R.has(h(i)),n=r.reference[f]-r.floating[t]+(e&&(null==(b=a.offset)?void 0:b[f])||0)+(e?0:x.crossAxis),o=r.reference[f]+r.reference[t]+(e?0:(null==(_=a.offset)?void 0:_[f])||0)-(e?x.crossAxis:0);m<n?m=n:m>o&&(m=o)}return{[p]:d,[f]:m}}}},Ct=(t,e,n)=>{const o=new Map,i={platform:vt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n,l=r.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=C(c,o,s),p=o,d={},g=0;for(let n=0;n<l.length;n++){const{name:r,fn:h}=l[n],{x:m,y:v,data:y,reset:x}=await h({x:u,y:f,initialPlacement:o,placement:p,strategy:i,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=m?m:u,f=null!=v?v:f,d={...d,[r]:{...d[r],...y}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:e,strategy:i}):x.rects),({x:u,y:f}=C(c,p,s))),n=-1)}return{x:u,y:f,placement:p,strategy:i,middlewareData:d}})(t,e,{...i,platform:r})};var Pt=n(2189);function Rt(t){if(function(t){return null!=t&&"object"==typeof t&&"$el"in t}(t)){const e=t.$el;return O(e)&&"#comment"===S(e)?null:e}return t}function Lt(t){return"function"==typeof t?t():(0,Pt.R1X)(t)}function St(t){return{name:"arrow",options:t,fn(e){const n=Rt(Lt(t.element));return null==n?{}:kt({element:n,padding:t.padding}).fn(e)}}}function Tt(t){if("undefined"==typeof window)return 1;return(t.ownerDocument.defaultView||window).devicePixelRatio||1}function It(t,e){const n=Tt(t);return Math.round(e*n)/n}var Ot=n(4336),Wt=n(979);function Bt(t){return Bt="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},Bt(t)}function Dt(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,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ft(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)?Ft(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 Ft(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 jt(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 Mt(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=Bt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!=Bt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Bt(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const Ht=(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:p.value,v4afc36e1:f.value}});var e=t,n={top:80,left:20,right:20,bottom:20},i=(0,Ot.e)(),r=(0,o.KR)(null),a=(0,o.KR)(null),l=(0,o.KR)(null),s=(0,o.KR)(!1);(0,o.sV)(function(){return s.value=!0});var c=(0,o.EW)(function(){return e.isActive&&s.value}),u=(0,o.EW)(function(){return e.backgroundColor?(0,Wt.IW)(e.backgroundColor):""}),f=(0,o.EW)(function(){return"".concat(16,"px")}),p=(0,o.EW)(function(){return e.isCoveredByHeader?"var(--z-index-4)":"var(--z-index-6)"}),d=(0,o.EW)(function(){return document.querySelector(e.teleportTo)?e.teleportTo:"#hostinger-easy-onboarding-vue-app"}),g=function(t,e,n){void 0===n&&(n={});const o=n.whileElementsMounted,i=(0,Pt.EWP)(()=>{var t;return null==(t=Lt(n.open))||t}),r=(0,Pt.EWP)(()=>Lt(n.middleware)),a=(0,Pt.EWP)(()=>{var t;return null!=(t=Lt(n.placement))?t:"bottom"}),l=(0,Pt.EWP)(()=>{var t;return null!=(t=Lt(n.strategy))?t:"absolute"}),s=(0,Pt.EWP)(()=>{var t;return null==(t=Lt(n.transform))||t}),c=(0,Pt.EWP)(()=>Rt(t.value)),u=(0,Pt.EWP)(()=>Rt(e.value)),f=(0,Pt.KRz)(0),p=(0,Pt.KRz)(0),d=(0,Pt.KRz)(l.value),g=(0,Pt.KRz)(a.value),h=(0,Pt.IJ)({}),m=(0,Pt.KRz)(!1),v=(0,Pt.EWP)(()=>{const t={position:d.value,left:"0",top:"0"};if(!u.value)return t;const e=It(u.value,f.value),n=It(u.value,p.value);return s.value?{...t,transform:"translate("+e+"px, "+n+"px)",...Tt(u.value)>=1.5&&{willChange:"transform"}}:{position:d.value,left:e+"px",top:n+"px"}});let y;function x(){if(null==c.value||null==u.value)return;const t=i.value;Ct(c.value,u.value,{middleware:r.value,placement:a.value,strategy:l.value}).then(e=>{f.value=e.x,p.value=e.y,d.value=e.strategy,g.value=e.placement,h.value=e.middlewareData,m.value=!1!==t})}function w(){"function"==typeof y&&(y(),y=void 0)}return(0,Pt.wBe)([r,a,l,i],x,{flush:"sync"}),(0,Pt.wBe)([c,u],function(){w(),void 0!==o?null==c.value||null==u.value||(y=o(c.value,u.value,x)):x()},{flush:"sync"}),(0,Pt.wBe)(i,function(){i.value||(m.value=!1)},{flush:"sync"}),(0,Pt.o55)()&&(0,Pt.jr2)(w),{x:(0,Pt.nDr)(f),y:(0,Pt.nDr)(p),strategy:(0,Pt.nDr)(d),placement:(0,Pt.nDr)(g),middlewareData:(0,Pt.nDr)(h),isPositioned:(0,Pt.nDr)(m),floatingStyles:v,update:x}}(r,a,{middleware:[wt(function(){return e.offsetValue}),_t({limiter:Et(),padding:n}),bt(function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jt(Object(n),!0).forEach(function(e){Mt(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jt(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,i=t.elements;Object.assign(i.floating.style,{maxWidth:"".concat(e.maxWidth||n,"px"),maxHeight:"".concat(e.maxHeight||o,"px")})}}),St({element:l,padding:16})],placement:function(){return e.placement},whileElementsMounted:xt}),h=g.floatingStyles,m=g.middlewareData,v=g.placement;return(0,o.wB)(c,function(t){e.id&&(t?i.setPopoverActive(e.id):i.setPopoverInactive(e.id))}),(0,o.wB)([m,v],function(t){var e=Dt(t,2),n=e[0],o=e[1];if(n.arrow&&l.value){var i=n.arrow,r=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,i.x,i.y);Object.assign(l.value.style,r)}},{deep:!0}),function(e,n){return(0,o.uX)(),(0,o.CE)("div",{ref_key:"popover",ref:r,class:"h-popover__wrapper"},[(0,o.RG)(e.$slots,"trigger"),c.value?((0,o.uX)(),(0,o.Wv)(o.Im,{key:0,to:d.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)(h))},[(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 zt=n(100),Xt=n.n(zt),Nt=n(1488),Kt={insert:"head",singleton:!1};Xt()(Nt.A,Kt);Nt.A.locals;const Ut=(0,n(6262).A)(Ht,[["__scopeId","data-v-38aa8d12"]])},5867:(t,e,n)=>{n.d(e,{A:()=>r});var o=n(6798),i=n.n(o)()(function(t){return t[1]});i.push([t.id,".setup-shipping-method-modal[data-v-443c0183]{max-width:100%}.setup-shipping-method-modal__loader[data-v-443c0183]{align-items:center;display:flex;justify-content:center;padding:40px 0}.setup-shipping-method-modal__content[data-v-443c0183]{align-items:center;align-self:stretch;display:flex;flex-direction:column;gap:20px}.setup-shipping-method-modal__header[data-v-443c0183]{align-items:center;align-self:stretch;display:flex;gap:8px;justify-content:space-between}.setup-shipping-method-modal__zone[data-v-443c0183]{color:var(--neutral--600);font-family:DM Sans,sans-serif;font-size:14px;font-weight:400;line-height:1.4286em}.setup-shipping-method-modal__methods-container[data-v-443c0183]{align-items:center;align-self:stretch;display:flex;flex-direction:column;gap:24px;position:relative}.setup-shipping-method-modal__methods[data-v-443c0183]{align-items:center;align-self:stretch;display:flex;flex-direction:column;gap:8px}.setup-shipping-method-modal__view-more[data-v-443c0183]{align-items:center;display:flex;justify-content:center}.setup-shipping-method-modal__plugins[data-v-443c0183]{align-self:stretch;display:flex;flex-direction:column;gap:8px}.shipping-method-item[data-v-443c0183]{align-items:center;align-self:stretch;background:var(--neutral--0);border:1px solid var(--neutral--200);border-radius:12px;cursor:pointer;display:flex;gap:16px;justify-content:center;padding:16px 16px 16px 20px;transition:all .2s ease}.shipping-method-item[data-v-443c0183]:hover{background:var(--primary--50);border-color:var(--primary--300)}.shipping-method-item__content[data-v-443c0183]{align-items:center;display:flex;flex:1;gap:8px}",""]);const r=i},9143:(t,e,n)=>{var o,i;n.d(e,{x:()=>o}),function(t){t.FREE_SHIPPING="free_shipping",t.FLAT_RATE="flat_rate",t.LOCAL_PICKUP="local_pickup"}(o||(o={})),function(t){t.FREE_SHIPPING_MODAL="FreeShippingModal"}(i||(i={}))}}]);