import{a as _}from"./chunk-BTPZU6AW.js";import{Ca as h,Da as b,Db as p,Ea as k,Fa as f,J as c,Oa as t,Pa as i,Qa as s,Vb as E,cc as g,ec as v,ga as o,hb as n,jb as r,pc as w,qc as C,ra as y,vb as a,wb as d}from"./chunk-OXQYUXXW.js";import"./chunk-KAT7YFEL.js";function I(e,m){e&1&&(t(0,"div",3),s(1,"span",17),i())}function P(e,m){e&1&&(t(0,"div",4),s(1,"span",18),i())}function D(e,m){e&1&&(n(0),a(1,"translate")),e&2&&r(" ",d(1,1,"payInCashier")," ")}function T(e,m){e&1&&(n(0),a(1,"translate")),e&2&&r(" ",d(1,1,"successfulPayment")," ")}var S=class e{route=c(g);router=c(v);params=_(this.route.queryParams);orderId=p(()=>this.params()?.order_id||"?");method=p(()=>this.params()?.method||"?");total=p(()=>this.params()?.total||"?");constructor(){setTimeout(()=>this.router.navigate([C.start]),1e4)}static \u0275fac=function(l){return new(l||e)};static \u0275cmp=y({type:e,selectors:[["app-complete"]],decls:29,vars:15,consts:[[1,"kiosk:h-full","from-primary-50","to-secondary-50","kiosk:p-8","flex","h-screen","w-full","flex-col","items-center","justify-center","bg-linear-to-br","p-4"],[1,"kiosk:max-w-5xl","shadow-primary-200/20","kiosk:p-16","kiosk:space-y-12","border-primary-100","w-full","max-w-4xl","space-y-6","rounded-3xl","border","bg-white/70","p-6","shadow-2xl"],[1,"flex","justify-center"],[1,"kiosk:w-32","kiosk:h-32","from-secondary-200","to-secondary-400","flex","h-24","w-24","items-center","justify-center","rounded-full","bg-linear-to-br","shadow-lg"],[1,"kiosk:w-32","kiosk:h-32","from-primary-200","to-primary-300","flex","h-24","w-24","items-center","justify-center","rounded-full","bg-linear-to-br","shadow-lg"],[1,"text-center"],[1,"kiosk:text-4xl","kiosk:md:text-5xl","kiosk:lg:text-6xl","text-primary-800","kiosk:mb-6","mb-4","text-3xl","font-bold","md:text-4xl"],[1,"from-secondary-100","to-secondary-200","kiosk:p-8","kiosk:mb-8","mb-4","rounded-3xl","bg-linear-to-b","p-4"],[1,"kiosk:text-xl","kiosk:md:text-2xl","text-primary-700","kiosk:mb-4","mb-2","text-base","font-bold"],[1,"kiosk:text-6xl","kiosk:md:text-7xl","text-primary-700","kiosk:lg:text-8xl","text-3xl","font-bold","md:text-4xl"],[1,"kiosk:p-8","border-primary-300","bg-primary-100/80","rounded-3xl","border-2","border-dashed","p-4"],[1,"kiosk:text-xl","kiosk:md:text-2xl","text-primary-700","kiosk:mb-6","mb-3","text-center","text-base"],[1,"bg-primary-600","kiosk:text-5xl","kiosk:md:text-6xl","kiosk:lg:text-7xl","kiosk:px-12","kiosk:py-6","inline-block","rounded-2xl","px-6","py-3","text-2xl","font-bold","tracking-wider","text-white","shadow-lg","md:text-3xl"],[1,"kiosk:pt-6","pt-3","text-center"],[1,"kiosk:text-3xl","kiosk:md:text-4xl","kiosk:lg:text-5xl","text-primary-800","text-xl","font-semibold","md:text-2xl"],[1,"kiosk:mt-8","mt-4","flex","justify-center"],[1,"kiosk:w-32","kiosk:h-2","from-secondary-400","to-secondary-200","h-1","w-20","rounded-full","bg-linear-to-r"],[1,"icon-[ic--round-attach-money]","kiosk:size-16","size-14","text-white"],[1,"icon-[ic--round-credit-card]","kiosk:size-16","size-14","text-white"]],template:function(l,x){if(l&1&&(t(0,"div",0)(1,"div",1),b("animate-fadeOut"),h("animate-fadeIn"),t(2,"div",2),k(3,I,2,0,"div",3)(4,P,2,0,"div",4),i(),t(5,"div",5)(6,"h1",6),k(7,D,2,3)(8,T,2,3),i(),t(9,"div",7)(10,"p",8),n(11),a(12,"translate"),i(),t(13,"p",9),n(14),a(15,"currency"),i()()(),t(16,"div",10)(17,"p",11),n(18),a(19,"translate"),i(),t(20,"div",5)(21,"span",12),n(22),i()()(),t(23,"div",13)(24,"p",14),n(25),a(26,"translate"),i(),t(27,"div",15),s(28,"div",16),i()()()()),l&2){let u=x.method()==="cash";o(3),f(u?3:4),o(4),f(u?7:8),o(4),r(" ",d(12,7,"total_paid")," "),o(3),r(" ",d(15,9,x.total())," "),o(4),r(" ",d(19,11,"your_order_id_is")," "),o(4),r(" ",x.orderId()," "),o(3),r(" ",d(26,13,"thanksForYourPurchase")," ")}},dependencies:[w,E],encapsulation:2,changeDetection:0})};export{S as Complete};
