1import{_ as V}from"./Cd4rpeRO.js";import{_ as q}from"./Co9xZJVj.js";import{_ as P}from"./CQZCLpzA.js";import{w as A,x as J,F as L,v as M,A as O,J as R,a as z,K as x,B as D}from"./CxiuuAY1.js";import{k as E,l as d,X as F,a1 as r,u as o,Y as G,_ as g,Z as a,a2 as n,$ as m,a3 as H,J as u}from"./BYkQzdCZ.js";import{u as I}from"./BuuRJIgB.js";import"./CPjHYV1x.js";import"./CK6AeYTB.js";import"./cwOuFvEk.js";import"./CTL0yfOA.js";import"./D-42Y8o3.js";import"./BpqqeFbK.js";import"./eZOmcRHZ.js";import"./B5QGMQ4Y.js";import"./DWIfjQR1.js";import"./duzqYEGa.js";import"./DWtAfgF1.js";import"./C6iWzv6x.js";import"./E2rUTLvU.js";import"./BvRT1FfJ.js";const K={key:0,class:"container lt-sm:px-7"},X={class:"fs-3 border-b border-black py-8 text-center text-black leading-normal"},Y={key:0,class:"color-c-assist"},Z={class:"border-b border-black py-8 text-center print:hidden"},j={key:1,class:"h-$screen"},Q={key:1,class:"h-$screen"},xe=E({__name:"order-complete",async setup(U){var b,k,y;let p,_;const f=A(),i=J(),v=I(),C=L(),$=M(),s=d(()=>f.query.id?{id:f.query.id}:null),l={content:O("/api/frontend/orders/content",{query:s,immediate:!1,watch:!1})},{isLoading:h}=R(l.content),e=d(()=>{var c;return(c=l.content.data.value)==null?void 0:c.data}),w=d(()=>e.value?$.sum(e.value):0);return z({title:"è¨è³¼å®æ"}),C.isGuest&&((b=s.value)!=null&&b.id)?x(`/order-search?id=${s.value.id}`):(k=s.value)!=null&&k.id&&([p,_]=F(()=>l.content.execute()),await p,_()),(y=s.value)!=null&&y.id||x("/"),e.value||v.error({closable:!1,maskClosable:!1,title:"æéæ¨",content:"æ¥ç¡è¨å®è³æ",positiveText:"åé¦é ",onPositiveClick:()=>i.replace("/")}),e.value&&e.value.area_type===0&&e.value.order_status<=3&&w.value>0&&v.warning({closable:!1,maskClosable:!1,title:"æéæ¨",content:"äº¤ææªå®æï¼è«éæ°ä¸å®",positiveText:"åé¦é ",onPositiveClick:()=>i.replace("/")}),(c,t)=>{const B=V,S=D,N=q,T=P;return o(e)?(a(),r("div",K,[o(e).order_status>3||o(e).pay_type===7?(a(),G(T,{key:0,title:"è¨è³¼å®æ","title-size":"large"},{default:g(()=>[n("div",X,[t[2]||(t[2]=n("p",null,"è¬è¬æ é¡§ï¼æåå·²æ¶å°æ¨çè¨å®",-1)),o(e).area_type===1?(a(),r("p",Y,[...t[1]||(t[1]=[u(" æµ·å¤è¨å®å°ç±å°äººçºæ¨æ¥è©¢å¯¦ééè²»å¾æ´æ°è¨å®éé¡",-1),n("br",null,null,-1),u(" è«æ¼å®¢æèæ¨ç¢ºèªè¨å®å¾ï¼åé²è¡å¯æ¬¾ã ",-1)])])):H("",!0)]),m(B,{data:o(e),loading:o(h),embed:""},null,8,["data","loading"]),n("div",Z,[m(S,{type:"error",class:"min-w-60",onClick:t[0]||(t[0]=W=>o(i).push("/"))},{default:g(()=>[...t[3]||(t[3]=[u(" ç¹¼çºéé ",-1)])]),_:1})]),m(N)]),_:1})):(a(),r("div",j))])):(a(),r("div",Q))}}});export{xe 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.