ss-component-new 1.1.113 → 1.1.116

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 (87) hide show
  1. package/dist/array-DLX9HpUG.js +1956 -0
  2. package/dist/array-tWsmTH5r.cjs +7 -0
  3. package/dist/{cloneDeep-BfzU0pBe.js → cloneDeep-B2CowBmY.js} +42 -48
  4. package/dist/cloneDeep-Fj9bqNcO.cjs +1 -0
  5. package/dist/index-2BSH90QR.cjs +6 -0
  6. package/dist/{index-BTt24r3U.cjs → index-B2V71oy_.cjs} +1 -1
  7. package/dist/{index-DxyREQkR.js → index-B5nXV29K.js} +78 -76
  8. package/dist/index-B6bxf0h2.js +196 -0
  9. package/dist/{index-COPrDtid.js → index-BEAnS4I-.js} +1 -1
  10. package/dist/{index-CyQkKXnK.js → index-BGhy_ENi.js} +255 -187
  11. package/dist/index-BNf8v3E7.cjs +1 -0
  12. package/dist/index-BXJIxGj9.cjs +1 -0
  13. package/dist/index-BYNM1Eo-.js +432 -0
  14. package/dist/index-B_pYEWlS.cjs +6 -0
  15. package/dist/index-Bo8JGvd0.cjs +1 -0
  16. package/dist/index-BvvxVAFa.cjs +1 -0
  17. package/dist/index-C1qnTNzC.cjs +1 -0
  18. package/dist/index-C86gx6Ye.cjs +1 -0
  19. package/dist/{index-B4WYIlOz.cjs → index-CbuB7VDV.cjs} +1 -1
  20. package/dist/{index-B3iQoZwc.js → index-CdRgYGoU.js} +631 -625
  21. package/dist/{index-BpJeYb4X.js → index-CeJMZbXG.js} +1 -1
  22. package/dist/index-D0yDjxaf.cjs +1 -0
  23. package/dist/index-DCRZ9Y1m.js +199 -0
  24. package/dist/index-DD3Jbedk.cjs +1 -0
  25. package/dist/index-DH5pTE-1.js +304 -0
  26. package/dist/index-DQ8UtE2z.js +74 -0
  27. package/dist/index-DTs391JS.js +208 -0
  28. package/dist/{index-BMLnfdpX.js → index-DYee8R31.js} +4 -3
  29. package/dist/{index-BH3F6_ql.js → index-DdiwlYxv.js} +1025 -1121
  30. package/dist/{index-ChXKNVG8.cjs → index-DjHNYg39.cjs} +1 -1
  31. package/dist/{index-b_11tfuG.js → index-DmA5-mTS.js} +6 -6
  32. package/dist/{index-DLartnmY.js → index-M_Td6T9I.js} +1 -1
  33. package/dist/index-MpVy5A_K.cjs +1 -0
  34. package/dist/index-ULdYt3Gk.js +138 -0
  35. package/dist/index-Uak9xh_Z.cjs +1 -0
  36. package/dist/index-YlTnI4EI.cjs +1 -0
  37. package/dist/{index-CqJa9o1o.cjs → index-kHFiVhmA.cjs} +1 -1
  38. package/dist/{index-DWiZqfBA.js → index-vARVx4Lc.js} +4 -4
  39. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-BKTdfLNp.cjs +1 -0
  40. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-C2CUHQVo.js +7 -0
  41. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DSLx4cvQ.js +235 -0
  42. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-DlqdNpcl.cjs +1 -0
  43. package/dist/login-CBjdvGjn.js +47 -0
  44. package/dist/login-CHZ1VF7_.cjs +1 -0
  45. package/dist/main-3fUagSVX.cjs +1 -0
  46. package/dist/{main-DAPxADXM.js → main-7GSU9TqI.js} +25 -24
  47. package/dist/menu-BnTNA2Lx.cjs +1 -0
  48. package/dist/menu-DxrO5JEn.js +34 -0
  49. package/dist/{modelComp-CHWFvhCq.js → modelComp-BsNooORx.js} +1 -1
  50. package/dist/modelComp-b_KDs0lh.cjs +1 -0
  51. package/dist/pinia-8zVC1cUT.cjs +11 -0
  52. package/dist/pinia-DB5lI5eD.js +4723 -0
  53. package/dist/{request-BK6KCyS9.js → request-3QszTjDN.js} +1 -1
  54. package/dist/{request-BrHEv9dn.cjs → request-SLgezlvU.cjs} +1 -1
  55. package/dist/ss-component.cjs +1 -1
  56. package/dist/ss-component.css +1 -1
  57. package/dist/ss-component.js +6 -6
  58. package/dist/ss-component2.cjs +1 -1
  59. package/dist/ss-component2.js +1 -1
  60. package/package.json +3 -3
  61. package/dist/array-BYRvPg11.cjs +0 -7
  62. package/dist/array-DyxKeexo.js +0 -1732
  63. package/dist/cloneDeep-WwDap0fL.cjs +0 -1
  64. package/dist/index-5dGTUAu_.cjs +0 -1
  65. package/dist/index-BIRKKGuW.cjs +0 -1
  66. package/dist/index-BUxzwz5l.cjs +0 -1
  67. package/dist/index-CBHJLZo4.cjs +0 -1
  68. package/dist/index-CVBCwf2F.cjs +0 -6
  69. package/dist/index-CbphQpiC.cjs +0 -1
  70. package/dist/index-CdEEK8I0.js +0 -408
  71. package/dist/index-CumtOgAw.cjs +0 -7
  72. package/dist/index-DVEWSdUo.cjs +0 -1
  73. package/dist/index-DmoecEm1.js +0 -205
  74. package/dist/index-DzJuDGl8.cjs +0 -1
  75. package/dist/index-EIbm0jBZ.js +0 -2707
  76. package/dist/index-EQOXj03f.cjs +0 -1
  77. package/dist/index-QWm4yJ7u.js +0 -135
  78. package/dist/index-smYHb1Ta.js +0 -456
  79. package/dist/index-uMboxmjq.cjs +0 -6
  80. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-CF5e1L_i.cjs +0 -1
  81. package/dist/index.vue_vue_type_style_index_0_scoped_77dec451_lang-DrStz9iD.js +0 -2
  82. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CgrtbAG0.cjs +0 -1
  83. package/dist/index.vue_vue_type_style_index_0_scoped_bbb8ace9_lang-CqiRIG3B.js +0 -192
  84. package/dist/main-DS-YP1Wn.cjs +0 -1
  85. package/dist/menu-BIINB-0Y.js +0 -1013
  86. package/dist/menu-B_Az9K_F.cjs +0 -11
  87. package/dist/modelComp-DY1RniW6.cjs +0 -1
