nautobot 3.0.0rc1__py3-none-any.whl → 3.0.1__py3-none-any.whl

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.

Potentially problematic release.


This version of nautobot might be problematic. Click here for more details.

Files changed (103) hide show
  1. nautobot/apps/forms.py +8 -0
  2. nautobot/apps/templatetags.py +231 -0
  3. nautobot/apps/testing.py +11 -1
  4. nautobot/apps/ui.py +21 -1
  5. nautobot/apps/utils.py +26 -1
  6. nautobot/core/celery/__init__.py +46 -1
  7. nautobot/core/cli/bootstrap_v3_to_v5.py +185 -44
  8. nautobot/core/cli/bootstrap_v3_to_v5_changes.yaml +314 -0
  9. nautobot/core/graphql/generators.py +2 -2
  10. nautobot/core/jobs/bulk_actions.py +12 -6
  11. nautobot/core/jobs/cleanup.py +13 -1
  12. nautobot/core/settings.py +13 -0
  13. nautobot/core/settings.yaml +22 -0
  14. nautobot/core/settings_funcs.py +11 -1
  15. nautobot/core/tables.py +19 -1
  16. nautobot/core/templates/components/panel/body_wrapper_generic_table.html +1 -1
  17. nautobot/core/templates/components/panel/header_extra_content_table.html +9 -3
  18. nautobot/core/templates/generic/object_create.html +1 -1
  19. nautobot/core/templates/inc/header.html +9 -10
  20. nautobot/core/templates/login.html +16 -1
  21. nautobot/core/templates/nautobot_config.py.j2 +14 -1
  22. nautobot/core/templates/redoc_ui.html +3 -0
  23. nautobot/core/templatetags/helpers.py +3 -3
  24. nautobot/core/testing/views.py +3 -1
  25. nautobot/core/tests/test_graphql.py +13 -0
  26. nautobot/core/tests/test_jobs.py +118 -0
  27. nautobot/core/tests/test_views.py +24 -0
  28. nautobot/core/ui/bulk_buttons.py +2 -3
  29. nautobot/core/utils/lookup.py +2 -3
  30. nautobot/core/utils/permissions.py +1 -1
  31. nautobot/core/views/generic.py +1 -0
  32. nautobot/core/views/mixins.py +37 -10
  33. nautobot/core/views/renderers.py +1 -0
  34. nautobot/core/views/utils.py +3 -3
  35. nautobot/data_validation/views.py +1 -9
  36. nautobot/dcim/forms.py +9 -9
  37. nautobot/dcim/models/devices.py +3 -3
  38. nautobot/dcim/tables/power.py +3 -0
  39. nautobot/dcim/templates/dcim/controllermanageddevicegroup_create.html +1 -1
  40. nautobot/dcim/views.py +30 -44
  41. nautobot/extras/api/views.py +14 -3
  42. nautobot/extras/choices.py +3 -0
  43. nautobot/extras/jobs.py +48 -2
  44. nautobot/extras/migrations/0132_approval_workflow_seed_data.py +127 -0
  45. nautobot/extras/models/approvals.py +11 -1
  46. nautobot/extras/models/models.py +19 -0
  47. nautobot/extras/models/relationships.py +3 -1
  48. nautobot/extras/tables.py +35 -18
  49. nautobot/extras/templates/extras/approval_workflow/approve.html +9 -2
  50. nautobot/extras/templates/extras/approval_workflow/deny.html +9 -3
  51. nautobot/extras/templates/extras/approvalworkflowdefinition_update.html +1 -1
  52. nautobot/extras/templates/extras/customfield_update.html +1 -1
  53. nautobot/extras/templates/extras/dynamicgroup_update.html +2 -2
  54. nautobot/extras/templates/extras/inc/approval_buttons_column.html +10 -2
  55. nautobot/extras/templates/extras/inc/job_tiles.html +2 -2
  56. nautobot/extras/templates/extras/inc/jobresult.html +1 -1
  57. nautobot/extras/templates/extras/metadatatype_create.html +1 -1
  58. nautobot/extras/templates/extras/object_approvalworkflow.html +2 -3
  59. nautobot/extras/templates/extras/secretsgroup_update.html +1 -1
  60. nautobot/extras/tests/test_api.py +57 -3
  61. nautobot/extras/tests/test_customfields_filters.py +84 -4
  62. nautobot/extras/tests/test_views.py +323 -6
  63. nautobot/extras/views.py +114 -39
  64. nautobot/ipam/constants.py +2 -2
  65. nautobot/ipam/tables.py +7 -6
  66. nautobot/load_balancers/constants.py +6 -0
  67. nautobot/load_balancers/migrations/0001_initial.py +14 -3
  68. nautobot/load_balancers/models.py +5 -4
  69. nautobot/load_balancers/tables.py +5 -0
  70. nautobot/project-static/dist/css/nautobot.css +1 -1
  71. nautobot/project-static/dist/css/nautobot.css.map +1 -1
  72. nautobot/project-static/dist/js/graphql-libraries.js +1 -1
  73. nautobot/project-static/dist/js/graphql-libraries.js.map +1 -1
  74. nautobot/project-static/dist/js/libraries.js +1 -1
  75. nautobot/project-static/dist/js/libraries.js.LICENSE.txt +38 -2
  76. nautobot/project-static/dist/js/libraries.js.map +1 -1
  77. nautobot/project-static/dist/js/nautobot-graphiql.js +1 -1
  78. nautobot/project-static/dist/js/nautobot-graphiql.js.map +1 -1
  79. nautobot/project-static/dist/js/nautobot.js +1 -1
  80. nautobot/project-static/dist/js/nautobot.js.map +1 -1
  81. nautobot/project-static/img/dark-theme.png +0 -0
  82. nautobot/project-static/img/light-theme.png +0 -0
  83. nautobot/project-static/img/system-theme.png +0 -0
  84. nautobot/project-static/js/forms.js +1 -85
  85. nautobot/tenancy/tables.py +3 -2
  86. nautobot/tenancy/views.py +3 -2
  87. nautobot/ui/package-lock.json +553 -569
  88. nautobot/ui/package.json +10 -10
  89. nautobot/ui/src/js/checkbox.js +132 -0
  90. nautobot/ui/src/js/nautobot.js +6 -0
  91. nautobot/ui/src/js/select2.js +69 -73
  92. nautobot/ui/src/js/theme.js +129 -39
  93. nautobot/ui/src/scss/nautobot.scss +11 -1
  94. nautobot/vpn/templates/vpn/vpnprofile_create.html +2 -2
  95. nautobot/wireless/filters.py +15 -1
  96. nautobot/wireless/tables.py +18 -14
  97. nautobot/wireless/templates/wireless/wirelessnetwork_create.html +1 -1
  98. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/METADATA +2 -2
  99. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/RECORD +103 -98
  100. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/LICENSE.txt +0 -0
  101. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/NOTICE +0 -0
  102. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/WHEEL +0 -0
  103. {nautobot-3.0.0rc1.dist-info → nautobot-3.0.1.dist-info}/entry_points.txt +0 -0
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e,r,t,o={6086:(e,r,t)=>{var o=t(3724),n=t(162),i=t(4661),a=t(4789),f=t(6540),c=t(961),u=t(8624);i.Jd.createFetcher=n.createGraphiQLFetcher,window.fetch=u.hd,window.graphqlWs=a,window.GraphiQL=i.Jd,window.GraphiQLPluginExplorer=o,window.React=f,window.ReactDOM=c}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.m=o,e=[],i.O=(r,t,o,n)=>{if(!t){var a=1/0;for(l=0;l<e.length;l++){for(var[t,o,n]=e[l],f=!0,c=0;c<t.length;c++)(!1&n||a>=n)&&Object.keys(i.O).every((e=>i.O[e](t[c])))?t.splice(c--,1):(f=!1,n<a&&(a=n));if(f){e.splice(l--,1);var u=o();void 0!==u&&(r=u)}}return r}n=n||0;for(var l=e.length;l>0&&e[l-1][2]>n;l--)e[l]=e[l-1];e[l]=[t,o,n]},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var a={};r=r||[null,t({}),t([]),t(t)];for(var f=2&o&&e;"object"==typeof f&&!~r.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach((r=>a[r]=()=>e[r]));return a.default=()=>e,i.d(n,a),n},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.e=()=>Promise.resolve(),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={116:0};i.O.j=r=>0===e[r];var r=(r,t)=>{var o,n,[a,f,c]=t,u=0;if(a.some((r=>0!==e[r]))){for(o in f)i.o(f,o)&&(i.m[o]=f[o]);if(c)var l=c(i)}for(r&&r(t);u<a.length;u++)n=a[u],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(l)},t=self.webpackChunknautobot=self.webpackChunknautobot||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0;var a=i.O(void 0,[748],(()=>i(6086)));a=i.O(a)})();
1
+ (()=>{"use strict";var e,r,t,o={6086:(e,r,t)=>{var o=t(3724),n=t(162),i=t(4661),a=t(4789),f=t(6540),c=t(961),u=t(8624);i.Jd.createFetcher=n.createGraphiQLFetcher,window.fetch=u.hd,window.graphqlWs=a,window.GraphiQL=i.Jd,window.GraphiQLPluginExplorer=o,window.React=f,window.ReactDOM=c}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var t=n[e]={exports:{}};return o[e](t,t.exports,i),t.exports}i.m=o,e=[],i.O=(r,t,o,n)=>{if(!t){var a=1/0;for(l=0;l<e.length;l++){for(var[t,o,n]=e[l],f=!0,c=0;c<t.length;c++)(!1&n||a>=n)&&Object.keys(i.O).every(e=>i.O[e](t[c]))?t.splice(c--,1):(f=!1,n<a&&(a=n));if(f){e.splice(l--,1);var u=o();void 0!==u&&(r=u)}}return r}n=n||0;for(var l=e.length;l>0&&e[l-1][2]>n;l--)e[l]=e[l-1];e[l]=[t,o,n]},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(e,o){if(1&o&&(e=this(e)),8&o)return e;if("object"==typeof e&&e){if(4&o&&e.__esModule)return e;if(16&o&&"function"==typeof e.then)return e}var n=Object.create(null);i.r(n);var a={};r=r||[null,t({}),t([]),t(t)];for(var f=2&o&&e;("object"==typeof f||"function"==typeof f)&&!~r.indexOf(f);f=t(f))Object.getOwnPropertyNames(f).forEach(r=>a[r]=()=>e[r]);return a.default=()=>e,i.d(n,a),n},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.e=()=>Promise.resolve(),i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={116:0};i.O.j=r=>0===e[r];var r=(r,t)=>{var o,n,[a,f,c]=t,u=0;if(a.some(r=>0!==e[r])){for(o in f)i.o(f,o)&&(i.m[o]=f[o]);if(c)var l=c(i)}for(r&&r(t);u<a.length;u++)n=a[u],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(l)},t=self.webpackChunknautobot=self.webpackChunknautobot||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0;var a=i.O(void 0,[748],()=>i(6086));a=i.O(a)})();
2
2
  //# sourceMappingURL=nautobot-graphiql.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"js/nautobot-graphiql.js","mappings":"uBAAIA,ECCAC,EADAC,E,0FCWJ,KAASC,cAAgB,EAAAC,sBAEzBC,OAAOC,MAAQ,KACfD,OAAOE,UAAY,EACnBF,OAAOG,SAAW,KAClBH,OAAOI,uBAAyB,EAChCJ,OAAOK,MAAQ,EACfL,OAAOM,SAAW,C,GCjBdC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CAGAJ,EAAoBO,EAAID,EHzBpBnB,EAAW,GACfa,EAAoBQ,EAAI,CAACC,EAAQC,EAAUC,EAAIC,KAC9C,IAAGF,EAAH,CAMA,IAAIG,EAAeC,IACnB,IAASC,EAAI,EAAGA,EAAI5B,EAAS6B,OAAQD,IAAK,CAGzC,IAFA,IAAKL,EAAUC,EAAIC,GAAYzB,EAAS4B,GACpCE,GAAY,EACPC,EAAI,EAAGA,EAAIR,EAASM,OAAQE,MACpB,EAAXN,GAAsBC,GAAgBD,IAAaO,OAAOC,KAAKpB,EAAoBQ,GAAGa,OAAOC,GAAStB,EAAoBQ,EAAEc,GAAKZ,EAASQ,MAC9IR,EAASa,OAAOL,IAAK,IAErBD,GAAY,EACTL,EAAWC,IAAcA,EAAeD,IAG7C,GAAGK,EAAW,CACb9B,EAASoC,OAAOR,IAAK,GACrB,IAAIS,EAAIb,SACER,IAANqB,IAAiBf,EAASe,EAC/B,CACD,CACA,OAAOf,CAnBP,CAJCG,EAAWA,GAAY,EACvB,IAAI,IAAIG,EAAI5B,EAAS6B,OAAQD,EAAI,GAAK5B,EAAS4B,EAAI,GAAG,GAAKH,EAAUG,IAAK5B,EAAS4B,GAAK5B,EAAS4B,EAAI,GACrG5B,EAAS4B,GAAK,CAACL,EAAUC,EAAIC,EAqBjB,EC1BVvB,EAAW8B,OAAOM,eAAkBC,GAASP,OAAOM,eAAeC,GAASA,GAASA,EAAa,UAQtG1B,EAAoB2B,EAAI,SAASC,EAAOC,GAEvC,GADU,EAAPA,IAAUD,EAAQE,KAAKF,IAChB,EAAPC,EAAU,OAAOD,EACpB,GAAoB,iBAAVA,GAAsBA,EAAO,CACtC,GAAW,EAAPC,GAAaD,EAAMG,WAAY,OAAOH,EAC1C,GAAW,GAAPC,GAAoC,mBAAfD,EAAMI,KAAqB,OAAOJ,CAC5D,CACA,IAAIK,EAAKd,OAAOe,OAAO,MACvBlC,EAAoBwB,EAAES,GACtB,IAAIE,EAAM,CAAC,EACX/C,EAAiBA,GAAkB,CAAC,KAAMC,EAAS,CAAC,GAAIA,EAAS,IAAKA,EAASA,IAC/E,IAAI,IAAI+C,EAAiB,EAAPP,GAAYD,EAAyB,iBAAXQ,KAAyBhD,EAAeiD,QAAQD,GAAUA,EAAU/C,EAAS+C,GACxHjB,OAAOmB,oBAAoBF,GAASG,SAASjB,GAASa,EAAIb,GAAO,IAAOM,EAAMN,KAI/E,OAFAa,EAAa,QAAI,IAAM,EACvBnC,EAAoBwC,EAAEP,EAAIE,GACnBF,CACR,EGxBAjC,EAAoBwC,EAAI,CAACpC,EAASqC,KACjC,IAAI,IAAInB,KAAOmB,EACXzC,EAAoB0C,EAAED,EAAYnB,KAAStB,EAAoB0C,EAAEtC,EAASkB,IAC5EH,OAAOwB,eAAevC,EAASkB,EAAK,CAAEsB,YAAY,EAAMC,IAAKJ,EAAWnB,IAE1E,ECHDtB,EAAoB8C,EAAI,IAAOC,QAAQC,UCHvChD,EAAoBiD,EAAI,WACvB,GAA0B,iBAAfC,WAAyB,OAAOA,WAC3C,IACC,OAAOpB,MAAQ,IAAIqB,SAAS,cAAb,EAChB,CAAE,MAAOL,GACR,GAAsB,iBAAXtD,OAAqB,OAAOA,MACxC,CACA,CAPuB,GCAxBQ,EAAoB0C,EAAI,CAAChB,EAAK0B,IAAUjC,OAAOkC,UAAUC,eAAeC,KAAK7B,EAAK0B,GCClFpD,EAAoBwB,EAAKpB,IACH,oBAAXoD,QAA0BA,OAAOC,aAC1CtC,OAAOwB,eAAevC,EAASoD,OAAOC,YAAa,CAAE7B,MAAO,WAE7DT,OAAOwB,eAAevC,EAAS,aAAc,CAAEwB,OAAO,GAAO,E,MCA9D,IAAI8B,EAAkB,CACrB,IAAK,GAaN1D,EAAoBQ,EAAEU,EAAKyC,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BC,KACvD,IAGI7D,EAAU0D,GAHTjD,EAAUqD,EAAaC,GAAWF,EAGhB/C,EAAI,EAC3B,GAAGL,EAASuD,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAIjE,KAAY8D,EACZ/D,EAAoB0C,EAAEqB,EAAa9D,KACrCD,EAAoBO,EAAEN,GAAY8D,EAAY9D,IAGhD,GAAG+D,EAAS,IAAIvD,EAASuD,EAAQhE,EAClC,CAEA,IADG6D,GAA4BA,EAA2BC,GACrD/C,EAAIL,EAASM,OAAQD,IACzB4C,EAAUjD,EAASK,GAChBf,EAAoB0C,EAAEgB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO3D,EAAoBQ,EAAEC,EAAO,EAGjC0D,EAAqBC,KAA2B,qBAAIA,KAA2B,sBAAK,GACxFD,EAAmB5B,QAAQqB,EAAqBS,KAAK,KAAM,IAC3DF,EAAmBG,KAAOV,EAAqBS,KAAK,KAAMF,EAAmBG,KAAKD,KAAKF,G,KChDvFnE,EAAoBuE,QAAKpE,ECGzB,IAAIqE,EAAsBxE,EAAoBQ,OAAEL,EAAW,CAAC,MAAM,IAAOH,EAAoB,QAC7FwE,EAAsBxE,EAAoBQ,EAAEgE,E","sources":["webpack://nautobot/webpack/runtime/chunk loaded","webpack://nautobot/webpack/runtime/create fake namespace object","webpack://nautobot/./src/js/nautobot-graphiql.js","webpack://nautobot/webpack/bootstrap","webpack://nautobot/webpack/runtime/define property getters","webpack://nautobot/webpack/runtime/ensure chunk","webpack://nautobot/webpack/runtime/global","webpack://nautobot/webpack/runtime/hasOwnProperty shorthand","webpack://nautobot/webpack/runtime/make namespace object","webpack://nautobot/webpack/runtime/jsonp chunk loading","webpack://nautobot/webpack/runtime/nonce","webpack://nautobot/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; typeof current == 'object' && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","import * as GraphiQLPluginExplorer from '@graphiql/plugin-explorer';\nimport { createGraphiQLFetcher } from '@graphiql/toolkit';\nimport { GraphiQL } from 'graphiql';\nimport * as graphqlWs from 'graphql-ws';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { fetch } from 'whatwg-fetch';\n\nimport 'graphiql/graphiql.css';\nimport '@graphiql/plugin-explorer/dist/style.css';\n\nGraphiQL.createFetcher = createGraphiQLFetcher;\n\nwindow.fetch = fetch;\nwindow.graphqlWs = graphqlWs;\nwindow.GraphiQL = GraphiQL;\nwindow.GraphiQLPluginExplorer = GraphiQLPluginExplorer;\nwindow.React = React;\nwindow.ReactDOM = ReactDOM;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t116: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknautobot\"] = self[\"webpackChunknautobot\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [748], () => (__webpack_require__(6086)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","createFetcher","createGraphiQLFetcher","window","fetch","graphqlWs","GraphiQL","GraphiQLPluginExplorer","React","ReactDOM","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","getPrototypeOf","obj","t","value","mode","this","__esModule","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","d","definition","o","defineProperty","enumerable","get","e","Promise","resolve","g","globalThis","Function","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","nc","__webpack_exports__"],"sourceRoot":""}
