PageSourceSearch

https://www.flightlevels.io/_nuxt/CIDMT6-p.js

js flightlevels.io collected 2026-09-26 00:35:54 UTC 5,678 bytes, 1 lines download raw bytes

1import{_ as L,a as R,b as F}from"./DANOPsQX.js";import{d as T,N as m,Z as V,a1 as A,a2 as z,P as U,E as I,o as c,c as l,e as f,j as s,w as N,g as r,t as j,f as n,a3 as q,l as G,v as O,a5 as H,a0 as K,_ as W,p as B,K as Y,C as Z,a4 as $,G as b,F as J,s as Q,b7 as X,n as tt,m as et,k as ot,x as st,aG as nt}from"./27Oh8GQO.js";import{u as at}from"./BGE50i0G.js";import{u as it}from"./Dzqf0qly.js";const ct=T({__name:"DiscountInput",props:{appliedDiscountCode:{}},emits:["update","submitting"],setup(C,{emit:k}){const o=C,u=k,{applyCoupon:P,removeCoupon:h,cartErrorMessage:x}=at(),w=m(()=>o.appliedDiscountCode?"Discount Code":"Have a Discount Code?"),S=m(()=>o.appliedDiscountCode?"remove":"apply"),g=m(()=>o.appliedDiscountCode?"fla-icon--trash-bin":"fla-icon--add"),{handleSubmit:_,isSubmitting:d,setFieldError:D,resetField:e,validate:t}=V({initialValues:{discountCode:o.appliedDiscountCode},validationSchema:A({discountCode:z().required("Enter your Discount Code")})}),p=_(async a=>{u("submitting",!0),o.appliedDiscountCode?(await h(a.discountCode),e("discountCode",{value:""})):await P(a.discountCode),u("submitting",!1)});return U(()=>x.value,a=>{a&&D("discountCode",a)}),I(()=>{o.appliedDiscountCode&&t()}),(a,v)=>{const i=K,E=H,y=W;return c(),l("form",{class:"flex items-end gap-x-3",onSubmit:v[0]||(v[0]=(...M)=>s(p)&&s(p)(...M))},[f(i,{name:"discountCode",label:s(w),icon:"fla-icon--discount",placeholder:"Enter your Discount Code",required:"",disabled:s(d),readonly:!!a.appliedDiscountCode,class:"flex-1 discount-input"},null,8,["label","disabled","readonly"]),f(y,{type:"submit",size:"xs",color:a.appliedDiscountCode?"pink":"blue",class:"!py-1 h-[40px] mb-px"},{default:N(()=>[r(j(s(S))+" ",1),n("i",{class:q(["fla-icon",s(g)])},null,2),G(f(E,{diameter:20,"stroke-width":5,class:"!absolute inset-y-0 right-[-2.5px] mt-[2px]"},null,512),[[O,s(d)]])]),_:1},8,["color"])],32)}}}),rt=B(ct,[["__scopeId","data-v-1deadcbc"]]),lt={class:"cart-view"},ut={class:"left-col"},dt={class:"flex flex-col gap-y-4 cart-items"},pt={class:"text-black/50 text-xs !text-small-x flex"},mt={key:0,class:"fla-notice fla-notice--success"},ft={class:"right-col"},xt={key:0,class:"text-sm !text-small"},_t={class:"checkout--section flex flex-col gap-y-4 price-summary"},vt={key:0,class:"flex items-center justify-center text-black/50 text-sm !text-small gap-x-1 checkout--section"},yt=T({__name:"Cart",props:{view:{},cart:{}},emits:["clear","set:qty","delete"],setup(C,{emit:k}){const o=C,u=k,P=Y(),h=Z(),x=it(),w=F,S=R,g=m(()=>{var e;if((e=o.cart.appliedCoupons)!=null&&e.length){const t=o.cart.appliedCoupons.find(p=>!p.code.includes("thdpcart"));if(t)return t.code}return""}),_=m(()=>o.cart.contents.nodes.length?!!(o.cart.contents.nodes.find(t=>t.product.node.pppEnabled===!0)&&o.cart.customerPPPRate<1):o.cart.customerPPPRate<1),d=(...e)=>{switch(e[0]){case"clear":u("clear");break;case"delete":u("delete",e[1].key),x("update_qty",e[1],"remove_from_cart");break;case"set:qty":u("set:qty",{key:e[1].key,qty:e[1].qty}),x("update_qty",e[1].cartItem,e[1].event);break}},D=m(()=>{var e;return{summary:{subtotal:o.cart.subtotal,totalTax:o.cart.totalTax,discountTotal:(e=o.cart.appliedCoupons)!=null&&e.length?o.cart.discountTotal:"0",total:o.cart.total},hasPPP:_.value,vatExemptMessage:o.cart.isVatExempt&&o.cart.vatExemptMessage?o.cart.vatExemptMessage:void 0,taxLines:o.cart.totalTaxes,hasSubscriptionProducts:o.cart.hasSubscriptionProducts,isPaid:!0}});return I(()=>{o.view==="cart"&&x("view_cart",o.cart)}),(e,t)=>{const p=rt,a=ot,v=L;return c(),l("div",lt,[n("div",ut,[$(e.$slots,"default",{},void 0,!0),n("div",dt,[n("div",pt,[t[3]||(t[3]=r(" Items ")),["cart","cockpit"].includes(e.view)?(c(),l("button",{key:0,class:"ml-auto transition-colors hover:text-black active:text-black",onClick:t[0]||(t[0]=i=>d("clear"))},t[2]||(t[2]=[n("i",{class:"fla-icon fla-icon--trash-bin"},null,-1),r(" clear cart ")]))):b("",!0)]),(c(!0),l(J,null,Q(e.cart.contents.nodes,(i,E)=>(c(),st(nt(["SUBSCRIPTION","VARIABLE_SUBSCRIPTION"].includes(i.product.node.type)?s(S):s(w)),{key:i.key,"show-facts":e.cart.contents.nodes.length===1,"ppp-rate":e.cart.customerPPPRate,item:i,view:e.view==="cockpit"?"cart":e.view,class:q(["mb-1 last:mb-0",{"checkout--section":E>0}]),"onSet:qty":y=>d("set:qty",{...y,cartItem:i}),onDelete:y=>d("delete",i)},null,40,["show-facts","ppp-rate","item","view","class","onSet:qty","onDelete"]))),128))]),s(_)?(c(),l("div",mt,t[4]||(t[4]=[n("b",null,"Note:",-1),r(" In order to your selected billing-country, you are qualified to get our PPP-Prices. We have alredy applied the discount for you. ")]))):b("",!0),$(e.$slots,"cartAfterItems",{},void 0,!0)]),n("div",ft,[n("div",{class:q(["flex flex-col gap-y-4 discount",{"checkout--section":["checkout","cockpit"].includes(e.view)}])},[t[8]||(t[8]=n("div",{class:"text-black/50 text-xs !text-small-x"}," Discount Code ",-1)),f(p,{"applied-discount-code":s(g)},null,8,["applied-discount-code"]),s(P).user?b("",!0):(c(),l("div",xt,[t[6]||(t[6]=r(" New Customer? ")),f(a,{to:"",class:"fla-link cursor-pointer",onClick:t[1]||(t[1]=X(i=>s(h).showLoginModal="register",["stop"]))},{default:N(()=>t[5]||(t[5]=[r(" Sign up ")])),_:1}
1),t[7]||(t[7]=r(" to get better offer "))]))],2),n("div",_t,[t[9]||(t[9]=n("div",{class:"text-black/50 text-xs !text-small-x"}," Price Details ",-1)),f(v,tt(et(s(D))),null,16)]),$(e.$slots,"cartAfterSummary",{},void 0,!0),["checkout","cockpit"].includes(e.view)?(c(),l("div",vt,t[10]||(t[10]=[n("i",{class:"text-base fla-icon fla-icon--lock-line h-[16px] w-[16px]"},null,-1),r(" Your transaction is secured with SSL encryption ")]))):b("",!0)])])}}}),ht=B(yt,[["__scopeId","data-v-1bc80fa5"]]);export{ht as _};

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.