PageSourceSearch

https://majestyspleasure.com/_nuxt/_id_-3d3f231e.mjs

js majestyspleasure.com collected 2026-10-04 21:54:29 UTC 11,528 bytes, 147 lines download raw bytes

1import{_ as E}from"./AuthSidebar-73d8dd55.mjs";import{_ as M,h as R,u as I,ad as B,a8 as O,o as Q,a as s,c as a,s as b,l as e,m as S,t as n,e as d,F as f,r as p,k as W,v as c,q as X}from"./entry-9f6422c3.mjs";import{u as U}from"./index-88c48717.mjs";const G={__name:"[id]",async setup(L,{expose:C}){C();let i,t;const{currency:g}=R(),{money:x,moneyWithCurrency:v}=U(),{FULFILLMENT_STATUS:u,decodeFinancialStatus:y}=U(),o=I(),{token:_}=B(),r=atob(o.params.id),T=`
2  query MyQuery @inContext(country: ${g.value}){
3    customer(customerAccessToken: "${_.value}") {
4      orders(first: 100, reverse: true) {
5        edges {
6          node {
7            successfulFulfillments(first: 100){
8              trackingCompany
9              trackingInfo {
10                number
11                url
12              }
13              fulfillmentLineItems(first:100) {
14                edges {
15                  node {
16                    lineItem {
17                      variant {
18                        id
19                      }
20                    }
21                    quantity
22                  }
23                }
24              }
25            }
26            orderNumber
27            id
28            name
29            totalPriceV2 {
30              amount
31              currencyCode
32            }
33            processedAt
34            financialStatus
35            fulfillmentStatus
36            currencyCode
37            lineItems(first: 20) {
38              edges {
39                node {
40                  quantity
41                  title
42                  discountedTotalPrice {
43                    amount
44                    currencyCode
45                  }
46                  variant {
47                    title
48                    selectedOptions {
49                      name
50                      value
51                    }
52                    priceV2 {
53                      amount
54                      currencyCode
55                    }
56                    id
57                    product {
58                      handle
59                      featuredImage {
60                        transformedSrc(maxWidth: 500)
61                        height
62                        width
63                        altText
64                      }
65                    }
66                  }
67                }
68              }
69            }
70            currentTotalTax {
71              amount
72              currencyCode
73            }
74            currentTotalPrice {
75              amount
76              currencyCode
77            }
78            currentTotalDuties {
79              amount
80              currencyCode
81            }
82            currentSubtotalPrice {
83              amount
84              currencyCode
85            }
86            discountApplications(first: 10) {
87              edges {
88                node {
89                  targetSelection
90                  targetType
91                  allocationMethod
92                  value {
93                    ... on MoneyV2 {
94                      __typename
95                      amount
96                      currencyCode
97                    }
98                    ... on PricingPercentageValue {
99                      __typename
100                      percentage
101                    }
102                  }
103                }
104              }
105            }
106            cancelReason
107            canceledAt
108            originalTotalDuties {
109              amount
110              currencyCode
111            }
112            originalTotalPrice {
113              amount
114              currencyCode
115            }
116            shippingAddress {
117              formatted(withName: true, withCompany: true)
118            }
119            shippingDiscountAllocations {
120              allocatedAmount {
121                amount
122                currencyCode
123              }
124            }
125            statusUrl
126            totalRefundedV2 {
127              amount
128              currencyCode
129            }
130            totalShippingPriceV2 {
131              amount
132              currencyCode
133            }
134            totalTaxV2 {
135              amount
136              currencyCode
137            }
138            subtotalPriceV2 {
139              amount
140              currencyCode
141            }
142          }
143        }
144      }
145    }
146  }
147`,V=([i,t]=O(()=>W({query:T})),i=await i,t(),i),w=V.data.customer;w||nuxtApp.$router.push("/404");const m=w.orders.edges.find(l=>{var h;return((h=l.node)==null?void 0:h.id)===r}),A=m.node.successfulFulfillments?m.node.successfulFulfillments:[];function q(l){const h=[];return A.forEach(k=>{const F=k.fulfillmentLineItems.edges.find(j=>{var D;return((D=j.node.lineItem.variant)==null?void 0:D.id)===l});F&&h.push({quantity:F.node.quantity,trackingUrl:k.trackingInfo.length>0?k.trackingInfo[0].url:null})}),h}const z=m.node.lineItems.edges;
147function N(l){switch(l.node.value.__typename){case"PricingPercentageValue":return`-${l.node.value.percentage}% off`;case"MoneyV2":return`-${x(l.node.value)}`}}Q(()=>{console.log(m,"orderis")});const P={currency:g,money:x,moneyWithCurrency:v,FULFILLMENT_STATUS:u,decodeFinancialStatus:y,route:o,token:_,orderId:r,query:T,customerData:V,customer:w,order:m,successfulFulfillments:A,findFulfillments:q,lineItems:z,decodeOrderDiscount:N};return Object.defineProperty(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}},H={class:"account-wrapper"},J={class:"account-main"},K={class:"account-main__inner"},Y={key:0,class:"max-w-[600px] mx-auto min-h-[60vh] pt-10 pb-10"},Z={class:"pb-4"},$=c("Back"),ee={class:"text-[2.5rem] mb-4 text-center"},te={class:"text-center"},oe=c(" Placed on: "),ne=c(" Payment Status: "),se=c(" Fulfilment Status: "),ae={key:0,class:"mt-10"},re=["href"],de={class:"responsive-table font-XS text-left w-full"},le=e("thead",{class:"text-small uppercase tracking-[1.87px] hidden md:table-header-group"},[e("tr",{class:"border-b border-solid border-opacity-20 border-black"},[e("th",{class:"md:pb-5 pb-3"},"Product"),e("th",{class:"md:pb-5 pb-3"}),e("th",{class:"md:pb-5 pb-3 hidden md:table-cell"},"Price"),e("th",{class:"md:pb-5 pb-3"},"Quantity"),e("th",{class:"md:pb-5 pb-3"},"Total")])],-1),ce={class:"font-azo-regular border-b border-[#C1A894]"},ie={class:"pr-5 md:pr-0 py-5 w-1/3 md:w-[5.8125rem]"},ue={key:0,class:"w-full pt-[132%] md:pt-0 md:w-[4.5rem] md:h-[5.94rem] relative"},_e=["src","alt"],me={class:"py-5 w-2/3 md:w-auto"},he={class:"block mb-7"},fe={key:0,class:"font-azo-light"},pe=["href"],ye={class:"w-full md:w-auto md:py-5 py-1 flex justify-between md:table-cell"},be=e("span",{class:"block md:hidden"},"Price",-1),ge={key:0},xe={class:"w-full md:w-auto md:py-5 py-1 flex justify-between md:table-cell","data-label":"{{ 'customer.order.quantity' | t }}"},ve=e("span",{class:"block md:hidden"},"Quantity",-1),we={class:"w-full md:w-auto md:py-5 pt-1 pb-3 flex justify-between md:table-cell","data-label":"{{ 'customer.order.total' | t }}"},ke=e("span",{class:"block md:hidden"},"Total",-1),Se={class:"flex border-b border-[#C1A894]"},Ce=e("div",{class:"flex-1"},null,-1),Te={class:"md:w-1/2 w-full text-base"},Ve={class:"responsive-table-row font-azo-medium flex justify-between pt-7 pb-7"},Ae=e("span",{colspan:"4",class:"mdall--hide"}," Subtotal ",-1),Pe={class:"","data-label":"{{ 'customer.order.subtotal' | t }}"},Fe=e("span",{colspan:"4",class:"mdall--hide"},"Discount ",-1),De={class:""},Ue={class:"flex justify-between font-azo-light"},Le=e("span",{colspan:"4",class:"mdall--hide"},"Shipping",-1),qe={class:""},ze={key:0,class:"flex justify-between font-azo-light"},Ne=e("span",{colspan:"4",class:"mdall--hide"},"Taxes",-1),je={class:""},Ee={class:"font-azo-medium flex justify-between pt-7"},Me=e("span",{colspan:"4",class:"mdall--hide pb-7"}," Total ",-1),Re={"data-label":"{{ 'customer.order.total' | t }}",class:"pb-7"},Ie={key:1},Be=e("hr",null,null,-1),Oe={class:"font-azo-medium flex justify-between"}
147,Qe=e("span",{colspan:"4",class:"mdall--hide pb-7"}," Total refunded ",-1),We={"data-label":"{{ 'customer.order.total' | t }}",class:"pb-7"},Xe={class:"flex flex-wrap mt-7 text-base"},Ge={class:"w-full md:w-1/2"},He=e("h3",{class:"font-azo-medium mb-4 under font-bold"},"Shipping Address",-1),Je={class:"leading-[1.5] font-azo-light"};function Ke(L,C,i,t,g,x){var y;const v=E,u=X;return s(),a("article",H,[b(v),e("section",J,[e("div",K,[t.customer?(s(),a("section",Y,[e("div",Z,[b(u,{class:"text-center block",to:{name:"auth-account-orders"}},{default:S(()=>[$]),_:1}),e("h1",ee," Order #"+n(t.order.node.orderNumber),1),e("div",null,[e("ul",te,[e("li",null,[oe,e("strong",null,n(new Date(t.order.node.processedAt).toDateString().substring(4).replaceAll(" ",", ")),1)]),e("li",null,[ne,e("strong",null,n(t.decodeFinancialStatus(t.order.node.financialStatus)),1)]),e("li",null,[se,e("strong",null,n(t.FULFILLMENT_STATUS[t.order.node.fulfillmentStatus]),1)])]),t.order.node.canceledAt?(s(),a("div",ae," Order Cancelled on "+n(new Date(t.order.node.canceledAt).toDateString().substring(4).replaceAll(" ",", ")),1)):d("",!0),t.order.node.statusUrl&&t.order.node.fulfillmentStatus!=="UNFULFILLED"?(s(),a("a",{key:1,href:t.order.node.statusUrl,class:"mt-10 block underline"}," View order and tracking status ",8,re)):d("",!0)])]),e("table",de,[le,e("tbody",ce,[(s(!0),a(f,null,p(t.lineItems,o=>{var _;return s(),a("tr",{key:o.node.title,class:"responsive-table-row text-[15px] flex md:table-row flex-wrap border-t border-opacity-20 border-black border-solid md:border-t-0"},[e("td",ie,[o.node.variant?(s(),a("figure",ue,[b(u,{to:{name:"product-handle",params:{handle:o.node.variant.product.handle}}},{default:S(()=>[e("img",{class:"w-full h-full absolute top-0 left-0 object-cover",width:"92",height:"121",src:o.node.variant.product.featuredImage.transformedSrc,alt:o.node.variant.product.featuredImage.altText},null,8,_e)]),_:2},1032,["to"])])):d("",!0)]),e("td",me,[e("div",he,[e("h3",null,[b(u,null,{default:S(()=>[c(n(o.node.title),1)]),_:2},1024)]),o.node.variant?(s(),a("ul",fe,[(s(!0),a(f,null,p(o.node.variant.selectedOptions,r=>(s(),a("li",{class:"text-[0.675rem]",key:r.name},n(r.name)+": "+n(r.value),1))),128))])):d("",!0),(s(!0),a(f,null,p(t.findFulfillments((_=o.node.variant)==null?void 0:_.id),r=>(s(),a("div",{key:r.trackingUrl,class:"text-extra-small"},[c(n(r.quantity)+" out of "+n(o.node.quantity)+" is fulfilled - ",1),e("a",{href:r.trackingUrl,class:"underline"},"track here",8,pe)]))),128))])]),e("td",ye,[be,o.node.variant?(s(),a("span",ge,n(t.money(o.node.variant.priceV2)),1)):d("",!0)]),e("td",xe,[ve,e("span",null,n(o.node.quantity),1)]),e("td",we,[ke,e("span",null,n(t.money(o.node.discountedTotalPrice)),1)])])}
147),128))])]),e("div",Se,[Ce,e("div",Te,[e("div",Ve,[Ae,e("span",Pe,n(t.money(t.order.node.subtotalPriceV2)),1)]),(s(!0),a(f,null,p(t.order.node.discountApplications.edges,o=>(s(),a("div",{key:o,class:"flex justify-between font-azo-light"},[Fe,e("span",De,n(t.decodeOrderDiscount(o)),1)]))),128)),e("div",Ue,[Le,e("span",qe,n(+t.order.node.totalShippingPriceV2.amount<=0?"FREE":t.money(t.order.node.totalShippingPriceV2)),1)]),+t.order.node.totalTaxV2.amount>0?(s(),a("div",ze,[Ne,e("span",je,n(t.money(t.order.node.totalTaxV2)),1)])):d("",!0),e("div",Ee,[Me,e("span",Re,n(t.moneyWithCurrency(t.order.node.totalPriceV2)),1)]),+t.order.node.totalRefundedV2.amount>0?(s(),a("div",Ie,[Be,e("div",Oe,[Qe,e("span",We,n(t.money(t.order.node.totalRefundedV2)),1)])])):d("",!0)])]),e("div",Xe,[e("div",Ge,[He,e("div",Je,[e("ul",null,[(s(!0),a(f,null,p((y=t.order.node.shippingAddress)==null?void 0:y.formatted,o=>(s(),a("li",{key:o},n(o),1))),128))])])])])])):d("",!0)])])])}var et=M(G,[["render",Ke]]);export{et 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.