PageSourceSearch

https://www.my-jewellery.com/_nuxt/D18sD2fk.js

js my-jewellery.com collected 2026-09-24 11:09:01 UTC 3,475 bytes, 2 lines download raw bytes

1import{_ as W}from"./rln_PU6L.js";import{_ as x}from"./DzSKBnUo.js";import{_ as P}from"./TJPmR8iV.js";import{_ as z,a as L}from"./Dze4rIcf.js";import{q as C,at as w,U as N,N as t,o as a,b as c,R as k,ag as R,g as j,k as E,w as $,c as f,d as i,b0 as D,a as s,O as r,b1 as F,aT as H,aS as I,P as M,Q,B as v}from"./C3wmcVjr.js";import{_ as G}from"./oJ5dV-V-.js";import"./Dfr-Pcuy.js";import"./Cyydme_O.js";import"./BVlvfDlF.js";import"./D7M8tm70.js";import"./NUNrPGfr.js";const J=C({__name:"BoutiqueCard",props:{item:{}},setup(y){const o=y,{data:n,status:l,error:_}=w(`boutiqueOrderItem:${o.item.product_variant_id}`,async()=>{const{$magento:u}=N(),{data:m}=await u.productDetails({filter:{sku:{eq:o.item.product_variant_id.split("-")[0]}}});return m?.products?.items?.[0]},{server:!1,lazy:!0,dedupe:"defer"}),e=k(()=>({name:n.value?.name,sku:o.item.product_variant_id,quantity:o.item.quantity,price:o.item.unit_price_sold,imageUrl:n.value?.image?.url,stockStatus:n.value?.stock_status,url:n.value?.canonical_url,selectedOptions:n.value?.selected_options}));return(u,m)=>{const p=x,d=z;return t(_)&&t(l)!=="error"?(a(),c(p,{key:0,color:"error",description:t(_)?.message||u.$t("account.somethingWentWrong"),icon:"i-local-danger-info"},null,8,["description"])):(a(),c(d,{key:1,item:t(e),loading:t(l)==="pending"},null,8,["item","loading"]))}}}),K=Object.assign(J,{__name:"SalesOrderDetailsBoutiqueCard"}),X={key:0},Y={class:"lg:block"},Z={class:"flex"},tt={class:"mr-2"},et={class:"mt-0.5"},_t=C({__name:"[orderNumber]",setup(y){const{$i18n:{t:o},$nitro:n}=N(),{params:{orderNumber:l}}=R(),_=j(E),{data:e,status:u,error:m}=w(`boutiqueOrder:${l}`,async()=>await n("/sales/order/{orderNumber}",{path:{orderNumber:String(l)},headers:{authorization:`Bearer ${_.value}`}}),{server:!1}),p=k(()=>e.value?.created_datetime?new Date(e.value.created_datetime).toLocaleDateString():""),d=Q(3),S=k(()=>[{label:o("account.orderDetails.subtotal"),amount:v(e.value?.subtotal_amount??"0"),type:"subtotal"},{label:o("account.orderDetails.discount"),amount:v(e.value?.total_discount??"0"),type:"discount"},{label:o("account.orderDetails.total"),amount:v(e.value?.total_paid_amount??"0"),type:"total"}]);return(B,b)=>{const g=W,q=x,O=P,U=K,A=H,T=L,V=G;return a(),c(V,null,{default:$(()=>[t(u)==="pending"?(a(),f("div",X,[i(g,{class:"mt-1 h-5 w-72 md:mt-2 md:h-6"}),i(g,{class:"mt-1 h-5 w-40 opacity-75 md:mt-2 md:h-6"}),i(g,{class:"mt-7 h-5 w-72 opacity-50 md:h-6"}),i(g,{class:"mt-1 h-5 w-40 opacity-25 md:mt-2 md:h-6"})])):t(m)?(a(),c(q,{key:1,color:"error",description:t(m)?.message||t(o)("account.somethingWentWrong"),icon:"i-local-danger-info"},null,8,["description"])):(a(),f(D,{key:2},[i(O,{class:"hidden",title:t(e)?.sales_location,text:`${t(e)?.order_id} / ${t(p)}`,subtitle:""},null,8,["title","text"]),s("div",Y,[s("h1",null,r(t(e)?.sales_location),1),s("p",null,"#"+r(t(e)?.order_id),1),s("p",null,r(t(p)),1)]),s("div",Z,[s("h3",tt,r(t(o)("account.orderDetails.itemsPurchased")),1),s("p",et,"("+r(t(e).lines.length)+")",1)]),(a(!0),f(D,null,F(t(e)?.lines?.slice(0,t(d)),h=>(a(),c(U,{key:h.product_variant_id,item:h},null,8,["item"]))),128)),t(e).lines.length>t(d)?(a(),c(A,{key:0,variant:"outline",onClick:b[0]||(b[0]=h=>d.value+=3)},{default:$(()=>[I(r(B.$t("account.orderDetails.showMore")),1)]),_:1})):M("",!0),i(T,{totals:t(S)},null,8,["totals"]),s("p",null,r(t(o)("account.orderDetails.genericText")),1)],64))]),_:1})}}});
1export{_t as default};
2//# sourceMappingURL=D18sD2fk.js.map

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.