import{_ as T}from"./DrA4KDSF.js";import{_ as $,a as w,b as S}from"./CcSAih1r.js";import{v as m,E as x,_ as d,o as u,c as f,B as P,C as B,a as i,t as _,b as s,w as c,d as p,u as j,J as C}from"./CibDhUcP.js";import{_ as I}from"./BpJC44XK.js";import{_ as R}from"./BN7pAvEU.js";import{u as O}from"./fWHo1AcK.js";import"./CTMooejj.js";import"./BrQy0eBk.js";import"./DTBNEoLd.js";import"./nOI-3DST.js";import"./HK78SWUp.js";import"./CBXHUQO1.js";import"./BCJxuefG.js";const A=m({__name:"Badge",props:{color:{type:String,default:"marketing"}},setup(n,{expose:r}){r();const e=n,t={marketing:"text-white bg-marketing",info:"text-white bg-inf"},a=x(()=>t[e.color]),o={props:e,colorDict:t,coloring:a};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}});function M(n,r,e,t,a,o){return u(),f("div",{class:B(["badge rounded px-2 inline-block text-sm leading-6 font-semibold",[t.coloring]])},[P(n.$slots,"default")],2)}const N=Object.assign(d(A,[["render",M],["__file","Badge.vue"]]),{__name:"Badge"}),q=m({__name:"RedeemCard",props:{licenseType:{type:String,required:!0},activation:{type:Object,required:!0}},setup(n,{expose:r}){r();const e=n,t={platform:{link:"https://platform360.io/licensing/activate-license",title:"IUsePlatform",text:"PlatformActivation",imgSrc:"https://app.stage.360monitoring.com/img/plesk-360-logo.svg",altText:"Plesk 360"},standalone:{link:"https://app.stage.360monitoring.com/license/activate/",title:"IUseStandalone",text:"StandaloneActivation",imgSrc:"https://app.stage.360monitoring.com/img/360-sublogo.svg",altText:"360 Monitoring"}},a=x(()=>{const l=t[e.licenseType].link;return e.licenseType==="platform"?`${l}?code=${e.activation.license}&product=${e.activation.product}`:`${l}${e.activation.license}`}),o={props:e,licenseTypeInfo:t,linkResult:a};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),E={class:"border border-gray-300 hover:border-slate-400 hover:shadow-slate-200 transition duration-300 p-6 rounded-lg flex flex-col justify-between"},H=["src","alt"],V={class:"text-xl text-primary font-medium tracking-tight mb-2"},D={class:"flex flex-col w-auto h-full justify-between"},U={class:"text-slate-600 text-balance mb-4 sm:mb-8 text-sm leading-6"},W=["href"];function z(n,r,e,t,a,o){const l=I;return u(),f("div",E,[i("img",{src:t.licenseTypeInfo[e.licenseType].imgSrc,alt:t.licenseTypeInfo[e.licenseType].altText,class:"mb-6 sm:mb-10 h-8"},null,8,H),i("h3",V,_(n.$t(t.licenseTypeInfo[e.licenseType].title)),1),i("div",D,[i("p",U,_(n.$t(t.licenseTypeInfo[e.licenseType].text)),1),i("a",{href:t.linkResult,target:"_blank"},[s(l,{class:"sm:w-auto !w-full"},{default:c(()=>[p(_(n.$t(`${e.licenseType}Activate`)),1)]),_:1})],8,W)])])}const G=Object.assign(d(q,[["render",z],["__file","RedeemCard.vue"]]),{__name:"RedeemCard"}),J=m({__name:"[license]",setup(n,{expose:r}){r();const e=j(),t={product:e.query.product,license:e.params.license},{tracker:a}=O();a("page_view","page","redeem license");const o={route:e,activationParams:t,tracker:a};return Object.defineProperty(o,"__isScriptSetup",{enumerable:!1,value:!0}),o}}),Y={class:"flex gap-4 w-full"},F={class:"flex flex-grow flex-col justify-center lg:justify-start w-full mb-12 @container/main lg:pt-10"},K={class:"grid sm:grid-cols-2 gap-4 sm:gap-6 mt-12"},L={class:"w-full"};function Q(n,r,e,t,a,o){const l=T,v=w,h=N,g=G,y=S,b=R,k=$;return u(),f("div",Y,[s(l,{class:"hidden lg:flex lg:w-[320px]"}),s(k,null,{default:c(()=>[s(v),i("div",F,[s(y,{"show-count":!1},C({headline:c(()=>[p(_(n.$t("ThankYou360Monitoring")),1)]),text:c(()=>[i("p",null,_(n.$t("ActivationWays360Monitoring")),1)]),redeemcards:c(()=>[i("div",K,[s(g,{"license-type":"standalone",activation:t.activationParams}),s(g,{"license-type":"platform",activation:t.activationParams})])]),_:2},[t.activationParams.product?{name:"label",fn:c(()=>[s(h,{color:"marketing",class:"bg-orange-100 !text-orange-600"},{default:c(()=>[p(_(t.activationParams.product+" "+n.$t("planPurchased")),1)]),_:1})]),key:"0"}:void 0]),1024)]),i("footer",L,[s(b)])]),_:1})])}const pe=d(J,[["render",Q],["__file","[license].vue"]]);export{pe as default};
