Files
librenms-librenms/html/js/app.js
Tony Murray e08571c38c Transceiver Support (#16165)
* Add transceivers module

Move os specific code to OS

Fix errors and updated connector names

Add RouterOS, a lot less data there.

Add Comware

Add Exa, required a transformer function (mw to dBm)

Add Junos, revision was too short

Just starting on ui

Graphs, and more ui
some polling fixes

collapse header for small screens

refactor a bit

Missed graphs

Transceivers icon inline

Use @once on popup javascript

update db_schema.yaml

Don't show transceivers in basic view
basic view could use a review

Apply fixes from StyleCI

API functions

Comware don't fail if port is missing

Apply fixes from StyleCI

Add alert rules to collection

Device Overview

Attempt to fix bad alert rule, probably needs more

Fix up Comware and remove old sensors

Mark transceiver metrics without thresholds as Unknown

Routeros cleanup

Exa cleanup

Handle missing port

Graph allow filter by channel

More translations

Add transceiver graphs to port graphs

Add Cisco support, use entPhyscial module data if available

Fix OcNos divisors

Labels on transceiver page

Show encoding if available

Hacky OcNos port mapping

Fix up Junos optics and remove old sensors

FS switch support
Metric casts to prevent thrashing
Extra transform_function support

Add link to transceivers page from overview

Change default sort to group by type, then channel
move some code out of overview blade template
Fix bad type ocnos

Apply fixes from StyleCI

Add scales to graphs

Add some test data

Default sort order for metrcis in SQL applied by default

Transceiver metrics threshold manual settings via WebUI and API

Fixes to channels verbiage

Fix severity calculations

Add cable field for SM/MM/Copper

Apply fixes from StyleCI

update test data

Show DDM

Update DB schema file

Extend serial field to 32, even though devices shouldn't be able to have one longer than 16

Missing import

Add status field to database, that way we can support snmp implementations that only return an enum

Add missing files

Fix db_schema

Fix style

Fixes

Style fix

Work around phpstan issue

Update transceivers.blade.php

Missed getStatus() call

Prevent extra dots when channels are not changed

Update module to match upstream

Save ocnos metrics as sensors

Move to regular sensors

add entity physical index

Update UI to sensors WIP

Apply fixes from StyleCI

Forgot one change

Update ui to use sensors

Remove transceiver metrics

Remove metric os discover code
fs-switch pending

Remove transceiver metrics for fs-centec

Exa link up

Revert all test data

Fix up transceiver module interface

Remove unused Convert class

comware cache and transceiver type

Fix some transceiver metrics filtering and formatting issues

Consolidate display formatting

Coalesce commare hh3cTransceiverTable walks to prevent double walk

Use group to identify transceiver sensors

Fixup routeros

Fix up cisco

update db_schema

Small addition to docs

Improve overview layout and add graph popup

Update Junos

update css files

ddm should be nullable

Increase the field length for type and model

Cisco Improve detection when there is an intermediary container

Add transceiver test data

Apply fixes from StyleCI

Fix incorrect test data

Improve display formatting

Fix test data

Apply fixes from StyleCI

Fix up more data

Fix up more data

Fix incorrect return type in routeros

Update ocnos data

* Remove some remaining references to transceiver_metrics table
2024-09-29 11:05:44 -05:00

1 line
62 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunk=self.webpackChunk||[]).push([[847],{104:(t,e,a)=>{"use strict";var n=a(2893),s=a(4765);n.Ay.use(s.A);var i=new s.A({locale:document.querySelector("html").getAttribute("lang"),fallbackLocale:"en",silentFallbackWarn:!0,silentTranslationWarn:!0,messages:window.vuei18nLocales}),o=a(2616),r=a.n(o),l=a(7406),u=a(6804),c=a.n(u),d=a(5262),p=a.n(d),v=a(6401),m=a(2662),f=a.n(m);a(8290),window.Vue=a(2893).Ay;var h=a(4288);h.keys().map((function(t){return Vue.component(t.split("/").pop().split(".")[0],h(t).default)})),Vue.use(r()),Vue.use(l.Ay),Vue.component("v-select",c()),Vue.component("multiselect",p()),Vue.use(v.Ay),Vue.use(f()),Vue.filter("ucfirst",(function(t){return t?(t=t.toString()).charAt(0).toUpperCase()+t.slice(1):""}));new Vue({el:"#app",i18n:i})},8290:(t,e,a)=>{window._=a(2543);try{window.Popper=a(8851).A}catch(t){}window.axios=a(6425),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";var n=document.head.querySelector('meta[name="csrf-token"]');n?window.axios.defaults.headers.common["X-CSRF-TOKEN"]=n.content:console.error("CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token"),a(4092)},9305:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".accordion-item-trigger-icon[data-v-16b90b68]{transition:transform .2s ease}.accordion-item-trigger.collapsed .accordion-item-trigger-icon[data-v-16b90b68]{transform:rotate(-90deg)}",""]);const i=s},8003:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".disable-events[data-v-b22a4cde]{pointer-events:none}",""]);const i=s},6471:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,"#settings-search[data-v-c1efd320]{border-radius:4px}#settings-search[data-v-c1efd320]::-webkit-search-cancel-button{-webkit-appearance:searchfield-cancel-button}ul.settings-list[data-v-c1efd320]{list-style-type:none}",""]);const i=s},2246:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".tab-content{width:100%}",""]);const i=s},1494:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".setting-container[data-v-5ab9fce1]{margin-bottom:10px}",""]);const i=s},2613:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".input-group[data-v-588cd6c1]{margin-bottom:3px}.input-group-addon[data-v-588cd6c1]:not(.disabled){cursor:move}",""]);const i=s},1287:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".input-group[data-v-dcc80002]{margin-bottom:3px}.input-group-addon[data-v-dcc80002]:not(.disabled){cursor:move}",""]);const i=s},4213:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".form-control[data-v-498558d3]{padding-right:12px}",""]);const i=s},4854:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".form-control[data-v-66aaec8d]{padding-right:12px}",""]);const i=s},8459:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,"div[data-v-4c03d640] .select2-container{flex-grow:1}div[data-v-4c03d640] .select2-selection--multiple .select2-search--inline .select2-search__field{width:.75em!important}",""]);const i=s},1754:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".form-control[data-v-72c868aa]{padding-right:12px}",""]);const i=s},9704:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".input-group[data-v-f290b6f6]{padding-bottom:3px}",""]);const i=s},1365:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,"div[data-v-f45258b0]{color:red}",""]);const i=s},3835:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".expandable[data-v-b79c7dea]{height:30px;padding:5px}.buttons[data-v-b79c7dea]{padding:0 5px;white-space:nowrap}.new-btn-div[data-v-b79c7dea]{margin-bottom:5px}.panel-body[data-v-b79c7dea]{padding:5px 0}",""]);const i=s},5569:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".authlevel[data-v-b51be698]{font-size:18px;text-align:left}.fa-minus-circle[data-v-b51be698]{cursor:pointer}.snmp3-add-button[data-v-b51be698]{margin-top:5px}",""]);const i=s},6095:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".panel.with-nav-tabs .panel-heading[data-v-2ac3a533]{padding:5px 5px 0}.panel.with-nav-tabs .nav-tabs[data-v-2ac3a533]{border-bottom:none}.panel.with-nav-tabs .nav-justified[data-v-2ac3a533]{margin-bottom:-1px}.with-nav-tabs.panel-default .nav-tabs>li>a[data-v-2ac3a533],.with-nav-tabs.panel-default .nav-tabs>li>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>li>a[data-v-2ac3a533]:hover{color:#777}.with-nav-tabs.panel-default .nav-tabs>.open>a[data-v-2ac3a533],.with-nav-tabs.panel-default .nav-tabs>.open>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>.open>a[data-v-2ac3a533]:hover,.with-nav-tabs.panel-default .nav-tabs>li>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>li>a[data-v-2ac3a533]:hover{background-color:#ddd;border-color:transparent;color:#777}.with-nav-tabs.panel-default .nav-tabs>li.active>a[data-v-2ac3a533],.with-nav-tabs.panel-default .nav-tabs>li.active>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>li.active>a[data-v-2ac3a533]:hover{background-color:#fff;border-color:#ddd #ddd transparent;color:#555}.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu[data-v-2ac3a533]{background-color:#f5f5f5;border-color:#ddd}.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a[data-v-2ac3a533]{color:#777}.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>li>a[data-v-2ac3a533]:hover{background-color:#ddd}.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a[data-v-2ac3a533],.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a[data-v-2ac3a533]:focus,.with-nav-tabs.panel-default .nav-tabs>li.dropdown .dropdown-menu>.active>a[data-v-2ac3a533]:hover{background-color:#555;color:#fff}",""]);const i=s},1658:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});var n=a(6798),s=a.n(n)()((function(t){return t[1]}));s.push([t.id,".enter-active[data-v-54390bb4],.leave-active[data-v-54390bb4]{overflow:hidden;transition:height .2s linear}",""]);const i=s},9874:()=>{},1891:()=>{},3644:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"Accordion",props:{multiple:{type:Boolean,default:!1}},methods:{setActive:function(t){this.$children.forEach((function(e){e.slug()===t&&(e.isActive=!0)}))},activeChanged:function(t){this.multiple||this.$children.forEach((function(e){e.slug()!==t&&(e.isActive=!1)}))}},mounted:function(){this.$on("expanded",this.activeChanged)}};const s=(0,a(4486).A)(n,(function(){return(0,this._self._c)("div",{staticClass:"panel-group",attrs:{role:"tablist"}},[this._t("default")],2)}),[],!1,null,"11dcbcb8",null).exports},9814:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"AccordionItem",props:{name:{type:String,required:!0},text:String,active:Boolean,icon:String},data:function(){return{isActive:this.active}},mounted:function(){window.location.hash===this.hash()&&(this.isActive=!0)},watch:{active:function(t){this.isActive=t},isActive:function(t){this.$parent.$emit(t?"expanded":"collapsed",this.slug())}},methods:{slug:function(){return this.name.toString().toLowerCase().replace(/\s+/g,"-")},hash:function(){return"#"+this.slug()}}};var s=a(5072),i=a.n(s),o=a(9305),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading",attrs:{role:"tab",id:t.slug()}},[e("h4",{staticClass:"panel-title"},[e("a",{staticClass:"accordion-item-trigger",class:{collapsed:!t.isActive},attrs:{role:"button","data-parent":"#accordion","data-href":t.hash()},on:{click:function(e){t.isActive=!t.isActive}}},[e("i",{staticClass:"fa fa-chevron-down accordion-item-trigger-icon"}),t._v(" "),t.icon?e("i",{class:["fa","fa-fw",t.icon]}):t._e(),t._v("\n "+t._s(t.text||t.name)+"\n ")])])]),t._v(" "),e("transition-collapse-height",[t.isActive?e("div",{class:["panel-collapse","collapse",{in:t.isActive}],attrs:{id:t.slug()+"-content",role:"tabpanel"}},[e("div",{staticClass:"panel-body"},[t._t("default")],2)]):t._e()])],1)}),[],!1,null,"16b90b68",null).exports},9967:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"BaseSetting",props:{name:{type:String,required:!0},value:{required:!0},disabled:Boolean,required:Boolean,pattern:String,"update-status":String,options:{}}};const s=(0,a(4486).A)(n,undefined,undefined,!1,null,null,null).exports},7881:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={mounted:function(){console.log("Component mounted.")}};const s=(0,a(4486).A)(n,(function(){this._self._c;return this._m(0)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("div",{staticClass:"row justify-content-center"},[e("div",{staticClass:"col-md-8"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-header"},[t._v("Example Component")]),t._v(" "),e("div",{staticClass:"card-body"},[t._v("\n I'm an example component.\n ")])])])])])}],!1,null,null,null).exports},5103:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>o});function n(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}const i={name:"LibrenmsSelect",props:{routeName:{type:String,required:!0},placeholder:{type:String,default:""},allowClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},value:{type:[String,Number,Array],default:""}},model:{event:"change",prop:"value"},data:function(){return{select2:null}},methods:{checkValue:function(){var t=this;if(""===this.value||this.value===[])return!0;var e=this.value instanceof Array?this.value:[this.value];return!(this.select2.find("option").filter((function(t,a){return e.includes(a.value)})).length<e.length)||(axios.get(route(this.routeName),{params:{id:e.join(",")}}).then((function(a){a.data.results.forEach((function(a){void 0!==e.find((function(t){return t==a.id}))&&t.select2.append(new Option(a.text,a.id,!1,!0))})),t.select2.trigger("change")})),!1)}},watch:{value:function(t){t instanceof Object&&t.hasOwnProperty("id")&&t.hasOwnProperty("text")?this.select2.append(new Option(t.text,t.id,!0,!0)).trigger("change"):this.checkValue()&&(t instanceof Array?this.select2.val(n(t)):this.select2.val([t]),this.select2.trigger("change"))}},computed:{settings:function(){return{theme:"bootstrap",dropdownAutoWidth:!0,width:"auto",allowClear:Boolean(this.allowClear),placeholder:this.placeholder,multiple:this.multiple,ajax:{url:route(this.routeName).toString(),delay:250,cache:!0}}}},mounted:function(){var t=this;this.select2=$(this.$el),this.checkValue(),this.select2.select2(this.settings).on("select2:select select2:unselect",(function(e){t.$emit("change",t.select2.val()),t.$emit("select",e.params.data)}))},beforeDestroy:function(){this.select2.select2("destroy")}};const o=(0,a(4486).A)(i,(function(){return(0,this._self._c)("select",{attrs:{multiple:this.multiple}})}),[],!1,null,"7a0d5842",null).exports},7624:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});const n={name:"LibrenmsSetting",props:{setting:{type:Object,required:!0},prefix:{type:String,default:"settings"},id:{required:!1}},data:function(){return{value:this.setting.value,updateStatus:"none",feedback:""}},methods:{persistValue:function(t){var e=this;this.updateStatus="pending",axios.put(route(this.prefix+".update",this.getRouteParams()),{value:t}).then((function(t){e.value=t.data.value,e.$emit("setting-updated",{name:e.setting.name,value:e.value}),e.updateStatus="success",e.feedback="has-success",setTimeout((function(){return e.feedback=""}),3e3)})).catch((function(t){e.feedback="has-error",e.updateStatus="error",toastr.error(t.response.data.message);["text","email","password"].includes(e.setting.type)||(e.value=t.response.data.value,e.$emit("setting-updated",{name:e.setting.name,value:e.value}),setTimeout((function(){return e.feedback=""}),3e3))}))},debouncePersistValue:_.debounce((function(t){this.persistValue(t)}),500),changeValue:function(t){["select","boolean","multiple"].includes(this.setting.type)?this.persistValue(t):this.debouncePersistValue(t),this.value=t},getUnits:function(){var t=this.prefix+".units."+this.setting.units;return this.$te(t)?this.$t(t):this.setting.units},getDescription:function(){var t=this.prefix+".settings."+this.setting.name+".description";return this.$te(t)||this.$te(t,this.$i18n.fallbackLocale)?this.$t(t):this.setting.name},getHelp:function(){var t=this.$t(this.prefix+".settings."+this.setting.name+".help");return this.setting.overridden&&(t+="</p><p>"+this.$t(this.prefix+".readonly")),t},hasHelp:function(){var t=this.prefix+".settings."+this.setting.name+".help";return this.$te(t)||this.$te(t,this.$i18n.fallbackLocale)},resetToDefault:function(){var t=this;axios.delete(route(this.prefix+".destroy",this.getRouteParams())).then((function(e){t.value=e.data.value,t.feedback="has-success",setTimeout((function(){return t.feedback=""}),3e3)})).catch((function(e){t.feedback="has-error",setTimeout((function(){return t.feedback=""}),3e3),toastr.error(e.response.data.message)}))},resetToInitial:function(){this.changeValue(this.setting.value)},showResetToDefault:function(){return!this.setting.overridden&&!_.isEqual(this.value,this.setting.default)},showUndo:function(){return!_.isEqual(this.setting.value,this.value)},getRouteParams:function(){var t=[this.setting.name];return this.id&&t.unshift(this.id),t},getComponent:function(){var t="Setting"+this.setting.type.toString().replace(/(-[a-z]|^[a-z])/g,(function(t){return t.toUpperCase().replace("-","")}));return void 0!==Vue.options.components[t]?t:"SettingNull"}}},s=n;var i=a(5072),o=a.n(i),r=a(8003),l={insert:"head",singleton:!1};o()(r.A,l);r.A.locals;const u=(0,a(4486).A)(s,(function(){var t=this,e=t._self._c;return e("div",{class:["form-group","row","has-feedback",t.setting.class,t.feedback]},[e("label",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.setting.name},expression:"{ content: setting.name }"}],staticClass:"col-sm-5 col-md-3 col-form-label",attrs:{for:t.setting.name}},[t._v("\n "+t._s(t.getDescription())+"\n "),t.setting.units?e("span",[t._v("("+t._s(t.getUnits())+")")]):t._e()]),t._v(" "),e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:!!t.setting.disabled&&t.$t(this.prefix+".readonly")},expression:"{ content: setting.disabled ? $t(this.prefix + '.readonly') : false }"}],staticClass:"col-sm-5"},[e(t.getComponent(),{tag:"component",attrs:{value:t.value,name:t.setting.name,pattern:t.setting.pattern,disabled:t.setting.overridden,required:t.setting.required,options:t.setting.options,"update-status":t.updateStatus},on:{input:function(e){return t.changeValue(e)},change:function(e){return t.changeValue(e)}}}),t._v(" "),e("span",{staticClass:"form-control-feedback"})],1),t._v(" "),e("div",[e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.$t("Reset to default")},expression:"{ content: $t('Reset to default') }"}],staticClass:"btn btn-danger",class:{"disable-events":!t.showResetToDefault()},style:{opacity:t.showResetToDefault()?1:0},attrs:{type:"button"},on:{click:t.resetToDefault}},[e("i",{staticClass:"fa-solid fa-clock-rotate-left"})]),t._v(" "),e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.$t("Undo")},expression:"{ content: $t('Undo') }"}],staticClass:"btn btn-primary",class:{"disable-events":!t.showUndo()},style:{opacity:t.showUndo()?1:0},attrs:{type:"button"},on:{click:t.resetToInitial}},[e("i",{staticClass:"fa fa-undo"})]),t._v(" "),t.hasHelp()?e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:{content:t.getHelp(),trigger:"hover click"},expression:"{content: getHelp(), trigger: 'hover click'}"}],staticClass:"fa fa-fw fa-lg fa-question-circle"}):t._e()])])}),[],!1,null,"b22a4cde",null).exports},3995:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>c});function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var n,s,i,o,r=[],l=!0,u=!1;try{if(i=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;l=!1}else for(;!(l=(n=i.call(a)).done)&&(r.push(n.value),r.length!==e);l=!0);}catch(t){u=!0,s=t}finally{try{if(!l&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(u)throw s}}return r}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return s(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}const i={name:"LibrenmsSettings",props:{prefix:String,initialTab:{type:String,default:"alerting"},initialSection:String,tabs:{type:Array}},data:function(){return{tab:this.initialTab,section:this.initialSection,search_phrase:"",settings:{}}},methods:{tabChanged:function(t){this.tab!==t&&(this.tab=t,this.section=null,this.updateUrl())},sectionExpanded:function(t){this.section=t,this.updateUrl()},sectionCollapsed:function(t){this.section===t&&(this.section=null,this.updateUrl())},updateUrl:function(){var t=this.tab;this.section&&(t+="/"+this.section),window.history.pushState(t,"",this.prefix+"/"+t)},handleBack:function(t){var e=n(t.state.split("/"),2);this.tab=e[0],this.section=e[1]},updateSetting:function(t,e){this.$set(this.settings[t],"value",e)},settingShown:function(t){var e=this,a=this.settings[t];return null===a.when||(a.when.hasOwnProperty("and")?a.when.and.reduce((function(t,a){return e.checkLogic(a)&&t}),!0):a.when.hasOwnProperty("or")?a.when.or.reduce((function(t,a){return e.checkLogic(a)||t}),!1):this.checkLogic(a.when))},translatedCompare:function(t,e,a,n){return this.$t(t+e+n).localeCompare(this.$t(t+a+n))},checkLogic:function(t){switch(t.operator){case"equals":return this.settings[t.setting].value===t.value;case"in":return t.value.includes(this.settings[t.setting].value);default:return!0}}},mounted:function(){var t=this;window.onpopstate=this.handleBack,axios.get(route("settings.list")).then((function(e){return t.settings=e.data}))},computed:{groups:function(){var t=this;if(_.isEmpty(this.settings)){var e={};return this.tabs.sort((function(e,a){return t.translatedCompare("settings.groups.",e,a)})).forEach((function(t){e[t]=[]})),e}for(var a={},n=0,s=Object.keys(this.settings);n<s.length;n++){var i=s[n],o=this.settings[i];o.name.includes(this.search_phrase)&&(o.group&&(o.group in a||(a[o.group]={}),o.section&&(o.section in a[o.group]||(a[o.group][o.section]=[]),a[o.group][o.section].push(o))))}var r={};return Object.keys(a).sort((function(e,a){return t.translatedCompare("settings.groups.",e,a)})).forEach((function(e){r[e]={},Object.keys(a[e]).sort((function(a,n){return t.translatedCompare("settings.sections."+e+".",a,n,".name")})).forEach((function(t){r[e][t]=_.sortBy(a[e][t],"order").map((function(t){return t.name}))}))})),r}}};var o=a(5072),r=a.n(o),l=a(6471),u={insert:"head",singleton:!1};r()(l.A,u);l.A.locals;const c=(0,a(4486).A)(i,(function(){var t=this,e=t._self._c;return e("tabs",{attrs:{selected:this.tab},on:{"tab-selected":t.tabChanged},scopedSlots:t._u([{key:"header",fn:function(){return[e("form",{staticClass:"form-inline",on:{submit:function(t){t.preventDefault()}}},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model.trim",value:t.search_phrase,expression:"search_phrase",modifiers:{trim:!0}}],staticClass:"form-control",attrs:{id:"settings-search",type:"search",placeholder:t.$t("Filter Settings")},domProps:{value:t.search_phrase},on:{input:function(e){e.target.composing||(t.search_phrase=e.target.value.trim())},blur:function(e){return t.$forceUpdate()}}})])])]},proxy:!0}])},[t._v(" "),e("tab",{attrs:{name:"global",selected:"global"===t.tab,text:t.$t("settings.groups.global")}},[e("ul",{staticClass:"settings-list"},t._l(t.settings,(function(a){return e("li",[e("strong",[t._v(t._s(a.name))]),t._v(" "),e("code",[t._v(t._s(a.value))])])})),0)]),t._v(" "),t._l(t.groups,(function(a,n){return e("tab",{key:n,attrs:{name:n,selected:n===t.tab,text:t.$t("settings.groups."+n)}},[e("accordion",{on:{expanded:t.sectionExpanded,collapsed:t.sectionCollapsed}},t._l(t.groups[n],(function(a,s){return e("accordion-item",{key:s,attrs:{name:s,text:t.$t("settings.sections."+n+"."+s+".name"),active:s===t.section}},[t.$te("settings.sections."+n+"."+s+".description")?[e("h5",[t._v(t._s(t.$t("settings.sections."+n+"."+s+".description")))]),t._v(" "),e("hr")]:t._e(),t._v(" "),e("form",{staticClass:"form-horizontal",on:{submit:function(t){t.preventDefault()}}},t._l(a,(function(a){return e("librenms-setting",{directives:[{name:"show",rawName:"v-show",value:t.settingShown(a),expression:"settingShown(setting)"}],key:a,attrs:{setting:t.settings[a]},on:{"setting-updated":function(e){return t.updateSetting(e.name,e.value)}}})})),1)],2)})),1)],1)}))],2)}),[],!1,null,"c1efd320",null).exports},3411:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>c});const n={name:"PollerSettings",props:{pollers:Object,settings:Object},data:function(){return{advanced:!1}}};var s=a(5072),i=a.n(s),o=a(2246),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;var l=a(1494),u={insert:"head",singleton:!1};i()(l.A,u);l.A.locals;const c=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[e("h3",{staticClass:"panel-title"},[t._v("\n "+t._s(t.$t("Poller Settings"))+"\n "),e("span",{staticClass:"pull-right"},[t._v("Advanced "),e("toggle-button",{model:{value:t.advanced,callback:function(e){t.advanced=e},expression:"advanced"}})],1)])]),t._v(" "),e("div",{staticClass:"panel-body"},[e("vue-tabs",{attrs:{direction:"vertical",type:"pills"}},t._l(t.pollers,(function(a,n){return e("v-tab",{key:n,attrs:{title:a.poller_name}},t._l(t.settings[n],(function(n){return!n.advanced||t.advanced?e("div",{key:n.name,staticClass:"setting-container clearfix"},[e("librenms-setting",{attrs:{prefix:"poller.settings",setting:n,id:a.id}})],1):t._e()})),0)})),1)],1)])}),[],!1,null,"5ab9fce1",null).exports},3352:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>d});var n=a(9967),s=a(432),i=a.n(s);const o={name:"SettingArray",mixins:[n.default],components:{draggable:i()},data:function(){var t;return{localList:null!==(t=this.value)&&void 0!==t?t:[],newItem:""}},methods:{addItem:function(){this.disabled||(this.localList.push(this.newItem),this.$emit("input",this.localList),this.newItem="")},removeItem:function(t){this.disabled||(this.localList.splice(t,1),this.$emit("input",this.localList))},updateItem:function(t,e){this.disabled||this.localList[t]===e||(this.localList[t]=e,this.$emit("input",this.localList))},dragged:function(){this.disabled||this.$emit("input",this.localList)}},watch:{value:function(t){this.localList=t}}};var r=a(5072),l=a.n(r),u=a(2613),c={insert:"head",singleton:!1};l()(u.A,c);u.A.locals;const d=(0,a(4486).A)(o,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!t.disabled&&t.$t("settings.readonly"),expression:"disabled ? $t('settings.readonly') : false"}]},[e("draggable",{attrs:{disabled:t.disabled},on:{end:function(e){return t.dragged()}},model:{value:t.localList,callback:function(e){t.localList=e},expression:"localList"}},t._l(t.localList,(function(a,n){return e("div",{staticClass:"input-group"},[e("span",{class:["input-group-addon",t.disabled?"disabled":""]},[t._v(t._s(n+1)+".")]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",readonly:t.disabled},domProps:{value:a},on:{blur:function(e){return t.updateItem(n,e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateItem(n,e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[t.disabled?t._e():e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.removeItem(n)}}},[e("i",{staticClass:"fa fa-minus-circle"})])])])})),0),t._v(" "),t.disabled?t._e():e("div",[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newItem,expression:"newItem"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newItem},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addItem.apply(null,arguments)},input:function(e){e.target.composing||(t.newItem=e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addItem}},[e("i",{staticClass:"fa fa-plus-circle"})])])])])],1)}),[],!1,null,"588cd6c1",null).exports},1036:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingArraySubKeyed",mixins:[a(9967).default],data:function(){var t;return{localList:null!==(t=this.value)&&void 0!==t?t:new Object,newSubItemKey:{},newSubItemValue:{},newSubArray:""}},methods:{addSubItem:function(t){if(!this.disabled){var e={};e[this.newSubItemKey[t]]=this.newSubItemValue[t],0===Object.keys(this.localList[t]).length&&(this.localList[t]=new Object),Object.assign(this.localList[t],e),this.$emit("input",this.localList),this.newSubItemValue[t]="",this.newSubItemKey[t]=""}},removeSubItem:function(t,e){this.disabled||(delete this.localList[t][e],0===Object.keys(this.localList[t]).length&&delete this.localList[t],this.$emit("input",this.localList))},updateSubItem:function(t,e,a){this.disabled||this.localList[t][e]===a||(this.localList[t][e]=a,this.$emit("input",this.localList))},addSubArray:function(){this.disabled||(this.localList[this.newSubArray]=new Object,this.$emit("input",this.localList),this.newSubArray="")}},watch:{value:function(t){this.localList=t}}};var s=a(5072),i=a.n(s),o=a(1287),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!t.disabled&&t.$t("settings.readonly"),expression:"disabled ? $t('settings.readonly') : false"}]},[t._l(t.localList,(function(a,n){return e("div",[e("b",[t._v(t._s(n))]),t._v(" "),t._l(a,(function(a,s){return e("div",{staticClass:"input-group"},[e("span",{class:["input-group-addon",t.disabled?"disabled":""]},[t._v(t._s(s))]),t._v(" "),e("input",{staticClass:"form-control",attrs:{type:"text",readonly:t.disabled},domProps:{value:a},on:{blur:function(e){return t.updateSubItem(n,s,e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateSubItem(n,s,e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[t.disabled?t._e():e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.removeSubItem(n,s)}}},[e("i",{staticClass:"fa fa-minus-circle"})])])])})),t._v(" "),t.disabled?t._e():e("div",[e("div",{staticClass:"row"},[e("div",{staticClass:"col-lg-4"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newSubItemKey[n],expression:"newSubItemKey[index]"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Key"},domProps:{value:t.newSubItemKey[n]},on:{input:function(e){e.target.composing||t.$set(t.newSubItemKey,n,e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"col-lg-8"},[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newSubItemValue[n],expression:"newSubItemValue[index]"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Value"},domProps:{value:t.newSubItemValue[n]},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addSubItem(n)},input:function(e){e.target.composing||t.$set(t.newSubItemValue,n,e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.addSubItem(n)}}},[e("i",{staticClass:"fa fa-plus-circle"})])])])])])]),t._v(" "),e("hr")],2)})),t._v(" "),t.disabled?t._e():e("div",[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newSubArray,expression:"newSubArray"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newSubArray},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addSubArray.apply(null,arguments)},input:function(e){e.target.composing||(t.newSubArray=e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addSubArray}},[e("i",{staticClass:"fa fa-plus-circle"})])])])])],2)}),[],!1,null,"dcc80002",null).exports},9248:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingBoolean",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("toggle-button",{attrs:{name:t.name,value:t.value,sync:!0,required:t.required,disabled:t.disabled},on:{change:function(e){return t.$emit("change",e.value)}}})}),[],!1,null,"ab7ed6ee",null).exports},2112:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingColor",mixins:[a(9967).default]};var s=a(5072),i=a.n(s),o=a(4213),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"color",name:t.name,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"498558d3",null).exports},3801:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingDirectory",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"text",name:t.name,pattern:t.pattern,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"a44ee658",null).exports},3706:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingEmail",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"email",name:t.name,pattern:t.pattern,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"62ce370c",null).exports},5905:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingExecutable",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"text",name:t.name,pattern:t.pattern,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"a93fcd56",null).exports},8197:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingFloat",mixins:[a(9967).default],methods:{parseNumber:function(t){var e=parseFloat(t);return isNaN(e)?t:e}}};var s=a(5072),i=a.n(s),o=a(4854),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"number",name:t.name,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){t.$emit("input",t.parseNumber(e.target.value))}}})}),[],!1,null,"66aaec8d",null).exports},3321:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});var n=a(9967);const s={name:"SettingGroupRoleMap",components:{LibrenmsSelect:a(5103).default},mixins:[n.default],data:function(){return{newItem:"",newItemRoles:[],localList:this.parseValue(this.value)}},methods:{addItem:function(){this.localList[this.newItem]={roles:this.newItemRoles},this.newItem="",this.newItemRoles=[],this.$emit("input",this.localList)},removeItem:function(t){delete this.localList[t],this.$emit("input",this.localList)},updateItem:function(t,e){var a=this;this.localList=Object.keys(this.localList).reduce((function(n,s){return n[s===t?e:s]=a.localList[s],n}),{}),this.$emit("input",this.localList)},updateRoles:function(t,e){console.log(t,e,this.lock),this.localList[t].roles=e,this.$emit("input",this.localList)},parseValue:function(t){if(Array.isArray(t))return{};for(var e={1:"user",5:"global-read",10:"admin"},a=0,n=Object.keys(t);a<n.length;a++){var s=n[a];!t[s].hasOwnProperty("roles")&&t[s].hasOwnProperty("level")&&(t[s].roles=e[t[s].level]?[e[t[s].level]]:[],delete t[s].level)}return t}},watch:{value:function(){this.localList=this.parseValue(this.value)}}};var i=a(5072),o=a.n(i),r=a(8459),l={insert:"head",singleton:!1};o()(r.A,l);r.A.locals;const u=(0,a(4486).A)(s,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!t.disabled&&t.$t("settings.readonly"),expression:"disabled ? $t('settings.readonly') : false"}]},[t._l(t.localList,(function(a,n){return e("div",{staticClass:"tw-flex"},[e("input",{staticClass:"form-control !tw-w-auto",attrs:{type:"text",readonly:t.disabled,placeholder:t.options.groupPlaceholder},domProps:{value:n},on:{blur:function(e){return t.updateItem(n,e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateItem(n,e.target.value)}}}),t._v(" "),e("librenms-select",{staticClass:"form-control tw-flex-grow",attrs:{"route-name":"ajax.select.role",value:a.roles,multiple:"",disabled:t.disabled,"allow-clear":!1},on:{change:function(e){return t.updateRoles(n,e)}}}),t._v(" "),t.disabled?t._e():e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.removeItem(n)}}},[e("i",{staticClass:"fa fa-minus-circle"})])],1)})),t._v(" "),t.disabled?t._e():e("div",{staticClass:"tw-flex"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newItem,expression:"newItem"}],staticClass:"form-control !tw-w-auto",attrs:{type:"text",placeholder:t.options.groupPlaceholder},domProps:{value:t.newItem},on:{input:function(e){e.target.composing||(t.newItem=e.target.value)}}}),t._v(" "),e("librenms-select",{staticClass:"form-control tw-flex-grow",attrs:{"route-name":"ajax.select.role",placeholder:"Role",multiple:"",disabled:t.disabled,"allow-clear":!1},model:{value:t.newItemRoles,callback:function(e){t.newItemRoles=e},expression:"newItemRoles"}}),t._v(" "),e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addItem}},[e("i",{staticClass:"fa fa-plus-circle"})])],1)],2)}),[],!1,null,"4c03d640",null).exports},4711:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingInteger",mixins:[a(9967).default],methods:{parseNumber:function(t){var e=parseFloat(t);return isNaN(e)?t:e}}};var s=a(5072),i=a.n(s),o=a(1754),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"number",name:t.name,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){t.$emit("input",t.parseNumber(e.target.value))}}})}),[],!1,null,"72c868aa",null).exports},6457:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingLdapGroups",mixins:[a(9967).default],data:function(){return{localList:Array.isArray(this.value)?{}:this.value,newItem:"",newItemLevel:1,lock:!1}},methods:{addItem:function(){this.$set(this.localList,this.newItem,{level:this.newItemLevel}),this.newItem="",this.newItemLevel=1},removeItem:function(t){this.$delete(this.localList,t)},updateItem:function(t,e){var a=this;this.localList=Object.keys(this.localList).reduce((function(n,s){return n[s===t?e:s]=a.localList[s],n}),{})},updateLevel:function(t,e){this.$set(this.localList,t,{level:e})}},watch:{localList:function(){this.lock?this.lock=!1:this.$emit("input",this.localList)},value:function(){this.lock=!0,this.localList=Array.isArray(this.value)?{}:this.value}}};var s=a(5072),i=a.n(s),o=a(9704),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!t.disabled&&t.$t("settings.readonly"),expression:"disabled ? $t('settings.readonly') : false"}],staticClass:"form-inline"},[t._l(t.localList,(function(a,n){return e("div",{staticClass:"input-group"},[e("input",{staticClass:"form-control",attrs:{type:"text",readonly:t.disabled},domProps:{value:n},on:{blur:function(e){return t.updateItem(n,e.target.value)},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.updateItem(n,e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn",staticStyle:{width:"0"}}),t._v(" "),e("select",{staticClass:"form-control",on:{change:function(e){return t.updateLevel(n,e.target.value)}}},[e("option",{attrs:{value:"1"},domProps:{selected:1===a.level}},[t._v(t._s(t.$t("Normal")))]),t._v(" "),e("option",{attrs:{value:"5"},domProps:{selected:5===a.level}},[t._v(t._s(t.$t("Global Read")))]),t._v(" "),e("option",{attrs:{value:"10"},domProps:{selected:10===a.level}},[t._v(t._s(t.$t("Admin")))])]),t._v(" "),e("span",{staticClass:"input-group-btn"},[t.disabled?t._e():e("button",{staticClass:"btn btn-danger",attrs:{type:"button"},on:{click:function(e){return t.removeItem(n)}}},[e("i",{staticClass:"fa fa-minus-circle"})])])])})),t._v(" "),t.disabled?t._e():e("div",[e("div",{staticClass:"input-group"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.newItem,expression:"newItem"}],staticClass:"form-control",attrs:{type:"text"},domProps:{value:t.newItem},on:{input:function(e){e.target.composing||(t.newItem=e.target.value)}}}),t._v(" "),e("span",{staticClass:"input-group-btn",staticStyle:{width:"0"}}),t._v(" "),e("select",{directives:[{name:"model",rawName:"v-model",value:t.newItemLevel,expression:"newItemLevel"}],staticClass:"form-control",on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.newItemLevel=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"1"}},[t._v(t._s(t.$t("Normal")))]),t._v(" "),e("option",{attrs:{value:"5"}},[t._v(t._s(t.$t("Global Read")))]),t._v(" "),e("option",{attrs:{value:"10"}},[t._v(t._s(t.$t("Admin")))])]),t._v(" "),e("span",{staticClass:"input-group-btn"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.addItem}},[e("i",{staticClass:"fa fa-plus-circle"})])])])])],2)}),[],!1,null,"f290b6f6",null).exports},5888:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=a){var n,s,i,o,r=[],l=!0,u=!1;try{if(i=(a=a.call(t)).next,0===e){if(Object(a)!==a)return;l=!1}else for(;!(l=(n=i.call(a)).done)&&(r.push(n.value),r.length!==e);l=!0);}catch(t){u=!0,s=t}finally{try{if(!l&&null!=a.return&&(o=a.return(),Object(o)!==o))return}finally{if(u)throw s}}return r}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return o(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=new Array(e);a<e;a++)n[a]=t[a];return n}const r={name:"SettingMultiple",mixins:[a(9967).default],computed:{formattedValue:function(){var t;if(void 0===this.value)return[];var e=this.value.toString().split(",");return this.formatOptions((t=_).pick.apply(t,[this.options].concat(s(e))))},formattedOptions:function(){return this.formatOptions(this.options)}},methods:{formatOptions:function(t){return Object.entries(t).map((function(t){var e=n(t,2),a=e[0];return{label:e[1],value:a}}))},mutateInputEvent:function(t){return t.map((function(t){return t.value})).join(",")}}};const l=(0,a(4486).A)(r,(function(){var t=this,e=t._self._c;return e("div",[e("multiselect",{attrs:{value:t.formattedValue,required:t.required,disabled:t.disabled,name:t.name,label:"label","track-by":"value",options:t.formattedOptions,"allow-empty":!1,multiple:!0},on:{input:function(e){t.$emit("input",t.mutateInputEvent(e))}}})],1)}),[],!1,null,"1656df74",null).exports},1827:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingNull",props:["name"]};var s=a(5072),i=a.n(s),o=a(1365),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("div",[t._v("Invalid type for: "+t._s(t.name))])}),[],!1,null,"f45258b0",null).exports},9566:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingOxidizedMaps",mixins:[a(9967).default],data:function(){return{mapModalIndex:null,mapModalSource:null,mapModalMatchType:null,mapModalMatchValue:null,mapModalTarget:null,mapModalReplacement:null}},methods:{showModal:function(t){this.fillForm(t),this.$modal.show("maps")},submitModal:function(){var t=this.maps,e={target:this.mapModalTarget,source:this.mapModalSource,matchType:this.mapModalMatchType,matchValue:this.mapModalMatchValue,replacement:this.mapModalReplacement};this.mapModalIndex?t[this.mapModalIndex]=e:t.push(e),console.log(t,e),this.updateValue(t)},fillForm:function(t){var e=this.maps.hasOwnProperty(t);this.mapModalIndex=t,this.mapModalSource=e?this.maps[t].source:null,this.mapModalMatchType=e?this.maps[t].matchType:null,this.mapModalMatchValue=e?this.maps[t].matchValue:null,this.mapModalTarget=e?this.maps[t].target:null,this.mapModalReplacement=e?this.maps[t].replacement:null},deleteItem:function(t){var e=this.maps;e.splice(t,1),this.updateValue(e)},updateValue:function(t){var e={};t.forEach((function(t){void 0===e[t.target]&&(e[t.target]={}),void 0===e[t.target][t.source]&&(e[t.target][t.source]=[]);var a={};a[t.matchType]=t.matchValue,a.value=t.replacement,e[t.target][t.source].push(a)})),this.$emit("input",e)},formatSource:function(t,e){return e.hasOwnProperty("regex")?t+" ~ "+e.regex:e.hasOwnProperty("match")?t+" = "+e.match:"invalid"},formatTarget:function(t,e){return t+" > "+(e.hasOwnProperty("value")?e.value:e[t])}},watch:{updateStatus:function(){"success"===this.updateStatus&&this.$modal.hide("maps")}},computed:{maps:function(){var t=this,e=[];return Object.keys(this.value).forEach((function(a){Object.keys(t.value[a]).forEach((function(n){t.value[a][n].forEach((function(t){var s=t.hasOwnProperty("regex")?"regex":"match";e.push({target:a,source:n,matchType:s,matchValue:t[s],replacement:t.hasOwnProperty("value")?t.value:t[a]})}))}))})),e}}};var s=a(5072),i=a.n(s),o=a(3835),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled,expression:"! disabled"}],staticClass:"new-btn-div"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:function(e){return t.showModal(null)}}},[e("i",{staticClass:"fa fa-plus"}),t._v(" "+t._s(t.$t("New Map Rule")))])]),t._v(" "),t._l(t.maps,(function(a,n){return e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-body"},[e("div",{staticClass:"col-md-5 expandable"},[e("span",[t._v(t._s(a.source)+" "+t._s("regex"===a.matchType?"~":"=")+" "+t._s(a.matchValue))])]),t._v(" "),e("div",{staticClass:"col-md-4 expandable"},[e("span",[t._v(t._s(a.target)+" < "+t._s(a.replacement))])]),t._v(" "),e("div",{staticClass:"col-md-3 buttons"},[e("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:!!t.disabled&&t.$t("settings.readonly"),expression:"disabled ? $t('settings.readonly') : false"}],staticClass:"btn-group"},[e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Edit"),expression:"$t('Edit')"}],staticClass:"btn btn-sm btn-info",attrs:{type:"button",disabled:t.disabled},on:{click:function(e){return t.showModal(n)}}},[e("i",{staticClass:"fa fa-lg fa-edit"})]),t._v(" "),e("button",{directives:[{name:"tooltip",rawName:"v-tooltip",value:t.$t("Delete"),expression:"$t('Delete')"}],staticClass:"btn btn-sm btn-danger",attrs:{type:"button",disabled:t.disabled},on:{click:function(e){return t.deleteItem(n)}}},[e("i",{staticClass:"fa fa-lg fa-remove"})])])])])])})),t._v(" "),e("modal",{attrs:{name:"maps",height:"auto"}},[e("div",{staticClass:"modal-content"},[e("div",{staticClass:"modal-header"},[e("button",{staticClass:"close",attrs:{type:"button"},on:{click:function(e){return t.$modal.hide("maps")}}},[e("span",{attrs:{"aria-hidden":"true"}},[t._v("×")])]),t._v(" "),e("h4",{staticClass:"modal-title"},[t._v(t._s(t.mapModalIndex?t.$t("Edit Map Rule"):t.$t("New Map Rule")))])]),t._v(" "),e("div",{staticClass:"modal-body"},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-4 control-label",attrs:{for:"source"}},[t._v("Source")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.mapModalSource,expression:"mapModalSource"}],staticClass:"form-control",attrs:{id:"source"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.mapModalSource=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"hostname"}},[t._v("hostname")]),t._v(" "),e("option",{attrs:{value:"os"}},[t._v("os")]),t._v(" "),e("option",{attrs:{value:"type"}},[t._v("type")]),t._v(" "),e("option",{attrs:{value:"hardware"}},[t._v("hardware")]),t._v(" "),e("option",{attrs:{value:"sysObjectID"}},[t._v("sysObjectID")]),t._v(" "),e("option",{attrs:{value:"sysName"}},[t._v("sysName")]),t._v(" "),e("option",{attrs:{value:"sysDescr"}},[t._v("sysDescr")]),t._v(" "),e("option",{attrs:{value:"location"}},[t._v("location")]),t._v(" "),e("option",{attrs:{value:"ip"}},[t._v("ip")]),t._v(" "),e("option",{attrs:{value:"poller_group"}},[t._v("poller_group")])])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-4",attrs:{for:"match_value"}},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.mapModalMatchType,expression:"mapModalMatchType"}],staticClass:"form-control",attrs:{id:"match_type"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.mapModalMatchType=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"match"}},[t._v("Match (=)")]),t._v(" "),e("option",{attrs:{value:"regex"}},[t._v("Regex (~)")])])]),t._v(" "),e("div",{staticClass:"col-sm-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.mapModalMatchValue,expression:"mapModalMatchValue"}],staticClass:"form-control",attrs:{type:"text",id:"match_value",placeholder:""},domProps:{value:t.mapModalMatchValue},on:{input:function(e){e.target.composing||(t.mapModalMatchValue=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"form-horizontal",attrs:{role:"form"}},[e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-4 control-label",attrs:{for:"target"}},[t._v("Target")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.mapModalTarget,expression:"mapModalTarget"}],staticClass:"form-control",attrs:{id:"target"},on:{change:function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.mapModalTarget=e.target.multiple?a:a[0]}}},[e("option",{attrs:{value:"os"}},[t._v("os")]),t._v(" "),e("option",{attrs:{value:"group"}},[t._v("group")]),t._v(" "),e("option",{attrs:{value:"ip"}},[t._v("ip")])])])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-4 control-label",attrs:{for:"value"}},[t._v("Replacement")]),t._v(" "),e("div",{staticClass:"col-sm-8"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.mapModalReplacement,expression:"mapModalReplacement"}],staticClass:"form-control",attrs:{type:"text",id:"value",placeholder:""},domProps:{value:t.mapModalReplacement},on:{input:function(e){e.target.composing||(t.mapModalReplacement=e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-8 col-sm-offset-4"},[e("button",{staticClass:"btn btn-primary",attrs:{type:"button"},on:{click:t.submitModal}},[t._v(t._s(t.$t("Submit")))])])])])])])])],2)}),[],!1,null,"b79c7dea",null).exports},9387:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingPassword",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"password",name:t.name,pattern:t.pattern,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"452744d4",null).exports},6248:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingSelect",mixins:[a(9967).default],methods:{getText:function(t,e){var a="settings.settings.".concat(t,".options.").concat(e);return this.$te(a)?this.$t(a):e}}};const s=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("select",{staticClass:"form-control",attrs:{name:t.name,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}},t._l(t.options,(function(a,n){return e("option",{domProps:{value:n,selected:t.value===n,textContent:t._s(t.getText(t.name,a))}})})),0)}),[],!1,null,"a6c05438",null).exports},754:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>i});var n=a(9967);const s={name:"SettingSelectDynamic",components:{LibrenmsSelect:a(5103).default},mixins:[n.default]};const i=(0,a(4486).A)(s,(function(){var t=this,e=t._self._c;return e("div",[e("librenms-select",{staticClass:"form-control",attrs:{value:t.value,"route-name":"ajax.select."+this.options.target,placeholder:this.options.placeholder,"allow-clear":this.options.allowClear,required:t.required,disabled:t.disabled},on:{change:function(e){return t.$emit("change",e)}}})],1)}),[],!1,null,"ef26c772",null).exports},2493:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"SettingSnmp3auth",mixins:[a(9967).default],data:function(){return{localList:this.value,authAlgorithms:["MD5","AES"],cryptoAlgorithms:["AES","DES"]}},mounted:function(){var t=this;axios.get(route("snmp.capabilities")).then((function(e){t.authAlgorithms=e.data.auth,t.cryptoAlgorithms=e.data.crypto}))},methods:{addItem:function(){this.localList.push({authlevel:"noAuthNoPriv",authalgo:"MD5",authname:"",authpass:"",cryptoalgo:"AES",cryptopass:""}),this.$emit("input",this.localList)},removeItem:function(t){this.localList.splice(t,1),this.$emit("input",this.localList)},updateItem:function(t,e,a){this.localList[t][e]=a,this.$emit("input",this.localList)},dragged:function(){this.$emit("input",this.localList)}},watch:{value:function(t){this.localList=t}}};var s=a(5072),i=a.n(s),o=a(5569),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",[e("draggable",{attrs:{disabled:t.disabled},on:{end:function(e){return t.dragged()}},model:{value:t.localList,callback:function(e){t.localList=e},expression:"localList"}},t._l(t.localList,(function(a,n){return e("div",[e("div",{staticClass:"panel panel-default"},[e("div",{staticClass:"panel-heading"},[e("h3",{staticClass:"panel-title"},[t._v(t._s(n+1)+". "),t.disabled?t._e():e("span",{staticClass:"pull-right text-danger",on:{click:function(e){return t.removeItem(n)}}},[e("i",{staticClass:"fa fa-minus-circle"})])])]),t._v(" "),e("div",{staticClass:"panel-body"},[e("form",{on:{onsubmit:function(t){t.preventDefault()}}},[e("div",{staticClass:"form-group"},[e("div",{staticClass:"col-sm-12"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.authlevel,expression:"item.authlevel"}],staticClass:"form-control",attrs:{id:"authlevel",disabled:t.disabled},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"authlevel",e.target.multiple?n:n[0])},function(e){return t.updateItem(n,e.target.id,e.target.value)}]}},[e("option",{attrs:{value:"noAuthNoPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.noAuthNoPriv"))}}),t._v(" "),e("option",{attrs:{value:"authNoPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.authNoPriv"))}}),t._v(" "),e("option",{attrs:{value:"authPriv"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.level.authPriv"))}})])])]),t._v(" "),e("fieldset",{directives:[{name:"show",rawName:"v-show",value:"auth"===a.authlevel.toString().substring(0,4),expression:"item.authlevel.toString().substring(0, 4) === 'auth'"}],attrs:{name:"algo",disabled:t.disabled}},[e("legend",{staticClass:"h4",domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.auth"))}}),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-3 control-label",attrs:{for:"authalgo"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.fields.authalgo"))}}),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.authalgo,expression:"item.authalgo"}],staticClass:"form-control",attrs:{id:"authalgo",name:"authalgo"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"authalgo",e.target.multiple?n:n[0])},function(e){return t.updateItem(n,e.target.id,e.target.value)}]}},t._l(t.authAlgorithms,(function(a){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0)])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-3 control-label",attrs:{for:"authname"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.fields.authname"))}}),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("input",{staticClass:"form-control",attrs:{type:"text",id:"authname"},domProps:{value:a.authname},on:{input:function(e){return t.updateItem(n,e.target.id,e.target.value)}}})])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-3 control-label",attrs:{for:"authpass"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.fields.authpass"))}}),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("input",{staticClass:"form-control",attrs:{type:"text",id:"authpass"},domProps:{value:a.authpass},on:{input:function(e){return t.updateItem(n,e.target.id,e.target.value)}}})])])]),t._v(" "),e("fieldset",{directives:[{name:"show",rawName:"v-show",value:"authPriv"===a.authlevel,expression:"item.authlevel === 'authPriv'"}],attrs:{name:"crypt",disabled:t.disabled}},[e("legend",{staticClass:"h4",domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.crypto"))}}),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-3 control-label",attrs:{for:"cryptoalgo"}},[t._v("Cryptoalgo")]),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("select",{directives:[{name:"model",rawName:"v-model",value:a.cryptoalgo,expression:"item.cryptoalgo"}],staticClass:"form-control",attrs:{id:"cryptoalgo"},on:{change:[function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(a,"cryptoalgo",e.target.multiple?n:n[0])},function(e){return t.updateItem(n,e.target.id,e.target.value)}]}},t._l(t.cryptoAlgorithms,(function(a){return e("option",{domProps:{value:a,textContent:t._s(a)}})})),0)])]),t._v(" "),e("div",{staticClass:"form-group"},[e("label",{staticClass:"col-sm-3 control-label",attrs:{for:"cryptopass"},domProps:{textContent:t._s(t.$t("settings.settings.snmp.v3.fields.authpass"))}}),t._v(" "),e("div",{staticClass:"col-sm-9"},[e("input",{staticClass:"form-control",attrs:{type:"text",id:"cryptopass"},domProps:{value:a.cryptopass},on:{input:function(e){return t.updateItem(n,e.target.id,e.target.value)}}})])])])])])])])})),0),t._v(" "),t.disabled?t._e():e("div",{staticClass:"row snmp3-add-button"},[e("div",{staticClass:"col-sm-12"},[e("button",{staticClass:"btn btn-primary",on:{click:function(e){return t.addItem()}}},[e("i",{staticClass:"fa fa-plus-circle"}),t._v(" "+t._s(t.$t("New")))])])])],1)}),[],!1,null,"b51be698",null).exports},9645:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"SettingText",mixins:[a(9967).default]};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("input",{staticClass:"form-control",attrs:{type:"text",name:t.name,pattern:t.pattern,required:t.required,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}})}),[],!1,null,"8426bf9c",null).exports},1725:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>s});const n={name:"Tab",props:{name:{required:!0},text:String,selected:{type:Boolean,default:!1},icon:String},data:function(){return{isActive:this.selected}}};const s=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"tab-pane",attrs:{role:"tabpanel",id:t.name}},[t._t("default")],2)}),[],!1,null,"1af9694b",null).exports},7875:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"Tabs",props:{selected:String},data:function(){return{tabs:[],activeTab:null}},created:function(){this.tabs=this.$children},mounted:function(){this.activeTab=this.selected},watch:{selected:function(t){this.activeTab=t},activeTab:function(t){this.tabs.forEach((function(e){return e.isActive=e.name===t})),this.$emit("tab-selected",t)}}};var s=a(5072),i=a.n(s),o=a(6095),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"panel with-nav-tabs panel-default"},[e("div",{staticClass:"panel-heading"},[e("ul",{staticClass:"nav nav-tabs",attrs:{role:"tablist"}},[t._l(t.tabs,(function(a){return e("li",{key:a.name,class:{active:a.isActive},attrs:{role:"presentation"}},[e("a",{attrs:{role:"tab","aria-controls":a.name},on:{click:function(e){t.activeTab=a.name}}},[a.icon?e("i",{class:["fa","fa-fw",a.icon]}):t._e(),t._v("\n "+t._s(a.text||a.name)+" \n ")])])})),t._v(" "),e("li",{staticClass:"pull-right"},[t._t("header")],2)],2)]),t._v(" "),e("div",{staticClass:"panel-body"},[t._t("default")],2)])])}),[],!1,null,"2ac3a533",null).exports},5780:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>l});const n={name:"TransitionCollapseHeight",methods:{beforeEnter:function(t){requestAnimationFrame((function(){t.style.height||(t.style.height="0px"),t.style.display=null}))},enter:function(t){requestAnimationFrame((function(){requestAnimationFrame((function(){t.style.height=t.scrollHeight+"px"}))}))},afterEnter:function(t){t.style.height=null},beforeLeave:function(t){requestAnimationFrame((function(){t.style.height||(t.style.height=t.offsetHeight+"px")}))},leave:function(t){requestAnimationFrame((function(){requestAnimationFrame((function(){t.style.height="0px"}))}))},afterLeave:function(t){t.style.height=null}}};var s=a(5072),i=a.n(s),o=a(1658),r={insert:"head",singleton:!1};i()(o.A,r);o.A.locals;const l=(0,a(4486).A)(n,(function(){var t=this;return(0,t._self._c)("transition",{attrs:{"enter-active-class":"enter-active","leave-active-class":"leave-active"},on:{"before-enter":t.beforeEnter,enter:t.enter,"after-enter":t.afterEnter,"before-leave":t.beforeLeave,leave:t.leave,"after-leave":t.afterLeave}},[t._t("default")],2)}),[],!1,null,"54390bb4",null).exports},4288:(t,e,a)=>{var n={"./components/Accordion.vue":3644,"./components/AccordionItem.vue":9814,"./components/BaseSetting.vue":9967,"./components/ExampleComponent.vue":7881,"./components/LibrenmsSelect.vue":5103,"./components/LibrenmsSetting.vue":7624,"./components/LibrenmsSettings.vue":3995,"./components/PollerSettings.vue":3411,"./components/SettingArray.vue":3352,"./components/SettingArraySubKeyed.vue":1036,"./components/SettingBoolean.vue":9248,"./components/SettingColor.vue":2112,"./components/SettingDirectory.vue":3801,"./components/SettingEmail.vue":3706,"./components/SettingExecutable.vue":5905,"./components/SettingFloat.vue":8197,"./components/SettingGroupRoleMap.vue":3321,"./components/SettingInteger.vue":4711,"./components/SettingLdapGroups.vue":6457,"./components/SettingMultiple.vue":5888,"./components/SettingNull.vue":1827,"./components/SettingOxidizedMaps.vue":9566,"./components/SettingPassword.vue":9387,"./components/SettingSelect.vue":6248,"./components/SettingSelectDynamic.vue":754,"./components/SettingSnmp3auth.vue":2493,"./components/SettingText.vue":9645,"./components/Tab.vue":1725,"./components/Tabs.vue":7875,"./components/TransitionCollapseHeight.vue":5780};function s(t){var e=i(t);return a(e)}function i(t){if(!a.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}s.keys=function(){return Object.keys(n)},s.resolve=i,t.exports=s,s.id=4288}},t=>{var e=e=>t(t.s=e);t.O(0,[305,252,660],(()=>(e(104),e(9874),e(1891))));t.O()}]);