PageSourceSearch

https://dashboard.optimole.com/assets/33941f1e74387e4d53a5a011adf3…/themes/build/js/740-legacy.d538b421.js

js optimole.com collected 2026-10-02 02:17:14 UTC 105,792 bytes, 4 lines download raw bytes

1"use strict";(self["webpackChunkoptimole_service"]=self["webpackChunkoptimole_service"]||[]).push([[740],{6091:function(e,t,n){var r=n(6530).PROPER,l=n(7293),a=n(1361),i="​…᠎";e.exports=function(e){return l((function(){return!!a[e]()||i[e]()!==i||r&&a[e].name!==e}))}},6535:function(e,t,n){var r=n(2109),l=n(6790),a=n(9662),i=n(7908),s=n(6244),o=n(5417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=i(this),r=s(n);return a(e),t=o(n,0),t.length=l(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},9244:function(e,t,n){var r=n(1223);r("flatMap")},3210:function(e,t,n){var r=n(2109),l=n(3111).trim,a=n(6091);r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return l(this)}})},3280:function(e,t,n){n.d(t,{a:function(){return r},v:function(){return l}});n(6977),n(4916),n(9653),n(5306);function r(e){return e>=1e6?(e/1e6).toFixed(1)+" M":e>=1e5?(e/1e3).toFixed(0)+" K":e>=1e3?e.toLocaleString():e}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{month:"short",day:"numeric",year:"numeric"},r="string"===typeof e?/^(\d{4})-(\d{2})-(\d{2})/.exec(e):null;if(null===r)return"";var l=new Date(Number(r[1]),Number(r[2])-1,Number(r[3]));return l.getFullYear()!==Number(r[1])||l.getMonth()!==Number(r[2])-1||l.getDate()!==Number(r[3])?"":l.toLocaleDateString((null===(t=optml_data.lang_code)||void 0===t?void 0:t.replace("_","-"))||"en-US",n)}},8631:function(e,t,n){n.d(t,{Z:function(){return p}});n(9653);var r=n(6252),l=n(3577),a=n(2262),i={class:"flex justify-between items-center mb-2"},s={class:"font-noto text-xl lg:text-2xl font-semibold text-o-dark-blue"},o={class:"text-sm text-gray-600"},u={class:"w-full bg-gray-200 rounded-full h-2"},d={__name:"UsageProgressBar",props:{currentDisplay:{type:String,required:!0},limitDisplay:{type:String,required:!0},remainingDisplay:{type:String,required:!0},percentage:{type:Number,required:!0}},setup:function(e){var t=optml_data,n=t.labels;return function(t,d){return(0,r.wg)(),(0,r.iD)("div",null,[(0,r._)("div",i,[(0,r._)("h5",s,(0,l.zw)(e.currentDisplay)+" "+(0,l.zw)((0,a.SU)(n).settings.visits),1),(0,r._)("p",o,(0,l.zw)((0,a.SU)(n).settings.of)+" "+(0,l.zw)(e.limitDisplay)+" • "+(0,l.zw)(e.remainingDisplay)+" "+(0,l.zw)((0,a.SU)(n).settings.remaining),1)]),(0,r._)("div",u,[(0,r._)("div",{class:"bg-indigo-600 h-2 rounded-full transition-all duration-300",style:(0,l.j5)({width:e.percentage+"%"})},null,4)])])}}};const c=d;var p=c},6113:function(e,t,n){n.d(t,{Z:function(){return p}});n(3210);var r=n(6252),l=n(3577),a=n(2262),i={key:0,class:"text-center pt-4"},s=(0,r._)("svg",{class:"w-6 h-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),o=[s],u={class:"font-noto mr-2 text-xs text-left flex-auto"},d={__name:"Alert",props:{type:{type:String,default:"success"},message:{type:String,default:""},isActive:{type:Boolean,default:!1}},setup:function(e){var t=e,n=(0,a.BK)(t),s=n.type,d=(0,r.Fl)((function(){return{"text-o-red":"error"===s.value.trim().toLowerCase(),"text-o-blue":"success"===s.value.trim().toLowerCase()}})),c=(0,r.Fl)((function(){return{"bg-o-red":"error"===s.value.trim().toLowerCase(),"bg-o-blue":"success"===s.value.trim().toLowerCase()}}));return function(t,n){return e.isActive?((0,r.wg)(),(0,r.iD)("div",i,[(0,r._)("div",{class:(0,l.C_)([c.value,"p-2 items-center text-white leading-1 w-full lg:rounded-md flex lg:inline-flex"]),role:"alert"},[(0,r._)("span",{class:(0,l.C_)([d.value,"flex rounded-full bg-o-light-blue uppercase px-1 py-1 text-xs font-noto font-bold mr-3"])},o,2),(0,r._)("span",u,(0,l.zw)(e.message),1)],2)])):(0,r.kq)("",!0)}}};const c=d;var p=c},9005:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(6252),l=n(9963),a=n(3577),i=n(2262),s=["onClick"],o={__name:"CopyButton",props:{label:{type:String,default:""},clickedLabel:{type:String,default:""}},emits:["copy-button-click"],setup:function(e,t){var n=t.emit,o=e,u=optml_data,d=u.labels,c=(0,r.Fl)((function(){return o.clickedLabel||d.general.copy_btn_d})),p=(0,r.Fl)((function(){return o.label||d.general.copy_btn}
1)),v=(0,i.iH)(!1),m=function(){v.value=!0,n("copy-button-click"),setTimeout((function(){v.value=!1}),300)};return function(e,t){return(0,r.wg)(),(0,r.iD)("button",{class:"uppercase text-white font-noto text-base font-medium rounded-md bg-o-blue hover:bg-primary-accent-hover hover:text-white focus:bg-o-blue focus:text-white",onClick:(0,l.iM)(m,["prevent"])},[(0,r.Uk)((0,a.zw)(p.value)+" ",1),(0,r._)("span",{class:(0,a.C_)([{hidden:!v.value},"absolute font-noto font-extralight text-o-gray animate-ping transition-all"]),style:{top:"-12px","margin-left":"auto","margin-right":"auto",left:"0",right:"0","text-align":"center"}},(0,a.zw)(c.value),3)],8,s)}}};const u=o;var d=u},335:function(e,t,n){n.d(t,{Z:function(){return g}});var r=n(6252),l=n(3577),a=n(2262),i={class:"w-full p-4 flex-col items-center font-noto text-o-gray"},s={class:"block w-6 h-6 animate-spin m-auto"},o={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",role:"presentation",focusable:"false",tabindex:"-1"},u=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),d=[u],c={class:"text-center mt-2"},p=(0,r._)("span",{class:"animate-ping"},"...",-1),v={__name:"Loading",setup:function(e){var t=optml_data,n=t.labels;return function(e,t){return(0,r.wg)(),(0,r.iD)("div",i,[(0,r._)("div",s,[((0,r.wg)(),(0,r.iD)("svg",o,d))]),(0,r._)("div",c,[(0,r.Uk)((0,l.zw)((0,a.SU)(n).general.please_wait)+" ",1),p])])}}};const m=v;var g=m},7223:function(e,t,n){n.d(t,{Z:function(){return w}});var r=n(3577),l=n(6252),a=n(2262),i={class:"inset-0 fixed overflow-y-auto max-h-full p-4"},s={class:"flex min-h-full justify-center text-center items-center"},o={key:0,class:"fixed right-0 top-0 hidden pr-4 pt-4 sm:block"},u=["disabled"],d={class:"sr-only"},c={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","svg-inline":"",class:(0,r.C_)("h-4 w-4 p-0.5"),role:"presentation",focusable:"false",tabindex:"-1"},p=(0,l._)("path",{d:"M1 17L17 1M1 1l16 16",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),v=[p],m={key:0,class:"text-base font-semibold leading-6 text-gray-900 pr-6"},g={class:"w-full"},f={__name:"Modal",props:{open:{type:Boolean,default:!1},toggle:{type:Function,default:function(){}},title:{type:String,default:""},loading:{type:Boolean,default:!1},closeOnClickOutside:{type:Boolean,default:!0},isLarge:{type:Boolean,default:!1},noContentPadding:{type:Boolean,default:!1},hasCloseButton:{type:Boolean,default:!0}},setup:function(e){var t=e,n=optml_data,p=n.labels,f=function(e){"Escape"===e.key&&t.toggle()};(0,l.bv)((function(){var e=document.querySelector("body");e.classList.add("overflow-hidden"),e.classList.add("max-h-screen"),window.addEventListener("keydown",f)})),(0,l.Ah)((function(){var e=document.querySelector("body");e.classList.remove("overflow-hidden"),e.classList.remove("max-h-screen"),window.removeEventListener("keydown",f)}));var b=function(){t.closeOnClickOutside&&(t.loading||t.toggle())};return function(n,f){return(0,l.wg)(),(0,l.j4)(l.lR,{to:"#teleports",class:(0,r.C_)({hidden:!t.open})},[(0,l._)("div",i,[(0,l._)("div",{class:"fixed inset-0 bg-gray-500 opacity-75",onClick:b}),(0,l._)("div",s,[(0,l.WI)(n.$slots,"modal-outer-content"),(0,l._)("div",{class:(0,r.C_)(["relative transform overflow-hidden rounded-lg bg-white text-left shadow-xl transition-all sm:my-8 w-full shadow-xl",{"sm:max-w-lg":!t.isLarge,"sm:max-w-6xl":t.isLarge,"px-4 pb-4 pt-5 sm:p-6":!t.noContentPadding}])},[t.hasCloseButton?((0,l.wg)(),(0,l.iD)("div",o,[(0,l._)("button",{type:"button",class:(0,r.C_)(["p-2 rounded-md bg-transparent text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2",{"cursor-not-allowed opacity-50 pointer-events-none":e.loading}]),disabled:e.loading,onClick:f[0]||(f[0]=function(){return t.toggle&&t.toggle.apply(t,arguments)})},[(0,l._)("span",d,(0,r.zw)((0,a.SU)(p).general.close),1),((0,l.wg)(),(0,l.iD)("svg",c,v))],10,u)])):(0,l.kq)("",!0),(0,l._)("div",null,[t.title||n.$slots.title?((0,l.wg)(),(0,l.iD)("h3",m,[(0,l.WI)(n.$slots,"title",{}
1,(function(){return[(0,l.Uk)((0,r.zw)(t.title),1)]}))])):(0,l.kq)("",!0),(0,l._)("div",g,[(0,l.WI)(n.$slots,"default")])]),(0,l.WI)(n.$slots,"actions",{class:"mt-2"})],2)])])],8,["class"])}}};const b=f;var w=b},8121:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(6252),l={class:"relative"},a=(0,r._)("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[(0,r._)("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[(0,r._)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1);function i(e,t){return(0,r.wg)(),(0,r.iD)("div",l,[(0,r.WI)(e.$slots,"default"),a])}var s=n(3744);const o={},u=(0,s.Z)(o,[["render",i]]);var d=u},7140:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(6252),l=n(3577),a=(0,r._)("svg",{class:"hidden absolute mt-2",width:"30",height:"4",viewBox:"0 0 30 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[(0,r._)("rect",{width:"30",height:"4",rx:"2",fill:"#577BF9"})],-1),i={__name:"TabLink",props:{path:{type:String,default:"#"},label:{type:String,default:"Link"},isActive:{type:Boolean,default:!1}},setup:function(e){return function(t,n){var i=(0,r.up)("router-link");return(0,r.wg)(),(0,r.j4)(i,{to:e.path,class:(0,l.C_)(["relative no-underline text-base md:text-xl lg:text-2xl font-noto text-o-light-purple hover:text-o-dark-blue focus:text-o-dark-blue transition duration-150 ease-in-out",{active:e.isActive}])},{default:(0,r.w5)((function(){return[(0,r.Uk)((0,l.zw)(e.label)+" ",1),a]})),_:1},8,["to","class"])}}};const s=i;var o=s},5740:function(e,t,n){n.r(t),n.d(t,{default:function(){return Xa}});var r=n(6252),l=n(2262),a=n(2201),i=n(7140),s=n(124),o=n(8534),u=(n(1539),n(3948),n(9600),n(4944),n(3792),n(2479),n(1703),n(3577)),d=n(9963),c=n(2954),p=n(6310),v=n(9439),m=n(6113),g=n(2888),f=n(7223),b={class:"mt-4 h-12"},w={class:"font-noto text-sm text-o-gray"},_={class:"my-4"},x={class:"font-noto text-sm text-o-gray"},h={class:"flex justify-end"},y=["onClick"],k={__name:"DeactivateComponent",setup:function(e){var t=optml_data,n=t.labels,i=(0,a.tv)(),c=(0,l.iH)(!1),p=function(){c.value=!0},v=function(){c.value=!1},m=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,g.NE)("/account/remove",{},{},"POST");case 3:t=i.resolve({path:"/settings/account",name:"Settings"}),window.location.href=t.href,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.error(e.t0);case 10:return e.prev=10,v(),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(){return e.apply(this,arguments)}}();return function(e,t){return(0,r.wg)(),(0,r.iD)("div",b,[(0,r._)("p",w,(0,u.zw)((0,l.SU)(n).settings.deactivate_msg),1),(0,r._)("a",{href:"#",class:"font-noto text-sm text-o-red hover:text-o-blue",onClick:t[0]||(t[0]=(0,d.iM)((function(e){return p()}),["prevent"]))},(0,u.zw)((0,l.SU)(n).settings.delete_account),1),c.value?((0,r.wg)(),(0,r.j4)(f.Z,{key:0,title:(0,l.SU)(n).settings.remove_account_q,toggle:v},{default:(0,r.w5)((function(){return[(0,r._)("div",_,[(0,r._)("p",x,(0,u.zw)((0,l.SU)(n).custom_domain.pending_account_remove),1)])]})),actions:(0,r.w5)((function(){return[(0,r._)("div",h,[(0,r._)("button",{type:"submit",class:"inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-o-red text-base font-medium text-white hover:bg-o-light-purple focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:w-auto sm:text-sm",onClick:(0,d.iM)(m,["prevent"])},(0,u.zw)((0,l.SU)(n).settings.confirm_remove),9,y)])]})),_:1},8,["title"])):(0,r.kq)("",!0)])}}};const S=k;var U=S,z=n(1800),D=n(8121),C=["onSubmit"],F={style:{"margin-bottom":"2.5rem","margin-top":"0.75rem"},class:"font-noto font-normal text-xl"},Z={key:0},M=(0,r._)("br",null,null,-1),q={for:"locale",class:"mt-4 block mb-2 text-sm font-noto leading-5 text-o-dark"},B=["value","selected"],H={class:"mt-6"},j={class:"w-full rounded-md shadow-sm"},L=["disabled"],P={key:0},A={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("animate-spin h-6 w-6"),role:"presentation",focusable:"false",tabindex:"-1"},N=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),T=[N],V={__name:"AccountForm",setup:function(e){var t=(0,z.L)(),n=optml_data,a=n.labels,i=(0,r.f3)("vuejs3-logger"),f=(0,c.cI)({initialValues:{display_name:t.user.display_name,user_email:t.user.user_email,billing_email:t.user.billing_email||"",locale:t.locale},validationSchema:p.Ry({locale:p.Z_().required().oneOf(["de_DE","en_US"]).label(a.general.language_label),display_name:p.Z_().min(3,a.general.error_min).required(a.general.error_required).label(a.general.name_label_form),user_email:p.Z_().email(a.general.error_email).required(a.general.error_required).label(a.general.email_label),billing_email:p.Z_().email(a.general.error_email).label(a.general.billing_email)})}),b=f.values,w=f.errors,_=f.defineInputBinds,x=f.validate,h=f.resetForm,y=_("display_name"),k=_("user_email"),S=_("locale"),N=_("billing_email"),V=(0,r.Fl)((function(){return t.isPendingDelete})),W=(0,l.iH)(!1),O=(0,l.iH)(""),I=(0,l.iH)(""),E=(0,l.iH)(!1),K=(0,l.iH)(!1),Y=(0,r.Fl)((function(){return t.hasActiveSubscription})),R=(0,r.Fl)((function(){return!t.hasActiveSubscription})),$=(0,l.iH)([{text:"English",value:"en_US"},{text:"Deutsch",value:"de_DE"}]),G=function(){E.value=!1,K.value=!1},J=function(e){var t,n=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data;return null!==n&&void 0!==n&&n.errors?Object.values(n.errors).flat().join(" "):(null===n||void 0===n?void 0:n.message)||(null===n||void 0===n?void 0:n.error)||(null===e||void 0===e?void 0:e.message)||a.general.smth_wrong},Q=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var n,r,l;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!W.value){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,x();case 4:if(n=e.sent,r=n.valid,r){e.next=8;break}return e.abrupt("return");case 8:return W.value=!0,E.value=!1,K.value=!1,e.prev=11,e.next=14,(0,g.wO)("/me",{},{display_name:b.display_name,email:b.user_email,billing_email:b.billing_email||"",locale:b.locale},"PATCH",{suppressErrorToast:!0});case 14:if(l=e.sent,null!==l&&void 0!==l&&l.id){e.next=17;break}throw new Error("Profile response is missing the current user");case 17:try{t.setProfile(l)}catch(s){i.info("Saved profile could not be applied to the store.",s)}h({values:{display_name:l.display_name,user_email:l.email,billing_email:l.billing_email,locale:l.locale}}),I.value=a.general.submit_success,K.value=!0,l.locale!==optml_data.lang_code&&location.reload(),e.next=29;break;case 24:e.prev=24,e.t0=e["catch"](11),O.value=J(e.t0),E.value=!0,i.info("Error occurred when updating the account profile.",e.t0);case 29:return e.prev=29,W.value=!1,setTimeout((function(){return G()}),2e3),e.finish(29);case 33:case"end":return e.stop()}}),e,null,[[11,24,29,33]])})));return function(){return e.apply(this,arguments)}}();return function(e,t){return V.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("form",{key:0,action:"#",method:"POST",onSubmit:(0,d.iM)(Q,["prevent"])},[(0,r._)("p",F,(0,u.zw)((0,l.SU)(a).settings.account_details),1),(0,r.Wm)((0,l.SU)(v.Z),(0,r.dG)((0,l.SU)(y),{label:(0,l.SU)(a).general.name_label,placeholder:(0,l.SU)(a).general.name_placeholder,required:!0,errors:(0,l.SU)(w),class:"mb-4",name:"display_name",error_name:"name"}),null,16,["label","placeholder","errors"]),(0,r.Wm)((0,l.SU)(v.Z),(0,r.dG)((0,l.SU)(k),{label:(0,l.SU)(a).general.email_label,placeholder:(0,l.SU)(a).general.email_placeholder,required:!0,errors:(0,l.SU)(w),name:"user_email",error_name:"email",type:"email"}),null,16,["label","placeholder","errors"]),Y.value?((0,r.wg)(),(0,r.iD)("div",Z,[M,(0,r.Wm)((0,l.SU)(v.Z),(0,r.dG)((0,l.SU)(N),{label:(0,l.SU)(a).general.billing_email,placeholder:(0,l.SU)(a).general.billing_email_placeholder,required:!0,errors:(0,l.SU)(w),name:"billing_email",error_name:"billing_email",type:"email"}),null,16,["label","placeholder","errors"])])):(0,r.kq)("",!0),(0,r._)("label",q,(0,u.zw)((0,l.SU)(a).general.language_label),1),(0,r.Wm)(D.Z,{class:"w-1/2"},{default:(0,r.w5)((function(){return[(0,r.Wm)((0,l.SU)(c.gN),(0,r.dG)((0,l.SU)(S),{id:"locale",name:"locale",as:"select",class:"block appearance-none w-full font-noto text-sm bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:ring"}),{default:(0,r.w5)((function(){return[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)($.value,(function(e){return(0,r.wg)(),(0,r.iD)("option",{key:e.value,value:e.value,selected:e.value&&e.value===(0,l.SU)(S)},(0,u.zw)(e.text),9,B)})),128))]})),_:1},16)]})),_:1}),(0,r.Wm)((0,l.SU)(m.Z),{"is-active":E.value,message:O.value,type:"error"},null,8,["is-active","message"]),(0,r.Wm)((0,l.SU)(m.Z),{"is-active":K.value,message:I.value,type:"success"},null,8,["is-active","message"]),(0,r._)("div",H,[(0,r._)("span",j,[(0,r._)("button",{class:(0,u.C_)([{"animate-pulse bg-o-light-purple transition duration-150 ease-in-out":W.value},"flex justify-center py-2 px-16 border border-transparent text-sm font-bold font-noto rounded-md text-white bg-o-blue hover:bg-primary-accent-hover hover:text-white focus:outline-none active:bg-primary-accent-active transition duration-150 ease-in-out"]),disabled:W.value,type:"submit"},[W.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",P,(0,u.zw)((0,l.SU)(a).general.save),1)),W.value?((0,r.wg)(),(0,r.iD)("svg",A,T)):(0,r.kq)("",!0)],10,L)])]),R.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(U),{key:1})):(0,r.kq)("",!0)],40,C))}}};const W=V;var O=W,I=["onSubmit"],E={class:"mt-6"},K={class:"w-full rounded-md shadow-sm"},Y=["disabled"],R={key:0},$={key:1,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("animate-spin h-6 w-6"),role:"presentation",focusable:"false",tabindex:"-1"},G=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),J=[G],Q={__name:"PasswordForm",setup:function(e){var t=optml_data,n=t.labels,a=(0,r.f3)("vuejs3-logger"),i=(0,c.cI)({validationSchema:p.Ry({new_password:p.Z_().min(8,n.general.error_min).max(128).required(n.general.error_required).label(n.general.pass_new),confirm_password:p.Z_().min(8,n.general.error_min).max(128).required(n.general.error_required).oneOf([p.iH("new_password")],n.general.pass_match)})}),f=i.values,b=i.errors,w=i.defineInputBinds,_=i.validate,x=i.resetForm,h=w("new_password"),y=w("confirm_password"),k=(0,l.iH)(!1),S=(0,l.iH)(""),U=(0,l.iH)(""),z=(0,l.iH)(!1),D=(0,l.iH)(!1),C=function(){z.value=!1,D.value=!1},F=function(e){var t,r=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.data;return null!==r&&void 0!==r&&r.errors?Object.values(r.errors).flat().join(" "):(null===r||void 0===r?void 0:r.message)||(null===r||void 0===r?void 0:r.error)||(null===e||void 0===e?void 0:e.message)||n.general.smth_wrong},Z=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t,r;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!k.value){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,_();case 4:if(t=e.sent,r=t.valid,r&&f.new_password===f.confirm_password){e.next=8;break}return e.abrupt("return");case 8:return k.value=!0,z.value=!1,D.value=!1,e.prev=11,e.next=14,(0,g.wO)("/me/password",{},{password:f.new_password},"PUT",{suppressErrorToast:!0});case 14:U.value=n.general.submit_success,D.value=!0,x(),e.next=24;break;case 19:e.prev=19,e.t0=e["catch"](11),S.value=F(e.t0),z.value=!0,a.info("Error occurred when updating the password.",e.t0);case 24:return e.prev=24,k.value=!1,setTimeout((function(){return C()}),2e3),e.finish(24);case 28:case"end":return e.stop()}}),e,null,[[11,19,24,28]])})));return function(){return e.apply(this,arguments)}}();return function(e,t){return(0,r.wg)(),(0,r.iD)("form",{action:"#",method:"POST",onSubmit:(0,d.iM)(Z,["prevent"])},[(0,r.Wm)((0,l.SU)(v.Z),(0,r.dG)((0,l.SU)(h),{class:"mb-4",label:(0,l.SU)(n).general.pass_new,name:"new_password",error_name:"new password",type:"password",required:!0,errors:(0,l.SU)(b),"focu
1s-on-mount":""}),null,16,["label","errors"]),(0,r.Wm)((0,l.SU)(v.Z),(0,r.dG)((0,l.SU)(y),{label:(0,l.SU)(n).general.pass_conf,name:"confirm_password",error_name:"confirm password",type:"password",required:!0,errors:(0,l.SU)(b)}),null,16,["label","errors"]),(0,r.Wm)((0,l.SU)(m.Z),{"is-active":z.value,message:S.value,type:"error"},null,8,["is-active","message"]),(0,r.Wm)((0,l.SU)(m.Z),{"is-active":D.value,message:U.value,type:"success"},null,8,["is-active","message"]),(0,r._)("div",E,[(0,r._)("span",K,[(0,r._)("button",{class:(0,u.C_)([{"animate-pulse bg-o-light-purple transition duration-150 ease-in-out":k.value},"flex justify-center py-2 px-16 border border-transparent text-sm font-bold font-noto rounded-md text-white bg-o-blue hover:bg-primary-accent-hover hover:text-white focus:outline-none active:bg-primary-accent-active transition duration-150 ease-in-out"]),disabled:k.value,type:"submit"},[k.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",R,(0,u.zw)((0,l.SU)(n).general.update),1)),k.value?((0,r.wg)(),(0,r.iD)("svg",$,J)):(0,r.kq)("",!0)],10,Y)])])],40,I)}}};const X=Q;var ee=X,te=n(4956),ne=n(5082),re=(n(8309),{class:"flex items-start mt-2"}),le={class:"flex-grow-1 w-full font-noto font-medium text-sm text-o-light-purple"},ae={class:"flex-shrink-0"},ie=["aria-pressed","disabled"],se={class:"sr-only"},oe=["name"],ue={__name:"ToggleRadio",props:{label:{type:String,default:""},name:{type:String,default:""},modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup:function(e,t){var n=t.emit,a=e,i=(0,l.BK)(a),s=i.label,o=i.name,c=i.modelValue,p=i.disabled,v=(0,r.Fl)({get:function(){return c.value},set:function(e){return n("update:modelValue",e)}}),m=function(){p.value||(v.value=!v.value)};return function(e,t){return(0,r.wg)(),(0,r.iD)("div",re,[(0,r._)("span",le,(0,u.zw)((0,l.SU)(s)),1),(0,r._)("div",ae,[(0,r._)("button",{type:"button","aria-pressed":(0,l.SU)(c),class:(0,u.C_)([{"bg-o-blue":(0,l.SU)(c),"bg-o-light-purple":!(0,l.SU)(c),"cursor-pointer":!(0,l.SU)(p),"cursor-not-allowed opacity-60":(0,l.SU)(p)},"relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"]),disabled:(0,l.SU)(p),onClick:m},[(0,r._)("span",se,(0,u.zw)((0,l.SU)(s)),1),(0,r._)("span",{"aria-hidden":"true",class:(0,u.C_)([{"translate-x-5":(0,l.SU)(c)},"translate-x-0 inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2),(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return v.value=e}),type:"hidden",name:(0,l.SU)(o)},null,8,oe),[[d.nr,v.value]])],10,ie)])])}}};const de=ue;var ce=de,pe={action:"#",method:"POST"},ve={class:"font-noto font-semibold text-base text-o-dark-blue uppercase mb-4"},me={class:"sm:col-span-2"},ge={class:"font-noto font-semibold text-base text-o-dark-blue uppercase mt-8 mb-4"},fe={class:"sm:col-span-2"},be={__name:"EmailForm",setup:function(e){var t=(0,z.L)(),n=optml_data,a=n.labels,i=(0,l.iH)(!0),d=(0,l.iH)(!1),c=(0,l.iH)(!1),p=(0,r.Fl)((function(){return i.value||!d.value})),v=(0,r.Fl)({get:function(){return!0===t.email_preferences.account_activity_emails},set:function(e){return g("account_activity_emails",e)}}),m=(0,r.Fl)({get:function(){return!0===t.email_preferences.newsletter_emails},set:function(e){return g("newsletter_emails",e)}}),g=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(n,r){var l;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!p.value){e.next=2;break}return e.abrupt("return");case 2:return l=(0,ne.Z)({},t.email_preferences),i.value=!0,t.email_preferences=(0,ne.Z)((0,ne.Z)({},l),{},(0,te.Z)({},n,r)),e.prev=5,e.next=8,t.updateEmailPreference(n,r);case 8:e.next=14;break;case 10:e.prev=10,e.t0=e["catch"](5),t.email_preferences=l,console.error(e.t0);case 14:return e.prev=14,i.value=!1,e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[5,10,14,17]])})));return function(t,n){return e.apply(this,arguments)}}(),f=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.value=!0,d.value=!1,c.value=!1,e.prev=3,e.next=6,t.getEmailPreferences();case 6:d.value=!0,e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](3),c.value=!0,console.error(e.t0);case 13:return e.prev=13,i.value=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[3,9,13,16]])})));return function(){return e.apply(this,arguments)}}();return(0,r.bv)(f),function(e,t){return(0,r.wg)(),(0,r.iD)("form",pe,[(0,r._)("h3",ve,(0,u.zw)((0,l.SU)(a).settings.account_related),1),(0,r._)("div",me,[(0,r.Wm)((0,l.SU)(ce),{modelValue:v.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return v.value=e}),disabled:p.value,label:(0,l.SU)(a).settings.account_activity,name:"account_activity_emails"},null,8,["modelValue","disabled","label"])]),(0,r._)("h3",ge,(0,u.zw)((0,l.SU)(a).settings.news_and_updates),1),(0,r._)("div",fe,[(0,r.Wm)((0,l.SU)(ce),{modelValue:m.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return m.value=e}),disabled:p.value,label:(0,l.SU)(a).settings.product_updates_campaignes,name:"newsletter_emails"},null,8,["modelValue","disabled","label"])]),c.value?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"mt-4 font-noto font-medium text-sm text-o-blue hover:text-o-l
1ight-purple",type:"button",onClick:f},(0,u.zw)((0,l.SU)(a).settings.retry_email_preferences),1)):(0,r.kq)("",!0)])}}};const we=be;var _e=we,xe=n(6084),he=(n(6755),n(6699),n(2023),n(7658),n(7327),n(2222),n(7042),n(7941),n(6977),n(9826),n(4916),n(5306),n(9653),n(4048),{class:"bg-white rounded-lg px-3 py-3 pr-8 border border-gray-300 max-w-770"}),ye={class:"grid gap-2 items-center lg:grid-cols-invoice-card grid-cols-2"},ke={class:"hidden lg:block w-12 h-12 p-2 rounded-full bg-gradient-to-br from-white to-o-light-blue mr-4"},Se={viewBox:"0 0 32 32",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","svg-inline":"",class:(0,u.C_)("absolute w-8 h-8 text-o-blue"),role:"presentation",focusable:"false",tabindex:"-1"},Ue=(0,r._)("path",{d:"M14.667 26.666H4M9.334 14.666H16M19.6 26.667h5.733A2.666 2.666 0 0028 24V6.667A2.666 2.666 0 0025.333 4H6.667A2.666 2.666 0 004 6.667v14.945M9.334 9.334h13.333","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ze=(0,r._)("path",{d:"M12 24l2.667 2.667L12 29.333","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),De=[Ue,ze],Ce={class:"text-o-dark-blue text-md font-noto min-w-48"},Fe={class:"text-o-light-purple text-sm font-normal font-noto"},Ze={class:"font-noto text-sm text-o-red"},Me=["disabled"],qe={__name:"InvoiceCard",props:{amount:{type:String,default:"0.00"},currency:{type:String,default:"USD"},paidAt:{type:String,default:null},url:{type:String,default:null},status:{type:String,default:"complete"}},setup:function(e){var t,n=e,a=optml_data,i=a.labels,s=(null===(t=optml_data.lang_code)||void 0===t?void 0:t.replace("_","-"))||navigator.language||"en-US",o=(0,r.Fl)((function(){return"refunded"===n.status})),c=(0,r.Fl)((function(){return"string"===typeof n.url&&n.url.length>0})),p=(0,r.Fl)((function(){try{return new Intl.NumberFormat(s,{style:"currency",currency:n.currency}).format(Number(n.amount))}catch(e){return"".concat(n.amount," ").concat(n.currency)}})),v=(0,r.Fl)((function(){if(!n.paidAt)return"—";var e=new Date(n.paidAt);return Number.isNaN(e.getTime())?"—":e.toLocaleDateString(s,{year:"numeric",month:"long",day:"numeric"})})),m=function(){c.value&&!o.value&&window.open(n.url,"_blank","noopener,noreferrer")};return function(e,t){return(0,r.wg)(),(0,r.iD)("div",he,[(0,r._)("div",ye,[(0,r._)("div",ke,[((0,r.wg)(),(0,r.iD)("svg",Se,De))]),(0,r._)("h4",Ce,(0,u.zw)(p.value),1),(0,r._)("h5",Fe,(0,u.zw)(v.value),1),(0,r._)("span",Ze,(0,u.zw)(o.value?(0,l.SU)(i).settings.refunded:""),1),(0,r._)("button",{disabled:!c.value||o.value,class:(0,u.C_)([!c.value||o.value?"cursor-not-allowed opacity-50":"","lg:justify-self-end rounded border border-transparent shadow-sm px-3 py-1 bg-o-blue font-medium text-white hover:bg-o-light-purple focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-o-blue sm:w-auto text-sm"]),type:"button",onClick:t[0]||(t[0]=(0,d.iM)((function(e){return m()}),["prevent"]))},(0,u.zw)(c.value?(0,l.SU)(i).settings.view_invoice:(0,l.SU)(i).settings.no_invoice),11,Me)])])}}};const Be=qe;var He=Be,je={__name:"VisitsDisplay",props:{visits:{type:[String,Number],required:!0},label:{type:String,default:""},valueClass:{type:String,default:"text-3xl text-indigo-600"},labelClass:{type:String,default:"text-gray-600"},containerClass:{type:String,default:"bg-gray-50 p-4 rounded-md"},formatter:{type:Function,default:null}},setup:function(e){var t=e,n=optml_data,l=n.labels,a=(0,r.Fl)((function(){var e;return t.label||(null===l||void 0===l||null===(e=l.settings)||void 0===e?void 0:e.visits_month)||"visits/month"})),i=(0,r.Fl)((function(){return t.formatter?t.formatter(t.visits):t.visits}));return function(t,n){return(0,r.wg)(),(0,r.iD)("div",{class:(0,u.C_)(["text-center mb-6",e.containerClass])},[(0,r._)("p",{class:(0,u.C_)(["font-noto font-semibold mb-2",e.valueClass])},(0,u.zw)(i.value),3),(0,r._)("p",{class:(0,u.C_)(["text-sm",e.labelClass])},(0,u.zw)(a.value),3)],2)}}};const Le=je;var Pe=Le,Ae={key:0,class:"absolute -top-3 left-1/2 transform -translate-x-1/2"},Ne={class:"font-noto text-xl font-semibold text-o-dark-blue mb-4"},Te={class:"mb-4"},Ve=(0,r._)("span",{class:"font-noto text-2xl font-light text-o-dark-blue"},"€",-1),We={class:"font-noto text-4xl font-light text-o-dark-blue ml-1"},Oe={class:"text-sm text-gray-600"},Ie={key:0,class:"mb-3"},Ee={class:"inline-block relative w-full"},Ke=["value"],Ye=["value"],Re=(0,r._)("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[(0,r._)("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[(0,r._)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),$e={key:1,class:"w-full py-3 px-4 border border-gray-300 rounded-md text-sm font-medium text-gray-400 cursor-not-allowed",disabled:""},Ge={__name:"PlanCard",props:{title:{type:String,required:!0},price:{type:[String,Number],required:!0},savings:{type:[String,Number],required:!0},visitsDisplay:{type:String,required:!0},planId:{type:String,required:!0},isCurrentPlan:{type:Boolean,default:!1},badge:{type:String,default:""},hasMultipleTiers:{type:Boolean,default:!1},tierOptions:{type:Array,default:function(){return[]}},selectedTier:{type:String,default:""},isDowngrade:{type:Boolean,default:!1}
1,extraClasses:{type:String,default:""},isSelectedTierCurrent:{type:Boolean,default:!1}},emits:["upgrade","change-tier"],setup:function(e){var t=e,n=optml_data,a=n.labels,i=(0,r.Fl)((function(){return t.isCurrentPlan?"border-green-600":t.badge&&!t.isCurrentPlan?"border-indigo-600":"border-gray-300"})),s=(0,r.Fl)((function(){return t.isCurrentPlan?"bg-green-600":"bg-indigo-600"})),o=(0,r.Fl)((function(){return Number(t.price)>0}));return function(t,n){return(0,r.wg)(),(0,r.iD)("div",{class:(0,u.C_)(["flex flex-col bg-white rounded-lg border-2 p-6 relative min-w-[300px]",i.value,e.extraClasses])},[e.badge?((0,r.wg)(),(0,r.iD)("div",Ae,[(0,r._)("span",{class:(0,u.C_)(["text-white text-xs font-semibold px-3 py-1 rounded-full whitespace-nowrap",s.value])},(0,u.zw)(e.badge),3)])):(0,r.kq)("",!0),(0,r._)("h4",Ne,(0,u.zw)(e.title),1),(0,r._)("div",Te,[Ve,(0,r._)("span",We,(0,u.zw)(e.price),1),(0,r._)("span",Oe,(0,u.zw)((0,l.SU)(a).settings.per_month),1)]),(0,r._)("p",{class:(0,u.C_)(["text-sm text-green-600 font-medium mb-6 flex-grow",{invisible:!o.value}])},(0,u.zw)((0,l.SU)(a).settings.save_year.replace("%s",e.savings)),3),(0,r.WI)(t.$slots,"visits",{},(function(){return[e.hasMultipleTiers&&e.tierOptions.length>0?((0,r.wg)(),(0,r.iD)("div",Ie,[(0,r._)("div",Ee,[(0,r._)("select",{id:"business-tier-selector",value:e.selectedTier,class:"block appearance-none w-full bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:ring",onChange:n[0]||(n[0]=function(e){return t.$emit("change-tier",e.target.value)})},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.tierOptions,(function(e){return(0,r.wg)(),(0,r.iD)("option",{key:e.id,value:e.id},(0,u.zw)(e.displayName||e.name)+" "+(0,u.zw)((0,l.SU)(a).settings.visits_mo),9,Ye)})),128))],40,Ke),Re])])):(0,r.kq)("",!0),(0,r.Wm)(Pe,{visits:e.visitsDisplay,"container-class":"bg-gray-50 p-3 rounded-md mb-4","value-class":"text-2xl text-indigo-600"},null,8,["visits"])]})),(e.hasMultipleTiers?e.isSelectedTierCurrent:e.isCurrentPlan)?((0,r.wg)(),(0,r.iD)("button",$e,(0,u.zw)((0,l.SU)(a).settings.current_plan_button),1)):e.isDowngrade?((0,r.wg)(),(0,r.iD)("button",{key:2,class:"w-full py-3 px-4 bg-indigo-400 hover:bg-indigo-600 text-white rounded-md text-sm font-medium transition-colors",onClick:n[1]||(n[1]=function(n){return t.$emit("upgrade",e.planId)})},(0,u.zw)((0,l.SU)(a).settings.update_plan),1)):((0,r.wg)(),(0,r.iD)("button",{key:3,class:"w-full py-3 px-4 bg-indigo-600 hover:bg-indigo-700 text-white rounded-md text-sm font-medium transition-colors",onClick:n[2]||(n[2]=function(n){return t.$emit("upgrade",e.planId)})},(0,u.zw)((0,l.SU)(a).settings.upgrade),1))],2)}}};const Je=Ge;var Qe=Je,Xe=n(3280),et={class:"bg-white rounded-lg border border-gray-300 mx-1 overflow-x-auto"},tt={class:"w-full min-w-[640px] table-fixed"},nt={class:"border-b border-gray-200"},rt={class:"text-left py-4 px-6 font-noto text-sm font-semibold text-o-dark-blue"},lt={class:"font-noto text-xs text-o-dark-blue font-semibold tracking-wider uppercase p-0 m-0"},at={class:"border-b border-gray-100"},it={class:"py-4 px-6 font-noto text-sm text-gray-700"},st={key:0},ot={key:1},ut={class:"border-b border-gray-100"},dt={class:"py-4 px-6 font-noto text-sm text-gray-700"},ct={class:"border-b border-gray-100"},pt={class:"py-4 px-6 font-noto text-sm text-gray-700"},vt={key:0,class:"text-green-600"},mt={key:1,class:"text-gray-700"},gt={class:"border-b border-gray-100"},ft={class:"py-4 px-6 font-noto text-sm text-gray-700"},bt={key:0},wt={key:1,class:"text-green-600"},_t={class:"border-b border-gray-100"},xt={class:"py-4 px-6 font-noto text-sm text-gray-700"},ht={key:0,class:"text-green-600"},yt={key:1,class:"text-gray-700"},kt={class:"py-4 px-6 font-noto text-sm text-gray-700"},St={key:0,class:"text-green-600"},Ut={key:1,class:"text-gray-700"},zt={__name:"PlanComparisonTable",props:{displayedPlans:{type:Array,required:!0},currentPlanSlug:{type:String,required:!0}},setup:function(e){var t=e,n=optml_data,a=n.labels,i=(0,r.Fl)((function(){return t.displayedPlans.length+1}));return function(t,n){return(0,r.wg)(),(0,r.iD)("div",et,[(0,r._)("table",tt,[(0,r._)("colgroup",null,[(0,r._)("col",{class:(0,u.C_)("w-1/".concat(i.value))},null,2),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(e){return(0,r.wg)(),(0,r.iD)("col",{key:e.productId,class:(0,u.C_)("w-1/".concat(i.value))},null,2)})),128))]),(0,r._)("thead",null,[(0,r._)("tr",nt,[(0,r._)("th",rt,[(0,r._)("h3",lt,(0,u.zw)((0,l.SU)(a).settings.whats_different),1)]),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("th",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm font-semibold text-o-dark-blue relative",{"bg-blue-50":t.slug===e.currentPlanSlug}])},[(0,r._)("span",{class:(0,u.C_)({"px-2 py-1 bg-green-600 text-white font-semibold rounded whitespace-nowrap":t.slug===e.currentPlanSlug})},(0,u.zw)(t.displayName),3)],2)})),128))])]),(0,r._)("tbody",null,[(0,r._)("tr",at,[(0,r._)("td",it,(0,u.zw)((0,l.SU)(a).settings.monthly_visits),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm text-gray-700",{"bg-blue-50 font-semibold":t.slug===e.currentPlanSlug}])},["business"===t.slug?((0,r.wg)(),(0,r.iD)("span",st,(0,u.zw)((0,l.SU)(Xe.a)(t.visits))+"+ ",1)):((0,r.wg)(),(0,r.iD)("span",ot,(0,u.zw)((0,l.SU)(Xe.a)(t.visits)),1))],2)})),128))]),(0,r._)("tr",ut,[(0,r._)("td",dt,(0,u.zw)((0,l.SU)(a).settings.support_response_time),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm text-gray-700",{"bg-blue-50 font-semibold":t.slug===e.currentPlanSlug}])},(0,u.zw)(t.supportTime),3)})),128))]),(0,r._)("tr",ct,[(0,r._)("td",pt,(0,u.zw)((0,l.SU)(a).settings.offloading),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm",{"bg-blue-50":t.slug===e.currentPlanSlug}])},[t.hasOffloading?((0,r.wg)(),(0,r.iD)("span",vt,"✓ "+(0,u.zw)((0,l.SU)(a).settings.yes),1)):((0,r.wg)(),(0,r.iD)("span",mt,"—"))],2)})),128))]),(0,r._)("tr",gt,[(0,r._)("td",ft,(0,u.zw)((0,l.SU)(a).settings.image_optimization_size),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm",{"bg-blue-50":t.slug===e.currentPlanSlug}])},[t.imageSizeLimit?((0,r.wg)(),(0,r.iD)("span",bt,"≤"+(0,u.zw)(t.imageSizeLimit)+"MB",1)):((0,r.wg)(),(0,r.iD)("span",wt,(0,u.zw)((0,l.SU)(a).settings.unlimited),1))],2)})),128))]),(0,r._)("tr",_t,[(0,r._)("td",xt,(0,u.zw)((0,l.SU)(a).settings.custom_domain_cname),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm",{"bg-blue-50":t.slug===e.currentPlanSlug}])},[t.hasCustomDomain?((0,r.wg)(),(0,r.iD)("span",ht,(0,u.zw)((0,l.SU)(a).settings.yes),1)):((0,r.wg)(),(0,r.iD)("span",yt,"—"))],2)})),128))]),(0,r._)("tr",null,[(0,r._)("td",kt,(0,u.zw)((0,l.SU)(a).settings.live_chat_support),1),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.displayedPlans,(function(t){return(0,r.wg)(),(0,r.iD)("td",{key:t.productId,class:(0,u.C_)(["text-center py-4 px-6 font-noto text-sm",{"bg-blue-50":t.slug===e.currentPlanSlug}])},[t.hasLiveChat?((0,r.wg)(),(0,r.iD)("span",St,(0,u.zw)((0,l.SU)(a).settings.yes),1)):((0,r.wg)(),(0,r.iD)("span",Ut,"—"))],2)})),128))])])])])}}};const Dt=zt;var Ct=Dt,Ft=n(8631),Zt=n(335);
1n(2526),n(1817);
2/*! vue-number-input v2.0.1 | (c) 2018-present Chen Fengyuan | MIT */
3const Mt=Number.isNaN||window.isNaN,qt=/^-?(?:\d+|\d+\.\d+|\.\d+)(?:[eE][-+]?\d+)?$/,Bt=/\.\d*(?:0|9){10}\d*$/,Ht=(e,t=1e11)=>Bt.test(String(e))?Math.round(e*t)/t:e;var jt=(0,r.aZ)({name:"VueNumberInput",props:{attrs:{type:Object,default:void 0},center:Boolean,controls:Boolean,disabled:Boolean,inputtable:{type:Boolean,default:!0},inline:Boolean,max:{type:Number,default:1/0},min:{type:Number,default:-1/0},name:{type:String,default:void 0},placeholder:{type:String,default:void 0},readonly:Boolean,rounded:Boolean,size:{type:String,default:void 0},step:{type:Number,default:1},modelValue:{type:Number,default:NaN}},emits:["update:modelValue"],data(){return{value:NaN}},computed:{increasable(){return Mt(this.value)||this.value<this.max},decreasable(){return Mt(this.value)||this.value>this.min}},watch:{modelValue:{immediate:!0,handler(e,t){Mt(e)&&"undefined"===typeof t||e===this.value||this.setValue(e)}}},methods:{isNaN:Mt,change(e){this.setValue(e.target.value)},paste(e){const t=e.clipboardData||window.clipboardData;t&&!qt.test(t.getData("text"))&&e.preventDefault()},decrease(){if(this.decreasable){let{value:e}=this;Mt(e)&&(e=0),this.setValue(Ht(e-this.step))}},increase(){if(this.increasable){let{value:e}=this;Mt(e)&&(e=0),this.setValue(Ht(e+this.step))}},setValue(e){const t=this.value;let n="number"!==typeof e?parseFloat(e):e;Mt(n)||(this.min<=this.max&&(n=Math.min(this.max,Math.max(this.min,n))),this.rounded&&(n=Math.round(n))),this.value=n,n===t&&(this.$refs.input.value=String(n)),this.$emit("update:modelValue",n,t)}}});const Lt=["disabled"],Pt=["name","value","min","max","step","readonly","disabled","placeholder"],At=["disabled"];function Nt(e,t,n,l,a,i){return(0,r.wg)(),(0,r.iD)("div",{class:(0,u.C_)(["vue-number-input",{"vue-number-input--inline":e.inline,"vue-number-input--center":e.center,"vue-number-input--controls":e.controls,[`vue-number-input--${e.size}`]:e.size}])},[e.controls?((0,r.wg)(),(0,r.iD)("button",{key:0,class:"vue-number-input__button vue-number-input__button--minus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.decreasable,onClick:t[0]||(t[0]=(...t)=>e.decrease&&e.decrease(...t))},null,8,Lt)):(0,r.kq)("v-if",!0),(0,r._)("input",(0,r.dG)({ref:"input",class:"vue-number-input__input"},e.attrs,{type:"number",name:e.name,value:isNaN(e.value)?"":e.value,min:e.min,max:e.max,step:e.step,readonly:e.readonly||!e.inputtable,disabled:e.disabled||!e.decreasable&&!e.increasable,placeholder:e.placeholder,autocomplete:"off",onChange:t[1]||(t[1]=(...t)=>e.change&&e.change(...t)),onPaste:t[2]||(t[2]=(...t)=>e.paste&&e.paste(...t))}),null,16,Pt),e.controls?((0,r.wg)(),(0,r.iD)("button",{key:1,class:"vue-number-input__button vue-number-input__button--plus",type:"button",tabindex:"-1",disabled:e.disabled||e.readonly||!e.increasable,onClick:t[3]||(t[3]=(...t)=>e.increase&&e.increase(...t))},null,8,At)):(0,r.kq)("v-if",!0)],2)}function Tt(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&r.firstChild?r.insertBefore(l,r.firstChild):r.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}var Vt='.vue-number-input[data-v-188efc8c]{display:block;font-size:0;max-width:100%;overflow:hidden;position:relative}.vue-number-input__button[data-v-188efc8c]{background-color:#fff;border:0;border-radius:.25rem;bottom:1px;position:absolute;top:1px;width:2.5rem;z-index:1}.vue-number-input__button[data-v-188efc8c]:focus{outline:none}.vue-number-input__button[data-v-188efc8c]:hover:after,.vue-number-input__button[data-v-188efc8c]:hover:before{background-color:#0074d9}.vue-number-input__button[data-v-188efc8c]:disabled{opacity:.65}.vue-number-input__button[data-v-188efc8c]:disabled:after,.vue-number-input__button[data-v-188efc8c]:disabled:before{background-color:#ddd}.vue-number-input__button[data-v-188efc8c]:after,.vue-number-input__button[data-v-188efc8c]:before{background-color:#111;content:"";left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);transition:background-color .15s}.vue-number-input__button[data-v-188efc8c]:before{height:1px;width:50%}.vue-number-input__button[data-v-188efc8c]:after{height:50%;width:1px}.vue-number-input__button--minus[data-v-188efc8c]{border-bottom-right-radius:0;border-right:1px solid #ddd;border-top-right-radius:0;left:1px}.vue-number-input__button--minus[data-v-188efc8c]:after{visibility:hidden}.vue-number-input__button--plus[data-v-188efc8c]{border-bottom-left-radius:0;border-left:1px solid #ddd;border-top-left-radius:0;right:1px}.vue-number-input__input[data-v-188efc8c]{-moz-appearance:textfield;background-color:#fff;border:1px solid #ddd;border-radius:.25rem;display:block;font-size:1rem;line-height:1.5;max-width:100%;min-height:1.5rem;min-width:3rem;padding:.4375rem .875rem;transition:border-color .15s;width:100%}.vue-number-input__input[data-v-188efc8c]::-webkit-inner-spin-button,.vue-number-input__input[data-v-188efc8c]::-webkit-outer-spin-button{-webkit-appearance:none}.vue-number-input__input[data-v-188efc8c]:focus{border-color:#0074d9;outline:none}.vue-number-input__input[data-v-188efc8c]:disabled,.vue-number-input__input[readonly][data-v-188efc8c]{background-color:#f8f8f8}.vue-number-input--inline[data-v-188efc8c]{display:inline-block}.vue-number-input--inline>input[data-v-188efc8c]{display:inline-block;width:12.5rem}.vue-number-input--center>input[data-v-188efc8c]{text-align:center}.vue-number-input--controls>input[data-v-188efc8c]{padding-left:3.375rem;padding-right:3.375rem}.vue-number-input--small>input[data-v-188efc8c]{border-radius:.1875rem;font-size:.875rem;padding:.25rem .5rem}.vue-number-input--small.vue-number-input--inline>input[data-v-188efc8c]{width:10rem}.vue-number-input--small.vue-number-input--controls>button[data-v-188efc8c]{width:2rem}.vue-number-input--small.vue-number-input--controls>input[data-v-188efc8c]{padding-left:2.5rem;padding-right:2.5rem}.vue-number-input--large>
3input[data-v-188efc8c]{border-radius:.3125rem;font-size:1.25rem;padding:.5rem 1rem}.vue-number-input--large.vue-number-input--inline>input[data-v-188efc8c]{width:15rem}.vue-number-input--large.vue-number-input--controls>button[data-v-188efc8c]{width:3rem}.vue-number-input--large.vue-number-input--controls>input[data-v-188efc8c]{padding-left:4rem;padding-right:4rem}';Tt(Vt),jt.render=Nt,jt.__scopeId="data-v-188efc8c";var Wt={class:"contents"},Ot={class:"grow max-w-770 bg-white rounded-md px-6 py-4 flex-row items-center m-1 border border-gray-300 mb-8"},It={class:"flex items-top mt-2"},Et={class:"flex-auto text-left items-center"},Kt={class:"flex items-center"},Yt={class:"relative flex-none w-16 h-16 p-2 rounded-full bg-gradient-to-br from-white to-o-light-blue mr-4"},Rt={key:0,viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","svg-inline":"",class:(0,u.C_)("absolute w-12 h-12 text-o-blue"),role:"presentation",focusable:"false",tabindex:"-1"},$t=(0,r.uE)('<path d="M3 22.5l3-3 3 3M45 25.5l-3 3-3-3" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.356 13.58C12.62 9.002 17.95 6 24 6c9.94 0 18 8.06 18 18a18.08 18.08 0 01-.453 3.976" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M38.645 13.58C34.04 15.128 29.126 16 24 16c-5.126 0-10.04-.872-14.644-2.42M38.636 34.412c-3.262 4.578-8.592 7.58-14.644 7.58-9.94 0-18-8.06-18-18 0-1.368.166-2.696.454-3.976" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.35 34.412c4.604-1.548 9.518-2.42 14.644-2.42 5.126 0 10.04.872 14.644 2.42" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M29.303 11.272c2.93 7.03 2.93 18.427 0 25.456-2.929 7.03-7.677 7.03-10.606 0-2.93-7.03-2.93-18.427 0-25.456 2.929-7.03 7.677-7.03 10.606 0" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>',5),Gt=[$t],Jt={key:1,class:"absolute w-12 h-12 text-o-blue",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},Qt=(0,r._)("path",{"fill-rule":"evenodd",d:"M9.504 1.132a1 1 0 01.992 0l1.75 1a1 1 0 11-.992 1.736L10 3.152l-1.254.716a1 1 0 11-.992-1.736l1.75-1zM5.618 4.504a1 1 0 01-.372 1.364L5.016 6l.23.132a1 1 0 11-.992 1.736L4 7.723V8a1 1 0 01-2 0V6a.996.996 0 01.52-.878l1.734-.99a1 1 0 011.364.372zm8.764 0a1 1 0 011.364-.372l1.733.99A1.002 1.002 0 0118 6v2a1 1 0 11-2 0v-.277l-.254.145a1 1 0 11-.992-1.736l.23-.132-.23-.132a1 1 0 01-.372-1.364zm-7 4a1 1 0 011.364-.372L10 8.848l1.254-.716a1 1 0 11.992 1.736L11 10.58V12a1 1 0 11-2 0v-1.42l-1.246-.712a1 1 0 01-.372-1.364zM3 11a1 1 0 011 1v1.42l1.246.712a1 1 0 11-.992 1.736l-1.75-1A1 1 0 012 14v-2a1 1 0 011-1zm14 0a1 1 0 011 1v2a1 1 0 01-.504.868l-1.75 1a1 1 0 11-.992-1.736L16 13.42V12a1 1 0 011-1zm-9.618 5.504a1 1 0 011.364-.372l.254.145V16a1 1 0 112 0v.277l.254-.145a1 1 0 11.992 1.736l-1.735.992a.995.995 0 01-1.022 0l-1.735-.992a1 1 0 01-.372-1.364z","clip-rule":"evenodd"},null,-1),Xt=[Qt],en={class:"lg:hidden flex-auto text-right items-center ml-8"},tn={class:"text-o-dark-blue text-4xl font-light font-noto"},nn={key:0,class:"text-sm"},rn={class:"text-o-light-purple text-sm font-normal font-noto"},ln={key:0,class:"mr-2 hidden lg:inline-block flex-none text-center items-center",style:{"max-width":"150px"}},an={class:"hidden lg:block flex-none text-left items-center"},sn=["disabled"],on={class:"text-o-dark-blue text-3xl font-light font-noto my-4"},un={key:0,class:"lg:hidden mb-4"},dn={class:"block text-gray-700 text-sm font-bold mb-2 mr-2",for:"existing_applications_mobile"},cn={class:"inline-block relative w-100"},pn=["value"],vn=(0,r._)("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[(0,r._)("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[(0,r._)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),mn=["innerHTML"],gn={key:2},fn={class:"grid grid-cols-1 mb-2"},bn={class:"font-noto text-sm text-o-gray"},wn={class:"grid grid-cols-1 mb-2"},_n={class:"font-noto text-sm text-o-gray"},xn={class:"grid grid-cols-1"},hn={class:"font-noto text-sm text-o-gray"},yn={key:3,class:"block lg:hidden md:flex-auto lg:flex-none text-center items-center mt-4 w-32"},kn={class:"block lg:hidden flex-auto text-center items-center mt-4"},Sn=["disabled"],Un={class:"hidden lg:block flex-auto text-center items-center"},zn={class:"text-o-dark-blue font-light font-noto text-5xl mt-8"},Dn={key:0,class:"text-sm"},Cn={class:"text-o-light-purple text-sm font-normal font-noto mb-6"},Fn={key:0},Zn={class:"block text-gray-700 text-sm font-bold mb-2 mr-2",for:"existing_applications"},Mn={class:"inline-block relative w-100"},qn=["value"],Bn=(0,r._)("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700"},[(0,r._)("svg",{class:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},[(0,r._)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})])],-1),Hn={__name:"UpgradeCard",props:{plan:{type:[Object,Boolean],default:function(){return{name:"",product:"free",duration:"month",description:"",visits_limit:1e3,locations:400,priceValue:0,price:"$0.00"}}},value:{type:String,default:""}
3,showFrom:{type:Number,default:0},onUpdatePlan:{type:Function,default:function(){}}},emits:["input"],setup:function(e,t){var n=t.emit,a=e,i=optml_data,s=i.labels,o=(0,r.Fl)((function(){return a.plan.name||s.settings.free})),c=(0,z.L)(),p=(0,l.iH)(1),v=(0,l.iH)(5),m=(0,r.Fl)((function(){var e=a.plan.priceValue,t=a.plan.price;if(p.value>1){var n=(a.plan.priceValue*p.value).toFixed(2);return t.replace(e.toFixed(2),n)}return a.plan.price})),g=(0,r.Fl)((function(){var e=[];return a.showFrom<=1&&e.push({plan:"business-8",name:"100 K"}),a.showFrom<=2&&e.push({plan:"business-10",name:"250 K"}),a.showFrom<=3&&e.push({plan:"business-11",name:"750 K"}),a.showFrom<=4&&e.push({plan:"business-12",name:"1.5 M"}),a.showFrom<=5&&e.push({plan:"business-13",name:"3 M"}),e})),f=(0,r.Fl)((function(){return b.value?s.settings.buy:s.general.upgrade})),b=(0,r.Fl)((function(){return"one_time"===a.plan.duration})),w=(0,r.Fl)((function(){return b.value||c.canStartPlanCheckout})),_=(0,r.Fl)((function(){return a.plan.product.startsWith("business")})),x=(0,r.Fl)((function(){return _.value?s.settings.email_support_12:s.settings.email_support_24})),h=(0,r.Fl)({get:function(){return a.value},set:function(e){a.onUpdatePlan(e),n("input",e)}}),y=(0,r.Fl)((function(){return"one_time"===a.plan.duration?s.settings.billed_once:"year"===a.plan.duration?s.settings.billed_yearly:s.settings.billed_monthly})),k=(0,r.Fl)((function(){var e=a.plan.visits_limit;return e>=1e6?(e/1e6).toFixed(1)+" M":e>=1e5?(e/1e3).toFixed(0)+" K":e>=1e3?(e/1e3).toFixed(0)+" 000":e})),S=function(e){p.value=e.target.value},U=function(){if(c.isBillingSummaryAvailable&&w.value){var e={products:[{path:a.plan.product,quantity:p.value}],checkout:!0};!b.value&&c.replacementSubscriptionReference&&(e["tags"]={cancell_sub_id:c.replacementSubscriptionReference}),fastspring.builder.recognize({email:c.user.user_email}),fastspring.builder.push(e)}};return function(t,n){return(0,r.wg)(),(0,r.iD)("div",Wt,[(0,r._)("div",Ot,[(0,r._)("div",It,[(0,r._)("div",Et,[(0,r._)("div",Kt,[(0,r._)("div",Yt,[b.value?((0,r.wg)(),(0,r.iD)("svg",Jt,Xt)):((0,r.wg)(),(0,r.iD)("svg",Rt,Gt))]),(0,r._)("div",en,[(0,r._)("h4",tn,[(0,r.Uk)((0,u.zw)(m.value),1),b.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",nn,"/mo"))]),(0,r._)("h5",rn,(0,u.zw)(y.value),1)]),b.value?((0,r.wg)(),(0,r.iD)("div",ln,[(0,r.Wm)((0,l.SU)(jt),{modelValue:p.value,"onUpdate:modelValue":n[0]||(n[0]=function(e){return p.value=e}),step:1,min:1,max:v.value,controls:"",center:!0,onChange:S},null,8,["modelValue","max"])])):(0,r.kq)("",!0),(0,r._)("div",an,[(0,r._)("button",{disabled:!w.value,class:(0,u.C_)([{"cursor-not-allowed opacity-50":!w.value},"flex-none rounded-md bg-o-blue hover:bg-primary-accent-hover text-white text-xs font-medium font-noto py-4 md:px-4 lg:px-6"]),onClick:n[1]||(n[1]=(0,d.iM)((function(e){return U()}),["prevent"]))},(0,u.zw)(f.value),11,sn)])]),(0,r._)("h4",on,(0,u.zw)(o.value),1),""!==e.value?((0,r.wg)(),(0,r.iD)("div",un,[(0,r._)("label",dn,(0,u.zw)((0,l.SU)(s).settings.plan_visit_volume),1),(0,r._)("div",cn,[(0,r.wy)((0,r._)("select",{id:"existing_applications_mobile","onUpdate:modelValue":n[2]||(n[2]=function(e){return h.value=e}),class:"block appearance-none w-full bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:ring"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(g.value,(function(e){return(0,r.wg)(),(0,r.iD)("option",{key:e.plan,value:e.plan},(0,u.zw)(e.name),9,pn)})),128))],512),[[d.bM,h.value]]),vn])])):(0,r.kq)("",!0),""!==e.plan.description?((0,r.wg)(),(0,r.iD)("div",{key:1,class:"fs_list list-none font-noto text-sm text-o-gray",innerHTML:e.plan.description},null,8,mn)):((0,r.wg)(),(0,r.iD)("div",gn,[(0,r._)("div",fn,[(0,r._)("div",bn,(0,u.zw)(k.value)+" "+(0,u.zw)((0,l.SU)(s).settings.visits_monthly),1)]),(0,r._)("div",wn,[(0,r._)("div",_n,(0,u.zw)((0,l.SU)(s).settings.cloudfront_cdn)+" ("+(0,u.zw)(e.plan.locations)+" "+(0,u.zw)((0,l.SU)(s).settings.locations)+") ",1)]),(0,r._)("div",xn,[(0,r._)("div",hn,(0,u.zw)(x.value),1)])])),b.value?((0,r.wg)(),(0,r.iD)("div",yn,[(0,r.Wm)((0,l.SU)(jt),{modelValue:p.value,"onUpdate:modelValue":n[3]||(n[3]=function(e){return p.value=e}),step:1,min:1,max:v.value,controls:"",center:!0,onChange:S},null,8,["modelValue","max"])])):(0,r.kq)("",!0),(0,r._)("div",kn,[(0,r._)("button",{disabled:!w.value,class:(0,u.C_)([{"cursor-not-allowed opacity-50":!w.value},"flex-none rounded-md bg-o-blue text-white text-xs font-medium font-noto py-4 px-6"]),onClick:n[4]||(n[4]=(0,d.iM)((function(e){return U()}),["prevent"]))},(0,u.zw)(f.value),11,Sn)])]),(0,r._)("div",Un,[(0,r._)("h4",zn,[(0,r.Uk)((0,u.zw)(m.value),1),b.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",Dn,"/mo"))]),(0,r._)("h5",Cn,(0,u.zw)(y.value),1),""!==e.value?((0,r.wg)(),(0,r.iD)("div",Fn,[(0,r._)("label",Zn,(0,u.zw)((0,l.SU)(s).settings.plan_visit_volume),1),(0,r._)("div",Mn,[(0,r.wy)((0,r._)("select",{id:"existing_applications","onUpdate:modelValue":n[5]||(n[5]=function(e){return h.value=e}),class:"block appearance-none w-full bg-white border border-gray-400 hover:border-gray-500 px-4 py-2 pr-8 rounded shadow leading-tight focus:outline-none focus:ring"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(g.value,(function(e){return(0,r.wg)(),(0,r.iD)("option",{key:e.plan,value:e.plan},(0,u.zw)(e.name),9,qn)})),128))],512),[[d.bM,h.value]]),Bn])])):(0,r.kq)("",!0)])])])])}}};const jn=Hn;var Ln=jn,Pn={key:0,class:"md:contents"},An={__name:"CustomDomainAddon",props:{products:{type:Object,default:function(){return{items:[]}}},autoScroll:{type:Boolean,default:!0}},setup:function(e){var t=e,n=(0,l.iH)(null),i=(0,l.iH)(t.products),s=(0,z.L)(),o=(0,a.yj)(),u=(0,r.Fl)((function(){return o.hash})),d=(0,r.Fl)((function(){return s.hasCustomDomainCapability})),c=(0,r.Fl)((function(){var e="application-plus",t=p(e);return(0!==Object.keys(t).length||t.constructor!==Object)&&{name:t.display,product:e,duration:"one_time",visits_limit:0,locations:400,description:t.description.full,priceValue:t.priceTotalValue,price:t.price}}));(0,r.YP)(d,(function(e){t.autoScroll&&!0===e&&"#planAddon"===u.value&&v()})),(0,r.bv)((function(){t.autoScroll&&!0===d.value&&"#planAddon"===u.value&&v()}));
3var p=function(e){for(var t in i.value.items)if(i.value.items[t]["path"]===e)return i.value.items[t];return{}},v=function(){n.value&&n.value.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})};return function(e,t){return d.value?((0,r.wg)(),(0,r.iD)("div",Pn,[(0,r._)("div",{id:"planAddon",ref_key:"planAddon",ref:n,class:"flex flex-wrap"},[(0,r.Wm)((0,l.SU)(Ln),{plan:c.value},null,8,["plan"])],512)])):(0,r.kq)("",!0)}}};const Nn=An;var Tn=Nn,Vn=(n(8783),n(285),n(1637),n(6229),n(7330),n(2062),{__name:"ManageSubscriptionLink",setup:function(e){var t=optml_data,n=t.labels,a=(0,r.f3)("vuejs3-logger"),i=(0,l.iH)(!1);function c(){return p.apply(this,arguments)}function p(){return p=(0,o.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,m(!0);case 2:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function v(e){if("string"!==typeof(null===e||void 0===e?void 0:e.url)||0===e.url.length)return!1;try{var t=new window.URL(e.url);return"https:"===t.protocol&&t.hostname.length>0&&""===t.username&&""===t.password}catch(n){return!1}}function m(){return f.apply(this,arguments)}function f(){return f=(0,o.Z)((0,s.Z)().mark((function e(){var t,r,l,o,u=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]&&u[0],!i.value){e.next=4;break}return a.info("Skip since request is in progress ... "),e.abrupt("return");case 4:return a.info("Calling manage payment request ... "),i.value=!0,r=window.open("","_blank"),e.prev=7,e.next=10,(0,g.wO)("/billing/portal-sessions",{},{},"POST");case 10:if(l=e.sent,v(l)){e.next=15;break}return null===r||void 0===r||r.close(),(0,g.Jc)(n.general.smth_wrong),e.abrupt("return");case 15:o=l.url+(t?"#/subscriptions":""),r?r.location=o:window.location.assign(o),a.info("Call to manage payment ended."),e.next=24;break;case 20:e.prev=20,e.t0=e["catch"](7),null===r||void 0===r||r.close(),a.info("Call to manage payment failed.");case 24:return e.prev=24,i.value=!1,e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[7,20,24,27]])}))),f.apply(this,arguments)}return function(e,t){return(0,r.wg)(),(0,r.iD)("a",{href:"#",class:"font-noto font-normal text-base text-o-blue hover:text-o-light-purple",onClick:t[0]||(t[0]=(0,d.iM)((function(e){return c()}),["prevent"]))},(0,u.zw)((0,l.SU)(n).settings.manage_subscription),1)}}});const Wn=Vn;var On=Wn,In={class:"max-w-7xl"},En={key:0,class:"mb-12"},Kn={class:"font-noto text-xs text-o-dark-blue font-semibold tracking-wider uppercase px-2 mb-6"},Yn={key:1,class:"font-noto text-center text-o-red"},Rn={key:2,class:"bg-white rounded-lg border border-gray-300 p-6 mx-1 mb-6"},$n={class:"flex items-start justify-between mb-4"},Gn={class:"flex items-center"},Jn={class:"relative flex-none w-10 h-10 p-2 rounded-full bg-gradient-to-br from-white to-o-light-blue mr-3"},Qn={viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg","svg-inline":"",class:(0,u.C_)("absolute w-6 h-6 text-o-blue"),role:"presentation",focusable:"false",tabindex:"-1"},Xn=(0,r.uE)('<path d="M3 22.5l3-3 3 3M45 25.5l-3 3-3-3" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.356 13.58C12.62 9.002 17.95 6 24 6c9.94 0 18 8.06 18 18a18.08 18.08 0 01-.453 3.976" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M38.645 13.58C34.04 15.128 29.126 16 24 16c-5.126 0-10.04-.872-14.644-2.42M38.636 34.412c-3.262 4.578-8.592 7.58-14.644 7.58-9.94 0-18-8.06-18-18 0-1.368.166-2.696.454-3.976" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.35 34.412c4.604-1.548 9.518-2.42 14.644-2.42 5.126 0 10.04.872 14.644 2.42" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M29.303 11.272c2.93 7.03 2.93 18.427 0 25.456-2.929 7.03-7.677 7.03-10.606 0-2.93-7.03-2.93-18.427 0-25.456 2.929-7.03 7.677-7.03 10.606 0" stroke="#577BF9" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"></path>',5),er=[Xn],tr={class:"font-noto text-lg font-semibold text-o-dark-blue"},nr={class:"flex items-center gap-2 text-sm mt-1 flex-wrap"},rr={class:"px-3 py-1 bg-gray-100 text-gray-700 rounded-full"},lr={key:0,class:"px-3 py-1 bg-orange-100 text-orange-700 rounded-full"},ar={key:1,class:"px-3 py-1 bg-gray-100 text-gray-700 rounded-full"},ir={key:2,class:"px-3 py-1 bg-gray-100 text-gray-700 rounded-full"},sr={key:3,class:"px-3 py-1 bg-red-100 text-red-700 rounded-full"},or={key:4,class:"px-3 py-1 bg-gray-100 text-gray-700 rounded-full"},ur={class:"text-right"},dr={key:0,class:"text-sm text-gray-600 mb-1"},cr={key:1,class:"text-sm text-gray-600"},pr={class:"mt-6"},vr={class:"flex flex-row justify-end mt-4 empty:hidden"},mr={key:1,class:"mb-12"},gr={class:"flex justify-between items-center mb-6"},fr={class:"font-noto text-xs text-o-dark-blue font-semibold tracking-wider up
3percase px-2"},br={key:0,class:"flex items-center gap-3"},wr={class:"font-noto text-sm text-o-light-purple"},_r={class:"sr-only"},xr={class:"font-noto text-sm text-o-light-purple"},hr={class:"ml-1 px-2 py-0.5 bg-green-600 text-white text-xs font-semibold rounded"},yr={key:0,class:"mx-3 rounded border border-orange-300 bg-orange-50 p-4 font-noto text-sm text-o-dark-blue"},kr={key:2,class:"mb-12"},Sr={key:3,class:"mb-12"},Ur={class:"font-noto text-xs text-o-dark-blue font-semibold tracking-wider uppercase px-2 mb-6"},zr={class:"font-noto text-base text-o-dark-blue font-bold px-2 mb-4"},Dr={key:1,class:"font-noto text-center text-o-red"},Cr={key:2,class:"font-noto font-light text-lg italic text-center text-gray-500"},Fr={key:3,class:"mx-1 grid gap-6"},Zr=864e5,Mr={__name:"BillingForm",setup:function(e){var t=optml_data,n=t.labels,a=(0,z.L)(),i=(0,l.iH)((0,r.f3)("$fsProducts"));(0,r.YP)((function(){return(0,r.f3)("$fsProducts")}),(function(e){i.value=e}));var s=(0,l.iH)("yearly"),o={free:{slug:"free",productId:"free",get displayName(){return n.settings.free},visits:2e3,imageSizeLimit:5,hasOffloading:!1,hasCustomDomain:!1,hasLiveChat:!1,get supportTime(){return n.settings.support_48h_email}},delivery:{slug:"delivery",productId:"delivery-only-1",get displayName(){return n.settings.delivery_only},visits:1e4,imageSizeLimit:10,hasOffloading:!1,hasCustomDomain:!1,hasLiveChat:!1,get supportTime(){return n.settings.support_48h_email}},starter:{slug:"starter",productId:"starter-2",get displayName(){return n.settings.starter},visits:48e3,imageSizeLimit:null,hasOffloading:!0,hasCustomDomain:!1,hasLiveChat:!1,get supportTime(){return n.settings.support_12_24h}},business:{slug:"business",productId:"business-8",get displayName(){return n.settings.business},visits:12e4,imageSizeLimit:null,hasOffloading:!0,hasCustomDomain:!0,hasLiveChat:!0,hasMultipleTiers:!0,get supportTime(){return n.settings.support_12h}}},d=[{id:"business-8",visits:12e4,displayName:"120 K"},{id:"business-10",visits:3e5,displayName:"300 K"},{id:"business-11",visits:9e5,displayName:"900 K"},{id:"business-12",visits:18e5,displayName:"1.8 M"},{id:"business-13",visits:36e5,displayName:"3.6 M"}],c=[["free",2e3],["delivery-only-1",1e4],["starter-2",48e3],["business-8",12e4],["business-10",3e5],["business-11",9e5],["business-12",18e5],["business-13",36e5]],p=["free","delivery","starter","business"],v=["free","delivery-only-1","starter-2","business-8","business-10","business-11","business-12","business-13"],m={personal:2,"starter-plan":2,premium:2,starter:2,tiny:2,"personal-visits":2,"business-2":2,"premium-visits":2,business:3,"business-visits":3,"business-3":3,"business-8-1":3,"business-4":4,"business-5":5,"business-6":6},g={free:"free","delivery-only-1":"delivery","starter-2":"starter","business-8":"business","business-10":"business","business-11":"business","business-12":"business","business-13":"business"},f=(0,r.Fl)((function(){return a.quota})),b=(0,r.Fl)((function(){return a.isSuspendedFreePlan})),w=(0,r.Fl)((function(){return a.billingSummary})),_=(0,r.Fl)((function(){return a.billingSummaryLoaded})),x=(0,r.Fl)((function(){return a.billingSummaryLoading})),h=(0,r.Fl)((function(){return a.billingSummaryError})),y=(0,r.Fl)((function(){return a.isBillingSummaryAvailable})),k=(0,r.Fl)((function(){var e,t;return null!==(e=null===(t=a.user)||void 0===t?void 0:t.delivery_plan_threshold)&&void 0!==e?e:9e4})),S=(0,r.Fl)((function(){var e,t,n=(0,l.Vh)((function(){return f.value}));return null!==(e=null===(t=n.value)||void 0===t?void 0:t.visitors_usage)&&void 0!==e?e:0})),U=(0,r.Fl)((function(){var e,t,n,r,l,a,i,s,o=null!==(e=null===(t=w.value)||void 0===t?void 0:t.plan.product)&&void 0!==e?e:"free";return{slug:K(o),product:o,visits_limit:null!==(n=null===(r=f.value)||void 0===r?void 0:r.visitors_limit)&&void 0!==n?n:0,renewal:null!==(l=null===(a=w.value)||void 0===a||null===(a=a.subscription)||void 0===a?void 0:a.current_period_ends_at)&&void 0!==l?l:null,autoRenews:null!==(i=null===(s=w.value)||void 0===s||null===(s=s.subscription)||void 0===s?void 0:s.auto_renews)&&void 0!==i&&i}})),D=(0,r.Fl)((function(){var e,t,r,l,i,s,u,d,c,p=o[U.value.slug];return(0,ne.Z)((0,ne.Z)({},null!==p&&void 0!==p?p:{}),{},{slug:U.value.slug,productId:null!==(e=null===p||void 0===p?void 0:p.productId)&&void 0!==e?e:oe(U.value.product),displayName:null!==(t=null===(r=w.value)||void 0===r?void 0:r.plan.name)&&void 0!==t?t:n.settings.free,imageSizeLimit:null!==(l=null===(i=w.value)||void 0===i?void 0:i.plan.entitlements.image_size_limit_mb)&&void 0!==l?l:null,hasOffloading:null!==(s=null===(u=w.value)||void 0===u?void 0:u.plan.entitlements.offloading)&&void 0!==s&&s,hasCustomDomain:null!==(d=null===(c=w.value)||void 0===c?void 0:c.plan.entitlements.custom_domains)&&void 0!==d&&d||a.hasCustomDomainCapability})})),C=(0,r.Fl)((function(){return"custom"!==U.value.slug})),F=(0,r.Fl)((function(){return C.value&&a.canStartPlanCheckout})),Z=(0,r.Fl)((function(){var e=D.value.productId,t=Y(e);t=Math.min(t+1,p.length-1),e=p[t];for(var n=S.value,r=0,l=c;r<l.length;r++){var a=(0,xe.Z)(l[r],2),i=a[0],s=a[1];if(!i.startsWith("delivery")||q.value){var o=Y(i);if(n<s&&t<=o){e=i;break}}}return e})),M=(0,l.iH)(se(U.value));(0,r.YP)(U,(function(e){M.value=se(e)})),(0,r.bv)((function(){M.value=se(U.value),_.value||x.value||T(),N()}));var q=(0,r.Fl)((function(){if("free"!==U.value.slug)return!1;var e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1),n=Math.max(1,Math.floor((e-t)/Zr)),r=M
3ath.ceil(S.value/n*30);return 0<r&&r<=k.value}));(0,r.YP)(Z,(function(e){null!==e&&void 0!==e&&e.startsWith("business-")&&(M.value=e)}),{immediate:!0});var B=(0,r.Fl)((function(){var e,t=[],n="free"===D.value.slug,r=null===(e=D.value.slug)||void 0===e?void 0:e.includes("delivery"),l=p.indexOf(D.value.slug),a=function(e){var t=p.indexOf(e);return t>=l};return!n&&r||b.value||t.push((0,ne.Z)((0,ne.Z)({},o.free),{},{shouldShowCard:a("free")})),(q.value||r)&&t.push((0,ne.Z)((0,ne.Z)({},o.delivery),{},{shouldShowCard:a("delivery")})),t.push((0,ne.Z)((0,ne.Z)({},o.starter),{},{shouldShowCard:a("starter")})),q.value||t.push((0,ne.Z)((0,ne.Z)({},o.business),{},{shouldShowCard:a("business")})),t})),H=(0,r.Fl)((function(){return B.value.filter((function(e){return e.shouldShowCard}))})),j=(0,r.Fl)((function(){return a.billingPayments})),L=(0,r.Fl)((function(){return a.billingPaymentsLoaded})),P=(0,r.Fl)((function(){return a.billingPaymentsLoading})),A=(0,r.Fl)((function(){return a.billingPaymentsError})),N=function(){a.fetchBillingPayments().catch((function(e){return console.error(e)}))},T=function(){a.fetchBillingSummary().catch((function(e){return console.error(e)}))},V=(0,r.Fl)((function(){var e=Math.max(0,U.value.visits_limit-S.value);return(0,Xe.a)(e)})),W=(0,r.Fl)((function(){if(U.value.visits_limit<=0)return 0;var e=S.value/U.value.visits_limit*100;return Math.min(e,100)})),O=(0,r.Fl)((function(){var e,t,n=null===(e=f.value)||void 0===e||null===(e=e.period)||void 0===e?void 0:e.from,r=null===(t=f.value)||void 0===t||null===(t=t.period)||void 0===t?void 0:t.to,l={month:"short",day:"numeric"},a=(0,Xe.v)(n,l),i=(0,Xe.v)(r,l);return a&&i?"".concat(a," – ").concat(i,", ").concat(r.slice(0,4)):""})),I=(0,r.Fl)((function(){return(0,Xe.v)(U.value.renewal)})),E=(0,r.Fl)((function(){return U.value.autoRenews?n.settings.renews_on:n.settings.expires_on}));function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e){var t=oe(e);if(g[t])return g[t];if(void 0!==m[t])return g[v[m[t]]]}return"custom"}function Y(e){if(!e)return-1;var t=oe(e),n=v.indexOf(t);return-1!==n?n:void 0!==m[t]?m[t]:-1}function R(e){for(var t in i.value.items)if(i.value.items[t]["path"]===e)return i.value.items[t];return{}}function $(e){var t,n="yearly"===s.value?"-yearly":"",r=R(e+n);return 0===Object.keys(r).length?"0.00":"yearly"===s.value?(r.priceTotalValue/12).toFixed(2):(null===(t=r.priceTotalValue)||void 0===t?void 0:t.toFixed(2))||"0.00"}function G(e){var t=R(e),n=R(e+"-yearly");if(0===Object.keys(t).length||0===Object.keys(n).length)return"0.00";var r=12*(t.priceTotalValue||0),l=n.priceTotalValue||0,a=r-l;return a.toFixed(2)}function J(e){return re(e)?n.settings.current_plan_badge:e===Z.value?n.settings.recommended:""}function Q(){s.value="monthly"===s.value?"yearly":"monthly"}function X(e){M.value=e}function ee(e){return e.hasMultipleTiers?M.value:e.productId}function te(e){if(e.hasMultipleTiers){var t=d.find((function(e){return e.id===M.value}));return t?t.visits:e.visits}return e.visits}function re(e){return e===oe(U.value.product)}function le(e){if(e.hasMultipleTiers&&"business"===D.value.slug){var t=d.find((function(e){return e.id===M.value}));return t&&t.visits===U.value.visits_limit}return e.slug===D.value.slug}function ae(e,t){var n=Y(e.product),r=t.hasMultipleTiers?M.value:t.productId,l=Y(r);if(-1!==n&&-1!==l)return l<n;var a=p.indexOf(e.slug),i=p.indexOf(t.slug);if("business"===e.slug&&"business"===t.slug){var s=te(t);return s<e.visits_limit}return i<a}function ie(e){if(F.value){var t="yearly"===s.value?"-yearly":"",n=e.includes("-yearly")?e:e+t,r={products:[{path:n,quantity:1}],checkout:!0};a.replacementSubscriptionReference&&(r["tags"]={cancell_sub_id:a.replacementSubscriptionReference}),"undefined"!==typeof fastspring&&(fastspring.builder.recognize({email:a.user.user_email}),fastspring.builder.push(r))}}function se(e){var t=(null===e||void 0===e?void 0:e.visits_limit)||0,n=d.find((function(e){return e.visits>t}));return(null===n||void 0===n?void 0:n.id)||oe(e.product)}function oe(e){return e.replace("-yearly","").replace("-monthly","")}return function(e,t){return(0,r.wg)(),(0,r.iD)("div",In,[b.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("section",En,[(0,r._)("h3",
3Kn,(0,u.zw)((0,l.SU)(n).settings.current_plan_usage),1),x.value||!_.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(Zt.Z),{key:0})):h.value?((0,r.wg)(),(0,r.iD)("div",Yn,[(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.billing_summary_error),1),(0,r._)("button",{type:"button",class:"mt-3 rounded border border-o-blue px-3 py-1 text-sm font-medium text-o-blue hover:bg-o-blue hover:text-white",onClick:T},(0,u.zw)((0,l.SU)(n).settings.retry_billing_summary),1)])):y.value?((0,r.wg)(),(0,r.iD)("div",Rn,[(0,r._)("div",$n,[(0,r._)("div",Gn,[(0,r._)("div",Jn,[((0,r.wg)(),(0,r.iD)("svg",Qn,er))]),(0,r._)("div",null,[(0,r._)("h4",tr,(0,u.zw)(D.value.displayName),1),(0,r._)("div",nr,[(0,r._)("span",rr,(0,u.zw)((0,l.SU)(Xe.a)(U.value.visits_limit))+" "+(0,u.zw)((0,l.SU)(n).settings.visits_mo),1),D.value.imageSizeLimit?((0,r.wg)(),(0,r.iD)("span",lr,(0,u.zw)((0,l.SU)(n).settings.images_size_limit.replace("%s",D.value.imageSizeLimit)),1)):((0,r.wg)(),(0,r.iD)("span",ar,(0,u.zw)((0,l.SU)(n).settings.unlimited_images),1)),D.value.hasOffloading?((0,r.wg)(),(0,r.iD)("span",ir,(0,u.zw)((0,l.SU)(n).settings.offloading_enabled),1)):((0,r.wg)(),(0,r.iD)("span",sr,(0,u.zw)((0,l.SU)(n).settings.no_offloading),1)),D.value.hasCustomDomain?((0,r.wg)(),(0,r.iD)("span",or,(0,u.zw)((0,l.SU)(n).settings.custom_domain_cname),1)):(0,r.kq)("",!0)])])]),(0,r._)("div",ur,[O.value?((0,r.wg)(),(0,r.iD)("p",dr,(0,u.zw)(O.value),1)):(0,r.kq)("",!0),I.value?((0,r.wg)(),(0,r.iD)("p",cr,(0,u.zw)(E.value)+" "+(0,u.zw)(I.value),1)):(0,r.kq)("",!0)])]),(0,r._)("div",pr,[(0,r.Wm)((0,l.SU)(Ft.Z),{"current-display":(0,l.SU)(Xe.a)(S.value),"limit-display":(0,l.SU)(Xe.a)(U.value.visits_limit),"remaining-display":V.value,percentage:W.value},null,8,["current-display","limit-display","remaining-display","percentage"])]),(0,r._)("div",vr,["free"!==D.value.slug?((0,r.wg)(),(0,r.j4)(On,{key:0})):(0,r.kq)("",!0)])])):(0,r.kq)("",!0)])),y.value?((0,r.wg)(),(0,r.iD)("section",mr,[(0,r._)("div",gr,[(0,r._)("h3",fr,(0,u.zw)((0,l.SU)(n).settings.available_plans),1),F.value?((0,r.wg)(),(0,r.iD)("div",br,[(0,r._)("span",wr,(0,u.zw)((0,l.SU)(n).settings.monthly),1),(0,r._)("button",{type:"button","aria-pressed":"false",class:"bg-o-blue hover:bg-o-light-purple relative inline-flex flex-shrink-0 h-6 w-11 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",onClick:Q},[(0,r._)("span",_r,(0,u.zw)((0,l.SU)(n).settings.billing_period),1),(0,r._)("span",{"aria-hidden":"true",class:(0,u.C_)([{"translate-x-5":"yearly"===s.value},"translate-x-0 inline-block h-5 w-5 rounded-full bg-white shadow transform ring-0 transition ease-in-out duration-200"])},null,2)]),(0,r._)("span",xr,[(0,r.Uk)((0,u.zw)((0,l.SU)(n).settings.yearly)+" ",1),(0,r._)("span",hr,(0,u.zw)((0,l.SU)(n).settings.save_20_percent),1)])])):(0,r.kq)("",!0)]),F.value?((0,r.wg)(),(0,r.iD)("div",{key:1,class:(0,u.C_)(["flex flex-wrap gap-5 mx-3",H.value.length>1?"justify-end":"justify-center"])},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(H.value,(function(e){return(0,r.wg)(),(0,r.j4)((0,l.SU)(Qe),{key:e.productId,title:e.displayName,price:$(ee(e)),savings:G(ee(e)),"visits-display":(0,l.SU)(Xe.a)(te(e)),"plan-id":ee(e),"is-current-plan":re(ee(e)),badge:J(ee(e)),"has-multiple-tiers":e.hasMultipleTiers,"tier-options":e.hasMultipleTiers?d:[],"selected-tier":M.value,"is-selected-tier-current":le(e),"is-downgrade":ae(U.value,e),onUpgrade:ie,onChangeTier:X},null,8,["title","price","savings","visits-display","plan-id","is-current-plan","badge","has-multiple-tiers","tier-options","selected-tier","is-selected-tier-current","is-downgrade"])})),128))],2)):((0,r.wg)(),(0,r.iD)("div",yr,[(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.plan_change_unavailable),1),(0,r.Wm)(On,{class:"mt-2 inline-block"})]))])):(0,r.kq)("",!0),y.value&&C.value?((0,r.wg)(),(0,r.iD)("section",kr,[(0,r.Wm)((0,l.SU)(Ct),{"displayed-plans":B.value,"current-plan-slug":D.value.slug},null,8,["displayed-plans","current-plan-slug"])])):(0,r.kq)("",!0),y.value&&"business"===D.value.slug?((0,r.wg)(),(0,r.iD)("section",Sr,[(0,r._)("h3",Ur,(0,u.zw)((0,l.SU)(n).settings.add_ons||"Add-ons"),1),(0,r.Wm)((0,l.SU)(Tn),{products:i.value,"auto-scroll":!1},null,8,["products"])])):(0,r.kq)("",!0),(0,r._)("section",null,[(0,r._)("h3",zr,(0,u.zw)((0,l.SU)(n).settings.receipts),1),P.value||!L.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(Zt.Z),{key:0})):A.value?((0,r.wg)(),(0,r.iD)("div",Dr,[(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.payment_history_error),1),(0,r._)("button",{type:"button",class:"mt-3 rounded border border-o-blue px-3 py-1 text-sm font-medium text-o-blue hover:bg-o-blue hover:text-white",onClick:N},(0,u.zw)((0,l.SU)(n).settings.retry_payment_history),1)])):0===j.value.length?((0,r.wg)(),(0,r.iD)("div",Cr,(0,u.zw)((0,l.SU)(n).settings.no_payment_msg),1)):((0,r.wg)(),(0,r.iD)("div",Fr,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(j.value,(function(e){return(0,r.wg)(),(0,r.j4)((0,l.SU)(He),{key:e.id,amount:e.amount,currency:e.currency,"paid-at":e.paid_at,url:e.invoice_url,status:e.status},null,8,["amount","currency","paid-at","url","status"])})),128))]))])])}}};const qr=Mr;var Br=qr,Hr=function(e){return(0,r.dD)("data-v-2556fa46"),e=e(),(0,r.Cn)(),e},jr={class:"w-100 lg:w-770 max-w-100 bg-white rounded-md px-8 py-6 flex-row items-center m-1 border border-gray-300 mb-8"},Lr={class:"text-o-dark-blue text-3xl font-light font-noto my-4"},Pr={class:"text-o-blue"},Ar=Hr((function(){return(0,r._)("span",{class:"loading animate-pulse"},null,-1)})),Nr={__name:"BillingWait",setup:function(e){var t=optml_data,n=t.labels,a=(0,l.iH)(10),i=function e(){a.value>0?setTimeout((function(){a.value-=1,e()}),1e3):(a.value="redirecting",window.location="/settings/billing")};return(0,r.bv)(i),function(e,t){return(0,r.wg)(),(0,r.iD)("div",jr,[(0,r._)("h4",Lr,[(0,r.Uk)((0,u.zw)((0,l.SU)(n).settings.waitingp)+" ",1),(0,r._)("span",Pr,(0,u.zw)(a.value),1),Ar])])}}}
3,Tr=n(3744);const Vr=(0,Tr.Z)(Nr,[["__scopeId","data-v-2556fa46"]]);var Wr=Vr,Or=n(9584),Ir=n(3336),Er=(n(1249),n(6535),n(9244),{class:"mt-1"}),Kr={class:"text-left mt-2 text-sm text-gray-600"},Yr={class:"mt-2 pt-5"},Rr={class:"flex justify-end"},$r={class:"inline-flex rounded-md shadow-sm"},Gr=["disabled","onClick"],Jr={class:"ml-3 inline-flex rounded-md shadow-sm"},Qr=["disabled","onClick"],Xr={key:0,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("animate-spin h-4 w-4 mr-2"),role:"presentation",focusable:"false",tabindex:"-1"},el=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),tl=[el],nl={style:{"margin-bottom":"1.5rem","margin-top":"0.75rem"},class:"font-noto font-normal text-xl"},rl={key:1,style:{"margin-bottom":"1.5rem"},class:"font-noto font-normal text-base"},ll={class:"mt-6"},al={key:0,class:"w-full rounded-md shadow-sm"},il={key:0,class:"font-noto font-normal text-base leading-5 mb-4"},sl={key:1,class:"flex flex-wrap items-center gap-4"},ol=["disabled","onClick"],ul={key:0},dl={key:1,class:"animate-spin h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},cl=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),pl=[cl],vl={href:"https://docs.optimole.com/image-processing/how-to-export-the-images-from-optimole",target:"_blank",class:"inline-flex items-center gap-1 text-sm font-noto font-semibold text-o-blue hover:underline"},ml=(0,r._)("svg",{class:"w-4 h-4",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2","aria-hidden":"true"},[(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9 5.25h.008v.008H12v-.008z"})],-1),gl={key:1},fl={class:"flex text-sm leading-5 rounded-md font-noto py-5 px-4 text-o-blue bg-o-light-blue"},bl={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("mt-1 mr-3 w-4 h-4 animate-spin"),role:"presentation",focusable:"false",tabindex:"-1"},wl=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),_l=[wl],xl={key:0,class:"mt-4"},hl={class:"flex items-center justify-between font-noto text-sm text-o-dark-blue mb-2"},yl={class:"h-2 w-full rounded-full bg-gray-200 overflow-hidden"},kl={class:"mt-3 divide-y divide-gray-200"},Sl={class:"flex items-start justify-between gap-4"},Ul={class:"min-w-0 flex-1 text-o-dark-blue"},zl={class:"shrink-0 text-o-gray"},Dl={key:0,class:"mt-2 divide-y divide-gray-200"},Cl=["onClick"],Fl={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("h-4 w-4 shrink-0"),role:"presentation",focusable:"false",tabindex:"-1"},Zl=(0,r._)("path",{d:"M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 11l5 5 5-5M12 4v12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),Ml=[Zl],ql={class:"ml-3 min-w-0 flex-1 truncate text-left"},Bl={class:"ml-3 shrink-0 text-o-gray"},Hl={key:1,class:"mt-2 font-noto text-xs text-o-gray"},jl={class:"mt-6"},Ll={class:"font-noto font-semibold text-sm text-o-dark-blue mb-2"},Pl={key:0,class:"flex items-center py-3 font-noto text-sm text-o-gray"},Al={xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("mr-3 h-4 w-4 animate-spin text-o-blue"),role:"presentation",focusable:"false",tabindex:"-1"},Nl=(0,r._)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"},null,-1),Tl=[Nl],Vl={key:1,class:"divide-y divide-gray-300"},Wl={class:"flex items-start gap-4"},Ol=["aria-expanded","aria-controls","aria-label","onClick"],Il=(0,r._)("path",{"clip-rule":"evenodd",d:"M5.834 11.766a.8.8 0 010-1.132L8.468 8 5.834 5.366a.8.8 0 011.131-1.132l3.2 3.2a.8.8 0 010 1.132l-3.2 3.2a.8.8 0 01-1.131 0z",fill:"
3currentColor","fill-rule":"evenodd"},null,-1),El=[Il],Kl={class:"ml-3 min-w-0"},Yl={class:"block font-noto text-sm font-semibold text-o-dark-blue"},Rl={class:"mt-1 block font-noto text-xs text-o-gray"},$l={key:0,class:"hidden shrink-0 text-right font-noto text-xs font-semibold leading-5 text-o-gray sm:block"},Gl=["disabled","onClick"],Jl=["id"],Ql={key:0,class:"mb-2 font-noto text-xs font-semibold text-o-gray sm:hidden"},Xl={key:1,class:"divide-y divide-gray-300"},ea=["onClick"],ta={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor","svg-inline":"",class:(0,u.C_)("h-5 w-5 shrink-0"),role:"presentation",focusable:"false",tabindex:"-1"},na=(0,r._)("path",{d:"M4 17v2a2 2 0 002 2h12a2 2 0 002-2v-2M7 11l5 5 5-5M12 4v12","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ra=[na],la={class:"ml-3 min-w-0 flex-1 truncate text-left"},aa={class:"ml-3 shrink-0 text-o-gray"},ia={key:2,class:"font-noto font-normal text-sm leading-5"},sa={key:2,class:"py-3 font-noto text-sm text-o-gray"},oa=5,ua=5,da=5e3,ca=3,pa={__name:"ExportComponent",setup:function(e){var t=optml_data,n=t.labels,a=["queued","running"],i=["completed","failed","cancelled"],c=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"}),p=(0,l.iH)(!1),v=(0,l.iH)(!0),m=(0,l.iH)(!1),b=(0,l.iH)(!1),w=(0,l.iH)([]),_=(0,l.iH)({}),x=(0,l.iH)({}),h=(0,l.iH)(null),y=(0,l.iH)(null),k=(0,l.iH)(0),S=(0,l.iH)(!1),U=(0,r.Fl)((function(){return w.value.find((function(e){return a.includes(null===e||void 0===e?void 0:e.status)}))||null})),z=(0,r.Fl)((function(){return H(U.value)})),D=(0,r.Fl)((function(){var e,t=null===(e=z.value)||void 0===e?void 0:e.domains;return Array.isArray(t)?t.filter((function(e){return e&&"object"===(0,Ir.Z)(e)&&"string"===typeof e.domain})):[]})),C=(0,r.Fl)((function(){var e=D.value.length,t=D.value.filter((function(e){return"completed"===(null===e||void 0===e?void 0:e.status)})).length;return{completed:t,total:e,percent:e>0?Math.round(t/e*100):0}})),F=(0,r.Fl)((function(){return w.value.filter((function(e){return i.includes(null===e||void 0===e?void 0:e.status)}))})),Z=(0,r.Fl)((function(){return Boolean(U.value)})),M=(0,r.Fl)((function(){return F.value.length>0})),q=(0,r.Fl)((function(){return w.value.length>=ua})),B=function(e){if("number"!==typeof e||e<=0)return"";var t=["B","KB","MB","GB","TB"],n=e,r=0;while(n>=1024&&r<t.length-1)n/=1024,r++;return"".concat(n.toFixed(n>=10||0===r?0:1)," ").concat(t[r])},H=function(e){return null!==e&&void 0!==e&&e.id&&_.value[e.id]||e},j=function(e,t){var n=H(e);return t&&Array.isArray(t.zip_files)?t.zip_files.map((function(e){return{key:"".concat(n.id,"-").concat(t.domain,"-").concat(e.part_number),export_id:n.id,domain:t.domain,name:"".concat(P(t.domain)," (part ").concat(e.part_number,")"),part_number:e.part_number,bytes:"number"===typeof e.size?e.size:0,size:B(e.size),url:e.url}})):[]},L=function(e){var t=H(e),n=null===t||void 0===t?void 0:t.domains;return Array.isArray(n)?n.flatMap((function(e){return j(t,e)})):[]},P=function(e){return"directUpload"===e?n.settings.export_direct_uploads:e},A=function(e){return n.settings.export_progress.replace("%1$s",e.completed).replace("%2$s",e.total)},N=function(e){return"completed"===e?n.settings.export_completed:"running"===e?n.settings.export_status_running:"failed"===e?n.settings.export_failed:"cancelled"===e?n.settings.export_cancelled:n.settings.export_status_queued},T=function(e){return"completed"===(null===e||void 0===e?void 0:e.status)&&(!Array.isArray(e.zip_files)||0===e.zip_files.length)},V=function(e){return"completed"===(null===e||void 0===e?void 0:e.status)?n.settings.export_completed:"cancelled"===(null===e||void 0===e?void 0:e.status)?n.settings.export_cancelled:n.settings.export_failed},W=function(e){return"completed"===(null===e||void 0===e?void 0:e.status)?n.settings.export_empty:"cancelled"===(null===e||void 0===e?void 0:e.status)?n.settings.export_cancelled:n.settings.export_error_generic},O=function(e){var t=new Date(null===e||void 0===e?void 0:e.created_at);return Number.isNaN(t.getTime())?n.settings.export_item_title:c.format(t)},I=function(e){return[V(e),n.settings.export_item_id.replace("%s",e.id)].join(" · ")},E=function(e){return(1===e?n.settings.export_zip_count_single:n.settings.export_zip_count_plural).replace("%s",e)},K=function(e){var t=L(e);if(!t.length)return"";var n=t.reduce((function(e,t){return e+t.bytes}),0),r=B(n);return r?"".concat(E(t.length)," · ").concat(r):E(t.length)},Y=function(e){return"asset-export-".concat(e.id,"-files")},R=function(e){return Boolean(x.value[e.id])}
3,$=function(e){return R(e)?n.settings.export_collapse:n.settings.export_expand},G=function(e){x.value=(0,ne.Z)((0,ne.Z)({},x.value),{},(0,te.Z)({},e.id,!R(e)))},J=function(){null!==y.value&&(clearInterval(y.value),y.value=null)},Q=function(){null===y.value&&(y.value=setInterval((function(){re()}),da))},X=function(e){w.value=w.value.map((function(t){return t.id===e.id?e:t}))},ee=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var n,r,l,i,o=arguments;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,(0,g.wO)("/asset-exports/".concat(t),{},{},"GET",r);case 3:if(l=e.sent,null!==l&&void 0!==l&&l.id){e.next=6;break}return e.abrupt("return",null);case 6:return i=(null===(n=U.value)||void 0===n?void 0:n.id)===l.id,_.value=(0,ne.Z)((0,ne.Z)({},_.value),{},(0,te.Z)({},l.id,l)),X(l),k.value=0,a.includes(l.status)?Q():i&&J(),e.abrupt("return",l);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t,n;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!document.hidden){e.next=2;break}return e.abrupt("return");case 2:if(n=null===(t=U.value)||void 0===t?void 0:t.id,n){e.next=6;break}return J(),e.abrupt("return");case 6:return e.prev=6,e.next=9,ee(n,{suppressErrorToast:!0});case 9:e.next=15;break;case 11:e.prev=11,e.t0=e["catch"](6),k.value++,k.value>=ca&&J();case 15:case"end":return e.stop()}}),e,null,[[6,11]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var e;!document.hidden&&null!==(e=U.value)&&void 0!==e&&e.id&&re()},ae=function(e){h.value=e,S.value=!0},ie=function(){m.value||(S.value=!1,h.value=null)},se=function(e,t){var n=null===e||void 0===e?void 0:e.domains;if(!Array.isArray(n))return null;var r=n.find((function(e){return(null===e||void 0===e?void 0:e.domain)===t.domain}));return r&&Array.isArray(r.zip_files)&&r.zip_files.find((function(e){return"".concat(e.part_number)==="".concat(t.part_number)}))||null},oe=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=w.value.filter((function(e){return a.includes(null===e||void 0===e?void 0:e.status)||"completed"===(null===e||void 0===e?void 0:e.status)})),e.next=3,Promise.all(t.map((function(e){return ee(e.id,{suppressErrorToast:!0}).catch((function(){return null}))})));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ue=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return v.value=!0,e.prev=1,e.next=4,(0,g.wO)("/asset-exports",{per_page:oa},{},"GET");case 4:return t=e.sent,w.value=Array.isArray(null===t||void 0===t?void 0:t.data)?t.data:[],_.value={},e.next=9,oe();case 9:return e.prev=9,v.value=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[1,,9,12]])})));return function(){return e.apply(this,arguments)}}(),de=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return p.value=!0,e.prev=1,e.next=4,(0,g.wO)("/asset-exports",{},{},"POST");case 4:if(t=e.sent,null===t||void 0===t||!t.id){e.next=9;break}return w.value=[t].concat((0,Or.Z)(w.value)).slice(0,oa),e.next=9,ee(t.id);case 9:return e.prev=9,p.value=!1,e.finish(9);case 12:case"end":return e.stop()}}),e,null,[[1,,9,12]])})));return function(){return e.apply(this,arguments)}}(),ce=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(){var t,r,l,a;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(l=null===(t=h.value)||void 0===t?void 0:t.id,!m.value&&l&&i.includes(null===(r=h.value)||void 0===r?void 0:r.status)){e.next=3;break}return e.abrupt("return");case 3:return m.value=!0,e.prev=4,e.next=7,(0,g.wO)("/asset-exports/".concat(l),{},{},"DELETE");case 7:w.value=w.value.filter((function(e){return e.id!==l})),delete _.value[l],a=(0,ne.Z)({},x.value),delete a[l],x.value=a,S.value=!1,h.value=null,(0,g.Qm)(n.settings.export_delete_success);case 15:return e.prev=15,m.value=!1,e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[4,,15,18]])})));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=(0,o.Z)((0,s.Z)().mark((function e(t){var r,l;return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!b.value&&null!==t&&void 0!==t&&t.export_id&&null!==t&&void 0!==t&&t.domain){e.next=2;break}return e.abrupt("return");case 2:return b.value=!0,e.prev=3,e.next=6,ee(t.export_id);case 6:if(r=e.sent,l=se(r,t),null!==l&&void 0!==l&&l.url){e.next=11;break}return(0,g.Jc)(n.settings.export_download_unavailable),e.abrupt("return");case 11:window.location.href=l.url,e.next=17;break;case 14:return e.prev=14,e.t0=e["catch"](3),e.abrupt("return");case 17:return e.prev=17,b.value=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,14,17,20]])})));return function(t){return e.apply(this,arguments)}}();return(0,r.bv)((0,o.Z)((0,s.Z)().mark((function e(){return(0,s.Z)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return document.addEventListener("visibilitychange",le),e.next=3,ue();case 3:case"end":return e.stop()}}),e)})))),(0,r.Jd)((function(){document.removeEventListener("visibilitychange",le),J()})),function(e,t){return(0,r.wg)(),(0,r.iD)("div",Er,[S.value?((0,r.wg)(),(0,r.j4)(f.Z,{key:0,open:!0,title:(0,l.SU)(n).settings.export_delete_confirm_title,toggle:ie,loading:m.value},{actions:(0,r.w5)((function(){return[(0,r._)("div",Yr,[(0,r._)("div",Rr,[(0,r._)("span",$r,[(0,r._)("button",{disabled:m.value,class:(0,u.C_)([{"cursor-not-allowed opacity-50 pointer-events-none":m.value},"py-2 px-4 border border-gray-300 rounded-md text-sm leading-5 font-medium text-gray-700 hover:text-gray-500 focus:outline-none focus:border-blue-300 focus:ring-blue active:bg-gray-50 active:text-gray-800 transition duration-150 ease-in-out"]),type:"button",onClick:(0,d.iM)(ie,["prevent"])},(0,u.zw)((0,l.SU)(n).general.cancel),11,Gr)]),(0,r._)("span",Jr,[(0,r._)("button",{disabled:m.value,class:(0,u.C_)([{"cursor-not-allowed opacity-50 pointer-events-none":m.value},"inline-flex items-center justify-center py-2 px-4 border border-transparent text-sm leading-5 font-medium rounded-md text-white bg-o-red hover:bg-o-light-blue hover:text-o-blue focus:outline-none active:bg-o-light-blue transition duration-150 ease-in-out"]),onClick:(0,d.iM)(ce,["prevent"])},[m.value?((0,r.wg)(),(0,r.iD)("svg",Xr,tl)):(0,r.kq)("",!0),(0,r.Uk)(" "+(0,u.zw)((0,l.SU)(n).general.delete),1)],10,Qr)])])])]})),default:(0,r.w5)((function(){return[(0,r._)("p",Kr,(0,u.zw)((0,l.SU)(n).settings.export_delete_confirm_message),1)]})),_:1},8,["title","loading"])):(0,r.kq)("",!0),(0,r._)("p",nl,(0,u.zw)((0,l.SU)(n).settings.export_images),1),v.value||Z.value||M.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("p",rl,(0,u.zw)((0,l.SU)(n).settings.export_images_desc),1)),(0,r._)("div",ll,[Z.value?((0,r.wg)(),(0,r.iD)("span",gl,[(0,r._)("div",fl,[((0,r.wg)(),(0,r.iD)("svg",bl,_l)),(0,r._)("div",null,[(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.export_pending),1),(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.export_pending_email),1)])]),C.value.total?((0,r.wg)(),(0,r.iD)("div",xl,[(0,r._)("div",hl,[(0,r._)("p",null,(0,u.zw)(A(C.value)),1),(0,r._)("p",null,(0,u.zw)(C.value.percent)+"%",1)]),(0,r._)("div",yl,[(0,r._)("div",{class:"h-full rounded-full bg-o-blue transition-all duration-300",style:(0,u.j5)({width:"".concat(C.value.percent,"%")})},null,4)]),(0,r._)("div",kl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(D.value,(function(e){return(0,r.wg)(),(0,r.iD)("div",{key:e.domain,class:"py-3 font-noto text-sm"},[(0,r._)("div",Sl,[(0,r._)("span",Ul,(0,u.zw)(P(e.domain)),1),(0,r._)("span",zl,(0,u.zw)(N(e.status)),1)]),j(U.value,e).length?((0,r.wg)(),(0,r.iD)("div",Dl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(j(U.value,e),(function(e){return(0,r.wg)(),(0,r.iD)("button",{key:e.key,class:"flex w-full items-center px-2 py-2 font-noto text-xs font-semibold text-o-blue bg-transparent hover:bg-o-light-gray hover:text-o-dark",onClick:function(t){return pe(e)}},[((0,r.wg)(),(0,r.iD)("svg",Fl,Ml)),(0,r._)("p",ql,(0,u.zw)(e.name),1),(0,r._)("p",Bl,(0,u.zw)(e.size),1)],8,Cl)})),128))])):T(e)?((0,r.wg)(),(0,r.iD)("p",Hl,(0,u.zw)((0,l.SU)(n).settings.export_no_media),1)):(0,r.kq)("",!0)])})),128))])])):(0,r.kq)("",!0)])):((0,r.wg)(),(0,r.iD)("span",al,[q.value?((0,r.wg)(),(0,r.iD)("p",il,(0,u.zw)((0,l.SU)(n).settings.export_limit_reached),1)):((0,r.wg)(),(0,r.iD)("div",sl,[(0,r._)("button",{type:"submit",disabled:p.value,class:"flex justify-center py-2 px-16 border border-transparent text-sm font-bold font-noto rounded-md text-white bg-o-blue hover:bg-primary-accent-hover hover:text-white focus:outline-none active:bg-primary-accent-active transition duration-150 ease-in-out",onClick:(0,d.iM)(de,["prevent"])},[p.value?(0,r.kq)("",!0):((0,r.wg)(),(0,r.iD)("span",ul,(0,u.zw)((0,l.SU)(n).settings.initiate_export),1)),p.value?((0,r.wg)(),(0,r.iD)("svg",dl,pl)):(0,r.kq)("",!0)],8,ol),(0,r._)("a",vl,[ml,(0,r.Uk)(" "+(0,u.zw)((0,l.SU)(n).settings.export_learn_more),1)])]))]))]),(0,r._)("div",jl,[(0,r._)("p",Ll,(0,u.zw)((0,l.SU)(n).settings.export_recent),1),v.value?((0,r.wg)(),(0,r.iD)("div",Pl,[((0,r.wg)(),(0,r.iD)("svg",Al,Tl)),(0,r._)("p",null,(0,u.zw)((0,l.SU)(n).settings.export_recent_loading),1)])):M.value?((0,r.wg)(),(0,r.iD)("div",Vl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(F.value,(function(e){return(0,r.wg)(),(0,r.iD)("div",{key:e.id,class:"py-3"},[(0,r._)("div",Wl,[(0,r._)("button",{type:"button",class:"flex min-w-0 flex-1 items-start bg-transparent text-left","aria-expanded":R(e),"aria-controls":Y(e),"aria-label":$(e),onClick:(0,d.iM)((function(t){return G(e)}),["prevent"])},[((0,r.wg)(),(0,r.iD)("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg","svg-inline":"",class:(0,u.C_)(["mt-1 h-4 w-4 shrink-0 transform text-o-blue transition-transform",{"rotate-90":R(e)}]),role:"presentation",focusable:"false",tabindex:"-1"},El,2)),(0,r._)("span",Kl,[(0,r._)("span",Yl,(0,u.zw)(O(e)),1),(0,r._)("span",Rl,(0,u.zw)(I(e)),1)])],8,Ol),K(e)?((0,r.wg)(),(0,r.iD)("p",$l,(0,u.zw)(K(e)),1)):(0,r.kq)("",!0),(0,r._)("button",{type:"button",disabled:m.value,class:"shrink-0 bg-transparent font-noto text-xs font-semibold leading-5 text-o-red hover:text-o-dark",onClick:(0,d.iM)((function(t){return ae(e)}),["prevent"])},(0,u.zw)((0,l.SU)(n).settings.export_delete),9,Gl)]),R(e)?((0,r.wg)(),(0,r.iD)("div",{key:0,id:Y(e),class:"mt-3 pl-7"},[K(e)?((0,r.wg)(),(0,r.iD)("p",Ql,(0,u.zw)(K(e)),1)):(0,r.kq)("",!0),L(e).length?((0,r.wg)(),(0,r.iD)("div",Xl,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(L(e),(function(e){return(0,r.wg)(),(0,r.iD)("button",{key:e.key,class:"flex w-full items-center px-2 py-3 font-noto text-sm font-semibold text-o-blue bg-transparent hover:bg-o-light-gray hover:text-o-dark",onClick:function(t){return pe(e)}},[((0,r.wg)(),(0,r.iD)("svg",ta,ra)),(0,r._)("p",la,(0,u.zw)(e.name),1),(0,r._)("p",aa,(0,u.zw)(e.size),1)],8,ea)})),128))])):((0,r.wg)(),(0,r.iD)("p",ia,(0,u.zw)(W(e)),1))],8,Jl)):(0,r.kq)("",!0)])})),128))])):((0,r.wg)(),(0,r.iD)("p",sa,(0,u.zw)((0,l.SU)(n).settings.export_recent_empty),1))])])}}};const va=pa;var ma=va,ga=n(6642),fa=n(9005),ba=n(3384),wa={class:"mt-5 mb-5"},_a={class:"text-2xl font-noto font-light text-o-dark-blue md:text-4xl"},xa={class:"text-o-gray mt-5 text-base"},ha={key:0,class:"flex items-center mt-5 gap-5"},ya={class:"flex-auto text-o-light-purple text-base font-normal truncate overflow-hidden w-250 border border-gray-300 rounded-md px-4 py-3"},ka={class:"text-gray-700"},Sa={class:"relative"},Ua={key:1,class:"items-center mt-5 border border-gray-300 rounded-md px-4 py-3"},za={__name:"ReferralManager",props:{referralUrl:{type:String,default:""},activeUsers:{type:Number,default:0},referredUser:{type:Array,default:function(){return[]}}},setup:function(e){var t=e,n=optml_data,a=n.labels,i=function(){(0,ba.RD)(t.referralUrl)};return function(t,n){return(0,r.wg)(),(0,r.iD)("div",wa,[(0,r._)("h1",_a,(0,u.zw)((0,l.SU)(a).settings.earn_extra_visits),1),(0,r._)("p",xa,(0,u.zw)((0,l.SU)(a).settings.extra_visits_description),1),e.activeUsers<10&&e.referredUser.length<100?((0,r.wg)(),(0,r.iD)("div",ha,[(0,r._)("div",ya,[(0,r._)("span",ka,(0,u.zw)(e.referralUrl),
31)]),(0,r._)("div",Sa,[(0,r.Wm)((0,l.SU)(fa.Z),{label:(0,l.SU)(a).general.copy,"clicked-label":(0,l.SU)(a).general.copied,class:"py-3 px-4",onCopyButtonClick:i},null,8,["label","clicked-label"])])])):((0,r.wg)(),(0,r.iD)("div",Ua,[(0,r._)("span",null,(0,u.zw)((0,l.SU)(a).settings.active_referred_user_limit),1)]))])}}};const Da=za;var Ca=Da,Fa={key:0,class:"mt-5 mb-5"},Za={class:"w-100 border border-gray-300 rounded-md px-4 py-3 text-left"},Ma={class:"py-2 px-4"},qa={class:"py-2 px-4"},Ba={class:"py-2 px-4"},Ha={class:"py-2 px-4"},ja={class:"py-2 px-4"},La={key:1,class:"mt-5 mb-5 border border-gray-300 rounded-md px-4 py-8 text-center text-o-gray bg-gray-50"},Pa={class:"text-base font-noto"},Aa={class:"text-sm mt-2"},Na={__name:"ReferralTable",props:{referredUsers:{type:Array,default:function(){return[]}}},setup:function(e){e.referredUsers;var t=optml_data,n=t.labels;return function(t,a){return e.referredUsers.length>0?((0,r.wg)(),(0,r.iD)("div",Fa,[(0,r._)("table",Za,[(0,r._)("tr",null,[(0,r._)("th",Ma,(0,u.zw)((0,l.SU)(n).settings.referred_user),1),(0,r._)("th",qa,(0,u.zw)((0,l.SU)(n).settings.referred_user_status),1),(0,r._)("th",Ba,(0,u.zw)((0,l.SU)(n).settings.referred_earned_visits),1)]),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.referredUsers,(function(e){return(0,r.wg)(),(0,r.iD)("tr",{key:e.name,class:"text-o-gray"},[(0,r._)("td",Ha,(0,u.zw)(e.name),1),(0,r._)("td",{class:(0,u.C_)(["py-2 px-4",{"text-red-500":!e.active,"text-black":e.active}])},(0,u.zw)(e.active?(0,l.SU)(n).settings.user_active_status:(0,l.SU)(n).settings.user_inactive_status),3),(0,r._)("td",ja,(0,u.zw)(e.active?"+500":"0")+" "+(0,u.zw)((0,l.SU)(n).settings.visits),1)])})),128))])])):((0,r.wg)(),(0,r.iD)("div",La,[(0,r._)("p",Pa,(0,u.zw)((0,l.SU)(n).settings.no_referral),1),(0,r._)("p",Aa,(0,u.zw)((0,l.SU)(n).settings.no_referral_description),1)]))}}};const Ta=Na;var Va=Ta,Wa={class:"font-noto text-base text-o-dark-blue font-bold px-2 mb-4"},Oa={class:"w-100 xl:w-770 max-w-100 bg-white rounded-md flex-row items-center m-1 border border-gray-300 px-8 py-6"},Ia={class:"font-noto text-base text-o-dark-blue font-bold px-2"},Ea={class:"text-o-gray text-xs mb-5"},Ka={href:"https://docs.optimole.com/article/2253-referral-program",target:"_blank",class:"text-o-blue"},Ya={__name:"ReferralsForm",setup:function(e){var t=(0,z.L)();(0,r.bv)((function(){t.ensureReferralLink(),t.fetchReferralSummary()}));var n=(0,r.Fl)((function(){return t.referralUrl})),a=(0,r.Fl)((function(){return t.referralSummary.users})),i=(0,r.Fl)((function(){return t.referralSummary.active_users})),s=optml_data,o=s.labels;return function(e,t){return(0,r.wg)(),(0,r.iD)("div",null,[(0,r._)("h3",Wa,(0,u.zw)((0,l.SU)(o).settings.referrals),1),(0,r._)("div",Oa,[(0,r.Wm)((0,l.SU)(Ca),{"referral-url":n.value,"active-users":i.value,"referred-user":a.value},null,8,["referral-url","active-users","referred-user"]),(0,r._)("h3",Ia,(0,u.zw)((0,l.SU)(o).settings.your_referrals),1),(0,r.Wm)((0,l.SU)(Va),{"referred-users":a.value},null,8,["referred-users"]),(0,r._)("p",Ea,(0,u.zw)((0,l.SU)(o).settings.referred_warning),
31),(0,r._)("a",Ka,(0,u.zw)((0,l.SU)(o).settings.learn_more_about_referral),1)])])}}};const Ra=Ya;var $a=Ra,Ga={class:"mt-8 w-100"},Ja={__name:"Settings",setup:function(e){var t=optml_data,n=t.labels,s=(0,z.L)(),o=(0,a.yj)(),u=(0,l.iH)(window.innerWidth);(0,r.bv)((function(){var e=function(){u.value=window.innerWidth};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}));var d=(0,r.Fl)((function(){return u.value})),c=(0,r.Fl)((function(){return o.meta.section})),p=(0,r.Fl)((function(){return s.user}));return function(e,t){return(0,r.wg)(),(0,r.iD)("div",Ga,[(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/billing",label:(0,l.SU)(n).settings.billing,"is-active":"Billing"===c.value||"Wait"===c.value},null,8,["label","is-active"]),(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/email",label:d.value<910?(0,l.SU)(n).settings.notifications:(0,l.SU)(n).settings.email_notifications,"is-active":"Email"===c.value,class:"ml-1 md:ml-2 lg:ml-4"},null,8,["label","is-active"]),(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/password",label:(0,l.SU)(n).general.pass_label,"is-active":"Password"===c.value,class:"ml-1 md:ml-2 lg:ml-4"},null,8,["label","is-active"]),(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/account",label:(0,l.SU)(n).settings.account,"is-active":"Account"===c.value,class:"ml-1 md:ml-2 lg:ml-4"},null,8,["label","is-active"]),(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/api-keys",label:(0,l.SU)(n).settings.api_keys,"is-active":"APIKeys"===c.value,class:"ml-1 md:ml-2 lg:ml-4"},null,8,["label","is-active"]),(0,r.Wm)((0,l.SU)(i.Z),{path:"/settings/referral",label:(0,l.SU)(n).settings.referrals,"is-active":"Referrals"===c.value,class:"ml-1 md:ml-2 lg:ml-4"},null,8,["label","is-active"]),void 0!==p.value.id?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},["Account"===c.value?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[(0,r.Wm)((0,l.SU)(O),{class:"mt-12 bg-white p-6 rounded-lg w-100 md:w-550"}),(0,r.Wm)((0,l.SU)(ma),{class:"mt-12 bg-white p-6 rounded-lg w-100 md:w-550"})],64)):(0,r.kq)("",!0),"APIKeys"===c.value?((0,r.wg)(),(0,r.j4)(ga.Z,{key:1,class:"mt-12"})):(0,r.kq)("",!0),"Password"===c.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(ee),{key:2,class:"mt-12 bg-white p-6 rounded-lg w-100 md:w-550"})):(0,r.kq)("",!0),"Email"===c.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(_e),{key:3,class:"mt-12 bg-white p-6 rounded-lg w-100 md:w-550"})):(0,r.kq)("",!0),"Billing"===c.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(Br),{key:4,class:"mt-12"})):(0,r.kq)("",!0),"Wait"===c.value?((0,r.wg)(),(0,r.j4)((0,l.SU)(Wr),{key:5,class:"mt-12"})):(0,r.kq)("",!0),"Referrals"===c.value?((0,r.wg)(),(0,r.j4)((0,l.SU)($a),{key:6,class:"mt-12"})):(0,r.kq)("",!0)],64)):(0,r.kq)("",!0)])}}};const Qa=Ja;var Xa=Qa}}]);
4//# sourceMappingURL=740-legacy.d538b421.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.