@@ -1,11 +0,0 @@
1
- "use strict";const l=require("vue");function F(e,o,n){return Array.isArray(e)?(e.length=Math.max(e.length,o),e.splice(o,1,n),n):(e[o]=n,n)}function q(e,o){if(Array.isArray(e)){e.splice(o,1);return}delete e[o]}function Ae(){return he().__VUE_DEVTOOLS_GLOBAL_HOOK__}function he(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const $e=typeof Proxy=="function",De="devtools-plugin:setup",Re="plugin:settings:set";let R,X;function ke(){var e;return R!==void 0||(typeof window<"u"&&window.performance?(R=!0,X=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(R=!0,X=globalThis.perf_hooks.performance):R=!1),R}function je(){return ke()?X.now():Date.now()}class xe{constructor(o,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=n;const t={};if(o.settings)for(const i in o.settings){const r=o.settings[i];t[i]=r.defaultValue}const s=`__vue-devtools-plugin-settings__${o.id}`;let c=Object.assign({},t);try{const i=localStorage.getItem(s),r=JSON.parse(i);Object.assign(c,r)}catch{}this.fallbacks={getSettings(){return c},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}c=i},now(){return je()}},n&&n.on(Re,(i,r)=>{i===this.plugin.id&&this.fallbacks.setSettings(r)}),this.proxiedOn=new Proxy({},{get:(i,r)=>this.target?this.target.on[r]:(...f)=>{this.onQueue.push({method:r,args:f})}}),this.proxiedTarget=new Proxy({},{get:(i,r)=>this.target?this.target[r]:r==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(r)?(...f)=>(this.targetQueue.push({method:r,args:f,resolve:()=>{}}),this.fallbacks[r](...f)):(...f)=>new Promise(h=>{this.targetQueue.push({method:r,args:f,resolve:h})})})}async setRealTarget(o){this.target=o;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function pe(e,o){const n=e,t=he(),s=Ae(),c=$e&&n.enableEarlyProxy;if(s&&(t.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))s.emit(De,e,o);else{const i=c?new xe(n,s):null;(t.__VUE_DEVTOOLS_PLUGINS__=t.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:o,proxy:i}),i&&o(i.proxiedTarget)}}/*!
2
- * pinia v2.2.8
3
- * (c) 2024 Eduardo San Martin Morote
4
- * @license MIT
5
- */let j;const M=e=>j=e,Ce=()=>l.hasInjectionContext()&&l.inject(te)||j,te=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function $(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var N;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(N||(N={}));const T=typeof window<"u",ce=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null};function Le(e,{autoBom:o=!1}={}){return o&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function ne(e,o,n){const t=new XMLHttpRequest;t.open("GET",e),t.responseType="blob",t.onload=function(){me(t.response,o,n)},t.onerror=function(){console.error("could not download file")},t.send()}function ge(e){const o=new XMLHttpRequest;o.open("HEAD",e,!1);try{o.send()}catch{}return o.status>=200&&o.status<=299}function H(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}}const G=typeof navigator=="object"?navigator:{userAgent:""},_e=/Macintosh/.test(G.userAgent)&&/AppleWebKit/.test(G.userAgent)&&!/Safari/.test(G.userAgent),me=T?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!_e?Me:"msSaveOrOpenBlob"in G?Ue:Fe:()=>{};function Me(e,o="download",n){const t=document.createElement("a");t.download=o,t.rel="noopener",typeof e=="string"?(t.href=e,t.origin!==location.origin?ge(t.href)?ne(e,o,n):(t.target="_blank",H(t)):H(t)):(t.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(t.href)},4e4),setTimeout(function(){H(t)},0))}function Ue(e,o="download",n){if(typeof e=="string")if(ge(e))ne(e,o,n);else{const t=document.createElement("a");t.href=e,t.target="_blank",setTimeout(function(){H(t)})}else navigator.msSaveOrOpenBlob(Le(e,n),o)}function Fe(e,o,n,t){if(t=t||open("","_blank"),t&&(t.document.title=t.document.body.innerText="downloading..."),typeof e=="string")return ne(e,o,n);const s=e.type==="application/octet-stream",c=/constructor/i.test(String(ce.HTMLElement))||"safari"in ce,i=/CriOS\/[\d]+/.test(navigator.userAgent);if((i||s&&c||_e)&&typeof FileReader<"u"){const r=new FileReader;r.onloadend=function(){let f=r.result;if(typeof f!="string")throw t=null,new Error("Wrong reader.result type");f=i?f:f.replace(/^data:[^;]*;/,"data:attachment/file;"),t?t.location.href=f:location.assign(f),t=null},r.readAsDataURL(e)}else{const r=URL.createObjectURL(e);t?t.location.assign(r):location.href=r,t=null,setTimeout(function(){URL.revokeObjectURL(r)},4e4)}}function m(e,o){const n="🍍 "+e;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,o):o==="error"?console.error(n):o==="warn"?console.warn(n):console.log(n)}function oe(e){return"_a"in e&&"install"in e}function ve(){if(!("clipboard"in navigator))return m("Your browser doesn't support the Clipboard API","error"),!0}function ye(e){return e instanceof Error&&e.message.toLowerCase().includes("document is not focused")?(m('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function He(e){if(!ve())try{await navigator.clipboard.writeText(JSON.stringify(e.state.value)),m("Global state copied to clipboard.")}catch(o){if(ye(o))return;m("Failed to serialize the state. Check the console for more details.","error"),console.error(o)}}async function Ge(e){if(!ve())try{Ee(e,JSON.parse(await navigator.clipboard.readText())),m("Global state pasted from clipboard.")}catch(o){if(ye(o))return;m("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(o)}}async function Je(e){try{me(new Blob([JSON.stringify(e.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(o){m("Failed to export the state as JSON. Check the console for more details.","error"),console.error(o)}}let P;function We(){P||(P=document.createElement("input"),P.type="file",P.accept=".json");function e(){return new Promise((o,n)=>{P.onchange=async()=>{const t=P.files;if(!t)return o(null);const s=t.item(0);return o(s?{text:await s.text(),file:s}:null)},P.oncancel=()=>o(null),P.onerror=n,P.click()})}return e}async function Be(e){try{const n=await We()();if(!n)return;const{text:t,file:s}=n;Ee(e,JSON.parse(t)),m(`Global state imported from "${s.name}".`)}catch(o){m("Failed to import the state from JSON. Check the console for more details.","error"),console.error(o)}}function Ee(e,o){for(const n in o){const t=e.state.value[n];t?Object.assign(t,o[n]):e.state.value[n]=o[n]}}function O(e){return{_custom:{display:e}}}const be="🍍 Pinia (root)",J="_root";function Qe(e){return oe(e)?{id:J,label:be}:{id:e.$id,label:e.$id}}function Ye(e){if(oe(e)){const n=Array.from(e._s.keys()),t=e._s;return{state:n.map(c=>({editable:!0,key:c,value:e.state.value[c]})),getters:n.filter(c=>t.get(c)._getters).map(c=>{const i=t.get(c);return{editable:!1,key:c,value:i._getters.reduce((r,f)=>(r[f]=i[f],r),{})}})}}const o={state:Object.keys(e.$state).map(n=>({editable:!0,key:n,value:e.$state[n]}))};return e._getters&&e._getters.length&&(o.getters=e._getters.map(n=>({editable:!1,key:n,value:e[n]}))),e._customProperties.size&&(o.customProperties=Array.from(e._customProperties).map(n=>({editable:!0,key:n,value:e[n]}))),o}function ze(e){return e?Array.isArray(e)?e.reduce((o,n)=>(o.keys.push(n.key),o.operations.push(n.type),o.oldValue[n.key]=n.oldValue,o.newValue[n.key]=n.newValue,o),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:O(e.type),key:O(e.key),oldValue:e.oldValue,newValue:e.newValue}:{}}function qe(e){switch(e){case N.direct:return"mutation";case N.patchFunction:return"$patch";case N.patchObject:return"$patch";default:return"unknown"}}let x=!0;const W=[],A="pinia:mutations",v="pinia",{assign:Ke}=Object,B=e=>"🍍 "+e;function Xe(e,o){pe({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:W,app:e},n=>{typeof n.now!="function"&&m("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:A,label:"Pinia 🍍",color:15064968}),n.addInspector({id:v,label:"Pinia 🍍",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{He(o)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Ge(o),n.sendInspectorTree(v),n.sendInspectorState(v)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Je(o)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Be(o),n.sendInspectorTree(v),n.sendInspectorState(v)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:t=>{const s=o._s.get(t);s?typeof s.$reset!="function"?m(`Cannot reset "${t}" store because it doesn't have a "$reset" method implemented.`,"warn"):(s.$reset(),m(`Store "${t}" reset.`)):m(`Cannot reset "${t}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((t,s)=>{const c=t.componentInstance&&t.componentInstance.proxy;if(c&&c._pStores){const i=t.componentInstance.proxy._pStores;Object.values(i).forEach(r=>{t.instanceData.state.push({type:B(r.$id),key:"state",editable:!0,value:r._isOptionsAPI?{_custom:{value:l.toRaw(r.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>r.$reset()}]}}:Object.keys(r.$state).reduce((f,h)=>(f[h]=r.$state[h],f),{})}),r._getters&&r._getters.length&&t.instanceData.state.push({type:B(r.$id),key:"getters",editable:!1,value:r._getters.reduce((f,h)=>{try{f[h]=r[h]}catch(_){f[h]=_}return f},{})})})}}),n.on.getInspectorTree(t=>{if(t.app===e&&t.inspectorId===v){let s=[o];s=s.concat(Array.from(o._s.values())),t.rootNodes=(t.filter?s.filter(c=>"$id"in c?c.$id.toLowerCase().includes(t.filter.toLowerCase()):be.toLowerCase().includes(t.filter.toLowerCase())):s).map(Qe)}}),globalThis.$pinia=o,n.on.getInspectorState(t=>{if(t.app===e&&t.inspectorId===v){const s=t.nodeId===J?o:o._s.get(t.nodeId);if(!s)return;s&&(t.nodeId!==J&&(globalThis.$store=l.toRaw(s)),t.state=Ye(s))}}),n.on.editInspectorState((t,s)=>{if(t.app===e&&t.inspectorId===v){const c=t.nodeId===J?o:o._s.get(t.nodeId);if(!c)return m(`store "${t.nodeId}" not found`,"error");const{path:i}=t;oe(c)?i.unshift("state"):(i.length!==1||!c._customProperties.has(i[0])||i[0]in c.$state)&&i.unshift("$state"),x=!1,t.set(c,i,t.state.value),x=!0}}),n.on.editComponentState(t=>{if(t.type.startsWith("🍍")){const s=t.type.replace(/^🍍\s*/,""),c=o._s.get(s);if(!c)return m(`store "${s}" not found`,"error");const{path:i}=t;if(i[0]!=="state")return m(`Invalid path for store "${s}":
6
- ${i}
7
- Only state can be modified.`);i[0]="$state",x=!1,t.set(c,i,t.state.value),x=!0}})})}function Ze(e,o){W.includes(B(o.$id))||W.push(B(o.$id)),pe({id:"dev.esm.pinia",label:"Pinia 🍍",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:W,app:e,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const t=typeof n.now=="function"?n.now.bind(n):Date.now;o.$onAction(({after:i,onError:r,name:f,args:h})=>{const _=Se++;n.addTimelineEvent({layerId:A,event:{time:t(),title:"🛫 "+f,subtitle:"start",data:{store:O(o.$id),action:O(f),args:h},groupId:_}}),i(g=>{V=void 0,n.addTimelineEvent({layerId:A,event:{time:t(),title:"🛬 "+f,subtitle:"end",data:{store:O(o.$id),action:O(f),args:h,result:g},groupId:_}})}),r(g=>{V=void 0,n.addTimelineEvent({layerId:A,event:{time:t(),logType:"error",title:"💥 "+f,subtitle:"end",data:{store:O(o.$id),action:O(f),args:h,error:g},groupId:_}})})},!0),o._customProperties.forEach(i=>{l.watch(()=>l.unref(o[i]),(r,f)=>{n.notifyComponentUpdate(),n.sendInspectorState(v),x&&n.addTimelineEvent({layerId:A,event:{time:t(),title:"Change",subtitle:i,data:{newValue:r,oldValue:f},groupId:V}})},{deep:!0})}),o.$subscribe(({events:i,type:r},f)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(v),!x)return;const h={time:t(),title:qe(r),data:Ke({store:O(o.$id)},ze(i)),groupId:V};r===N.patchFunction?h.subtitle="⤵️":r===N.patchObject?h.subtitle="🧩":i&&!Array.isArray(i)&&(h.subtitle=i.type),i&&(h.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:i}}),n.addTimelineEvent({layerId:A,event:h})},{detached:!0,flush:"sync"});const s=o._hotUpdate;o._hotUpdate=l.markRaw(i=>{s(i),n.addTimelineEvent({layerId:A,event:{time:t(),title:"🔥 "+o.$id,subtitle:"HMR update",data:{store:O(o.$id),info:O("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(v),n.sendInspectorState(v)});const{$dispose:c}=o;o.$dispose=()=>{c(),n.notifyComponentUpdate(),n.sendInspectorTree(v),n.sendInspectorState(v),n.getSettings().logStoreChanges&&m(`Disposed "${o.$id}" store 🗑`)},n.notifyComponentUpdate(),n.sendInspectorTree(v),n.sendInspectorState(v),n.getSettings().logStoreChanges&&m(`"${o.$id}" store installed 🆕`)})}let Se=0,V;function ae(e,o,n){const t=o.reduce((s,c)=>(s[c]=l.toRaw(e)[c],s),{});for(const s in t)e[s]=function(){const c=Se,i=n?new Proxy(e,{get(...f){return V=c,Reflect.get(...f)},set(...f){return V=c,Reflect.set(...f)}}):e;V=c;const r=t[s].apply(i,arguments);return V=void 0,r}}function et({app:e,store:o,options:n}){if(!o.$id.startsWith("__hot:")){if(o._isOptionsAPI=!!n.state,!o._p._testing){ae(o,Object.keys(n.actions),o._isOptionsAPI);const t=o._hotUpdate;l.toRaw(o)._hotUpdate=function(s){t.apply(this,arguments),ae(o,Object.keys(s._hmrPayload.actions),!!o._isOptionsAPI)}}Ze(e,o)}}function tt(){const e=l.effectScope(!0),o=e.run(()=>l.ref({}));let n=[],t=[];const s=l.markRaw({install(c){M(s),s._a=c,c.provide(te,s),c.config.globalProperties.$pinia=s,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&T&&Xe(c,s),t.forEach(i=>n.push(i)),t=[]},use(c){return this._a?n.push(c):t.push(c),this},_p:n,_a:null,_e:e,_s:new Map,state:o});return process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&T&&typeof Proxy<"u"&&s.use(et),s}function we(e,o){for(const n in o){const t=o[n];if(!(n in e))continue;const s=e[n];$(s)&&$(t)&&!l.isRef(t)&&!l.isReactive(t)?e[n]=we(s,t):e[n]=t}return e}const Oe=()=>{};function ue(e,o,n,t=Oe){e.push(o);const s=()=>{const c=e.indexOf(o);c>-1&&(e.splice(c,1),t())};return!n&&l.getCurrentScope()&&l.onScopeDispose(s),s}function k(e,...o){e.slice().forEach(n=>{n(...o)})}const nt=e=>e(),le=Symbol(),K=Symbol();function Z(e,o){e instanceof Map&&o instanceof Map?o.forEach((n,t)=>e.set(t,n)):e instanceof Set&&o instanceof Set&&o.forEach(e.add,e);for(const n in o){if(!o.hasOwnProperty(n))continue;const t=o[n],s=e[n];$(s)&&$(t)&&e.hasOwnProperty(n)&&!l.isRef(t)&&!l.isReactive(t)?e[n]=Z(s,t):e[n]=t}return e}const ot=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function st(e){return!$(e)||!e.hasOwnProperty(ot)}const{assign:w}=Object;function fe(e){return!!(l.isRef(e)&&e.effect)}function de(e,o,n,t){const{state:s,actions:c,getters:i}=o,r=n.state.value[e];let f;function h(){!r&&(process.env.NODE_ENV==="production"||!t)&&(n.state.value[e]=s?s():{});const _=process.env.NODE_ENV!=="production"&&t?l.toRefs(l.ref(s?s():{}).value):l.toRefs(n.state.value[e]);return w(_,c,Object.keys(i||{}).reduce((g,y)=>(process.env.NODE_ENV!=="production"&&y in _&&console.warn(`[🍍]: A getter cannot have the same name as another state property. Rename one of them. Found with "${y}" in store "${e}".`),g[y]=l.markRaw(l.computed(()=>{M(n);const E=n._s.get(e);return i[y].call(E,E)})),g),{}))}return f=ee(e,h,o,n,t,!0),f}function ee(e,o,n={},t,s,c){let i;const r=w({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!t._e.active)throw new Error("Pinia destroyed");const f={deep:!0};process.env.NODE_ENV!=="production"&&(f.onTrigger=u=>{h?E=u:h==!1&&!d._hotUpdating&&(Array.isArray(E)?E.push(u):console.error("🍍 debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let h,_,g=[],y=[],E;const D=t.state.value[e];!c&&!D&&(process.env.NODE_ENV==="production"||!s)&&(t.state.value[e]={});const Q=l.ref({});let se;function re(u){let a;h=_=!1,process.env.NODE_ENV!=="production"&&(E=[]),typeof u=="function"?(u(t.state.value[e]),a={type:N.patchFunction,storeId:e,events:E}):(Z(t.state.value[e],u),a={type:N.patchObject,payload:u,storeId:e,events:E});const p=se=Symbol();l.nextTick().then(()=>{se===p&&(h=!0)}),_=!0,k(g,a,t.state.value[e])}const Pe=c?function(){const{state:a}=n,p=a?a():{};this.$patch(b=>{w(b,p)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`🍍: Store "${e}" is built using the setup syntax and does not implement $reset().`)}:Oe;function Ie(){i.stop(),g=[],y=[],t._s.delete(e)}const Y=(u,a="")=>{if(le in u)return u[K]=a,u;const p=function(){M(t);const b=Array.from(arguments),C=[],z=[];function Te(S){C.push(S)}function Ve(S){z.push(S)}k(y,{args:b,name:p[K],store:d,after:Te,onError:Ve});let L;try{L=u.apply(this&&this.$id===e?this:d,b)}catch(S){throw k(z,S),S}return L instanceof Promise?L.then(S=>(k(C,S),S)).catch(S=>(k(z,S),Promise.reject(S))):(k(C,L),L)};return p[le]=!0,p[K]=a,p},U=l.markRaw({actions:{},getters:{},state:[],hotState:Q}),ie={_p:t,$id:e,$onAction:ue.bind(null,y),$patch:re,$reset:Pe,$subscribe(u,a={}){const p=ue(g,u,a.detached,()=>b()),b=i.run(()=>l.watch(()=>t.state.value[e],C=>{(a.flush==="sync"?_:h)&&u({storeId:e,type:N.direct,events:E},C)},w({},f,a)));return p},$dispose:Ie},d=l.reactive(process.env.NODE_ENV!=="production"||process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&T?w({_hmrPayload:U,_customProperties:l.markRaw(new Set)},ie):ie);t._s.set(e,d);const I=(t._a&&t._a.runWithContext||nt)(()=>t._e.run(()=>(i=l.effectScope()).run(()=>o({action:Y}))));for(const u in I){const a=I[u];if(l.isRef(a)&&!fe(a)||l.isReactive(a))process.env.NODE_ENV!=="production"&&s?F(Q.value,u,l.toRef(I,u)):c||(D&&st(a)&&(l.isRef(a)?a.value=D[u]:Z(a,D[u])),t.state.value[e][u]=a),process.env.NODE_ENV!=="production"&&U.state.push(u);else if(typeof a=="function"){const p=process.env.NODE_ENV!=="production"&&s?a:Y(a,u);I[u]=p,process.env.NODE_ENV!=="production"&&(U.actions[u]=a),r.actions[u]=a}else process.env.NODE_ENV!=="production"&&fe(a)&&(U.getters[u]=c?n.getters[u]:a,T&&(I._getters||(I._getters=l.markRaw([]))).push(u))}if(w(d,I),w(l.toRaw(d),I),Object.defineProperty(d,"$state",{get:()=>process.env.NODE_ENV!=="production"&&s?Q.value:t.state.value[e],set:u=>{if(process.env.NODE_ENV!=="production"&&s)throw new Error("cannot set hotState");re(a=>{w(a,u)})}}),process.env.NODE_ENV!=="production"&&(d._hotUpdate=l.markRaw(u=>{d._hotUpdating=!0,u._hmrPayload.state.forEach(a=>{if(a in d.$state){const p=u.$state[a],b=d.$state[a];typeof p=="object"&&$(p)&&$(b)?we(p,b):u.$state[a]=b}F(d,a,l.toRef(u.$state,a))}),Object.keys(d.$state).forEach(a=>{a in u.$state||q(d,a)}),h=!1,_=!1,t.state.value[e]=l.toRef(u._hmrPayload,"hotState"),_=!0,l.nextTick().then(()=>{h=!0});for(const a in u._hmrPayload.actions){const p=u[a];F(d,a,Y(p,a))}for(const a in u._hmrPayload.getters){const p=u._hmrPayload.getters[a],b=c?l.computed(()=>(M(t),p.call(d,d))):p;F(d,a,b)}Object.keys(d._hmrPayload.getters).forEach(a=>{a in u._hmrPayload.getters||q(d,a)}),Object.keys(d._hmrPayload.actions).forEach(a=>{a in u._hmrPayload.actions||q(d,a)}),d._hmrPayload=u._hmrPayload,d._getters=u._getters,d._hotUpdating=!1})),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&T){const u={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(a=>{Object.defineProperty(d,a,w({value:d[a]},u))})}return t._p.forEach(u=>{if(process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&T){const a=i.run(()=>u({store:d,app:t._a,pinia:t,options:r}));Object.keys(a||{}).forEach(p=>d._customProperties.add(p)),w(d,a)}else w(d,i.run(()=>u({store:d,app:t._a,pinia:t,options:r})))}),process.env.NODE_ENV!=="production"&&d.$state&&typeof d.$state=="object"&&typeof d.$state.constructor=="function"&&!d.$state.constructor.toString().includes("[native code]")&&console.warn(`[🍍]: The "state" must be a plain object. It cannot be
8
- state: () => new MyClass()
9
- Found in store "${d.$id}".`),D&&c&&n.hydrate&&n.hydrate(d.$state,D),h=!0,_=!0,d}/*! #__NO_SIDE_EFFECTS__ */function Ne(e,o,n){let t,s;const c=typeof o=="function";if(typeof e=="string")t=e,s=c?n:o;else if(s=e,t=e.id,process.env.NODE_ENV!=="production"&&typeof t!="string")throw new Error('[🍍]: "defineStore()" must be passed a store id as its first argument.');function i(r,f){const h=l.hasInjectionContext();if(r=(process.env.NODE_ENV==="test"&&j&&j._testing?null:r)||(h?l.inject(te,null):null),r&&M(r),process.env.NODE_ENV!=="production"&&!j)throw new Error(`[🍍]: "getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
10
- See https://pinia.vuejs.org/core-concepts/outside-component-usage.html for help.
11
- This will fail in production.`);r=j,r._s.has(t)||(c?ee(t,o,s,r):de(t,s,r),process.env.NODE_ENV!=="production"&&(i._pinia=r));const _=r._s.get(t);if(process.env.NODE_ENV!=="production"&&f){const g="__hot:"+t,y=c?ee(g,o,s,r,!0):de(g,w({},s),r,!0);f._hotUpdate(y),delete r.state.value[g],r._s.delete(g)}if(process.env.NODE_ENV!=="production"&&T){const g=l.getCurrentInstance();if(g&&g.proxy&&!f){const y=g.proxy,E="_pStores"in y?y._pStores:y._pStores={};E[t]=_}}return _}return i.$id=t,i}function rt(e){{const o=l.toRaw(e),n={};for(const t in o){const s=o[t];s.effect?n[t]=l.computed({get:()=>e[t],set(c){e[t]=c}}):(l.isRef(s)||l.isReactive(s))&&(n[t]=l.toRef(e,t))}return n}}const it=Ne("menuState",{state:()=>({rawMenu:{},menus:[],activeMenuPath:"",activeMenuOpenPaths:[],systemKey:"",menuTriggerType:"open"}),actions:{setMenus(e){this.menus=e},setMenuTriggerType(e){this.menuTriggerType=e},setSystemKey(e){this.systemKey=e},setActiveMenuPath(e){this.activeMenuPath=e,console.log("setActiveMenuPath:",e)},setActiveMenuOpenPaths(e){this.activeMenuOpenPaths=e,console.log("setActiveMenuPath-open:",e)},setRawMenu(e){this.rawMenu=e}}});exports.createPinia=tt;exports.defineStore=Ne;exports.getActivePinia=Ce;exports.storeToRefs=rt;exports.useMenuState=it;
@@ -1 +0,0 @@
1
- "use strict";const e=require("./menu-B_Az9K_F.cjs"),a=e.defineStore("modelComp",{state:()=>({itemData:[],originalData:[]}),actions:{setItemData(t){this.itemData=t,console.log("setItemData",t)},setOriginalData(t){this.originalData=t}}});exports.useModelComp=a;