PageSourceSearch

https://rapidbook.fr/_nuxt/goVR7wms.js

js rapidbook.fr collected 2026-10-07 03:18:23 UTC 9,482 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DI9O5dWF.js","./CJ6gMgWn.js","./Dex_rNvJ.js","./BZkMi52v.js","./entry.2xYq6kXg.css","./Tm-UZjuN.js","./VSkeletonLoader.ChbnzJax.css","./VignetteFetcher.BpyO9BQ6.css","./BuS9DIIm.js","./B8fXMyO5.js","./DZOJBFNG.js","./vesXJyZV.js","./DdqmMQcs.js","./VDialog.BVFWy4Qf.css","./D4r4xG7G.js","./VSpacer.izdAGX-2.css","./D_j1XAq8.js","./VAlert.BvszA7Qq.css","./6qz03BdA.js","./CUpLYphh.js","./VPagination.8vOlnBSt.css","./DDm33587.js","./VTable.zev2rQKB.css","./VDataTable.lc6VFqar.css","./OrderCard.bsIZD9_Z.css"])))=>i.map(i=>d[i]);
2import N from"./B5Kw8KhK.js";import{aa as A,aW as U,f as R,X as M,a4 as d,a5 as V,a6 as n,k as r,ag as $,l as a,am as q,aj as E,ab as s,af as L,ad as I,a9 as _,ai as Q,a8 as i,a7 as p,F as S,ak as O,ac as W,al as X,r as P,g as Y,bP as G,bQ as H}from"./BZkMi52v.js";import{u as J}from"./BuS9DIIm.js";import{u as K}from"./B8fXMyO5.js";import{u as Z}from"./Dex_rNvJ.js";import{V as ee}from"./DJR-Jvu7.js";import{V as te}from"./DwYA27Cb.js";import{V as se}from"./Tm-UZjuN.js";import{V as z}from"./CUpLYphh.js";import{V as ae}from"./C0fPDK6O.js";import{u as le}from"./CrCOM1qh.js";import"./D5em4qib.js";import"./6qz03BdA.js";import"./DDm33587.js";(function(){try{var m=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};m.SENTRY_RELEASE={id:"08e9dd958241870e7bfbaff3fdeeaf1c1b3c8b3b"};var f=new m.Error().stack;f&&(m._sentryDebugIds=m._sentryDebugIds||{},m._sentryDebugIds[f]="ea6d01b7-3aa8-40f6-922d-5f8d4216e0ae",m._sentryDebugIdIdentifier="sentry-dbid-ea6d01b7-3aa8-40f6-922d-5f8d4216e0ae")}catch{}})();const oe=G(()=>H(()=>import("./DI9O5dWF.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(m=>m.default||m)),ie={class:"tw:flex ga-2 tw:items-center"},re={class:"d-flex flex-column align-center justify-center py-12 ga-3"},ne={class:"text-h6 font-weight-semibold"},de={class:"text-body-2 text-medium-emphasis text-center mx-auto",style:{"max-width":"28rem"}},ce={key:1,class:"text-body-2 text-medium-emphasis"},ue={key:0,class:"pa-4"},me={key:1,class:"d-flex flex-column align-center justify-center py-12 ga-3"},pe={class:"text-h6 font-weight-semibold"},_e={class:"text-body-2 text-medium-emphasis text-center mx-auto",style:{"max-width":"28rem"}},fe={key:1,class:"text-body-2 text-medium-emphasis"},ge={key:2,class:"pa-2"},xe={class:"tw:flex tw:items-center gx-3"},be={class:"tw:font-bold tw:text-base tw:flex-1 tw:min-w-0 tw:truncate"},ye={class:"mt-1 tw:flex tw:items-center ga-2"},we={class:"tw:flex tw:items-center ga-1 tw:text-xs tw:text-gray-500"},he={class:"tw:grid tw:grid-cols-2 ga-2 mt-3"},ve={class:"tw:flex tw:justify-between"},ke={class:"tw:text-xs tw:text-gray-500"},Ve={class:"tw:font-semibold tw:text-sm"},Pe={class:"tw:flex tw:justify-between"},De={class:"tw:text-xs tw:text-gray-500"},je={class:"tw:font-semibold tw:text-sm"},Be={class:"tw:flex tw:justify-between"},Ce={class:"tw:text-xs tw:text-gray-500"},Ie={class:"tw:font-semibold tw:text-sm"},Le={class:"tw:flex tw:justify-between"},Se={class:"tw:text-xs tw:text-gray-500"},Ee={class:"tw:font-semibold tw:text-sm"},Oe={class:"tw:col-span-2 tw:flex tw:justify-between tw:items-center tw:bg-yellow-100 tw:rounded-lg px-3 py-1"},ze={class:"tw:text-xs tw:font-semibold tw:text-gray-700"},Ae={class:"tw:font-bold tw:text-black"},Re={class:"tw:flex tw:flex-col tw:items-end tw:justify-between mt-3 pt-2 tw:border-t tw:border-gray-100 tw:text-xs tw:text-gray-500"},Te=A({__name:"OrderList",setup(m){const f=U(),{createNotification:w}=J(),{formatDate:g,formatCurrency:c}=K(),{ts:h,getLocale:D}
2=R(),l=(o,t,y)=>h(o,t,y),j=P([]),v=P(!0),B=P(0),x=P(""),u=P({page:1,itemsPerPage:10,sortBy:[]}),T=Y(()=>[{title:l("global.actions"),key:"actions",sortable:!1},{title:"UID",key:"uid"},{title:l("global.status"),key:D()==="fr"?"f1.name":"f1.en_name"},{title:l("order.line.lines"),key:"lignes_commande",sortable:!1,value:o=>o.lignes_commande.filter(t=>t.enabled).length},{title:l("order.price.production"),key:"prix_fabrication",value:o=>c(o.prix_fabrication)},{title:l("order.price.packaging"),key:"prix_emballage",value:o=>c(o.prix_emballage)},{title:l("order.price.shipping"),key:"prix_livraison",value:o=>c(o.prix_livraison)},{title:l("order.price.ht"),key:"prix_ht",value:o=>c(o.prix_ht)},{title:l("order.price.ttc"),key:"prix_ttc",value:o=>c(o.prix_ttc)},{title:l("global.created_at"),key:"created_at",value:o=>g(o.created_at)},{title:l("global.updated_at"),key:"updated_at",value:o=>g(o.updated_at)}]),b=async o=>{v.value=!0;let t=u.value.page,y=u.value.itemsPerPage,e=null;o===!0?t=1:o&&typeof o=="object"&&(t=o.page??u.value.page,y=o.itemsPerPage??u.value.itemsPerPage,o.sortBy&&o.sortBy.length>0&&(e=o.sortBy[0]));const{data:k,error:C,status:F}=await Z("commande",{method:"get",query:{page:t,per_page:y,sort_by:e?e.key:"created_at",sort_order:e?e.order:"desc",search:x.value}});F.value==="success"&&k.value&&(j.value=k.value.items,B.value=k.value.total),C.value&&w("error",C.value.statusCode+" : "+(C.value.cause?.message||C.value.message)),v.value=!1};return M(()=>{f.smAndDown.value&&b()}),(o,t)=>{const y=oe;return d(),V(ae,null,{default:n(()=>[r(ee,{onSubmit:t[1]||(t[1]=$(e=>b(!0),["prevent"])),class:"tw:w-full mb-2"},{default:n(()=>[a("div",ie,[r(q,{modelValue:s(x),"onUpdate:modelValue":t[0]||(t[0]=e=>E(x)?x.value=e:null),label:l("search"),"prepend-inner-icon":"mdi-magnify",variant:"outlined","hide-details":"",density:"comfortable",rounded:"ts-xl be-xl"},null,8,["modelValue","label"]),r(L,{class:"tw:text-black!",rounded:"ts-xl be-xl",color:"yellow-darken-1",flat:"",size:"large",loading:s(v),type:"submit"},{default:n(()=>[r(I,null,{default:n(()=>[...t[7]||(t[7]=[_("mdi-magnify",-1)])]),_:1})]),_:1},8,["loading"])])]),_:1}),r(Q,{rounded:"ts-xl be-xl",elevation:"1"},{default:n(()=>[s(f).smAndDown.value?(d(),p(S,{key:1},[s(v)?(d(),p("div",ue,[(d(),p(S,null,O(4,e=>r(se,{key:e,type:"list-item-avatar, list-item-three-line",class:"mb-3"})),64))])):s(j).length?(d(),p("div",ge,[r(z,{length:Math.ceil(s(B)/s(u).itemsPerPage),modelValue:s(u).page,"onUpdate:modelValue":[t[3]||(t[3]=e=>s(u).page=e),t[4]||(t[4]=e=>b())],"total-visible":3,class:"my-2"},null,8,["length","modelValue"]),(d(!0),p(S,null,O(s(j),e=>(d(),V(W,{key:e.uid,rounded:"ts-xl be-xl",elevation:"1",class:"mb-2 pa-3"},{default:n(()=>[a("div",xe,[a("div",be,i(e.uid),1),r(y,{order:e,onRefresh:b},null,8,["order"])]),a("div",ye,[r(X,{color:"yellow-darken-1",class:"tw:text-black!",size:"small",flat:""},{default:n(()=>[_(i(e.f1?.[s(D)()==="fr"?"name":"en_name"]??"-"),1)]),_:2},1024),a("span",we,[r(I,{size:"small"},{default:n(()=>[...t[10]||(t[10]=[_("mdi-book-open-page-variant",-1)])]),_:1}),_(" "+i(e.lignes_commande.filter(k=>k.enabled).length)+" "+i(l("order.line.lines")),1)])]),a("div",he,[a("div",ve,[a("span",ke,i(l("order.price.production")),1),a("span",Ve,i(s(c)(e.prix_fabrication)),1)]),a("div",Pe,[a("span",De,i(l("order.price.packaging")),1),a("span",je,i(s(c)(e.prix_emballage)),1)]),a("div",Be,[a("span",Ce,i(l("order.price.shipping")),1),a("span",Ie,i(s(c)(e.prix_livraison)),1)]),a("div",Le,[a("span",Se,i(l("order.price.ht")),1),a("span",Ee,i(s(c)(e.prix_ht)),1)]),a("div",Oe,[a("span",ze,i(l("order.price.ttc")),1),a("span",Ae,i(s(c)(e.prix_ttc)),1)])]),a("div",Re,[a("span",null,i(l("global.created_at"))+" : "+i(s(g)(e.created_at)),1),a("span",null,i(l("global.updated_at"))+" : "+i(s(g)(e.updated_at)),1)])]),_:2},1024))),128)),r(z,{length:Math.ceil(s(B)/s(u).itemsPerPage),modelValue:s(u).page,"onUpdate:modelValue":[t[5]||(t[5]=e=>s(u).page=e),t[6]||(t[6]=e=>b())],"total-visible":3,class:"my-4"},null,8,["length","modelValue"])])):(d(),p("div",me,[r(I,{size:"96",color:"grey-lighten-1"},{default:n(()=>[...t[9]||(t[9]=[_("mdi-package-variant-closed",-1)])]),_:1}),a("h3",pe,i(l("order.empty_title")),1),a("p",_e,i(l("order.empty_subt
2itle")),1),s(x)?(d(),p("p",fe,i(l("order.no_results")),1)):(d(),V(L,{key:0,to:"/library",color:"yellow-darken-1",class:"text-black mt-2",rounded:"ts-xl be-xl","prepend-icon":"mdi-book-open-page-variant"},{default:n(()=>[_(i(l("order.empty_action")),1)]),_:1}))]))],64)):(d(),V(te,{key:0,hover:"","fixed-header":"","fixed-footer":"",headers:s(T),items:s(j),"items-length":s(B),loading:s(v),options:s(u),"onUpdate:options":[t[2]||(t[2]=e=>E(u)?u.value=e:null),b],search:s(x),class:"tw:max-h-![60vh]"},{"item.actions":n(({item:e})=>[r(y,{order:e,onRefresh:b},null,8,["order"])]),"no-data":n(()=>[a("div",re,[r(I,{size:"96",color:"grey-lighten-1"},{default:n(()=>[...t[8]||(t[8]=[_("mdi-package-variant-closed",-1)])]),_:1}),a("h3",ne,i(l("order.empty_title")),1),a("p",de,i(l("order.empty_subtitle")),1),s(x)?(d(),p("p",ce,i(l("order.no_results")),1)):(d(),V(L,{key:0,to:"/library",color:"yellow-darken-1",class:"text-black mt-2",rounded:"ts-xl be-xl","prepend-icon":"mdi-book-open-page-variant"},{default:n(()=>[_(i(l("order.empty_action")),1)]),_:1}))])]),_:1},8,["headers","items","items-length","loading","options","search"]))]),_:1})]),_:1})}}}),Fe=Object.assign(Te,{__name:"OrderList"}),et=A({__name:"order",setup(m){const{ts:f}=R(),w=(g,c,h)=>f(g,c,h);return le("orders"),(g,c)=>{const h=N,D=Fe;return d(),p("div",null,[r(h,{items:[{title:"Rapidbook",to:"/",disabled:!1},{title:w("menu.dashboard"),to:"/dashboard",disabled:!1},{title:w("menu.title.orders"),to:"/order",disabled:!0}],title:w("menu.title.orders")},null,8,["items","title"]),r(D)])}}});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.