PageSourceSearch

https://swinghill.fi/_nuxt/Du0oipjB.js

js swinghill.fi collected 2026-10-08 07:43:44 UTC 2,740 bytes, 1 lines download raw bytes

1import{c as M,D as l}from"./BI5BN1rn.js";import{_ as N}from"./CbNUOfRs.js";import{G as w,z as B,$ as U,as as p,ak as d,I as a,ag as j,ao as y,am as P,al as u,aF as g,ax as n,e as r,r as A}from"./BA2cZanY.js";import"./DyfadX0W.js";import"./oiGUARBV.js";const C={class:"product-order-total-pricedescription product-order-pricedescription"},J={class:"js-product-price product-order-price product-order-totalprice"},O={key:0},V={class:"product-order-total-pricedescription product-order-pricedescription"},$={class:"js-product-price product-order-price product-order-totalprice"},R={style:{display:"inline-block","margin-bottom":"15px"}},K=w({__name:"PaymentPlanDetails",props:{price:{},date:{},product:{}},setup(h){const{$translate:i}=B(),{currency:f}=M(),x=h,{price:t,date:s,product:o}=U(x),e=r(()=>!o.value||!o.value.paymentplan?null:o.value.paymentplan),F=r(()=>e.value?.type==="recurring"),m=A(!1),I=()=>{m.value=!m.value},c=r(()=>!(!e.value||e.value.type!=="advance"||!s.value||parseFloat(e.value.minimum_amount)>=t.value||e.value.final_payment_type==="fixed"&&e.value.final_payment_date&&l.fromISO(e.value.final_payment_date).toUnixInteger()<=l.fromJSDate(s.value).toUnixInteger()||e.value.final_payment_type==="offset"&&e.value.final_payment_offset&&l.fromJSDate(s.value).minus({days:parseInt(e.value.final_payment_offset)}).toUnixInteger()<=l.now().toUnixInteger())),k=r(()=>c.value?Math.round((t.value-v.value)*100)/100:0),D=r(()=>f(k.value?.toString()??"0",o.value.currency)),b=r(()=>c.value?e.value.final_payment_type==="fixed"?l.fromISO(e.value.final_payment_date).toFormat("d.M.yyyy"):l.fromJSDate(s.value).minus({days:parseInt(e.value.final_payment_offset,10)}).toFormat("d.M.yyyy"):""),v=r(()=>!c.value||parseFloat(e.value.minimum_amount)>t.value?t.value:e.value.amount_type==="relative"?Math.max(parseFloat(e.value.minimum_amount),t.value*parseFloat(e.value.amount)/100):Math.min(parseFloat(e.value.amount),t.value)),S=r(()=>f(v.value?.toString()??"0",o.value.currency));return(T,_)=>(p(),d(P,null,[a(F)?(p(),j(N,{key:0,paymentplan:a(e),price:a(t),currency:a(o).currency},null,8,["paymentplan","price","currency"])):y("",!0),a(c)?(p(),d(P,{key:1},[u("span",C,[g(n(a(i)("Payable now"))+" (",1),u("a",{href:"javascript:;",onClick:I},n(a(i)("More info")),1),_[0]||(_[0]=g(")",-1))]),u("span",J,n(a(S)),1),a(m)?(p(),d("span",O,[u("span",V,n(a(i)("Final payment"))+" ("+n(a(b))+")",1),u("span",$,n(a(D)),1),u("span",R,n(a(i)("After payment, you will receive a confirmation of your order and a link to the order page. On the order page, you can view the contents of your order, download a receipt for the advance payment, and pay the remaining balance by the due date.")),1)])):y("",!0)],64)):y("",!0)],64))}});export{K 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.