import{_ as T}from"./CCNnTvL5.js";import{_ as $,a as w,b as S}from"./CvA42dig.js";import{v as m,B as x,_ as d,o as u,c as f,D as P,E as B,a as i,t as _,b as s,w as c,d as p,u as j,C}from"./CChoqk00.js";import{_ as I}from"./dbr-bJEC.js";import{_ as R}from"./Bhq-_LM8.js";import{u as O}from"./DTzhji9-.js";import"./DgZ9OEJo.js";import"./CEIsV2p2.js";import"./sP9qBMVh.js";import"./oBAm95WQ.js";import"./CyM-5rC-.js";import"./D7TmchvX.js";import"./BBOawLyY.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}}),D={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"},E=["src","alt"],H={class:"text-xl text-primary font-medium tracking-tight mb-2"},V={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",D,[i("img",{src:t.licenseTypeInfo[e.licenseType].imgSrc,alt:t.licenseTypeInfo[e.licenseType].altText,class:"mb-6 sm:mb-10 h-8"},null,8,E),i("h3",H,_(n.$t(t.licenseTypeInfo[e.licenseType].title)),1),i("div",V,[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"}),Y=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}}),F={class:"flex gap-4 w-full"},J={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",F,[s(l,{class:"hidden lg:flex lg:w-[320px]"}),s(k,null,{default:c(()=>[s(v),i("div",J,[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(Y,[["render",Q],["__file","[license].vue"]]);export{pe as default};
