@oneclick.dev/cms-core-modules 0.0.61 → 0.0.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/{ContentEditor-BAepN3Yd.js → ContentEditor-DKFCmfOs.js} +1 -1
  2. package/dist/{ContentEditor-BPjWW3d1.mjs → ContentEditor-owdOIage.mjs} +1 -1
  3. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-DRVxQswt.js +1 -0
  4. package/dist/{NewReservationDialog.vue_vue_type_script_setup_true_lang-BJitmbPE.mjs → NewReservationDialog.vue_vue_type_script_setup_true_lang-DkgDWC2i.mjs} +130 -125
  5. package/dist/{Overview-DtWvKB3W.mjs → Overview-DiBYtvEX.mjs} +124 -119
  6. package/dist/Overview-qP1guKjx.js +1 -0
  7. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-B7ks5mbf.mjs +2332 -0
  8. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-Vxubki_v.js +349 -0
  9. package/dist/{TableView-_2cP-w_7.js → TableView-BqhL_P45.js} +100 -100
  10. package/dist/{TableView-DlhHyuUZ.mjs → TableView-Dbl8qcUy.mjs} +14991 -14728
  11. package/dist/agenda-DFNJ8C1N.mjs +1136 -0
  12. package/dist/agenda-MjkwV63A.js +1 -0
  13. package/dist/floating-ui.dom-CBBY0Ism.js +1 -0
  14. package/dist/floating-ui.dom-xfqXu4GA.mjs +1138 -0
  15. package/dist/{index-DTago6vW-Bhr8E1Y6.js → index-CgfL8UKf-DAN7RkzR.js} +10 -10
  16. package/dist/{index-DTago6vW-CnomHQ_S.mjs → index-CgfL8UKf-DUUg9HDA.mjs} +904 -875
  17. package/dist/index-DBDq-h4j.js +245 -0
  18. package/dist/{index-BDaVYdkD.mjs → index-X0L4AHBR.mjs} +2406 -2394
  19. package/dist/index-YMaY4uuk-BgpTtr73.js +1 -0
  20. package/dist/{index-YMaY4uuk-BshejgNP.mjs → index-YMaY4uuk-C_xV5K9Z.mjs} +13 -14
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.mjs +6 -6
  23. package/dist/orders-Bqa3Z3tH.mjs +356 -0
  24. package/dist/orders-D5GJOZXN.js +1 -0
  25. package/dist/src/appointments/components/edit/EventDialog/ApproveReservationDialog.vue.d.ts +8 -0
  26. package/dist/src/appointments/components/edit/EventDialog/BookingsList.vue.d.ts +39 -9
  27. package/dist/src/appointments/components/edit/EventDialog/CancelReservationDialog.vue.d.ts +2 -2
  28. package/dist/src/appointments/components/edit/EventDialog/RejectReservationDialog.vue.d.ts +8 -0
  29. package/dist/src/appointments/components/edit/EventDialog/ReservationDetailDialog.vue.d.ts +36 -8
  30. package/dist/src/appointments/components/edit/dashboard/BookingsList.vue.d.ts +46 -9
  31. package/dist/src/appointments/components/edit/dashboard/Timeline.vue.d.ts +19 -0
  32. package/dist/src/appointments/pages/edit/orders.vue.d.ts +39 -9
  33. package/package.json +1 -1
  34. package/dist/NewReservationDialog.vue_vue_type_script_setup_true_lang-D50uTpZY.js +0 -1
  35. package/dist/Overview-B_99j5eA.js +0 -1
  36. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js +0 -345
  37. package/dist/ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs +0 -2093
  38. package/dist/agenda-D81m29_4.mjs +0 -1135
  39. package/dist/agenda-uzPPxgsW.js +0 -1
  40. package/dist/floating-ui.dom-C82nbomj.js +0 -1
  41. package/dist/floating-ui.dom-ouSgPqty.mjs +0 -1133
  42. package/dist/index-DfV8-6ON.js +0 -245
  43. package/dist/index-YMaY4uuk-BxVT7IpO.js +0 -1
  44. package/dist/orders-Bh8w0ueq.mjs +0 -346
  45. package/dist/orders-Dt0zMz97.js +0 -1
  46. package/dist/src/appointments/components/edit/EventDialog/ResendConfirmationDialog.vue.d.ts +0 -4
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("vue");var X,Fe,Oe,ce,ln=Object.create,We=Object.defineProperty,cn=Object.getOwnPropertyDescriptor,Ne=Object.getOwnPropertyNames,un=Object.getPrototypeOf,dn=Object.prototype.hasOwnProperty,te=(X={"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}},function(){return X&&(Fe=(0,X[Ne(X)[0]])(X=0)),Fe}),_n=(Oe={"../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e,t){function n(o){return o instanceof Buffer?Buffer.from(o):new o.constructor(o.buffer.slice(),o.byteOffset,o.length)}te(),t.exports=function(o){if((o=o||{}).circles)return(function(a){const l=[],u=[],h=new Map;if(h.set(Date,d=>new Date(d)),h.set(Map,(d,_)=>new Map(E(Array.from(d),_))),h.set(Set,(d,_)=>new Set(E(Array.from(d),_))),a.constructorHandlers)for(const d of a.constructorHandlers)h.set(d[0],d[1]);let f=null;return a.proto?T:O;function E(d,_){const y=Object.keys(d),m=new Array(y.length);for(let S=0;S<y.length;S++){const D=y[S],w=d[D];if(typeof w!="object"||w===null)m[D]=w;else if(w.constructor!==Object&&(f=h.get(w.constructor)))m[D]=f(w,_);else if(ArrayBuffer.isView(w))m[D]=n(w);else{const q=l.indexOf(w);m[D]=q!==-1?u[q]:_(w)}}return m}function O(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return E(d,O);if(d.constructor!==Object&&(f=h.get(d.constructor)))return f(d,O);const _={};l.push(d),u.push(_);for(const y in d){if(Object.hasOwnProperty.call(d,y)===!1)continue;const m=d[y];if(typeof m!="object"||m===null)_[y]=m;else if(m.constructor!==Object&&(f=h.get(m.constructor)))_[y]=f(m,O);else if(ArrayBuffer.isView(m))_[y]=n(m);else{const S=l.indexOf(m);_[y]=S!==-1?u[S]:O(m)}}return l.pop(),u.pop(),_}function T(d){if(typeof d!="object"||d===null)return d;if(Array.isArray(d))return E(d,T);if(d.constructor!==Object&&(f=h.get(d.constructor)))return f(d,T);const _={};l.push(d),u.push(_);for(const y in d){const m=d[y];if(typeof m!="object"||m===null)_[y]=m;else if(m.constructor!==Object&&(f=h.get(m.constructor)))_[y]=f(m,T);else if(ArrayBuffer.isView(m))_[y]=n(m);else{const S=l.indexOf(m);_[y]=S!==-1?u[S]:T(m)}}return l.pop(),u.pop(),_}})(o);const r=new Map;if(r.set(Date,a=>new Date(a)),r.set(Map,(a,l)=>new Map(i(Array.from(a),l))),r.set(Set,(a,l)=>new Set(i(Array.from(a),l))),o.constructorHandlers)for(const a of o.constructorHandlers)r.set(a[0],a[1]);let s=null;return o.proto?function a(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return i(l,a);if(l.constructor!==Object&&(s=r.get(l.constructor)))return s(l,a);const u={};for(const h in l){const f=l[h];typeof f!="object"||f===null?u[h]=f:f.constructor!==Object&&(s=r.get(f.constructor))?u[h]=s(f,a):ArrayBuffer.isView(f)?u[h]=n(f):u[h]=a(f)}return u}:function a(l){if(typeof l!="object"||l===null)return l;if(Array.isArray(l))return i(l,a);if(l.constructor!==Object&&(s=r.get(l.constructor)))return s(l,a);const u={};for(const h in l){if(Object.hasOwnProperty.call(l,h)===!1)continue;const f=l[h];typeof f!="object"||f===null?u[h]=f:f.constructor!==Object&&(s=r.get(f.constructor))?u[h]=s(f,a):ArrayBuffer.isView(f)?u[h]=n(f):u[h]=a(f)}return u};function i(a,l){const u=Object.keys(a),h=new Array(u.length);for(let f=0;f<u.length;f++){const E=u[f],O=a[E];typeof O!="object"||O===null?h[E]=O:O.constructor!==Object&&(s=r.get(O.constructor))?h[E]=s(O,l):ArrayBuffer.isView(O)?h[E]=n(O):h[E]=l(O)}return h}}}},function(){return ce||(0,Oe[Ne(Oe)[0]])((ce={exports:{}}).exports,ce),ce.exports});te(),te(),te();var Ye,Pt=typeof navigator<"u",p=typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof global<"u"?global:{};p.chrome!==void 0&&p.chrome.devtools,Pt&&(p.self,p.top),typeof navigator<"u"&&((Ye=navigator.userAgent)==null||Ye.toLowerCase().includes("electron")),te();var pn=((e,t,n)=>(n=e!=null?ln(un(e)):{},((o,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Ne(r))dn.call(o,a)||a===s||We(o,a,{get:()=>r[a],enumerable:!(i=cn(r,a))||i.enumerable});return o})(We(n,"default",{value:e,enumerable:!0}),e)))(_n()),fn=/(?:^|[-_/])(\w)/g;function hn(e,t){return t?t.toUpperCase():""}var mn=/^https?:\/\//,qe=(0,pn.default)({circles:!0});const gn={trailing:!0};function F(e,t=25,n={}){if(n={...gn,...n},!Number.isFinite(t))throw new TypeError("Expected `wait` to be a finite number");let o,r,s,i,a=[];const l=(u,h)=>(s=(async function(f,E,O){return await f.apply(E,O)})(e,u,h),s.finally(()=>{if(s=null,n.trailing&&i&&!r){const f=l(u,i);return i=null,f}}),s);return function(...u){return s?(n.trailing&&(i=u),s):new Promise(h=>{const f=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const E=n.leading?o:l(this,u);for(const O of a)O(E);a=[]},t),f?(o=l(this,u),h(o)):a.push(h)})}}function Ie(e,t={},n){for(const o in e){const r=e[o],s=n?`${n}:${o}`:o;typeof r=="object"&&r!==null?Ie(r,t,s):typeof r=="function"&&(t[s]=r)}return t}const En={run:e=>e()},At=console.createTask!==void 0?console.createTask:()=>En;function On(e,t){const n=t.shift(),o=At(n);return e.reduce((r,s)=>r.then(()=>o.run(()=>s(...t))),Promise.resolve())}function yn(e,t){const n=t.shift(),o=At(n);return Promise.all(e.map(r=>o.run(()=>r(...t))))}function ye(e,t){for(const n of[...e])n(t)}class vn{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const r=t;let s;for(;this._deprecatedHooks[t];)s=this._deprecatedHooks[t],t=s.to;if(s&&!o.allowDeprecated){let i=s.message;i||(i=`${r} hook has been deprecated`+(s.to?`, please use ${s.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,r=(...s)=>(typeof o=="function"&&o(),o=void 0,r=void 0,n(...s));return o=this.hook(t,r),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const r of o)this.hook(t,r)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Ie(t),o=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of o.splice(0,o.length))r()}}removeHooks(t){const n=Ie(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(On,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(yn,t,...n)}callHookWith(t,n,...o){const r=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&ye(this._before,r);const s=t(n in this._hooks?[...this._hooks[n]]:[],o);return s instanceof Promise?s.finally(()=>{this._after&&r&&ye(this._after,r)}):(this._after&&r&&ye(this._after,r),s)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Ct(){return new vn}var ue,Tn=Object.create,Ze=Object.defineProperty,bn=Object.getOwnPropertyDescriptor,je=Object.getOwnPropertyNames,In=Object.getPrototypeOf,Sn=Object.prototype.hasOwnProperty,Rt=(e,t)=>function(){return t||(0,e[je(e)[0]])((t={exports:{}}).exports,t),t.exports},c=((e,t)=>function(){return e&&(t=(0,e[je(e)[0]])(e=0)),t})({"../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"(){}}),kn=Rt({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e,t){c(),(function(n){var o={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"Ae",Å:"A",Æ:"AE",Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"Oe",Ő:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"Ue",Ű:"U",Ý:"Y",Þ:"TH",ß:"ss",à:"a",á:"a",â:"a",ã:"a",ä:"ae",å:"a",æ:"ae",ç:"c",è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"oe",ő:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"ue",ű:"u",ý:"y",þ:"th",ÿ:"y","ẞ":"SS",ا:"a",أ:"a",إ:"i",آ:"aa",ؤ:"u",ئ:"e",ء:"a",ب:"b",ت:"t",ث:"th",ج:"j",ح:"h",خ:"kh",د:"d",ذ:"th",ر:"r",ز:"z",س:"s",ش:"sh",ص:"s",ض:"dh",ط:"t",ظ:"z",ع:"a",غ:"gh",ف:"f",ق:"q",ك:"k",ل:"l",م:"m",ن:"n",ه:"h",و:"w",ي:"y",ى:"a",ة:"h",ﻻ:"la",ﻷ:"laa",ﻹ:"lai",ﻵ:"laa",گ:"g",چ:"ch",پ:"p",ژ:"zh",ک:"k",ی:"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9",က:"k",ခ:"kh",ဂ:"g",ဃ:"ga",င:"ng",စ:"s",ဆ:"sa",ဇ:"z","စျ":"za",ည:"ny",ဋ:"t",ဌ:"ta",ဍ:"d",ဎ:"da",ဏ:"na",တ:"t",ထ:"ta",ဒ:"d",ဓ:"da",န:"n",ပ:"p",ဖ:"pa",ဗ:"b",ဘ:"ba",မ:"m",ယ:"y",ရ:"ya",လ:"l",ဝ:"w",သ:"th",ဟ:"h",ဠ:"la",အ:"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h",ဧ:"e","၏":"-e",ဣ:"i",ဤ:"-i",ဉ:"u",ဦ:"-u",ဩ:"aw","သြော":"aw",ဪ:"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"",č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z",ހ:"h",ށ:"sh",ނ:"n",ރ:"r",ބ:"b",ޅ:"lh",ކ:"k",އ:"a",ވ:"v",މ:"m",ފ:"f",ދ:"dh",ތ:"th",ލ:"l",ގ:"g",ޏ:"gn",ސ:"s",ޑ:"d",ޒ:"z",ޓ:"t",ޔ:"y",ޕ:"p",ޖ:"j",ޗ:"ch",ޘ:"tt",ޙ:"hh",ޚ:"kh",ޛ:"th",ޜ:"z",ޝ:"sh",ޞ:"s",ޟ:"d",ޠ:"t",ޡ:"z",ޢ:"a",ޣ:"gh",ޤ:"q",ޥ:"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"",ა:"a",ბ:"b",გ:"g",დ:"d",ე:"e",ვ:"v",ზ:"z",თ:"t",ი:"i",კ:"k",ლ:"l",მ:"m",ნ:"n",ო:"o",პ:"p",ჟ:"zh",რ:"r",ს:"s",ტ:"t",უ:"u",ფ:"p",ქ:"k",ღ:"gh",ყ:"q",შ:"sh",ჩ:"ch",ც:"ts",ძ:"dz",წ:"ts",ჭ:"ch",ხ:"kh",ჯ:"j",ჰ:"h",α:"a",β:"v",γ:"g",δ:"d",ε:"e",ζ:"z",η:"i",θ:"th",ι:"i",κ:"k",λ:"l",μ:"m",ν:"n",ξ:"ks",ο:"o",π:"p",ρ:"r",σ:"s",τ:"t",υ:"y",φ:"f",χ:"x",ψ:"ps",ω:"o",ά:"a",έ:"e",ί:"i",ό:"o",ύ:"y",ή:"i",ώ:"o",ς:"s",ϊ:"i",ΰ:"y",ϋ:"y",ΐ:"i",Α:"A",Β:"B",Γ:"G",Δ:"D",Ε:"E",Ζ:"Z",Η:"I",Θ:"TH",Ι:"I",Κ:"K",Λ:"L",Μ:"M",Ν:"N",Ξ:"KS",Ο:"O",Π:"P",Ρ:"R",Σ:"S",Τ:"T",Υ:"Y",Φ:"F",Χ:"X",Ψ:"PS",Ω:"O",Ά:"A",Έ:"E",Ί:"I",Ό:"O",Ύ:"Y",Ή:"I",Ώ:"O",Ϊ:"I",Ϋ:"Y",ā:"a",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",ū:"u",Ā:"A",Ē:"E",Ģ:"G",Ī:"I",Ķ:"k",Ļ:"L",Ņ:"N",Ū:"U",Ќ:"Kj",ќ:"kj",Љ:"Lj",љ:"lj",Њ:"Nj",њ:"nj",Тс:"Ts",тс:"ts",ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"E",Ł:"L",Ń:"N",Ś:"S",Ź:"Z",Ż:"Z",Є:"Ye",І:"I",Ї:"Yi",Ґ:"G",є:"ye",і:"i",ї:"yi",ґ:"g",ă:"a",Ă:"A",ș:"s",Ș:"S",ț:"t",Ț:"T",ţ:"t",Ţ:"T",а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"i",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"kh",ц:"c",ч:"ch",ш:"sh",щ:"sh",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya",А:"A",Б:"B",В:"V",Г:"G",Д:"D",Е:"E",Ё:"Yo",Ж:"Zh",З:"Z",И:"I",Й:"I",К:"K",Л:"L",М:"M",Н:"N",О:"O",П:"P",Р:"R",С:"S",Т:"T",У:"U",Ф:"F",Х:"Kh",Ц:"C",Ч:"Ch",Ш:"Sh",Щ:"Sh",Ъ:"",Ы:"Y",Ь:"",Э:"E",Ю:"Yu",Я:"Ya",ђ:"dj",ј:"j",ћ:"c",џ:"dz",Ђ:"Dj",Ј:"j",Ћ:"C",Џ:"Dz",ľ:"l",ĺ:"l",ŕ:"r",Ľ:"L",Ĺ:"L",Ŕ:"R",ş:"s",Ş:"S",ı:"i",İ:"I",ğ:"g",Ğ:"G",ả:"a",Ả:"A",ẳ:"a",Ẳ:"A",ẩ:"a",Ẩ:"A",đ:"d",Đ:"D",ẹ:"e",Ẹ:"E",ẽ:"e",Ẽ:"E",ẻ:"e",Ẻ:"E",ế:"e",Ế:"E",ề:"e",Ề:"E",ệ:"e",Ệ:"E",ễ:"e",Ễ:"E",ể:"e",Ể:"E",ỏ:"o",ọ:"o",Ọ:"o",ố:"o",Ố:"O",ồ:"o",Ồ:"O",ổ:"o",Ổ:"O",ộ:"o",Ộ:"O",ỗ:"o",Ỗ:"O",ơ:"o",Ơ:"O",ớ:"o",Ớ:"O",ờ:"o",Ờ:"O",ợ:"o",Ợ:"O",ỡ:"o",Ỡ:"O",Ở:"o",ở:"o",ị:"i",Ị:"I",ĩ:"i",Ĩ:"I",ỉ:"i",Ỉ:"i",ủ:"u",Ủ:"U",ụ:"u",Ụ:"U",ũ:"u",Ũ:"U",ư:"u",Ư:"U",ứ:"u",Ứ:"U",ừ:"u",Ừ:"U",ự:"u",Ự:"U",ữ:"u",Ữ:"U",ử:"u",Ử:"ư",ỷ:"y",Ỷ:"y",ỳ:"y",Ỳ:"Y",ỵ:"y",Ỵ:"Y",ỹ:"y",Ỹ:"Y",ạ:"a",Ạ:"A",ấ:"a",Ấ:"A",ầ:"a",Ầ:"A",ậ:"a",Ậ:"A",ẫ:"a",Ẫ:"A",ắ:"a",Ắ:"A",ằ:"a",Ằ:"A",ặ:"a",Ặ:"A",ẵ:"a",Ẵ:"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d",ƒ:"f","™":"(TM)","©":"(C)",œ:"oe",Œ:"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o",º:"o",ª:"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY",元:"CNY",円:"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN",лв:"BGN","៛":"KHR","₡":"CRC","₸":"KZT",ден:"MKD",zł:"PLN","₽":"RUB","₾":"GEL"},r=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},i={en:{},az:{ç:"c",ə:"e",ğ:"g",ı:"i",ö:"o",ş:"s",ü:"u",Ç:"C",Ə:"E",Ğ:"G",İ:"I",Ö:"O",Ş:"S",Ü:"U"},cs:{č:"c",ď:"d",ě:"e",ň:"n",ř:"r",š:"s",ť:"t",ů:"u",ž:"z",Č:"C",Ď:"D",Ě:"E",Ň:"N",Ř:"R",Š:"S",Ť:"T",Ů:"U",Ž:"Z"},fi:{ä:"a",Ä:"A",ö:"o",Ö:"O"},hu:{ä:"a",Ä:"A",ö:"o",Ö:"O",ü:"u",Ü:"U",ű:"u",Ű:"U"},lt:{ą:"a",č:"c",ę:"e",ė:"e",į:"i",š:"s",ų:"u",ū:"u",ž:"z",Ą:"A",Č:"C",Ę:"E",Ė:"E",Į:"I",Š:"S",Ų:"U",Ū:"U"},lv:{ā:"a",č:"c",ē:"e",ģ:"g",ī:"i",ķ:"k",ļ:"l",ņ:"n",š:"s",ū:"u",ž:"z",Ā:"A",Č:"C",Ē:"E",Ģ:"G",Ī:"i",Ķ:"k",Ļ:"L",Ņ:"N",Š:"S",Ū:"u",Ž:"Z"},pl:{ą:"a",ć:"c",ę:"e",ł:"l",ń:"n",ó:"o",ś:"s",ź:"z",ż:"z",Ą:"A",Ć:"C",Ę:"e",Ł:"L",Ń:"N",Ó:"O",Ś:"S",Ź:"Z",Ż:"Z"},sv:{ä:"a",Ä:"A",ö:"o",Ö:"O"},sk:{ä:"a",Ä:"A"},sr:{љ:"lj",њ:"nj",Љ:"Lj",Њ:"Nj",đ:"dj",Đ:"Dj"},tr:{Ü:"U",Ö:"O",ü:"u",ö:"o"}},a={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),u=[";","?",":","@","&","=","+","$",","].join(""),h=[".","!","~","*","'","(",")"].join(""),f=function(d,_){var y,m,S,D,w,q,Z,z,Ge,U,g,ae,C,B,V="-",I="",M="",ge=!0,L={},x="";if(typeof d!="string")return"";if(typeof _=="string"&&(V=_),Z=a.en,z=i.en,typeof _=="object")for(g in y=_.maintainCase||!1,L=_.custom&&typeof _.custom=="object"?_.custom:L,S=+_.truncate>1&&_.truncate||!1,D=_.uric||!1,w=_.uricNoSlash||!1,q=_.mark||!1,ge=_.symbols!==!1&&_.lang!==!1,V=_.separator||V,D&&(x+=l),w&&(x+=u),q&&(x+=h),Z=_.lang&&a[_.lang]&&ge?a[_.lang]:ge?a.en:{},z=_.lang&&i[_.lang]?i[_.lang]:_.lang===!1||_.lang===!0?{}:i.en,_.titleCase&&typeof _.titleCase.length=="number"&&Array.prototype.toString.call(_.titleCase)?(_.titleCase.forEach(function(A){L[A+""]=A+""}),m=!0):m=!!_.titleCase,_.custom&&typeof _.custom.length=="number"&&Array.prototype.toString.call(_.custom)&&_.custom.forEach(function(A){L[A+""]=A+""}),Object.keys(L).forEach(function(A){var le;le=A.length>1?new RegExp("\\b"+O(A)+"\\b","gi"):new RegExp(O(A),"gi"),d=d.replace(le,L[A])}),L)x+=g;for(x=O(x+=V),C=!1,B=!1,U=0,ae=(d=d.replace(/(^\s+|\s+$)/g,"")).length;U<ae;U++)g=d[U],T(g,L)?C=!1:z[g]?(g=C&&z[g].match(/[A-Za-z0-9]/)?" "+z[g]:z[g],C=!1):g in o?(U+1<ae&&r.indexOf(d[U+1])>=0?(M+=g,g=""):B===!0?(g=s[M]+o[g],M=""):g=C&&o[g].match(/[A-Za-z0-9]/)?" "+o[g]:o[g],C=!1,B=!1):g in s?(M+=g,g="",U===ae-1&&(g=s[M]),B=!0):!Z[g]||D&&l.indexOf(g)!==-1||w&&u.indexOf(g)!==-1?(B===!0?(g=s[M]+g,M="",B=!1):C&&(/[A-Za-z0-9]/.test(g)||I.substr(-1).match(/A-Za-z0-9]/))&&(g=" "+g),C=!1):(g=C||I.substr(-1).match(/[A-Za-z0-9]/)?V+Z[g]:Z[g],g+=d[U+1]!==void 0&&d[U+1].match(/[A-Za-z0-9]/)?V:"",C=!0),I+=g.replace(new RegExp("[^\\w\\s"+x+"_-]","g"),V);return m&&(I=I.replace(/(\w)(\S*)/g,function(A,le,$e){var Ee=le.toUpperCase()+($e!==null?$e:"");return Object.keys(L).indexOf(Ee.toLowerCase())<0?Ee:Ee.toLowerCase()})),I=I.replace(/\s+/g,V).replace(new RegExp("\\"+V+"+","g"),V).replace(new RegExp("(^\\"+V+"+|\\"+V+"+$)","g"),""),S&&I.length>S&&(Ge=I.charAt(S)===V,I=I.slice(0,S),Ge||(I=I.slice(0,I.lastIndexOf(V)))),y||m||(I=I.toLowerCase()),I},E=function(d){return function(_){return f(_,d)}},O=function(d){return d.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},T=function(d,_){for(var y in _)if(_[y]===d)return!0};if(t!==void 0&&t.exports)t.exports=f,t.exports.createSlug=E;else if(typeof define<"u"&&define.amd)define([],function(){return f});else try{if(n.getSlug||n.createSlug)throw"speakingurl: globals exists /(getSlug|createSlug)/";n.getSlug=f,n.createSlug=E}catch{}})(e)}}),wn=Rt({"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e,t){c(),t.exports=kn()}});function Vn(e){const t=e.__file;if(t)return(n=(function(o,r){let s=o.replace(/^[a-z]:/i,"").replace(/\\/g,"/");s.endsWith(`index${r}`)&&(s=s.replace(`/index${r}`,r));const i=s.lastIndexOf("/"),a=s.substring(i+1);{const l=a.lastIndexOf(r);return a.substring(0,l)}})(t,".vue"))&&`${n}`.replace(fn,hn);var n}function Xe(e,t){return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__=t,t}function Se(e){return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__?e.__VUE_DEVTOOLS_NEXT_APP_RECORD__:e.root?e.appContext.app.__VUE_DEVTOOLS_NEXT_APP_RECORD__:void 0}function Dt(e){var t,n;const o=(t=e.subTree)==null?void 0:t.type,r=Se(e);return!!r&&((n=r?.types)==null?void 0:n.Fragment)===o}function pe(e){var t,n,o;const r=(function(i){var a;const l=i.name||i._componentTag||i.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__||i.__name;return l==="index"&&((a=i.__file)!=null&&a.endsWith("index.vue"))?"":l})(e?.type||{});if(r)return r;if(e?.root===e)return"Root";for(const i in(n=(t=e.parent)==null?void 0:t.type)==null?void 0:n.components)if(e.parent.type.components[i]===e?.type)return Xe(e,i);for(const i in(o=e.appContext)==null?void 0:o.components)if(e.appContext.components[i]===e?.type)return Xe(e,i);return Vn(e?.type||{})||"Anonymous Component"}function ve(e,t){return t=t||`${e.id}:root`,e.instanceMap.get(t)||e.instanceMap.get(":root")}function Pn(e){return ue||(ue=document.createRange()),ue.selectNode(e),ue.getBoundingClientRect()}function An(e,t){return(!e.top||t.top<e.top)&&(e.top=t.top),(!e.bottom||t.bottom>e.bottom)&&(e.bottom=t.bottom),(!e.left||t.left<e.left)&&(e.left=t.left),(!e.right||t.right>e.right)&&(e.right=t.right),e}c(),c(),c(),c(),c(),c(),c(),c();var Je={top:0,left:0,right:0,bottom:0,width:0,height:0};function H(e){const t=e.subTree.el;return typeof window>"u"?Je:Dt(e)?(function(n){const o=(function(){const r={top:0,bottom:0,left:0,right:0,get width(){return r.right-r.left},get height(){return r.bottom-r.top}};return r})();if(!n.children)return o;for(let r=0,s=n.children.length;r<s;r++){const i=n.children[r];let a;if(i.component)a=H(i.component);else if(i.el){const l=i.el;l.nodeType===1||l.getBoundingClientRect?a=l.getBoundingClientRect():l.nodeType===3&&l.data.trim()&&(a=Pn(l))}a&&An(o,a)}return o})(e.subTree):t?.nodeType===1?t?.getBoundingClientRect():e.subTree.component?H(e.subTree.component):Je}function ke(e){return Dt(e)?(function(t){if(!t.children)return[];const n=[];return t.children.forEach(o=>{o.component?n.push(...ke(o.component)):o?.el&&n.push(o.el)}),n})(e.subTree):e.subTree?[e.subTree.el]:[]}c();var Ut="__vue-devtools-component-inspector__",Lt="__vue-devtools-component-inspector__card__",Nt="__vue-devtools-component-inspector__name__",jt="__vue-devtools-component-inspector__indicator__",Mt={display:"block",zIndex:2147483640,position:"fixed",backgroundColor:"#42b88325",border:"1px solid #42b88350",borderRadius:"5px",transition:"all 0.1s ease-in",pointerEvents:"none"},Cn={fontFamily:"Arial, Helvetica, sans-serif",padding:"5px 8px",borderRadius:"4px",textAlign:"left",position:"absolute",left:0,color:"#e9e9e9",fontSize:"14px",fontWeight:600,lineHeight:"24px",backgroundColor:"#42b883",boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"},Rn={display:"inline-block",fontWeight:400,fontStyle:"normal",fontSize:"12px",opacity:.7};function Y(){return document.getElementById(Ut)}function Me(e){return{left:Math.round(100*e.left)/100+"px",top:Math.round(100*e.top)/100+"px",width:Math.round(100*e.width)/100+"px",height:Math.round(100*e.height)/100+"px"}}function xe(e){var t;const n=document.createElement("div");n.id=(t=e.elementId)!=null?t:Ut,Object.assign(n.style,{...Mt,...Me(e.bounds),...e.style});const o=document.createElement("span");o.id=Lt,Object.assign(o.style,{...Cn,top:e.bounds.top<35?0:"-35px"});const r=document.createElement("span");r.id=Nt,r.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`;const s=document.createElement("i");return s.id=jt,s.innerHTML=`${Math.round(100*e.bounds.width)/100} x ${Math.round(100*e.bounds.height)/100}`,Object.assign(s.style,Rn),o.appendChild(r),o.appendChild(s),n.appendChild(o),document.body.appendChild(n),n}function Ke(e){const t=Y(),n=document.getElementById(Lt),o=document.getElementById(Nt),r=document.getElementById(jt);t&&(Object.assign(t.style,{...Mt,...Me(e.bounds)}),Object.assign(n.style,{top:e.bounds.top<35?0:"-35px"}),o.innerHTML=`&lt;${e.name}&gt;&nbsp;&nbsp;`,r.innerHTML=`${Math.round(100*e.bounds.width)/100} x ${Math.round(100*e.bounds.height)/100}`)}function xt(){const e=Y();e&&(e.style.display="none")}var we=null;function Ve(e){const t=e.target;if(t){const n=t.__vueParentComponent;if(n&&(we=n,n.vnode.el)){const o=H(n),r=pe(n);Y()?Ke({bounds:o,name:r}):xe({bounds:o,name:r})}}}var Qe,fe=null;function Dn(){return window.addEventListener("mouseover",Ve),new Promise(e=>{function t(n){n.preventDefault(),n.stopPropagation(),(function(o,r){o.preventDefault(),o.stopPropagation(),we&&r(`${(l=(a=(i=(s=we)==null?void 0:s.appContext)==null?void 0:i.app)==null?void 0:a.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__)!=null?l:0}:${s===s?.root?"root":s.uid}`);var s,i,a,l})(n,o=>{window.removeEventListener("click",t,!0),fe=null,window.removeEventListener("mouseover",Ve);const r=Y();r&&(r.style.display="none"),e(JSON.stringify({id:o}))})}fe=t,window.addEventListener("click",t,!0)})}function Un(){return new Promise(e=>{function t(){(function(){const n=p.__VUE_INSPECTOR__,o=n.openInEditor;n.openInEditor=async(...r)=>{n.disable(),o(...r)}})(),e(p.__VUE_INSPECTOR__)}p.__VUE_INSPECTOR__?t():(function(n){let o=0;const r=setInterval(()=>{p.__VUE_INSPECTOR__&&(clearInterval(r),o+=30,n()),o>=5e3&&clearInterval(r)},30)})(()=>{t()})})}function Kt(e){return(function(t){return!(!t||!t.__v_isReadonly)})(e)?Kt(e.__v_raw):!(!e||!e.__v_isReactive)}function Te(e){return!(!e||e.__v_isRef!==!0)}function Q(e){const t=e&&e.__v_raw;return t?Q(t):e}c(),(Qe=p).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__!=null||(Qe.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__=!0),c(),c();var Ln=class{constructor(){this.refEditor=new Nn}set(e,t,n,o){const r=Array.isArray(t)?t:t.split(".");for(;r.length>1;){const a=r.shift();e=e instanceof Map?e.get(a):e instanceof Set?Array.from(e.values())[a]:e[a],this.refEditor.isRef(e)&&(e=this.refEditor.get(e))}const s=r[0],i=this.refEditor.get(e)[s];o?o(e,s,n):this.refEditor.isRef(i)?this.refEditor.set(i,n):e[s]=n}get(e,t){const n=Array.isArray(t)?t:t.split(".");for(let o=0;o<n.length;o++)if(e=e instanceof Map?e.get(n[o]):e[n[o]],this.refEditor.isRef(e)&&(e=this.refEditor.get(e)),!e)return;return e}has(e,t,n=!1){if(e===void 0)return!1;const o=Array.isArray(t)?t.slice():t.split("."),r=n?2:1;for(;e&&o.length>r;)e=e[o.shift()],this.refEditor.isRef(e)&&(e=this.refEditor.get(e));return e!=null&&Object.prototype.hasOwnProperty.call(e,o[0])}createDefaultSetCallback(e){return(t,n,o)=>{if((e.remove||e.newKey)&&(Array.isArray(t)?t.splice(n,1):Q(t)instanceof Map?t.delete(n):Q(t)instanceof Set?t.delete(Array.from(t.values())[n]):Reflect.deleteProperty(t,n)),!e.remove){const r=t[e.newKey||n];this.refEditor.isRef(r)?this.refEditor.set(r,o):Q(t)instanceof Map?t.set(e.newKey||n,o):Q(t)instanceof Set?t.add(o):t[e.newKey||n]=o}}}},Nn=class{set(e,t){if(Te(e))e.value=t;else{if(e instanceof Set&&Array.isArray(t))return e.clear(),void t.forEach(r=>e.add(r));const n=Object.keys(t);if(e instanceof Map){const r=new Set(e.keys());return n.forEach(s=>{e.set(s,Reflect.get(t,s)),r.delete(s)}),void r.forEach(s=>e.delete(s))}const o=new Set(Object.keys(e));n.forEach(r=>{Reflect.set(e,r,Reflect.get(t,r)),o.delete(r)}),o.forEach(r=>Reflect.deleteProperty(e,r))}}get(e){return Te(e)?e.value:e}isRef(e){return Te(e)||Kt(e)}};c(),c(),c();var et;function jn(){if(typeof window>"u"||!Pt||typeof localStorage>"u"||localStorage===null)return{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""};const e=localStorage.getItem!==void 0?localStorage.getItem("__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__"):null;return e?JSON.parse(e):{recordingState:!1,mouseEventEnabled:!1,keyboardEventEnabled:!1,componentEventEnabled:!1,performanceEventEnabled:!1,selected:""}}c(),c(),c(),(et=p).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS!=null||(et.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS=[]);var tt,Mn=new Proxy(p.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS,{get:(e,t,n)=>Reflect.get(e,t,n)});(tt=p).__VUE_DEVTOOLS_KIT_INSPECTOR__!=null||(tt.__VUE_DEVTOOLS_KIT_INSPECTOR__=[]);var nt,ot,rt,st,it,He=new Proxy(p.__VUE_DEVTOOLS_KIT_INSPECTOR__,{get:(e,t,n)=>Reflect.get(e,t,n)}),Ht=F(()=>{j.hooks.callHook("sendInspectorToClient",zt())});function zt(){return He.filter(e=>e.descriptor.app===k.value.app).filter(e=>e.descriptor.id!=="components").map(e=>{var t;const n=e.descriptor,o=e.options;return{id:o.id,label:o.label,logo:n.logo,icon:`custom-ic-baseline-${(t=o?.icon)==null?void 0:t.replace(/_/g,"-")}`,packageName:n.packageName,homepage:n.homepage,pluginId:n.id}})}function de(e,t){return He.find(n=>n.options.id===e&&(!t||n.descriptor.app===t))}(nt=p).__VUE_DEVTOOLS_KIT_APP_RECORDS__!=null||(nt.__VUE_DEVTOOLS_KIT_APP_RECORDS__=[]),(ot=p).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__!=null||(ot.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__={}),(rt=p).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__!=null||(rt.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=""),(st=p).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__!=null||(st.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__=[]),(it=p).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__!=null||(it.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__=[]);var at,K="__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";(at=p)[K]!=null||(at[K]={connected:!1,clientConnected:!1,vitePluginDetected:!0,appRecords:[],activeAppRecordId:"",tabs:[],commands:[],highPerfModeEnabled:!0,devtoolsClientDetected:{},perfUniqueGroupId:0,timelineLayersState:jn()});var xn=F(e=>{j.hooks.callHook("devtoolsStateUpdated",{state:e})});F((e,t)=>{j.hooks.callHook("devtoolsConnectedUpdated",{state:e,oldState:t})});var he=new Proxy(p.__VUE_DEVTOOLS_KIT_APP_RECORDS__,{get:(e,t,n)=>t==="value"?p.__VUE_DEVTOOLS_KIT_APP_RECORDS__:p.__VUE_DEVTOOLS_KIT_APP_RECORDS__[t]}),k=new Proxy(p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__,{get:(e,t,n)=>t==="value"?p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__:t==="id"?p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__:p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__[t]});function oe(){xn({...p[K],appRecords:he.value,activeAppRecordId:k.id,tabs:p.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__,commands:p.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__})}var b=new Proxy(p[K],{get:(e,t)=>t==="appRecords"?he:t==="activeAppRecordId"?k.id:t==="tabs"?p.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__:t==="commands"?p.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__:p[K][t],deleteProperty:(e,t)=>(delete e[t],!0),set:(e,t,n)=>(p[K],e[t]=n,p[K][t]=n,!0)});function Kn(e){return new Promise(t=>{b.connected&&(e(),t()),j.hooks.hook("devtoolsConnectedUpdated",({state:n})=>{n.connected&&(e(),t())})})}var lt,Pe=e=>{var t;if(e)return e.startsWith("baseline-")?`custom-ic-${e}`:e.startsWith("i-")||(t=e).startsWith("/")||mn.test(t)?e:`custom-ic-baseline-${e}`};function Hn(e){const t=p.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__;t.some(n=>n.name===e.name)||(t.push({...e,icon:Pe(e.icon)}),oe())}function zn(e){const t=p.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__;t.some(n=>n.id===e.id)||(t.push({...e,icon:Pe(e.icon),children:e.children?e.children.map(n=>({...n,icon:Pe(n.icon)})):void 0}),oe())}function Bn(e){const t=p.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__,n=t.findIndex(o=>o.id===e);n!==-1&&(t.splice(n,1),oe())}function Gn(e={}){var t,n,o;const{file:r,host:s,baseUrl:i=window.location.origin,line:a=0,column:l=0}=e;if(r){if(s==="chrome-extension"){const u=r.replace(/\\/g,"\\\\"),h=(n=(t=window.VUE_DEVTOOLS_CONFIG)==null?void 0:t.openInEditorHost)!=null?n:"/";fetch(`${h}__open-in-editor?file=${encodeURI(r)}`).then(f=>{if(!f.ok){const E=`Opening component ${u} failed`;console.log(`%c${E}`,"color:red")}})}else if(b.vitePluginDetected){const u=(o=p.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__)!=null?o:i;p.__VUE_INSPECTOR__.openInEditor(u,r,a,l)}}}c(),c(),c(),c(),c(),(lt=p).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__!=null||(lt.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__=[]);var ct,ut,ze=new Proxy(p.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__,{get:(e,t,n)=>Reflect.get(e,t,n)});function Ae(e){const t={};return Object.keys(e).forEach(n=>{t[n]=e[n].defaultValue}),t}function Be(e){return`__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`}function $n(e){var t,n,o;const r=(n=(t=ze.find(s=>{var i;return s[0].id===e&&!!((i=s[0])!=null&&i.settings)}))==null?void 0:t[0])!=null?n:null;return(o=r?.settings)!=null?o:null}function Bt(e,t){var n,o,r;const s=Be(e);if(s){const i=localStorage.getItem(s);if(i)return JSON.parse(i)}if(e){const i=(o=(n=ze.find(a=>a[0].id===e))==null?void 0:n[0])!=null?o:null;return Ae((r=i?.settings)!=null?r:{})}return Ae(t)}c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c();var P=(ut=(ct=p).__VUE_DEVTOOLS_HOOK)!=null?ut:ct.__VUE_DEVTOOLS_HOOK=Ct(),Fn={vueAppInit(e){P.hook("app:init",e)},vueAppUnmount(e){P.hook("app:unmount",e)},vueAppConnected(e){P.hook("app:connected",e)},componentAdded:e=>P.hook("component:added",e),componentEmit:e=>P.hook("component:emit",e),componentUpdated:e=>P.hook("component:updated",e),componentRemoved:e=>P.hook("component:removed",e),setupDevtoolsPlugin(e){P.hook("devtools-plugin:setup",e)},perfStart:e=>P.hook("perf:start",e),perfEnd:e=>P.hook("perf:end",e)},Gt={on:Fn,setupDevToolsPlugin:(e,t)=>P.callHook("devtools-plugin:setup",e,t)},Wn=class{constructor({plugin:e,ctx:t}){this.hooks=t.hooks,this.plugin=e}get on(){return{visitComponentTree:e=>{this.hooks.hook("visitComponentTree",e)},inspectComponent:e=>{this.hooks.hook("inspectComponent",e)},editComponentState:e=>{this.hooks.hook("editComponentState",e)},getInspectorTree:e=>{this.hooks.hook("getInspectorTree",e)},getInspectorState:e=>{this.hooks.hook("getInspectorState",e)},editInspectorState:e=>{this.hooks.hook("editInspectorState",e)},inspectTimelineEvent:e=>{this.hooks.hook("inspectTimelineEvent",e)},timelineCleared:e=>{this.hooks.hook("timelineCleared",e)},setPluginSettings:e=>{this.hooks.hook("setPluginSettings",e)}}}notifyComponentUpdate(e){var t;if(b.highPerfModeEnabled)return;const n=zt().find(o=>o.packageName===this.plugin.descriptor.packageName);if(n?.id){if(e){const o=[e.appContext.app,e.uid,(t=e.parent)==null?void 0:t.uid,e];P.callHook("component:updated",...o)}else P.callHook("component:updated");this.hooks.callHook("sendInspectorState",{inspectorId:n.id,plugin:this.plugin})}}addInspector(e){this.hooks.callHook("addInspector",{inspector:e,plugin:this.plugin}),this.plugin.descriptor.settings&&(function(t,n){const o=Be(t);localStorage.getItem(o)||localStorage.setItem(o,JSON.stringify(Ae(n)))})(e.id,this.plugin.descriptor.settings)}sendInspectorTree(e){b.highPerfModeEnabled||this.hooks.callHook("sendInspectorTree",{inspectorId:e,plugin:this.plugin})}sendInspectorState(e){b.highPerfModeEnabled||this.hooks.callHook("sendInspectorState",{inspectorId:e,plugin:this.plugin})}selectInspectorNode(e,t){this.hooks.callHook("customInspectorSelectNode",{inspectorId:e,nodeId:t,plugin:this.plugin})}visitComponentTree(e){return this.hooks.callHook("visitComponentTree",e)}now(){return b.highPerfModeEnabled?0:Date.now()}addTimelineLayer(e){this.hooks.callHook("timelineLayerAdded",{options:e,plugin:this.plugin})}addTimelineEvent(e){b.highPerfModeEnabled||this.hooks.callHook("timelineEventAdded",{options:e,plugin:this.plugin})}getSettings(e){return Bt(e??this.plugin.descriptor.id,this.plugin.descriptor.settings)}getComponentInstances(e){return this.hooks.callHook("getComponentInstances",{app:e})}getComponentBounds(e){return this.hooks.callHook("getComponentBounds",{instance:e})}getComponentName(e){return this.hooks.callHook("getComponentName",{instance:e})}highlightElement(e){const t=e.__VUE_DEVTOOLS_NEXT_UID__;return this.hooks.callHook("componentHighlight",{uid:t})}unhighlightElement(){return this.hooks.callHook("componentUnhighlight")}};c(),c(),c(),c();var Yn="__vue_devtool_undefined__",qn="__vue_devtool_infinity__",Zn="__vue_devtool_negative_infinity__",Xn="__vue_devtool_nan__";c(),c();var dt,Jn={[Yn]:"undefined",[Xn]:"NaN",[qn]:"Infinity",[Zn]:"-Infinity"};function $t(e,t){return Gt.setupDevToolsPlugin(e,t)}function Ft(e,t){p.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e)||b.highPerfModeEnabled&&!t?.inspectingComponent||(p.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e),ze.forEach(n=>{(function(o,r){const[s,i]=o;if(s.app!==r)return;const a=new Wn({plugin:{setupFn:i,descriptor:s},ctx:j});s.packageName==="vuex"&&a.on.editInspectorState(l=>{a.sendInspectorState(l.inspectorId)}),i(a)})(n,e)}))}Object.entries(Jn).reduce((e,[t,n])=>(e[n]=t,e),{}),c(),c(),c(),c(),c(),(dt=p).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__!=null||(dt.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__=new Set),c(),c();var _t,pt,ft,ee="__VUE_DEVTOOLS_ROUTER__",G="__VUE_DEVTOOLS_ROUTER_INFO__";function Ce(e){return e.map(t=>{let{path:n,name:o,children:r,meta:s}=t;return r?.length&&(r=Ce(r)),{path:n,name:o,children:r,meta:s}})}function Qn(e,t){function n(){var o;const r=(o=e.app)==null?void 0:o.config.globalProperties.$router,s=(function(l){if(l){const{fullPath:u,hash:h,href:f,path:E,name:O,matched:T,params:d,query:_}=l;return{fullPath:u,hash:h,href:f,path:E,name:O,params:d,query:_,matched:Ce(T)}}return l})(r?.currentRoute.value),i=Ce((function(l){const u=new Map;return(l?.getRoutes()||[]).filter(h=>!u.has(h.path)&&u.set(h.path,1))})(r)),a=console.warn;console.warn=()=>{},p[G]={currentRoute:s?qe(s):{},routes:qe(i)},p[ee]=r,console.warn=a}n(),Gt.on.componentUpdated(F(()=>{var o;((o=t.value)==null?void 0:o.app)===e.app&&(n(),b.highPerfModeEnabled||j.hooks.callHook("routerInfoUpdated",{state:p[G]}))},200))}(_t=p)[G]!=null||(_t[G]={currentRoute:null,routes:[]}),(pt=p)[ee]!=null||(pt[ee]={}),new Proxy(p[G],{get:(e,t)=>p[G][t]}),new Proxy(p[ee],{get(e,t){if(t==="value")return p[ee]}}),c(),(ft=p).__VUE_DEVTOOLS_ENV__!=null||(ft.__VUE_DEVTOOLS_ENV__={vitePluginDetected:!1});var ht,J,mt=(function(){const e=Ct();e.hook("addInspector",({inspector:o,plugin:r})=>{(function(s,i){var a,l;He.push({options:s,descriptor:i,treeFilterPlaceholder:(a=s.treeFilterPlaceholder)!=null?a:"Search tree...",stateFilterPlaceholder:(l=s.stateFilterPlaceholder)!=null?l:"Search state...",treeFilter:"",selectedNodeId:"",appRecord:Se(i.app)}),Ht()})(o,r.descriptor)});const t=F(async({inspectorId:o,plugin:r})=>{var s;if(!o||!((s=r?.descriptor)!=null&&s.app)||b.highPerfModeEnabled)return;const i=de(o,r.descriptor.app),a={app:r.descriptor.app,inspectorId:o,filter:i?.treeFilter||"",rootNodes:[]};await new Promise(l=>{e.callHookWith(async u=>{await Promise.all(u.map(h=>h(a))),l()},"getInspectorTree")}),e.callHookWith(async l=>{await Promise.all(l.map(u=>u({inspectorId:o,rootNodes:a.rootNodes})))},"sendInspectorTreeToClient")},120);e.hook("sendInspectorTree",t);const n=F(async({inspectorId:o,plugin:r})=>{var s;if(!o||!((s=r?.descriptor)!=null&&s.app)||b.highPerfModeEnabled)return;const i=de(o,r.descriptor.app),a={app:r.descriptor.app,inspectorId:o,nodeId:i?.selectedNodeId||"",state:null},l={currentTab:`custom-inspector:${o}`};a.nodeId&&await new Promise(u=>{e.callHookWith(async h=>{await Promise.all(h.map(f=>f(a,l))),u()},"getInspectorState")}),e.callHookWith(async u=>{await Promise.all(u.map(h=>h({inspectorId:o,nodeId:a.nodeId,state:a.state})))},"sendInspectorStateToClient")},120);return e.hook("sendInspectorState",n),e.hook("customInspectorSelectNode",({inspectorId:o,nodeId:r,plugin:s})=>{const i=de(o,s.descriptor.app);i&&(i.selectedNodeId=r)}),e.hook("timelineLayerAdded",({options:o,plugin:r})=>{(function(s,i){b.timelineLayersState[i.id]=!1,Mn.push({...s,descriptorId:i.id,appRecord:Se(i.app)})})(o,r.descriptor)}),e.hook("timelineEventAdded",({options:o,plugin:r})=>{var s;b.highPerfModeEnabled||!((s=b.timelineLayersState)!=null&&s[r.descriptor.id])&&!["performance","component-event","keyboard","mouse"].includes(o.layerId)||e.callHookWith(async i=>{await Promise.all(i.map(a=>a(o)))},"sendTimelineEventToClient")}),e.hook("getComponentInstances",async({app:o})=>{const r=o.__VUE_DEVTOOLS_NEXT_APP_RECORD__;if(!r)return null;const s=r.id.toString();return[...r.instanceMap].filter(([i])=>i.split(":")[0]===s).map(([,i])=>i)}),e.hook("getComponentBounds",async({instance:o})=>H(o)),e.hook("getComponentName",({instance:o})=>pe(o)),e.hook("componentHighlight",({uid:o})=>{const r=k.value.instanceMap.get(o);r&&(function(s){const i=H(s);if(!i.width&&!i.height)return;const a=pe(s);Y()?Ke({bounds:i,name:a}):xe({bounds:i,name:a})})(r)}),e.hook("componentUnhighlight",()=>{xt()}),e})();(ht=p).__VUE_DEVTOOLS_KIT_CONTEXT__!=null||(ht.__VUE_DEVTOOLS_KIT_CONTEXT__={hooks:mt,get state(){return{...b,activeAppRecordId:k.id,activeAppRecord:k.value,appRecords:he.value}},api:(J=mt,{async getInspectorTree(e){const t={...e,app:k.value.app,rootNodes:[]};return await new Promise(n=>{J.callHookWith(async o=>{await Promise.all(o.map(r=>r(t))),n()},"getInspectorTree")}),t.rootNodes},async getInspectorState(e){const t={...e,app:k.value.app,state:null},n={currentTab:`custom-inspector:${e.inspectorId}`};return await new Promise(o=>{J.callHookWith(async r=>{await Promise.all(r.map(s=>s(t,n))),o()},"getInspectorState")}),t.state},editInspectorState(e){const t=new Ln,n={...e,app:k.value.app,set:(o,r=e.path,s=e.state.value,i)=>{t.set(o,r,s,i||t.createDefaultSetCallback(e.state))}};J.callHookWith(o=>{o.forEach(r=>r(n))},"editInspectorState")},sendInspectorState(e){const t=de(e);J.callHook("sendInspectorState",{inspectorId:e,plugin:{descriptor:t.descriptor,setupFn:()=>({})}})},inspectComponentInspector:()=>Dn(),cancelInspectComponentInspector:()=>(xt(),window.removeEventListener("mouseover",Ve),window.removeEventListener("click",fe,!0),void(fe=null)),getComponentRenderCode(e){const t=ve(k.value,e);if(t)return typeof t?.type!="function"?t.render.toString():t.type.toString()},scrollToComponent:e=>(function(t){const n=ve(k.value,t.id);if(n){const[o]=ke(n);if(typeof o.scrollIntoView=="function")o.scrollIntoView({behavior:"smooth"});else{const r=H(n),s=document.createElement("div"),i={...Me(r),position:"absolute"};Object.assign(s.style,i),document.body.appendChild(s),s.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{document.body.removeChild(s)},2e3)}setTimeout(()=>{const r=H(n);if(r.width||r.height){const s=pe(n),i=Y();i?Ke({...t,name:s,bounds:r}):xe({...t,name:s,bounds:r}),setTimeout(()=>{i&&(i.style.display="none")},1500)}},1200)}})({id:e}),openInEditor:Gn,getVueInspector:Un,toggleApp(e,t){const n=he.value.find(r=>r.id===e);var o;n&&((function(r){p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__=r,oe()})(e),o=n,p.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__=o,oe(),Qn(n,k),Ht(),Ft(n.app,t))},inspectDOM(e){const t=ve(k.value,e);if(t){const[n]=ke(t);n&&(p.__VUE_DEVTOOLS_INSPECT_DOM_TARGET__=n)}},updatePluginSettings(e,t,n){(function(o,r,s){const i=Be(o),a=localStorage.getItem(i),l=JSON.parse(a||"{}"),u={...l,[r]:s};localStorage.setItem(i,JSON.stringify(u)),j.hooks.callHookWith(h=>{h.forEach(f=>f({pluginId:o,key:r,oldValue:l[r],newValue:s,settings:u}))},"setPluginSettings")})(e,t,n)},getPluginSettings:e=>({options:$n(e),values:Bt(e)})})});var gt,Et,j=p.__VUE_DEVTOOLS_KIT_CONTEXT__;function eo(e){return new Promise(t=>{if(b.connected&&b.clientConnected)return e(),void t();j.hooks.hook("devtoolsConnectedUpdated",({state:n})=>{n.connected&&n.clientConnected&&(e(),t())})})}c(),((e,t,n)=>{n=e!=null?Tn(In(e)):{},((o,r,s,i)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of je(r))Sn.call(o,a)||a===s||Ze(o,a,{get:()=>r[a],enumerable:!(i=bn(r,a))||i.enumerable})})(Ze(n,"default",{value:e,enumerable:!0}),e)})(wn()),(gt=p).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__!=null||(gt.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__={id:0,appIds:new Set}),c(),c(),c(),c(),c(),(Et=p).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__!=null||(Et.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__=function(e){b.devtoolsClientDetected={...b.devtoolsClientDetected,...e};const t=Object.values(b.devtoolsClientDetected).some(Boolean);var n;n=!t,b.highPerfModeEnabled=n??!b.highPerfModeEnabled,!n&&k.value&&Ft(k.value.app)}),c(),c(),c(),c(),c(),c(),c();var to=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Wt=class{constructor(e){this.generateIdentifier=e,this.kv=new to}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},no=class extends Wt{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function oo(e,t){const n=(function(r){if("values"in Object)return Object.values(r);const s=[];for(const i in r)r.hasOwnProperty(i)&&s.push(r[i]);return s})(e);if("find"in n)return n.find(t);const o=n;for(let r=0;r<o.length;r++){const s=o[r];if(t(s))return s}}function W(e,t){Object.entries(e).forEach(([n,o])=>t(o,n))}function _e(e,t){return e.indexOf(t)!==-1}function Ot(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(t(o))return o}}c(),c();var ro=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return oo(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}};c(),c();var Yt=e=>e===void 0,re=e=>typeof e=="object"&&e!==null&&e!==Object.prototype&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),Re=e=>re(e)&&Object.keys(e).length===0,N=e=>Array.isArray(e),se=e=>e instanceof Map,ie=e=>e instanceof Set,qt=e=>(t=>Object.prototype.toString.call(t).slice(8,-1))(e)==="Symbol",yt=e=>typeof e=="number"&&isNaN(e),so=e=>(t=>typeof t=="boolean")(e)||(t=>t===null)(e)||Yt(e)||(t=>typeof t=="number"&&!isNaN(t))(e)||(t=>typeof t=="string")(e)||qt(e);c();var Zt=e=>e.replace(/\./g,"\\."),be=e=>e.map(String).map(Zt).join("."),ne=e=>{const t=[];let n="";for(let r=0;r<e.length;r++){let s=e.charAt(r);if(s==="\\"&&e.charAt(r+1)==="."){n+=".",r++;continue}s==="."?(t.push(n),n=""):n+=s}const o=n;return t.push(o),t};function R(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}c();var Xt=[R(Yt,"undefined",()=>null,()=>{}),R(e=>typeof e=="bigint","bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),R(e=>e instanceof Date&&!isNaN(e.valueOf()),"Date",e=>e.toISOString(),e=>new Date(e)),R(e=>e instanceof Error,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(o=>{n[o]=e[o]}),n}),R(e=>e instanceof RegExp,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),R(ie,"set",e=>[...e.values()],e=>new Set(e)),R(se,"map",e=>[...e.entries()],e=>new Map(e)),R(e=>{return yt(e)||(t=e)===1/0||t===-1/0;var t},"number",e=>yt(e)?"NaN":e>0?"Infinity":"-Infinity",Number),R(e=>e===0&&1/e==-1/0,"number",()=>"-0",Number),R(e=>e instanceof URL,"URL",e=>e.toString(),e=>new URL(e))];function me(e,t,n,o){return{isApplicable:e,annotation:t,transform:n,untransform:o}}var Jt=me((e,t)=>qt(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const o=n.symbolRegistry.getValue(t[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),io=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),Qt=me(e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=io[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function en(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var tn=me(en,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const o={};return n.forEach(r=>{o[r]=e[r]}),o},(e,t,n)=>{const o=n.classRegistry.getValue(t[1]);if(!o)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(o.prototype),e)}),nn=me((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const o=n.customTransformerRegistry.findByName(t[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(e)}),ao=[tn,Jt,nn,Qt],vt=(e,t)=>{const n=Ot(ao,r=>r.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const o=Ot(Xt,r=>r.isApplicable(e,t));return o?{value:o.transform(e,t),type:o.annotation}:void 0},on={};Xt.forEach(e=>{on[e.annotation]=e});c();var $=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function rn(e){if(_e(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(_e(e,"prototype"))throw new Error("prototype is not allowed as a property");if(_e(e,"constructor"))throw new Error("constructor is not allowed as a property")}var De=(e,t,n)=>{if(rn(t),t.length===0)return n(e);let o=e;for(let s=0;s<t.length-1;s++){const i=t[s];if(N(o))o=o[+i];else if(re(o))o=o[i];else if(ie(o))o=$(o,+i);else if(se(o)){if(s===t.length-2)break;const a=+i,l=+t[++s]==0?"key":"value",u=$(o,a);switch(l){case"key":o=u;break;case"value":o=o.get(u)}}}const r=t[t.length-1];if(N(o)?o[+r]=n(o[+r]):re(o)&&(o[r]=n(o[r])),ie(o)){const s=$(o,+r),i=n(s);s!==i&&(o.delete(s),o.add(i))}if(se(o)){const s=+t[t.length-2],i=$(o,s);switch(+r==0?"key":"value"){case"key":{const a=n(i);o.set(a,o.get(i)),a!==i&&o.delete(i);break}case"value":o.set(i,n(o.get(i)))}}return e};function Ue(e,t,n=[]){if(!e)return;if(!N(e))return void W(e,(s,i)=>Ue(s,t,[...n,...ne(i)]));const[o,r]=e;r&&W(r,(s,i)=>{Ue(s,t,[...n,...ne(i)])}),t(o,n)}function lo(e,t,n){return Ue(t,(o,r)=>{e=De(e,r,s=>((i,a,l)=>{if(!N(a)){const u=on[a];if(!u)throw new Error("Unknown transformation: "+a);return u.untransform(i,l)}switch(a[0]){case"symbol":return Jt.untransform(i,a,l);case"class":return tn.untransform(i,a,l);case"custom":return nn.untransform(i,a,l);case"typed-array":return Qt.untransform(i,a,l);default:throw new Error("Unknown transformation: "+a)}})(s,o,n))}),e}function co(e,t){function n(o,r){const s=((i,a)=>{rn(a);for(let l=0;l<a.length;l++){const u=a[l];if(ie(i))i=$(i,+u);else if(se(i)){const h=+u,f=+a[++l]==0?"key":"value",E=$(i,h);switch(f){case"key":i=E;break;case"value":i=i.get(E)}}else i=i[u]}return i})(e,ne(r));o.map(ne).forEach(i=>{e=De(e,i,()=>s)})}if(N(t)){const[o,r]=t;o.forEach(s=>{e=De(e,ne(s),()=>e)}),r&&W(r,n)}else W(t,n);return e}var sn=(e,t,n,o,r=[],s=[],i=new Map)=>{var a;const l=so(e);if(!l){(function(d,_,y){const m=y.get(d);m?m.push(_):y.set(d,[_])})(e,r,t);const T=i.get(e);if(T)return o?{transformedValue:null}:T}if(!((T,d)=>re(T)||N(T)||se(T)||ie(T)||en(T,d))(e,n)){const T=vt(e,n),d=T?{transformedValue:T.value,annotations:[T.type]}:{transformedValue:e};return l||i.set(e,d),d}if(_e(s,e))return{transformedValue:null};const u=vt(e,n),h=(a=u?.value)!=null?a:e,f=N(h)?[]:{},E={};W(h,(T,d)=>{if(d==="__proto__"||d==="constructor"||d==="prototype")throw new Error(`Detected property ${d}. This is a prototype pollution risk, please remove it from your object.`);const _=sn(T,t,n,o,[...r,d],[...s,e],i);f[d]=_.transformedValue,N(_.annotations)?E[d]=_.annotations:re(_.annotations)&&W(_.annotations,(y,m)=>{E[Zt(d)+"."+m]=y})});const O=Re(E)?{transformedValue:f,annotations:u?[u.type]:void 0}:{transformedValue:f,annotations:u?[u.type,E]:E};return l||i.set(e,O),O};function an(e){return Object.prototype.toString.call(e).slice(8,-1)}function Tt(e){return an(e)==="Array"}function Le(e,t={}){return Tt(e)?e.map(n=>Le(n,t)):(function(n){if(an(n)!=="Object")return!1;const o=Object.getPrototypeOf(n);return!!o&&o.constructor===Object&&o===Object.prototype})(e)?[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)].reduce((n,o)=>(Tt(t.props)&&!t.props.includes(o)||(function(r,s,i,a,l){const u={}.propertyIsEnumerable.call(a,s)?"enumerable":"nonenumerable";u==="enumerable"&&(r[s]=i),l&&u==="nonenumerable"&&Object.defineProperty(r,s,{value:i,enumerable:!1,writable:!0,configurable:!0})})(n,o,Le(e[o],t),e,t.nonenumerable),n),{}):e}c(),c();var bt,It,St,kt,wt,Vt,v=class{constructor({dedupe:e=!1}={}){this.classRegistry=new no,this.symbolRegistry=new Wt(t=>{var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new ro,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=sn(e,t,this,this.dedupe),o={json:n.transformedValue};n.annotations&&(o.meta={...o.meta,values:n.annotations});const r=(function(s,i){const a={};let l;return s.forEach(u=>{if(u.length<=1)return;i||(u=u.map(E=>E.map(String)).sort((E,O)=>E.length-O.length));const[h,...f]=u;h.length===0?l=f.map(be):a[be(h)]=f.map(be)}),l?Re(a)?[l]:[l,a]:Re(a)?void 0:a})(t,this.dedupe);return r&&(o.meta={...o.meta,referentialEqualities:r}),o}deserialize(e){const{json:t,meta:n}=e;let o=Le(t);return n?.values&&(o=lo(o,n.values,this)),n?.referentialEqualities&&(o=co(o,n.referentialEqualities)),o}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};v.defaultInstance=new v,v.serialize=v.defaultInstance.serialize.bind(v.defaultInstance),v.deserialize=v.defaultInstance.deserialize.bind(v.defaultInstance),v.stringify=v.defaultInstance.stringify.bind(v.defaultInstance),v.parse=v.defaultInstance.parse.bind(v.defaultInstance),v.registerClass=v.defaultInstance.registerClass.bind(v.defaultInstance),v.registerSymbol=v.defaultInstance.registerSymbol.bind(v.defaultInstance),v.registerCustom=v.defaultInstance.registerCustom.bind(v.defaultInstance),v.allowErrorProps=v.defaultInstance.allowErrorProps.bind(v.defaultInstance),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),c(),(bt=p).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__!=null||(bt.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__=[]),(It=p).__VUE_DEVTOOLS_KIT_RPC_CLIENT__!=null||(It.__VUE_DEVTOOLS_KIT_RPC_CLIENT__=null),(St=p).__VUE_DEVTOOLS_KIT_RPC_SERVER__!=null||(St.__VUE_DEVTOOLS_KIT_RPC_SERVER__=null),(kt=p).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__!=null||(kt.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__=null),(wt=p).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__!=null||(wt.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__=null),(Vt=p).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__!=null||(Vt.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__=null),c(),c(),c(),c(),c(),c(),c();exports.addCustomCommand=zn;exports.addCustomTab=Hn;exports.onDevToolsClientConnected=eo;exports.onDevToolsConnected=Kn;exports.removeCustomCommand=Bn;exports.setupDevToolsPlugin=$t;exports.setupDevtoolsPlugin=$t;
@@ -1,346 +0,0 @@
1
- import { defineComponent as W, ref as y, computed as w, provide as Z, watch as ee, resolveComponent as _, openBlock as d, createBlock as A, withCtx as u, createElementVNode as t, createVNode as a, unref as o, createTextVNode as k, toDisplayString as r, createCommentVNode as C, normalizeClass as E, isRef as te, createElementBlock as g, Fragment as se, renderList as oe, normalizeStyle as ne } from "vue";
2
- import { useModuleRoute as ae, useModule as re, useFirebaseIntegration as le } from "@oneclick.dev/cms-kit";
3
- import { ShoppingBag as L, Users as U, ChevronLeft as ie, ChevronRight as ce, RefreshCw as de, Search as ue, X as me, Calendar as ge, Clock as fe } from "lucide-vue-next";
4
- import { F as pe, _ as ve } from "./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-P-MWwcVh.mjs";
5
- import { _ as _e } from "./EditLayout.vue_vue_type_script_setup_true_lang-CcysXzmW.mjs";
6
- const he = { class: "space-y-6" }, xe = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, ye = { class: "text-2xl font-semibold tracking-tight flex items-center gap-2" }, De = { class: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4" }, we = { class: "flex items-center gap-1" }, ke = { class: "flex items-center gap-1" }, Ce = { class: "flex items-center gap-2" }, be = { class: "flex items-center gap-1" }, Se = { class: "text-sm text-muted-foreground mt-2" }, Ie = { class: "relative mb-4" }, ze = {
7
- key: 0,
8
- class: "mb-3 text-sm text-muted-foreground"
9
- }, Ne = {
10
- key: 1,
11
- class: "flex items-center justify-center py-8"
12
- }, Oe = {
13
- key: 2,
14
- class: "text-center py-8 text-muted-foreground"
15
- }, Te = {
16
- key: 3,
17
- class: "text-center py-8 text-muted-foreground"
18
- }, Pe = {
19
- key: 4,
20
- class: "space-y-2"
21
- }, Ae = ["onClick"], Be = { class: "flex items-start justify-between" }, Fe = { class: "flex-1" }, Re = { class: "font-medium" }, Ve = { class: "text-sm text-muted-foreground" }, Ee = { class: "text-sm text-muted-foreground" }, Le = { class: "flex items-center gap-4 flex-wrap mt-1" }, Ue = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, $e = { class: "flex items-center gap-2 text-xs text-muted-foreground" }, je = {
22
- key: 0,
23
- class: "flex items-center gap-1 text-xs text-muted-foreground"
24
- }, He = { class: "flex items-center gap-2 mt-1 text-xs text-muted-foreground" }, Me = { class: "text-right" }, Ye = {
25
- key: 0,
26
- class: "text-sm font-medium mt-1"
27
- }, et = /* @__PURE__ */ W({
28
- __name: "orders",
29
- setup(Qe) {
30
- const { params: B } = ae(), { config: O } = re(), F = le(O.project), m = y([]), T = y([]), D = y(!0), f = y(""), R = y(null), h = /* @__PURE__ */ new Date(), l = y(/* @__PURE__ */ new Date()), $ = w(() => ({
31
- date: V(l.value),
32
- resource: null
33
- }));
34
- Z("event", $);
35
- const j = w(() => {
36
- const e = new Date(h);
37
- e.setDate(h.getDate() - 1);
38
- const s = new Date(h);
39
- return s.setDate(h.getDate() + 1), l.value.toDateString() === h.toDateString() ? "Today" : l.value.toDateString() === e.toDateString() ? "Yesterday" : l.value.toDateString() === s.toDateString() ? "Tomorrow" : l.value.toLocaleDateString("en-US", {
40
- weekday: "long",
41
- month: "long",
42
- day: "numeric",
43
- year: "numeric"
44
- });
45
- }), H = () => {
46
- const e = new Date(l.value);
47
- e.setDate(e.getDate() - 1), l.value = e;
48
- }, M = () => {
49
- const e = new Date(l.value);
50
- e.setDate(e.getDate() + 1), e <= h && (l.value = e);
51
- }, Y = w(() => {
52
- const e = new Date(l.value);
53
- return e.setDate(e.getDate() + 1), e <= h;
54
- }), Q = () => {
55
- l.value = /* @__PURE__ */ new Date();
56
- }, V = (e) => {
57
- const s = e.getFullYear(), p = String(e.getMonth() + 1).padStart(2, "0"), x = String(e.getDate()).padStart(2, "0");
58
- return `${s}-${p}-${x}`;
59
- }, X = (e) => e ? new Date(e).toLocaleTimeString("en-US", {
60
- hour: "2-digit",
61
- minute: "2-digit",
62
- hour12: !1
63
- }) : "", q = (e) => e ? new Date(e).toLocaleDateString("en-US", {
64
- weekday: "short",
65
- month: "short",
66
- day: "numeric"
67
- }) : "", P = w(() => f.value.trim() ? new pe(m.value, {
68
- keys: [
69
- "customerInfo.firstName",
70
- "customerInfo.lastName",
71
- "customerInfo.email",
72
- "customerInfo.phone",
73
- "resourceName"
74
- ],
75
- threshold: 0.3,
76
- ignoreLocation: !0
77
- }).search(f.value).map((s) => s.item) : m.value), b = w(() => ({
78
- spots: m.value.reduce((e, s) => e + (s.spots || 0), 0),
79
- bookings: m.value.length,
80
- revenue: m.value.reduce((e, s) => e + (s.reservationPrice || 0), 0)
81
- })), G = () => {
82
- f.value = "";
83
- }, J = async () => {
84
- try {
85
- const e = B.value.id, s = await F.get(O.agendaCollection, e);
86
- T.value = s?.resources?.filter((p) => p.isActive) || [];
87
- } catch (e) {
88
- console.error("Error loading resources:", e), T.value = [];
89
- }
90
- }, S = async () => {
91
- D.value = !0, m.value = [];
92
- try {
93
- const e = B.value.id, s = V(l.value), p = new Date(l.value);
94
- p.setHours(0, 0, 0, 0);
95
- const x = new Date(l.value);
96
- x.setHours(23, 59, 59, 999);
97
- const I = await F.find(O.reservationsCollection, {
98
- filters: [
99
- { field: "agendaId", operator: "==", value: e },
100
- { field: "createdAt", operator: ">=", value: p.toISOString() },
101
- { field: "createdAt", operator: "<=", value: x.toISOString() }
102
- ]
103
- });
104
- console.log("allOrders", I);
105
- let v = [];
106
- I.forEach((i) => {
107
- (i.reservations || []).forEach((c) => {
108
- const N = T.value.find((n) => n.id === c.resourceId);
109
- v.push({
110
- customerInfo: i.customerInfo,
111
- amountDue: i.amountDue,
112
- amountPaid: i.amountPaid,
113
- status: i.status,
114
- subtotal: i.subtotal,
115
- total: i.total,
116
- discount: i.discount,
117
- id: i.id,
118
- res_id: c.id,
119
- resourceId: c.resourceId,
120
- spots: c.spots,
121
- date: c.date,
122
- createdAt: i.createdAt,
123
- startTime: c.timeslot?.startTime,
124
- endTime: c.timeslot?.endTime,
125
- reservationPrice: c.totalPrice,
126
- reservationBasePrice: c.basePrice,
127
- reservationAddOnsPrice: c.addOnsPrice,
128
- pricingOptionId: c.pricingOptionId,
129
- pricingOption: c.pricingOption,
130
- resourceName: N?.name || "Unknown",
131
- resourceColor: N?.color
132
- });
133
- });
134
- }), m.value = v.sort((i, z) => (z.createdAt || "").localeCompare(i.createdAt || ""));
135
- } catch (e) {
136
- console.error("Error loading orders:", e), m.value = [];
137
- } finally {
138
- D.value = !1;
139
- }
140
- }, K = () => {
141
- S();
142
- };
143
- return (async () => (await J(), await S()))(), ee(l, () => {
144
- S();
145
- }), (e, s) => {
146
- const p = _("Badge"), x = _("CardTitle"), I = _("CardDescription"), v = _("Button"), i = _("CardHeader"), z = _("Input"), c = _("CardContent"), N = _("Card");
147
- return d(), A(_e, null, {
148
- default: u(() => [
149
- t("div", he, [
150
- t("div", xe, [
151
- t("div", null, [
152
- t("h1", ye, [
153
- a(o(L), { class: "size-6" }),
154
- s[1] || (s[1] = k(" Orders ", -1))
155
- ]),
156
- s[2] || (s[2] = t("p", { class: "text-muted-foreground text-sm mt-1" }, " View orders by when they were placed ", -1))
157
- ])
158
- ]),
159
- a(N, null, {
160
- default: u(() => [
161
- a(i, null, {
162
- default: u(() => [
163
- t("div", De, [
164
- t("div", null, [
165
- a(x, { class: "flex items-center gap-2" }, {
166
- default: u(() => [
167
- s[3] || (s[3] = k(" Orders received ", -1)),
168
- o(b).bookings > 0 ? (d(), A(p, {
169
- key: 0,
170
- variant: "secondary"
171
- }, {
172
- default: u(() => [
173
- k(r(o(b).bookings), 1)
174
- ]),
175
- _: 1
176
- })) : C("", !0)
177
- ]),
178
- _: 1
179
- }),
180
- a(I, { class: "flex items-center gap-4 mt-1" }, {
181
- default: u(() => [
182
- t("span", we, [
183
- a(o(U), { size: 14 }),
184
- k(" " + r(o(b).spots) + " spots ", 1)
185
- ]),
186
- t("span", ke, " €" + r(o(b).revenue.toFixed(2)) + " revenue ", 1)
187
- ]),
188
- _: 1
189
- })
190
- ]),
191
- t("div", Ce, [
192
- t("div", be, [
193
- a(v, {
194
- variant: "ghost",
195
- size: "icon",
196
- class: "size-8",
197
- onClick: H
198
- }, {
199
- default: u(() => [
200
- a(o(ie), { size: 16 })
201
- ]),
202
- _: 1
203
- }),
204
- a(v, {
205
- variant: "ghost",
206
- size: "sm",
207
- class: "h-8 px-3 text-xs",
208
- onClick: Q
209
- }, {
210
- default: u(() => [...s[4] || (s[4] = [
211
- k(" Today ", -1)
212
- ])]),
213
- _: 1
214
- }),
215
- a(v, {
216
- variant: "ghost",
217
- size: "icon",
218
- class: "size-8",
219
- onClick: M,
220
- disabled: !o(Y)
221
- }, {
222
- default: u(() => [
223
- a(o(ce), { size: 16 })
224
- ]),
225
- _: 1
226
- }, 8, ["disabled"])
227
- ]),
228
- a(v, {
229
- variant: "ghost",
230
- size: "icon",
231
- onClick: S,
232
- disabled: o(D)
233
- }, {
234
- default: u(() => [
235
- a(o(de), {
236
- size: 16,
237
- class: E({ "animate-spin": o(D) })
238
- }, null, 8, ["class"])
239
- ]),
240
- _: 1
241
- }, 8, ["disabled"])
242
- ])
243
- ]),
244
- t("div", Se, r(o(j)), 1)
245
- ]),
246
- _: 1
247
- }),
248
- a(c, null, {
249
- default: u(() => [
250
- t("div", Ie, [
251
- a(o(ue), {
252
- size: 16,
253
- class: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"
254
- }),
255
- a(z, {
256
- modelValue: o(f),
257
- "onUpdate:modelValue": s[0] || (s[0] = (n) => te(f) ? f.value = n : null),
258
- placeholder: "Search by name, email, phone, or resource...",
259
- class: "pl-9 pr-9"
260
- }, null, 8, ["modelValue"]),
261
- o(f) ? (d(), A(v, {
262
- key: 0,
263
- variant: "ghost",
264
- size: "icon",
265
- class: "absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",
266
- onClick: G
267
- }, {
268
- default: u(() => [
269
- a(o(me), { size: 14 })
270
- ]),
271
- _: 1
272
- })) : C("", !0)
273
- ]),
274
- o(f) ? (d(), g("div", ze, " Showing " + r(o(P).length) + " of " + r(o(m).length) + " orders ", 1)) : C("", !0),
275
- o(D) ? (d(), g("div", Ne, [...s[5] || (s[5] = [
276
- t("div", { class: "animate-spin rounded-full h-8 w-8 border-b-2 border-primary" }, null, -1)
277
- ])])) : o(m).length === 0 ? (d(), g("div", Oe, [
278
- a(o(L), { class: "size-12 mx-auto mb-3 opacity-50" }),
279
- s[6] || (s[6] = t("p", null, "No orders received on this day", -1))
280
- ])) : o(P).length === 0 ? (d(), g("div", Te, " No orders match your search ")) : (d(), g("div", Pe, [
281
- (d(!0), g(se, null, oe(o(P), (n) => (d(), g("div", {
282
- key: n.res_id || n.id,
283
- class: "p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",
284
- onClick: (qe) => o(R)?.openDialog(n)
285
- }, [
286
- t("div", Be, [
287
- t("div", Fe, [
288
- t("div", Re, r(n.customerInfo?.firstName) + " " + r(n.customerInfo?.lastName || "Unknown Customer"), 1),
289
- t("div", Ve, r(n.customerInfo?.email), 1),
290
- t("div", Ee, r(n.customerInfo?.phone), 1),
291
- t("div", Le, [
292
- t("div", Ue, [
293
- a(o(ge), { size: 12 }),
294
- t("span", null, r(q(n.date)) + " · " + r(n.startTime) + " - " + r(n.endTime), 1)
295
- ]),
296
- t("div", $e, [
297
- a(o(U), { size: 12 }),
298
- t("span", null, r(n.spots) + " spots", 1)
299
- ]),
300
- n.resourceName ? (d(), g("div", je, [
301
- t("div", {
302
- class: "w-3 h-3 rounded-full",
303
- style: ne({ backgroundColor: n.resourceColor || "#6b7280" })
304
- }, null, 4),
305
- t("span", null, r(n.resourceName), 1)
306
- ])) : C("", !0)
307
- ]),
308
- t("div", He, [
309
- a(o(fe), { size: 12 }),
310
- t("span", null, "Ordered at " + r(X(n.createdAt)), 1)
311
- ])
312
- ]),
313
- t("div", Me, [
314
- t("div", {
315
- class: E(["inline-block px-2 py-1 text-xs rounded-full", {
316
- "bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400": n.status === "completed" || n.status === "confirmed",
317
- "bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400": n.status === "pending",
318
- "bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400": n.status === "cancelled"
319
- }])
320
- }, r(n.status || "pending"), 3),
321
- n.reservationPrice || n.reservationPrice === 0 ? (d(), g("div", Ye, " €" + r(n.reservationPrice.toFixed(2)), 1)) : C("", !0)
322
- ])
323
- ])
324
- ], 8, Ae))), 128))
325
- ]))
326
- ]),
327
- _: 1
328
- }),
329
- a(ve, {
330
- ref_key: "reservationDetailDialog",
331
- ref: R,
332
- onCancelled: K
333
- }, null, 512)
334
- ]),
335
- _: 1
336
- })
337
- ])
338
- ]),
339
- _: 1
340
- });
341
- };
342
- }
343
- });
344
- export {
345
- et as default
346
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("@oneclick.dev/cms-kit"),l=require("lucide-vue-next"),E=require("./ReservationDetailDialog.vue_vue_type_script_setup_true_lang-CI8YgHdU.js"),U=require("./EditLayout.vue_vue_type_script_setup_true_lang-Czu6Dcde.js"),j={class:"space-y-6"},q={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},H={class:"text-2xl font-semibold tracking-tight flex items-center gap-2"},M={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},$={class:"flex items-center gap-1"},Y={class:"flex items-center gap-1"},K={class:"flex items-center gap-2"},Q={class:"flex items-center gap-1"},X={class:"text-sm text-muted-foreground mt-2"},G={class:"relative mb-4"},J={key:0,class:"mb-3 text-sm text-muted-foreground"},W={key:1,class:"flex items-center justify-center py-8"},Z={key:2,class:"text-center py-8 text-muted-foreground"},ee={key:3,class:"text-center py-8 text-muted-foreground"},te={key:4,class:"space-y-2"},oe=["onClick"],ne={class:"flex items-start justify-between"},se={class:"flex-1"},ae={class:"font-medium"},re={class:"text-sm text-muted-foreground"},le={class:"text-sm text-muted-foreground"},ce={class:"flex items-center gap-4 flex-wrap mt-1"},ie={class:"flex items-center gap-2 text-xs text-muted-foreground"},de={class:"flex items-center gap-2 text-xs text-muted-foreground"},ue={key:0,class:"flex items-center gap-1 text-xs text-muted-foreground"},me={class:"flex items-center gap-2 mt-1 text-xs text-muted-foreground"},pe={class:"text-right"},fe={key:0,class:"text-sm font-medium mt-1"},ge=e.defineComponent({__name:"orders",setup(ve){const{params:k}=V.useModuleRoute(),{config:y}=V.useModule(),C=V.useFirebaseIntegration(y.project),c=e.ref([]),N=e.ref([]),f=e.ref(!0),i=e.ref(""),w=e.ref(null),m=new Date,s=e.ref(new Date),b=e.computed(()=>({date:S(s.value),resource:null}));e.provide("event",b);const B=e.computed(()=>{const t=new Date(m);t.setDate(m.getDate()-1);const o=new Date(m);return o.setDate(m.getDate()+1),s.value.toDateString()===m.toDateString()?"Today":s.value.toDateString()===t.toDateString()?"Yesterday":s.value.toDateString()===o.toDateString()?"Tomorrow":s.value.toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}),I=()=>{const t=new Date(s.value);t.setDate(t.getDate()-1),s.value=t},z=()=>{const t=new Date(s.value);t.setDate(t.getDate()+1),t<=m&&(s.value=t)},T=e.computed(()=>{const t=new Date(s.value);return t.setDate(t.getDate()+1),t<=m}),O=()=>{s.value=new Date},S=t=>{const o=t.getFullYear(),d=String(t.getMonth()+1).padStart(2,"0"),p=String(t.getDate()).padStart(2,"0");return`${o}-${d}-${p}`},P=t=>t?new Date(t).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}):"",R=t=>t?new Date(t).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"}):"",D=e.computed(()=>i.value.trim()?new E.Fuse(c.value,{keys:["customerInfo.firstName","customerInfo.lastName","customerInfo.email","customerInfo.phone","resourceName"],threshold:.3,ignoreLocation:!0}).search(i.value).map(o=>o.item):c.value),g=e.computed(()=>({spots:c.value.reduce((t,o)=>t+(o.spots||0),0),bookings:c.value.length,revenue:c.value.reduce((t,o)=>t+(o.reservationPrice||0),0)})),A=()=>{i.value=""},F=async()=>{try{const t=k.value.id,o=await C.get(y.agendaCollection,t);N.value=o?.resources?.filter(d=>d.isActive)||[]}catch(t){console.error("Error loading resources:",t),N.value=[]}},v=async()=>{f.value=!0,c.value=[];try{const t=k.value.id,o=S(s.value),d=new Date(s.value);d.setHours(0,0,0,0);const p=new Date(s.value);p.setHours(23,59,59,999);const _=await C.find(y.reservationsCollection,{filters:[{field:"agendaId",operator:"==",value:t},{field:"createdAt",operator:">=",value:d.toISOString()},{field:"createdAt",operator:"<=",value:p.toISOString()}]});console.log("allOrders",_);let u=[];_.forEach(a=>{(a.reservations||[]).forEach(r=>{const h=N.value.find(n=>n.id===r.resourceId);u.push({customerInfo:a.customerInfo,amountDue:a.amountDue,amountPaid:a.amountPaid,status:a.status,subtotal:a.subtotal,total:a.total,discount:a.discount,id:a.id,res_id:r.id,resourceId:r.resourceId,spots:r.spots,date:r.date,createdAt:a.createdAt,startTime:r.timeslot?.startTime,endTime:r.timeslot?.endTime,reservationPrice:r.totalPrice,reservationBasePrice:r.basePrice,reservationAddOnsPrice:r.addOnsPrice,pricingOptionId:r.pricingOptionId,pricingOption:r.pricingOption,resourceName:h?.name||"Unknown",resourceColor:h?.color})})}),c.value=u.sort((a,x)=>(x.createdAt||"").localeCompare(a.createdAt||""))}catch(t){console.error("Error loading orders:",t),c.value=[]}finally{f.value=!1}},L=()=>{v()};return(async()=>(await F(),await v()))(),e.watch(s,()=>{v()}),(t,o)=>{const d=e.resolveComponent("Badge"),p=e.resolveComponent("CardTitle"),_=e.resolveComponent("CardDescription"),u=e.resolveComponent("Button"),a=e.resolveComponent("CardHeader"),x=e.resolveComponent("Input"),r=e.resolveComponent("CardContent"),h=e.resolveComponent("Card");return e.openBlock(),e.createBlock(U._sfc_main,null,{default:e.withCtx(()=>[e.createElementVNode("div",j,[e.createElementVNode("div",q,[e.createElementVNode("div",null,[e.createElementVNode("h1",H,[e.createVNode(e.unref(l.ShoppingBag),{class:"size-6"}),o[1]||(o[1]=e.createTextVNode(" Orders ",-1))]),o[2]||(o[2]=e.createElementVNode("p",{class:"text-muted-foreground text-sm mt-1"}," View orders by when they were placed ",-1))])]),e.createVNode(h,null,{default:e.withCtx(()=>[e.createVNode(a,null,{default:e.withCtx(()=>[e.createElementVNode("div",M,[e.createElementVNode("div",null,[e.createVNode(p,{class:"flex items-center gap-2"},{default:e.withCtx(()=>[o[3]||(o[3]=e.createTextVNode(" Orders received ",-1)),e.unref(g).bookings>0?(e.openBlock(),e.createBlock(d,{key:0,variant:"secondary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(g).bookings),1)]),_:1})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(_,{class:"flex items-center gap-4 mt-1"},{default:e.withCtx(()=>[e.createElementVNode("span",$,[e.createVNode(e.unref(l.Users),{size:14}),e.createTextVNode(" "+e.toDisplayString(e.unref(g).spots)+" spots ",1)]),e.createElementVNode("span",Y," €"+e.toDisplayString(e.unref(g).revenue.toFixed(2))+" revenue ",1)]),_:1})]),e.createElementVNode("div",K,[e.createElementVNode("div",Q,[e.createVNode(u,{variant:"ghost",size:"icon",class:"size-8",onClick:I},{default:e.withCtx(()=>[e.createVNode(e.unref(l.ChevronLeft),{size:16})]),_:1}),e.createVNode(u,{variant:"ghost",size:"sm",class:"h-8 px-3 text-xs",onClick:O},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" Today ",-1)])]),_:1}),e.createVNode(u,{variant:"ghost",size:"icon",class:"size-8",onClick:z,disabled:!e.unref(T)},{default:e.withCtx(()=>[e.createVNode(e.unref(l.ChevronRight),{size:16})]),_:1},8,["disabled"])]),e.createVNode(u,{variant:"ghost",size:"icon",onClick:v,disabled:e.unref(f)},{default:e.withCtx(()=>[e.createVNode(e.unref(l.RefreshCw),{size:16,class:e.normalizeClass({"animate-spin":e.unref(f)})},null,8,["class"])]),_:1},8,["disabled"])])]),e.createElementVNode("div",X,e.toDisplayString(e.unref(B)),1)]),_:1}),e.createVNode(r,null,{default:e.withCtx(()=>[e.createElementVNode("div",G,[e.createVNode(e.unref(l.Search),{size:16,class:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),e.createVNode(x,{modelValue:e.unref(i),"onUpdate:modelValue":o[0]||(o[0]=n=>e.isRef(i)?i.value=n:null),placeholder:"Search by name, email, phone, or resource...",class:"pl-9 pr-9"},null,8,["modelValue"]),e.unref(i)?(e.openBlock(),e.createBlock(u,{key:0,variant:"ghost",size:"icon",class:"absolute right-1 top-1/2 -translate-y-1/2 h-7 w-7",onClick:A},{default:e.withCtx(()=>[e.createVNode(e.unref(l.X),{size:14})]),_:1})):e.createCommentVNode("",!0)]),e.unref(i)?(e.openBlock(),e.createElementBlock("div",J," Showing "+e.toDisplayString(e.unref(D).length)+" of "+e.toDisplayString(e.unref(c).length)+" orders ",1)):e.createCommentVNode("",!0),e.unref(f)?(e.openBlock(),e.createElementBlock("div",W,[...o[5]||(o[5]=[e.createElementVNode("div",{class:"animate-spin rounded-full h-8 w-8 border-b-2 border-primary"},null,-1)])])):e.unref(c).length===0?(e.openBlock(),e.createElementBlock("div",Z,[e.createVNode(e.unref(l.ShoppingBag),{class:"size-12 mx-auto mb-3 opacity-50"}),o[6]||(o[6]=e.createElementVNode("p",null,"No orders received on this day",-1))])):e.unref(D).length===0?(e.openBlock(),e.createElementBlock("div",ee," No orders match your search ")):(e.openBlock(),e.createElementBlock("div",te,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(D),n=>(e.openBlock(),e.createElementBlock("div",{key:n.res_id||n.id,class:"p-3 border rounded-lg hover:bg-muted/50 transition-colors cursor-pointer",onClick:xe=>e.unref(w)?.openDialog(n)},[e.createElementVNode("div",ne,[e.createElementVNode("div",se,[e.createElementVNode("div",ae,e.toDisplayString(n.customerInfo?.firstName)+" "+e.toDisplayString(n.customerInfo?.lastName||"Unknown Customer"),1),e.createElementVNode("div",re,e.toDisplayString(n.customerInfo?.email),1),e.createElementVNode("div",le,e.toDisplayString(n.customerInfo?.phone),1),e.createElementVNode("div",ce,[e.createElementVNode("div",ie,[e.createVNode(e.unref(l.Calendar),{size:12}),e.createElementVNode("span",null,e.toDisplayString(R(n.date))+" · "+e.toDisplayString(n.startTime)+" - "+e.toDisplayString(n.endTime),1)]),e.createElementVNode("div",de,[e.createVNode(e.unref(l.Users),{size:12}),e.createElementVNode("span",null,e.toDisplayString(n.spots)+" spots",1)]),n.resourceName?(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",{class:"w-3 h-3 rounded-full",style:e.normalizeStyle({backgroundColor:n.resourceColor||"#6b7280"})},null,4),e.createElementVNode("span",null,e.toDisplayString(n.resourceName),1)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",me,[e.createVNode(e.unref(l.Clock),{size:12}),e.createElementVNode("span",null,"Ordered at "+e.toDisplayString(P(n.createdAt)),1)])]),e.createElementVNode("div",pe,[e.createElementVNode("div",{class:e.normalizeClass(["inline-block px-2 py-1 text-xs rounded-full",{"bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400":n.status==="completed"||n.status==="confirmed","bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400":n.status==="pending","bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400":n.status==="cancelled"}])},e.toDisplayString(n.status||"pending"),3),n.reservationPrice||n.reservationPrice===0?(e.openBlock(),e.createElementBlock("div",fe," €"+e.toDisplayString(n.reservationPrice.toFixed(2)),1)):e.createCommentVNode("",!0)])])],8,oe))),128))]))]),_:1}),e.createVNode(E._sfc_main,{ref_key:"reservationDetailDialog",ref:w,onCancelled:L},null,512)]),_:1})])]),_:1})}}});exports.default=ge;
@@ -1,4 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {
2
- openDialog: (input: any) => void;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
- export default _default;