mirror of
https://github.com/darksaid98/overextended.github.io.git
synced 2026-12-01 22:21:48 +00:00
deploy: e0e04a5d8c
This commit is contained in:
1 parent
2ed6b6ef88
commit
95be093552
72 files changed
+141
-141
No files matched your search
@@ -1 +0,0 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9414],{1280:function(e,t,n){var s=n(7294);t.Z=function(e){var t={fontSize:"1.7rem",paddingRight:"left"===e.side&&"0.6rem",paddingLeft:"right"===e.side&&"0.6rem",verticalAlign:"center",display:"flex"};return s.createElement("div",{style:Object.assign({width:"fit-content",height:"3rem",padding:"0.8rem",borderRadius:"0.2rem",verticalAlign:"baseline",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"white"},e.style),className:"icon-button"},"left"===e.side&&s.createElement("div",{style:t},e.icon),s.createElement("div",null,e.children),"right"===e.side&&s.createElement("div",{style:t},e.icon))}},3528:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return u},contentTitle:function(){return d},metadata:function(){return p},assets:function(){return h},toc:function(){return c},default:function(){return y}});var s=n(7462),i=n(3366),r=(n(7294),n(3905)),a=n(1280),o=n(3750),l=["components"],u={title:"Creating custom stashes"},d=void 0,p={unversionedId:"ox_inventory/Guides/stashes",id:"ox_inventory/Guides/stashes",title:"Creating custom stashes",description:"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.",source:"@site/docs/ox_inventory/Guides/stashes.md",sourceDirName:"ox_inventory/Guides",slug:"/ox_inventory/Guides/stashes",permalink:"/docs/ox_inventory/Guides/stashes",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Guides/stashes.md",tags:[],version:"current",frontMatter:{title:"Creating custom stashes"},sidebar:"docs",previous:{title:"Building inventory UI",permalink:"/docs/ox_inventory/Guides/inventory_ui"},next:{title:"Configuration",permalink:"/docs/ox_inventory/config"}},h={},c=[{value:"Example",id:"example",level:2},{value:"Example resource",id:"example-resource",level:2}],m={toc:c};function y(e){var t=e.components,n=(0,i.Z)(e,l);return(0,r.kt)("wrapper",(0,s.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties. "),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"-- id: string\n-- label: string\n-- slots: number\n-- weight: number\n-- owner: string or boolean (optional)\n-- job: table (optional)\n -- name: string\n -- grade: number\n-- coords: vector or table (optional)\n")),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"id")," - A unique name to identify the stash in the database"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"label")," - Display name when viewing the stash"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"slots")," - Number of slots that the stash will have"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"weight")," - Maximum stash weight"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"owner")," - See below"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"job")," - Key-value pairs of job name and minimum grade to access"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"coords")," - Vector or table containing coordinates")),(0,r.kt)("p",null,"The owner field will set permissions for stash access, with stashes registering to specific identifiers."),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"true: Each player has their own unique stash, but can request to open the stash of another player"),(0,r.kt)("li",{parentName:"ul"},"false: Only a single stash exists and is shared between all players"),(0,r.kt)("li",{parentName:"ul"},"string: The stash explicitly belongs to the given owner, usually a player identifier")),(0,r.kt)("p",null,"You can set the stash coordinates to prevent the stash from being opened if the player isn't close enough."),(0,r.kt)("h2",{id:"example"},"Example"),(0,r.kt)("p",null,"Below the value is hardset, but it could be loaded from the database (especially if there are unknown fields, i.e. owner)"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"-- Server\nlocal stash = {\n id = '42wallabyway',\n label = '42 Wallaby Way',\n slots = 50,\n weight = 100000,\n owner = 'char1:license'\n}\n\nAddEventHandler('onServerResourceStart', function(resourceName)\n if resourceName == 'ox_inventory' or resourceName == GetCurrentResourceName() then\n exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight, stash.owner)\n end\nend)\n\n-- Client\nexports.ox_inventory:openInventory('stash', {id='42wallabyway', owner=property.owner})\n")),(0,r.kt)("p",null,"The following sample is based on esx_property's db data."),(0,r.kt)("pre",null,(0,r.kt)("codLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9414],{1280:function(e,t,n){var s=n(7294);t.Z=function(e){var t={fontSize:"1.7rem",paddingRight:"left"===e.side&&"0.6rem",paddingLeft:"right"===e.side&&"0.6rem",verticalAlign:"center",display:"flex"};return s.createElement("div",{style:Object.assign({width:"fit-content",height:"3rem",padding:"0.8rem",borderRadius:"0.2rem",verticalAlign:"baseline",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:"white"},e.style),className:"icon-button"},"left"===e.side&&s.createElement("div",{style:t},e.icon),s.createElement("div",null,e.children),"right"===e.side&&s.createElement("div",{style:t},e.icon))}},3528:function(e,t,n){n.r(t),n.d(t,{frontMatter:function(){return u},contentTitle:function(){return d},metadata:function(){return p},assets:function(){return h},toc:function(){return c},default:function(){return y}});var s=n(7462),i=n(3366),r=(n(7294),n(3905)),a=n(1280),o=n(3750),l=["components"],u={title:"Creating custom stashes"},d=void 0,p={unversionedId:"ox_inventory/Guides/stashes",id:"ox_inventory/Guides/stashes",title:"Creating custom stashes",description:"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties.",source:"@site/docs/ox_inventory/Guides/stashes.md",sourceDirName:"ox_inventory/Guides",slug:"/ox_inventory/Guides/stashes",permalink:"/docs/ox_inventory/Guides/stashes",editUrl:"https://github.com/overextended/overextended.github.io/tree/main/docs/ox_inventory/Guides/stashes.md",tags:[],version:"current",frontMatter:{title:"Creating custom stashes"},sidebar:"docs",previous:{title:"Building inventory UI",permalink:"/docs/ox_inventory/Guides/inventory_ui"},next:{title:"Configuration",permalink:"/docs/ox_inventory/config"}},h={},c=[{value:"Example",id:"example",level:2},{value:"Example resource",id:"example-resource",level:2}],m={toc:c};function y(e){var t=e.components,n=(0,i.Z)(e,l);return(0,r.kt)("wrapper",(0,s.Z)({},m,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("p",null,"We can set up custom stashes from outside the resource utilising the exported RegisterStash function. Firstly, we need to define the stashes properties. "),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"-- id: string\n-- label: string\n-- slots: number\n-- weight: number\n-- owner: string or boolean (optional)\n-- groups: table (optional)\n -- name: string\n -- grade: number\n-- coords: vector or table (optional)\n")),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"id")," - A unique name to identify the stash in the database"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"label")," - Display name when viewing the stash"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"slots")," - Number of slots that the stash will have"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"weight")," - Maximum stash weight"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"owner")," - See below"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"groups")," - Key-value pairs of job name and minimum grade to access"),(0,r.kt)("li",{parentName:"ul"},(0,r.kt)("inlineCode",{parentName:"li"},"coords")," - Vector or table containing coordinates")),(0,r.kt)("p",null,"The owner field will set permissions for stash access, with stashes registering to specific identifiers."),(0,r.kt)("ul",null,(0,r.kt)("li",{parentName:"ul"},"true: Each player has their own unique stash, but can request to open the stash of another player"),(0,r.kt)("li",{parentName:"ul"},"false: Only a single stash exists and is shared between all players"),(0,r.kt)("li",{parentName:"ul"},"string: The stash explicitly belongs to the given owner, usually a player identifier")),(0,r.kt)("p",null,"You can set the stash coordinates to prevent the stash from being opened if the player isn't close enough."),(0,r.kt)("h2",{id:"example"},"Example"),(0,r.kt)("p",null,"Below the value is hardset, but it could be loaded from the database (especially if there are unknown fields, i.e. owner)"),(0,r.kt)("pre",null,(0,r.kt)("code",{parentName:"pre",className:"language-lua"},"-- Server\nlocal stash = {\n id = '42wallabyway',\n label = '42 Wallaby Way',\n slots = 50,\n weight = 100000,\n owner = 'char1:license'\n}\n\nAddEventHandler('onServerResourceStart', function(resourceName)\n if resourceName == 'ox_inventory' or resourceName == GetCurrentResourceName() then\n exports.ox_inventory:RegisterStash(stash.id, stash.label, stash.slots, stash.weight, stash.owner)\n end\nend)\n\n-- Client\nexports.ox_inventory:openInventory('stash', {id='42wallabyway', owner=property.owner})\n")),(0,r.kt)("p",null,"The following sample is based on esx_property's db data."),(0,r.kt)("pre",null,(0,r.ktLine truncated
|
||||
@@ -1 +1 @@
|
||||
!function(){"use strict";var e,a,f,c,t,d={},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return d[e].call(f.exports,f,f.exports,r),f.exports}r.m=d,e=[],r.O=function(a,f,c,t){if(!f){var d=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],t=e[u][2];for(var n=!0,b=0;b<f.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,1):(n=!1,t<d&&(d=t));if(n){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[f,c,t]},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var d={};a=a||[null,f({}),f([]),f(f)];for(var n=2&c&&e;"object"==typeof n&&!~a.indexOf(n);n=f(n))Object.getOwnPropertyNames(n).forEach((function(a){d[a]=function(){return e[a]}}));return d.default=function(){return e},r.d(t,d),t},r.d=function(e,a){for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(a,f){return r.f[f](e,a),a}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2202:"34a267b8",2446:"831ab327",2545:"7f968d64",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5290:"409b9a7a",5990:"c864612b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7732:"64d6ef68",7835:"23a5733a",7918:"17896441",8431:"2e6924e9",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"5c57e31c",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"6b822db2",1358:"e548efc7",1477:"ef5c39b9",1521:"95685abb",1800:"f3a08566",1884:"1244de6b",2017:"613dd3bb",2031:"c4f33690",2202:"99977215",2446:"ad1adc8e",2545:"e9ad5f87",2597:"dd2f2a42",3085:"285892b7",3120:"b3668ffc",3128:"362a36d1",3149:"a8da96bc",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"1e4c66f7",3537:"b2c608c1",3608:"c4301948",3656:"7abcb9be",3792:"f659f77d",4270:"6c6937cd",4434:"4185dca7",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5290:"e11ed082",5897:"cc508d32",5990:"ed1ec728",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"6d3b3972",6533:"def12f56",6661:"25e86019",6901:"104942f5",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"74e7ebce",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"e6db71d6",7732:"4b5bc58d",7835:"df1e6b5a",7918:"8bdb7612",8431:"11e8bd4a",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"213dd477",9414:"48c4f0ed",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"aca4441f",9874:"5007d2aa",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",r.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+f){n=i;break}}n||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",t+f),n.src=e),c[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),t&&t.forEach((function(e){return e(f)})),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),b&&document.head.appendChild(n)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineLine truncated
|
||||
!function(){"use strict";var e,a,f,c,t,d={},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var f=n[e]={exports:{}};return d[e].call(f.exports,f,f.exports,r),f.exports}r.m=d,e=[],r.O=function(a,f,c,t){if(!f){var d=1/0;for(u=0;u<e.length;u++){f=e[u][0],c=e[u][1],t=e[u][2];for(var n=!0,b=0;b<f.length;b++)(!1&t||d>=t)&&Object.keys(r.O).every((function(e){return r.O[e](f[b])}))?f.splice(b--,1):(n=!1,t<d&&(d=t));if(n){e.splice(u--,1);var o=c();void 0!==o&&(a=o)}}return a}t=t||0;for(var u=e.length;u>0&&e[u-1][2]>t;u--)e[u]=e[u-1];e[u]=[f,c,t]},r.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(a,{a:a}),a},f=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},r.t=function(e,c){if(1&c&&(e=this(e)),8&c)return e;if("object"==typeof e&&e){if(4&c&&e.__esModule)return e;if(16&c&&"function"==typeof e.then)return e}var t=Object.create(null);r.r(t);var d={};a=a||[null,f({}),f([]),f(f)];for(var n=2&c&&e;"object"==typeof n&&!~a.indexOf(n);n=f(n))Object.getOwnPropertyNames(n).forEach((function(a){d[a]=function(){return e[a]}}));return d.default=function(){return e},r.d(t,d),t},r.d=function(e,a){for(var f in a)r.o(a,f)&&!r.o(e,f)&&Object.defineProperty(e,f,{enumerable:!0,get:a[f]})},r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce((function(a,f){return r.f[f](e,a),a}),[]))},r.u=function(e){return"assets/js/"+({53:"935f2afb",219:"461f728c",336:"e836e7f0",361:"7d2d738e",763:"8c52c42d",992:"d65f8ccc",1358:"afe7e8e5",1477:"b2f554cd",1521:"0f06fd08",1800:"cfe61e10",1884:"c8b7a7b8",2017:"081aa3d8",2031:"dadefd20",2202:"34a267b8",2446:"831ab327",2545:"7f968d64",2597:"384e58e1",3085:"1f391b9e",3120:"2c127759",3128:"2ff920a5",3149:"9a9bc35c",3218:"01e0aabd",3237:"1df93b7f",3287:"5fabe7ef",3412:"ed6cb704",3537:"ec013d60",3608:"9e4087bc",3656:"1efa5838",3792:"fb92962e",4270:"3a94ab6a",4434:"c2e48a87",4467:"a301658a",4571:"ddb2ec41",4677:"fe5eec09",4772:"871b43d2",4960:"a0cc59ae",5102:"bd024966",5199:"3517af41",5290:"409b9a7a",5990:"c864612b",6169:"03b72f95",6193:"d4a6286b",6508:"7bd87f6f",6533:"0419c24a",6661:"8c5ee32e",6901:"ecb88550",6971:"c377a04b",6995:"56163916",7008:"fd4717da",7150:"a484ef80",7309:"f402e59b",7330:"011f4266",7414:"393be207",7438:"036a6f83",7653:"27ba855c",7732:"64d6ef68",7835:"23a5733a",7918:"17896441",8431:"2e6924e9",8552:"c038339d",8592:"3e61bb29",9008:"ea722c4f",9081:"475acb0d",9155:"d6b25613",9278:"75f8f779",9414:"5d7eb90d",9491:"adbed512",9514:"1be78505",9586:"85ef8f6b",9730:"daa8642d",9791:"1d131567",9874:"e381a92a",9945:"e36123ca"}[e]||e)+"."+{53:"5c57e31c",138:"8c2f12a0",219:"b820160a",336:"a0b1c040",361:"c4df82e9",763:"58fbf050",992:"6b822db2",1358:"e548efc7",1477:"ef5c39b9",1521:"95685abb",1800:"f3a08566",1884:"1244de6b",2017:"613dd3bb",2031:"c4f33690",2202:"99977215",2446:"ad1adc8e",2545:"e9ad5f87",2597:"dd2f2a42",3085:"285892b7",3120:"b3668ffc",3128:"362a36d1",3149:"a8da96bc",3218:"9a2e3610",3237:"1c5fe22a",3287:"e6dde9c7",3412:"1e4c66f7",3537:"b2c608c1",3608:"c4301948",3656:"7abcb9be",3792:"f659f77d",4270:"6c6937cd",4434:"4185dca7",4467:"ab655b70",4571:"d45737bb",4608:"622b8e38",4677:"964da253",4772:"e785d0e5",4960:"c112455b",5102:"493b5518",5199:"529a51a0",5290:"e11ed082",5897:"cc508d32",5990:"ed1ec728",6169:"1a2d33bf",6193:"082dce9f",6385:"4701e2d8",6508:"6d3b3972",6533:"def12f56",6661:"25e86019",6901:"104942f5",6971:"43108ef0",6995:"09d0d563",7008:"31a8476e",7150:"74e7ebce",7309:"d5492e0e",7330:"f863e9e9",7414:"7d8576b6",7438:"1389c135",7653:"e6db71d6",7732:"4b5bc58d",7835:"df1e6b5a",7918:"8bdb7612",8431:"11e8bd4a",8552:"f996f09e",8592:"d33acda3",9008:"cc834782",9081:"deb057d8",9155:"bde68bfc",9278:"213dd477",9414:"b25c8892",9491:"f84c0c4b",9514:"437ca93b",9586:"b2584bc5",9730:"d00cf7a5",9791:"aca4441f",9874:"5007d2aa",9945:"19621d8e"}[e]+".js"},r.miniCssF=function(e){},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},c={},t="website:",r.l=function(e,a,f,d){if(c[e])c[e].push(a);else{var n,b;if(void 0!==f)for(var o=document.getElementsByTagName("script"),u=0;u<o.length;u++){var i=o[u];if(i.getAttribute("src")==e||i.getAttribute("data-webpack")==t+f){n=i;break}}n||(b=!0,(n=document.createElement("script")).charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",t+f),n.src=e),c[e]=[a];var l=function(a,f){n.onerror=n.onload=null,clearTimeout(s);var t=c[e];if(delete c[e],n.parentNode&&n.parentNode.removeChild(n),t&&t.forEach((function(e){return e(f)})),a)return a(f)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),b&&document.head.appendChild(n)}},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineLine truncated
|
||||
Reference in new issue
Block a user