File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/ui/install/js/ui/vue3/pinia/dist/pinia.bundle.min.js
Back
(function(){if(typeof this.BX!=="undefined"&&typeof this.BX.Vue3!=="undefined"&&typeof this.BX.Vue3.Pinia!=="undefined"){var t="2.0.11";if(this.BX.Vue3.Pinia.version!==t){console.warn("BX.Vue3.Pinia already loaded. Loaded: "+this.BX.Vue3.Pinia.version+", Skipped: "+t+". Version differences may cause errors!")}return}this.BX=this.BX||{};this.BX.Vue3=this.BX.Vue3||{};(function(t,e){"use strict"; /** * pinia v2.0.11 * (c) 2022 Eduardo San Martin Morote * @license MIT * * @source: https://unpkg.com/pinia@2.0.11/dist/pinia.esm-browser.js * @source: https://github.com/vueuse/vue-demi/blob/master/lib/v3/index.cjs */const n=e.BitrixVue.developerMode?"development":"production";const o=false;function i(t,e,n){if(Array.isArray(t)){t.length=Math.max(t.length,e);t.splice(e,1,n)}else if(typeof t==="object"){t[e]=n}return n}function r(t,e){if(Array.isArray(t)){t.splice(e,1)}else if(typeof t==="object"){delete t[e]}}function s(){return a().__VUE_DEVTOOLS_GLOBAL_HOOK__}function a(){return typeof navigator!=="undefined"?window:typeof global!=="undefined"?global:{}}const c="devtools-plugin:setup";function u(t,e){const n=s();if(n){n.emit(c,t,e)}else{const n=a();const o=n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[];o.push({pluginDescriptor:t,setupFn:e})}}let l;const p=t=>l=t;const f=()=>e.getCurrentInstance()&&e.inject(d)||l;const d=n!=="production"?Symbol("pinia"):Symbol();function h(t){return t&&typeof t==="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!=="function"}(function(t){t["direct"]="direct";t["patchObject"]="patch object";t["patchFunction"]="patch function"})(t.MutationType||(t.MutationType={}));const y=typeof window!=="undefined";const g=(()=>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 m(t,{autoBom:e=false}={}){if(e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)){return new Blob([String.fromCharCode(65279),t],{type:t.type})}return t}function _(t,e,n){const o=new XMLHttpRequest;o.open("GET",t);o.responseType="blob";o.onload=function(){S(o.response,e,n)};o.onerror=function(){console.error("could not download file")};o.send()}function b(t){const e=new XMLHttpRequest;e.open("HEAD",t,false);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function v(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(e){const n=document.createEvent("MouseEvents");n.initMouseEvent("click",true,true,window,0,0,0,80,20,false,false,false,false,0,null);t.dispatchEvent(n)}}const w=typeof navigator==="object"?navigator:{userAgent:""};const $=(()=>/Macintosh/.test(w.userAgent)&&/AppleWebKit/.test(w.userAgent)&&!/Safari/.test(w.userAgent))();const S=!y?()=>{}:typeof HTMLAnchorElement!=="undefined"&&"download"in HTMLAnchorElement.prototype&&!$?P:"msSaveOrOpenBlob"in w?O:T;function P(t,e="download",n){const o=document.createElement("a");o.download=e;o.rel="noopener";if(typeof t==="string"){o.href=t;if(o.origin!==location.origin){if(b(o.href)){_(t,e,n)}else{o.target="_blank";v(o)}}else{v(o)}}else{o.href=URL.createObjectURL(t);setTimeout((function(){URL.revokeObjectURL(o.href)}),4e4);setTimeout((function(){v(o)}),0)}}function O(t,e="download",n){if(typeof t==="string"){if(b(t)){_(t,e,n)}else{const e=document.createElement("a");e.href=t;e.target="_blank";setTimeout((function(){v(e)}))}}else{navigator.msSaveOrOpenBlob(m(t,n),e)}}function T(t,e,n,o){o=o||open("","_blank");if(o){o.document.title=o.document.body.innerText="downloading..."}if(typeof t==="string")return _(t,e,n);const i=t.type==="application/octet-stream";const r=/constructor/i.test(String(g.HTMLElement))||"safari"in g;const s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&r||$)&&typeof FileReader!=="undefined"){const e=new FileReader;e.onloadend=function(){let t=e.result;if(typeof t!=="string"){o=null;throw new Error("Wrong reader.result type")}t=s?t:t.replace(/^data:[^;]*;/,"data:attachment/file;");if(o){o.location.href=t}else{location.assign(t)}o=null};e.readAsDataURL(t)}else{const e=URL.createObjectURL(t);if(o)o.location.assign(e);else location.href=e;o=null;setTimeout((function(){URL.revokeObjectURL(e)}),4e4)}}function k(t,e){const n="Pinia: "+t;if(typeof __VUE_DEVTOOLS_TOAST__==="function"){__VUE_DEVTOOLS_TOAST__(n,e)}else if(e==="error"){console.error(n)}else if(e==="warn"){console.warn(n)}else{console.log(n)}}function E(t){return"_a"in t&&"install"in t}function R(){if(!("clipboard"in navigator)){k(`Your browser doesn't support the Clipboard API`,"error");return true}}function I(t){if(t instanceof Error&&t.message.toLowerCase().includes("document is not focused")){k('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn");return true}return false}async function j(t){if(R())return;try{await navigator.clipboard.writeText(JSON.stringify(t.state.value));k("Global state copied to clipboard.")}catch(t){if(I(t))return;k(`Failed to serialize the state. Check the console for more details.`,"error");console.error(t)}}async function A(t){if(R())return;try{t.state.value=JSON.parse(await navigator.clipboard.readText());k("Global state pasted from clipboard.")}catch(t){if(I(t))return;k(`Failed to deserialize the state from clipboard. Check the console for more details.`,"error");console.error(t)}}async function V(t){try{S(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(t){k(`Failed to export the state as JSON. Check the console for more details.`,"error");console.error(t)}}let U;function L(){if(!U){U=document.createElement("input");U.type="file";U.accept=".json"}function t(){return new Promise(((t,e)=>{U.onchange=async()=>{const e=U.files;if(!e)return t(null);const n=e.item(0);if(!n)return t(null);return t({text:await n.text(),file:n})};U.oncancel=()=>t(null);U.onerror=e;U.click()}))}return t}async function C(t){try{const e=await L();const n=await e();if(!n)return;const{text:o,file:i}=n;t.state.value=JSON.parse(o);k(`Global state imported from "${i.name}".`)}catch(t){k(`Failed to export the state as JSON. Check the console for more details.`,"error");console.error(t)}}function M(t){return{_custom:{display:t}}}const x="Pinia (root)";const D="_root";function B(t){return E(t)?{id:D,label:x}:{id:t.$id,label:t.$id}}function X(t){if(E(t)){const e=Array.from(t._s.keys());const n=t._s;const o={state:e.map((e=>({editable:true,key:e,value:t.state.value[e]}))),getters:e.filter((t=>n.get(t)._getters)).map((t=>{const e=n.get(t);return{editable:false,key:t,value:e._getters.reduce(((t,n)=>{t[n]=e[n];return t}),{})}}))};return o}const e={state:Object.keys(t.$state).map((e=>({editable:true,key:e,value:t.$state[e]})))};if(t._getters&&t._getters.length){e.getters=t._getters.map((e=>({editable:false,key:e,value:t[e]})))}if(t._customProperties.size){e.customProperties=Array.from(t._customProperties).map((e=>({editable:true,key:e,value:t[e]})))}return e}function N(t){if(!t)return{};if(Array.isArray(t)){return t.reduce(((t,e)=>{t.keys.push(e.key);t.operations.push(e.type);t.oldValue[e.key]=e.oldValue;t.newValue[e.key]=e.newValue;return t}),{oldValue:{},keys:[],operations:[],newValue:{}})}else{return{operation:M(t.type),key:M(t.key),oldValue:t.oldValue,newValue:t.newValue}}}function F(e){switch(e){case t.MutationType.direct:return"mutation";case t.MutationType.patchFunction:return"$patch";case t.MutationType.patchObject:return"$patch";default:return"unknown"}}let H=true;const J=[];const G="pinia:mutations";const W="pinia";const z=t=>":Pinia: "+t;function q(t,e){u({id:"dev.esm.pinia",label:"Pinia",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:J,app:t},(n=>{n.addTimelineLayer({id:G,label:`Pinia`,color:15064968});n.addInspector({id:W,label:"Pinia",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{j(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await A(e);n.sendInspectorTree(W);n.sendInspectorState(W)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{V(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await C(e);n.sendInspectorTree(W);n.sendInspectorState(W)},tooltip:"Import the state from a JSON file"}]});n.on.inspectComponent(((t,e)=>{const n=t.componentInstance&&t.componentInstance.proxy;if(n&&n._pStores){const e=t.componentInstance.proxy._pStores;Object.values(e).forEach((e=>{t.instanceData.state.push({type:z(e.$id),key:"state",editable:true,value:e._isOptionsAPI?{_custom:{value:e.$state,actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>e.$reset()}]}}:e.$state});if(e._getters&&e._getters.length){t.instanceData.state.push({type:z(e.$id),key:"getters",editable:false,value:e._getters.reduce(((t,n)=>{t[n]=e[n];return t}),{})})}}))}}));n.on.getInspectorTree((n=>{if(n.app===t&&n.inspectorId===W){let t=[e];t=t.concat(Array.from(e._s.values()));n.rootNodes=(n.filter?t.filter((t=>"$id"in t?t.$id.toLowerCase().includes(n.filter.toLowerCase()):x.toLowerCase().includes(n.filter.toLowerCase()))):t).map(B)}}));n.on.getInspectorState((n=>{if(n.app===t&&n.inspectorId===W){const t=n.nodeId===D?e:e._s.get(n.nodeId);if(!t){return}if(t){n.state=X(t)}}}));n.on.editInspectorState(((n,o)=>{if(n.app===t&&n.inspectorId===W){const t=n.nodeId===D?e:e._s.get(n.nodeId);if(!t){return k(`store "${n.nodeId}" not found`,"error")}const{path:o}=n;if(!E(t)){if(o.length!==1||!t._customProperties.has(o[0])||o[0]in t.$state){o.unshift("$state")}}else{o.unshift("state")}H=false;n.set(t,o,n.state.value);H=true}}));n.on.editComponentState((t=>{if(t.type.startsWith(":Pinia:")){const n=t.type.replace(/^:Pinia:\s*/,"");const o=e._s.get(n);if(!o){return k(`store "${n}" not found`,"error")}const{path:i}=t;if(i[0]!=="state"){return k(`Invalid path for store "${n}":\n${i}\nOnly state can be modified.`)}i[0]="$state";H=false;t.set(o,i,t.state.value);H=true}}))}))}function K(n,o){if(!J.includes(z(o.$id))){J.push(z(o.$id))}u({id:"dev.esm.pinia",label:"Pinia",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:J,app:n,settings:{}},(n=>{o.$onAction((({after:t,onError:e,name:i,args:r})=>{const s=Y++;n.addTimelineEvent({layerId:G,event:{time:Date.now(),title:"Start "+i,subtitle:"start",data:{store:M(o.$id),action:M(i),args:r},groupId:s}});t((t=>{Q=undefined;n.addTimelineEvent({layerId:G,event:{time:Date.now(),title:"End "+i,subtitle:"end",data:{store:M(o.$id),action:M(i),args:r,result:t},groupId:s}})}));e((t=>{Q=undefined;n.addTimelineEvent({layerId:G,event:{time:Date.now(),logType:"error",title:"Error "+i,subtitle:"end",data:{store:M(o.$id),action:M(i),args:r,error:t},groupId:s}})}))}),true);o._customProperties.forEach((t=>{e.watch((()=>e.unref(o[t])),((e,o)=>{n.notifyComponentUpdate();n.sendInspectorState(W);if(H){n.addTimelineEvent({layerId:G,event:{time:Date.now(),title:"Change",subtitle:t,data:{newValue:e,oldValue:o},groupId:Q}})}}),{deep:true})}));o.$subscribe((({events:e,type:i},r)=>{n.notifyComponentUpdate();n.sendInspectorState(W);if(!H)return;const s={time:Date.now(),title:F(i),data:{store:M(o.$id),...N(e)},groupId:Q};Q=undefined;if(i===t.MutationType.patchFunction){s.subtitle="Down"}else if(i===t.MutationType.patchObject){s.subtitle="Patch"}else if(e&&!Array.isArray(e)){s.subtitle=e.type}if(e){s.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:e}}}n.addTimelineEvent({layerId:G,event:s})}),{detached:true,flush:"sync"});const i=o._hotUpdate;o._hotUpdate=e.markRaw((t=>{i(t);n.addTimelineEvent({layerId:G,event:{time:Date.now(),title:"Update "+o.$id,subtitle:"HMR update",data:{store:M(o.$id),info:M(`HMR update`)}}});n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W)}));const{$dispose:r}=o;o.$dispose=()=>{r();n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W);k(`Disposed "${o.$id}" store`)};n.notifyComponentUpdate();n.sendInspectorTree(W);n.sendInspectorState(W);k(`"${o.$id}" store installed`)}))}let Y=0;let Q;function Z(t,n){const o=n.reduce(((n,o)=>{n[o]=e.toRaw(t)[o];return n}),{});for(const e in o){t[e]=function(){const n=Y;const i=new Proxy(t,{get(...t){Q=n;return Reflect.get(...t)},set(...t){Q=n;return Reflect.set(...t)}});return o[e].apply(i,arguments)}}}function tt({app:t,store:n,options:o}){if(n.$id.startsWith("__hot:")){return}if(o.state){n._isOptionsAPI=true}if(typeof o.state==="function"){Z(n,Object.keys(o.actions));const t=n._hotUpdate;e.toRaw(n)._hotUpdate=function(e){t.apply(this,arguments);Z(n,Object.keys(e._hmrPayload.actions))}}K(t,n)}function et(){const t=e.effectScope(true);const i=t.run((()=>e.ref({})));let r=[];let s=[];const a=e.markRaw({install(t){p(a);{a._a=t;t.provide(d,a);t.config.globalProperties.$pinia=a;if(n!=="production"&&y){q(t,a)}s.forEach((t=>r.push(t)));s=[]}},use(t){if(!this._a&&!o){s.push(t)}else{r.push(t)}return this},_p:r,_a:null,_e:t,_s:new Map,state:i});if(n!=="production"&&y){a.use(tt)}return a}const nt=t=>typeof t==="function"&&typeof t.$id==="string";function ot(t,n){for(const o in n){const i=n[o];if(!(o in t)){continue}const r=t[o];if(h(r)&&h(i)&&!e.isRef(i)&&!e.isReactive(i)){t[o]=ot(r,i)}else{{t[o]=i}}}return t}function it(t,e){return n=>{const o=e.data.pinia||t._pinia;if(!o){return}e.data.pinia=o;for(const i in n){const r=n[i];if(nt(r)&&o._s.has(r.$id)){const n=r.$id;if(n!==t.$id){console.warn(`The id of the store changed from "${t.$id}" to "${n}". Reloading.`);return e.invalidate()}const i=o._s.get(n);if(!i){console.log(`skipping hmr because store doesn't exist yet`);return}r(o,i)}}}}const rt=()=>{};function st(t,n,o,i=rt){t.push(n);const r=()=>{const e=t.indexOf(n);if(e>-1){t.splice(e,1);i()}};if(!o&&e.getCurrentInstance()){e.onUnmounted(r)}return r}function at(t,...e){t.slice().forEach((t=>{t(...e)}))}function ct(t,n){for(const o in n){const i=n[o];const r=t[o];if(h(r)&&h(i)&&!e.isRef(i)&&!e.isReactive(i)){t[o]=ct(r,i)}else{t[o]=i}}return t}const ut=n!=="production"?Symbol("pinia:skipHydration"):Symbol();function lt(t){return Object.defineProperty(t,ut,{})}function pt(t){return!h(t)||!t.hasOwnProperty(ut)}const{assign:ft}=Object;function dt(t){return!!(e.isRef(t)&&t.effect)}function ht(t,o,i,r){const{state:s,actions:a,getters:c}=o;const u=i.state.value[t];let l;function f(){if(!u&&(!(n!=="production")||!r)){{i.state.value[t]=s?s():{}}}const o=n!=="production"&&r?e.toRefs(e.ref(s?s():{}).value):e.toRefs(i.state.value[t]);return ft(o,a,Object.keys(c||{}).reduce(((n,o)=>{n[o]=e.markRaw(e.computed((()=>{p(i);const e=i._s.get(t);return c[o].call(e,e)})));return n}),{}))}l=yt(t,f,o,i,r);l.$reset=function t(){const e=s?s():{};this.$patch((t=>{ft(t,e)}))};return l}function yt(s,a,c={},u,l){let f;const d=c.state;const g=ft({actions:{}},c);if(n!=="production"&&!u._e.active){throw new Error("Pinia destroyed")}const m={deep:true};if(n!=="production"&&!o){m.onTrigger=t=>{if(_){$=t}else if(_==false&&!j._hotUpdating){if(Array.isArray($)){$.push(t)}else{console.error("Pinia: debuggerEvents should be an array. This is most likely an internal Pinia bug.")}}}}let _;let b;let v=e.markRaw([]);let w=e.markRaw([]);let $;const S=u.state.value[s];if(!d&&!S&&(!(n!=="production")||!l)){{u.state.value[s]={}}}const P=e.ref({});function O(o){let i;_=b=false;if(n!=="production"){$=[]}if(typeof o==="function"){o(u.state.value[s]);i={type:t.MutationType.patchFunction,storeId:s,events:$}}else{ct(u.state.value[s],o);i={type:t.MutationType.patchObject,payload:o,storeId:s,events:$}}e.nextTick().then((()=>{_=true}));b=true;at(v,i,u.state.value[s])}const T=n!=="production"?()=>{throw new Error(`Pinia: Store "${s}" is build using the setup syntax and does not implement $reset().`)}:rt;function k(){f.stop();v=[];w=[];u._s.delete(s)}function E(t,e){return function(){p(u);const n=Array.from(arguments);const o=[];const i=[];function r(t){o.push(t)}function a(t){i.push(t)}at(w,{args:n,name:t,store:j,after:r,onError:a});let c;try{c=e.apply(this&&this.$id===s?this:j,n)}catch(t){at(i,t);throw t}if(c instanceof Promise){return c.then((t=>{at(o,t);return t})).catch((t=>{at(i,t);return Promise.reject(t)}))}at(o,c);return c}}const R=e.markRaw({actions:{},getters:{},state:[],hotState:P});const I={_p:u,$id:s,$onAction:st.bind(null,w),$patch:O,$reset:T,$subscribe(n,o={}){const i=st(v,n,o.detached,(()=>r()));const r=f.run((()=>e.watch((()=>u.state.value[s]),(e=>{if(o.flush==="sync"?b:_){n({storeId:s,type:t.MutationType.direct,events:$},e)}}),ft({},m,o))));return i},$dispose:k};const j=e.reactive(ft(n!=="production"&&y?{_customProperties:e.markRaw(new Set),_hmrPayload:R}:{},I));u._s.set(s,j);const A=u._e.run((()=>{f=e.effectScope();return f.run((()=>a()))}));for(const t in A){const o=A[t];if(e.isRef(o)&&!dt(o)||e.isReactive(o)){if(n!=="production"&&l){i(P.value,t,e.toRef(A,t))}else if(!d){if(S&&pt(o)){if(e.isRef(o)){o.value=S[t]}else{ct(o,S[t])}}{u.state.value[s][t]=o}}if(n!=="production"){R.state.push(t)}}else if(typeof o==="function"){const e=n!=="production"&&l?o:E(t,o);{A[t]=e}if(n!=="production"){R.actions[t]=o}g.actions[t]=o}else if(n!=="production"){if(dt(o)){R.getters[t]=d?c.getters[t]:o;if(y){const n=A._getters||(A._getters=e.markRaw([]));n.push(t)}}}}{ft(j,A);ft(e.toRaw(j),A)}Object.defineProperty(j,"$state",{get:()=>n!=="production"&&l?P.value:u.state.value[s],set:t=>{if(n!=="production"&&l){throw new Error("cannot set hotState")}O((e=>{ft(e,t)}))}});if(n!=="production"){j._hotUpdate=e.markRaw((t=>{j._hotUpdating=true;t._hmrPayload.state.forEach((n=>{if(n in j.$state){const e=t.$state[n];const o=j.$state[n];if(typeof e==="object"&&h(e)&&h(o)){ot(e,o)}else{t.$state[n]=o}}i(j,n,e.toRef(t.$state,n))}));Object.keys(j.$state).forEach((e=>{if(!(e in t.$state)){r(j,e)}}));_=false;b=false;u.state.value[s]=e.toRef(t._hmrPayload,"hotState");b=true;e.nextTick().then((()=>{_=true}));for(const e in t._hmrPayload.actions){const n=t[e];i(j,e,E(e,n))}for(const n in t._hmrPayload.getters){const o=t._hmrPayload.getters[n];const r=d?e.computed((()=>{p(u);return o.call(j,j)})):o;i(j,n,r)}Object.keys(j._hmrPayload.getters).forEach((e=>{if(!(e in t._hmrPayload.getters)){r(j,e)}}));Object.keys(j._hmrPayload.actions).forEach((e=>{if(!(e in t._hmrPayload.actions)){r(j,e)}}));j._hmrPayload=t._hmrPayload;j._getters=t._getters;j._hotUpdating=false}));const t={writable:true,configurable:true,enumerable:false};if(y){["_p","_hmrPayload","_getters","_customProperties"].forEach((e=>{Object.defineProperty(j,e,{value:j[e],...t})}))}}u._p.forEach((t=>{if(n!=="production"&&y){const e=f.run((()=>t({store:j,app:u._a,pinia:u,options:g})));Object.keys(e||{}).forEach((t=>j._customProperties.add(t)));ft(j,e)}else{ft(j,f.run((()=>t({store:j,app:u._a,pinia:u,options:g}))))}}));if(n!=="production"&&j.$state&&typeof j.$state==="object"&&typeof j.$state.constructor==="function"&&!j.$state.constructor.toString().includes("[native code]")){console.warn(`[Pinia]: The "state" must be a plain object. It cannot be\n`+`\tstate: () => new MyClass()\n`+`Found in store "${j.$id}".`)}if(S&&d&&c.hydrate){c.hydrate(j.$state,S)}_=true;b=true;return j}function gt(t,o,i){let r;let s;const a=typeof o==="function";if(typeof t==="string"){r=t;s=a?i:o}else{s=t;r=t.id}function c(t,i){const u=e.getCurrentInstance();t=(n==="test"&&l&&l._testing?null:t)||u&&e.inject(d);if(t)p(t);if(n!=="production"&&!l){throw new Error(`[Pinia]: getActivePinia was called with no active Pinia. Did you forget to install pinia?\n`+`\tconst pinia = createPinia()\n`+`\tapp.use(pinia)\n`+`This will fail in production.`)}t=l;if(!t._s.has(r)){if(a){yt(r,o,s,t)}else{ht(r,s,t)}if(n!=="production"){c._pinia=t}}const f=t._s.get(r);if(n!=="production"&&i){const e="__hot:"+r;const n=a?yt(e,o,s,t,true):ht(e,ft({},s),t,true);i._hotUpdate(n);delete t.state.value[e];t._s.delete(e)}if(n!=="production"&&y&&u&&u.proxy&&!i){const t=u.proxy;const e="_pStores"in t?t._pStores:t._pStores={};e[r]=f}return f}c.$id=r;return c}let mt="Store";function _t(t){mt=t}function bt(...t){if(n!=="production"&&Array.isArray(t[0])){console.warn(`[Pinia]: Directly pass all stores to "mapStores()" without putting them in an array:\n`+`Replace\n`+`\tmapStores([useAuthStore, useCartStore])\n`+`with\n`+`\tmapStores(useAuthStore, useCartStore)\n`+`This will fail in production if not fixed.`);t=t[0]}return t.reduce(((t,e)=>{t[e.$id+mt]=function(){return e(this.$pinia)};return t}),{})}function vt(t,e){return Array.isArray(e)?e.reduce(((e,n)=>{e[n]=function(){return t(this.$pinia)[n]};return e}),{}):Object.keys(e).reduce(((n,o)=>{n[o]=function(){const n=t(this.$pinia);const i=e[o];return typeof i==="function"?i.call(this,n):n[i]};return n}),{})}const wt=vt;function $t(t,e){return Array.isArray(e)?e.reduce(((e,n)=>{e[n]=function(...e){return t(this.$pinia)[n](...e)};return e}),{}):Object.keys(e).reduce(((n,o)=>{n[o]=function(...n){return t(this.$pinia)[e[o]](...n)};return n}),{})}function St(t,e){return Array.isArray(e)?e.reduce(((e,n)=>{e[n]={get(){return t(this.$pinia)[n]},set(e){return t(this.$pinia)[n]=e}};return e}),{}):Object.keys(e).reduce(((n,o)=>{n[o]={get(){return t(this.$pinia)[e[o]]},set(n){return t(this.$pinia)[e[o]]=n}};return n}),{})}function Pt(t){t=e.toRaw(t);const n={};for(const o in t){const i=t[o];if(e.isRef(i)||e.isReactive(i)){n[o]=e.toRef(t,o)}}return n}const Ot=function(t){t.mixin({beforeCreate(){const t=this.$options;if(t.pinia){const e=t.pinia;if(!this._provided){const t={};Object.defineProperty(this,"_provided",{get:()=>t,set:e=>Object.assign(t,e)})}this._provided[d]=e;if(!this.$pinia){this.$pinia=e}e._a=this;if(y){p(e);if(n!=="production"){q(e._a,e)}}}else if(!this.$pinia&&t.parent&&t.parent.$pinia){this.$pinia=t.parent.$pinia}},destroyed(){delete this._pStores}})};const Tt="2.0.11";t.PiniaVuePlugin=Ot;t.acceptHMRUpdate=it;t.createPinia=et;t.defineStore=gt;t.getActivePinia=f;t.mapActions=$t;t.mapGetters=wt;t.mapState=vt;t.mapStores=bt;t.mapWritableState=St;t.setActivePinia=p;t.setMapStoreSuffix=_t;t.skipHydrate=lt;t.storeToRefs=Pt;t.version=Tt})(this.BX.Vue3.Pinia=this.BX.Vue3.Pinia||{},BX.Vue3)})(); //# sourceMappingURL=pinia.bundle.map.js
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings