1import{At as l,Dn as t,Nt as b,Vt as P,X as N,an as k,at as x,dt as y,f as F,mt as w,nt as _,ot as r,rt as e}from"./BId1R4El.js";import{X as A,t as I}from"./Cbbb9ky4.js";import{t as Q}from"./DO6c05g3.js";import{n as S,r as B,t as D}from"./SxHfPR-9.js";import{s as U}from"./C1Zl1HzX.js";import{t as V}from"./aBqYzDzq.js";import{n as $}from"./BYhG_xls.js";import{t as C}from"./DqyDKmGN.js";var E={en:{pageTitle:"Quotation verification",notFoundTitle:"Quotation not found",notFoundBody:"The quotation link is invalid or no longer available.",eyebrow:"Sales quotation",recipient:"Recipient",region:"Region",dates:"Dates",issued:"Issued",validUntil:"Valid until",expiredNotice:"This quotation is no longer valid.",thItem:"Item",thType:"Type",thQty:"Qty",thPrice:"Price",thTotal:"Total",typeProduct:"product",typeKit:"kit",shipping:"Shipping",total:"Total"},ru:{pageTitle:"ÐÑовеÑка коммеÑÑеÑкого пÑедложениÑ",notFoundTitle:"ÐоммеÑÑеÑкое пÑедложение не найдено",notFoundBody:"СÑÑлка недейÑÑвиÑелÑна или болÑÑе не доÑÑÑпна.",eyebrow:"ÐоммеÑÑеÑкое пÑедложение",recipient:"ÐолÑÑаÑелÑ",region:"Регион",dates:"ÐаÑÑ",issued:"ÐÑдано",validUntil:"ÐейÑÑвиÑелÑно до",expiredNotice:"СÑок дейÑÑÐ²Ð¸Ñ ÑÑого пÑÐµÐ´Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð¸ÑÑÑк.",thItem:"ÐозиÑиÑ",thType:"Тип",thQty:"Ðол-во",thPrice:"Цена",thTotal:"СÑмма",typeProduct:"пÑодÑкÑ",typeKit:"набоÑ",shipping:"ÐоÑÑавка",total:"ÐÑого"},de:{pageTitle:"Angebotsüberprüfung",notFoundTitle:"Angebot nicht gefunden",notFoundBody:"Der Link ist ungültig oder nicht mehr verfügbar.",eyebrow:"Angebot",recipient:"Empfänger",region:"Region",dates:"Termine",issued:"Ausgestellt",validUntil:"Gültig bis",expiredNotice:"Dieses Angebot ist nicht mehr gültig.",thItem:"Position",thType:"Typ",thQty:"Menge",thPrice:"Preis",thTotal:"Summe",typeProduct:"Produkt",typeKit:"Set",shipping:"Versand",total:"Gesamt"},ZH_CN:{pageTitle:"æ¥ä»·éªè¯",notFoundTitle:"æªæ¾å°æ¥ä»·",notFoundBody:"龿¥æ ææå·²å¤±æã",eyebrow:"é宿¥ä»·",recipient:"æ¶ä»¶äºº",region:"åºå",dates:"æ¥æ",issued:"åºå
·",validUntil:"æææè³",expiredNotice:"æ¤æ¥ä»·å·²ä¸åææã",thItem:"项ç®",thType:"ç±»å",thQty:"æ°é",thPrice:"ä»·æ ¼",thTotal:"å°è®¡",typeProduct:"产å",typeKit:"å¥è£
",shipping:"è¿è´¹",total:"å计"},ZH_TW:{pageTitle:"å ±å¹é©è",notFoundTitle:"æ¾ä¸å°å ±å¹",notFoundBody:"é£çµç¡ææå·²ä¸åæä¾ã",eyebrow:"é·å®å ±å¹",recipient:"æ¶ä»¶äºº",region:"åå",dates:"æ¥æ",issued:"éç«",validUntil:"ææè³",expiredNotice:"æ¤å ±å¹å·²ä¸åææã",thItem:"é
ç®",thType:"é¡å",thQty:"æ¸é",thPrice:"广 ¼",thTotal:"å°è¨",typeProduct:"ç¢å",typeKit:"çµå¥",shipping:"éè²»",total:"åè¨"}};function K(p){return E[S(p)]}var L={class:"quotation-verify-page"},R={class:"quotation-verify-page__inner"},M={key:0,class:"quotation-verify-page__card quotation-verify-page__card--empty"},G={key:1,class:"quotation-verify-page__card"},H={class:"quotation-verify-page__header"},O={class:"quotation-verify-page__title"},W={class:"quotation-verify-page__eyebrow"},X=["data-status"],Z={key:0,class:"quotation-verify-page__notice"},z={class:"quotation-verify-page__meta"},Y={class:"quotation-verify-page__meta-block"},j={class:"quotation-verify-page__meta-label"},J={class:"quotation-verify-page__meta-strong"},ee={class:"quotation-verify-page__meta-block"},te={class:"quotation-verify-page__meta-label"},ae={class:"quotation-verify-page__meta-strong"},oe={class:"quotation-verify-page__meta-block"},ie={class:"quotation-verify-page__meta-label"},se={class:"quotation-verify-page__meta-key"},le={class:"quotation-verify-page__meta-key"},re={class:"quotation-verify-page__table-wrap"},ne={class:"quotation-verify-page__table"},ue={class:"quotation-verify-page__num"},_e={class:"quotation-verify-page__num"},pe={class:"quotation-verify-page__num"},ve={class:"quotation-verify-page__item-title"},de=["data-type"],ce={class:"quotation-verify-page__num"},ye={class:"quotation-verify-page__num"},he={class:"quotation-verify-page__num quotation-verify-page__num--strong"},ge={class:"quotation-verify-page__summary"},me={class:"quotation-verify-page__summary-row"},fe={class:"quotation-verify-page__num"},qe={class:"quotation-verify-page__summary-row quotation-verify-page__summary-row--total"},Te={class:"quotation-verify-page__num"},be=w({__name:"[hash]",async setup(p){let n,v;C();const h=F(),d=_(()=>String(h.params.hash||"")),{data:g,error:m}=([n,v]=P(()=>Q(()=>`/api/quotations/${d.value}`,{key:`quotation-verify:${d.value}`},"$xmQl5WudCf")),n=await n,v(),n),a=_(()=>g.value||null),f=_(()=>a.value?.status.code==="expired"),o=_(()=>K(a.value?.locale));
1function u(s){return $(s,a.value?.region.currency||"USD")}function c(s){return V(s,{locale:B(a.value?.locale),style:"short"})}function q(s){return s.type==="kit"?o.value.typeKit:o.value.typeProduct}return A(()=>({title:a.value?.quoteNo!==void 0&&a.value.quoteNo!==""?`${o.value.pageTitle} â ${a.value.quoteNo}`:o.value.pageTitle,titleTemplate:U.titleTemplate,htmlAttrs:{lang:D(a.value?.locale)}})),(s,Pe)=>(l(),r("div",L,[e("div",R,[k(m)||!a.value?(l(),r("div",M,[e("h1",null,t(o.value.notFoundTitle),1),e("p",null,t(o.value.notFoundBody),1)])):(l(),r("article",G,[e("header",H,[e("div",O,[e("p",W,t(o.value.eyebrow),1),e("h1",null,"#"+t(a.value.quoteNo),1)]),e("span",{class:"quotation-verify-page__status","data-status":a.value.status.code},t(a.value.status.label),9,X)]),f.value?(l(),r("p",Z,t(o.value.expiredNotice),1)):x("",!0),e("div",z,[e("section",Y,[e("p",j,t(o.value.recipient),1),e("p",J,t(a.value.recipient.fullName),1),e("p",null,t(a.value.recipient.email),1),e("p",null,t(a.value.recipient.company),1)]),e("section",ee,[e("p",te,t(o.value.region),1),e("p",ae,t(a.value.region.title),1),e("p",null,t(a.value.region.currency),1)]),e("section",oe,[e("p",ie,t(o.value.dates),1),e("p",null,[e("span",se,t(o.value.issued),1),y(" "+t(c(a.value.issuedAt)),1)]),e("p",null,[e("span",le,t(o.value.validUntil),1),y(" "+t(c(a.value.expiresAt)),1)])])]),e("div",re,[e("table",ne,[e("thead",null,[e("tr",null,[e("th",null,t(o.value.thItem),1),e("th",null,t(o.value.thType),1),e("th",ue,t(o.value.thQty),1),e("th",_e,t(o.value.thPrice),1),e("th",pe,t(o.value.thTotal),1)])]),e("tbody",null,[(l(!0),r(N,null,b(a.value.items,(i,T)=>(l(),r("tr",{key:`${T}-${i.title}`},[e("td",ve,t(i.title),1),e("td",null,[e("span",{class:"quotation-verify-page__type","data-type":i.type},t(q(i)),9,de)]),e("td",ce,t(i.quantity),1),e("td",ye,t(u(i.price)),1),e("td",he,t(u(i.total)),1)]))),128))])])]),e("div",ge,[e("div",me,[e("span",null,t(o.value.shipping),1),e("span",fe,t(u(a.value.totals.shipping)),1)]),e("div",qe,[e("span",null,t(o.value.total),1),e("span",Te,t(u(a.value.totals.total)),1)])])]))])]))}}),Se=I(be,[["__scopeId","data-v-6f20bb85"]]);export{Se 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.