From cf7b025fb19ad36c95aac5039f58da0387fb1740 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Wed, 17 Jul 2024 16:05:44 -0500 Subject: [PATCH] Custom Maps configurable new map defaults (#16212) --- .../Controllers/Maps/CustomMapController.php | 65 +++++- app/Models/CustomMap.php | 7 - html/css/app.css | 2 +- html/js/app.js | 2 +- html/mix-manifest.json | 6 +- lang/en/settings.php | 89 ++++++++ misc/config_definitions.json | 204 ++++++++++++++++++ resources/js/components/SettingColor.vue | 48 +++++ .../map/custom-background-modal.blade.php | 10 +- 9 files changed, 409 insertions(+), 24 deletions(-) create mode 100644 resources/js/components/SettingColor.vue diff --git a/app/Http/Controllers/Maps/CustomMapController.php b/app/Http/Controllers/Maps/CustomMapController.php index cc80da7693..245a4fb1d7 100644 --- a/app/Http/Controllers/Maps/CustomMapController.php +++ b/app/Http/Controllers/Maps/CustomMapController.php @@ -48,9 +48,9 @@ class CustomMapController extends Controller 'maps' => CustomMap::orderBy('name')->get(['custom_map_id', 'name', 'menu_group'])->groupBy('menu_group')->sortKeys(), 'name' => 'New Map', 'menu_group' => null, - 'node_align' => 10, - 'edge_separation' => 10, - 'reverse_arrows' => 0, + 'node_align' => Config::get('custom_map.node_align', 10), + 'edge_separation' => Config::get('custom_map.edge_seperation', 10), + 'reverse_arrows' => Config::get('custom_map.reverse_arrows', false), 'legend' => [ 'x' => -1, 'y' => -1, @@ -59,10 +59,11 @@ class CustomMapController extends Controller 'hide_overspeed' => 0, 'font_size' => 14, ], - 'background_type' => null, + 'background_type' => Config::get('custom_map.background_type', 'none'), + 'background_data' => Config::get('custom_map.background_data'), 'map_conf' => [ - 'height' => '800px', - 'width' => '1800px', + 'width' => Config::get('custom_map.width', '1800px'), + 'height' => Config::get('custom_map.height', '800px'), 'interaction' => [ 'dragNodes' => true, 'dragView' => false, @@ -154,7 +155,57 @@ class CustomMapController extends Controller public function store(CustomMapSettingsRequest $request): JsonResponse { - return $this->update($request, new CustomMap); + // create a new map with default values + $map = new CustomMap; + $map->options = [ + 'interaction' => [ + 'dragNodes' => false, + 'dragView' => false, + 'zoomView' => false, + ], + 'manipulation' => [ + 'enabled' => false, + ], + 'physics' => [ + 'enabled' => false, + ], + ]; + $map->newnodeconfig = [ + 'borderWidth' => 1, + 'color' => [ + 'border' => Config::get('custom_map.node_border', '#2B7CE9'), + 'background' => Config::get('custom_map.node_background', '#D2E5FF'), + ], + 'font' => [ + 'color' => Config::get('custom_map.node_font_color', '#343434'), + 'size' => Config::get('custom_map.node_font_size', 14), + 'face' => Config::get('custom_map.node_font_face', 'arial'), + ], + 'icon' => [], + 'label' => true, + 'shape' => Config::get('custom_map.node_type', 'box'), + 'size' => Config::get('custom_map.node_size', 25), + ]; + $map->newedgeconfig = [ + 'arrows' => [ + 'to' => [ + 'enabled' => true, + ], + ], + 'smooth' => [ + 'type' => 'dynamic', + ], + 'font' => [ + 'color' => Config::get('custom_map.edge_font_color', '#343434'), + 'size' => Config::get('custom_map.edge_font_size', 12), + 'face' => Config::get('custom_map.edge_font_face', 'arial'), + ], + 'label' => true, + ]; + $map->background_type = Config::get('custom_map.background_type', 'none'); + $map->background_data = Config::get('custom_map.background_data'); + + return $this->update($request, $map); } public function update(CustomMapSettingsRequest $request, CustomMap $map): JsonResponse diff --git a/app/Models/CustomMap.php b/app/Models/CustomMap.php index a7666f0e30..ea974d089e 100644 --- a/app/Models/CustomMap.php +++ b/app/Models/CustomMap.php @@ -59,13 +59,6 @@ class CustomMap extends BaseModel 'background_data', ]; - // default values for attributes - protected $attributes = [ - 'options' => '{"interaction":{"dragNodes":false,"dragView":false,"zoomView":false},"manipulation":{"enabled":false},"physics":{"enabled":false}}', - 'newnodeconfig' => '{"borderWidth":1,"color":{"border":"#2B7CE9","background":"#D2E5FF"},"font":{"color":"#343434","size":14,"face":"arial"},"icon":[],"label":true,"shape":"box","size":25}', - 'newedgeconfig' => '{"arrows":{"to":{"enabled":true}},"smooth":{"type":"dynamic"},"font":{"color":"#343434","size":12,"face":"arial"},"label":true}', - ]; - /** * Get background data intended to be passed to javascript to configure the background */ diff --git a/html/css/app.css b/html/css/app.css index f03062fb9b..43aacfd347 100644 --- a/html/css/app.css +++ b/html/css/app.css @@ -1,2 +1,2 @@ #toast-container-top-right{position:fixed;right:12px;top:55px;z-index:999999}#toast-container-top-right a{font-weight:700}#toast-container-top-right>div{background-position:10px;background-repeat:no-repeat;min-height:50px;width:304px}.toast-error{background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMTYgMEExNiAxNiAwIDAgMCAwIDE2YTE2IDE2IDAgMCAwIDE2IDE2IDE2IDE2IDAgMCAwIDE2LTE2QTE2IDE2IDAgMCAwIDE2IDB6bS02IDlhMSAxIDAgMCAxIC43MDcuMjkzTDE2IDE0LjU4Nmw1LjI5My01LjI5M2ExIDEgMCAwIDEgMS40MTQgMCAxIDEgMCAwIDEgMCAxLjQxNEwxNy40MTQgMTZsNS4yOTMgNS4yOTNhMSAxIDAgMCAxIDAgMS40MTQgMSAxIDAgMCAxLTEuNDE0IDBMMTYgMTcuNDE0bC01LjI5MyA1LjI5M2ExIDEgMCAwIDEtMS40MTQgMCAxIDEgMCAwIDEgMC0xLjQxNEwxNC41ODYgMTZsLTUuMjkzLTUuMjkzYTEgMSAwIDAgMSAwLTEuNDE0QTEgMSAwIDAgMSAxMCA5eiIgZmlsbD0iI2RjMjYyNiIvPjwvc3ZnPg==");background-size:32px}.toast-info{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMTYgMEExNiAxNiAwIDAgMCAwIDE2YTE2IDE2IDAgMCAwIDE2IDE2IDE2IDE2IDAgMCAwIDE2LTE2QTE2IDE2IDAgMCAwIDE2IDB6bTAgNmM1LjUxMSAwIDEwIDQuNDg5IDEwIDEwcy00LjQ4OSAxMC0xMCAxMFM2IDIxLjUxMSA2IDE2IDEwLjQ4OSA2IDE2IDZ6bTAgMmMtNC40MyAwLTggMy41Ny04IDhzMy41NyA4IDggOCA4LTMuNTcgOC04LTMuNTctOC04LTh6bTAgM2ExIDEgMCAwIDEgMSAxdjRhMSAxIDAgMCAxLTEgMSAxIDEgMCAwIDEtMS0xdi00YTEgMSAwIDAgMSAxLTF6bTAgOGguMDFhMSAxIDAgMCAxIDEgMSAxIDEgMCAwIDEtMSAxSDE2YTEgMSAwIDAgMS0xLTEgMSAxIDAgMCAxIDEtMXoiIGZpbGw9IiMyNTYzZWIiLz48L3N2Zz4=");background-size:32px}.toast-success{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMTYgMEExNiAxNiAwIDAgMCAwIDE2YTE2IDE2IDAgMCAwIDE2IDE2IDE2IDE2IDAgMCAwIDE2LTE2QTE2IDE2IDAgMCAwIDE2IDB6bTcgMTBhMSAxIDAgMCAxIC43MDcuMjkzIDEgMSAwIDAgMSAwIDEuNDE0bC0xMCAxMGExIDEgMCAwIDEtMS40MTQgMGwtNC00YTEgMSAwIDAgMSAwLTEuNDE0IDEgMSAwIDAgMSAxLjQxNCAwTDEzIDE5LjU4Nmw5LjI5My05LjI5M0ExIDEgMCAwIDEgMjMgMTB6IiBmaWxsPSIjMDU5NjY5Ii8+PC9zdmc+");background-size:32px}.toast-warning{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PGNpcmNsZSBjeD0iMTYiIGN5PSIxNiIgcj0iMTUiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNMTYgMEExNiAxNiAwIDAgMCAwIDE2YTE2IDE2IDAgMCAwIDE2IDE2IDE2IDE2IDAgMCAwIDE2LTE2QTE2IDE2IDAgMCAwIDE2IDB6bTAgNi4xNTZjMS4wMTYgMCAyLjAzMi40OSAyLjU5OCAxLjQ2OWw2LjkyNyAxMmMxLjEzMSAxLjk1OC0uMzM2IDQuNS0yLjU5NyA0LjVIOS4wNzJjLTIuMjYxIDAtMy43MjgtMi41NDItMi41OTctNC41bDYuOTI3LTEyYy41NjYtLjk3OSAxLjU4Mi0xLjQ2OSAyLjU5OC0xLjQ2OXptMCAxLjkzOGMtLjMzIDAtLjY2LjE3Ny0uODY1LjUzMWwtNi45MyAxMmMtLjQwOS43MDguMDQ5IDEuNS44NjcgMS41aDEzLjg1NmMuODE4IDAgMS4yNzYtLjc5Mi44NjctMS41bC02LjkzLTEyYy0uMjA0LS4zNTQtLjUzNC0uNTMxLS44NjUtLjUzMXptMCA0LjAzMWExIDEgMCAwIDEgMSAxdjJhMSAxIDAgMCAxLTEgMSAxIDEgMCAwIDEtMS0xdi0yYTEgMSAwIDAgMSAxLTF6bTAgNmguMDFhMSAxIDAgMCAxIDEgMSAxIDEgMCAwIDEtMSAxSDE2YTEgMSAwIDAgMS0xLTEgMSAxIDAgMCAxIDEtMXoiIGZpbGw9IiNkOTc3MDYiLz48L3N2Zz4=");background-size:32px}.toast-progress{background-color:#000;bottom:0;-ms-filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=40);filter:alpha(opacity=40);height:4px;left:0;opacity:.4;position:absolute} -/*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-bottom-0{bottom:0}.tw-left-0{left:0}.tw-z-0{z-index:0}.tw-z-50{z-index:50}.tw-float-right{float:right}.tw-m-3{margin:.75rem}.tw-mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw-mx-4{margin-left:1rem;margin-right:1rem}.tw-mx-auto{margin-left:auto;margin-right:auto}.\!tw-mb-0{margin-bottom:0!important}.-tw-mb-px{margin-bottom:-1px}.tw--ml-px{margin-left:-1px}.tw-mb-0{margin-bottom:0}.tw-mb-1{margin-bottom:.25rem}.tw-mb-2{margin-bottom:.5rem}.tw-me-2{margin-inline-end:.5rem}.tw-ml-2{margin-left:.5rem}.tw-ml-3{margin-left:.75rem}.tw-ml-4{margin-left:1rem}.tw-ml-auto{margin-left:auto}.tw-mr-0{margin-right:0}.tw-mr-0\.5{margin-right:.125rem}.tw-mr-1{margin-right:.25rem}.tw-mr-2{margin-right:.5rem}.tw-mr-3{margin-right:.75rem}.tw-mt-1{margin-top:.25rem}.tw-mt-10{margin-top:2.5rem}.tw-mt-2{margin-top:.5rem}.tw-mt-5{margin-top:1.25rem}.tw-block{display:block}.tw-inline-block{display:inline-block}.tw-flex{display:flex}.tw-inline-flex{display:inline-flex}.tw-grid{display:grid}.tw-hidden{display:none}.tw-h-1{height:.25rem}.tw-h-24{height:6rem}.tw-h-5{height:1.25rem}.\!tw-w-auto{width:auto!important}.tw-w-48{width:12rem}.tw-w-5{width:1.25rem}.tw-w-full{width:100%}.tw-max-w-screen-lg{max-width:992px}.tw-flex-1{flex:1 1 0%}.tw-flex-grow{flex-grow:1}.tw-cursor-crosshair{cursor:crosshair}.tw-cursor-default{cursor:default}.tw-cursor-pointer{cursor:pointer}.tw-list-none{list-style-type:none}.tw-flex-row-reverse{flex-direction:row-reverse}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-place-items-center{place-items:center}.tw-items-center{align-items:center}.tw-items-baseline{align-items:baseline}.tw-justify-between{justify-content:space-between}.tw-overflow-y-hidden{overflow-y:hidden}.tw-whitespace-nowrap{white-space:nowrap}.tw-text-nowrap{text-wrap:nowrap}.tw-rounded{border-radius:.25rem}.tw-rounded-lg{border-radius:.5rem}.tw-rounded-md{border-radius:.375rem}.tw-rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.tw-rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.tw-rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.tw-border{border-width:1px}.tw-border-2{border-width:2px}.tw-border-b{border-bottom-width:1px}.tw-border-b-0{border-bottom-width:0}.tw-border-b-0\.5{border-bottom-width:.5px}.tw-border-b-2{border-bottom-width:2px}.tw-border-l-8{border-left-width:8px}.tw-border-r-0{border-right-width:0}.tw-border-r-0\.5{border-right-width:.5px}.tw-border-t-0{border-top-width:0}.tw-border-t-0\.5{border-top-width:.5px}.tw-border-solid{border-style:solid}.tw-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.tw-border-current{border-color:currentColor}.tw-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.tw-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.tw-border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.tw-border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.tw-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.tw-border-transparent{border-color:transparent}.tw-border-yellow-600{--tw-border-opacity:1;border-color:rgb(202 138 4/var(--tw-border-opacity))}.tw-bg-current{background-color:currentColor}.tw-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.tw-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.\!tw-p-0{padding:0!important}.tw-p-1{padding:.25rem}.tw-p-10{padding:2.5rem}.tw-p-2{padding:.5rem}.tw-p-2\.5{padding:.625rem}.tw-p-3{padding:.75rem}.tw-px-2{padding-left:.5rem;padding-right:.5rem}.tw-px-3{padding-left:.75rem;padding-right:.75rem}.tw-px-4{padding-left:1rem;padding-right:1rem}.tw-py-2{padding-bottom:.5rem;padding-top:.5rem}.tw-py-4{padding-bottom:1rem;padding-top:1rem}.\!tw-pb-0{padding-bottom:0!important}.tw-pl-2{padding-left:.5rem}.tw-pl-20{padding-left:5rem}.tw-pr-1{padding-right:.25rem}.tw-pr-2{padding-right:.5rem}.tw-text-left{text-align:left}.tw-text-center{text-align:center}.tw-text-2xl{font-size:1.5rem;line-height:2rem}.tw-text-3xl{font-size:1.875rem;line-height:2.25rem}.tw-text-base{font-size:1rem;line-height:1.5rem}.tw-text-sm{font-size:.875rem;line-height:1.25rem}.tw-text-xl{font-size:1.25rem;line-height:1.75rem}.tw-font-bold{font-weight:700}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-font-semibold{font-weight:600}.tw-capitalize{text-transform:capitalize}.tw-leading-5{line-height:1.25rem}.tw-leading-6{line-height:1.5rem}.tw-leading-7{line-height:1.75rem}.tw-leading-normal{line-height:1.5}.tw-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.tw-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.tw-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity))}.tw-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.tw-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.tw-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.tw-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.tw-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.tw-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.tw-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.tw-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.tw-no-underline{text-decoration-line:none}.tw-opacity-0{opacity:0}.tw-opacity-100{opacity:1}.tw-opacity-80{opacity:.8}.tw-opacity-90{opacity:.9}.tw-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.tw-shadow-lg,.tw-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.tw-ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.tw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tw-duration-150,.tw-transition{transition-duration:.15s}.tw-duration-700{transition-duration:.7s}.tw-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.tw-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.even\:tw-bg-gray-50:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.visited\:tw-text-blue-900:visited{color:#1e3a8a}.visited\:tw-text-gray-400:visited{color:#9ca3af}.visited\:tw-text-red-600:visited{color:#dc2626}.hover\:tw-border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:tw-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:tw-bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.hover\:tw-text-gray-100:hover{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.hover\:tw-text-gray-400:hover{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:tw-text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:tw-text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.hover\:tw-opacity-100:hover{opacity:1}.hover\:tw-shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:tw-z-10:focus{z-index:10}.focus\:tw-border-blue-300:focus{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity))}.focus\:tw-border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\:tw-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:tw-ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:tw-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\:tw-bg-gray-100:active{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.active\:tw-text-gray-500:active{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.active\:tw-text-gray-700:active{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.dark\:tw-border-blue-500:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.dark\:tw-border-dark-gray-200:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(62 68 76/var(--tw-border-opacity))}.dark\:tw-border-gray-600:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.dark\:tw-bg-dark-gray-300:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(53 58 65/var(--tw-bg-opacity))}.dark\:tw-bg-gray-700:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:tw-bg-gray-800:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:tw-text-blue-500:is(.tw-dark *){--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.dark\:tw-text-dark-white-100:is(.tw-dark *){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}.dark\:tw-text-gray-300:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.dark\:tw-text-gray-400:is(.tw-dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:tw-text-gray-600:is(.tw-dark *){--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.dark\:tw-text-white:is(.tw-dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:tw-placeholder-gray-400:is(.tw-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.dark\:tw-placeholder-gray-400:is(.tw-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.dark\:even\:tw-bg-zinc-900:nth-child(2n):is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.dark\:visited\:tw-text-dark-white-100:visited:is(.tw-dark *){color:#f9fafb}.dark\:hover\:tw-bg-gray-600:hover:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.dark\:hover\:tw-text-gray-300:hover:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.dark\:focus\:tw-border-blue-500:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.dark\:focus\:tw-border-blue-700:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.dark\:focus\:tw-border-blue-800:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity))}.dark\:active\:tw-bg-gray-700:active:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:active\:tw-text-gray-300:active:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}@media (min-width:576px){.sm\:tw-inline{display:inline}.sm\:tw-flex{display:flex}.sm\:tw-table-cell{display:table-cell}.sm\:tw-hidden{display:none}.sm\:tw-w-1\/2{width:50%}.sm\:tw-flex-1{flex:1 1 0%}.sm\:tw-items-center{align-items:center}.sm\:tw-justify-between{justify-content:space-between}.sm\:tw-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:tw-table-cell{display:table-cell}}@media (min-width:992px){.lg\:tw-w-1\/4{width:25%}}.rtl\:tw-flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse} +/*! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.tw-absolute{position:absolute}.tw-relative{position:relative}.tw-bottom-0{bottom:0}.tw-left-0{left:0}.tw-z-0{z-index:0}.tw-z-50{z-index:50}.tw-float-right{float:right}.tw-m-3{margin:.75rem}.tw-mx-10{margin-left:2.5rem;margin-right:2.5rem}.tw-mx-4{margin-left:1rem;margin-right:1rem}.tw-mx-auto{margin-left:auto;margin-right:auto}.\!tw-mb-0{margin-bottom:0!important}.-tw-mb-px{margin-bottom:-1px}.tw--ml-px{margin-left:-1px}.tw-mb-0{margin-bottom:0}.tw-mb-1{margin-bottom:.25rem}.tw-mb-2{margin-bottom:.5rem}.tw-mb-6{margin-bottom:1.5rem}.tw-me-2{margin-inline-end:.5rem}.tw-ml-2{margin-left:.5rem}.tw-ml-3{margin-left:.75rem}.tw-ml-4{margin-left:1rem}.tw-ml-auto{margin-left:auto}.tw-mr-0{margin-right:0}.tw-mr-0\.5{margin-right:.125rem}.tw-mr-1{margin-right:.25rem}.tw-mr-2{margin-right:.5rem}.tw-mr-3{margin-right:.75rem}.tw-mt-1{margin-top:.25rem}.tw-mt-10{margin-top:2.5rem}.tw-mt-2{margin-top:.5rem}.tw-mt-5{margin-top:1.25rem}.tw-block{display:block}.tw-inline-block{display:inline-block}.tw-inline{display:inline}.tw-flex{display:flex}.tw-inline-flex{display:inline-flex}.tw-grid{display:grid}.tw-hidden{display:none}.tw-h-1{height:.25rem}.tw-h-24{height:6rem}.tw-h-5{height:1.25rem}.\!tw-w-auto{width:auto!important}.tw-w-48{width:12rem}.tw-w-5{width:1.25rem}.tw-w-full{width:100%}.tw-max-w-screen-lg{max-width:992px}.tw-flex-1{flex:1 1 0%}.tw-flex-grow{flex-grow:1}.tw-cursor-crosshair{cursor:crosshair}.tw-cursor-default{cursor:default}.tw-cursor-pointer{cursor:pointer}.tw-list-none{list-style-type:none}.tw-grid-cols-\[min-content_min-content_1fr\]{grid-template-columns:min-content min-content 1fr}.tw-flex-row-reverse{flex-direction:row-reverse}.tw-flex-col{flex-direction:column}.tw-flex-wrap{flex-wrap:wrap}.tw-place-items-center{place-items:center}.tw-items-center{align-items:center}.tw-items-baseline{align-items:baseline}.tw-justify-between{justify-content:space-between}.tw-gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.tw-overflow-y-hidden{overflow-y:hidden}.tw-whitespace-nowrap{white-space:nowrap}.tw-text-nowrap{text-wrap:nowrap}.tw-rounded{border-radius:.25rem}.tw-rounded-lg{border-radius:.5rem}.tw-rounded-md{border-radius:.375rem}.tw-rounded-l-md{border-bottom-left-radius:.375rem;border-top-left-radius:.375rem}.tw-rounded-r-md{border-bottom-right-radius:.375rem;border-top-right-radius:.375rem}.tw-rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.tw-border{border-width:1px}.tw-border-2{border-width:2px}.tw-border-b{border-bottom-width:1px}.tw-border-b-0{border-bottom-width:0}.tw-border-b-0\.5{border-bottom-width:.5px}.tw-border-b-2{border-bottom-width:2px}.tw-border-l-8{border-left-width:8px}.tw-border-r-0{border-right-width:0}.tw-border-r-0\.5{border-right-width:.5px}.tw-border-t-0{border-top-width:0}.tw-border-t-0\.5{border-top-width:.5px}.tw-border-solid{border-style:solid}.tw-border-blue-600{--tw-border-opacity:1;border-color:rgb(37 99 235/var(--tw-border-opacity))}.tw-border-current{border-color:currentColor}.tw-border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.tw-border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.tw-border-gray-500{--tw-border-opacity:1;border-color:rgb(107 114 128/var(--tw-border-opacity))}.tw-border-green-600{--tw-border-opacity:1;border-color:rgb(22 163 74/var(--tw-border-opacity))}.tw-border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.tw-border-transparent{border-color:transparent}.tw-border-yellow-600{--tw-border-opacity:1;border-color:rgb(202 138 4/var(--tw-border-opacity))}.tw-bg-current{background-color:currentColor}.tw-bg-gray-50{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.tw-bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.\!tw-p-0{padding:0!important}.tw-p-0{padding:0}.tw-p-1{padding:.25rem}.tw-p-10{padding:2.5rem}.tw-p-2{padding:.5rem}.tw-p-2\.5{padding:.625rem}.tw-p-3{padding:.75rem}.tw-p-4{padding:1rem}.tw-px-2{padding-left:.5rem;padding-right:.5rem}.tw-px-3{padding-left:.75rem;padding-right:.75rem}.tw-px-4{padding-left:1rem;padding-right:1rem}.tw-py-2{padding-bottom:.5rem;padding-top:.5rem}.tw-py-4{padding-bottom:1rem;padding-top:1rem}.\!tw-pb-0{padding-bottom:0!important}.tw-pl-2{padding-left:.5rem}.tw-pl-20{padding-left:5rem}.tw-pr-1{padding-right:.25rem}.tw-pr-2{padding-right:.5rem}.tw-pr-8{padding-right:2rem}.tw-text-left{text-align:left}.tw-text-center{text-align:center}.tw-text-right{text-align:right}.tw-text-2xl{font-size:1.5rem;line-height:2rem}.tw-text-3xl{font-size:1.875rem;line-height:2.25rem}.tw-text-base{font-size:1rem;line-height:1.5rem}.tw-text-sm{font-size:.875rem;line-height:1.25rem}.tw-text-xl{font-size:1.25rem;line-height:1.75rem}.tw-font-bold{font-weight:700}.tw-font-medium{font-weight:500}.tw-font-normal{font-weight:400}.tw-font-semibold{font-weight:600}.tw-capitalize{text-transform:capitalize}.tw-leading-5{line-height:1.25rem}.tw-leading-6{line-height:1.5rem}.tw-leading-7{line-height:1.75rem}.tw-leading-normal{line-height:1.5}.tw-text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity))}.tw-text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity))}.tw-text-blue-900{--tw-text-opacity:1;color:rgb(30 58 138/var(--tw-text-opacity))}.tw-text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.tw-text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.tw-text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.tw-text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.tw-text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity))}.tw-text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.tw-text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.tw-text-yellow-600{--tw-text-opacity:1;color:rgb(202 138 4/var(--tw-text-opacity))}.tw-no-underline{text-decoration-line:none}.tw-opacity-0{opacity:0}.tw-opacity-100{opacity:1}.tw-opacity-80{opacity:.8}.tw-opacity-90{opacity:.9}.tw-shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.tw-shadow-lg,.tw-shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.tw-shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.tw-ring-gray-300{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.tw-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.tw-duration-150,.tw-transition{transition-duration:.15s}.tw-duration-700{transition-duration:.7s}.tw-ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.tw-ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.even\:tw-bg-gray-50:nth-child(2n){--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.visited\:tw-text-blue-900:visited{color:#1e3a8a}.visited\:tw-text-gray-400:visited{color:#9ca3af}.visited\:tw-text-red-600:visited{color:#dc2626}.hover\:tw-border-gray-300:hover{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.hover\:tw-bg-gray-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\:tw-bg-gray-500:hover{--tw-bg-opacity:1;background-color:rgb(107 114 128/var(--tw-bg-opacity))}.hover\:tw-text-gray-100:hover{--tw-text-opacity:1;color:rgb(243 244 246/var(--tw-text-opacity))}.hover\:tw-text-gray-400:hover{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.hover\:tw-text-gray-500:hover{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.hover\:tw-text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.hover\:tw-opacity-100:hover{opacity:1}.hover\:tw-shadow-xl:hover{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.focus\:tw-z-10:focus{z-index:10}.focus\:tw-border-blue-300:focus{--tw-border-opacity:1;border-color:rgb(147 197 253/var(--tw-border-opacity))}.focus\:tw-border-blue-500:focus{--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.focus\:tw-outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:tw-ring:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\:tw-ring-blue-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246/var(--tw-ring-opacity))}.active\:tw-bg-gray-100:active{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.active\:tw-text-gray-500:active{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.active\:tw-text-gray-700:active{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.dark\:tw-border-blue-500:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.dark\:tw-border-dark-gray-200:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(62 68 76/var(--tw-border-opacity))}.dark\:tw-border-gray-600:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(75 85 99/var(--tw-border-opacity))}.dark\:tw-bg-dark-gray-300:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(53 58 65/var(--tw-bg-opacity))}.dark\:tw-bg-gray-700:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:tw-bg-gray-800:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(31 41 55/var(--tw-bg-opacity))}.dark\:tw-text-blue-500:is(.tw-dark *){--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.dark\:tw-text-dark-white-100:is(.tw-dark *){--tw-text-opacity:1;color:rgb(249 250 251/var(--tw-text-opacity))}.dark\:tw-text-gray-300:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.dark\:tw-text-gray-400:is(.tw-dark *){--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.dark\:tw-text-gray-600:is(.tw-dark *){--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.dark\:tw-text-white:is(.tw-dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:tw-placeholder-gray-400:is(.tw-dark *)::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.dark\:tw-placeholder-gray-400:is(.tw-dark *)::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175/var(--tw-placeholder-opacity))}.dark\:even\:tw-bg-zinc-900:nth-child(2n):is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity))}.dark\:visited\:tw-text-dark-white-100:visited:is(.tw-dark *){color:#f9fafb}.dark\:hover\:tw-bg-gray-600:hover:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(75 85 99/var(--tw-bg-opacity))}.dark\:hover\:tw-text-gray-300:hover:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.dark\:focus\:tw-border-blue-500:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(59 130 246/var(--tw-border-opacity))}.dark\:focus\:tw-border-blue-700:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(29 78 216/var(--tw-border-opacity))}.dark\:focus\:tw-border-blue-800:focus:is(.tw-dark *){--tw-border-opacity:1;border-color:rgb(30 64 175/var(--tw-border-opacity))}.dark\:active\:tw-bg-gray-700:active:is(.tw-dark *){--tw-bg-opacity:1;background-color:rgb(55 65 81/var(--tw-bg-opacity))}.dark\:active\:tw-text-gray-300:active:is(.tw-dark *){--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}@media (min-width:576px){.sm\:tw-inline{display:inline}.sm\:tw-flex{display:flex}.sm\:tw-table-cell{display:table-cell}.sm\:tw-hidden{display:none}.sm\:tw-w-1\/2{width:50%}.sm\:tw-flex-1{flex:1 1 0%}.sm\:tw-flex-row{flex-direction:row}.sm\:tw-items-center{align-items:center}.sm\:tw-justify-between{justify-content:space-between}.sm\:tw-px-6{padding-left:1.5rem;padding-right:1.5rem}}@media (min-width:768px){.md\:tw-table-cell{display:table-cell}}@media (min-width:992px){.lg\:tw-w-1\/4{width:25%}}.rtl\:tw-flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse} diff --git a/html/js/app.js b/html/js/app.js index 2a4cc9e955..13e0ff988b 100644 --- a/html/js/app.js +++ b/html/js/app.js @@ -1 +1 @@ -(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},4985:(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-abd58c08]{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},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{"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+="

"+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(4985),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-default",class:{"disable-events":!t.showResetToDefault()},style:{opacity:t.showResetToDefault()?1:0},attrs:{type:"button"},on:{click:t.resetToDefault}},[e("i",{staticClass:"fa fa-refresh"})]),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,"abd58c08",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{"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},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{"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{"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":9224,"./components/LibrenmsSettings.vue":3995,"./components/PollerSettings.vue":3411,"./components/SettingArray.vue":3352,"./components/SettingArraySubKeyed.vue":1036,"./components/SettingBoolean.vue":9248,"./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()}]); \ No newline at end of file +(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},4985:(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-abd58c08]{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{"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+="

"+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(4985),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-default",class:{"disable-events":!t.showResetToDefault()},style:{opacity:t.showResetToDefault()?1:0},attrs:{type:"button"},on:{click:t.resetToDefault}},[e("i",{staticClass:"fa fa-refresh"})]),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,"abd58c08",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{"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{"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{"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":9224,"./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()}]); \ No newline at end of file diff --git a/html/mix-manifest.json b/html/mix-manifest.json index db46be2554..69446f394e 100644 --- a/html/mix-manifest.json +++ b/html/mix-manifest.json @@ -1,11 +1,11 @@ { - "/js/app.js": "/js/app.js?id=1ecd9b13d60fe23a9729684f4d9dc663", + "/js/app.js": "/js/app.js?id=6fd1d20a8df5d99d9822ab7476b72a6e", "/js/manifest.js": "/js/manifest.js?id=2eb19d92c19953027907b72ff5963ebb", "/css/vendor.css": "/css/vendor.css?id=d520734ded0ec75b0a572aa8db1c2161", - "/css/app.css": "/css/app.css?id=71ba24df332b4132f71ad82f23679d4f", + "/css/app.css": "/css/app.css?id=d5329c44307234e278d193efbf78e05a", "/js/vendor.js": "/js/vendor.js?id=3b22b85b4e5a64e37dd954c0b147b3f3", "/js/lang/de.js": "/js/lang/de.js?id=f80b2c49bd4d1587d4747d189c566ffa", - "/js/lang/en.js": "/js/lang/en.js?id=5f909f26f3509a880924343a6acc7df4", + "/js/lang/en.js": "/js/lang/en.js?id=7f4b534757a8fe8d66343da15b70cb5d", "/js/lang/fr.js": "/js/lang/fr.js?id=7e43fd1965beef315f0b416fd8607231", "/js/lang/it.js": "/js/lang/it.js?id=7827375adf92766a477291c48fa1b360", "/js/lang/ru.js": "/js/lang/ru.js?id=f6b7c078755312a0907c4f983991cc52", diff --git a/lang/en/settings.php b/lang/en/settings.php index 84ee223076..e988aabf9f 100644 --- a/lang/en/settings.php +++ b/lang/en/settings.php @@ -78,6 +78,7 @@ return [ ], 'webui' => [ 'availability-map' => ['name' => 'Availability Map Settings'], + 'custom-map' => ['name' => 'Custom Map Settings'], 'graph' => ['name' => 'Graph Settings'], 'dashboard' => ['name' => 'Dashboard Settings'], 'port-descr' => ['name' => 'Interface Description Parsing'], @@ -497,6 +498,94 @@ return [ 'description' => 'Core Port Types', 'help' => 'Ports of the listed description type(s) will be shown under the core ports menu entry. See Interface Description Parsing docs for more info.', ], + 'custom_map' => [ + 'background_type' => [ + 'description' => 'Background Type', + 'help' => 'Default background type for new maps. Requires background data set.', + ], + 'background_data' => [ + 'color' => [ + 'description' => 'Background Color', + 'help' => 'Initial color for map background', + ], + 'lat' => [ + 'description' => 'Background Map Lattitude', + 'help' => 'Initial lattitude for background geo map', + ], + 'lng' => [ + 'description' => 'Background Map Longitude', + 'help' => 'Initial longitude for background geo map', + ], + 'layer' => [ + 'description' => 'Background Map Layer', + 'help' => 'Initial map layer for background geo map', + ], + 'zoom' => [ + 'description' => 'Background Map Zoom', + 'help' => 'Initial map zoom for background geo map', + ], + ], + 'edge_font_color' => [ + 'description' => 'Edge Text Color', + 'help' => 'Default font color for edge labels', + ], + 'edge_font_face' => [ + 'description' => 'Edge Font', + 'help' => 'Default font face for edge labels', + ], + 'edge_font_size' => [ + 'description' => 'Edge Text Size', + 'help' => 'Default font size for edge labels', + ], + 'edge_seperation' => [ + 'description' => 'Edge Seperation', + 'help' => 'Default edge seperation for new maps', + ], + 'height' => [ + 'description' => 'Map Height', + 'help' => 'Default map height for new maps', + ], + 'node_align' => [ + 'description' => 'Node Alignment', + 'help' => 'Default node aligment for new maps', + ], + 'node_background' => [ + 'description' => 'Node Background', + 'help' => 'Default background color for node labels', + ], + 'node_border' => [ + 'description' => 'Node Border', + 'help' => 'Default border color for node labels', + ], + 'node_font_color' => [ + 'description' => 'Node Text Color', + 'help' => 'Default font color for node labels', + ], + 'node_font_face' => [ + 'description' => 'Node Font', + 'help' => 'Default font for node labels', + ], + 'node_font_size' => [ + 'description' => 'Node Text Size', + 'help' => 'Default font size for node labels', + ], + 'node_size' => [ + 'description' => 'Node Size', + 'help' => 'Default size for nodes', + ], + 'node_type' => [ + 'description' => 'Node Display Type', + 'help' => 'Default display type for nodes', + ], + 'reverse_arrows' => [ + 'description' => 'Reverse Edge Arrows', + 'help' => 'Default arrow direction. Towards center (default) or towards ends', + ], + 'width' => [ + 'description' => 'Map Width', + 'help' => 'Default map width for new maps', + ], + ], 'customers_descr' => [ 'description' => 'Customer Port Types', 'help' => 'Ports of the listed description type(s) will be shown under the customers ports menu entry. See Interface Description Parsing docs for more info.', diff --git a/misc/config_definitions.json b/misc/config_definitions.json index 48a8b1e80c..e6d574814b 100644 --- a/misc/config_definitions.json +++ b/misc/config_definitions.json @@ -963,6 +963,210 @@ "default": [""], "type": "array" }, + "custom_map.background_type": { + "default": "none", + "type": "select", + "group": "webui", + "section": "custom-map", + "order": 98, + "options": { + "color": "Color", + "map": "Map", + "none": "None" + } + }, + "custom_map.background_data.color": { + "default": "#badaee", + "type": "color", + "group": "webui", + "section": "custom-map", + "order": 100, + "options": { + "Streets": "Streets", + "Sattelite": "Sattelite", + "Topography": "Topography" + }, + "when": { + "setting": "custom_map.background_type", + "operator": "equals", + "value": "color" + } + }, + "custom_map.background_data.lat": { + "default": 40, + "type": "float", + "group": "webui", + "section": "custom-map", + "order": 101, + "when": { + "setting": "custom_map.background_type", + "operator": "equals", + "value": "map" + } + }, + "custom_map.background_data.layer": { + "default": null, + "type": "select", + "group": "webui", + "section": "custom-map", + "order": 104, + "options": { + "Streets": "Streets", + "Sattelite": "Sattelite", + "Topography": "Topography" + }, + "when": { + "setting": "custom_map.background_type", + "operator": "equals", + "value": "map" + } + }, + "custom_map.background_data.lng": { + "default": -20, + "type": "float", + "group": "webui", + "section": "custom-map", + "order": 102, + "when": { + "setting": "custom_map.background_type", + "operator": "equals", + "value": "map" + } + }, + "custom_map.background_data.zoom": { + "default": 3, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 103, + "when": { + "setting": "custom_map.background_type", + "operator": "equals", + "value": "map" + } + }, + "custom_map.edge_font_color": { + "default": "#343434", + "type": "color", + "group": "webui", + "section": "custom-map", + "order": 53 + }, + "custom_map.edge_font_face": { + "default": "arial", + "type": "text", + "group": "webui", + "section": "custom-map", + "order": 51 + }, + "custom_map.edge_font_size": { + "default": 12, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 52 + }, + "custom_map.edge_seperation": { + "default": 10, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 21 + }, + "custom_map.height": { + "default": "1800px", + "type": "text", + "group": "webui", + "section": "custom-map", + "order": 2 + }, + "custom_map.node_align": { + "default": 10, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 22 + }, + "custom_map.node_background": { + "default": "#D2E5FF", + "type": "color", + "group": "webui", + "section": "custom-map", + "order": 41 + }, + "custom_map.node_border": { + "default": "#2B7CE9", + "type": "color", + "group": "webui", + "section": "custom-map", + "order": 42 + }, + "custom_map.node_font_color": { + "default": "#343434", + "type": "color", + "group": "webui", + "section": "custom-map", + "order": 45 + }, + "custom_map.node_font_face": { + "default": "arial", + "type": "text", + "group": "webui", + "section": "custom-map", + "order": 43 + }, + "custom_map.node_font_size": { + "default": 14, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 44 + }, + "custom_map.node_size": { + "default": 25, + "type": "integer", + "group": "webui", + "section": "custom-map", + "order": 40 + }, + "custom_map.node_type": { + "default": "box", + "type": "select", + "group": "webui", + "section": "custom-map", + "order": 39, + "options": { + "box": "Box", + "circle": "Circle", + "database": "Database", + "ellipse": "Ellipse", + "text": "Text", + "device_image": "Device Image", + "device_image_circle": "Device Image (Circular)", + "diamond": "Diamond", + "dot": "Dot", + "star": "Star", + "triangle": "Triangle", + "triangle_inverted": "Triangle Inverted", + "hexagon": "Hexagon", + "square": "Square", + "icon": "Icon" + } + }, + "custom_map.reverse_arrows": { + "default": false, + "type": "boolean", + "group": "webui", + "section": "custom-map", + "order": 23 + }, + "custom_map.width": { + "default": "800px", + "type": "text", + "group": "webui", + "section": "custom-map", + "order": 1 + }, "customers_descr": { "default": ["cust"], "type": "array", diff --git a/resources/js/components/SettingColor.vue b/resources/js/components/SettingColor.vue new file mode 100644 index 0000000000..63582091b7 --- /dev/null +++ b/resources/js/components/SettingColor.vue @@ -0,0 +1,48 @@ + + + + + + + diff --git a/resources/views/map/custom-background-modal.blade.php b/resources/views/map/custom-background-modal.blade.php index dd55e1771b..b34d37d157 100644 --- a/resources/views/map/custom-background-modal.blade.php +++ b/resources/views/map/custom-background-modal.blade.php @@ -67,11 +67,11 @@ error: '', resetBackground() { this.type = this.initial_type; - this.color = 'color' in this.initial_data ? this.initial_data.color : '#badaee'; - this.lat = 'lat' in this.initial_data ? this.initial_data.lat : 40; - this.lng = 'lng' in this.initial_data ? this.initial_data.lng : -20; - this.zoom = 'zoom' in this.initial_data ? this.initial_data.zoom : 3; - this.layer = 'layer' in this.initial_data ? this.initial_data.layer : null; + this.color = 'color' in this.initial_data ? this.initial_data.color : '{{ Config::get('custom_map.background_data.color') }}'; + this.lat = 'lat' in this.initial_data ? this.initial_data.lat : {{ (float) Config::get('custom_map.background_data.lat') }}; + this.lng = 'lng' in this.initial_data ? this.initial_data.lng : {{ (float) Config::get('custom_map.background_data.lng') }}; + this.zoom = 'zoom' in this.initial_data ? this.initial_data.zoom : {{ (int) Config::get('custom_map.background_data.zoom') }}; + this.layer = 'layer' in this.initial_data ? this.initial_data.layer : {{ Js::from(Config::get('custom_map.background_data.layer')) }}; this.image = this.initial_data['original_filename']; this.image_content = null; this.show_image_export = (! 'engine' in this.initial_data) || ! ['google', 'bing'].includes(this.initial_data['engine']);