1
+ {"version":3,"file":"js/nautobot-graphiql.js","mappings":"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","sources":["webpack://nautobot/webpack/runtime/chunk loaded","webpack://nautobot/webpack/runtime/create fake namespace object","webpack://nautobot/./src/js/nautobot-graphiql.js","webpack://nautobot/webpack/bootstrap","webpack://nautobot/webpack/runtime/define property getters","webpack://nautobot/webpack/runtime/ensure chunk","webpack://nautobot/webpack/runtime/global","webpack://nautobot/webpack/runtime/hasOwnProperty shorthand","webpack://nautobot/webpack/runtime/make namespace object","webpack://nautobot/webpack/runtime/jsonp chunk loading","webpack://nautobot/webpack/runtime/nonce","webpack://nautobot/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","import * as GraphiQLPluginExplorer from '@graphiql/plugin-explorer';\nimport { createGraphiQLFetcher } from '@graphiql/toolkit';\nimport { GraphiQL } from 'graphiql';\nimport * as graphqlWs from 'graphql-ws';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { fetch } from 'whatwg-fetch';\n\nimport 'graphiql/graphiql.css';\nimport '@graphiql/plugin-explorer/dist/style.css';\n\nGraphiQL.createFetcher = createGraphiQLFetcher;\n\nwindow.fetch = fetch;\nwindow.graphqlWs = graphqlWs;\nwindow.GraphiQL = GraphiQL;\nwindow.GraphiQLPluginExplorer = GraphiQLPluginExplorer;\nwindow.React = React;\nwindow.ReactDOM = ReactDOM;\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","// The chunk loading function for additional chunks\n// Since all referenced chunks are already included\n// in this file, this function is empty here.\n__webpack_require__.e = () => (Promise.resolve());","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t116: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunknautobot\"] = self[\"webpackChunknautobot\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [748], () => (__webpack_require__(6086)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","leafPrototypes","getProto","createFetcher","createGraphiQLFetcher","window","fetch","graphqlWs","GraphiQL","GraphiQLPluginExplorer","React","ReactDOM","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","length","fulfilled","j","Object","keys","every","key","splice","r","getPrototypeOf","obj","t","value","mode","this","__esModule","then","ns","create","def","current","indexOf","getOwnPropertyNames","forEach","d","definition","o","defineProperty","enumerable","get","e","Promise","resolve","g","globalThis","Function","prop","prototype","hasOwnProperty","call","Symbol","toStringTag","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","bind","push","nc","__webpack_exports__"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (()=>{"use strict";var e,t={226:(e,t,n)=>{var a=n(336),o=n(576),r=n(209),s=n(430),i=n(11),l=n(75),d=n(402),c=n(359),u=n(347),m=n(37),p=n(692);n(139),n(458);const g="nb-draggable",b="nb-draggable-container",h="nb-dragging",v="nb-drawer-open",w=(e,t)=>{if(!e)return;e.classList.toggle(v,t);const n=e.classList.contains(v);e.setAttribute("aria-hidden",n?"false":"true");const a=[...document.querySelectorAll(`[data-nb-toggle="drawer"][data-nb-target="#${e.id}"]`)];if(a.forEach((e=>e.setAttribute("aria-expanded",n?"true":"false"))),n)[...document.getElementsByClassName(v)].filter((t=>t!==e)).forEach((e=>w(e,!1))),(()=>{let t=100;window.requestAnimationFrame((function n(){"visible"===window.getComputedStyle(e).visibility?e.focus():t>0&&(t-=1,window.requestAnimationFrame(n))}))})();else if(e.contains(document.activeElement)){const e=a[0]||document.querySelector("main");e?.focus({preventScroll:!0})}const o=n?"nb-drawer:opened":"nb-drawer:closed";e.dispatchEvent(new CustomEvent(o,{bubbles:!0,cancelable:!0}))},f="historyState",y=e=>{const t=void 0===e?window.history?.state:e;void 0!==t&&window.sessionStorage?.setItem(f,JSON.stringify(t))},E=(e,t={},...n)=>{const a=document.createElement(e);return Object.entries(t).forEach((([e,t])=>a.setAttribute("className"===e?"class":e,t))),n.forEach((e=>"string"==typeof e?a.insertAdjacentText("beforeend",e):a.appendChild(e))),a},S=(e,...t)=>[...e.classList.entries()].filter((([,e])=>!t.includes(e))).forEach((([,t])=>e.classList.remove(t))),A=e=>{const t=window.getComputedStyle(document.documentElement).fontSize;return e/parseInt(t,10)},L=A(12),x=A(6),k=A(20),q=`${L+k+x}rem`;var C=n(762);const O=e=>e instanceof Document||e instanceof Element?e:e[0],j=(e,t)=>{$(e).val(null),(t??[]).forEach((t=>{if(!e.querySelector(`option[value="${t.value}"]`)){const n=document.createElement("option");n.innerText=t.text,n.setAttribute("selected","true"),n.setAttribute("value",t.value),e.appendChild(n)}}));const n=t.length>0?null!==e?.getAttribute("multiple")?t.map((e=>e.value)):t?.[0]?.value:null;$(e).val(n).trigger("change")},B=(e,t,n)=>[...O(e).querySelectorAll(t)].forEach((e=>$(e).select2({allowClear:!0,placeholder:"---------",selectionCssClass:"select2--small",theme:"bootstrap-5",width:"off",...n}))),I=(e,t=null)=>{const n=(e,t)=>(e.element&&O(t).setAttribute("style",e.element.getAttribute("style")),e.text);B(e,".nautobot-select2-color-picker",{dropdownParent:t,templateResult:n,templateSelection:n})},N=(e,t=null)=>{B(e,".nautobot-select2-api",{ajax:{data:function(e){const[t]=this,n=50*(e.page-1)||0,a=e.term,o=t.getAttribute("search-field")||"q",r=t.getAttribute("data-api-version"),s=parseInt(t.getAttribute("data-depth"),10)||0,i=t.getAttribute("data-contenttype"),l=Object.fromEntries([...t.attributes].filter((e=>e.name.includes("data-query-param-"))).flatMap((e=>{const[,n]=e.name.split("data-query-param-");return(()=>{try{return JSON.parse(e.value)}catch(e){return[]}})().flatMap((e=>{const a=e.startsWith("$"),o=a?(()=>{const n=e.slice(1);if(t.id.includes("id_form-")){const[e]=t.id.match(/id_form-[0-9]+-/i,"");return document.querySelector(`#${e}${n}`)}return t.closest("tr")?.classList.contains("dynamic-formset")?t.closest("tr").querySelector(`select[id*="${n}"]`):document.querySelector(`#id_${n}`)})():null,r=o?(()=>{const e=(t=o,null===t?.getAttribute("multiple")?t?.value:[...t.selectedOptions].map((e=>e.value)));var t;const n=window.getComputedStyle(o);return e&&"0"!==n.opacity&&"hidden"!==n.visibility?e:o.getAttribute("required")&&o.getAttribute("data-null-option")?"null":void 0})():null;return null!=(a?r:e)?[[n,r||e]]:[]}))}))),d={depth:String(s),limit:String(50),offset:String(n),...r?{api_version:r}:void 0,...i?{content_type:i}:void 0,...a?{[o]:a}:void 0,...l};return new URLSearchParams(d).toString()},delay:500,processResults:function(e){const[t]=this.$element;[...t.querySelectorAll("option")].forEach((e=>e.removeAttribute("disabled")));const n=[...t.getAttribute("data-null-option")&&null===e.previous?[{id:"null",text:t.getAttribute("data-null-option")}]:[],...Object.values(e.results.reduce(((e,n,a)=>{const o=Boolean(n?.[t.getAttribute("disabled-indicator")]),r=C(n,t.getAttribute("value-field"))||n.id,s=C(n,t.getAttribute("display-field"))||n.name,i={...n,disabled:o,id:r,text:s},{group:l,site:d,url:c}=i,u=Boolean(c?.includes("dynamic-groups")),m=(()=>{switch(!0){case null!=l&&null!=d:return{property:`${d.name}:${l.name}`,text:`${d.name} / ${l.name}`};case null!=l:return{property:l.name,text:l.name};case null!=d:return{property:d.name,text:d.name};case null===l&&null===d:return{property:"global",text:"Global"};default:return}})();return{...e,...m?{[m.property]:{...e[m.property],...e[m.property]?void 0:{text:m.text},children:u?void 0:[...e[m.property]?.children??[],i]}}:{[a]:i}}}),{}))];return{pagination:{more:null!==e.next},results:n}},url:function(){const[e]=this,t=(e=>{const t=/\{\{([a-z_]+)}}/g;let n,a=e;for(;n=t.exec(e);){const e=document.querySelector(`#id_${n[1]}`),t=e?.selectedOptions?.[0]?.getAttribute("api-value"),o=t||e.value||(e.getAttribute("data-null-option")?"null":void 0);a=o?a.replace(n[0],o):a}return a})(e.getAttribute("data-url"));return!t.includes("{{")&&t}},dropdownParent:t})},T=(e,t=null)=>{B(e,".nautobot-select2-multi-value-char",{dropdownParent:t,language:{noResults:()=>"Type something to add it as an option"},multiple:!0,tags:!0,tokenSeparators:[","]}),[...O(e).querySelectorAll(".nautobot-select2-multi-value-char")].forEach((e=>{$(e).on("select2:open",(()=>{const t=document.querySelector(".select2-container--open");if(!t)return;const n=t.querySelector("input.select2-search__field");n&&(n.getAttribute("data-enter-binds")||(n.setAttribute("data-enter-binds","1"),n.addEventListener("keydown",(t=>{if("Enter"===t.key){t.preventDefault(),t.stopPropagation();const a=n.value.trim();if(!a)return;const o=$(e).get(0),r=Array.prototype.find.call(o.options,(e=>String(e.value)===String(a)));r?r.selected=!0:o.add(new Option(a,a,!0,!0)),n.value="",$(e).trigger("change");try{$(e).select2("close")}catch(e){}}}))))}))}))},_=(e,t=null)=>B(e,".nautobot-select2-static",{dropdownParent:t}),R=e=>{I(e),N(e),T(e),_(e),[...O(e).querySelectorAll(".modal")].forEach((e=>{I(e,e),N(e,e),T(e,e),_(e,e)}))},D=e=>document.cookie.split("; ").find((t=>t.startsWith(`${e}=`)))?.split("=")[1],M=(e,t,n)=>{const a={[e]:t,path:"/",...n};document.cookie=Object.entries(a).map((e=>e.join("="))).join(";")},P=e=>M(e,"",{expires:"Thu, 01 Jan 1970 00:00:00 GMT"}),z="sidenav_collapsed",F=()=>{const e=document.querySelector(".nb-sidenav-toggler"),t=e.getAttribute("aria-controls"),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",String(!n)),document.getElementById(t).classList.toggle("nb-sidenav-collapsed",n),n?(M(z,"true"),window.localStorage?.setItem(z,"true")):(P(z),window.localStorage?.removeItem(z))},J=["invisible","position-absolute"],G="theme_modal",U="dark",Q="light",W="system",X=e=>e===U||e===Q||e===W,Y=()=>{const e=D("theme");if(X(e))return e;const t=window.localStorage?.getItem("theme");return X(t)?t:W},K=(e,t)=>{const n=Boolean(t?.manual),a=document.getElementById(G);(a?.querySelectorAll("button[data-nb-theme]")??[]).forEach((t=>["border","border-primary"].forEach((n=>t.classList.toggle(n,t.dataset.nbTheme===e)))));const o=e===W?window.matchMedia?.(`(prefers-color-scheme: ${U})`).matches?U:Q:e;document.documentElement.dataset.theme=o,document.documentElement.dataset.bsTheme=o,e===W?(P("theme"),window.localStorage?.removeItem("theme")):n&&(M("theme",e),window.localStorage?.setItem("theme",e)),(e===U||e===W&&o===U)&&[...document.getElementsByTagName("object")].forEach((e=>{e.addEventListener("load",(e=>{e.target.contentDocument&&[...e.target.contentDocument.getElementsByTagName("image"),...e.target.contentDocument.getElementsByClassName("rack-device-shortname"),...e.target.contentDocument.getElementsByClassName("rack-device-fullname")].forEach((e=>e.setAttribute("filter","url(#darkmodeinvert)")))}))})),n&&document.location.reload()};window.bootstrap=a,window.ClipboardJS=o,window.echarts=r,window.flatpickr=s.A,window.htmx=m.A,i.A.registerLanguage("graphql",l.A),i.A.registerLanguage("json",d.A),i.A.registerLanguage("xml",c.A),i.A.registerLanguage("yaml",u.A),window.hljs=i.A,window.jQuery=p,window.$=window.jQuery,document.addEventListener("DOMContentLoaded",(()=>{window.nb??={},(()=>{const e=(()=>{try{const e=window.sessionStorage?.getItem(f);return e?JSON.parse(e):void 0}catch(e){return}})();if(void 0!==e){const t=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(e,"",t),window.sessionStorage?.removeItem(f)}})(),window.nb.history={saveState:y},[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].forEach((e=>new a.Tooltip(e))),(()=>{const e=document.querySelector(".nb-sidenav-toggler");if(e){const t=D(z)??window.localStorage?.getItem(z)??"false";("true"===t&&"true"===e.getAttribute("aria-expanded")||"false"===t&&"false"===e.getAttribute("aria-expanded"))&&F(),e.addEventListener("click",F)}[...document.querySelectorAll(".nb-sidenav-list-item:not(.nb-flat)")].forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("aria-controls"),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",String(!n));const a=n=>{const{target:o}=n,r=document.getElementById(t);!e.contains(o)&&!r.contains(o)&&(e.setAttribute("aria-expanded","false"),document.removeEventListener("click",a))};n?document.removeEventListener("click",a):document.addEventListener("click",a)}))}));const t=$("#sidenav-branch-picker-select");t.on("change",(e=>e.currentTarget.form.submit())),t.on("select2:open",(()=>{document.querySelector(".select2-dropdown").setAttribute("data-bs-theme","dark"),document.querySelector(".select2-dropdown .select2-search__field").setAttribute("placeholder","Find a branch...")}))})(),(()=>{const e=(e,t)=>e.every((e=>{const n=!e.classList.contains("show");return"collapsed"===t?n:!n})),t=e=>[...document.querySelectorAll(e.dataset.nbTarget||".collapse")];document.addEventListener("click",(e=>{const n=e.target.closest('[data-nb-toggle="collapse-all"]');n&&t(n).forEach((e=>{const t=window.bootstrap.Collapse.getOrCreateInstance(e);"true"===n.getAttribute("aria-expanded")?t.hide():t.show()}))})),document.addEventListener("hidden.bs.collapse",(()=>[...document.querySelectorAll('[data-nb-toggle="collapse-all"]')].filter((n=>e(t(n),"collapsed"))).forEach((e=>{e.setAttribute("aria-expanded","false"),e.textContent="Expand All Groups"})))),document.addEventListener("shown.bs.collapse",(()=>[...document.querySelectorAll('[data-nb-toggle="collapse-all"]')].filter((n=>e(t(n),"expanded"))).forEach((e=>{e.setAttribute("aria-expanded","true"),e.textContent="Collapse All Groups"}))))})(),(()=>{const e=(e,t)=>e?.closest?.(`.${t}`),t=t=>n=>{const a=e(n.target,"nb-draggable-handle");a&&e(a,g).setAttribute("draggable",String(t))},n=t(!0),a=t(!1);document.addEventListener("mousedown",n),document.addEventListener("mouseup",a),document.addEventListener("dragstart",(t=>{const n=e(t.target,g);n&&(t.dataTransfer.clearData("text/plain"),t.dataTransfer.setData("text/plain",t.target.id),n.classList.add(h))})),document.addEventListener("dragend",(t=>{const n=e(t.target,g);n&&(n.classList.remove(h),n.setAttribute("draggable","false"))})),document.addEventListener("dragover",(t=>{e(t.target,b)&&t.preventDefault()})),document.addEventListener("drop",(t=>{const n=document.getElementById(t.dataTransfer.getData("text/plain"));if(n){t.preventDefault();const a=e(n,b),o=(()=>{const n=e(t.target,g);if(n){const{height:e,top:a}=n.getBoundingClientRect();return t.clientY<a+e/2?n:n.nextSibling}return[...a.children].find((e=>{const{left:n,right:a,top:o}=e.getBoundingClientRect();return n>t.clientX||a>=t.clientX&&o>=t.clientY}))})();o?a.insertBefore(n,o):a.append(n),n.classList.add(h)}}))})(),document.addEventListener("nb-drawer:close",(e=>w(e.target,!1))),document.addEventListener("nb-drawer:open",(e=>w(e.target,!0))),document.addEventListener("nb-drawer:toggle",(e=>w(e.target))),document.addEventListener("nb-drawer:opened",(e=>{if(e.target.id){const t={...window.history?.state,drawer:e.target.id},n=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(t,"",n)}})),document.addEventListener("nb-drawer:closed",(()=>{const{drawer:e,...t}="object"==typeof window.history?.state&&null!==window.history.state?window.history.state:{},n=Object.keys(t).length>0?t:null,a=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(n,"",a)})),document.addEventListener("click",(e=>{const t=e.target.closest("[data-nb-dismiss]"),n=e.target.closest("[data-nb-toggle]");if("drawer"===t?.dataset.nbDismiss){const e=t.closest(".nb-drawer");e?.dispatchEvent(new CustomEvent("nb-drawer:close",{bubbles:!0,cancelable:!0}))}else if("drawer"===n?.dataset.nbToggle){const e=document.querySelector(n.dataset.nbTarget);e?.dispatchEvent(new CustomEvent("nb-drawer:toggle",{bubbles:!0,cancelable:!0}))}})),window.history?.state?.drawer&&document.getElementById(window.history.state.drawer)?.dispatchEvent(new CustomEvent("nb-drawer:open",{bubbles:!0,cancelable:!0})),(()=>{const e=new IntersectionObserver((([e])=>e.target.classList.toggle("nb-is-pinned",e.intersectionRatio<1)),{threshold:[1]});[...document.querySelectorAll(".nb-form-sticky-footer")].forEach((t=>e.observe(t)))})(),(()=>{const e=document.getElementById("header_search");if(!e)return()=>{};const t=(()=>{try{const e=document.getElementById("nav_menu");return e?JSON.parse(e.textContent):{}}catch(e){return{}}})(),n=Object.fromEntries(Object.entries(t.tabs).flatMap((([,e])=>Object.entries(e.groups).flatMap((([,e])=>Object.entries(e.items).map((([e,t])=>[e,t]))))))),a=new RegExp(`^\\s*in\\s*:\\s*(${Object.entries(n).flatMap((([,{name:e}])=>[e,...["","_","\\-"].map((t=>e.replace(/\s+/g,t)))])).join("|")})\\s+`,"i"),o=e.querySelector("input"),r=()=>{const e=document.getElementById("search_popup");e&&(e.remove(),document.body.classList.toggle("overflow-y-hidden",!1))};document.addEventListener("keydown",(e=>{const t=e.getModifierState?.("Meta"),n=e.ctrlKey;(t||n)&&"k"===e.key?(e.preventDefault(),o.focus()):"Escape"===e.key&&r()}));o.addEventListener("focus",(()=>{const t=document.getElementById("search_popup");if(t){const e=t.querySelector("input");return e?.focus(),void e?.setSelectionRange(-1,-1)}document.body.classList.toggle("overflow-y-hidden",!0);const{left:s=0,right:i=0}=document.querySelector("main")?.getBoundingClientRect()??{},{top:l}=o.getBoundingClientRect(),d=E("span",{"aria-hidden":"true",className:"mdi mdi-magnify d-inline-flex ms-12 mt-6 pe-none position-absolute start-0 text-secondary top-0 user-select-none",style:`height: ${k}rem; width: ${k}rem;`}),c=E("span",{className:"d-inline-flex gap-6 left-0 my-6 position-absolute top-0",style:`left: ${q};`}),u=E("input",{className:"form-control w-100",name:"q",required:"true",style:`padding-inline: ${q};`,type:"search",value:o.value}),m=E("button",{className:"btn mdi mdi-close bg-transparent border-0 end-0 hstack justify-content-center me-12 mt-6 p-0 position-absolute text-secondary top-0 nb-transition-base"+(""===u.value?" invisible opacity-0":""),style:`height: ${k}rem; width: ${k}rem;`,type:"button"},E("span",{className:"visually-hidden"},"Clear"));m.addEventListener("click",(()=>{u.value="",u.dispatchEvent(new InputEvent("input")),u.focus()})),u.addEventListener("input",(()=>{const e=""===u.value;m.classList.toggle("invisible",e),m.classList.toggle("opacity-0",e)}));const p=E("input",{className:"d-none",type:"submit"}),g=E("form",{action:e.getAttribute("action"),className:"position-relative w-100",role:"search"},d,c,u,m,p);g.addEventListener("submit",(()=>{const e=g.querySelector("[data-nb-link]:last-child");e&&g.setAttribute("action",e.dataset.nbLink)}));const b=E("div"),h=E("div",{className:"mx-auto w-100",style:`max-width: ${A(720)}rem;`},g,b),v=E("div",{className:"overflow-auto pb-20 position-fixed top-0 end-0 bottom-0 start-0 nb-z-modal-backdrop",id:"search_popup",role:"dialog",style:`background-color: rgba(0, 0, 0, .5); padding-block-start: ${l}px; padding-inline-start: calc(${s}px + ${A(20)}rem); padding-inline-end: calc(100% - ${i}px + ${A(20)}rem);`},h);v.addEventListener("click",(e=>{e.target===v&&r()})),document.body.appendChild(v);const w=e=>{const t=Object.entries(n).find((([t])=>t===e))?.[1]?.name??e,a=E("button",{type:"button"},E("span",{"aria-hidden":"true",class:"mdi mdi-close"}),E("span",{class:"visually-hidden"},"Remove")),o=E("span",{className:"badge border","data-nb-link":e},`in: ${t}`,a);a.addEventListener("click",(()=>{o.remove(),u.focus()})),[...c.querySelectorAll(`[data-nb-link="${e}"]`)].forEach((e=>e.remove())),c.appendChild(o),[...c.children].slice(0,-1).forEach((e=>e.remove()))};new ResizeObserver((()=>{const{width:e}=c.getBoundingClientRect();u.style.paddingInlineStart=e?`calc(${q} + ${e}px + ${x}rem)`:q})).observe(c),u.addEventListener("input",(()=>{const e=u.value.match(a);if(e){const[t,a]=e,o=e=>e.trim().toLowerCase().replace(/\s|_|-/g,""),r=Object.entries(n).find((([,{name:e}])=>o(e)===o(a)))?.[0];r&&(u.value=u.value.replace(t,""),u.dispatchEvent(new InputEvent("input")),w(r))}})),u.addEventListener("keydown",(e=>{const t="Backspace"===e.key,n=0===u.selectionEnd&&0===u.selectionStart;t&&n&&c.querySelector(":last-child")?.remove()})),e.querySelectorAll("[data-nb-link]").forEach((e=>w(e.dataset.nbLink))),u.focus(),u.setSelectionRange(-1,-1)}))})(),window.nb.select2={initializeSelect2Fields:R,setSelect2Value:j},(()=>{const e=[...document.querySelectorAll(".nav.nav-tabs")].map((e=>{const t=new ResizeObserver((()=>(e=>{const t=e.parentNode;[...t.querySelectorAll('.nav.nav-tabs[data-clone="true"]')].forEach((e=>e.remove()));const n=e.cloneNode(!0);n.removeAttribute("id"),n.dataset.clone="true";const o=["flex-nowrap","invisible","position-absolute","z-n1"];n.classList.add(...o),e.nextSibling?t.insertBefore(n,e.nextSibling):t.appendChild(n);const r=()=>n.getBoundingClientRect().width>e.getBoundingClientRect().width;if(!r())return e.classList.remove(...J),void t.removeChild(n);const s=E("ul",{className:"dropdown-menu dropdown-menu-end"}),i=E("span",{className:"mdi mdi-menu"}),l=E("span",{className:"visually-hidden"},"Toggle Dropdown"),d=E("button",{"aria-expanded":"false",className:"btn dropdown-toggle text-secondary","data-bs-toggle":"dropdown",type:"button"},i,l),c=E("li",{className:"dropdown flex-grow-1 mb-n1 text-end"},d,s);n.appendChild(c);const u=[];for(;r();){const e=c.previousElementSibling;u.unshift(e),n.removeChild(e)}u.forEach((e=>{S(e),[...e.children].forEach((e=>{S(e,"active","disabled"),e.classList.add("dropdown-item","justify-content-between")})),s.appendChild(e)})),[...n.querySelectorAll("a")].forEach((t=>{t.addEventListener("shown.bs.tab",(()=>{const n=e.querySelector(`a[href="${t.getAttribute("href")}"]`);(a.Tab.getInstance(n)||new a.Tab(n)).show()}))})),e.classList.add(...J),n.classList.remove(...o)})(e)));return t.observe(e),t}))})(),(()=>{const e=document.getElementById(G),t=e?.querySelectorAll("button[data-nb-theme]")??[];K(Y()),window.matchMedia(`(prefers-color-scheme: ${U})`).addEventListener("change",(()=>K(Y())));const n=e=>K(e.currentTarget.dataset.nbTheme,{manual:!0});t.forEach((e=>e.addEventListener("click",n)))})(),window.toggleFavorite=(e,t)=>{t.detail.successful&&e.classList.toggle("active")},window.setRequestUrl=(e,t)=>{const n=e.classList.contains("active");t.detail.path=n?e.dataset.deleteUrl:e.dataset.addUrl},document.querySelectorAll('a[data-bs-toggle="tooltip"], div[data-bs-toggle="tooltip"] > a').forEach((e=>{e.addEventListener("click",(()=>{e.blur()}))})),document.addEventListener("hidden.bs.modal",(()=>{document.querySelectorAll('[data-bs-toggle="tooltip"] > a').forEach((e=>{e.blur()}))}))}))}},n={};function a(e){var o=n[e];if(void 0!==o)return o.exports;var r=n[e]={exports:{}};return t[e].call(r.exports,r,r.exports,a),r.exports}a.m=t,e=[],a.O=(t,n,o,r)=>{if(!n){var s=1/0;for(c=0;c<e.length;c++){for(var[n,o,r]=e[c],i=!0,l=0;l<n.length;l++)(!1&r||s>=r)&&Object.keys(a.O).every((e=>a.O[e](n[l])))?n.splice(l--,1):(i=!1,r<s&&(s=r));if(i){e.splice(c--,1);var d=o();void 0!==d&&(t=d)}}return t}r=r||0;for(var c=e.length;c>0&&e[c-1][2]>r;c--)e[c]=e[c-1];e[c]=[n,o,r]},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={825:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var o,r,[s,i,l]=n,d=0;if(s.some((t=>0!==e[t]))){for(o in i)a.o(i,o)&&(a.m[o]=i[o]);if(l)var c=l(a)}for(t&&t(n);d<s.length;d++)r=s[d],a.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return a.O(c)},n=self.webpackChunknautobot=self.webpackChunknautobot||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=a.O(void 0,[68],(()=>a(226)));o=a.O(o)})();
1
+ (()=>{"use strict";var e,t={446:(e,t,n)=>{var o=n(336),a=n(576),r=n(209),s=n(430),l=n(11),i=n(75),c=n(402),d=n(359),u=n(347),m=n(37),p=n(692);n(139),n(285),n(458);const g='input[type="checkbox"][name="pk"]',b='input[type="checkbox"].toggle',h="#select_all_box",v="#select_all",f=(e,t)=>{e.checked!==t&&(e.checked=t,setTimeout(()=>{e.dispatchEvent(new Event("change",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!0}))}))},w=()=>{let e=null;document.addEventListener("click",t=>{const n=t.target.closest(b);if(n){const t=n.checked;n.closest("table").querySelectorAll(`${g}:not(.visually-hidden)`).forEach(e=>f(e,t)),e=null}const o=t.target.closest(g);if(o){const n=[...o.closest("table").querySelectorAll(`${g}:not(.visually-hidden)`)],a=n.indexOf(o);if(t.shiftKey&&null!==e){const t=Math.min(e,a),r=Math.max(e,a),s=o.checked;n.slice(t,r+1).forEach(e=>f(e,s))}e=a}}),document.addEventListener("input",e=>{const t=e.target.closest(b);if(t){const e=t.checked,n=document.querySelector(h);if(n?.classList.toggle("visually-hidden",!e),n&&!e){const e=document.querySelector(v);e&&f(e,!1)}}const n=e.target.closest(g);if(n){const e=n.closest("table"),t=[...e.querySelectorAll(`${g}:not(.visually-hidden)`)],o=e.querySelector(b);if(o){const e=t.some(e=>!e.checked);f(o,!e)}}const o=e.target.closest(v),a=e.target.closest(h);if(o&&a){const e=o.checked;a.querySelectorAll("button").forEach(t=>{t.disabled=!e})}})},y="nb-draggable",E="nb-draggable-container",S="nb-dragging",A="nb-drawer-open",x=(e,t)=>{if(!e)return;e.classList.toggle(A,t);const n=e.classList.contains(A);e.setAttribute("aria-hidden",n?"false":"true");const o=[...document.querySelectorAll(`[data-nb-toggle="drawer"][data-nb-target="#${e.id}"]`)];if(o.forEach(e=>e.setAttribute("aria-expanded",n?"true":"false")),n)[...document.getElementsByClassName(A)].filter(t=>t!==e).forEach(e=>x(e,!1)),(()=>{let t=100;window.requestAnimationFrame(function n(){"visible"===window.getComputedStyle(e).visibility?e.focus():t>0&&(t-=1,window.requestAnimationFrame(n))})})();else if(e.contains(document.activeElement)){const e=o[0]||document.querySelector("main");e?.focus({preventScroll:!0})}const a=n?"nb-drawer:opened":"nb-drawer:closed";e.dispatchEvent(new CustomEvent(a,{bubbles:!0,cancelable:!0}))},L="historyState",k=e=>{const t=void 0===e?window.history?.state:e;void 0!==t&&window.sessionStorage?.setItem(L,JSON.stringify(t))},q=(e,t={},...n)=>{const o=document.createElement(e);return Object.entries(t).forEach(([e,t])=>o.setAttribute("className"===e?"class":e,t)),n.forEach(e=>"string"==typeof e?o.insertAdjacentText("beforeend",e):o.appendChild(e)),o},C=(e,...t)=>[...e.classList.entries()].filter(([,e])=>!t.includes(e)).forEach(([,t])=>e.classList.remove(t)),O=e=>{const t=window.getComputedStyle(document.documentElement).fontSize;return e/parseInt(t,10)},j=O(12),B=O(6),I=O(20),_=`${j+I+B}rem`;var N=n(762);const T=e=>e instanceof Document||e instanceof Element?e:e[0],R=(e,t)=>{$(e).val(null),(t??[]).forEach(t=>{if(!e.querySelector(`option[value="${t.value}"]`)){const n=document.createElement("option");n.innerText=t.text,n.setAttribute("selected","true"),n.setAttribute("value",t.value),e.appendChild(n)}});const n=t.length>0?null!==e?.getAttribute("multiple")?t.map(e=>e.value):t?.[0]?.value:null;$(e).val(n).trigger("change")},M=(e,t,n)=>[...T(e).querySelectorAll(t)].forEach(e=>$(e).select2({allowClear:!0,placeholder:"---------",selectionCssClass:"select2--small",theme:"bootstrap-5",width:"off",...n})),D=(e,t=null)=>{const n=(e,t)=>(e.element&&T(t).setAttribute("style",e.element.getAttribute("style")),e.text);M(e,".nautobot-select2-color-picker",{dropdownParent:t,templateResult:n,templateSelection:n})},P=(e,t=null)=>{M(e,".nautobot-select2-api",{ajax:{data:function(e){const[t]=this,n=50*(e.page-1)||0,o=e.term,a=t.getAttribute("search-field")||"q",r=t.getAttribute("data-api-version"),s=parseInt(t.getAttribute("data-depth"),10)||0,l=t.getAttribute("data-contenttype"),i=[...t.attributes].filter(e=>e.name.includes("data-query-param-")).flatMap(e=>{const[,n]=e.name.split("data-query-param-");return(()=>{try{return JSON.parse(e.value)}catch(e){return[]}})().flatMap(e=>{const o=e.startsWith("$"),a=o?(()=>{const n=e.slice(1);if(t.id.includes("id_form-")){const[e]=t.id.match(/id_form-[0-9]+-/i,"");return document.querySelector(`#${e}${n}`)}return t.closest("tr")?.classList.contains("dynamic-formset")?t.closest("tr").querySelector(`select[id*="${n}"]`):document.querySelector(`#id_${n}`)})():null,r=a?(()=>{const e=(t=a,null===t?.getAttribute("multiple")?t?.value:[...t.selectedOptions].map(e=>e.value));var t;const n=window.getComputedStyle(a);return e&&"0"!==n.opacity&&"hidden"!==n.visibility?e:a.getAttribute("required")&&a.getAttribute("data-null-option")?"null":void 0})():null;return null!=(o?r:e)?[[n,r||e]]:[]})}),c=[["depth",String(s)],["limit",String(50)],["offset",String(n)],...r?[["api_version",r]]:[],...l?[["content_type",l]]:[],...o?[[a,o]]:[],...i];return new URLSearchParams(c).toString()},delay:500,processResults:function(e){const[t]=this.$element;[...t.querySelectorAll("option")].forEach(e=>e.removeAttribute("disabled"));const n=[...t.getAttribute("data-null-option")&&null===e.previous?[{id:"null",text:t.getAttribute("data-null-option")}]:[],...Object.values(e.results.reduce((e,n,o)=>{const a=Boolean(n?.[t.getAttribute("disabled-indicator")]),r=N(n,t.getAttribute("value-field"))||n.id,s=N(n,t.getAttribute("display-field"))||n.name,l={...n,disabled:a,id:r,text:s},{group:i,site:c,url:d}=l,u=Boolean(d?.includes("dynamic-groups")),m=(()=>{switch(!0){case null!=i&&null!=c:return{property:`${c.name}:${i.name}`,text:`${c.name} / ${i.name}`};case null!=i:return{property:i.name,text:i.name};case null!=c:return{property:c.name,text:c.name};case null===i&&null===c:return{property:"global",text:"Global"};default:return}})();return{...e,...m?{[m.property]:{...e[m.property],...e[m.property]?void 0:{text:m.text},children:u?void 0:[...e[m.property]?.children??[],l]}}:{[o]:l}}},{}))];return{pagination:{more:null!==e.next},results:n}},url:function(){const[e]=this,t=(e=>{const t=/\{\{([a-z_]+)}}/g;let n,o=e;for(;n=t.exec(e);){const e=document.querySelector(`#id_${n[1]}`),t=e?.selectedOptions?.[0]?.getAttribute("api-value"),a=t||e.value||(e.getAttribute("data-null-option")?"null":void 0);o=a?o.replace(n[0],a):o}return o})(e.getAttribute("data-url"));return!t.includes("{{")&&t}},dropdownParent:t})},z=(e,t=null)=>{M(e,".nautobot-select2-multi-value-char",{dropdownParent:t,language:{noResults:()=>"Type something to add it as an option"},multiple:!0,tags:!0,tokenSeparators:[","]}),[...T(e).querySelectorAll(".nautobot-select2-multi-value-char")].forEach(e=>{$(e).on("select2:open",()=>{const t=document.querySelector(".select2-container--open");if(!t)return;const n=t.querySelector("input.select2-search__field");n&&(n.getAttribute("data-enter-binds")||(n.setAttribute("data-enter-binds","1"),n.addEventListener("keydown",t=>{if("Enter"===t.key){t.preventDefault(),t.stopPropagation();const o=n.value.trim();if(!o)return;const a=$(e).get(0),r=Array.prototype.find.call(a.options,e=>String(e.value)===String(o));r?r.selected=!0:a.add(new Option(o,o,!0,!0)),n.value="",$(e).trigger("change");try{$(e).select2("close")}catch(e){}}})))})})},J=(e,t=null)=>M(e,".nautobot-select2-static",{dropdownParent:t}),F=e=>{D(e),P(e),z(e),J(e),[...T(e).querySelectorAll(".modal")].forEach(e=>{D(e,e),P(e,e),z(e,e),J(e,e)})},G=e=>document.cookie.split("; ").find(t=>t.startsWith(`${e}=`))?.split("=")[1],U=(e,t,n)=>{const o={[e]:t,path:"/",...n};document.cookie=Object.entries(o).map(e=>e.join("=")).join(";")},K="sidenav_collapsed",Q=()=>{const e=document.querySelector(".nb-sidenav-toggler"),t=e.getAttribute("aria-controls"),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",String(!n)),document.getElementById(t).classList.toggle("nb-sidenav-collapsed",n),n?(U(K,"true"),window.localStorage?.setItem(K,"true")):(U(K,"",{expires:"Thu, 01 Jan 1970 00:00:00 GMT"}),window.localStorage?.removeItem(K))},W=["invisible","position-absolute"],X="theme_modal",Y="dark",V="light",H="system",Z="theme_choice",ee=e=>[Y,V,H].includes(e),te=(e=null)=>{null!==e&&ee(e)&&(e=>{ee(e)&&U(Z,e,{"max-age":31536e3,path:"/"})})(e);const t=G(Z),n=(()=>{const e=G(Z);return[Y,V].includes(e)?e:window.matchMedia?.(`(prefers-color-scheme: ${Y})`).matches?Y:V})();U("theme",n,{"max-age":31536e3,path:"/"});const o=document.getElementById(X);(o?.querySelectorAll("button[data-nb-theme]")??[]).forEach(e=>["border","border-primary"].forEach(n=>e.classList.toggle(n,e.dataset.nbTheme===t))),document.documentElement.dataset.theme=n,document.documentElement.dataset.bsTheme=n,(e=>{const t=document.querySelectorAll('link[rel="stylesheet"][href*="github"]');if(1===t.length){const[n]=t,o=e===Y?"github-dark.min.css":"github.min.css";n.href=n.href.replace(/github(-dark)?\.min\.css/,o)}})(n),(e=>{const t=document.querySelectorAll("div[_echarts_instance_]");t?.forEach(t=>{const n=JSON.parse(document.getElementById(`echarts-config-${t.id}`).textContent),o=Array.isArray(n.color)?n.color.map(t=>t?.[e]||t?.light||t):n.color;window.echarts.getInstanceByDom(t)?.setOption({color:o,darkMode:e===Y})})})(n),n===Y&&[...document.getElementsByTagName("object")].forEach(e=>{e.addEventListener("load",e=>{e.target.contentDocument&&[...e.target.contentDocument.getElementsByTagName("image"),...e.target.contentDocument.getElementsByClassName("rack-device-shortname"),...e.target.contentDocument.getElementsByClassName("rack-device-fullname")].forEach(e=>e.setAttribute("filter","url(#darkmodeinvert)"))})})};window.bootstrap=o,window.ClipboardJS=a,window.echarts=r,window.flatpickr=s.A,window.htmx=m.A,l.A.registerLanguage("graphql",i.A),l.A.registerLanguage("json",c.A),l.A.registerLanguage("xml",d.A),l.A.registerLanguage("yaml",u.A),window.hljs=l.A,window.jQuery=p,window.$=window.jQuery,document.addEventListener("DOMContentLoaded",()=>{window.nb??={},(()=>{const e=(()=>{try{const e=window.sessionStorage?.getItem(L);return e?JSON.parse(e):void 0}catch(e){return}})();if(void 0!==e){const t=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(e,"",t),window.sessionStorage?.removeItem(L)}})(),window.nb.history={saveState:k},[...document.querySelectorAll('[data-bs-toggle="tooltip"]')].forEach(e=>new o.Tooltip(e)),(()=>{const e=document.querySelector(".nb-sidenav-toggler");if(e){const t=G(K)??window.localStorage?.getItem(K)??"false";("true"===t&&"true"===e.getAttribute("aria-expanded")||"false"===t&&"false"===e.getAttribute("aria-expanded"))&&Q(),e.addEventListener("click",Q)}[...document.querySelectorAll(".nb-sidenav-list-item:not(.nb-flat)")].forEach(e=>{e.addEventListener("click",()=>{const t=e.getAttribute("aria-controls"),n="true"===e.getAttribute("aria-expanded");e.setAttribute("aria-expanded",String(!n));const o=n=>{const{target:a}=n,r=document.getElementById(t);!e.contains(a)&&!r.contains(a)&&(e.setAttribute("aria-expanded","false"),document.removeEventListener("click",o))};n?document.removeEventListener("click",o):document.addEventListener("click",o)})});const t=$("#sidenav-branch-picker-select");t.on("change",e=>e.currentTarget.form.submit()),t.on("select2:open",()=>{document.querySelector(".select2-dropdown").setAttribute("data-bs-theme","dark"),document.querySelector(".select2-dropdown .select2-search__field").setAttribute("placeholder","Find a branch...")})})(),window.nb.checkbox={initializeCheckboxes:w},(()=>{const e=(e,t)=>e.every(e=>{const n=!e.classList.contains("show");return"collapsed"===t?n:!n}),t=e=>[...document.querySelectorAll(e.dataset.nbTarget||".collapse")];document.addEventListener("click",e=>{const n=e.target.closest('[data-nb-toggle="collapse-all"]');n&&t(n).forEach(e=>{const t=window.bootstrap.Collapse.getOrCreateInstance(e);"true"===n.getAttribute("aria-expanded")?t.hide():t.show()})}),document.addEventListener("hidden.bs.collapse",()=>[...document.querySelectorAll('[data-nb-toggle="collapse-all"]')].filter(n=>e(t(n),"collapsed")).forEach(e=>{e.setAttribute("aria-expanded","false"),e.textContent="Expand All Groups"})),document.addEventListener("shown.bs.collapse",()=>[...document.querySelectorAll('[data-nb-toggle="collapse-all"]')].filter(n=>e(t(n),"expanded")).forEach(e=>{e.setAttribute("aria-expanded","true"),e.textContent="Collapse All Groups"}))})(),(()=>{const e=(e,t)=>e?.closest?.(`.${t}`),t=t=>n=>{const o=e(n.target,"nb-draggable-handle");o&&e(o,y).setAttribute("draggable",String(t))},n=t(!0),o=t(!1);document.addEventListener("mousedown",n),document.addEventListener("mouseup",o),document.addEventListener("dragstart",t=>{const n=e(t.target,y);n&&(t.dataTransfer.clearData("text/plain"),t.dataTransfer.setData("text/plain",t.target.id),n.classList.add(S))}),document.addEventListener("dragend",t=>{const n=e(t.target,y);n&&(n.classList.remove(S),n.setAttribute("draggable","false"))}),document.addEventListener("dragover",t=>{e(t.target,E)&&t.preventDefault()}),document.addEventListener("drop",t=>{const n=document.getElementById(t.dataTransfer.getData("text/plain"));if(n){t.preventDefault();const o=e(n,E),a=(()=>{const n=e(t.target,y);if(n){const{height:e,top:o}=n.getBoundingClientRect();return t.clientY<o+e/2?n:n.nextSibling}return[...o.children].find(e=>{const{left:n,right:o,top:a}=e.getBoundingClientRect();return n>t.clientX||o>=t.clientX&&a>=t.clientY})})();a?o.insertBefore(n,a):o.append(n),n.classList.add(S)}})})(),document.addEventListener("nb-drawer:close",e=>x(e.target,!1)),document.addEventListener("nb-drawer:open",e=>x(e.target,!0)),document.addEventListener("nb-drawer:toggle",e=>x(e.target)),document.addEventListener("nb-drawer:opened",e=>{if(e.target.id){const t={...window.history?.state,drawer:e.target.id},n=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(t,"",n)}}),document.addEventListener("nb-drawer:closed",()=>{const{drawer:e,...t}="object"==typeof window.history?.state&&null!==window.history.state?window.history.state:{},n=Object.keys(t).length>0?t:null,o=`${window.location.pathname}${window.location.search}${window.location.hash}`;window.history?.replaceState(n,"",o)}),document.addEventListener("click",e=>{const t=e.target.closest("[data-nb-dismiss]"),n=e.target.closest("[data-nb-toggle]");if("drawer"===t?.dataset.nbDismiss){const e=t.closest(".nb-drawer");e?.dispatchEvent(new CustomEvent("nb-drawer:close",{bubbles:!0,cancelable:!0}))}else if("drawer"===n?.dataset.nbToggle){const e=document.querySelector(n.dataset.nbTarget);e?.dispatchEvent(new CustomEvent("nb-drawer:toggle",{bubbles:!0,cancelable:!0}))}}),window.history?.state?.drawer&&document.getElementById(window.history.state.drawer)?.dispatchEvent(new CustomEvent("nb-drawer:open",{bubbles:!0,cancelable:!0})),(()=>{const e=new IntersectionObserver(([e])=>e.target.classList.toggle("nb-is-pinned",e.intersectionRatio<1),{threshold:[1]});[...document.querySelectorAll(".nb-form-sticky-footer")].forEach(t=>e.observe(t))})(),(()=>{const e=document.getElementById("header_search");if(!e)return()=>{};const t=(()=>{try{const e=document.getElementById("nav_menu");return e?JSON.parse(e.textContent):{}}catch(e){return{}}})(),n=Object.fromEntries(Object.entries(t.tabs).flatMap(([,e])=>Object.entries(e.groups).flatMap(([,e])=>Object.entries(e.items).map(([e,t])=>[e,t])))),o=new RegExp(`^\\s*in\\s*:\\s*(${Object.entries(n).flatMap(([,{name:e}])=>[e,...["","_","\\-"].map(t=>e.replace(/\s+/g,t))]).join("|")})\\s+`,"i"),a=e.querySelector("input"),r=()=>{const e=document.getElementById("search_popup");e&&(e.remove(),document.body.classList.toggle("overflow-y-hidden",!1))};document.addEventListener("keydown",e=>{const t=e.getModifierState?.("Meta"),n=e.ctrlKey;(t||n)&&"k"===e.key?(e.preventDefault(),a.focus()):"Escape"===e.key&&r()});a.addEventListener("focus",()=>{const t=document.getElementById("search_popup");if(t){const e=t.querySelector("input");return e?.focus(),void e?.setSelectionRange(-1,-1)}document.body.classList.toggle("overflow-y-hidden",!0);const{left:s=0,right:l=0}=document.querySelector("main")?.getBoundingClientRect()??{},{top:i}=a.getBoundingClientRect(),c=q("span",{"aria-hidden":"true",className:"mdi mdi-magnify d-inline-flex ms-12 mt-6 pe-none position-absolute start-0 text-secondary top-0 user-select-none",style:`height: ${I}rem; width: ${I}rem;`}),d=q("span",{className:"d-inline-flex gap-6 left-0 my-6 position-absolute top-0",style:`left: ${_};`}),u=q("input",{className:"form-control w-100",name:"q",required:"true",style:`padding-inline: ${_};`,type:"search",value:a.value}),m=q("button",{className:"btn mdi mdi-close bg-transparent border-0 end-0 hstack justify-content-center me-12 mt-6 p-0 position-absolute text-secondary top-0 nb-transition-base"+(""===u.value?" invisible opacity-0":""),style:`height: ${I}rem; width: ${I}rem;`,type:"button"},q("span",{className:"visually-hidden"},"Clear"));m.addEventListener("click",()=>{u.value="",u.dispatchEvent(new InputEvent("input")),u.focus()}),u.addEventListener("input",()=>{const e=""===u.value;m.classList.toggle("invisible",e),m.classList.toggle("opacity-0",e)});const p=q("input",{className:"d-none",type:"submit"}),g=q("form",{action:e.getAttribute("action"),className:"position-relative w-100",role:"search"},c,d,u,m,p);g.addEventListener("submit",()=>{const e=g.querySelector("[data-nb-link]:last-child");e&&g.setAttribute("action",e.dataset.nbLink)});const b=q("div"),h=q("div",{className:"mx-auto w-100",style:`max-width: ${O(720)}rem;`},g,b),v=q("div",{className:"overflow-auto pb-20 position-fixed top-0 end-0 bottom-0 start-0 nb-z-modal-backdrop",id:"search_popup",role:"dialog",style:`background-color: rgba(0, 0, 0, .5); padding-block-start: ${i}px; padding-inline-start: calc(${s}px + ${O(20)}rem); padding-inline-end: calc(100% - ${l}px + ${O(20)}rem);`},h);v.addEventListener("click",e=>{e.target===v&&r()}),document.body.appendChild(v);const f=e=>{const t=Object.entries(n).find(([t])=>t===e)?.[1]?.name??e,o=q("button",{type:"button"},q("span",{"aria-hidden":"true",class:"mdi mdi-close"}),q("span",{class:"visually-hidden"},"Remove")),a=q("span",{className:"badge border","data-nb-link":e},`in: ${t}`,o);o.addEventListener("click",()=>{a.remove(),u.focus()}),[...d.querySelectorAll(`[data-nb-link="${e}"]`)].forEach(e=>e.remove()),d.appendChild(a),[...d.children].slice(0,-1).forEach(e=>e.remove())};new ResizeObserver(()=>{const{width:e}=d.getBoundingClientRect();u.style.paddingInlineStart=e?`calc(${_} + ${e}px + ${B}rem)`:_}).observe(d),u.addEventListener("input",()=>{const e=u.value.match(o);if(e){const[t,o]=e,a=e=>e.trim().toLowerCase().replace(/\s|_|-/g,""),r=Object.entries(n).find(([,{name:e}])=>a(e)===a(o))?.[0];r&&(u.value=u.value.replace(t,""),u.dispatchEvent(new InputEvent("input")),f(r))}}),u.addEventListener("keydown",e=>{const t="Backspace"===e.key,n=0===u.selectionEnd&&0===u.selectionStart;t&&n&&d.querySelector(":last-child")?.remove()}),e.querySelectorAll("[data-nb-link]").forEach(e=>f(e.dataset.nbLink)),u.focus(),u.setSelectionRange(-1,-1)})})(),window.nb.select2={initializeSelect2Fields:F,setSelect2Value:R},(()=>{const e=[...document.querySelectorAll(".nav.nav-tabs")].map(e=>{const t=new ResizeObserver(()=>(e=>{const t=e.parentNode;[...t.querySelectorAll('.nav.nav-tabs[data-clone="true"]')].forEach(e=>e.remove());const n=e.cloneNode(!0);n.removeAttribute("id"),n.dataset.clone="true";const a=["flex-nowrap","invisible","position-absolute","z-n1"];n.classList.add(...a),e.nextSibling?t.insertBefore(n,e.nextSibling):t.appendChild(n);const r=()=>n.getBoundingClientRect().width>e.getBoundingClientRect().width;if(!r())return e.classList.remove(...W),void t.removeChild(n);const s=q("ul",{className:"dropdown-menu dropdown-menu-end"}),l=q("span",{className:"mdi mdi-menu"}),i=q("span",{className:"visually-hidden"},"Toggle Dropdown"),c=q("button",{"aria-expanded":"false",className:"btn dropdown-toggle text-secondary","data-bs-toggle":"dropdown",type:"button"},l,i),d=q("li",{className:"dropdown flex-grow-1 mb-n1 text-end"},c,s);n.appendChild(d);const u=[];for(;r();){const e=d.previousElementSibling;u.unshift(e),n.removeChild(e)}u.forEach(e=>{C(e),[...e.children].forEach(e=>{C(e,"active","disabled"),e.classList.add("dropdown-item","justify-content-between")}),s.appendChild(e)}),[...n.querySelectorAll("a")].forEach(t=>{t.addEventListener("shown.bs.tab",()=>{const n=e.querySelector(`a[href="${t.getAttribute("href")}"]`);(o.Tab.getInstance(n)||new o.Tab(n)).show()})}),e.classList.add(...W),n.classList.remove(...a)})(e));return t.observe(e),t})})(),(()=>{const e=document.getElementById(X),t=e?.querySelectorAll("button[data-nb-theme]")??[];(()=>{const e=G(Z);if(!ee(e)){const e=window.localStorage?.getItem("theme"),t=ee(e)?e:H;U(Z,t,{"max-age":31536e3,path:"/"})}window.localStorage?.removeItem("theme")})(),te(),window.matchMedia(`(prefers-color-scheme: ${Y})`).addEventListener("change",()=>te());const n=t=>{te(t.currentTarget.dataset.nbTheme),o.Modal.getInstance(e).hide()};t.forEach(e=>e.addEventListener("click",n))})(),window.toggleFavorite=(e,t)=>{t.detail.successful&&e.classList.toggle("active")},window.setRequestUrl=(e,t)=>{const n=e.classList.contains("active");t.detail.path=n?e.dataset.deleteUrl:e.dataset.addUrl},document.querySelectorAll('a[data-bs-toggle="tooltip"], div[data-bs-toggle="tooltip"] > a').forEach(e=>{e.addEventListener("click",()=>{e.blur()})}),document.addEventListener("hidden.bs.modal",()=>{document.querySelectorAll('[data-bs-toggle="tooltip"] > a').forEach(e=>{e.blur()})})})}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e].call(r.exports,r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,a,r)=>{if(!n){var s=1/0;for(d=0;d<e.length;d++){for(var[n,a,r]=e[d],l=!0,i=0;i<n.length;i++)(!1&r||s>=r)&&Object.keys(o.O).every(e=>o.O[e](n[i]))?n.splice(i--,1):(l=!1,r<s&&(s=r));if(l){e.splice(d--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var d=e.length;d>0&&e[d-1][2]>r;d--)e[d]=e[d-1];e[d]=[n,a,r]},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={825:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var a,r,[s,l,i]=n,c=0;if(s.some(t=>0!==e[t])){for(a in l)o.o(l,a)&&(o.m[a]=l[a]);if(i)var d=i(o)}for(t&&t(n);c<s.length;c++)r=s[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(d)},n=self.webpackChunknautobot=self.webpackChunknautobot||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=o.O(void 0,[68],()=>o(446));a=o.O(a)})();
2
2
  //# sourceMappingURL=nautobot.js.map