PageSourceSearch

https://my.nacongaming.com/_nuxt/CaifdZMA.js

js nacongaming.com collected 2026-10-01 10:23:21 UTC 5,561 bytes, 1 lines download raw bytes

1import{_ as B}from"./WX2CpY4E.js";import{b as U,_ as E,a as H}from"./BaIWmEWm.js";import{_ as P}from"./D1Quzoay.js";import{d as L,G as Y,s as q,p as X,x as j,H as G,R as J,B as Z,Z as K,M as Q,X as W,N as ee,r as y,o as u,e as h,f as e,t as i,h as a,w as m,g as f,i as d,F as se,v as te,l as g,j as oe,k as ae,m as r}from"./BWypbmDt.js";import{_ as de}from"./DlHjm_2r.js";import"./eMBtVerh.js";import"./CzYpZZpk.js";import"./Dm3yS-kU.js";const ie={class:"columns is-centered order-user is-multiline"},ne={class:"column is-12 has-background-blue-4 pt-5"},re={class:"column is-11-desktop is-8-fullhd additional-tab-header is-flex px-3"},le={class:"title is-pulled-left mt-2"},ce={class:"action is-pulled-right"},ue={class:"column is-11-tablet is-8-fullhd is-vertical is-centered tile is-parent my-5"},me={key:0,class:"content columns is-multiline is-child"},_e={class:"column is-6-desktop is-12"},pe={class:"card"},he={class:"card-header has-background-blue-3 py-2"},ve={class:"card-header-title is-size-4"},fe={class:"card-content tile is-vertical py-0"},be={class:"columns is-mobile order mt-2 mb-0"},ye={class:"order-details column is-8"},ge={class:"order-status tile is-size-5 is-size-4-desktop has-text-weight-bold"},ke={class:"order-totals column is-4 has-text-right is-family-secondary"},$e={class:"is-size-5 is-size-4-desktop is-uppercase"},Oe={class:"is-size-4 is-size-3-desktop has-text-weight-bold"},Ce={class:"tile is-parent columns px-0"},ze={class:"column is-9 product-list tile is-child px-0"},Ie={class:"column is-3 actions see-order tile"},xe={class:"modal-card order-details-modal"},we={class:"modal-card-head is-radiusless"},Se={key:1,class:"box has-text-centered"},Te={class:"modal-card add-order-modal"},Ve={class:"modal-card-head is-radiusless"},Ae={class:"modal-card-title"},Me={class:"modal-card-body"},De={class:"is-size-6 mb-5"},Fe={class:"control has-text-centered mt-5"},Xe=L({__name:"order",setup(Ne){const{handleSubmit:I}=Y(),{orders:k}=q(X()),{t:b}=j(),x=G(),{executeRecaptcha:w,recaptchaLoaded:S}=J.useReCaptcha(),l=r(""),c=r(!1),_=r(!1),v=r(!1),T=r(13),$=r(null),n=r("");Z({title:b("My orders")});const O=I(()=>A());K(n,(s,t)=>{l.value&&s!=t&&(v.value=!1)});function V(s){_.value=!0,$.value=s}async function A(){if(n.value){await S();const s=await w("associateOrder"),{data:t}=await Q("/api/recaptcha",{method:"POST",body:{token:s}},"$Xt2YEfxM_0");t.value&&JSON.parse(t.value).success?(l.value="",W("/api/nacon/customer/associateOrder",{method:"POST",body:{orderIncrementId:n.value}}).then(()=>{x.notification.open({message:b("Your order has been added"),variant:"success"}),ee(),c.value=!1,n.value=""}).catch(p=>{l.value="You can't add this order to your account.",v.value=!0})):(l.value="It seems like you might be a robot.",v.value=!0)}}return(s,t)=>{const p=y("o-button"),M=B,D=U,F=E,C=y("o-icon"),N=H,z=y("o-modal"),R=P;return u(),h("section",ie,[e("div",ne,[e("div",re,[e("div",le,i(s.$t("My orders")),1),e("div",ce,[a(p,{inverted:"",outline:"","icon-left":"add-circle",onClick:t[0]||(t[0]=o=>c.value=!0)},{default:m(()=>[f(i(s.$t("Add an order")),1)]),_:1})])])]),e("div",ue,[d(k).length?(u(),h("div",me,[(u(!0),h(se,null,te(d(k),o=>(u(),h("div",_e,[e("div",pe,[e("header",he,[e("span",ve,i(s.$t("Order #{orderId}",{orderId:o.increment_id})),1)]),e("div",fe,[e("div",be,[e("div",ye,[e("div",ge,i(s.$t(o.status)),1),a(M,{date:o.created_at},null,8,["date"])]),e("div",ke,[e("div",$e,i(s.$t("Total")),1),e("div",Oe,[a(D,{price:o.grand_total,currencyCode:o.order_currency_code},null,8,["price","currencyCode"])])])]),e("div",Ce,[e("div",ze,[a(F,{orderItems:o.items},null,8,["orderItems"])]),e("div",Ie,[a(p,{variant:"primary",onClick:Re=>V(o)},{default:m(()=>[f(i(s.$t("See order")),1)]),_:1},8,["onClick"])])])])])]))),256)),a(z,{active:d(_),"onUpdate:active":t[2]||(t[2]=o=>g(_)?_.value=o:null),width:1240,"trap-focus":"","has-modal-card":"","custom-class":"order-details","full-screen":s.$device.isMobile,cancelable:["escape","outside","button"]},{default:m(()=>[e("div",xe,[e("header",we,[e("div",{class:"close",onClick:t[1]||(t[1]=o=>_.value=!1)},[a(C,{icon:"cross","custom-size":"is-size-1"})])]),a(N,{order:d($)},null,8,["order"])])]),_:1},8,["active","full-screen"])])):(u(),h("div",Se,[e("p",null,i(s.$t("Vous n'avez pas encore de commande, venez découvrir nos produits")),1),a(p,{tag:"a",href:s.$config.public.magentoUrl,class:"mt-3",rel:"noopener",target:"_blank"},{default:m(()=>[f(i(s.$t("Accéder à notre boutique")),1)]),_:1},8,["href"])])),a(z,{active:d(c),"onUpdate:active":t[6]||(t[6]=o=>g(c)?c.value=o:null),width:1240,"trap-focus":"","has-modal-card":"","custom-class":"add-order order-details",cancelable:["escape","outside","button"]},{default:m(()=>[e("div",Te,[e("header",Ve,[e("p",Ae,i(s.$t("Add an order")),1),e("div",{class:"close",onClick:t[3]||(t[3]=o=>c.value=!1)},[a(C,{icon:"cross",customSize:"is-size-1"})])]),e("section",Me,[e("p",De,i(s.$t("Add an order notice")),1),d(l)?(u(),oe(R,{key:0,variant:"danger",class:"mb-6",message:d(b)(d(l))}
1,null,8,["message"])):ae("",!0),e("form",{onSubmit:t[5]||(t[5]=(...o)=>d(O)&&d(O)(...o)),class:"focused-input"},[a(de,{"data-nac-id":"oa-id",rules:"required|isOrderIdValid|min:"+d(T),type:"text",label:s.$t("Order number"),name:"numOrder",modelValue:d(n),"onUpdate:modelValue":t[4]||(t[4]=o=>g(n)?n.value=o:null)},null,8,["rules","label","modelValue"]),e("div",Fe,[a(p,{size:"medium",type:"submit",variant:"primary",disabled:d(v)},{default:m(()=>[f(i(s.$t("Add")),1)]),_:1},8,["disabled"])])],32)])])]),_:1},8,["active"])])])}}});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.