1import{z as s,A as o,B as e,N as a,C as i,I as b,q as P,c as n,L as w,x as c}from"./vue-core-Dey081zN.js";import{u as N}from"./vue-app-BMiJvgJo.js";import{t as R}from"./number-D9smkUEw.js";import B from"./Tooltip-5R6COQw7.js";import{_ as S}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./axios.min-Gf34Bpzi.js";import"./legacy-vendor-BzETucsV.js";import"./toast-DnL-DWXG.js";import"./lang.vite-lZPxKlOb.js";import"./site-B7ifWAOd.js";const V={name:"OrderSummary",components:{Tooltip:B},setup(){const r=N(),_=n(()=>r.getters["currency/rate"]),h=n(()=>r.getters["currency/title"]),t=d=>Math.ceil(d/_.value),u=n(()=>r.getters["orderTour/tourTotalPrice"]),m=n(()=>r.getters["orderTour/totalPrice"]),l=n(()=>r.getters["orderTour/totalChildrenDiscount"]),y=n(()=>r.getters["orderTour/totalCommission"]),C=n(()=>r.getters["orderTour/totalAccommodation"]),T=n(()=>r.getters["orderTour/regularTouristDiscount"]),g=n(()=>t(u.value)),p=n(()=>t(l.value)),f=n(()=>t(y.value)),v=n(()=>t(C.value)),x=n(()=>t(T.value)),D=n(()=>t(m.value)),I=d=>R(d),A=n(()=>r.getters["user/isTourAgent"]),k=n(()=>r.getters["user/isRegularTourist"]);return{format:I,tourPrice:u,totalChildrenDiscount:l,totalCommission:y,totalAccommodation:C,totalPrice:m,isTourAgent:A,isRegular:k,regularTouristDiscount:T,tourPriceInCurrency:g,totalChildrenDiscountInCurrency:p,totalCommissionInCurrency:f,totalAccommodationInCurrency:v,regularTouristDiscountInCurrency:x,totalPriceInCurrency:D,currencyTitle:h}}},L={class:"bordered-box b-pad"},M={class:"text"},H={class:"text-md text-nowrap"},O={key:0},q={key:1},z={class:"text"},E={class:"text-md text-nowrap"},j={key:2},F={key:3},G={class:"text"},J={class:"text-md text-nowrap"},K={key:4},Q={key:5},U={class:"text"},W={class:"discount"},X=["innerHTML"],Y={key:6},Z={key:7},$={class:"text"},tt={class:"text-md text-nowrap"},ot=o("hr",null,null,-1),rt={class:"h5"},et={class:"thumb-price"},nt={class:"text text-nowrap"};function st(r,_,h,t,u,m){const l=w("tooltip");return c(),s("div",L,[o("div",null,[o("span",M,e(r.__("order-section.summary.cost-tour"))+":",1),o("span",H,[o("b",null,e(t.format(t.tourPriceInCurrency)),1),a(" "+e(t.currencyTitle),1)])]),t.totalChildrenDiscount>0?(c(),s("hr",O)):i("",!0),t.totalChildrenDiscount>0?(c(),s("div",q,[o("span",z,e(r.__("order-section.summary.children-discount"))+":",1),o("span",E,[o("b",null,"-"+e(t.format(t.totalChildrenDiscountInCurrency)),1),a(" "+e(t.currencyTitle),1)])])):i("",!0),t.totalAccommodation>0?(c(),s("hr",j)):i("",!0),t.totalAccommodation>0?(c(),s("div",F,[o("span",G,e(r.__("tours-section.accomm-price")),1),o("span",J,[o("b",null,e(t.format(t.totalAccommodationInCurrency)),1),a(" "+e(t.currencyTitle),1)])])):i("",!0),t.totalCommission>0&&t.isTourAgent?(c(),s("hr",K)):i("",!0),t.totalCommission>0&&t.isTourAgent?(c(),s("div",Q,[o("span",U,e(r.__("order-section.summary.commission")),1),o("span",W,[a(e(t.format(t.totalCommissionInCurrency))+" "+e(t.currencyTitle)+" ",1),b(l,{variant:"red"},{default:P(()=>[o("span",{innerHTML:r.__("order-section.summary.commission-tooltip")},null,8,X)]),_:1})])])):i("",!0),t.regularTouristDiscount>0&&t.isRegular?(c(),s("hr",Y)):i("",!0),t.regularTouristDiscount>0&&t.isRegular?(c(),s("div",Z,[o("span",$,e(r.__("order-section.summary.regular-discount"))+":",1),o("span",tt,[o("b",null,"-"+e(t.format(t.regularTouristDiscountInCurrency)),1),a(" "+e(t.currencyTitle),1)])])):i("",!0),ot,o("div",null,[o("span",rt,e(r.__("order-section.summary.final-cost"))+":",1),o("span",et,[o("span",nt,[o("span",null,e(t.format(t.totalPriceInCurrency)),1),o("sup",null,e(t.currencyTitle),1)])])])])}const Ct=S(V,[["render",st]]);export{Ct as default};
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.