import{Cd as h,Ea as m,Gb as u,Hd as x,Kb as t,Lb as n,Mb as c,Vb as f,gc as o,ib as d,ic as _,id as E,rc as C,wb as p,za as l}from"./chunk-3NIPUOIR.js";function g(e,i){e&1&&(t(0,"span"),o(1,"You do not own this product. Please purchase it first from codecanyon."),n())}function S(e,i){e&1&&(t(0,"span"),o(1,"Could not verify license."),n())}function y(e,i){e&1&&(t(0,"span"),o(1,"No purchases found for this account."),n())}function T(e,i){if(e&1&&(t(0,"span"),o(1," This product is already activated on another domain."),n(),c(2,"br")(3,"br"),t(4,"span"),o(5," To host it on this domain, please purchase an additional license from CodeCanyon. "),n(),c(6,"br")(7,"br"),t(8,"span"),o(9," Currently activated on: \xA0"),t(10,"span",10),o(11),n()()),e&2){let r=f();d(11),_(" ",r.productionUrl,"")}}function M(e,i){e&1&&(t(0,"span"),o(1,"An error occurred while processing your request. Please try agian or contact support."),n())}var N=(()=>{class e{constructor(){this.errorCode="",this.route=l(h),this.productionUrl=""}ngOnInit(){this.route.queryParams.subscribe(r=>{r.errorCode&&(this.errorCode=r.errorCode,this.productionUrl=r.production_url||"")})}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=m({type:e,selectors:[["app-error-msg"]],standalone:!0,features:[C],decls:17,vars:1,consts:[[1,"d-flex","align-items-center","justify-content-center","vh-100"],[1,"text-center"],[1,"row","g-0"],[1,"col-lg-12"],[1,"card"],[1,"card-header"],[1,"card-title","text-danger"],[1,"card-body"],[1,"row"],[1,"col-md-12"],[1,"text-primary"]],template:function(a,v){if(a&1&&(t(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h4",6),o(7," Problem with License Activation. "),n()(),t(8,"div",7)(9,"div",8)(10,"div",9)(11,"h5"),p(12,g,2,0,"span")(13,S,2,0,"span")(14,y,2,0,"span")(15,T,12,1)(16,M,2,0,"span"),n()()()()()()()()()),a&2){let s;d(12),u((s=v.errorCode)==="YOU_DOES_NOT_OWN_THIS_ITEM"?12:s==="COULD_NOT_VERIFY_LICENSE"?13:s==="NO_PURCHASES_FOUND"?14:s==="PRODUCT_ALREADY_HOSTED"?15:16)}},dependencies:[E,x]})}}return e})();export{N as ErrorMsgComponent};
