CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
0.3.5 (#470)
link34f35bbf207f
diff --git a/.gitignore b/.gitignoreindex 3d60515..9b3fbd7 100644--- a/.gitignore+++ b/.gitignore@@ -38,4 +38,6 @@ mainCasaOSgithub.com.all-contributorsrc-build\ No newline at end of file+build+dist+.goreleaser.yaml\ No newline at end of filediff --git a/route/v1/app.go b/route/v1/app.goindex eec6a7b..1a9f278 100644--- a/route/v1/app.go+++ b/route/v1/app.go@@ -220,7 +220,7 @@ func AppInfo(c *gin.Context) {// sort.EnvSort(envOrder).Sort(info.Envs)// sort.VolSort(volOrder).Sort(info.Volumes.([]model.PathMap))// sort.DevSort(devOrder).Sort(info.Devices)-+ info.Image += ":" + info.ImageVersioninfo.MaxMemory = (service.MyService.System().GetMemInfo()["total"]).(uint64) >> 20c.JSON(common_err.SUCCESS, &model.Result{Success: common_err.SUCCESS, Message: common_err.GetMsg(common_err.SUCCESS), Data: info})diff --git a/route/v1/disk.go b/route/v1/disk.goindex 271c9b5..7601eb4 100644--- a/route/v1/disk.go+++ b/route/v1/disk.go@@ -3,6 +3,7 @@ package v1import ("fmt""net/http"+ "path/filepath""reflect""strconv""strings"@@ -210,6 +211,9 @@ func GetDisksUSBList(c *gin.Context) {tempChildren.Size, _ = strconv.ParseUint(child.FSSize, 10, 64)tempChildren.Avail, _ = strconv.ParseUint(child.FSAvail, 10, 64)tempChildren.Name = child.Label+ if len(tempChildren.Name) == 0 {+ tempChildren.Name = filepath.Base(child.MountPoint)+ }avail, _ := strconv.ParseUint(child.FSAvail, 10, 64)children = append(children, tempChildren)temp.Avail += availdiff --git a/web/img/CasaConnect.svg b/web/img/CasaConnect.svgindex 8d5b97b..a5abb0e 100644--- a/web/img/CasaConnect.svg+++ b/web/img/CasaConnect.svg@@ -1,55 +1,55 @@-<?xml version="1.0" encoding="UTF-8"?>-<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">- <defs>- <linearGradient id="linearGradient1911" x1="25.085" x2="25.085" y1="24.031" y2="26.412" gradientTransform="translate(-35.822,-21.385)" gradientUnits="userSpaceOnUse">- <stop stop-color="#fcbc19" stop-opacity=".99608" offset="0"/>- <stop stop-color="#f4b61f" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient4625" x1=".52918" x2="16.404" y1="5.0665" y2="5.0665" gradientTransform="translate(-17.925)" gradientUnits="userSpaceOnUse">- <stop stop-color="#b78815" offset="0"/>- <stop stop-color="#e2b24b" stop-opacity="0" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient1951" x1="100" x2="133.19" y1="17.453" y2="51.606" gradientTransform="matrix(.26458 0 0 .26458 -38.033 -.13539)" gradientUnits="userSpaceOnUse">- <stop stop-color="#fce798" offset="0"/>- <stop stop-color="#ffc937" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient11110" x1=".52917" x2="16.404" y1="5.3815" y2="5.3815" gradientTransform="translate(-17.925)" gradientUnits="userSpaceOnUse">- <stop stop-color="#fff" offset="0"/>- <stop stop-color="#fff" stop-opacity="0" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient1119" x1="8.4665" x2="8.4665" y1="6.0853" y2="9.4879" gradientUnits="userSpaceOnUse">- <stop stop-color="#fddb7a" offset="0"/>- <stop stop-color="#ffd970" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient1284" x1="8.4665" x2="8.4665" y1="10.26" y2="13.229" gradientUnits="userSpaceOnUse">- <stop stop-color="#ffd96e" offset="0"/>- <stop stop-color="#ffd561" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient1272" x1="-3.9033" x2="-3.9033" y1="7.7839" y2="15.613" gradientTransform="translate(12.362 -2.1249)" gradientUnits="userSpaceOnUse">- <stop stop-color="#c68d00" offset="0"/>- <stop stop-color="#a67100" offset="1"/>- </linearGradient>- </defs>- <metadata>- <rdf:RDF>- <cc:Work rdf:about="">- <dc:format>image/svg+xml</dc:format>- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>- </cc:Work>- </rdf:RDF>- </metadata>- <g transform="translate(17.925 4.2e-5)">- <path d="m-16.728 2.2489c-0.3653 0-0.66145 0.32575-0.66145 0.72759v2.9636c-0.0026 0.02629-0.0072 0.052-0.0072 0.07906v7.9373c0 0.40184 0.29614 0.72759 0.66144 0.72759h14.552c0.36531 0 0.66144-0.32575 0.66144-0.72759v-9.393c0-0.40184-0.29614-0.72759-0.66144-0.72759v5.16e-4h-8.1993l-0.89864-1.1095s-0.36607-0.478-1.0583-0.478h-1.3229z" color="#000000" color-rendering="auto" dominant-baseline="auto" fill="url(#linearGradient1911)" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stop-color="#000000" style="font-feature-settings:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;font-variation-settings:normal;inline-size:0;isolation:auto;mix-blend-mode:normal;shape-margin:0;shape-padding:0;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-orientation:mixed;text-transform:none;white-space:normal"/>- <path d="m-9.5646 3.8364c-0.11312 0.0018-0.30848-0.01542-0.51986 0.09508-0.73647 0.37946-0.77226 0.59366-1.557 0.71415h-4.9608c-0.21986 0-0.41824 0.08855-0.56171 0.23202-0.13937 0.13936-0.22041 0.33333-0.2253 0.54569v0.2775c0.0049-0.21236 0.08593-0.40633 0.2253-0.54569 0.14347-0.14347 0.34185-0.23202 0.56171-0.23202h4.9608c0.78472-0.1205 0.82051-0.33469 1.557-0.71415 0.21138-0.1105 0.40673-0.09328 0.51986-0.09508h7.3828c0.18216 3.65e-4 0.3472 0.08101 0.46663 0.21239 0.1197 0.13167 0.19378 0.31377 0.19378 0.51469v-0.2775c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11943-0.13137-0.28447-0.21202-0.46663-0.21239h-1.1652zm-7.8247 2.1037c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v0.2775c0-0.02705 0.0041-0.05277 0.0067-0.07906z" fill="url(#linearGradient4625)" opacity=".001" stroke-width=".26458"/>- <path d="m-17.396 13.674v0.28215c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-0.28215c0 0.20092-0.07409 0.3825-0.19378 0.51417-0.1197 0.13167-0.28501 0.21342-0.46766 0.21342h-14.552c-0.18265 0-0.34848-0.08176-0.46818-0.21342s-0.19327-0.31325-0.19327-0.51417z" fill="#e4a729" fill-opacity=".99608" stroke-width=".26458"/>- <path d="m-10.383 4.0979s-0.35919 0.47868-1.1575 0.79218c-0.03271 0.00587-0.06509 0.011575-0.10077 0.017052h-4.9608c-0.21986 0-0.41824 0.088552-0.56171 0.23202-0.13937 0.13936-0.22042 0.33333-0.2253 0.54569v0.51675c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v7.3953c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-8.851c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11945-0.13137-0.28449-0.21202-0.46665-0.21239h-7.4821z" fill="url(#linearGradient1951)"/>- <path d="m-10.383 4.0979s-0.35919 0.47868-1.1575 0.79218c-0.03271 0.00587-0.06509 0.011575-0.10077 0.017052h-4.9608c-0.21986 0-0.41824 0.088552-0.56171 0.23202-0.13937 0.13936-0.22041 0.33333-0.2253 0.54569v0.38446c0.0049-0.21236 0.08593-0.40633 0.2253-0.54569 0.14347-0.14347 0.34185-0.23202 0.56171-0.23202h4.9608c0.03568-0.00548 0.06806-0.011184 0.10077-0.017052 0.75911-0.26303 1.2883-0.79218 1.2883-0.79218h8.0707c0.18216 3.704e-4 0.34718 0.081016 0.46663 0.21239 0.1197 0.13167 0.19378 0.31377 0.19378 0.51469v-0.38446c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11945-0.13137-0.28447-0.21202-0.46663-0.21239h-7.4821zm-7.0062 2.1037c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v0.38446c0-0.02705 0.0041-0.05277 0.0067-0.07906z" fill="url(#linearGradient11110)" opacity=".3"/>- </g>- <circle cx="8.4665" cy="9.525" r="3.9687" fill="url(#linearGradient1272)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".1726"/>- <g transform="matrix(.77756 0 0 .77756 10.567 2.0159)">- <g transform="matrix(1.0741 0 0 1.0741 -11.796 -.7153)">- <circle cx="8.4665" cy="7.8051" r="1.7198" fill="url(#linearGradient1119)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".34395" style="paint-order:stroke fill markers"/>- <path d="m5.2916 11.064 5.4e-6 -0.14432c0-0.43295 0.43294-0.72158 0.72157-0.72158h4.9067c0.28863 0 0.72158 0.28863 0.72158 0.72158v0.14432c0 1.3096-1.416 2.1647-3.1749 2.1647-1.7589 0-3.1749-0.85514-3.1749-2.1647z" fill="url(#linearGradient1284)" stroke-width=".14049"/>- </g>- </g>-</svg>+<?xml version="1.0" encoding="UTF-8"?>+<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">+ <defs>+ <linearGradient id="linearGradient1911" x1="25.085" x2="25.085" y1="24.031" y2="26.412" gradientTransform="translate(-35.822,-21.385)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fcbc19" stop-opacity=".99608" offset="0"/>+ <stop stop-color="#f4b61f" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient4625" x1=".52918" x2="16.404" y1="5.0665" y2="5.0665" gradientTransform="translate(-17.925)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#b78815" offset="0"/>+ <stop stop-color="#e2b24b" stop-opacity="0" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient1951" x1="100" x2="133.19" y1="17.453" y2="51.606" gradientTransform="matrix(.26458 0 0 .26458 -38.033 -.13539)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fce798" offset="0"/>+ <stop stop-color="#ffc937" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient11110" x1=".52917" x2="16.404" y1="5.3815" y2="5.3815" gradientTransform="translate(-17.925)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fff" offset="0"/>+ <stop stop-color="#fff" stop-opacity="0" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient1119" x1="8.4665" x2="8.4665" y1="6.0853" y2="9.4879" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fddb7a" offset="0"/>+ <stop stop-color="#ffd970" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient1284" x1="8.4665" x2="8.4665" y1="10.26" y2="13.229" gradientUnits="userSpaceOnUse">+ <stop stop-color="#ffd96e" offset="0"/>+ <stop stop-color="#ffd561" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient1272" x1="-3.9033" x2="-3.9033" y1="7.7839" y2="15.613" gradientTransform="translate(12.362 -2.1249)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#c68d00" offset="0"/>+ <stop stop-color="#a67100" offset="1"/>+ </linearGradient>+ </defs>+ <metadata>+ <rdf:RDF>+ <cc:Work rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <g transform="translate(17.925 4.2e-5)">+ <path d="m-16.728 2.2489c-0.3653 0-0.66145 0.32575-0.66145 0.72759v2.9636c-0.0026 0.02629-0.0072 0.052-0.0072 0.07906v7.9373c0 0.40184 0.29614 0.72759 0.66144 0.72759h14.552c0.36531 0 0.66144-0.32575 0.66144-0.72759v-9.393c0-0.40184-0.29614-0.72759-0.66144-0.72759v5.16e-4h-8.1993l-0.89864-1.1095s-0.36607-0.478-1.0583-0.478h-1.3229z" color="#000000" color-rendering="auto" dominant-baseline="auto" fill="url(#linearGradient1911)" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stop-color="#000000" style="font-feature-settings:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;font-variation-settings:normal;inline-size:0;isolation:auto;mix-blend-mode:normal;shape-margin:0;shape-padding:0;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-orientation:mixed;text-transform:none;white-space:normal"/>+ <path d="m-9.5646 3.8364c-0.11312 0.0018-0.30848-0.01542-0.51986 0.09508-0.73647 0.37946-0.77226 0.59366-1.557 0.71415h-4.9608c-0.21986 0-0.41824 0.08855-0.56171 0.23202-0.13937 0.13936-0.22041 0.33333-0.2253 0.54569v0.2775c0.0049-0.21236 0.08593-0.40633 0.2253-0.54569 0.14347-0.14347 0.34185-0.23202 0.56171-0.23202h4.9608c0.78472-0.1205 0.82051-0.33469 1.557-0.71415 0.21138-0.1105 0.40673-0.09328 0.51986-0.09508h7.3828c0.18216 3.65e-4 0.3472 0.08101 0.46663 0.21239 0.1197 0.13167 0.19378 0.31377 0.19378 0.51469v-0.2775c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11943-0.13137-0.28447-0.21202-0.46663-0.21239h-1.1652zm-7.8247 2.1037c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v0.2775c0-0.02705 0.0041-0.05277 0.0067-0.07906z" fill="url(#linearGradient4625)" opacity=".001" stroke-width=".26458"/>+ <path d="m-17.396 13.674v0.28215c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-0.28215c0 0.20092-0.07409 0.3825-0.19378 0.51417-0.1197 0.13167-0.28501 0.21342-0.46766 0.21342h-14.552c-0.18265 0-0.34848-0.08176-0.46818-0.21342s-0.19327-0.31325-0.19327-0.51417z" fill="#e4a729" fill-opacity=".99608" stroke-width=".26458"/>+ <path d="m-10.383 4.0979s-0.35919 0.47868-1.1575 0.79218c-0.03271 0.00587-0.06509 0.011575-0.10077 0.017052h-4.9608c-0.21986 0-0.41824 0.088552-0.56171 0.23202-0.13937 0.13936-0.22042 0.33333-0.2253 0.54569v0.51675c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v7.3953c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-8.851c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11945-0.13137-0.28449-0.21202-0.46665-0.21239h-7.4821z" fill="url(#linearGradient1951)"/>+ <path d="m-10.383 4.0979s-0.35919 0.47868-1.1575 0.79218c-0.03271 0.00587-0.06509 0.011575-0.10077 0.017052h-4.9608c-0.21986 0-0.41824 0.088552-0.56171 0.23202-0.13937 0.13936-0.22041 0.33333-0.2253 0.54569v0.38446c0.0049-0.21236 0.08593-0.40633 0.2253-0.54569 0.14347-0.14347 0.34185-0.23202 0.56171-0.23202h4.9608c0.03568-0.00548 0.06806-0.011184 0.10077-0.017052 0.75911-0.26303 1.2883-0.79218 1.2883-0.79218h8.0707c0.18216 3.704e-4 0.34718 0.081016 0.46663 0.21239 0.1197 0.13167 0.19378 0.31377 0.19378 0.51469v-0.38446c0-0.20092-0.07408-0.38302-0.19378-0.51469-0.11945-0.13137-0.28447-0.21202-0.46663-0.21239h-7.4821zm-7.0062 2.1037c-0.0026 0.02629-0.0067 0.05201-0.0067 0.07906v0.38446c0-0.02705 0.0041-0.05277 0.0067-0.07906z" fill="url(#linearGradient11110)" opacity=".3"/>+ </g>+ <circle cx="8.4665" cy="9.525" r="3.9687" fill="url(#linearGradient1272)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".1726"/>+ <g transform="matrix(.77756 0 0 .77756 10.567 2.0159)">+ <g transform="matrix(1.0741 0 0 1.0741 -11.796 -.7153)">+ <circle cx="8.4665" cy="7.8051" r="1.7198" fill="url(#linearGradient1119)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".34395" style="paint-order:stroke fill markers"/>+ <path d="m5.2916 11.064 5.4e-6 -0.14432c0-0.43295 0.43294-0.72158 0.72157-0.72158h4.9067c0.28863 0 0.72158 0.28863 0.72158 0.72158v0.14432c0 1.3096-1.416 2.1647-3.1749 2.1647-1.7589 0-3.1749-0.85514-3.1749-2.1647z" fill="url(#linearGradient1284)" stroke-width=".14049"/>+ </g>+ </g>+</svg>diff --git a/web/img/Files.svg b/web/img/Files.svgindex e5924aa..3ab1bd1 100644--- a/web/img/Files.svg+++ b/web/img/Files.svg@@ -1,67 +1,67 @@-<?xml version="1.0" encoding="UTF-8"?>-<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">- <defs>- <style type="text/css"/>- <linearGradient id="linearGradient1951" x1="100" x2="133.19" y1="17.453" y2="51.606" gradientTransform="matrix(.26458 0 0 .24792 -20.108 .79576)" gradientUnits="userSpaceOnUse">- <stop stop-color="#26abe7" offset="0"/>- <stop stop-color="#0669bc" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient11110" x1=".52917" x2="16.404" y1="5.3815" y2="5.3815" gradientTransform="matrix(1 0 0 .93702 6.5e-7 .92263)" gradientUnits="userSpaceOnUse">- <stop stop-color="#fff" offset="0"/>- <stop stop-color="#fff" stop-opacity="0" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient1911" x1="25.085" x2="25.085" y1="24.031" y2="26.412" gradientTransform="translate(-17.897,-21.369)" gradientUnits="userSpaceOnUse">- <stop stop-color="#0271ca" offset="0"/>- <stop stop-color="#0768ba" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient9169" x1="7.4082" x2="7.4082" y1="4.2333" y2="5.5561" gradientUnits="userSpaceOnUse">- <stop stop-color="#fff" offset="0"/>- <stop stop-color="#e3e4e5" offset="1"/>- </linearGradient>- <linearGradient id="linearGradient23227" x1=".52916" x2="16.404" y1="14.196" y2="14.196" gradientTransform="translate(-18.282 -.015458)" gradientUnits="userSpaceOnUse">- <stop stop-color="#0a5ba8" stop-opacity=".99608" offset="0"/>- <stop stop-color="#104a8c" stop-opacity=".99608" offset="1"/>- </linearGradient>- </defs>- <metadata>- <rdf:RDF>- <cc:Work rdf:about="">- <dc:format>image/svg+xml</dc:format>- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>- </cc:Work>- </rdf:RDF>- </metadata>- <path d="m1.1977 2.2644c-0.3653 0-0.66145 0.32575-0.66145 0.72759v2.9636c-0.0026 0.02629-0.0072 0.052-0.0072 0.07906v7.9373c0 0.40184 0.29614 0.72759 0.66144 0.72759h14.552c0.36531 0 0.66144-0.32575 0.66144-0.72759v-9.393c0-0.40184-0.29614-0.72759-0.66144-0.72759v5.16e-4h-8.1993l-0.89864-1.1095s-0.36607-0.478-1.0583-0.478h-1.3229z" color="#000000" color-rendering="auto" dominant-baseline="auto" fill="url(#linearGradient1911)" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stop-color="#000000" style="font-feature-settings:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;font-variation-settings:normal;inline-size:0;isolation:auto;mix-blend-mode:normal;shape-margin:0;shape-padding:0;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-orientation:mixed;text-transform:none;white-space:normal"/>- <g fill="#5e4aa6" stroke-width=".26458">- <circle cx="-330.35" cy="-328.38" r="0"/>- <circle cx="-312.11" cy="-326.25" r="0"/>- <circle cx="-306.02" cy="-333.07" r="0"/>- <circle cx="-308.84" cy="-326.01" r="0"/>- <circle cx="-328.8" cy="-330.45" r="0"/>- <g transform="translate(24.108 -4.592)">- <circle cx="-330.35" cy="-328.38" r="0"/>- <circle cx="-312.11" cy="-326.25" r="0"/>- <circle cx="-306.02" cy="-333.07" r="0"/>- <circle cx="-308.84" cy="-326.01" r="0"/>- <circle cx="-328.8" cy="-330.45" r="0"/>- </g>- <g transform="translate(2.3479 -14.944)">- <circle cx="-330.35" cy="-328.38" r="0"/>- <circle cx="-312.11" cy="-326.25" r="0"/>- <circle cx="-306.02" cy="-333.07" r="0"/>- <circle cx="-308.84" cy="-326.01" r="0"/>- <circle cx="-328.8" cy="-330.45" r="0"/>- </g>- <g transform="translate(.000295 -.00036978)">- <circle cx="-330.35" cy="-328.38" r="0"/>- <circle cx="-312.11" cy="-326.25" r="0"/>- <circle cx="-306.02" cy="-333.07" r="0"/>- <circle cx="-308.84" cy="-326.01" r="0"/>- <circle cx="-328.8" cy="-330.45" r="0"/>- </g>- </g>- <path d="m0.52916 13.691v0.28215c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-0.28215c0 0.20092-0.07409 0.3825-0.19378 0.51417-0.1197 0.13167-0.28501 0.21342-0.46766 0.21342h-14.552c-0.18265 0-0.34848-0.08176-0.46818-0.21342s-0.19327-0.31325-0.19327-0.51417z" fill="url(#linearGradient23227)" stroke-width=".26458"/>- <rect x=".79373" y="4.2333" width="15.346" height="8.9957" ry=".79373" fill="url(#linearGradient9169)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".1077"/>- <path d="m7.542 4.7624s-0.35919 0.44853-1.1575 0.74229c-0.03271 0.0055-0.06509 0.010846-0.10077 0.015978h-5.4967c-0.21986 0-0.41824 0.082975-0.56171 0.21741-0.13937 0.13058-0.22042 0.31234-0.2253 0.51133v0.48421c0 0.02369-0.0021296 0.045593 0 0.073482l0.52916 6.9301c0.014339 0.18779 0.07357 0.35841 0.19327 0.48179s0.28553 0.19998 0.46818 0.19998h14.552c0.18265 0 0.34796-0.0766 0.46766-0.19998s0.18179-0.29386 0.19378-0.48179l0.52916-8.2935c0.011991-0.18793-0.07408-0.35889-0.19378-0.48227-0.11945-0.1231-0.28449-0.19866-0.46665-0.19901h-8.0112z" fill="url(#linearGradient1951)"/>- <path d="m7.542 4.7624s-0.35919 0.44853-1.1575 0.74229c-0.03271 0.0055-0.06509 0.010846-0.10077 0.015978h-5.49c-0.21986 0-0.41824 0.082975-0.56171 0.21741-0.13937 0.13058-0.22041 0.31234-0.2253 0.51132l-0.0067094 0.36074c0.0049-0.19899 0.092639-0.38123 0.23201-0.51181 0.14347-0.13443 0.34185-0.21741 0.56171-0.21741h5.49c0.03568-0.00513 0.06806-0.01048 0.10077-0.015978 0.75911-0.24646 1.2883-0.74229 1.2883-0.74229h8.5998c0.18216 3.471e-4 0.34718 0.075914 0.46663 0.19901 0.1197 0.12338 0.19378 0.29401 0.19378 0.48227v-0.36025c0-0.18827-0.07408-0.35889-0.19378-0.48227-0.11945-0.1231-0.28447-0.19866-0.46663-0.19901h-8.0112z" fill="url(#linearGradient11110)" opacity=".3"/>-</svg>+<?xml version="1.0" encoding="UTF-8"?>+<svg width="64" height="64" version="1.1" viewBox="0 0 16.933 16.933" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">+ <defs>+ <style type="text/css"/>+ <linearGradient id="linearGradient1951" x1="100" x2="133.19" y1="17.453" y2="51.606" gradientTransform="matrix(.26458 0 0 .24792 -20.108 .79576)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#26abe7" offset="0"/>+ <stop stop-color="#0669bc" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient11110" x1=".52917" x2="16.404" y1="5.3815" y2="5.3815" gradientTransform="matrix(1 0 0 .93702 6.5e-7 .92263)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fff" offset="0"/>+ <stop stop-color="#fff" stop-opacity="0" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient1911" x1="25.085" x2="25.085" y1="24.031" y2="26.412" gradientTransform="translate(-17.897,-21.369)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#0271ca" offset="0"/>+ <stop stop-color="#0768ba" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient9169" x1="7.4082" x2="7.4082" y1="4.2333" y2="5.5561" gradientUnits="userSpaceOnUse">+ <stop stop-color="#fff" offset="0"/>+ <stop stop-color="#e3e4e5" offset="1"/>+ </linearGradient>+ <linearGradient id="linearGradient23227" x1=".52916" x2="16.404" y1="14.196" y2="14.196" gradientTransform="translate(-18.282 -.015458)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#0a5ba8" stop-opacity=".99608" offset="0"/>+ <stop stop-color="#104a8c" stop-opacity=".99608" offset="1"/>+ </linearGradient>+ </defs>+ <metadata>+ <rdf:RDF>+ <cc:Work rdf:about="">+ <dc:format>image/svg+xml</dc:format>+ <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>+ </cc:Work>+ </rdf:RDF>+ </metadata>+ <path d="m1.1977 2.2644c-0.3653 0-0.66145 0.32575-0.66145 0.72759v2.9636c-0.0026 0.02629-0.0072 0.052-0.0072 0.07906v7.9373c0 0.40184 0.29614 0.72759 0.66144 0.72759h14.552c0.36531 0 0.66144-0.32575 0.66144-0.72759v-9.393c0-0.40184-0.29614-0.72759-0.66144-0.72759v5.16e-4h-8.1993l-0.89864-1.1095s-0.36607-0.478-1.0583-0.478h-1.3229z" color="#000000" color-rendering="auto" dominant-baseline="auto" fill="url(#linearGradient1911)" image-rendering="auto" shape-rendering="auto" solid-color="#000000" stop-color="#000000" style="font-feature-settings:normal;font-variant-alternates:normal;font-variant-caps:normal;font-variant-east-asian:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-position:normal;font-variation-settings:normal;inline-size:0;isolation:auto;mix-blend-mode:normal;shape-margin:0;shape-padding:0;text-decoration-color:#000000;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-orientation:mixed;text-transform:none;white-space:normal"/>+ <g fill="#5e4aa6" stroke-width=".26458">+ <circle cx="-330.35" cy="-328.38" r="0"/>+ <circle cx="-312.11" cy="-326.25" r="0"/>+ <circle cx="-306.02" cy="-333.07" r="0"/>+ <circle cx="-308.84" cy="-326.01" r="0"/>+ <circle cx="-328.8" cy="-330.45" r="0"/>+ <g transform="translate(24.108 -4.592)">+ <circle cx="-330.35" cy="-328.38" r="0"/>+ <circle cx="-312.11" cy="-326.25" r="0"/>+ <circle cx="-306.02" cy="-333.07" r="0"/>+ <circle cx="-308.84" cy="-326.01" r="0"/>+ <circle cx="-328.8" cy="-330.45" r="0"/>+ </g>+ <g transform="translate(2.3479 -14.944)">+ <circle cx="-330.35" cy="-328.38" r="0"/>+ <circle cx="-312.11" cy="-326.25" r="0"/>+ <circle cx="-306.02" cy="-333.07" r="0"/>+ <circle cx="-308.84" cy="-326.01" r="0"/>+ <circle cx="-328.8" cy="-330.45" r="0"/>+ </g>+ <g transform="translate(.000295 -.00036978)">+ <circle cx="-330.35" cy="-328.38" r="0"/>+ <circle cx="-312.11" cy="-326.25" r="0"/>+ <circle cx="-306.02" cy="-333.07" r="0"/>+ <circle cx="-308.84" cy="-326.01" r="0"/>+ <circle cx="-328.8" cy="-330.45" r="0"/>+ </g>+ </g>+ <path d="m0.52916 13.691v0.28215c0 0.20092 0.07357 0.3825 0.19327 0.51417s0.28553 0.21342 0.46818 0.21342h14.552c0.18265 0 0.34796-0.08175 0.46766-0.21342s0.19378-0.31325 0.19378-0.51417v-0.28215c0 0.20092-0.07409 0.3825-0.19378 0.51417-0.1197 0.13167-0.28501 0.21342-0.46766 0.21342h-14.552c-0.18265 0-0.34848-0.08176-0.46818-0.21342s-0.19327-0.31325-0.19327-0.51417z" fill="url(#linearGradient23227)" stroke-width=".26458"/>+ <rect x=".79373" y="4.2333" width="15.346" height="8.9957" ry=".79373" fill="url(#linearGradient9169)" stroke-linecap="round" stroke-linejoin="round" stroke-width=".1077"/>+ <path d="m7.542 4.7624s-0.35919 0.44853-1.1575 0.74229c-0.03271 0.0055-0.06509 0.010846-0.10077 0.015978h-5.4967c-0.21986 0-0.41824 0.082975-0.56171 0.21741-0.13937 0.13058-0.22042 0.31234-0.2253 0.51133v0.48421c0 0.02369-0.0021296 0.045593 0 0.073482l0.52916 6.9301c0.014339 0.18779 0.07357 0.35841 0.19327 0.48179s0.28553 0.19998 0.46818 0.19998h14.552c0.18265 0 0.34796-0.0766 0.46766-0.19998s0.18179-0.29386 0.19378-0.48179l0.52916-8.2935c0.011991-0.18793-0.07408-0.35889-0.19378-0.48227-0.11945-0.1231-0.28449-0.19866-0.46665-0.19901h-8.0112z" fill="url(#linearGradient1951)"/>+ <path d="m7.542 4.7624s-0.35919 0.44853-1.1575 0.74229c-0.03271 0.0055-0.06509 0.010846-0.10077 0.015978h-5.49c-0.21986 0-0.41824 0.082975-0.56171 0.21741-0.13937 0.13058-0.22041 0.31234-0.2253 0.51132l-0.0067094 0.36074c0.0049-0.19899 0.092639-0.38123 0.23201-0.51181 0.14347-0.13443 0.34185-0.21741 0.56171-0.21741h5.49c0.03568-0.00513 0.06806-0.01048 0.10077-0.015978 0.75911-0.24646 1.2883-0.74229 1.2883-0.74229h8.5998c0.18216 3.471e-4 0.34718 0.075914 0.46663 0.19901 0.1197 0.12338 0.19378 0.29401 0.19378 0.48227v-0.36025c0-0.18827-0.07408-0.35889-0.19378-0.48227-0.11945-0.1231-0.28447-0.19866-0.46663-0.19901h-8.0112z" fill="url(#linearGradient11110)" opacity=".3"/>+</svg>diff --git a/web/index.html b/web/index.htmlindex 8bd1b96..74b1137 100644--- a/web/index.html+++ b/web/index.html@@ -1,45 +1,34 @@-<!--- * @Author: LinkLeong [email protected]- * @Date: 2022-08-18 11:14:30- * @LastEditors: LinkLeong- * @LastEditTime: 2022-08-18 11:17:26- * @FilePath: /CasaOS/web/index.html- * @Description:- * @Website: https://www.casaos.io- * Copyright (c) 2022 by icewhale, All Rights Reserved.--->-<!DOCTYPE html>-<html lang="">--<head>- <meta charset="utf-8">- <meta http-equiv="X-UA-Compatible" content="IE=edge">- <meta name="viewport" content="width=device-width,initial-scale=1">- <meta name="robots" content="noindex">- <script>- if (document.URL.indexOf("ui") === -1) {- window.location.replace("ui")- }- </script>- <link rel="apple-touch-icon" sizes="180x180" href="/ui/img/icon/apple-touch-icon.png">- <link rel="manifest" href="/ui/site.webmanifest">- <meta name="msapplication-TileColor" content="#da532c">- <meta name="theme-color" content="#ffffff">- <link rel="icon" href="/ui/favicon.svg" type="image/svg+xml">-- <title>- CasaOS- </title>-<link href="/ui/css/13.4aea6393.css" rel="prefetch"><link href="/ui/css/14.177dd094.css" rel="prefetch"><link href="/ui/css/4.5facaf2f.css" rel="prefetch"><link href="/ui/css/5.3f6e4ac6.css" rel="prefetch"><link href="/ui/css/6.0cf49524.css" rel="prefetch"><link href="/ui/css/7.515410b8.css" rel="prefetch"><link href="/ui/css/8.d30a96e7.css" rel="prefetch"><link href="/ui/css/9.3e385d0d.css" rel="prefetch"><link href="/ui/js/0.js" rel="prefetch"><link href="/ui/js/1.js" rel="prefetch"><link href="/ui/js/10.js" rel="prefetch"><link href="/ui/js/11.js" rel="prefetch"><link href="/ui/js/12.js" rel="prefetch"><link href="/ui/js/13.js" rel="prefetch"><link href="/ui/js/14.js" rel="prefetch"><link href="/ui/js/15.js" rel="prefetch"><link href="/ui/js/2.js" rel="prefetch"><link href="/ui/js/3.js" rel="prefetch"><link href="/ui/js/4.js" rel="prefetch"><link href="/ui/js/5.js" rel="prefetch"><link href="/ui/js/6.js" rel="prefetch"><link href="/ui/js/7.js" rel="prefetch"><link href="/ui/js/8.js" rel="prefetch"><link href="/ui/js/9.js" rel="prefetch"><link href="/ui/css/app.66eff8da.css" rel="preload" as="style"><link href="/ui/css/vendors~app.3967bc71.css" rel="preload" as="style"><link href="/ui/js/app.js" rel="preload" as="script"><link href="/ui/js/vendors~app.js" rel="preload" as="script"><link href="/ui/css/vendors~app.3967bc71.css" rel="stylesheet"><link href="/ui/css/app.66eff8da.css" rel="stylesheet"></head>--<body>- <noscript>- <strong>We're sorry but CasaOS doesn't work properly without JavaScript enabled.- Please enable it to continue.</strong>- </noscript>- <div id="app"></div>- <!-- built files will be auto injected -->-<script type="text/javascript" src="/ui/js/vendors~app.js"></script><script type="text/javascript" src="/ui/js/app.js"></script></body>--</html>-+<!DOCTYPE html>+<html lang="">++<head>+ <meta charset="utf-8">+ <meta http-equiv="X-UA-Compatible" content="IE=edge">+ <meta name="viewport" content="width=device-width,initial-scale=1">+ <meta name="robots" content="noindex">+ <script>+ if (document.URL.indexOf("ui") === -1) {+ window.location.replace("ui")+ }+ </script>+ <link rel="apple-touch-icon" sizes="180x180" href="/ui/img/icon/apple-touch-icon.png">+ <link rel="manifest" href="/ui/site.webmanifest">+ <meta name="msapplication-TileColor" content="#da532c">+ <meta name="theme-color" content="#ffffff">+ <link rel="icon" href="/ui/favicon.svg" type="image/svg+xml">++ <title>+ CasaOS+ </title>+<link href="/ui/css/13.3244968c.css" rel="prefetch"><link href="/ui/css/14.edf73182.css" rel="prefetch"><link href="/ui/css/4.0b84e87b.css" rel="prefetch"><link href="/ui/css/5.b9bdfac7.css" rel="prefetch"><link href="/ui/css/6.c3a0b3d4.css" rel="prefetch"><link href="/ui/css/7.fdbd0ee0.css" rel="prefetch"><link href="/ui/css/8.d53635ba.css" rel="prefetch"><link href="/ui/css/9.b2f820da.css" rel="prefetch"><link href="/ui/js/0.js" rel="prefetch"><link href="/ui/js/1.js" rel="prefetch"><link href="/ui/js/10.js" rel="prefetch"><link href="/ui/js/11.js" rel="prefetch"><link href="/ui/js/12.js" rel="prefetch"><link href="/ui/js/13.js" rel="prefetch"><link href="/ui/js/14.js" rel="prefetch"><link href="/ui/js/15.js" rel="prefetch"><link href="/ui/js/2.js" rel="prefetch"><link href="/ui/js/3.js" rel="prefetch"><link href="/ui/js/4.js" rel="prefetch"><link href="/ui/js/5.js" rel="prefetch"><link href="/ui/js/6.js" rel="prefetch"><link href="/ui/js/7.js" rel="prefetch"><link href="/ui/js/8.js" rel="prefetch"><link href="/ui/js/9.js" rel="prefetch"><link href="/ui/css/app.274cdf77.css" rel="preload" as="style"><link href="/ui/css/vendors~app.a44f2742.css" rel="preload" as="style"><link href="/ui/js/app.js" rel="preload" as="script"><link href="/ui/js/vendors~app.js" rel="preload" as="script"><link href="/ui/css/vendors~app.a44f2742.css" rel="stylesheet"><link href="/ui/css/app.274cdf77.css" rel="stylesheet"></head>++<body>+ <noscript>+ <strong>We're sorry but CasaOS doesn't work properly without JavaScript enabled.+ Please enable it to continue.</strong>+ </noscript>+ <div id="app"></div>+ <!-- built files will be auto injected -->+<script type="text/javascript" src="/ui/js/vendors~app.js"></script><script type="text/javascript" src="/ui/js/app.js"></script></body>++</html>diff --git a/web/js/4.js b/web/js/4.jsindex 06c0445..ad6f737 100644--- a/web/js/4.js+++ b/web/js/4.js@@ -6,11 +6,11 @@/*!**********************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppPanel.vue?vue&type=script&lang=js& ***!\**********************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../forms/InputGroup.vue */ "./src/components/forms/InputGroup.vue");\n/* harmony import */ var _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../forms/EnvInputGroup.vue */ "./src/components/forms/EnvInputGroup.vue");\n/* harmony import */ var _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../forms/CommandsInput.vue */ "./src/components/forms/CommandsInput.vue");\n/* harmony import */ var _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../forms/Ports.vue */ "./src/components/forms/Ports.vue");\n/* harmony import */ var _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AppSideBar.vue */ "./src/components/Apps/AppSideBar.vue");\n/* harmony import */ var _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../forms/ImportPanel.vue */ "./src/components/forms/ImportPanel.vue");\n/* harmony import */ var _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AppTerminalPanel.vue */ "./src/components/Apps/AppTerminalPanel.vue");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! vue-slider-component */ "./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! vue-slider-component/theme/default.css */ "./node_modules/vue-slider-component/theme/default.css");\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_31__);\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lodash/isNull */ "./node_modules/lodash/isNull.js");\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(lodash_isNull__WEBPACK_IMPORTED_MODULE_32__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__);\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__);\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js");\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_35__);\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js");\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_36__);\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! vue-awesome-swiper */ "./node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js");\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _data = ["AUDIT_CONTROL", "AUDIT_READ", "BLOCK_SUSPEND", "BPF", "CHECKPOINT_RESTORE", "DAC_READ_SEARCH", "IPC_LOCK", "IPC_OWNER", "LEASE", "LINUX_IMMUTABLE", "MAC_ADMIN", "MAC_OVERRIDE", "NET_ADMIN", "NET_BROADCAST", "PERFMON", "SYS_ADMIN", "SYS_BOOT", "SYS_MODULE", "SYS_NICE", "SYS_PACCT", "SYS_PTRACE", "SYS_RAWIO", "SYS_RESOURCE", "SYS_TIME", "SYS_TTY_CONFIG", "SYSLOG", "WAKE_ALARM"];\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n Ports: _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n InputGroup: _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n EnvInputGroup: _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n CommandsInput: _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationProvider"],\n AppSideBar: _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n VueSlider: vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default.a,\n Swiper: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["Swiper"],\n SwiperSlide: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["SwiperSlide"]\n },\n props: {\n id: String,\n state: String,\n storeId: {\n type: Number,\n default: 0\n },\n isCasa: {\n type: Boolean,\n default: true\n },\n runningStatus: String,\n configData: Object,\n settingData: {\n type: Object\n }\n },\n data: function data() {\n return {\n timer: 0,\n data: [],\n isLoading: true,\n isFetching: false,\n isLoadError: false,\n loadErrorStep: 0,\n isFirst: true,\n errorType: 1,\n currentInstallAppName: null,\n currentInstallAppError: false,\n currentInstallAppType: null,\n currentInstallAppText: "",\n appIcon: "",\n sidebarOpen: false,\n cancelButtonText: "Cancel",\n baseUrl: "",\n totalMemory: 0,\n networks: [],\n tempNetworks: [],\n networkModes: [],\n initData: {\n host: "",\n protocol: "http",\n port_map: null,\n cpu_shares: 10,\n memory: 300,\n restart: "always",\n label: "",\n position: true,\n index: "",\n icon: "",\n network_model: "",\n image: "",\n description: "",\n origin: "custom",\n ports: [],\n volumes: [],\n envs: [],\n devices: [],\n cap_add: [],\n cmd: [],\n privileged: false,\n host_name: "",\n container_name: ""\n },\n portSelected: null,\n capArray: _data,\n pageIndex: 1,\n pageSize: 5,\n listTotal: 0,\n pageList: {},\n communityList: {},\n recommendList: {},\n currentSlide: 0,\n currentInstallId: 0,\n //Image List Swiper\n disPrev: true,\n disNext: false,\n swiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleInfoSlide\n }\n },\n // Featured Swiper\n disFeaturedPrev: true,\n disFeaturedNext: false,\n featureSwiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleFeaturedSlide\n }\n },\n searchKey: "",\n currentCate: {},\n currentSort: {},\n cateMenu: [],\n sortMenu: [{\n icon: "",\n slash: "rank",\n name: "Popular"\n }, {\n icon: "",\n slash: "new",\n name: "New"\n }, {\n icon: "",\n slash: "name",\n name: "Name"\n }],\n storeQueryData: {\n index: 1,\n category_id: "",\n type: "rank",\n key: this.searchKey\n },\n // App Detail info\n appDetailData: {}\n };\n },\n created: function created() {\n var _this = this;\n\n // Set Front-end base url\n this.baseUrl = "".concat(document.domain); // this.initData.host = `${document.domain}:`\n //Get Max memory info form device\n\n this.totalMemory = Math.floor(this.configData.memory.total / 1048576);\n this.initData.memory = this.totalMemory; //Handling network types\n\n this.tempNetworks = this.configData.networks;\n this.networkModes = lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default()(this.tempNetworks.map(function (item) {\n return item.driver;\n }));\n this.networks = this.networkModes.map(function (item) {\n var tempitem = {};\n tempitem.driver = item;\n tempitem.networks = _this.tempNetworks.filter(function (net) {\n return net.driver == item;\n });\n return tempitem;\n });\n this.networks = lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default()(this.networks, [\'driver\'], [\'asc\']); //If it is edit, Init data\n\n if (this.settingData != undefined) {\n this.isLoading = false;\n this.initData = this.preProcessData(this.settingData);\n this.currentSlide = 1;\n } else {\n var gg = lodash_find__WEBPACK_IMPORTED_MODULE_30___default()(this.tempNetworks, function (o) {\n return o.driver == "bridge";\n });\n this.initData.network_model = gg.length > 0 ? gg[0].name : "bridge";\n this.getCategoryList();\n } // If StoreId is not 0\n\n\n if (this.storeId != 0) {\n this.showAppDetial(this.storeId);\n }\n },\n computed: {\n showPorts: function showPorts() {\n if (this.initData.network_model.toLowerCase().indexOf("macvlan") > -1 || this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n showHostPort: function showHostPort() {\n if (this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n bridgePorts: function bridgePorts() {\n return this.initData.ports.filter(function (item) {\n return item.host != "";\n });\n },\n filteredBeidgePort: function filteredBeidgePort() {\n var _this2 = this;\n\n return this.bridgePorts.filter(function (port) {\n return port.host.indexOf(_this2.initData.port_map) >= 0;\n });\n },\n showImportButton: function showImportButton() {\n return this.currentSlide == 1 && this.state == \'install\';\n },\n showExportButton: function showExportButton() {\n return this.currentSlide == 1 && this.state == \'update\';\n },\n showTerminalButton: function showTerminalButton() {\n return this.currentSlide == 1 && this.state == \'update\' && this.runningStatus == \'running\';\n },\n panelTitle: function panelTitle() {\n if (this.currentSlide == 0) {\n return this.$t("App Store");\n } else if (this.currentSlide == 1) {\n if (!this.isCasa) {\n return this.$t("Import") + " " + this.initData.label;\n } else {\n return this.settingData != undefined ? this.initData.label + " " + this.$t("Setting") : this.$t("Install a new App manually");\n }\n } else {\n return this.$t("Installing") + " " + this.initData.image;\n }\n },\n showDetailSwiper: function showDetailSwiper() {\n return !this.appDetailData.screenshot_link ? false : true;\n },\n currentInstallAppTextClass: function currentInstallAppTextClass() {\n return this.currentInstallAppError ? \'has-text-danger\' : \'has-text-black\';\n }\n },\n watch: {\n // Watch if Icon url has changed\n \'initData.icon\': function initDataIcon(val) {\n this.updateIconUrl(val);\n },\n // Watch if Section index changes\n currentSlide: function currentSlide(val) {\n if (val == 1) {\n this.isLoading = false;\n }\n },\n // Watch if initData changes\n initData: {\n handler: function handler(val) {\n if (this.state == \'install\') {\n localStorage.setItem("app_data", JSON.stringify(val));\n }\n },\n deep: true\n },\n // Watch if the query data of app store changes\n storeQueryData: {\n handler: function handler() {\n this.getStoreList();\n },\n deep: true\n },\n // Watch if app cates changes\n currentCate: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.category_id = val.id;\n }\n },\n deep: true\n },\n // Watch if app sort changes\n currentSort: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.type = val.slash;\n }\n },\n deep: true\n }\n },\n methods: {\n /**\r\n * @description: \r\n * @param {*} function\r\n * @return {*}\r\n */\n updateIconUrl: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.appIcon = string;\n }, 300),\n updateLabel: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.initData.label = string;\n }, 50),\n\n /**\r\n * @description: \r\n * @param {*} text\r\n * @return {*}\r\n */\n getFilteredTags: function getFilteredTags(text) {\n this.capArray = _data.filter(function (option) {\n return option.toString().indexOf(text.toUpperCase()) >= 0;\n });\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleInfoSlide: function handleInfoSlide(swiper) {\n this.disPrev = swiper.activeIndex == 0 ? true : false;\n this.disNext = swiper.isEnd;\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleFeaturedSlide: function handleFeaturedSlide(swiper) {\n this.disFeaturedPrev = swiper.activeIndex == 0 ? true : false;\n this.disFeaturedNext = swiper.isEnd;\n },\n\n /**\r\n * @description: Get category list\r\n * @param {*} \r\n * @return {*} void\r\n */\n getCategoryList: function getCategoryList() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var res;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this3.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this3.$api.appCategories.getAppCategory();\n\n case 4:\n res = _context.sent;\n _this3.cateMenu = res.data.data.filter(function (item) {\n return item.count > 0;\n });\n _this3.currentCate = _this3.cateMenu[0];\n _this3.currentSort = _this3.sortMenu[0];\n\n if (_this3.isFirst) {\n _this3.isFirst = false;\n }\n\n _context.next = 16;\n break;\n\n case 11:\n _context.prev = 11;\n _context.t0 = _context["catch"](1);\n _this3.loadErrorStep = 1;\n _this3.isLoading = false;\n _this3.isLoadError = true;\n\n case 16:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 11]]);\n }))();\n },\n\n /**\r\n * @description: Get App store list\r\n * @param {*}\r\n * @return {*} void\r\n */\n getStoreList: function getStoreList() {\n var _this4 = this;\n\n this.isLoading = true;\n this.$api.apps.getAppList(this.storeQueryData).then(function (res) {\n _this4.isLoading = false;\n _this4.isLoadError = false;\n\n if (res.data.success == 200) {\n // this.listTotal = res.data.data.count\n _this4.pageList = res.data.data.list;\n _this4.communityList = res.data.data.community;\n _this4.recommendList = res.data.data.recommend;\n }\n }).catch(function () {\n _this4.loadErrorStep = 2;\n _this4.isLoading = false;\n _this4.isLoadError = true;\n });\n },\n\n /**\r\n * @description: Show the details of app\r\n * @param {id} String\r\n * @return {*} void\r\n */\n showAppDetial: function showAppDetial(id) {\n var _this5 = this;\n\n this.isLoading = true;\n this.$api.apps.getAppInfo(id).then(function (resp) {\n _this5.isLoading = false;\n _this5.sidebarOpen = true;\n _this5.appDetailData = resp.data.data;\n }).catch(function () {\n _this5.isLoading = false;\n\n _this5.$buefy.toast.open({\n message: _this5.$t("There was an error loading the data, please try again!"),\n type: \'is-danger\'\n });\n });\n },\n retry: function retry() {\n if (this.loadErrorStep === 1) {\n this.getCategoryList();\n } else if (this.loadErrorStep === 2) {\n this.getStoreList();\n }\n },\n\n /**\r\n * @description: Quick Install App from app store\r\n * @param {*}\r\n * @return {*} void\r\n */\n qucikInstall: function qucikInstall(id) {\n var _this6 = this;\n\n this.currentInstallId = id;\n this.$api.apps.getAppInfo(id).then(function (resp) {\n if (resp.data.success == 200) {\n var respData = resp.data.data;\n _this6.initData.protocol = respData.protocol;\n _this6.initData.host = respData.host;\n _this6.initData.port_map = respData.port_map;\n _this6.initData.cpu_shares = 50;\n _this6.initData.memory = respData.max_memory;\n _this6.initData.restart = "always";\n _this6.initData.label = respData.title;\n _this6.initData.position = true;\n _this6.initData.index = respData.index;\n _this6.initData.icon = respData.icon;\n _this6.initData.network_model = respData.network_model;\n _this6.initData.image = respData.image;\n _this6.initData.description = respData.description;\n _this6.initData.origin = respData.origin;\n _this6.initData.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.ports) ? [] : respData.ports;\n _this6.initData.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.volumes) ? [] : respData.volumes;\n _this6.initData.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.envs) ? [] : respData.envs;\n _this6.initData.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.devices) ? [] : respData.devices;\n _this6.initData.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cap_add) ? [] : respData.cap_add;\n _this6.initData.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cmd) ? [] : respData.cmd;\n _this6.initData.privileged = respData.privileged;\n _this6.initData.host_name = respData.host_name;\n _this6.currentInstallId = 0;\n\n if (respData.tip !== "null" && respData.tip !== "[]" && respData.tip !== "") {\n _this6.$buefy.dialog.confirm({\n title: _this6.$t(\'Attention\'),\n message: _this6.formatTips(respData.tip),\n type: \'is-dark\',\n onConfirm: function onConfirm() {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n });\n } else {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n }\n }).catch(function () {\n _this6.$buefy.toast.open({\n message: _this6.$t("There was an error loading the data, please try again!"),\n type: \'is-danger\'\n });\n });\n },\n\n /**\r\n * @description: Format AppStore tip datas\r\n * @param {data}\r\n * @return {html} Str \r\n */\n formatTips: function formatTips(data) {\n var html = "";\n\n if (!lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data) && data != "") {\n JSON.parse(data).forEach(function (item) {\n html += "<span class=\' is-size-14px un-break-word\'>" + item.content + "</span>";\n\n if (item.value != \'\') {\n html += "<span class=\'tag is-primary ml-1\'>" + item.value + "</span>";\n }\n\n html += "<br/>";\n });\n }\n\n return html;\n },\n\n /**\r\n * @description: Pre-processed data before setting\r\n * @param {ConfigObject} data\r\n * @return {ConfigObject} data\r\n */\n preProcessData: function preProcessData(data) {\n data.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.ports) ? [] : data.ports;\n data.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.volumes) ? [] : data.volumes;\n data.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.envs) ? [] : data.envs;\n data.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.devices) ? [] : data.devices;\n data.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cap_add) ? [] : data.cap_add;\n data.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cmd) ? [] : data.cmd;\n data.port_map = data.port_map === "" ? null : data.port_map;\n data.cpu_shares = data.cpu_shares === 0 || data.cpu_shares > 99 ? 90 : data.cpu_shares;\n data.memory = data.memory === 0 ? this.totalMemory : data.memory;\n data.restart = data.restart === "no" ? "unless-stopped" : data.restart;\n data.network_model = data.network_model === "default" ? "bridge" : data.network_model;\n data.icon = data.icon === "" ? this.getIconFromImage(data.image) : data.icon;\n return data;\n },\n\n /**\r\n * @description: Process the datas before submit\r\n * @param {*}\r\n * @return {*} void\r\n */\n processData: function processData() {\n this.initData.cpu_shares = Number(this.initData.cpu_shares);\n var model = this.initData.network_model.split("-");\n this.initData.network_model = model[0];\n },\n\n /**\r\n * @description: Back to prev Step\r\n * @param {*}\r\n * @return {*} void\r\n */\n prevStep: function prevStep() {\n this.currentSlide--;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context2.sent;\n return _context2.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Submit datas after valid\r\n * @param {*}\r\n * @return {*} void\r\n */\n installApp: function installApp() {\n var _this7 = this;\n\n this.checkStep(this.$refs.ob1).then(function (val) {\n if (val) {\n _this7.installAppData(_this7.id);\n }\n });\n },\n installAppData: function installAppData() {\n var _this8 = this;\n\n this.processData();\n this.isLoading = true; // console.log(this.initData);\n\n this.$api.container.install(this.initData).then(function (res) {\n _this8.isLoading = false;\n\n if (res.data.success == 200) {\n _this8.currentInstallAppName = res.data.data;\n _this8.currentSlide = 2;\n _this8.currentInstallAppText = "Start Installation...";\n _this8.cancelButtonText = \'Continue in background\';\n } else {\n _this8.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n }).catch(function (err) {\n _this8.isLoading = false;\n\n _this8.$buefy.toast.open({\n message: err.response.data.message,\n type: \'is-warning\'\n });\n });\n },\n\n /**\r\n * @description: Save edit update\r\n * @return {*} void\r\n */\n updateApp: function updateApp() {\n var _this9 = this;\n\n this.processData();\n this.isLoading = true;\n var updateData = this.uuid2var(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData));\n this.$api.container.update(this.id, updateData).then(function (res) {\n if (res.data.success == 200) {\n _this9.isLoading = false;\n\n _this9.$emit(\'updateState\');\n } else {\n _this9.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n\n _this9.$emit(\'close\');\n }).catch(function (err) {\n _this9.isLoading = false;\n\n _this9.$buefy.toast.open({\n message: err.response.data.message,\n type: \'is-warning\'\n });\n });\n },\n\n /**\r\n * @description: Show import panel\r\n * @return {*} void\r\n */\n showImportPanel: function showImportPanel() {\n var _this10 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'update\': function update(e) {\n //localStorage.removeItem("app_data")\n _this10.initData = _this10.preProcessData(e);\n\n if (_this10.initData.icon == "") {\n _this10.changeIcon(_this10.initData.image);\n }\n\n _this10.$buefy.dialog.alert({\n title: \'⚠️ \' + _this10.$t(\'Attention\'),\n message: \'<div class="nobrk"><h4 class="title is-5">\' + _this10.$t(\'AutoFill only helps you to complete most of the configuration.\') + \'</h4>\' + \'<p class="mb-3">\' + _this10.$t(\'Some configuration information such as:\') + \'</p>\' + \'<ul>\' + \'<li>1. \' + _this10.$t(\'the port and path of the Web UI\') + \'</li>\' + \'<li>2. \' + _this10.$t(\'the mount location of the volume or file\') + \'</li>\' + \'<li>3. \' + _this10.$t(\'the port mapping of the Host\') + \'</li>\' + \'<li>4. \' + _this10.$t(\'optional configuration items\') + \'</li>\' + \'</ul>\' + \'<p class="mt-3">\' + _this10.$t(\'These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>\') + \'</p>\' + \'<p class="mt-3">\' + _this10.$t(\'Feel free to suggest improvements to this feature in Discord Server!\') + \'</p></div>\',\n type: \'is-dark\'\n });\n }\n },\n props: {\n initData: this.initData,\n netWorks: this.networks,\n oriNetWorks: this.tempNetworks,\n deviceMemory: this.totalMemory\n }\n });\n },\n\n /**\r\n * @description: Get remote synchronization information\r\n * @param {*} function\r\n * @return {*} void\r\n */\n getAsyncData: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (name) {\n var _this11 = this;\n\n if (!name.length) {\n this.data = [];\n return;\n }\n\n this.isFetching = true;\n axios__WEBPACK_IMPORTED_MODULE_16___default.a.get("https://hub.docker.com/api/content/v1/products/search?source=community&q=".concat(name, "&page=1&page_size=4")).then(function (_ref) {\n var data = _ref.data;\n _this11.data = [];\n data.summaries.forEach(function (item) {\n return _this11.data.push(item.name);\n });\n }).catch(function (error) {\n _this11.data = [];\n throw error;\n }).finally(function () {\n _this11.isFetching = false;\n });\n }, 500),\n\n /**\r\n * @description: Export AppData to json file\r\n * @param {*} function\r\n * @return {*} void\r\n */\n exportJSON: function exportJSON() {\n var exportData = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData);\n exportData.network_model = this.getNetworkName(this.initData.network_model);\n exportData.version = "1.0";\n exportData = this.uuid2var(exportData);\n delete exportData.memory;\n var data = JSON.stringify(exportData);\n var blob = new Blob([data], {\n type: \'\'\n });\n file_saver__WEBPACK_IMPORTED_MODULE_36___default.a.saveAs(blob, "".concat(exportData.label, ".json"));\n },\n\n /**\r\n * @description: change uuid to var\r\n * @param {*} function\r\n * @return {data} Object\r\n */\n uuid2var: function uuid2var(data) {\n var _this12 = this;\n\n data.volumes.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n data.devices.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n return data;\n },\n\n /**\r\n * @description: Get Network name from network list\r\n * @param {*} \r\n * @return {*} String\r\n */\n getNetworkName: function getNetworkName(netId) {\n if (netId == "") {\n return "bridge";\n } else {\n var network = this.tempNetworks.filter(function (net) {\n return net.name == netId;\n });\n return network[0].name;\n }\n },\n\n /**\r\n * @description: Get App icon form image\r\n * @param {*} image\r\n * @return {*}\r\n */\n getIconFromImage: function getIconFromImage(image) {\n if (image == "") {\n return "";\n } else {\n var appIcon = image.split(":")[0].split("/").pop();\n return "https://icon.casaos.io/main/all/".concat(appIcon, ".png");\n }\n },\n\n /**\r\n * @description: Change App icon when image changed\r\n * @param {String} image\r\n * @return {*} void\r\n */\n changeIcon: function changeIcon(image) {\n this.initData.icon = this.getIconFromImage(image);\n },\n\n /**\r\n * @description: Show Terminal & Logs panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n appid: this.id,\n appName: this.initData.label\n }\n });\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n },\n sockets: {\n app_install: function app_install(res) {\n var _this13 = this;\n\n var resData = res.body.data;\n\n if (this.currentInstallAppName != resData.name) {\n return false;\n }\n\n if (!resData.finished) {\n this.currentInstallAppError = !resData.success;\n\n if (resData.success) {\n this.currentInstallAppType = resData.type;\n\n if (resData.message !== "") {\n var messageArray = resData.message.split(/[(\\r\\n)\\r\\n]+/);\n messageArray.forEach(function (item, index) {\n if (!item) {\n messageArray.splice(index, 1);\n }\n });\n var lastMessage = lodash_last__WEBPACK_IMPORTED_MODULE_35___default()(messageArray);\n var info = JSON.parse(lastMessage);\n var id = info.id != undefined ? info.id : "";\n var progress = "";\n\n if (info.progressDetail != undefined) {\n var progressDetail = info.progressDetail;\n\n if (!isNaN(progressDetail.current / progressDetail.total)) {\n progress = "[ ".concat(String(Math.floor(progressDetail.current / progressDetail.total * 100)), "% ]");\n }\n }\n\n var status = info.status;\n this.currentInstallAppText = status + ":" + id + " " + progress;\n }\n } else {\n this.currentInstallAppText = resData.message;\n }\n } else {\n localStorage.removeItem("app_data");\n setTimeout(function () {\n _this13.$emit(\'updateState\');\n\n _this13.$emit(\'close\');\n }, 500);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSection.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");\n/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../forms/InputGroup.vue */ "./src/components/forms/InputGroup.vue");\n/* harmony import */ var _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../forms/EnvInputGroup.vue */ "./src/components/forms/EnvInputGroup.vue");\n/* harmony import */ var _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../forms/CommandsInput.vue */ "./src/components/forms/CommandsInput.vue");\n/* harmony import */ var _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../forms/Ports.vue */ "./src/components/forms/Ports.vue");\n/* harmony import */ var _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AppSideBar.vue */ "./src/components/Apps/AppSideBar.vue");\n/* harmony import */ var _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../forms/ImportPanel.vue */ "./src/components/forms/ImportPanel.vue");\n/* harmony import */ var _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./AppTerminalPanel.vue */ "./src/components/Apps/AppTerminalPanel.vue");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! vue-slider-component */ "./node_modules/vue-slider-component/dist/vue-slider-component.umd.min.js");\n/* harmony import */ var vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component__WEBPACK_IMPORTED_MODULE_25__);\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! vue-slider-component/theme/default.css */ "./node_modules/vue-slider-component/theme/default.css");\n/* harmony import */ var vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(vue_slider_component_theme_default_css__WEBPACK_IMPORTED_MODULE_26__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! lodash/debounce */ "./node_modules/lodash/debounce.js");\n/* harmony import */ var lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__WEBPACK_IMPORTED_MODULE_29__);\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! lodash/find */ "./node_modules/lodash/find.js");\n/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_30___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_30__);\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! lodash/uniq */ "./node_modules/lodash/uniq.js");\n/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_31__);\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! lodash/isNull */ "./node_modules/lodash/isNull.js");\n/* harmony import */ var lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default = /*#__PURE__*/__webpack_require__.n(lodash_isNull__WEBPACK_IMPORTED_MODULE_32__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_33__);\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! lodash/cloneDeep */ "./node_modules/lodash/cloneDeep.js");\n/* harmony import */ var lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default = /*#__PURE__*/__webpack_require__.n(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34__);\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! lodash/last */ "./node_modules/lodash/last.js");\n/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_35___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_35__);\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! file-saver */ "./node_modules/file-saver/dist/FileSaver.min.js");\n/* harmony import */ var file_saver__WEBPACK_IMPORTED_MODULE_36___default = /*#__PURE__*/__webpack_require__.n(file_saver__WEBPACK_IMPORTED_MODULE_36__);\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! vue-awesome-swiper */ "./node_modules/vue-awesome-swiper/dist/vue-awesome-swiper.js");\n/* harmony import */ var vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37___default = /*#__PURE__*/__webpack_require__.n(vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar _data = ["AUDIT_CONTROL", "AUDIT_READ", "BLOCK_SUSPEND", "BPF", "CHECKPOINT_RESTORE", "DAC_READ_SEARCH", "IPC_LOCK", "IPC_OWNER", "LEASE", "LINUX_IMMUTABLE", "MAC_ADMIN", "MAC_OVERRIDE", "NET_ADMIN", "NET_BROADCAST", "PERFMON", "SYS_ADMIN", "SYS_BOOT", "SYS_MODULE", "SYS_NICE", "SYS_PACCT", "SYS_PTRACE", "SYS_RAWIO", "SYS_RESOURCE", "SYS_TIME", "SYS_TTY_CONFIG", "SYSLOG", "WAKE_ALARM"];\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n Ports: _forms_Ports_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n InputGroup: _forms_InputGroup_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n EnvInputGroup: _forms_EnvInputGroup_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n CommandsInput: _forms_CommandsInput_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_27__["ValidationProvider"],\n AppSideBar: _AppSideBar_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n VueSlider: vue_slider_component__WEBPACK_IMPORTED_MODULE_25___default.a,\n Swiper: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["Swiper"],\n SwiperSlide: vue_awesome_swiper__WEBPACK_IMPORTED_MODULE_37__["SwiperSlide"]\n },\n props: {\n id: String,\n state: String,\n storeId: {\n type: Number,\n default: 0\n },\n isCasa: {\n type: Boolean,\n default: true\n },\n runningStatus: String,\n configData: Object,\n settingData: {\n type: Object\n }\n },\n data: function data() {\n return {\n timer: 0,\n data: [],\n isLoading: true,\n isFetching: false,\n isLoadError: false,\n loadErrorStep: 0,\n isFirst: true,\n errorType: 1,\n currentInstallAppName: null,\n currentInstallAppError: false,\n currentInstallAppType: null,\n currentInstallAppText: "",\n appIcon: "",\n sidebarOpen: false,\n cancelButtonText: "Cancel",\n baseUrl: "",\n totalMemory: 0,\n networks: [],\n tempNetworks: [],\n networkModes: [],\n initData: {\n host: "",\n protocol: "http",\n port_map: null,\n cpu_shares: 10,\n memory: 300,\n restart: "always",\n label: "",\n position: true,\n index: "",\n icon: "",\n network_model: "",\n image: "",\n description: "",\n origin: "custom",\n ports: [],\n volumes: [],\n envs: [],\n devices: [],\n cap_add: [],\n cmd: [],\n privileged: false,\n host_name: "",\n container_name: ""\n },\n portSelected: null,\n capArray: _data,\n pageIndex: 1,\n pageSize: 5,\n listTotal: 0,\n pageList: {},\n communityList: {},\n recommendList: {},\n currentSlide: 0,\n currentInstallId: 0,\n //Image List Swiper\n disPrev: true,\n disNext: false,\n swiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleInfoSlide\n }\n },\n // Featured Swiper\n disFeaturedPrev: true,\n disFeaturedNext: false,\n featureSwiperOptions: {\n loop: false,\n autoplay: true,\n spaceBetween: 24,\n breakpoints: {\n 640: {\n slidesPerView: 1\n },\n 768: {\n slidesPerView: 2\n },\n 1366: {\n slidesPerView: 3\n }\n },\n on: {\n slideChangeTransitionStart: this.handleFeaturedSlide\n }\n },\n searchKey: "",\n currentCate: {},\n currentSort: {},\n cateMenu: [],\n sortMenu: [{\n icon: "",\n slash: "rank",\n name: "Popular"\n }, {\n icon: "",\n slash: "new",\n name: "New"\n }, {\n icon: "",\n slash: "name",\n name: "Name"\n }],\n storeQueryData: {\n index: 1,\n category_id: "",\n type: "rank",\n key: this.searchKey\n },\n // App Detail info\n appDetailData: {}\n };\n },\n created: function created() {\n var _this = this;\n\n // Set Front-end base url\n this.baseUrl = "".concat(document.domain); // this.initData.host = `${document.domain}:`\n //Get Max memory info form device\n\n this.totalMemory = Math.floor(this.configData.memory.total / 1048576);\n this.initData.memory = this.totalMemory; //Handling network types\n\n this.tempNetworks = this.configData.networks;\n this.networkModes = lodash_uniq__WEBPACK_IMPORTED_MODULE_31___default()(this.tempNetworks.map(function (item) {\n return item.driver;\n }));\n this.networks = this.networkModes.map(function (item) {\n var tempitem = {};\n tempitem.driver = item;\n tempitem.networks = _this.tempNetworks.filter(function (net) {\n return net.driver == item;\n });\n return tempitem;\n });\n this.networks = lodash_orderBy__WEBPACK_IMPORTED_MODULE_33___default()(this.networks, [\'driver\'], [\'asc\']); //If it is edit, Init data\n\n if (this.settingData != undefined) {\n this.isLoading = false;\n this.initData = this.preProcessData(this.settingData);\n this.currentSlide = 1;\n } else {\n var gg = lodash_find__WEBPACK_IMPORTED_MODULE_30___default()(this.tempNetworks, function (o) {\n return o.driver == "bridge";\n });\n this.initData.network_model = gg.length > 0 ? gg[0].name : "bridge";\n this.getCategoryList();\n } // If StoreId is not 0\n\n\n if (this.storeId != 0) {\n this.showAppDetial(this.storeId);\n }\n },\n computed: {\n showPorts: function showPorts() {\n if (this.initData.network_model.toLowerCase().indexOf("macvlan") > -1 || this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n showHostPort: function showHostPort() {\n if (this.initData.network_model.indexOf("host") > -1) {\n return false;\n } else {\n return true;\n }\n },\n bridgePorts: function bridgePorts() {\n return this.initData.ports.filter(function (item) {\n return item.host != "";\n });\n },\n filteredBeidgePort: function filteredBeidgePort() {\n var _this2 = this;\n\n return this.bridgePorts.filter(function (port) {\n return port.host.indexOf(_this2.initData.port_map) >= 0;\n });\n },\n showImportButton: function showImportButton() {\n return this.currentSlide == 1 && this.state == \'install\';\n },\n showExportButton: function showExportButton() {\n return this.currentSlide == 1 && this.state == \'update\';\n },\n showTerminalButton: function showTerminalButton() {\n return this.currentSlide == 1 && this.state == \'update\' && this.runningStatus == \'running\';\n },\n panelTitle: function panelTitle() {\n if (this.currentSlide == 0) {\n return this.$t("App Store");\n } else if (this.currentSlide == 1) {\n if (!this.isCasa) {\n return this.$t("Import") + " " + this.initData.label;\n } else {\n return this.settingData != undefined ? this.initData.label + " " + this.$t("Setting") : this.$t("Install a new App manually");\n }\n } else {\n return this.$t("Installing") + " " + this.initData.image;\n }\n },\n showDetailSwiper: function showDetailSwiper() {\n return !this.appDetailData.screenshot_link ? false : true;\n },\n currentInstallAppTextClass: function currentInstallAppTextClass() {\n return this.currentInstallAppError ? \'has-text-danger\' : \'has-text-black\';\n }\n },\n watch: {\n // Watch if Icon url has changed\n \'initData.icon\': function initDataIcon(val) {\n this.updateIconUrl(val);\n },\n // Watch if Section index changes\n currentSlide: function currentSlide(val) {\n if (val == 1) {\n this.isLoading = false;\n }\n },\n // Watch if initData changes\n initData: {\n handler: function handler(val) {\n if (this.state == \'install\') {\n localStorage.setItem("app_data", JSON.stringify(val));\n }\n },\n deep: true\n },\n // Watch if the query data of app store changes\n storeQueryData: {\n handler: function handler() {\n this.getStoreList();\n },\n deep: true\n },\n // Watch if app cates changes\n currentCate: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.category_id = val.id;\n }\n },\n deep: true\n },\n // Watch if app sort changes\n currentSort: {\n handler: function handler(val) {\n if (!this.isFirst) {\n this.storeQueryData.type = val.slash;\n }\n },\n deep: true\n }\n },\n methods: {\n /**\r\n * @description: \r\n * @param {*} function\r\n * @return {*}\r\n */\n updateIconUrl: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.appIcon = string;\n }, 300),\n updateLabel: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (string) {\n this.initData.label = string;\n }, 50),\n\n /**\r\n * @description: \r\n * @param {*} text\r\n * @return {*}\r\n */\n getFilteredTags: function getFilteredTags(text) {\n this.capArray = _data.filter(function (option) {\n return option.toString().indexOf(text.toUpperCase()) >= 0;\n });\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleInfoSlide: function handleInfoSlide(swiper) {\n this.disPrev = swiper.activeIndex == 0 ? true : false;\n this.disNext = swiper.isEnd;\n },\n\n /**\r\n * @description: \r\n * @param {*} swiper\r\n * @return {*}\r\n */\n handleFeaturedSlide: function handleFeaturedSlide(swiper) {\n this.disFeaturedPrev = swiper.activeIndex == 0 ? true : false;\n this.disFeaturedNext = swiper.isEnd;\n },\n\n /**\r\n * @description: Get category list\r\n * @param {*} \r\n * @return {*} void\r\n */\n getCategoryList: function getCategoryList() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var res;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this3.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this3.$api.appCategories.getAppCategory();\n\n case 4:\n res = _context.sent;\n _this3.cateMenu = res.data.data.filter(function (item) {\n return item.count > 0;\n });\n _this3.currentCate = _this3.cateMenu[0];\n _this3.currentSort = _this3.sortMenu[0];\n\n if (_this3.isFirst) {\n _this3.isFirst = false;\n }\n\n _context.next = 16;\n break;\n\n case 11:\n _context.prev = 11;\n _context.t0 = _context["catch"](1);\n _this3.loadErrorStep = 1;\n _this3.isLoading = false;\n _this3.isLoadError = true;\n\n case 16:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 11]]);\n }))();\n },\n\n /**\r\n * @description: Get App store list\r\n * @param {*}\r\n * @return {*} void\r\n */\n getStoreList: function getStoreList() {\n var _this4 = this;\n\n this.isLoading = true;\n this.$api.apps.getAppList(this.storeQueryData).then(function (res) {\n _this4.isLoading = false;\n _this4.isLoadError = false;\n\n if (res.data.success == 200) {\n // this.listTotal = res.data.data.count\n _this4.pageList = res.data.data.list;\n _this4.communityList = res.data.data.community;\n _this4.recommendList = res.data.data.recommend;\n }\n }).catch(function () {\n _this4.loadErrorStep = 2;\n _this4.isLoading = false;\n _this4.isLoadError = true;\n });\n },\n\n /**\r\n * @description: Show the details of app\r\n * @param {id} String\r\n * @return {*} void\r\n */\n showAppDetial: function showAppDetial(id) {\n var _this5 = this;\n\n this.isLoading = true;\n this.$api.apps.getAppInfo(id).then(function (resp) {\n _this5.isLoading = false;\n _this5.sidebarOpen = true;\n _this5.appDetailData = resp.data.data;\n }).catch(function () {\n _this5.isLoading = false;\n\n _this5.$buefy.toast.open({\n message: _this5.$t("There was an error loading the data, please try again!"),\n type: \'is-danger\'\n });\n });\n },\n retry: function retry() {\n if (this.loadErrorStep === 1) {\n this.getCategoryList();\n } else if (this.loadErrorStep === 2) {\n this.getStoreList();\n }\n },\n\n /**\r\n * @description: Quick Install App from app store\r\n * @param {*}\r\n * @return {*} void\r\n */\n qucikInstall: function qucikInstall(id) {\n var _this6 = this;\n\n this.currentInstallId = id;\n this.$api.apps.getAppInfo(id).then(function (resp) {\n if (resp.data.success == 200) {\n var respData = resp.data.data;\n _this6.initData.protocol = respData.protocol;\n _this6.initData.host = respData.host;\n _this6.initData.port_map = respData.port_map;\n _this6.initData.cpu_shares = 50;\n _this6.initData.memory = respData.max_memory;\n _this6.initData.restart = "always";\n _this6.initData.label = respData.title;\n _this6.initData.position = true;\n _this6.initData.index = respData.index;\n _this6.initData.icon = respData.icon;\n _this6.initData.network_model = respData.network_model;\n _this6.initData.image = respData.image;\n _this6.initData.description = respData.description;\n _this6.initData.origin = respData.origin;\n _this6.initData.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.ports) ? [] : respData.ports;\n _this6.initData.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.volumes) ? [] : respData.volumes;\n _this6.initData.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.envs) ? [] : respData.envs;\n _this6.initData.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.devices) ? [] : respData.devices;\n _this6.initData.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cap_add) ? [] : respData.cap_add;\n _this6.initData.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(respData.cmd) ? [] : respData.cmd;\n _this6.initData.privileged = respData.privileged;\n _this6.initData.host_name = respData.host_name;\n _this6.currentInstallId = 0;\n\n if (respData.tip !== "null" && respData.tip !== "[]" && respData.tip !== "") {\n _this6.$buefy.dialog.confirm({\n title: _this6.$t(\'Attention\'),\n message: _this6.formatTips(respData.tip),\n type: \'is-dark\',\n onConfirm: function onConfirm() {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n });\n } else {\n _this6.sidebarOpen = false;\n\n _this6.installAppData();\n }\n }\n }).catch(function () {\n _this6.$buefy.toast.open({\n message: _this6.$t("There was an error loading the data, please try again!"),\n type: \'is-danger\'\n });\n });\n },\n\n /**\r\n * @description: Format AppStore tip datas\r\n * @param {data}\r\n * @return {html} Str \r\n */\n formatTips: function formatTips(data) {\n var html = "";\n\n if (!lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data) && data != "") {\n JSON.parse(data).forEach(function (item) {\n html += "<span class=\' is-size-14px un-break-word\'>" + item.content + "</span>";\n\n if (item.value != \'\') {\n html += "<span class=\'tag is-primary ml-1\'>" + item.value + "</span>";\n }\n\n html += "<br/>";\n });\n }\n\n return html;\n },\n\n /**\r\n * @description: Pre-processed data before setting\r\n * @param {ConfigObject} data\r\n * @return {ConfigObject} data\r\n */\n preProcessData: function preProcessData(data) {\n data.ports = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.ports) ? [] : data.ports;\n data.volumes = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.volumes) ? [] : data.volumes;\n data.envs = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.envs) ? [] : data.envs;\n data.devices = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.devices) ? [] : data.devices;\n data.cap_add = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cap_add) ? [] : data.cap_add;\n data.cmd = lodash_isNull__WEBPACK_IMPORTED_MODULE_32___default()(data.cmd) ? [] : data.cmd;\n data.port_map = data.port_map === "" ? null : data.port_map;\n data.cpu_shares = data.cpu_shares === 0 || data.cpu_shares > 99 ? 90 : data.cpu_shares;\n data.memory = data.memory === 0 ? this.totalMemory : data.memory;\n data.restart = data.restart === "no" ? "unless-stopped" : data.restart;\n data.network_model = data.network_model === "default" ? "bridge" : data.network_model;\n data.icon = data.icon === "" ? this.getIconFromImage(data.image) : data.icon;\n return data;\n },\n\n /**\r\n * @description: Process the datas before submit\r\n * @param {*}\r\n * @return {*} void\r\n */\n processData: function processData() {\n this.initData.cpu_shares = Number(this.initData.cpu_shares);\n var model = this.initData.network_model.split("-");\n this.initData.network_model = model[0];\n },\n\n /**\r\n * @description: Back to prev Step\r\n * @param {*}\r\n * @return {*} void\r\n */\n prevStep: function prevStep() {\n this.currentSlide--;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var isValid;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context2.sent;\n return _context2.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Submit datas after valid\r\n * @param {*}\r\n * @return {*} void\r\n */\n installApp: function installApp() {\n var _this7 = this;\n\n this.checkStep(this.$refs.ob1).then(function (val) {\n if (val) {\n _this7.installAppData(_this7.id);\n }\n });\n },\n installAppData: function installAppData() {\n var _this8 = this;\n\n this.processData();\n this.isLoading = true; // console.log(this.initData);\n\n this.$api.container.install(this.initData).then(function (res) {\n _this8.isLoading = false;\n\n if (res.data.success == 200) {\n _this8.currentInstallAppName = res.data.data;\n _this8.currentSlide = 2;\n _this8.currentInstallAppText = "Start Installation...";\n _this8.cancelButtonText = \'Continue in background\';\n } else {\n _this8.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n }).catch(function (err) {\n _this8.isLoading = false;\n\n _this8.$buefy.toast.open({\n message: err.response.data.message,\n type: \'is-warning\'\n });\n });\n },\n\n /**\r\n * @description: Save edit update\r\n * @return {*} void\r\n */\n updateApp: function updateApp() {\n var _this9 = this;\n\n this.processData();\n this.isLoading = true;\n var updateData = this.uuid2var(lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData));\n this.$api.container.update(this.id, updateData).then(function (res) {\n if (res.data.success == 200) {\n _this9.isLoading = false;\n\n _this9.$emit(\'updateState\');\n } else {\n _this9.$buefy.toast.open({\n message: res.data.message,\n type: \'is-warning\'\n });\n }\n\n _this9.$emit(\'close\');\n }).catch(function (err) {\n _this9.isLoading = false;\n\n _this9.$buefy.toast.open({\n message: err.response.data.message,\n type: \'is-warning\'\n });\n });\n },\n\n /**\r\n * @description: Show import panel\r\n * @return {*} void\r\n */\n showImportPanel: function showImportPanel() {\n var _this10 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _forms_ImportPanel_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'update\': function update(e) {\n //localStorage.removeItem("app_data")\n _this10.initData = _this10.preProcessData(e);\n\n if (_this10.initData.icon == "") {\n _this10.changeIcon(_this10.initData.image);\n }\n\n _this10.$buefy.dialog.alert({\n title: \'⚠️ \' + _this10.$t(\'Attention\'),\n message: \'<div class="nobrk"><h4 class="title is-5">\' + _this10.$t(\'AutoFill only helps you to complete most of the configuration.\') + \'</h4>\' + \'<p class="mb-3">\' + _this10.$t(\'Some configuration information such as:\') + \'</p>\' + \'<ul>\' + \'<li>1. \' + _this10.$t(\'the port and path of the Web UI\') + \'</li>\' + \'<li>2. \' + _this10.$t(\'the mount location of the volume or file\') + \'</li>\' + \'<li>3. \' + _this10.$t(\'the port mapping of the Host\') + \'</li>\' + \'<li>4. \' + _this10.$t(\'optional configuration items\') + \'</li>\' + \'</ul>\' + \'<p class="mt-3">\' + _this10.$t(\'These include but are not limited to these cases and <b>still need to be confirmed or modified by you.</b>\') + \'</p>\' + \'<p class="mt-3">\' + _this10.$t(\'Feel free to suggest improvements to this feature in Discord Server!\') + \'</p></div>\',\n type: \'is-dark\'\n });\n }\n },\n props: {\n initData: this.initData,\n netWorks: this.networks,\n oriNetWorks: this.tempNetworks,\n deviceMemory: this.totalMemory\n }\n });\n },\n\n /**\r\n * @description: Get remote synchronization information\r\n * @param {*} function\r\n * @return {*} void\r\n */\n getAsyncData: lodash_debounce__WEBPACK_IMPORTED_MODULE_29___default()(function (name) {\n var _this11 = this;\n\n if (!name.length) {\n this.data = [];\n return;\n }\n\n this.isFetching = true;\n axios__WEBPACK_IMPORTED_MODULE_16___default.a.get("https://hub.docker.com/api/content/v1/products/search?source=community&q=".concat(name, "&page=1&page_size=4")).then(function (_ref) {\n var data = _ref.data;\n _this11.data = [];\n data.summaries.forEach(function (item) {\n return _this11.data.push(item.name);\n });\n }).catch(function (error) {\n _this11.data = [];\n throw error;\n }).finally(function () {\n _this11.isFetching = false;\n });\n }, 500),\n\n /**\r\n * @description: Export AppData to json file\r\n * @param {*} function\r\n * @return {*} void\r\n */\n exportJSON: function exportJSON() {\n var exportData = lodash_cloneDeep__WEBPACK_IMPORTED_MODULE_34___default()(this.initData);\n exportData.network_model = this.getNetworkName(this.initData.network_model);\n exportData.version = "1.0";\n exportData = this.uuid2var(exportData);\n delete exportData.memory;\n var data = JSON.stringify(exportData);\n var blob = new Blob([data], {\n type: \'\'\n });\n file_saver__WEBPACK_IMPORTED_MODULE_36___default.a.saveAs(blob, "".concat(exportData.label, ".json"));\n },\n\n /**\r\n * @description: change uuid to var\r\n * @param {*} function\r\n * @return {data} Object\r\n */\n uuid2var: function uuid2var(data) {\n var _this12 = this;\n\n data.volumes.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n data.devices.forEach(function (item) {\n item.host = item.host.replace(_this12.id, \'$AppID\');\n });\n return data;\n },\n\n /**\r\n * @description: Get Network name from network list\r\n * @param {*} \r\n * @return {*} String\r\n */\n getNetworkName: function getNetworkName(netId) {\n if (netId == "") {\n return "bridge";\n } else {\n var network = this.tempNetworks.filter(function (net) {\n return net.name == netId;\n });\n return network[0].name;\n }\n },\n\n /**\r\n * @description: Get App icon form image\r\n * @param {*} image\r\n * @return {*}\r\n */\n getIconFromImage: function getIconFromImage(image) {\n if (image == "") {\n return "";\n } else {\n var appIcon = image.split(":")[0].split("/").pop();\n return "https://icon.casaos.io/main/all/".concat(appIcon, ".png");\n }\n },\n\n /**\r\n * @description: Change App icon when image changed\r\n * @param {String} image\r\n * @return {*} void\r\n */\n changeIcon: function changeIcon(image) {\n this.initData.icon = this.getIconFromImage(image);\n },\n\n /**\r\n * @description: Show Terminal & Logs panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _AppTerminalPanel_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n appid: this.id,\n appName: this.initData.label\n }\n });\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n },\n sockets: {\n app_install: function app_install(res) {\n var _this13 = this;\n\n var resData = res.body.data;\n\n if (this.currentInstallAppName != resData.name) {\n return false;\n }\n\n if (!resData.finished) {\n this.currentInstallAppError = !resData.success;\n\n if (resData.success) {\n this.currentInstallAppType = resData.type;\n\n if (resData.message !== "") {\n var messageArray = resData.message.split(/[(\\r\\n)\\r\\n]+/);\n messageArray.forEach(function (item, index) {\n if (!item) {\n messageArray.splice(index, 1);\n }\n });\n var lastMessage = lodash_last__WEBPACK_IMPORTED_MODULE_35___default()(messageArray);\n var info = JSON.parse(lastMessage);\n var id = info.id != undefined ? info.id : "";\n var progress = "";\n\n if (info.progressDetail != undefined) {\n var progressDetail = info.progressDetail;\n\n if (!isNaN(progressDetail.current / progressDetail.total)) {\n progress = "[ ".concat(String(Math.floor(progressDetail.current / progressDetail.total * 100)), "% ]");\n }\n }\n\n var status = info.status;\n this.currentInstallAppText = status + ":" + id + " " + progress;\n }\n } else {\n this.currentInstallAppText = resData.message;\n }\n } else {\n localStorage.removeItem("app_data");\n setTimeout(function () {\n _this13.$emit(\'updateState\');\n\n _this13.$emit(\'close\');\n }, 500);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSection.vue?vue&type=script&lang=js&":/*!************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppSection.vue?vue&type=script&lang=js& ***!\************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ "./node_modules/core-js/modules/es.string.match.js");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.sort.js */ "./node_modules/core-js/modules/es.array.sort.js");\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AppCard.vue */ "./src/components/Apps/AppCard.vue");\n/* harmony import */ var _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AppPanel.vue */ "./src/components/Apps/AppPanel.vue");\n/* harmony import */ var _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AppSectionTitleTip.vue */ "./src/components/Apps/AppSectionTitleTip.vue");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/xor */ "./node_modules/lodash/xor.js");\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_xor__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvar SYNCTHING_STORE_ID = 74;\nvar builtInApplications = [{\n id: "1",\n name: "App Store",\n icon: __webpack_require__(/*! @/assets/img/app/appstore.svg */ "./src/assets/img/app/appstore.svg"),\n state: "0",\n custom_id: "1",\n type: "system"\n}, {\n id: "2",\n name: "Files",\n icon: __webpack_require__(/*! @/assets/img/app/files.svg */ "./src/assets/img/app/files.svg"),\n state: "0",\n custom_id: "2",\n type: "system"\n}];\nvar orderConfig = "app_order";\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n user_id: localStorage.getItem("user_id"),\n appList: [],\n notImportedList: [],\n appConfig: {},\n drag: false,\n isLoading: true,\n isShowing: false,\n importHelpText: "Click icon to import.",\n appHelpText: \'Drag icons to sort.\',\n draggable: ".handle"\n };\n },\n components: {\n AppCard: _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n draggable: vuedraggable__WEBPACK_IMPORTED_MODULE_9___default.a,\n AppSectionTitleTip: _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__["default"]\n },\n provide: function provide() {\n return {\n openAppStore: this.showInstall\n };\n },\n computed: {\n dragOptions: function dragOptions() {\n return {\n animation: 300,\n group: "description",\n disabled: false,\n ghostClass: "ghost"\n };\n },\n showDragTip: function showDragTip() {\n return this.draggable == ".handle";\n }\n },\n created: function created() {\n var _this = this;\n\n this.getList();\n this.draggable = this.isMobile() ? "" : ".handle";\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING, function () {\n _this.showInstall(SYNCTHING_STORE_ID);\n });\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].RELOAD_APP_LIST, function () {\n _this.getList();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.$EventBus.$off(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING);\n },\n methods: {\n isMobile: function isMobile() {\n var flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);\n return flag;\n },\n\n /**\r\n * @description: Fetch the list of installed apps\r\n * @return {*} void\r\n */\n getList: function getList() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, orgAppList, casaAppList, sortRes, sortList, newList;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this2.$api.container.getMyAppList();\n\n case 4:\n listRes = _context.sent;\n orgAppList = listRes.data.data.casaos_apps;\n casaAppList = lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(builtInApplications, orgAppList);\n casaAppList.reverse();\n _context.next = 10;\n return _this2.$api.users.getCustomStorage(orderConfig);\n\n case 10:\n sortRes = _context.sent;\n sortList = sortRes.data.data.data;\n newList = casaAppList.map(function (item) {\n return item.custom_id;\n });\n\n if (sortList != "") {\n // Resort list\n sortList = _this2.getNewSortList(sortList, newList);\n casaAppList.sort(function (a, b) {\n return sortList.indexOf(a.custom_id) - sortList.indexOf(b.custom_id);\n });\n }\n\n _this2.appList = casaAppList;\n\n if (lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(sortList, newList).length > 0) {\n _this2.saveSortData();\n }\n\n _this2.notImportedList = listRes.data.data.local_apps;\n _this2.isLoading = false;\n _context.next = 23;\n break;\n\n case 20:\n _context.prev = 20;\n _context.t0 = _context["catch"](1);\n _this2.isLoading = false;\n\n case 23:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 20]]);\n }))();\n },\n\n /**\r\n * @description: \r\n * @param {Array} oriList\r\n * @param {Array} newList\r\n * @return {*}\r\n */\n getNewSortList: function getNewSortList(oriList, newList) {\n var xorList = lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(oriList, newList);\n xorList.reverse();\n return lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(oriList, xorList);\n },\n\n /**\r\n * @description: Save Sort Table\r\n * @param {*}\r\n * @return {*}\r\n */\n saveSortData: function saveSortData() {\n var newList = this.appList.map(function (item) {\n return item.custom_id;\n });\n var data = {\n data: newList\n };\n this.$api.users.setCustomStorage(orderConfig, data);\n },\n\n /**\r\n * @description: Handle on Sort End\r\n * @param {*}\r\n * @return {*}\r\n */\n onSortEnd: function onSortEnd() {\n this.drag = false;\n this.saveSortData();\n },\n\n /**\r\n * @description: Show Install Panel Programmatic\r\n * @return {*} void\r\n */\n showInstall: function showInstall() {\n var _arguments = arguments,\n _this3 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var storeId, networks, memory, configData;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n storeId = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : 0;\n _this3.isShowing = true;\n _context2.next = 4;\n return _this3.$api.container.getNetworks();\n\n case 4:\n networks = _context2.sent;\n memory = _this3.$store.state.hardwareInfo.mem;\n configData = {\n networks: networks.data.data,\n memory: memory\n };\n _this3.isShowing = false;\n\n _this3.$buefy.modal.open({\n parent: _this3,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'app-panel\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this3.getList();\n }\n },\n props: {\n id: "0",\n state: "install",\n configData: configData,\n storeId: storeId\n }\n });\n\n case 9:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Show Settings Panel Programmatic\r\n * @param {String} id\r\n * @param {String} status\r\n * @param {Boolean} isCasa \r\n * @return {*}\r\n */\n showConfigPanel: function showConfigPanel(id, status, isCasa) {\n var _this4 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee3() {\n var networks, memory, configData, ret;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return _this4.$api.container.getNetworks();\n\n case 2:\n networks = _context3.sent;\n memory = _this4.$store.state.hardwareInfo.mem;\n configData = {\n networks: networks.data.data,\n memory: memory\n };\n _context3.next = 7;\n return _this4.$api.container.getInfo(id);\n\n case 7:\n ret = _context3.sent;\n\n _this4.$buefy.modal.open({\n parent: _this4,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this4.getList();\n }\n },\n props: {\n id: id,\n state: "update",\n isCasa: isCasa,\n runningStatus: status,\n configData: configData,\n settingData: ret.data.data\n }\n });\n\n case 9:\n case "end":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.getList();\n }\n },\n app_uninstall: function app_uninstall() {\n this.getList();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppSection.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.match.js */ "./node_modules/core-js/modules/es.string.match.js");\n/* harmony import */ var core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_match_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.sort.js */ "./node_modules/core-js/modules/es.array.sort.js");\n/* harmony import */ var core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_sort_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./AppCard.vue */ "./src/components/Apps/AppCard.vue");\n/* harmony import */ var _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./AppPanel.vue */ "./src/components/Apps/AppPanel.vue");\n/* harmony import */ var _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./AppSectionTitleTip.vue */ "./src/components/Apps/AppSectionTitleTip.vue");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! vuedraggable */ "./node_modules/vuedraggable/dist/vuedraggable.umd.js");\n/* harmony import */ var vuedraggable__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(vuedraggable__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/xor */ "./node_modules/lodash/xor.js");\n/* harmony import */ var lodash_xor__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_xor__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvar SYNCTHING_STORE_ID = 74;\nvar builtInApplications = [{\n id: "1",\n name: "App Store",\n icon: __webpack_require__(/*! @/assets/img/app/appstore.svg */ "./src/assets/img/app/appstore.svg"),\n state: "0",\n custom_id: "1",\n type: "system"\n}, {\n id: "2",\n name: "Files",\n icon: __webpack_require__(/*! @/assets/img/app/files.svg */ "./src/assets/img/app/files.svg"),\n state: "0",\n custom_id: "2",\n type: "system"\n}];\nvar orderConfig = "app_order";\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n user_id: localStorage.getItem("user_id"),\n appList: [],\n notImportedList: [],\n appConfig: {},\n drag: false,\n isLoading: true,\n isShowing: false,\n importHelpText: "Click icon to import.",\n appHelpText: \'Drag icons to sort.\',\n draggable: ".handle"\n };\n },\n components: {\n AppCard: _AppCard_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n draggable: vuedraggable__WEBPACK_IMPORTED_MODULE_9___default.a,\n AppSectionTitleTip: _AppSectionTitleTip_vue__WEBPACK_IMPORTED_MODULE_8__["default"]\n },\n provide: function provide() {\n return {\n openAppStore: this.showInstall\n };\n },\n computed: {\n dragOptions: function dragOptions() {\n return {\n animation: 300,\n group: "description",\n disabled: false,\n ghostClass: "ghost"\n };\n },\n showDragTip: function showDragTip() {\n return this.draggable == ".handle";\n }\n },\n created: function created() {\n var _this = this;\n\n this.getList();\n this.draggable = this.isMobile() ? "" : ".handle";\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING, function () {\n _this.showInstall(SYNCTHING_STORE_ID);\n });\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].RELOAD_APP_LIST, function () {\n _this.getList();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.$EventBus.$off(_events_events__WEBPACK_IMPORTED_MODULE_12__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING);\n },\n methods: {\n isMobile: function isMobile() {\n var flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);\n return flag;\n },\n\n /**\r\n * @description: Fetch the list of installed apps\r\n * @return {*} void\r\n */\n getList: function getList() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, orgAppList, casaAppList, sortRes, sortList, newList;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this2.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this2.$api.container.getMyAppList();\n\n case 4:\n listRes = _context.sent;\n orgAppList = listRes.data.data.casaos_apps;\n casaAppList = lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(builtInApplications, orgAppList);\n casaAppList.reverse();\n _context.next = 10;\n return _this2.$api.users.getCustomStorage(orderConfig);\n\n case 10:\n sortRes = _context.sent;\n sortList = sortRes.data.data.data;\n newList = casaAppList.map(function (item) {\n return item.custom_id;\n });\n\n if (sortList != "") {\n // Resort list\n sortList = _this2.getNewSortList(sortList, newList);\n casaAppList.sort(function (a, b) {\n return sortList.indexOf(a.custom_id) - sortList.indexOf(b.custom_id);\n });\n }\n\n _this2.appList = casaAppList;\n\n if (lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(sortList, newList).length > 0) {\n _this2.saveSortData();\n }\n\n _this2.notImportedList = listRes.data.data.local_apps;\n _this2.isLoading = false;\n _context.next = 23;\n break;\n\n case 20:\n _context.prev = 20;\n _context.t0 = _context["catch"](1);\n _this2.isLoading = false;\n\n case 23:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 20]]);\n }))();\n },\n\n /**\r\n * @description: \r\n * @param {Array} oriList\r\n * @param {Array} newList\r\n * @return {*}\r\n */\n getNewSortList: function getNewSortList(oriList, newList) {\n var xorList = lodash_xor__WEBPACK_IMPORTED_MODULE_10___default()(oriList, newList);\n xorList.reverse();\n return lodash_concat__WEBPACK_IMPORTED_MODULE_11___default()(oriList, xorList);\n },\n\n /**\r\n * @description: Save Sort Table\r\n * @param {*}\r\n * @return {*}\r\n */\n saveSortData: function saveSortData() {\n var newList = this.appList.map(function (item) {\n return item.custom_id;\n });\n var data = {\n data: newList\n };\n this.$api.users.setCustomStorage(orderConfig, data);\n },\n\n /**\r\n * @description: Handle on Sort End\r\n * @param {*}\r\n * @return {*}\r\n */\n onSortEnd: function onSortEnd() {\n this.drag = false;\n this.saveSortData();\n },\n\n /**\r\n * @description: Show Install Panel Programmatic\r\n * @return {*} void\r\n */\n showInstall: function showInstall() {\n var _arguments = arguments,\n _this3 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var storeId, networks, memory, configData;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n storeId = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : 0;\n _this3.isShowing = true;\n _context2.next = 4;\n return _this3.$api.container.getNetworks();\n\n case 4:\n networks = _context2.sent;\n memory = _this3.$store.state.hardwareInfo.mem;\n configData = {\n networks: networks.data.data,\n memory: memory\n };\n _this3.isShowing = false;\n\n _this3.$buefy.modal.open({\n parent: _this3,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'app-panel\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this3.getList();\n }\n },\n props: {\n id: "0",\n state: "install",\n configData: configData,\n storeId: storeId\n }\n });\n\n case 9:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Show Settings Panel Programmatic\r\n * @param {String} id\r\n * @param {String} status\r\n * @param {Boolean} isCasa \r\n * @return {*}\r\n */\n showConfigPanel: function showConfigPanel(id, status, isCasa) {\n var _this4 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee3() {\n var networks, memory, configData, ret;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _context3.next = 2;\n return _this4.$api.container.getNetworks();\n\n case 2:\n networks = _context3.sent;\n memory = _this4.$store.state.hardwareInfo.mem;\n configData = {\n networks: networks.data.data,\n memory: memory\n };\n _context3.next = 7;\n return _this4.$api.container.getInfo(id);\n\n case 7:\n ret = _context3.sent;\n\n _this4.$buefy.modal.open({\n parent: _this4,\n component: _AppPanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'updateState\': function updateState() {\n _this4.getList();\n }\n },\n props: {\n id: id,\n state: "update",\n isCasa: isCasa,\n runningStatus: status,\n configData: configData,\n settingData: ret.data.data\n }\n });\n\n case 9:\n case "end":\n return _context3.stop();\n }\n }\n }, _callee3);\n }))();\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.getList();\n }\n },\n app_uninstall: function app_uninstall() {\n this.getList();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Apps/AppSection.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js&":/*!********************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Apps/AppSectionTitleTip.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************************************/@@ -46,15 +46,15 @@/*!************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Storage/StorageManagerPanel.vue?vue&type=script&lang=js& ***!\************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.regexp.test.js */ "./node_modules/core-js/modules/es.regexp.test.js");\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/delay */ "./node_modules/lodash/delay.js");\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_delay__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js");\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_max__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _DriveItem_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DriveItem.vue */ "./src/components/Storage/DriveItem.vue");\n/* harmony import */ var _StorageItem_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./StorageItem.vue */ "./src/components/Storage/StorageItem.vue");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! vue-popperjs */ "./node_modules/vue-popperjs/dist/vue-popper.min.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(vue_popperjs__WEBPACK_IMPORTED_MODULE_20__);\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "storage-manager-panel",\n components: {\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_16__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_16__["ValidationProvider"],\n DriveItem: _DriveItem_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n StorageItem: _StorageItem_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n Popper: vue_popperjs__WEBPACK_IMPORTED_MODULE_20___default.a\n },\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_17__["mixin"]],\n data: function data() {\n return {\n isLoading: true,\n creatIsShow: false,\n isCreating: false,\n isValiding: false,\n activeTab: 0,\n activeDisk: "",\n createStorageName: "",\n createStoragePath: "",\n createStorageSeiral: "",\n createStorageType: "",\n diskData: [],\n unDiskData: [],\n storageData: []\n };\n },\n computed: {\n title: function title() {\n return this.creatIsShow ? this.$t(\'Create Storage\') : this.$t(\'Storage Manager\');\n }\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n }); //Get disk list\n\n var _this = this;\n\n lodash_delay__WEBPACK_IMPORTED_MODULE_14___default()(function () {\n _this.getDiskList();\n }, 150);\n },\n methods: {\n /**\r\n * @description: Get disk list\r\n * @param {} \r\n * @return {void} \r\n */\n getDiskList: function getDiskList() {\n var _arguments = arguments,\n _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var showDefault, diskRes, storageRes, storageArray, diskNumArray, nextMaxNum;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n showDefault = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;\n _context.prev = 1;\n _context.next = 4;\n return _this2.$api.disks.getDiskList();\n\n case 4:\n diskRes = _context.sent;\n _this2.diskData = diskRes.data.data.drive;\n _this2.unDiskData = diskRes.data.data.avail;\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](1);\n console.log(_context.t0.response.message);\n\n case 12:\n _context.prev = 12;\n _context.next = 15;\n return _this2.$api.storage.list({\n system: "show"\n });\n\n case 15:\n storageRes = _context.sent;\n storageArray = [];\n storageRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n part.disk = item.path;\n part.diskName = item.disk_name;\n storageArray.push(part);\n });\n });\n _this2.storageData = storageArray.map(function (storage) {\n return {\n name: storage.label,\n isSystem: storage.diskName == "System",\n fsType: storage.type,\n size: storage.size,\n availSize: storage.avail,\n usePercent: 100 - Math.floor(storage.avail * 100 / storage.size),\n diskName: storage.drive_name,\n path: storage.path,\n mount_point: storage.mount_point,\n disk: storage.disk\n };\n });\n diskNumArray = _this2.storageData.map(function (storage) {\n if (storage.name.includes("Storage")) {\n var diskNum = storage.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_15___default()(diskNumArray) + 1;\n\n if (_this2.unDiskData.length > 0) {\n _this2.createStoragePath = _this2.unDiskData[0].path;\n _this2.createStorageSeiral = _this2.unDiskData[0].serial;\n _this2.createStorageType = _this2.getDiskType(_this2.unDiskData[0].need_format);\n _this2.createStorageName = "Storage" + nextMaxNum;\n _this2.activeDisk = 0;\n }\n\n if (showDefault) {\n _this2.showDefault();\n\n _this2.isCreating = false;\n _this2.createStorageName = "";\n }\n\n _context.next = 28;\n break;\n\n case 25:\n _context.prev = 25;\n _context.t1 = _context["catch"](12);\n console.log(_context.t1.response.message);\n\n case 28:\n _this2.isLoading = false;\n\n case 29:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 9], [12, 25]]);\n }))();\n },\n\n /**\r\n * @description: Disk choose handle\r\n * @param {int} evt index of select \r\n * @return {void} \r\n */\n onDiskChoose: function onDiskChoose(index) {\n this.createStoragePath = this.unDiskData[index].path;\n this.createStorageSeiral = this.unDiskData[index].serial;\n this.createStorageType = this.getDiskType(this.unDiskData[index].need_format);\n },\n showDefault: function showDefault() {\n this.creatIsShow = false;\n },\n showCreate: function showCreate() {\n this.creatIsShow = true;\n var diskNumArray = this.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_15___default()(diskNumArray) + 1;\n this.createStorageName = "Storage" + nextMaxNum;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var isValid;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context2.sent;\n return _context2.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Create a new storage\r\n * @param {} \r\n * @return {void} \r\n */\n createStorge: function createStorge(needFormat) {\n var _this3 = this;\n\n this.isValiding = true;\n this.checkStep(this.$refs.ob1).then(function (val) {\n _this3.isValiding = false;\n\n if (val) {\n _this3.submitCreate(needFormat);\n }\n }).catch(function (err) {\n _this3.isValiding = false;\n\n _this3.$buefy.toast.open({\n duration: 3000,\n message: err.response.data.message,\n type: \'is-danger\'\n });\n });\n },\n submitCreate: function submitCreate(format) {\n var _this4 = this;\n\n this.isCreating = true;\n var data = {\n path: this.createStoragePath,\n name: this.createStorageName,\n format: format\n };\n this.$api.storage.create(data).then(function (res) {\n if (res.data.success != 200) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: res.data.message,\n type: \'is-danger\'\n });\n } else {\n _this4.getDiskList(true);\n }\n }).catch(function (err) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: err.response.data.message,\n type: \'is-danger\'\n });\n });\n },\n getDiskType: function getDiskType(need_format) {\n return need_format ? "format" : "mountable";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Storage/StorageManagerPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/TopBar.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.regexp.test.js */ "./node_modules/core-js/modules/es.regexp.test.js");\n/* harmony import */ var core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_test_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/delay */ "./node_modules/lodash/delay.js");\n/* harmony import */ var lodash_delay__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_delay__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/max */ "./node_modules/lodash/max.js");\n/* harmony import */ var lodash_max__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_max__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _DriveItem_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./DriveItem.vue */ "./src/components/Storage/DriveItem.vue");\n/* harmony import */ var _StorageItem_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./StorageItem.vue */ "./src/components/Storage/StorageItem.vue");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! vue-popperjs */ "./node_modules/vue-popperjs/dist/vue-popper.min.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(vue_popperjs__WEBPACK_IMPORTED_MODULE_20__);\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "storage-manager-panel",\n components: {\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_12__["default"],\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_16__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_16__["ValidationProvider"],\n DriveItem: _DriveItem_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n StorageItem: _StorageItem_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n Popper: vue_popperjs__WEBPACK_IMPORTED_MODULE_20___default.a\n },\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_13___default.a, _mixins_mixin__WEBPACK_IMPORTED_MODULE_17__["mixin"]],\n data: function data() {\n return {\n isLoading: true,\n creatIsShow: false,\n isCreating: false,\n isValiding: false,\n activeTab: 0,\n activeDisk: "",\n createStorageName: "",\n createStoragePath: "",\n createStorageSeiral: "",\n createStorageType: "",\n diskData: [],\n unDiskData: [],\n storageData: []\n };\n },\n computed: {\n title: function title() {\n return this.creatIsShow ? this.$t(\'Create Storage\') : this.$t(\'Storage Manager\');\n }\n },\n mounted: function mounted() {\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n }); //Get disk list\n\n var _this = this;\n\n lodash_delay__WEBPACK_IMPORTED_MODULE_14___default()(function () {\n _this.getDiskList();\n }, 150);\n },\n methods: {\n /**\r\n * @description: Get disk list\r\n * @param {} \r\n * @return {void} \r\n */\n getDiskList: function getDiskList() {\n var _arguments = arguments,\n _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var showDefault, diskRes, storageRes, storageArray, diskNumArray, nextMaxNum;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n showDefault = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : false;\n _context.prev = 1;\n _context.next = 4;\n return _this2.$api.disks.getDiskList();\n\n case 4:\n diskRes = _context.sent;\n _this2.diskData = diskRes.data.data.drive;\n _this2.unDiskData = diskRes.data.data.avail;\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](1);\n console.log(_context.t0.response.message);\n\n case 12:\n _context.prev = 12;\n _context.next = 15;\n return _this2.$api.storage.list({\n system: "show"\n });\n\n case 15:\n storageRes = _context.sent;\n storageArray = [];\n storageRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n part.disk = item.path;\n part.diskName = item.disk_name;\n storageArray.push(part);\n });\n });\n _this2.storageData = storageArray.map(function (storage) {\n return {\n name: storage.label,\n isSystem: storage.diskName == "System",\n fsType: storage.type,\n size: storage.size,\n availSize: storage.avail,\n usePercent: 100 - Math.floor(storage.avail * 100 / storage.size),\n diskName: storage.drive_name,\n path: storage.path,\n mount_point: storage.mount_point,\n disk: storage.disk\n };\n });\n diskNumArray = _this2.storageData.map(function (storage) {\n if (storage.name.includes("Storage")) {\n var diskNum = storage.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_15___default()(diskNumArray) + 1;\n\n if (_this2.unDiskData.length > 0) {\n _this2.createStoragePath = _this2.unDiskData[0].path;\n _this2.createStorageSeiral = _this2.unDiskData[0].serial;\n _this2.createStorageType = _this2.getDiskType(_this2.unDiskData[0].need_format);\n _this2.createStorageName = "Storage" + nextMaxNum;\n _this2.activeDisk = 0;\n }\n\n if (showDefault) {\n _this2.showDefault();\n\n _this2.isCreating = false;\n _this2.createStorageName = "";\n }\n\n _context.next = 28;\n break;\n\n case 25:\n _context.prev = 25;\n _context.t1 = _context["catch"](12);\n console.log(_context.t1.response.message);\n\n case 28:\n _this2.isLoading = false;\n\n case 29:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 9], [12, 25]]);\n }))();\n },\n\n /**\r\n * @description: Disk choose handle\r\n * @param {int} evt index of select \r\n * @return {void} \r\n */\n onDiskChoose: function onDiskChoose(index) {\n this.createStoragePath = this.unDiskData[index].path;\n this.createStorageSeiral = this.unDiskData[index].serial;\n this.createStorageType = this.getDiskType(this.unDiskData[index].need_format);\n },\n showDefault: function showDefault() {\n this.creatIsShow = false;\n },\n showCreate: function showCreate() {\n this.creatIsShow = true;\n var diskNumArray = this.storageData.map(function (disk) {\n if (disk.name.includes("Storage")) {\n var diskNum = disk.name.replace("Storage", "");\n return /^\\d+$/.test(diskNum) ? Number(diskNum) : 0;\n } else {\n return 0;\n }\n });\n var nextMaxNum = lodash_max__WEBPACK_IMPORTED_MODULE_15___default()(diskNumArray) + 1;\n this.createStorageName = "Storage" + nextMaxNum;\n },\n\n /**\r\n * @description: Validate form async\r\n * @param {Object} ref ref of component\r\n * @return {Boolean} \r\n */\n checkStep: function checkStep(ref) {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var isValid;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return ref.validate();\n\n case 2:\n isValid = _context2.sent;\n return _context2.abrupt("return", isValid);\n\n case 4:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n },\n\n /**\r\n * @description: Create a new storage\r\n * @param {} \r\n * @return {void} \r\n */\n createStorge: function createStorge(needFormat) {\n var _this3 = this;\n\n this.isValiding = true;\n this.checkStep(this.$refs.ob1).then(function (val) {\n _this3.isValiding = false;\n\n if (val) {\n _this3.submitCreate(needFormat);\n }\n }).catch(function (err) {\n _this3.isValiding = false;\n\n _this3.$buefy.toast.open({\n duration: 3000,\n message: err.response.data.message,\n type: \'is-danger\'\n });\n });\n },\n submitCreate: function submitCreate(format) {\n var _this4 = this;\n\n this.isCreating = true;\n var data = {\n path: this.createStoragePath,\n name: this.createStorageName,\n format: format\n };\n this.$api.storage.create(data).then(function (res) {\n if (res.data.success != 200) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: res.data.message,\n type: \'is-danger\'\n });\n } else {\n _this4.getDiskList(true);\n }\n }).catch(function (err) {\n _this4.isCreating = false;\n\n _this4.$buefy.toast.open({\n duration: 3000,\n message: err.response.data.message,\n type: \'is-danger\'\n });\n });\n },\n getDiskType: function getDiskType(need_format) {\n return need_format ? "format" : "mountable";\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/Storage/StorageManagerPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/TopBar.vue?vue&type=script&lang=js&":/*!***************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/TopBar.vue?vue&type=script&lang=js& ***!\***************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./account/AccountPanel.vue */ "./src/components/account/AccountPanel.vue");\n/* harmony import */ var _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./logsAndTerminal/TerminalPanel.vue */ "./src/components/logsAndTerminal/TerminalPanel.vue");\n/* harmony import */ var _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./settings/PortPanel.vue */ "./src/components/settings/PortPanel.vue");\n/* harmony import */ var _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./settings/UpdateModal.vue */ "./src/components/settings/UpdateModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\nvar systemConfigName = "system";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "top-bar",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_8__["mixin"]],\n data: function data() {\n return {\n timer: 0,\n // User\n userInfo: this.$store.state.user,\n // System\n barData: {\n lang: this.getInitLang(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: false,\n // Not used\n widgets_switch: false // Not used\n\n },\n updateInfo: {\n current_version: \'0\',\n need_update: false,\n version: Object\n },\n isUpdating: false,\n latestText: "Currently the latest version",\n updateText: "A new version is available!",\n port: "",\n autoUsbMount: false,\n deviceModel: "",\n // Language Sets\n languages: [{\n lang: "de_de",\n name: "Deutsch"\n }, {\n lang: "en_us",\n name: "English"\n }, {\n lang: "es_es",\n name: "Español"\n }, {\n lang: "fr_fr",\n name: "Français"\n }, {\n lang: "it_it",\n name: "Italiano"\n }, {\n lang: "ru_ru",\n name: "Русский"\n }, {\n lang: "pl_pl",\n name: "Polska"\n }, {\n lang: "pt_br",\n name: "Português (Brasil)"\n }, {\n lang: "zh_cn",\n name: "简体中文"\n }],\n // Search Engine Sets\n searchEngines: [{\n url: "https://duckduckgo.com/?q=",\n name: "DuckDuckGo"\n }, {\n url: "https://www.google.com/search?q=",\n name: "Google"\n }, {\n url: "https://www.bing.com/search?q=",\n name: "Bing"\n }]\n };\n },\n props: {\n initBarData: {\n type: Object\n }\n },\n computed: {\n sidebarIcon: function sidebarIcon() {\n return this.$store.state.sidebarOpen ? "close" : "menu";\n },\n sidebarIconLabel: function sidebarIconLabel() {\n return this.$store.state.sidebarOpen ? "Hide Sidebar" : "Show SideBar";\n },\n isRaspberryPi: function isRaspberryPi() {\n return this.deviceModel.toLowerCase().indexOf("raspberry") >= 0;\n }\n },\n watch: {\n \'barData.lang\': {\n handler: function handler(val) {\n var lang = val.includes("_") ? val : "en_us";\n this.setLang(lang);\n },\n deep: true\n },\n \'barData.search_engine\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_SEARCH_ENGINE\', val);\n },\n deep: true\n },\n \'barData.search_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_SEARCH_ENGINE_SWITCH\', val);\n },\n deep: true\n },\n \'barData.recommend_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_RECOMMEND_SWITCH\', val);\n },\n deep: true\n },\n initBarData: function initBarData(val) {\n this.barData = val;\n }\n },\n created: function created() {\n this.barData = this.initBarData; // this.getConfig();\n\n this.getPort();\n },\n mounted: function mounted() {\n this.checkVersion();\n this.getUserInfo();\n this.getUsbStatus();\n this.getHardwareInfo();\n },\n methods: {\n /*************************************************\r\n * PART 0 Common\r\n **************************************************/\n\n /**\r\n * @description: Save CasaOs Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n saveData: function saveData() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var saveRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.users.setCustomStorage(systemConfigName, _this.barData);\n\n case 2:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Handle Dropmenu state\r\n * @param {Boolean} isOpen\r\n * @return {*}\r\n */\n onOpen: function onOpen(isOpen) {\n if (isOpen) {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n this.checkVersion();\n }\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*}\r\n */\n showSideBar: function showSideBar() {\n this.$store.commit(\'TOOGLE_SIDEBAR_STATE\');\n },\n\n /*************************************************\r\n * PART 1-2 Dashboard Setting - Language\r\n **************************************************/\n\n /**\r\n * @description: Get Initnal Language\r\n * @param {*}\r\n * @return {String} lang\r\n */\n getInitLang: function getInitLang() {\n var lang = localStorage.getItem(\'lang\') ? localStorage.getItem(\'lang\') : this.getLangFromBrowser();\n lang = lang.includes("_") ? lang : "en_us";\n return lang;\n },\n\n /*************************************************\r\n * PART 1-3 Dashboard Setting - Web UI Port\r\n **************************************************/\n\n /**\r\n * @description: Get CasaOs WebUI port\r\n * @return {*} \r\n */\n getPort: function getPort() {\n var _this2 = this;\n\n this.$api.sys.getServerPort().then(function (res) {\n if (res.data.success == 200) {\n _this2.port = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Show Port panel\r\n * @return {*} \r\n */\n showPortPanel: function showPortPanel() {\n this.$refs.settingsDrop.toggle();\n this.$buefy.modal.open({\n parent: this,\n component: _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n initPort: this.port\n }\n });\n },\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_9__["default"].SHOW_CHANGE_WALLPAPER_MODAL);\n this.$refs.settingsDrop.toggle();\n },\n\n /*************************************************\r\n * PART 1-4 Dashboard Setting - Auto USB Mount Switch\r\n **************************************************/\n\n /**\r\n * @description: Get Auto USB Mount State\r\n * @return {*} \r\n */\n getUsbStatus: function getUsbStatus() {\n var _this3 = this;\n\n this.$api.sys.getUsbStatus().then(function (res) {\n if (res.data.success == 200) {\n _this3.autoUsbMount = res.data.data === "True";\n }\n });\n },\n\n /**\r\n * @description: Enable or Disable USB Auto Mount\r\n * @param {*}\r\n * @return {*}\r\n */\n usbAutoMount: function usbAutoMount() {\n if (this.autoUsbMount) {\n this.$api.sys.toggleUsbAutoMount({\n state: "on"\n }); // Show \n\n if (this.isRaspberryPi) {\n this.$buefy.snackbar.open({\n message: this.$t(\'Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB\'),\n type: \'is-warning\',\n position: \'is-top\'\n });\n }\n } else {\n this.$api.sys.toggleUsbAutoMount({\n state: "off"\n });\n }\n },\n\n /**\r\n * @description: Get Hardware Info etc. Board Info\r\n * @param {*}\r\n * @return {*}\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this4 = this;\n\n this.$api.sys.hardwareInfo().then(function (res) {\n if (res.data.success == 200) {\n _this4.deviceModel = res.data.data.drive_model;\n }\n });\n },\n\n /*************************************************\r\n * PART 1-5 Dashboard Setting - Update\r\n **************************************************/\n\n /**\r\n * @description: Get Version info \r\n * @return {*} void\r\n */\n checkVersion: function checkVersion() {\n var _this5 = this;\n\n this.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n _this5.updateInfo = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Open Update Modal\r\n * @return {*} void\r\n */\n showUpdateModal: function showUpdateModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: \'keep\',\n animation: \'zoom-in\',\n props: {\n changeLog: this.updateInfo.version.change_log\n }\n });\n },\n\n /*************************************************\r\n * PART 2 Userinfo\r\n **************************************************/\n\n /**\r\n * @description: Get user info\r\n * @return {*} void\r\n */\n getUserInfo: function getUserInfo() {\n var _this6 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var userRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this6.$store.commit(\'SET_SIDEBAR_CLOSE\');\n\n if (!(_this6.$store.state.user.id == 0)) {\n _context2.next = 13;\n break;\n }\n\n _context2.prev = 2;\n _context2.next = 5;\n return _this6.$api.users.getUserInfo();\n\n case 5:\n userRes = _context2.sent;\n _this6.userInfo = userRes.data.data;\n\n _this6.$store.commit(\'SET_USER\', _this6.userInfo);\n\n _context2.next = 13;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2["catch"](2);\n console.log(_context2.t0);\n\n case 13:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[2, 10]]);\n }))();\n },\n\n /**\r\n * @description: Show Account panel\r\n * @return {*} void\r\n */\n showAccountPanel: function showAccountPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n logout: function logout() {\n this.$store.commit(\'SET_DEFAULT_WALLPAPER\');\n this.$router.push("/logout");\n },\n\n /*************************************************\r\n * PART 3 Terminal\r\n **************************************************/\n\n /**\r\n * @description: Show Terminal panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n this.$buefy.modal.open({\n parent: this,\n component: _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in"\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/TopBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/account/AccountPanel.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./account/AccountPanel.vue */ "./src/components/account/AccountPanel.vue");\n/* harmony import */ var _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./logsAndTerminal/TerminalPanel.vue */ "./src/components/logsAndTerminal/TerminalPanel.vue");\n/* harmony import */ var _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./settings/PortPanel.vue */ "./src/components/settings/PortPanel.vue");\n/* harmony import */ var _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./settings/UpdateModal.vue */ "./src/components/settings/UpdateModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\nvar systemConfigName = "system";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "top-bar",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_8__["mixin"]],\n data: function data() {\n return {\n timer: 0,\n // User\n userInfo: this.$store.state.user,\n // System\n barData: {\n lang: this.getInitLang(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: false,\n // Not used\n widgets_switch: false // Not used\n\n },\n updateInfo: {\n current_version: \'0\',\n need_update: false,\n version: Object\n },\n isUpdating: false,\n latestText: "Currently the latest version",\n updateText: "A new version is available!",\n port: "",\n autoUsbMount: false,\n deviceModel: "",\n // Language Sets\n languages: [{\n lang: "de_de",\n name: "Deutsch"\n }, {\n lang: "en_us",\n name: "English"\n }, {\n lang: "es_es",\n name: "Español"\n }, {\n lang: "fr_fr",\n name: "Français"\n }, {\n lang: "it_it",\n name: "Italiano"\n }, {\n lang: "ru_ru",\n name: "Русский"\n }, {\n lang: "pl_pl",\n name: "Polska"\n }, {\n lang: "pt_br",\n name: "Português (Brasil)"\n }, {\n lang: "zh_cn",\n name: "简体中文"\n }],\n // Search Engine Sets\n searchEngines: [{\n url: "https://duckduckgo.com/?q=",\n name: "DuckDuckGo"\n }, {\n url: "https://www.google.com/search?q=",\n name: "Google"\n }, {\n url: "https://www.bing.com/search?q=",\n name: "Bing"\n }]\n };\n },\n props: {\n initBarData: {\n type: Object\n }\n },\n computed: {\n sidebarIcon: function sidebarIcon() {\n return this.$store.state.sidebarOpen ? "close" : "menu";\n },\n sidebarIconLabel: function sidebarIconLabel() {\n return this.$store.state.sidebarOpen ? "Hide Sidebar" : "Show SideBar";\n },\n isRaspberryPi: function isRaspberryPi() {\n return this.deviceModel.toLowerCase().indexOf("raspberry") >= 0;\n }\n },\n watch: {\n \'barData.lang\': {\n handler: function handler(val) {\n var lang = val.includes("_") ? val : "en_us";\n this.setLang(lang);\n },\n deep: true\n },\n \'barData.search_engine\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_SEARCH_ENGINE\', val);\n },\n deep: true\n },\n \'barData.search_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_SEARCH_ENGINE_SWITCH\', val);\n },\n deep: true\n },\n \'barData.recommend_switch\': {\n handler: function handler(val) {\n this.$store.commit(\'SET_RECOMMEND_SWITCH\', val);\n },\n deep: true\n },\n initBarData: function initBarData(val) {\n this.barData = val;\n }\n },\n created: function created() {\n this.barData = this.initBarData; // this.getConfig();\n\n this.getPort();\n },\n mounted: function mounted() {\n this.checkVersion();\n this.getUserInfo();\n this.getUsbStatus();\n this.getHardwareInfo();\n },\n methods: {\n /*************************************************\r\n * PART 0 Common\r\n **************************************************/\n\n /**\r\n * @description: Save CasaOs Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n saveData: function saveData() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var saveRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.users.setCustomStorage(systemConfigName, _this.barData);\n\n case 2:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n _this.barData = saveRes.data.data;\n }\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Handle Dropmenu state\r\n * @param {Boolean} isOpen\r\n * @return {*}\r\n */\n onOpen: function onOpen(isOpen) {\n if (isOpen) {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n this.checkVersion();\n }\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*}\r\n */\n showSideBar: function showSideBar() {\n this.$store.commit(\'TOOGLE_SIDEBAR_STATE\');\n },\n\n /*************************************************\r\n * PART 1-2 Dashboard Setting - Language\r\n **************************************************/\n\n /**\r\n * @description: Get Initnal Language\r\n * @param {*}\r\n * @return {String} lang\r\n */\n getInitLang: function getInitLang() {\n var lang = localStorage.getItem(\'lang\') ? localStorage.getItem(\'lang\') : this.getLangFromBrowser();\n lang = lang.includes("_") ? lang : "en_us";\n return lang;\n },\n\n /*************************************************\r\n * PART 1-3 Dashboard Setting - Web UI Port\r\n **************************************************/\n\n /**\r\n * @description: Get CasaOs WebUI port\r\n * @return {*} \r\n */\n getPort: function getPort() {\n var _this2 = this;\n\n this.$api.sys.getServerPort().then(function (res) {\n if (res.data.success == 200) {\n _this2.port = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Show Port panel\r\n * @return {*} \r\n */\n showPortPanel: function showPortPanel() {\n this.$refs.settingsDrop.toggle();\n this.$buefy.modal.open({\n parent: this,\n component: _settings_PortPanel_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n initPort: this.port\n }\n });\n },\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_9__["default"].SHOW_CHANGE_WALLPAPER_MODAL);\n this.$refs.settingsDrop.toggle();\n },\n\n /*************************************************\r\n * PART 1-4 Dashboard Setting - Auto USB Mount Switch\r\n **************************************************/\n\n /**\r\n * @description: Get Auto USB Mount State\r\n * @return {*} \r\n */\n getUsbStatus: function getUsbStatus() {\n var _this3 = this;\n\n this.$api.sys.getUsbStatus().then(function (res) {\n if (res.data.success == 200) {\n _this3.autoUsbMount = res.data.data === "True";\n }\n });\n },\n\n /**\r\n * @description: Enable or Disable USB Auto Mount\r\n * @param {*}\r\n * @return {*}\r\n */\n usbAutoMount: function usbAutoMount() {\n if (this.autoUsbMount) {\n this.$api.sys.toggleUsbAutoMount({\n state: "on"\n }); // Show \n\n if (this.isRaspberryPi) {\n this.$buefy.snackbar.open({\n message: this.$t(\'Enabling this function may cause boot failures when the Raspberry Pi device is booted from USB\'),\n type: \'is-warning\',\n position: \'is-top\'\n });\n }\n } else {\n this.$api.sys.toggleUsbAutoMount({\n state: "off"\n });\n }\n },\n\n /**\r\n * @description: Get Hardware Info etc. Board Info\r\n * @param {*}\r\n * @return {*}\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this4 = this;\n\n this.$api.sys.hardwareInfo().then(function (res) {\n if (res.data.success == 200) {\n _this4.deviceModel = res.data.data.drive_model;\n }\n });\n },\n\n /*************************************************\r\n * PART 1-5 Dashboard Setting - Update\r\n **************************************************/\n\n /**\r\n * @description: Get Version info \r\n * @return {*} void\r\n */\n checkVersion: function checkVersion() {\n var _this5 = this;\n\n this.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n _this5.updateInfo = res.data.data;\n }\n });\n },\n\n /**\r\n * @description: Open Update Modal\r\n * @return {*} void\r\n */\n showUpdateModal: function showUpdateModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _settings_UpdateModal_vue__WEBPACK_IMPORTED_MODULE_7__["default"],\n hasModalCard: true,\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: \'keep\',\n animation: \'zoom-in\',\n props: {\n changeLog: this.updateInfo.version.change_log\n }\n });\n },\n\n /*************************************************\r\n * PART 2 Userinfo\r\n **************************************************/\n\n /**\r\n * @description: Get user info\r\n * @return {*} void\r\n */\n getUserInfo: function getUserInfo() {\n var _this6 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var userRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this6.$store.commit(\'SET_SIDEBAR_CLOSE\');\n\n if (!(_this6.$store.state.user.id == 0)) {\n _context2.next = 13;\n break;\n }\n\n _context2.prev = 2;\n _context2.next = 5;\n return _this6.$api.users.getUserInfo();\n\n case 5:\n userRes = _context2.sent;\n _this6.userInfo = userRes.data.data;\n\n _this6.$store.commit(\'SET_USER\', _this6.userInfo);\n\n _context2.next = 13;\n break;\n\n case 10:\n _context2.prev = 10;\n _context2.t0 = _context2["catch"](2);\n console.log(_context2.t0);\n\n case 13:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[2, 10]]);\n }))();\n },\n\n /**\r\n * @description: Show Account panel\r\n * @return {*} void\r\n */\n showAccountPanel: function showAccountPanel() {\n this.$buefy.modal.open({\n parent: this,\n component: _account_AccountPanel_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n hasModalCard: true,\n customClass: \'account-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in"\n });\n },\n logout: function logout() {\n this.$store.commit(\'SET_DEFAULT_WALLPAPER\');\n this.$router.push("/logout");\n },\n\n /*************************************************\r\n * PART 3 Terminal\r\n **************************************************/\n\n /**\r\n * @description: Show Terminal panel\r\n * @return {*} void\r\n */\n showTerminalPanel: function showTerminalPanel() {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n this.$buefy.modal.open({\n parent: this,\n component: _logsAndTerminal_TerminalPanel_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n hasModalCard: true,\n customClass: \'terminal-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in"\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/TopBar.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/account/AccountPanel.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/account/AccountPanel.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "account-panel",\n data: function data() {\n return {\n isLoading: false,\n state: 1,\n user: this.$store.state.user,\n username: this.$store.state.user.username,\n oriPassword: "",\n password: \'\',\n confirmation: "",\n message: "",\n notificationShow: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationProvider"]\n },\n computed: {\n title: function title() {\n var val = "";\n\n switch (this.state) {\n case 1:\n val = "";\n break;\n\n case 2:\n val = this.$t("Change name");\n break;\n\n case 3:\n val = this.$t("Change Password");\n break;\n\n default:\n break;\n }\n\n return val;\n },\n userInfo: function userInfo() {\n return this.$store.state.user;\n }\n },\n methods: {\n goto: function goto(val) {\n this.state = val;\n\n if (val == 1) {\n this.username = this.userInfo.username;\n }\n },\n updateUserInfo: function updateUserInfo() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this.$api.users.getUserInfo();\n\n case 3:\n userRes = _context.sent;\n\n _this.$store.commit(\'SET_USER\', userRes.data.data);\n\n _this.goto(1);\n\n _context.next = 11;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context["catch"](0);\n console.log(_context.t0.response.message);\n\n case 11:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 8]]);\n }))();\n },\n saveUser: function saveUser() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var res;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.isLoading = true;\n _context2.prev = 1;\n _context2.next = 4;\n return _this2.$api.users.setUserInfo(_this2.user);\n\n case 4:\n res = _context2.sent;\n\n _this2.$store.commit(\'SET_USER\', res.data.data);\n\n _this2.user = res.data.data;\n\n _this2.goto(1);\n\n _this2.isLoading = false;\n _context2.next = 14;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2["catch"](1);\n _this2.isLoading = false;\n\n case 14:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[1, 11]]);\n }))();\n },\n savePassword: function savePassword() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee3() {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this3.isLoading = true;\n _context3.prev = 1;\n _context3.next = 4;\n return _this3.$api.users.changePassword({\n old_password: _this3.oriPassword,\n password: _this3.password\n });\n\n case 4:\n _this3.isLoading = false;\n\n _this3.goto(1);\n\n _context3.next = 13;\n break;\n\n case 8:\n _context3.prev = 8;\n _context3.t0 = _context3["catch"](1);\n _this3.isLoading = false;\n _this3.notificationShow = true;\n _this3.message = _context3.t0.respone.data.message;\n\n case 13:\n case "end":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[1, 8]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/account/AccountPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/fileList/CreatePanel.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "account-panel",\n data: function data() {\n return {\n isLoading: false,\n state: 1,\n user: this.$store.state.user,\n username: this.$store.state.user.username,\n oriPassword: "",\n password: \'\',\n confirmation: "",\n message: "",\n notificationShow: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_2__["ValidationProvider"]\n },\n computed: {\n title: function title() {\n var val = "";\n\n switch (this.state) {\n case 1:\n val = "";\n break;\n\n case 2:\n val = this.$t("Change name");\n break;\n\n case 3:\n val = this.$t("Change Password");\n break;\n\n default:\n break;\n }\n\n return val;\n },\n userInfo: function userInfo() {\n return this.$store.state.user;\n }\n },\n methods: {\n goto: function goto(val) {\n this.state = val;\n\n if (val == 1) {\n this.username = this.userInfo.username;\n }\n },\n updateUserInfo: function updateUserInfo() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this.$api.users.getUserInfo();\n\n case 3:\n userRes = _context.sent;\n\n _this.$store.commit(\'SET_USER\', userRes.data.data);\n\n _this.goto(1);\n\n _context.next = 11;\n break;\n\n case 8:\n _context.prev = 8;\n _context.t0 = _context["catch"](0);\n console.log(_context.t0.response.message);\n\n case 11:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 8]]);\n }))();\n },\n saveUser: function saveUser() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var res;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.isLoading = true;\n _context2.prev = 1;\n _context2.next = 4;\n return _this2.$api.users.setUserInfo(_this2.user);\n\n case 4:\n res = _context2.sent;\n\n _this2.$store.commit(\'SET_USER\', res.data.data);\n\n _this2.user = res.data.data;\n\n _this2.goto(1);\n\n _this2.isLoading = false;\n _context2.next = 14;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2["catch"](1);\n _this2.isLoading = false;\n\n case 14:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[1, 11]]);\n }))();\n },\n savePassword: function savePassword() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee3() {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n _this3.isLoading = true;\n _context3.prev = 1;\n _context3.next = 4;\n return _this3.$api.users.changePassword({\n old_password: _this3.oriPassword,\n password: _this3.password\n });\n\n case 4:\n _this3.isLoading = false;\n\n _this3.goto(1);\n\n _context3.next = 13;\n break;\n\n case 8:\n _context3.prev = 8;\n _context3.t0 = _context3["catch"](1);\n _this3.isLoading = false;\n _this3.notificationShow = true;\n _this3.message = _context3.t0.respone.data.message;\n\n case 13:\n case "end":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[1, 8]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/account/AccountPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/fileList/CreatePanel.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/fileList/CreatePanel.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************/@@ -70,15 +70,15 @@/*!******************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/FilePanel.vue?vue&type=script&lang=js& ***!\******************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/dropRight */ "./node_modules/lodash/dropRight.js");\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./sidebar/TreeList.vue */ "./src/components/filebrowser/sidebar/TreeList.vue");\n/* harmony import */ var _sidebar_MountList_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./sidebar/MountList.vue */ "./src/components/filebrowser/sidebar/MountList.vue");\n/* harmony import */ var _shared_ShareEntryButton_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./shared/ShareEntryButton.vue */ "./src/components/filebrowser/shared/ShareEntryButton.vue");\n/* harmony import */ var _shared_ShareListPage_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./shared/ShareListPage.vue */ "./src/components/filebrowser/shared/ShareListPage.vue");\n/* harmony import */ var _shared_SelectShareModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./shared/SelectShareModal.vue */ "./src/components/filebrowser/shared/SelectShareModal.vue");\n/* harmony import */ var _shared_ShareDetial_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shared/ShareDetial.vue */ "./src/components/filebrowser/shared/ShareDetial.vue");\n/* harmony import */ var _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/GirdView.vue */ "./src/components/filebrowser/components/GirdView.vue");\n/* harmony import */ var _components_ListView_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/ListView.vue */ "./src/components/filebrowser/components/ListView.vue");\n/* harmony import */ var _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/FileBreadcrumb.vue */ "./src/components/filebrowser/components/FileBreadcrumb.vue");\n/* harmony import */ var _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/EmptyHolder.vue */ "./src/components/filebrowser/components/EmptyHolder.vue");\n/* harmony import */ var _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./modals/DetailModal.vue */ "./src/components/filebrowser/modals/DetailModal.vue");\n/* harmony import */ var _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./modals/NewFolderModal.vue */ "./src/components/filebrowser/modals/NewFolderModal.vue");\n/* harmony import */ var _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./modals/NewFileModal.vue */ "./src/components/filebrowser/modals/NewFileModal.vue");\n/* harmony import */ var _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./modals/RenameModal.vue */ "./src/components/filebrowser/modals/RenameModal.vue");\n/* harmony import */ var _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./uploader/components/uploader.vue */ "./src/components/filebrowser/uploader/components/uploader.vue");\n/* harmony import */ var _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./uploader/components/unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./uploader/components/list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n/* harmony import */ var _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/OperationToolbar.vue */ "./src/components/filebrowser/components/OperationToolbar.vue");\n/* harmony import */ var _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/OperationStatusBar.vue */ "./src/components/filebrowser/components/OperationStatusBar.vue");\n/* harmony import */ var _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/GlobalActionButton.vue */ "./src/components/filebrowser/components/GlobalActionButton.vue");\n/* harmony import */ var _components_MountActionButton_vue__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/MountActionButton.vue */ "./src/components/filebrowser/components/MountActionButton.vue");\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "file-panel",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_14__["mixin"]],\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n ListView: _components_ListView_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n GirdView: _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n FileBreadcrumb: _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n TreeList: _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n Uploader: _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_30__["default"],\n UploaderUnsupport: _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_31__["default"],\n UploaderList: _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_32__["default"],\n CodeEditor: function CodeEditor() {\n return Promise.all(/*! import() */[__webpack_require__.e(6), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, /*! ./viewers/CodeEditor.vue */ "./src/components/filebrowser/viewers/CodeEditor.vue"));\n },\n VideoPlayer: function VideoPlayer() {\n return Promise.all(/*! import() */[__webpack_require__.e(14), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, /*! ./viewers/VideoPlayer.vue */ "./src/components/filebrowser/viewers/VideoPlayer.vue"));\n },\n ImageViewer: function ImageViewer() {\n return Promise.all(/*! import() */[__webpack_require__.e(13), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, /*! ./viewers/ImageViewer.vue */ "./src/components/filebrowser/viewers/ImageViewer.vue"));\n },\n EmptyHolder: _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_25__["default"],\n OperationToolbar: _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_33__["default"],\n RenameModal: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__["default"],\n OperationStatusBar: _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_34__["default"],\n GlobalActionButton: _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_35__["default"],\n // Shared\n ShareEntryButton: _shared_ShareEntryButton_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n ShareListPage: _shared_ShareListPage_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n MountList: _sidebar_MountList_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n MountActionButton: _components_MountActionButton_vue__WEBPACK_IMPORTED_MODULE_36__["default"]\n },\n data: function data() {\n return {\n isCreated: false,\n isLoading: true,\n isModalOpen: false,\n isDragIn: false,\n isPasting: false,\n isShowDetial: false,\n isShareList: false,\n panelType: null,\n currentItem: null,\n rootPath: "/DATA",\n currentPath: "",\n currentPathName: "",\n isViewGird: true,\n listData: [],\n selectedArray: [],\n file: null,\n timeout: null,\n uploadPercentage: 0,\n hasPasteData: this.$store.state.operateObject != null,\n uploaderInstance: {},\n selectState: "none",\n isSelectAll: false,\n selectLabel: "",\n isToolbarShow: false,\n options: {\n target: this.getTargetUrl(),\n testChunks: true,\n uploadMethod: "POST",\n successStatuses: [200, 201, 202, 2002],\n allowDuplicateUploads: true // chunkSize: 1024 * 1024 * 1024 * 1024\n\n },\n attrs: {\n accept: \'*\'\n },\n // Uploader List\n showUploadList: false,\n uploaderListHeaderText: "Uploading",\n usbDisks: []\n };\n },\n computed: {\n viewIcon: function viewIcon() {\n return this.$store.state.isViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isViewGird ? "gird-view" : "list-view";\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n },\n usbDisks: function usbDisks(newval, oldval) {\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_13___default()(newval, oldval) && newval == "/DATA") {\n this.getFileList(this.currentPath);\n }\n },\n isShareList: function isShareList(val) {\n var _this = this;\n\n if (val) {\n this.destroyedAction();\n } else {\n if (document.onpaste === null) {\n this.$nextTick(function () {\n _this.beforeInit();\n });\n }\n }\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n this.init();\n\n if (!this.isShareList) {\n this.beforeInit();\n }\n\n document.addEventListener(\'contextmenu\', this.hideContextMenu);\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].GOTO, function (event) {\n _this2.getFileList(event.path);\n });\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].SELECT_SHARE, this.handleSelectShare);\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].UN_SHARE, this.handleUnShare);\n },\n destroyed: function destroyed() {\n this.destroyedAction();\n },\n methods: {\n /*************************************************\r\n * PART 0 Self\r\n **************************************************/\n beforeInit: function beforeInit() {\n var _this3 = this;\n\n this.setUploaderOpts(); // Listen to ESC button to exit preview\n\n document.onkeyup = function (e) {\n switch (e.code) {\n case \'Escape\':\n if (_this3.isShowDetial) {\n _this3.$refs.previewPanel.close();\n }\n\n break;\n\n case \'Backspace\':\n _this3.backLevel();\n\n break;\n\n default:\n break;\n }\n }; // paste\n\n\n document.onpaste = function () {\n if (!_this3.isShowDetial && !_this3.isModalOpen) {\n _this3.paste(\'overwrite\');\n }\n };\n },\n destroyedAction: function destroyedAction() {\n this.uploaderInstance.off(\'dragover\');\n this.uploaderInstance.off(\'uploadStart\');\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n this.$store.commit(\'SET_OPERATE_OBJECT\', null);\n document.onpaste = null;\n document.onkeyup = null;\n },\n showSharedList: function showSharedList() {\n this.isShareList = true;\n },\n\n /**\r\n * @description: Init Funtion\r\n * @return {*}\r\n */\n init: function init() {\n if (this.isCreated) {\n this.getFileList(this.rootPath); // this.$refs.mountedList.getStorageList();\n } else {\n this.isCreated = true;\n }\n },\n\n /**\r\n * @description: Get File Tree List\r\n * @param {String} path\r\n * @return {*}\r\n */\n getFileList: function getFileList(path) {\n var _this4 = this;\n\n this.isLoading = true; // path = path.replace("//", "/")\n\n this.isShareList = false;\n this.currentPath = path;\n this.$store.commit(\'SET_CURRENT_PATH\', path);\n this.$api.folder.getList(path).then(function (res) {\n if (res.data.success == 200) {\n _this4.isLoading = false;\n _this4.currentPathName = path.split("/").pop();\n _this4.uploaderInstance.opts.query = {\n path: _this4.currentPath\n };\n var fileList = res.data.data;\n var newFileList = fileList.map(function (item) {\n return {\n date: item.date,\n isSelected: false,\n is_dir: item.is_dir,\n name: item.name,\n path: item.path,\n size: item.size,\n write: item.write,\n extensions: item.extensions\n };\n });\n _this4.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default()(newFileList, [\'is_dir\'], [\'desc\']);\n\n _this4.handelListChange(_this4.listData);\n }\n });\n },\n\n /**\r\n * @description: Reload current folder\r\n * @return {*}\r\n */\n reload: function reload() {\n this.getFileList(this.$store.state.currentPath);\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n },\n\n /**\r\n * @description: Change View List/Gird\r\n * @return {*}\r\n */\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isViewGird;\n this.$store.commit(\'SET_IS_VIEW_GRID\', this.isViewGird);\n },\n\n /**\r\n * @description: Handle Select All Action\r\n * @param {*} bool\r\n * @return {*}\r\n */\n handleSelect: function handleSelect(bool) {\n var _this5 = this;\n\n if (bool) {\n this.listData.forEach(function (item, index) {\n item.isSelected = true;\n\n _this5.$refs.listview.selectList.push(index);\n });\n } else {\n this.listData.forEach(function (item) {\n item.isSelected = false;\n });\n this.$refs.listview.selectList = [];\n }\n\n this.handelListChange(this.listData);\n },\n\n /**\r\n * @description: Handle List data change (Selected State)\r\n * @param {*} list\r\n * @return {*}\r\n */\n handelListChange: function handelListChange(list) {\n this.selectedArray = list.filter(function (item) {\n return item.isSelected;\n });\n\n if (this.selectedArray.length == list.length && list.length > 0) {\n this.selectState = "all";\n this.isSelectAll = true;\n this.selectLabel = {\n num: list.length\n };\n this.isToolbarShow = true;\n } else if (this.selectedArray.length < list.length && this.selectedArray.length > 0) {\n this.selectState = "part";\n this.isSelectAll = false;\n this.selectLabel = {\n num: this.selectedArray.length\n };\n this.isToolbarShow = true;\n } else {\n this.selectState = "none";\n this.isSelectAll = false;\n this.selectLabel = {\n num: list.length\n };\n this.isToolbarShow = false;\n }\n },\n\n /**\r\n * @description: Handle Backspace Event Back to upper level\r\n * @return {*}\r\n */\n backLevel: function backLevel() {\n if (this.isModalOpen) return false;\n var pathArr = this.$store.state.currentPath.substr(1).split("/");\n\n if (pathArr.length == 1) {\n return false;\n }\n\n var newPath = "/" + lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default()(pathArr).join("/");\n this.getFileList(newPath);\n },\n\n /**\r\n * @description: Paste Files\r\n * @return {*}\r\n */\n paste: function paste() {\n var _this6 = this;\n\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n if (this.$store.state.operateObject == null) return false;\n this.isPasting = true;\n var operateObject = this.$store.state.operateObject;\n operateObject.to = this.$store.state.currentPath;\n operateObject.style = style;\n this.$api.batch.task(operateObject).then(function (res) {\n _this6.isPasting = false;\n\n if (res.data.success == 200) {\n _this6.$store.commit(\'SET_OPERATE_OBJECT\', null);\n } else {\n _this6.$buefy.toast.open({\n message: res.data.message,\n type: \'is-danger\'\n });\n }\n });\n },\n\n /**\r\n * @description: Hide Context Menu\r\n * @return {*}\r\n */\n hideContextMenu: function hideContextMenu() {\n if (this.$refs.moreBtn) {\n this.$refs.moreBtn.isActive = false;\n }\n },\n\n /*************************************************\r\n * PART 1 Uploader\r\n **************************************************/\n\n /**\r\n * @description: Get Uploader Target URL\r\n * @return {*}\r\n */\n getTargetUrl: function getTargetUrl() {\n return "http://".concat(this.$baseURL, "/v1/file/upload?token=").concat(this.$store.state.access_token);\n },\n\n /**\r\n * @description: Set Uploader Options\r\n * @return {*}\r\n */\n setUploaderOpts: function setUploaderOpts() {\n var _this7 = this;\n\n this.uploaderInstance = this.$refs.uploader.uploader;\n this.assignUploadButtons(); // Drag Over\n\n this.uploaderInstance.on(\'dragover\', function (event) {\n _this7.isDragIn = true;\n\n if (_this7.timeout !== null) {\n clearTimeout(_this7.timeout);\n }\n\n _this7.timeout = setTimeout(function () {\n _this7.isDragIn = false;\n _this7.timeout = null;\n }, 120);\n event.stopPropagation();\n event.preventDefault();\n });\n this.uploaderInstance.on(\'uploadStart\', function () {\n _this7.isDragIn = false;\n _this7.showUploadList = true;\n _this7.uploaderListHeaderText = "Uploading";\n });\n this.uploaderInstance.on(\'complete\', function () {\n _this7.getFileList(_this7.currentPath);\n\n _this7.uploaderListHeaderText = "Completed";\n });\n },\n\n /**\r\n * @description: Close Uploader List \r\n * @return {*}\r\n */\n closeUploaderList: function closeUploaderList() {\n this.showUploadList = false;\n this.uploaderInstance.cancel();\n },\n\n /**\r\n * @description: Assig nUpload Buttons\r\n * @return {*}\r\n */\n assignUploadButtons: function assignUploadButtons() {\n this.uploaderInstance.assignDrop(document.getElementById(\'dropTarget\'));\n },\n\n /*************************************************\r\n * PART 2 Modals\r\n **************************************************/\n\n /**\r\n * @description: Show Detail Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showDetailModal: function showDetailModal(item) {\n var _this8 = this;\n\n this.isModalOpen = true;\n this.panelType = this.getPanelType(item);\n\n if (this.panelType !== null) {\n this.currentItem = item;\n this.isShowDetial = true;\n } else {\n this.$buefy.modal.open({\n parent: this,\n component: _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_26__["default"],\n hasModalCard: true,\n customClass: \'detail-panel file-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n },\n events: {\n \'close\': function close() {\n _this8.isModalOpen = false;\n }\n }\n });\n }\n },\n\n /**\r\n * @description: Show New Folder Modal\r\n * @return {*}\r\n */\n showNewFolderModal: function showNewFolderModal() {\n var _this9 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_27__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this9.reload();\n },\n \'close\': function close() {\n _this9.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show New File Modal\r\n * @return {*}\r\n */\n showNewFileModal: function showNewFileModal() {\n var _this10 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_28__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this10.reload();\n },\n \'close\': function close() {\n _this10.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show Rename Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showRenameModal: function showRenameModal(item) {\n var _this11 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__["default"],\n hasModalCard: true,\n customClass: \'rename-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'reload\': function reload() {\n _this11.reload();\n },\n \'close\': function close() {\n _this11.isModalOpen = false;\n }\n },\n props: {\n item: item\n }\n });\n },\n\n /*************************************************\r\n * PART 3 Toolbar Action\r\n **************************************************/\n\n /**\r\n * @description: handle Toolbar Close\r\n * @return {*}\r\n */\n handleClose: function handleClose() {\n this.isSelectAll = false;\n this.handleSelect(this.isSelectAll);\n },\n\n /**\r\n * @description: handle Toolbar Remove\r\n * @return {*}\r\n */\n handleRemove: function handleRemove() {\n var _this12 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Deleting files\'),\n message: this.$t(\'Are you sure you want to <b>delete</b> these files? This action cannot be undone.\'),\n confirmText: this.$t(\'Delete\'),\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this12.deleteItem(_this12.selectedArray);\n\n _this12.handleClose();\n }\n });\n },\n\n /**\r\n * @description: Handle Toolbar Move\r\n * @return {*}\r\n */\n handleMove: function handleMove() {\n this.operate(\'move\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: Handle Toolbar copy\r\n * @return {*}\r\n */\n handleCopy: function handleCopy() {\n this.operate(\'copy\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: handle Toolbar Download\r\n * @return {*}\r\n */\n handleDownload: function handleDownload() {\n var downItem = this.selectedArray.length == 1 ? this.selectedArray[0] : this.selectedArray;\n this.downloadFile(downItem);\n this.handleClose();\n },\n\n /*************************************************\r\n * PART 4 Share Action\r\n **************************************************/\n handleUnShare: function handleUnShare(item) {\n var _this13 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Unsharing Folder\'),\n message: this.$t(\'Are you sure you want to unshare this Folder?\'),\n confirmText: this.$t(\'UnShare\'),\n cancelText: this.$t(\'Cancel\'),\n iconPack: \'casa\',\n icon: \'danger\',\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this13.$api.samba.deleteShare(item.id).then(function () {\n _this13.reloadShare();\n\n _this13.$buefy.toast.open({\n message: _this13.$t(\'Folder unshared.\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this13.$buefy.toast.open({\n message: _this13.$t(\'Unshared failed.\'),\n type: \'is-danger\'\n });\n });\n }\n });\n },\n reloadShare: function reloadShare() {\n if (this.isShareList) {\n this.$refs.shareList.getSharedList();\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n } else {\n this.reload();\n }\n },\n handleSelectShare: function handleSelectShare() {\n var _this14 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _shared_SelectShareModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n customClass: \'share-detial-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'close\': function close() {// this.isModalOpen = false\n },\n \'reload\': function reload() {\n if (_this14.isShareList) {\n _this14.$refs.shareList.getSharedList();\n\n _this14.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n } else {\n _this14.reload();\n }\n }\n }\n });\n },\n getShareLink: function getShareLink(item) {\n this.$buefy.modal.open({\n parent: this,\n component: _shared_ShareDetial_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n hasModalCard: true,\n customClass: \'share-detial-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n }\n });\n }\n },\n sockets: {\n file_operate: function file_operate(data) {\n var _this15 = this;\n\n var taskList = data.body.file_operate.data;\n taskList.forEach(function (task) {\n if (task.finished && task.to === _this15.currentPath) {\n _this15.reload();\n }\n });\n },\n sys_hardware_status: function sys_hardware_status() {// USB\n // this.usbDisks = data.body.sys_usb\n },\n storage_status: function storage_status() {\n // Storage\n this.reload();\n },\n sys_usb: function sys_usb() {\n var _this16 = this;\n\n setTimeout(function () {\n if (_this16.currentPath == "/DATA") {\n _this16.reload();\n }\n }, 500);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/FilePanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/orderBy */ "./node_modules/lodash/orderBy.js");\n/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! lodash/dropRight */ "./node_modules/lodash/dropRight.js");\n/* harmony import */ var lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(lodash_dropRight__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! lodash/isEqual */ "./node_modules/lodash/isEqual.js");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./sidebar/TreeList.vue */ "./src/components/filebrowser/sidebar/TreeList.vue");\n/* harmony import */ var _sidebar_MountList_vue__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./sidebar/MountList.vue */ "./src/components/filebrowser/sidebar/MountList.vue");\n/* harmony import */ var _shared_ShareEntryButton_vue__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./shared/ShareEntryButton.vue */ "./src/components/filebrowser/shared/ShareEntryButton.vue");\n/* harmony import */ var _shared_ShareListPage_vue__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./shared/ShareListPage.vue */ "./src/components/filebrowser/shared/ShareListPage.vue");\n/* harmony import */ var _shared_SelectShareModal_vue__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./shared/SelectShareModal.vue */ "./src/components/filebrowser/shared/SelectShareModal.vue");\n/* harmony import */ var _shared_ShareDetial_vue__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./shared/ShareDetial.vue */ "./src/components/filebrowser/shared/ShareDetial.vue");\n/* harmony import */ var _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/GirdView.vue */ "./src/components/filebrowser/components/GirdView.vue");\n/* harmony import */ var _components_ListView_vue__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/ListView.vue */ "./src/components/filebrowser/components/ListView.vue");\n/* harmony import */ var _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/FileBreadcrumb.vue */ "./src/components/filebrowser/components/FileBreadcrumb.vue");\n/* harmony import */ var _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./components/EmptyHolder.vue */ "./src/components/filebrowser/components/EmptyHolder.vue");\n/* harmony import */ var _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./modals/DetailModal.vue */ "./src/components/filebrowser/modals/DetailModal.vue");\n/* harmony import */ var _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./modals/NewFolderModal.vue */ "./src/components/filebrowser/modals/NewFolderModal.vue");\n/* harmony import */ var _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./modals/NewFileModal.vue */ "./src/components/filebrowser/modals/NewFileModal.vue");\n/* harmony import */ var _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./modals/RenameModal.vue */ "./src/components/filebrowser/modals/RenameModal.vue");\n/* harmony import */ var _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./uploader/components/uploader.vue */ "./src/components/filebrowser/uploader/components/uploader.vue");\n/* harmony import */ var _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./uploader/components/unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./uploader/components/list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n/* harmony import */ var _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/OperationToolbar.vue */ "./src/components/filebrowser/components/OperationToolbar.vue");\n/* harmony import */ var _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/OperationStatusBar.vue */ "./src/components/filebrowser/components/OperationStatusBar.vue");\n/* harmony import */ var _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./components/GlobalActionButton.vue */ "./src/components/filebrowser/components/GlobalActionButton.vue");\n/* harmony import */ var _components_MountActionButton_vue__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./components/MountActionButton.vue */ "./src/components/filebrowser/components/MountActionButton.vue");\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "file-panel",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_14__["mixin"]],\n provide: function provide() {\n return {\n filePanel: this\n };\n },\n components: {\n ListView: _components_ListView_vue__WEBPACK_IMPORTED_MODULE_23__["default"],\n GirdView: _components_GirdView_vue__WEBPACK_IMPORTED_MODULE_22__["default"],\n FileBreadcrumb: _components_FileBreadcrumb_vue__WEBPACK_IMPORTED_MODULE_24__["default"],\n TreeList: _sidebar_TreeList_vue__WEBPACK_IMPORTED_MODULE_16__["default"],\n Uploader: _uploader_components_uploader_vue__WEBPACK_IMPORTED_MODULE_30__["default"],\n UploaderUnsupport: _uploader_components_unsupport_vue__WEBPACK_IMPORTED_MODULE_31__["default"],\n UploaderList: _uploader_components_list_vue__WEBPACK_IMPORTED_MODULE_32__["default"],\n CodeEditor: function CodeEditor() {\n return Promise.all(/*! import() */[__webpack_require__.e(6), __webpack_require__.e(10)]).then(__webpack_require__.bind(null, /*! ./viewers/CodeEditor.vue */ "./src/components/filebrowser/viewers/CodeEditor.vue"));\n },\n VideoPlayer: function VideoPlayer() {\n return Promise.all(/*! import() */[__webpack_require__.e(14), __webpack_require__.e(12)]).then(__webpack_require__.bind(null, /*! ./viewers/VideoPlayer.vue */ "./src/components/filebrowser/viewers/VideoPlayer.vue"));\n },\n ImageViewer: function ImageViewer() {\n return Promise.all(/*! import() */[__webpack_require__.e(13), __webpack_require__.e(11)]).then(__webpack_require__.bind(null, /*! ./viewers/ImageViewer.vue */ "./src/components/filebrowser/viewers/ImageViewer.vue"));\n },\n EmptyHolder: _components_EmptyHolder_vue__WEBPACK_IMPORTED_MODULE_25__["default"],\n OperationToolbar: _components_OperationToolbar_vue__WEBPACK_IMPORTED_MODULE_33__["default"],\n RenameModal: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__["default"],\n OperationStatusBar: _components_OperationStatusBar_vue__WEBPACK_IMPORTED_MODULE_34__["default"],\n GlobalActionButton: _components_GlobalActionButton_vue__WEBPACK_IMPORTED_MODULE_35__["default"],\n // Shared\n ShareEntryButton: _shared_ShareEntryButton_vue__WEBPACK_IMPORTED_MODULE_18__["default"],\n ShareListPage: _shared_ShareListPage_vue__WEBPACK_IMPORTED_MODULE_19__["default"],\n MountList: _sidebar_MountList_vue__WEBPACK_IMPORTED_MODULE_17__["default"],\n MountActionButton: _components_MountActionButton_vue__WEBPACK_IMPORTED_MODULE_36__["default"]\n },\n data: function data() {\n return {\n isCreated: false,\n isLoading: true,\n isModalOpen: false,\n isDragIn: false,\n isPasting: false,\n isShowDetial: false,\n isShareList: false,\n panelType: null,\n currentItem: null,\n rootPath: "/DATA",\n currentPath: "",\n currentPathName: "",\n isViewGird: true,\n listData: [],\n selectedArray: [],\n file: null,\n timeout: null,\n uploadPercentage: 0,\n hasPasteData: this.$store.state.operateObject != null,\n uploaderInstance: {},\n selectState: "none",\n isSelectAll: false,\n selectLabel: "",\n isToolbarShow: false,\n options: {\n target: this.getTargetUrl(),\n testChunks: true,\n uploadMethod: "POST",\n successStatuses: [200, 201, 202, 2002],\n allowDuplicateUploads: true // chunkSize: 1024 * 1024 * 1024 * 1024\n\n },\n attrs: {\n accept: \'*\'\n },\n // Uploader List\n showUploadList: false,\n uploaderListHeaderText: "Uploading",\n usbDisks: []\n };\n },\n computed: {\n viewIcon: function viewIcon() {\n return this.$store.state.isViewGird ? "view-grid-outline" : "format-list-bulleted";\n },\n listView: function listView() {\n return this.$store.state.isViewGird ? "gird-view" : "list-view";\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n },\n usbDisks: function usbDisks(newval, oldval) {\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_13___default()(newval, oldval) && newval == "/DATA") {\n this.getFileList(this.currentPath);\n }\n },\n isShareList: function isShareList(val) {\n var _this = this;\n\n if (val) {\n this.destroyedAction();\n } else {\n if (document.onpaste === null) {\n this.$nextTick(function () {\n _this.beforeInit();\n });\n }\n }\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n this.init();\n\n if (!this.isShareList) {\n this.beforeInit();\n }\n\n document.addEventListener(\'contextmenu\', this.hideContextMenu);\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].GOTO, function (event) {\n _this2.getFileList(event.path);\n });\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].SELECT_SHARE, this.handleSelectShare);\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].UN_SHARE, this.handleUnShare);\n },\n destroyed: function destroyed() {\n this.destroyedAction();\n },\n methods: {\n /*************************************************\r\n * PART 0 Self\r\n **************************************************/\n beforeInit: function beforeInit() {\n var _this3 = this;\n\n this.setUploaderOpts(); // Listen to ESC button to exit preview\n\n document.onkeyup = function (e) {\n switch (e.code) {\n case \'Escape\':\n if (_this3.isShowDetial) {\n _this3.$refs.previewPanel.close();\n }\n\n break;\n\n case \'Backspace\':\n _this3.backLevel();\n\n break;\n\n default:\n break;\n }\n }; // paste\n\n\n document.onpaste = function () {\n if (!_this3.isShowDetial && !_this3.isModalOpen) {\n _this3.paste(\'overwrite\');\n }\n };\n },\n destroyedAction: function destroyedAction() {\n this.uploaderInstance.off(\'dragover\');\n this.uploaderInstance.off(\'uploadStart\');\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n this.$store.commit(\'SET_OPERATE_OBJECT\', null);\n document.onpaste = null;\n document.onkeyup = null;\n },\n showSharedList: function showSharedList() {\n this.isShareList = true;\n },\n\n /**\r\n * @description: Init Funtion\r\n * @return {*}\r\n */\n init: function init() {\n if (this.isCreated) {\n this.getFileList(this.rootPath); // this.$refs.mountedList.getStorageList();\n } else {\n this.isCreated = true;\n }\n },\n\n /**\r\n * @description: Get File Tree List\r\n * @param {String} path\r\n * @return {*}\r\n */\n getFileList: function getFileList(path) {\n var _this4 = this;\n\n this.isLoading = true; // path = path.replace("//", "/")\n\n this.isShareList = false;\n this.currentPath = path;\n this.$store.commit(\'SET_CURRENT_PATH\', path);\n this.$api.folder.getList(path).then(function (res) {\n if (res.data.success == 200) {\n _this4.isLoading = false;\n _this4.currentPathName = path.split("/").pop();\n _this4.uploaderInstance.opts.query = {\n path: _this4.currentPath\n };\n var fileList = res.data.data;\n var newFileList = fileList.map(function (item) {\n return {\n date: item.date,\n isSelected: false,\n is_dir: item.is_dir,\n name: item.name,\n path: item.path,\n size: item.size,\n write: item.write,\n extensions: item.extensions\n };\n });\n _this4.listData = lodash_orderBy__WEBPACK_IMPORTED_MODULE_11___default()(newFileList, [\'is_dir\'], [\'desc\']);\n\n _this4.handelListChange(_this4.listData);\n }\n });\n },\n\n /**\r\n * @description: Reload current folder\r\n * @return {*}\r\n */\n reload: function reload() {\n this.getFileList(this.$store.state.currentPath);\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n },\n\n /**\r\n * @description: Change View List/Gird\r\n * @return {*}\r\n */\n changeView: function changeView() {\n this.isViewGird = !this.$store.state.isViewGird;\n this.$store.commit(\'SET_IS_VIEW_GRID\', this.isViewGird);\n },\n\n /**\r\n * @description: Handle Select All Action\r\n * @param {*} bool\r\n * @return {*}\r\n */\n handleSelect: function handleSelect(bool) {\n var _this5 = this;\n\n if (bool) {\n this.listData.forEach(function (item, index) {\n item.isSelected = true;\n\n _this5.$refs.listview.selectList.push(index);\n });\n } else {\n this.listData.forEach(function (item) {\n item.isSelected = false;\n });\n this.$refs.listview.selectList = [];\n }\n\n this.handelListChange(this.listData);\n },\n\n /**\r\n * @description: Handle List data change (Selected State)\r\n * @param {*} list\r\n * @return {*}\r\n */\n handelListChange: function handelListChange(list) {\n this.selectedArray = list.filter(function (item) {\n return item.isSelected;\n });\n\n if (this.selectedArray.length == list.length && list.length > 0) {\n this.selectState = "all";\n this.isSelectAll = true;\n this.selectLabel = {\n num: list.length\n };\n this.isToolbarShow = true;\n } else if (this.selectedArray.length < list.length && this.selectedArray.length > 0) {\n this.selectState = "part";\n this.isSelectAll = false;\n this.selectLabel = {\n num: this.selectedArray.length\n };\n this.isToolbarShow = true;\n } else {\n this.selectState = "none";\n this.isSelectAll = false;\n this.selectLabel = {\n num: list.length\n };\n this.isToolbarShow = false;\n }\n },\n\n /**\r\n * @description: Handle Backspace Event Back to upper level\r\n * @return {*}\r\n */\n backLevel: function backLevel() {\n if (this.isModalOpen) return false;\n var pathArr = this.$store.state.currentPath.substr(1).split("/");\n\n if (pathArr.length == 1) {\n return false;\n }\n\n var newPath = "/" + lodash_dropRight__WEBPACK_IMPORTED_MODULE_12___default()(pathArr).join("/");\n this.getFileList(newPath);\n },\n\n /**\r\n * @description: Paste Files\r\n * @return {*}\r\n */\n paste: function paste() {\n var _this6 = this;\n\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n if (this.$store.state.operateObject == null) return false;\n this.isPasting = true;\n var operateObject = this.$store.state.operateObject;\n operateObject.to = this.$store.state.currentPath;\n operateObject.style = style;\n this.$api.batch.task(operateObject).then(function (res) {\n _this6.isPasting = false;\n\n if (res.data.success == 200) {\n _this6.$store.commit(\'SET_OPERATE_OBJECT\', null);\n } else {\n _this6.$buefy.toast.open({\n message: res.data.message,\n type: \'is-danger\'\n });\n }\n });\n },\n\n /**\r\n * @description: Hide Context Menu\r\n * @return {*}\r\n */\n hideContextMenu: function hideContextMenu() {\n if (this.$refs.moreBtn) {\n this.$refs.moreBtn.isActive = false;\n }\n },\n\n /*************************************************\r\n * PART 1 Uploader\r\n **************************************************/\n\n /**\r\n * @description: Get Uploader Target URL\r\n * @return {*}\r\n */\n getTargetUrl: function getTargetUrl() {\n return "".concat(this.$protocol, "//").concat(this.$baseURL, "/v1/file/upload?token=").concat(this.$store.state.access_token);\n },\n\n /**\r\n * @description: Set Uploader Options\r\n * @return {*}\r\n */\n setUploaderOpts: function setUploaderOpts() {\n var _this7 = this;\n\n this.uploaderInstance = this.$refs.uploader.uploader;\n this.assignUploadButtons(); // Drag Over\n\n this.uploaderInstance.on(\'dragover\', function (event) {\n _this7.isDragIn = true;\n\n if (_this7.timeout !== null) {\n clearTimeout(_this7.timeout);\n }\n\n _this7.timeout = setTimeout(function () {\n _this7.isDragIn = false;\n _this7.timeout = null;\n }, 120);\n event.stopPropagation();\n event.preventDefault();\n });\n this.uploaderInstance.on(\'uploadStart\', function () {\n _this7.isDragIn = false;\n _this7.showUploadList = true;\n _this7.uploaderListHeaderText = "Uploading";\n });\n this.uploaderInstance.on(\'complete\', function () {\n _this7.getFileList(_this7.currentPath);\n\n _this7.uploaderListHeaderText = "Completed";\n });\n },\n\n /**\r\n * @description: Close Uploader List \r\n * @return {*}\r\n */\n closeUploaderList: function closeUploaderList() {\n this.showUploadList = false;\n this.uploaderInstance.cancel();\n },\n\n /**\r\n * @description: Assig nUpload Buttons\r\n * @return {*}\r\n */\n assignUploadButtons: function assignUploadButtons() {\n this.uploaderInstance.assignDrop(document.getElementById(\'dropTarget\'));\n },\n\n /*************************************************\r\n * PART 2 Modals\r\n **************************************************/\n\n /**\r\n * @description: Show Detail Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showDetailModal: function showDetailModal(item) {\n var _this8 = this;\n\n this.isModalOpen = true;\n this.panelType = this.getPanelType(item);\n\n if (this.panelType !== null) {\n this.currentItem = item;\n this.isShowDetial = true;\n } else {\n this.$buefy.modal.open({\n parent: this,\n component: _modals_DetailModal_vue__WEBPACK_IMPORTED_MODULE_26__["default"],\n hasModalCard: true,\n customClass: \'detail-panel file-modal\',\n trapFocus: true,\n canCancel: [\'escape\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n },\n events: {\n \'close\': function close() {\n _this8.isModalOpen = false;\n }\n }\n });\n }\n },\n\n /**\r\n * @description: Show New Folder Modal\r\n * @return {*}\r\n */\n showNewFolderModal: function showNewFolderModal() {\n var _this9 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFolderModal_vue__WEBPACK_IMPORTED_MODULE_27__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this9.reload();\n },\n \'close\': function close() {\n _this9.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show New File Modal\r\n * @return {*}\r\n */\n showNewFileModal: function showNewFileModal() {\n var _this10 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_NewFileModal_vue__WEBPACK_IMPORTED_MODULE_28__["default"],\n hasModalCard: true,\n customClass: \'new-folder-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n currentPath: this.currentPath\n },\n events: {\n \'reload\': function reload() {\n _this10.reload();\n },\n \'close\': function close() {\n _this10.isModalOpen = false;\n }\n }\n });\n },\n\n /**\r\n * @description: Show Rename Modal\r\n * @param {Object} item\r\n * @return {*}\r\n */\n showRenameModal: function showRenameModal(item) {\n var _this11 = this;\n\n this.isModalOpen = true;\n this.$buefy.modal.open({\n parent: this,\n component: _modals_RenameModal_vue__WEBPACK_IMPORTED_MODULE_29__["default"],\n hasModalCard: true,\n customClass: \'rename-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'reload\': function reload() {\n _this11.reload();\n },\n \'close\': function close() {\n _this11.isModalOpen = false;\n }\n },\n props: {\n item: item\n }\n });\n },\n\n /*************************************************\r\n * PART 3 Toolbar Action\r\n **************************************************/\n\n /**\r\n * @description: handle Toolbar Close\r\n * @return {*}\r\n */\n handleClose: function handleClose() {\n this.isSelectAll = false;\n this.handleSelect(this.isSelectAll);\n },\n\n /**\r\n * @description: handle Toolbar Remove\r\n * @return {*}\r\n */\n handleRemove: function handleRemove() {\n var _this12 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Deleting files\'),\n message: this.$t(\'Are you sure you want to <b>delete</b> these files? This action cannot be undone.\'),\n confirmText: this.$t(\'Delete\'),\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this12.deleteItem(_this12.selectedArray);\n\n _this12.handleClose();\n }\n });\n },\n\n /**\r\n * @description: Handle Toolbar Move\r\n * @return {*}\r\n */\n handleMove: function handleMove() {\n this.operate(\'move\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: Handle Toolbar copy\r\n * @return {*}\r\n */\n handleCopy: function handleCopy() {\n this.operate(\'copy\', this.selectedArray);\n this.handleClose();\n },\n\n /**\r\n * @description: handle Toolbar Download\r\n * @return {*}\r\n */\n handleDownload: function handleDownload() {\n var downItem = this.selectedArray.length == 1 ? this.selectedArray[0] : this.selectedArray;\n this.downloadFile(downItem);\n this.handleClose();\n },\n\n /*************************************************\r\n * PART 4 Share Action\r\n **************************************************/\n handleUnShare: function handleUnShare(item) {\n var _this13 = this;\n\n this.$buefy.dialog.confirm({\n title: this.$t(\'Unsharing Folder\'),\n message: this.$t(\'Are you sure you want to unshare this Folder?\'),\n confirmText: this.$t(\'UnShare\'),\n cancelText: this.$t(\'Cancel\'),\n iconPack: \'casa\',\n icon: \'danger\',\n type: \'is-danger\',\n hasIcon: true,\n onConfirm: function onConfirm() {\n _this13.$api.samba.deleteShare(item.id).then(function () {\n _this13.reloadShare();\n\n _this13.$buefy.toast.open({\n message: _this13.$t(\'Folder unshared.\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this13.$buefy.toast.open({\n message: _this13.$t(\'Unshared failed.\'),\n type: \'is-danger\'\n });\n });\n }\n });\n },\n reloadShare: function reloadShare() {\n if (this.isShareList) {\n this.$refs.shareList.getSharedList();\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n } else {\n this.reload();\n }\n },\n handleSelectShare: function handleSelectShare() {\n var _this14 = this;\n\n this.$buefy.modal.open({\n parent: this,\n component: _shared_SelectShareModal_vue__WEBPACK_IMPORTED_MODULE_20__["default"],\n hasModalCard: true,\n customClass: \'share-detial-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {\n \'close\': function close() {// this.isModalOpen = false\n },\n \'reload\': function reload() {\n if (_this14.isShareList) {\n _this14.$refs.shareList.getSharedList();\n\n _this14.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_15__["default"].RELOAD_FILE_LIST);\n } else {\n _this14.reload();\n }\n }\n }\n });\n },\n getShareLink: function getShareLink(item) {\n this.$buefy.modal.open({\n parent: this,\n component: _shared_ShareDetial_vue__WEBPACK_IMPORTED_MODULE_21__["default"],\n hasModalCard: true,\n customClass: \'share-detial-panel file-modal\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n item: item\n }\n });\n }\n },\n sockets: {\n file_operate: function file_operate(data) {\n var _this15 = this;\n\n var taskList = data.body.file_operate.data;\n taskList.forEach(function (task) {\n if (task.finished && task.to === _this15.currentPath) {\n _this15.reload();\n }\n });\n },\n sys_hardware_status: function sys_hardware_status() {// USB\n // this.usbDisks = data.body.sys_usb\n },\n storage_status: function storage_status() {\n // Storage\n this.reload();\n },\n sys_usb: function sys_usb() {\n var _this16 = this;\n\n setTimeout(function () {\n if (_this16.currentPath == "/DATA") {\n _this16.reload();\n }\n }, 500);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/FilePanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js&":/*!********************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/components/ActionButton.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_5__["mixin"]],\n inject: [\'filePanel\'],\n props: {\n cols: Number,\n index: Number,\n item: Object\n },\n data: function data() {\n return {\n verticalPos: "bottom",\n isConfirmed: false,\n shareId: ""\n };\n },\n computed: {\n horizontalPos: function horizontalPos() {\n return (this.index + 1) % this.cols == 0 ? "left" : "right";\n },\n isWallpaperType: function isWallpaperType() {\n return this.item.is_dir ? false : _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__["wallpaperType"].includes(this.getFileExt(this.item));\n },\n isShared: function isShared() {\n var extensions = this.item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(extensions, \'share\')) {\n return extensions.share.shared === "true";\n } else {\n return false;\n }\n }\n }\n },\n mounted: function mounted() {\n document.addEventListener(\'contextmenu\', this.hideContextMenu);\n },\n destroyed: function destroyed() {\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n },\n methods: {\n dorpActiveChange: function dorpActiveChange($event, el) {\n if ($event) {\n this.isConfirmed = false;\n }\n\n var trigger = document.getElementById(el);\n var bottomOffset = window.innerHeight - trigger.getBoundingClientRect().y - 216;\n this.verticalPos = bottomOffset > 0 ? "bottom" : "top";\n },\n hideContextMenu: function hideContextMenu() {\n this.$refs.dropDown.isActive = false;\n },\n rename: function rename() {\n this.$refs.dropDown.toggle();\n this.filePanel.showRenameModal(this.item);\n },\n shareFoler: function shareFoler() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var data;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.$refs.dropDown.toggle();\n\n data = [{\n path: _this.item.path,\n anonymous: true\n }];\n _context.prev = 2;\n _context.next = 5;\n return _this.$api.samba.createShare(data);\n\n case 5:\n _this.filePanel.getShareLink(_this.item);\n\n _this.filePanel.reloadShare();\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](2);\n _this.isSaving = false;\n\n _this.$buefy.toast.open({\n message: _context.t0.response.data.message,\n type: \'is-danger\'\n });\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 9]]);\n }))();\n },\n unShare: function unShare() {\n this.$refs.dropDown.toggle();\n var data = {\n id: this.item.extensions.share.id\n };\n this.filePanel.handleUnShare(data);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/components/ActionButton.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ContextMenu.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_5__["mixin"]],\n inject: [\'filePanel\'],\n props: {\n cols: Number,\n index: Number,\n item: Object\n },\n data: function data() {\n return {\n verticalPos: "bottom",\n isConfirmed: false,\n shareId: ""\n };\n },\n computed: {\n horizontalPos: function horizontalPos() {\n return (this.index + 1) % this.cols == 0 ? "left" : "right";\n },\n isWallpaperType: function isWallpaperType() {\n return this.item.is_dir ? false : _mixins_mixin__WEBPACK_IMPORTED_MODULE_5__["wallpaperType"].includes(this.getFileExt(this.item));\n },\n isShared: function isShared() {\n var extensions = this.item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_6___default()(extensions, \'share\')) {\n return extensions.share.shared === "true";\n } else {\n return false;\n }\n }\n }\n },\n mounted: function mounted() {\n document.addEventListener(\'contextmenu\', this.hideContextMenu);\n },\n destroyed: function destroyed() {\n document.removeEventListener(\'contextmenu\', this.hideContextMenu);\n },\n methods: {\n dorpActiveChange: function dorpActiveChange($event, el) {\n if ($event) {\n this.isConfirmed = false;\n }\n\n var trigger = document.getElementById(el);\n var bottomOffset = window.innerHeight - trigger.getBoundingClientRect().y - 216;\n this.verticalPos = bottomOffset > 0 ? "bottom" : "top";\n },\n hideContextMenu: function hideContextMenu() {\n this.$refs.dropDown.isActive = false;\n },\n rename: function rename() {\n this.$refs.dropDown.toggle();\n this.filePanel.showRenameModal(this.item);\n },\n shareFoler: function shareFoler() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var data;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.$refs.dropDown.toggle();\n\n data = [{\n path: _this.item.path,\n anonymous: true\n }];\n _context.prev = 2;\n _context.next = 5;\n return _this.$api.samba.createShare(data);\n\n case 5:\n _this.filePanel.getShareLink(_this.item);\n\n _this.filePanel.reloadShare();\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](2);\n _this.isSaving = false;\n\n _this.$buefy.toast.open({\n message: _context.t0.response.data.message,\n type: \'is-danger\'\n });\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 9]]);\n }))();\n },\n unShare: function unShare() {\n this.$refs.dropDown.toggle();\n var data = {\n id: this.item.extensions.share.id\n };\n this.filePanel.handleUnShare(data);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/components/ActionButton.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/ContextMenu.vue?vue&type=script&lang=js&":/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/components/ContextMenu.vue?vue&type=script&lang=js& ***!\*******************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_6__["mixin"]],\n inject: [\'filePanel\'],\n data: function data() {\n return {\n verticalPos: "bottom",\n horizontalPos: "right",\n isConfirmed: false,\n x: Number,\n y: Number,\n showDetial: false,\n showSingleEdit: true,\n ani: "fade1",\n item: {},\n items: [],\n hasPasteData: this.$store.state.operateObject != null\n };\n },\n computed: {\n close: function close() {\n return this.item == undefined;\n },\n isWallpaperType: function isWallpaperType() {\n return this.item.is_dir ? false : _mixins_mixin__WEBPACK_IMPORTED_MODULE_6__["wallpaperType"].includes(this.getFileExt(this.item));\n },\n isShared: function isShared() {\n var extensions = this.item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_7___default()(extensions, \'share\')) {\n return extensions.share.shared === "true";\n } else {\n return false;\n }\n }\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n },\n showDetial: function showDetial(val) {\n if (!val) {\n this.assignBtn();\n }\n }\n },\n mounted: function mounted() {\n this.assignBtn();\n },\n methods: {\n open: function open(event, item) {\n var _this = this;\n\n this.item = item;\n var bounced = event.target.getAttribute(\'class\').includes(\'dropdown-menu\');\n\n if (!bounced) {\n this.showDetial = item != undefined;\n\n if (this.showDetial) {\n var isInSelected = this.filePanel.selectedArray.some(function (obj) {\n return item.path == obj.path;\n });\n\n if (this.filePanel.selectedArray.length > 1 && isInSelected) {\n this.items = this.filePanel.selectedArray;\n this.showSingleEdit = false;\n } else {\n this.items = [item];\n this.item = item;\n this.showSingleEdit = true;\n }\n }\n\n this.$refs.dropDown.isActive = false;\n this.$nextTick(function () {\n _this.x = event.clientX;\n _this.y = event.clientY;\n var rightOffset = window.innerWidth - event.clientX - 184;\n _this.horizontalPos = rightOffset > 0 ? "right" : "left";\n _this.$refs.dropDown.isActive = true;\n });\n }\n },\n assignBtn: function assignBtn() {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.filePanel.uploaderInstance.assignBrowse(document.getElementById(\'upfileBtn\'));\n\n _this2.filePanel.uploaderInstance.assignBrowse(document.getElementById(\'upfolderBtn\'), true);\n });\n },\n dorpActiveChange: function dorpActiveChange($event, el) {\n if ($event) {\n this.isConfirmed = false;\n }\n\n var trigger = document.getElementById(el);\n var bottomOffset = window.innerHeight - trigger.getBoundingClientRect().y - 216;\n this.verticalPos = bottomOffset > 0 ? "bottom" : "top";\n },\n rename: function rename() {\n this.$refs.dropDown.toggle();\n this.filePanel.showRenameModal(this.item);\n },\n // Paste File\n paste: function paste() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n this.$refs.dropDown.toggle();\n this.filePanel.paste(style);\n },\n download: function download() {\n this.$refs.dropDown.toggle();\n var downItem = this.items.length == 1 ? this.items[0] : this.items;\n this.downloadFile(downItem);\n },\n shareFoler: function shareFoler() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var data;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this3.$refs.dropDown.toggle();\n\n data = [{\n path: _this3.item.path,\n anonymous: true\n }];\n _context.prev = 2;\n _context.next = 5;\n return _this3.$api.samba.createShare(data);\n\n case 5:\n _this3.filePanel.reloadShare();\n\n _this3.filePanel.getShareLink(_this3.item);\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](2);\n _this3.isSaving = false;\n\n _this3.$buefy.toast.open({\n message: _context.t0.response.data.message,\n type: \'is-danger\'\n });\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 9]]);\n }))();\n },\n unShare: function unShare() {\n this.$refs.dropDown.toggle();\n var data = {\n id: this.item.extensions.share.id\n };\n this.filePanel.handleUnShare(data);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/components/ContextMenu.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/EmptyHolder.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_6__["mixin"]],\n inject: [\'filePanel\'],\n data: function data() {\n return {\n verticalPos: "bottom",\n horizontalPos: "right",\n isConfirmed: false,\n x: Number,\n y: Number,\n showDetial: false,\n showSingleEdit: true,\n ani: "fade1",\n item: {},\n items: [],\n hasPasteData: this.$store.state.operateObject != null\n };\n },\n computed: {\n close: function close() {\n return this.item == undefined;\n },\n isWallpaperType: function isWallpaperType() {\n return this.item.is_dir ? false : _mixins_mixin__WEBPACK_IMPORTED_MODULE_6__["wallpaperType"].includes(this.getFileExt(this.item));\n },\n isShared: function isShared() {\n var extensions = this.item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_7___default()(extensions, \'share\')) {\n return extensions.share.shared === "true";\n } else {\n return false;\n }\n }\n }\n },\n watch: {\n \'$store.state.operateObject\': {\n handler: function handler(val) {\n this.hasPasteData = val != null;\n },\n deep: true\n },\n showDetial: function showDetial(val) {\n if (!val) {\n this.assignBtn();\n }\n }\n },\n mounted: function mounted() {\n this.assignBtn();\n },\n methods: {\n open: function open(event, item) {\n var _this = this;\n\n this.item = item;\n var bounced = event.target.getAttribute(\'class\').includes(\'dropdown-menu\');\n\n if (!bounced) {\n this.showDetial = item != undefined;\n\n if (this.showDetial) {\n var isInSelected = this.filePanel.selectedArray.some(function (obj) {\n return item.path == obj.path;\n });\n\n if (this.filePanel.selectedArray.length > 1 && isInSelected) {\n this.items = this.filePanel.selectedArray;\n this.showSingleEdit = false;\n } else {\n this.items = [item];\n this.item = item;\n this.showSingleEdit = true;\n }\n }\n\n this.$refs.dropDown.isActive = false;\n this.$nextTick(function () {\n _this.x = event.clientX;\n _this.y = event.clientY;\n var rightOffset = window.innerWidth - event.clientX - 184;\n _this.horizontalPos = rightOffset > 0 ? "right" : "left";\n _this.$refs.dropDown.isActive = true;\n });\n }\n },\n assignBtn: function assignBtn() {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.filePanel.uploaderInstance.assignBrowse(document.getElementById(\'upfileBtn\'));\n\n _this2.filePanel.uploaderInstance.assignBrowse(document.getElementById(\'upfolderBtn\'), true);\n });\n },\n dorpActiveChange: function dorpActiveChange($event, el) {\n if ($event) {\n this.isConfirmed = false;\n }\n\n var trigger = document.getElementById(el);\n var bottomOffset = window.innerHeight - trigger.getBoundingClientRect().y - 216;\n this.verticalPos = bottomOffset > 0 ? "bottom" : "top";\n },\n rename: function rename() {\n this.$refs.dropDown.toggle();\n this.filePanel.showRenameModal(this.item);\n },\n // Paste File\n paste: function paste() {\n var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "overwrite";\n this.$refs.dropDown.toggle();\n this.filePanel.paste(style);\n },\n download: function download() {\n this.$refs.dropDown.toggle();\n var downItem = this.items.length == 1 ? this.items[0] : this.items;\n this.downloadFile(downItem);\n },\n shareFoler: function shareFoler() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var data;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this3.$refs.dropDown.toggle();\n\n data = [{\n path: _this3.item.path,\n anonymous: true\n }];\n _context.prev = 2;\n _context.next = 5;\n return _this3.$api.samba.createShare(data);\n\n case 5:\n _this3.filePanel.reloadShare();\n\n _this3.filePanel.getShareLink(_this3.item);\n\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](2);\n _this3.isSaving = false;\n\n _this3.$buefy.toast.open({\n message: _context.t0.response.data.message,\n type: \'is-danger\'\n });\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 9]]);\n }))();\n },\n unShare: function unShare() {\n this.$refs.dropDown.toggle();\n var data = {\n id: this.item.extensions.share.id\n };\n this.filePanel.handleUnShare(data);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/components/ContextMenu.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/components/EmptyHolder.vue?vue&type=script&lang=js&":/*!*******************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/components/EmptyHolder.vue?vue&type=script&lang=js& ***!\*******************************************************************************************************************************************************************************************************************************************************************************/@@ -138,7 +138,7 @@/*!*********************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/modals/NewNetworkStorage.vue?vue&type=script&lang=js& ***!\*********************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default.a],\n props: {\n item: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n isGuest: true,\n isConnecting: false,\n host: "",\n username: "",\n password: "",\n selected: null,\n data: [{\n host: \'smb://192.168.1.1\',\n username: \'\',\n password: \'\'\n }, {\n host: \'smb://192.168.1.2\',\n username: \'root\',\n password: \'password\'\n }, {\n host: \'smb://192.168.1.3\',\n username: \'\',\n password: \'\'\n }, {\n host: \'smb://192.168.1.4\',\n username: \'\',\n password: \'\'\n }]\n };\n },\n computed: {\n filteredDataObj: function filteredDataObj() {\n return this.$store.state.networkStorage;\n }\n },\n watch: {\n selected: function selected(val) {\n this.isGuest = val.guest;\n\n if (!val.guest) {\n this.username = val.username;\n this.password = val.password;\n }\n }\n },\n created: function created() {},\n mounted: function mounted() {\n var _this = this;\n\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n });\n setTimeout(function () {\n _this.$refs.inputs.focus();\n }, 500);\n },\n methods: {\n connect: function connect() {\n var _this2 = this;\n\n if (this.host.startsWith("smb://") || this.host.startsWith("nfs://")) {\n if (!this.isGuest && (this.username == "" || this.password == "")) {\n this.$buefy.toast.open({\n message: this.$t("Username or password cannot be empty."),\n type: \'is-danger\'\n });\n return;\n } else {\n var host = this.host.replace("smb://", "").replace("nfs://", "");\n var data = this.isGuest ? {\n host: host,\n username: "guest"\n } : {\n host: host,\n username: this.username,\n password: this.password\n };\n this.isConnecting = true;\n this.$api.samba.createConnection(data).then(function (res) {\n _this2.isConnecting = false;\n\n _this2.saveNewLoginInfoToLocalStorage();\n\n _this2.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_5__["default"].RELOAD_MOUNT_LIST);\n\n var item = {\n path: res.data.data.mount_point\n };\n\n _this2.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_5__["default"].GOTO, item);\n\n _this2.$emit(\'close\');\n }).catch(function (err) {\n _this2.isConnecting = false;\n\n _this2.$buefy.toast.open({\n message: _this2.$t(err.response.data.message),\n type: \'is-danger\'\n });\n });\n }\n } else {\n this.$buefy.toast.open({\n message: this.$t("Please enter a correct Samba address!"),\n type: \'is-danger\'\n });\n return;\n }\n },\n saveNewLoginInfoToLocalStorage: function saveNewLoginInfoToLocalStorage() {\n var oldInfo = this.$store.state.networkStorage;\n var loginItem = this.isGuest ? {\n host: this.host,\n guest: true,\n username: "",\n password: ""\n } : {\n host: this.host,\n guest: false,\n username: this.username,\n password: ""\n };\n var isInArray = oldInfo.some(function (item) {\n return item.host === loginItem.host && item.guest === loginItem.guest;\n });\n\n if (!isInArray) {\n oldInfo.push(loginItem);\n this.$store.commit(\'SET_NETWORK_STORAGE\', oldInfo);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/modals/NewNetworkStorage.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/modals/RenameModal.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_4___default.a],\n props: {\n item: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n isGuest: true,\n isConnecting: false,\n host: "",\n username: "",\n password: "",\n selected: null,\n data: [{\n host: \'smb://192.168.1.1\',\n username: \'\',\n password: \'\'\n }, {\n host: \'smb://192.168.1.2\',\n username: \'root\',\n password: \'password\'\n }, {\n host: \'smb://192.168.1.3\',\n username: \'\',\n password: \'\'\n }, {\n host: \'smb://192.168.1.4\',\n username: \'\',\n password: \'\'\n }]\n };\n },\n computed: {\n filteredDataObj: function filteredDataObj() {\n return this.$store.state.networkStorage;\n }\n },\n watch: {\n selected: function selected(val) {\n this.isGuest = val.guest;\n\n if (!val.guest) {\n this.username = val.username;\n this.password = val.password;\n }\n }\n },\n created: function created() {},\n mounted: function mounted() {\n var _this = this;\n\n //Smooth \n this.$smoothReflow({\n el: \'.modal-card\',\n property: [\'height\', \'width\'],\n transition: \'height .25s ease, width .75s ease-out\'\n });\n setTimeout(function () {\n _this.$refs.inputs.focus();\n }, 500);\n },\n methods: {\n connect: function connect() {\n var _this2 = this;\n\n if (this.host.startsWith("smb://") || this.host.startsWith("nfs://")) {\n if (!this.isGuest && (this.username == "" || this.password == "")) {\n this.$buefy.toast.open({\n message: this.$t("Username or password cannot be empty."),\n type: \'is-danger\'\n });\n return;\n } else {\n var host = this.host.replace("smb://", "").replace("nfs://", "");\n var data = this.isGuest ? {\n host: host,\n username: "guest"\n } : {\n host: host,\n username: this.username,\n password: this.password\n };\n this.isConnecting = true;\n this.$api.samba.createConnection(data).then(function (res) {\n _this2.isConnecting = false;\n\n _this2.saveNewLoginInfoToLocalStorage();\n\n _this2.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_5__["default"].RELOAD_MOUNT_LIST);\n\n var item = {\n path: res.data.data.mount_point\n };\n\n _this2.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_5__["default"].GOTO, item);\n\n _this2.$emit(\'close\');\n }).catch(function (err) {\n _this2.isConnecting = false;\n\n _this2.$buefy.toast.open({\n message: _this2.$t(err.response.data.data),\n type: \'is-danger\'\n });\n });\n }\n } else {\n this.$buefy.toast.open({\n message: this.$t("Please enter a correct Samba address!"),\n type: \'is-danger\'\n });\n return;\n }\n },\n saveNewLoginInfoToLocalStorage: function saveNewLoginInfoToLocalStorage() {\n var oldInfo = this.$store.state.networkStorage;\n var loginItem = this.isGuest ? {\n host: this.host,\n guest: true,\n username: "",\n password: ""\n } : {\n host: this.host,\n guest: false,\n username: this.username,\n password: ""\n };\n var isInArray = oldInfo.some(function (item) {\n return item.host === loginItem.host && item.guest === loginItem.guest;\n });\n\n if (!isInArray) {\n oldInfo.push(loginItem);\n this.$store.commit(\'SET_NETWORK_STORAGE\', oldInfo);\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/modals/NewNetworkStorage.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/modals/RenameModal.vue?vue&type=script&lang=js&":/*!***************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/modals/RenameModal.vue?vue&type=script&lang=js& ***!\***************************************************************************************************************************************************************************************************************************************************************************/@@ -154,7 +154,7 @@/*!********************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/shared/SelectShareModal.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ \"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ \"./node_modules/core-js/modules/es.array.find.js\");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data: function data() {\n return {\n isSaving: false,\n rootDataList: [{\n name: 'Root',\n icon: 'folder-root',\n pack: 'casa',\n path: '/',\n visible: true,\n selected: false,\n extensions: null\n }],\n initFolders: [{\n name: 'DATA',\n icon: 'folder-data',\n pack: 'casa',\n path: '/DATA',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Documents',\n icon: 'folder-documents',\n pack: 'casa',\n path: '/DATA/Documents',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Downloads',\n icon: 'folder-downloads',\n pack: 'casa',\n path: '/DATA/Downloads',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Gallery',\n icon: 'folder-gallery',\n pack: 'casa',\n path: '/DATA/Gallery',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Media',\n icon: 'folder-media',\n pack: 'casa',\n path: '/DATA/Media',\n visible: true,\n selected: true,\n extensions: null\n }]\n };\n },\n created: function created() {\n this.getNewList();\n },\n methods: {\n /**\r\n * @description: Get new list\r\n * @return {*}\r\n */\n getNewList: function getNewList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee() {\n var newList, dataList, contactList;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.folder.getList(_this.rootDataList[0].path);\n\n case 2:\n newList = _context.sent;\n _context.next = 5;\n return _this.$api.folder.getList(_this.initFolders[0].path);\n\n case 5:\n dataList = _context.sent;\n contactList = [];\n contactList.push.apply(contactList, Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(newList.data.data).concat(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(dataList.data.data)));\n\n _this.initFolders.forEach(function (dir) {\n dir.visible = contactList.some(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n dir.extensions = contactList.find(function (item) {\n return item.path == dir.path && item.is_dir;\n }).extensions;\n });\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Toggle folder select\r\n * @param {*} item\r\n * @return {*}\r\n */\n toggle: function toggle(item) {\n item.selected = !item.selected;\n },\n\n /**\r\n * @description: Save shares\r\n * @return {*}\r\n */\n saveShares: function saveShares() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee2() {\n var selectedList, data;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.isSaving = true;\n selectedList = _this2.initFolders.filter(function (item) {\n return item.selected;\n });\n data = selectedList.map(function (item) {\n return {\n path: item.path,\n anonymous: true\n };\n });\n _context2.prev = 3;\n _context2.next = 6;\n return _this2.$api.samba.createShare(data);\n\n case 6:\n _this2.isSaving = false;\n\n _this2.$emit('close');\n\n _this2.$emit('reload');\n\n _context2.next = 15;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2[\"catch\"](3);\n _this2.isSaving = false;\n\n _this2.$buefy.toast.open({\n message: _context2.t0.response.data.message,\n type: 'is-danger'\n });\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[3, 11]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/SelectShareModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareDetial.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ \"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ \"./node_modules/core-js/modules/es.array.find.js\");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ \"./node_modules/core-js/modules/es.array.filter.js\");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n data: function data() {\n return {\n isSaving: false,\n rootDataList: [{\n name: 'Root',\n icon: 'folder-root',\n pack: 'casa',\n path: '/',\n visible: true,\n selected: false,\n extensions: null\n }],\n initFolders: [{\n name: 'DATA',\n icon: 'folder-data',\n pack: 'casa',\n path: '/DATA',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Documents',\n icon: 'folder-documents',\n pack: 'casa',\n path: '/DATA/Documents',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Downloads',\n icon: 'folder-downloads',\n pack: 'casa',\n path: '/DATA/Downloads',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Gallery',\n icon: 'folder-gallery',\n pack: 'casa',\n path: '/DATA/Gallery',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Media',\n icon: 'folder-media',\n pack: 'casa',\n path: '/DATA/Media',\n visible: true,\n selected: true,\n extensions: null\n }]\n };\n },\n created: function created() {\n this.getNewList();\n },\n methods: {\n /**\r\n * @description: Get new list\r\n * @return {*}\r\n */\n getNewList: function getNewList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee() {\n var newList, dataList, contactList;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.folder.getList(_this.rootDataList[0].path);\n\n case 2:\n newList = _context.sent;\n _context.next = 5;\n return _this.$api.folder.getList(_this.initFolders[0].path);\n\n case 5:\n dataList = _context.sent;\n contactList = [];\n contactList.push.apply(contactList, Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(newList.data.data).concat(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(dataList.data.data)));\n\n _this.initFolders.forEach(function (dir) {\n dir.visible = contactList.some(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n dir.extensions = contactList.find(function (item) {\n return item.path == dir.path && item.is_dir;\n }).extensions;\n });\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Toggle folder select\r\n * @param {*} item\r\n * @return {*}\r\n */\n toggle: function toggle(item) {\n item.selected = !item.selected;\n },\n\n /**\r\n * @description: Save shares\r\n * @return {*}\r\n */\n saveShares: function saveShares() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee2() {\n var selectedList, data;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _this2.isSaving = true;\n selectedList = _this2.initFolders.filter(function (item) {\n return item.selected;\n });\n data = selectedList.map(function (item) {\n return {\n path: item.path,\n anonymous: true\n };\n });\n _context2.prev = 3;\n _context2.next = 6;\n return _this2.$api.samba.createShare(data);\n\n case 6:\n _this2.isSaving = false;\n\n _this2.$emit('close');\n\n _this2.$emit('reload');\n\n _context2.next = 15;\n break;\n\n case 11:\n _context2.prev = 11;\n _context2.t0 = _context2[\"catch\"](3);\n _this2.isSaving = false;\n\n _this2.$buefy.toast.open({\n message: _context2.t0.response.data.message,\n type: 'is-danger'\n });\n\n case 15:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[3, 11]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/SelectShareModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareDetial.vue?vue&type=script&lang=js&":/*!***************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/shared/ShareDetial.vue?vue&type=script&lang=js& ***!\***************************************************************************************************************************************************************************************************************************************************************************/@@ -162,11 +162,11 @@/*!********************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/shared/ShareEntryButton.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-popperjs */ "./node_modules/vue-popperjs/dist/vue-popper.min.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_popperjs__WEBPACK_IMPORTED_MODULE_3__);\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar sharedInitData = "shared_init_data";\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n active: {\n type: Boolean,\n default: false\n }\n },\n components: {\n Popper: vue_popperjs__WEBPACK_IMPORTED_MODULE_3___default.a\n },\n data: function data() {\n return {};\n },\n created: function created() {},\n mounted: function mounted() {\n this.checkInit(); // this.showTip()\n },\n methods: {\n checkInit: function checkInit() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var res, resData;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this.$api.users.getCustomStorage(sharedInitData);\n\n case 3:\n res = _context.sent;\n resData = res.data.data;\n console.log(resData);\n\n if (resData) {\n if (!resData.isInit) {\n _this.showTip();\n }\n } else {\n _this.showTip();\n }\n\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](0);\n console.log(_context.t0);\n\n case 12:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 9]]);\n }))();\n },\n selectShare: function selectShare() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_2__["default"].SELECT_SHARE); // this.$tours[\'myTour\'].skip()\n },\n showTip: function showTip() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.$refs.tip.doShow();\n }, 500);\n },\n hideTip: function hideTip() {\n this.$refs.tip.doClose();\n this.$api.users.setCustomStorage(sharedInitData, {\n isInit: true\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/ShareEntryButton.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareListPage.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vue-popperjs */ "./node_modules/vue-popperjs/dist/vue-popper.min.js");\n/* harmony import */ var vue_popperjs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(vue_popperjs__WEBPACK_IMPORTED_MODULE_3__);\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar sharedInitData = "shared_init_data";\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n active: {\n type: Boolean,\n default: false\n }\n },\n components: {\n Popper: vue_popperjs__WEBPACK_IMPORTED_MODULE_3___default.a\n },\n data: function data() {\n return {};\n },\n created: function created() {},\n mounted: function mounted() {\n this.checkInit(); // this.showTip()\n },\n methods: {\n checkInit: function checkInit() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var res, resData;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this.$api.users.getCustomStorage(sharedInitData);\n\n case 3:\n res = _context.sent;\n resData = res.data.data;\n console.log(resData);\n\n if (resData) {\n if (!resData.isInit) {\n _this.showTip();\n }\n } else {\n _this.showTip();\n }\n\n _context.next = 12;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](0);\n console.log(_context.t0);\n\n case 12:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 9]]);\n }))();\n },\n selectShare: function selectShare() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_2__["default"].SELECT_SHARE); // this.$tours[\'myTour\'].skip()\n },\n showTip: function showTip() {\n var _this2 = this;\n\n setTimeout(function () {\n _this2.$refs.tip.doShow();\n }, 500);\n },\n hideTip: function hideTip() {\n this.$refs.tip.doClose();\n this.$api.users.setCustomStorage(sharedInitData, {\n isInit: true\n });\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/ShareEntryButton.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareListPage.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/shared/ShareListPage.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _ShareListView_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ShareListView.vue */ "./src/components/filebrowser/shared/ShareListView.vue");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n list: [],\n isLoading: true\n };\n },\n components: {\n ShareListView: _ShareListView_vue__WEBPACK_IMPORTED_MODULE_5__["default"]\n },\n mounted: function mounted() {\n this.getSharedList();\n },\n methods: {\n getSharedList: function getSharedList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var list;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this.$api.samba.getShares();\n\n case 4:\n list = _context.sent;\n _this.isLoading = false;\n _this.list = list.data.data.map(function (item) {\n var name = item.path.split(\'/\').pop();\n return {\n id: item.id,\n date: "",\n isSelected: false,\n is_dir: true,\n name: name,\n path: item.path,\n size: 0,\n write: false\n };\n });\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](1);\n _this.isLoading = false;\n _this.list = [];\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 9]]);\n }))();\n },\n selectShare: function selectShare() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_6__["default"].SELECT_SHARE);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/ShareListPage.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareListView.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _ShareListView_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ShareListView.vue */ "./src/components/filebrowser/shared/ShareListView.vue");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n list: [],\n isLoading: true\n };\n },\n components: {\n ShareListView: _ShareListView_vue__WEBPACK_IMPORTED_MODULE_5__["default"]\n },\n mounted: function mounted() {\n this.getSharedList();\n },\n methods: {\n getSharedList: function getSharedList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var list;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isLoading = true;\n _context.prev = 1;\n _context.next = 4;\n return _this.$api.samba.getShares();\n\n case 4:\n list = _context.sent;\n _this.isLoading = false;\n _this.list = list.data.data.map(function (item) {\n var name = item.path.split(\'/\').pop();\n return {\n id: item.id,\n date: "",\n isSelected: false,\n is_dir: true,\n name: name,\n path: item.path,\n size: 0,\n write: false\n };\n });\n _context.next = 13;\n break;\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context["catch"](1);\n _this.isLoading = false;\n _this.list = [];\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 9]]);\n }))();\n },\n selectShare: function selectShare() {\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_6__["default"].SELECT_SHARE);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/shared/ShareListPage.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/shared/ShareListView.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/shared/ShareListView.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************************/@@ -174,11 +174,11 @@/*!**************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/sidebar/MountList.vue?vue&type=script&lang=js& ***!\**************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TreeListItem.vue */ "./src/components/filebrowser/sidebar/TreeListItem.vue");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n TreeListItem: _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_9__["default"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_7__["mixin"]],\n inject: [\'filePanel\'],\n props: {\n path: {\n type: String,\n default: ""\n },\n autoLoad: {\n type: Boolean,\n default: false\n },\n isActive: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n isLoading: false,\n usbStorageList: [],\n localStorageList: [],\n networkStorageList: []\n };\n },\n created: function created() {\n this.getStorageList();\n },\n mounted: function mounted() {\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_8__["default"].RELOAD_MOUNT_LIST, this.getStorageList);\n },\n methods: {\n getStorageList: function getStorageList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var usbListRes, usbStorageArray, storageRes, storageArray, networkRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isLoading = true; // USB Storage\n\n _context.prev = 1;\n _context.next = 4;\n return _this.$api.disks.getUsbs();\n\n case 4:\n usbListRes = _context.sent;\n usbStorageArray = [];\n usbListRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n usbStorageArray.push(part);\n });\n });\n _this.usbStorageList = usbStorageArray.map(function (storage) {\n return {\n name: storage.name,\n icon: \'storage-USB\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context["catch"](1);\n _this.isLoading = false;\n console.log(_context.t0.reponse.message);\n\n case 14:\n _context.prev = 14;\n _context.next = 17;\n return _this.$api.storage.list();\n\n case 17:\n storageRes = _context.sent;\n storageArray = [];\n storageRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n storageArray.push(part);\n });\n });\n _this.localStorageList = storageArray.map(function (storage) {\n return {\n name: storage.label,\n icon: \'storage-other\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 27;\n break;\n\n case 23:\n _context.prev = 23;\n _context.t1 = _context["catch"](14);\n _this.isLoading = false;\n console.log(_context.t1.reponse.message);\n\n case 27:\n _context.prev = 27;\n _context.next = 30;\n return _this.$api.samba.getConnections();\n\n case 30:\n networkRes = _context.sent;\n _this.networkStorageList = networkRes.data.data.map(function (storage) {\n return {\n id: storage.id,\n name: storage.host,\n icon: \'storage-network\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 38;\n break;\n\n case 34:\n _context.prev = 34;\n _context.t2 = _context["catch"](27);\n _this.isLoading = false;\n console.log(_context.t2.reponse.message);\n\n case 38:\n _this.isLoading = false;\n\n case 39:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 10], [14, 23], [27, 34]]);\n }))();\n },\n // umount usb storage\n umountUsb: function umountUsb(item) {\n var _this2 = this;\n\n this.$api.disks.umountUsb({\n mount_point: item.path\n }).then(function () {\n _this2.getStorageList();\n\n _this2.goToDataFolder(item);\n\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Eject Success\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Eject Failed\'),\n type: \'is-danger\'\n });\n });\n },\n // umount network storage\n umountNetwork: function umountNetwork(item) {\n var _this3 = this;\n\n this.$api.samba.deleteConnection(item.id).then(function () {\n _this3.getStorageList();\n\n _this3.goToDataFolder(item);\n\n _this3.$buefy.toast.open({\n message: _this3.$t(\'Eject Success\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this3.$buefy.toast.open({\n message: _this3.$t(\'Eject Failed\'),\n type: \'is-danger\'\n });\n });\n },\n // go to DATA folder\n goToDataFolder: function goToDataFolder(item) {\n if (this.$store.state.currentPath.startsWith(item.path)) {\n this.filePanel.getFileList(\'/DATA\');\n }\n }\n },\n sockets: {\n sys_usb: function sys_usb() {\n var _this4 = this;\n\n setTimeout(function () {\n _this4.$api.disks.getUsbs().then(function (res) {\n var usbStorageArray = [];\n res.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n usbStorageArray.push(part);\n });\n });\n _this4.usbStorageList = usbStorageArray.map(function (storage) {\n return {\n name: storage.name,\n icon: \'storage-USB\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n }).catch(function (error) {\n console.log(error.reponse.message);\n });\n }, 500);\n },\n storage_status: function storage_status() {\n var _this5 = this;\n\n setTimeout(function () {\n _this5.$api.storage.list().then(function (res) {\n var storageArray = [];\n res.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n storageArray.push(part);\n });\n });\n _this5.localStorageList = storageArray.map(function (storage) {\n return {\n name: storage.label,\n icon: \'storage-other\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n }).catch(function (error) {\n console.log(error.reponse.message);\n });\n }, 500);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/MountList.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/sidebar/TreeList.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");\n/* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n/* harmony import */ var _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./TreeListItem.vue */ "./src/components/filebrowser/sidebar/TreeListItem.vue");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n components: {\n TreeListItem: _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_9__["default"]\n },\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_7__["mixin"]],\n inject: [\'filePanel\'],\n props: {\n path: {\n type: String,\n default: ""\n },\n autoLoad: {\n type: Boolean,\n default: false\n },\n isActive: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n isLoading: false,\n usbStorageList: [],\n localStorageList: [],\n networkStorageList: []\n };\n },\n created: function created() {\n this.getStorageList();\n },\n mounted: function mounted() {\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_8__["default"].RELOAD_MOUNT_LIST, this.getStorageList);\n },\n methods: {\n getStorageList: function getStorageList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var usbListRes, usbStorageArray, storageRes, storageArray, networkRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isLoading = true; // USB Storage\n\n _context.prev = 1;\n _context.next = 4;\n return _this.$api.disks.getUsbs();\n\n case 4:\n usbListRes = _context.sent;\n usbStorageArray = [];\n usbListRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n usbStorageArray.push(part);\n });\n });\n _this.usbStorageList = usbStorageArray.map(function (storage) {\n return {\n name: storage.name,\n icon: \'storage-USB\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 14;\n break;\n\n case 10:\n _context.prev = 10;\n _context.t0 = _context["catch"](1);\n _this.isLoading = false;\n console.log(_context.t0.reponse.message);\n\n case 14:\n _context.prev = 14;\n _context.next = 17;\n return _this.$api.storage.list();\n\n case 17:\n storageRes = _context.sent;\n storageArray = [];\n storageRes.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n storageArray.push(part);\n });\n });\n _this.localStorageList = storageArray.map(function (storage) {\n return {\n name: storage.label,\n icon: \'storage-other\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 27;\n break;\n\n case 23:\n _context.prev = 23;\n _context.t1 = _context["catch"](14);\n _this.isLoading = false;\n console.log(_context.t1.reponse.message);\n\n case 27:\n _context.prev = 27;\n _context.next = 30;\n return _this.$api.samba.getConnections();\n\n case 30:\n networkRes = _context.sent;\n _this.networkStorageList = networkRes.data.data.map(function (storage) {\n return {\n id: storage.id,\n name: storage.host,\n icon: \'storage-network\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n _context.next = 38;\n break;\n\n case 34:\n _context.prev = 34;\n _context.t2 = _context["catch"](27);\n _this.isLoading = false;\n console.log(_context.t2.reponse.message);\n\n case 38:\n _this.isLoading = false;\n\n case 39:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 10], [14, 23], [27, 34]]);\n }))();\n },\n // umount usb storage\n umountUsb: function umountUsb(item) {\n var _this2 = this;\n\n this.$api.disks.umountUsb({\n mount_point: item.path\n }).then(function () {\n _this2.getStorageList();\n\n _this2.goToDataFolder(item);\n\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Eject Success\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Eject Failed\'),\n type: \'is-danger\'\n });\n });\n },\n // umount network storage\n umountNetwork: function umountNetwork(item) {\n var _this3 = this;\n\n this.$api.samba.deleteConnection(item.id).then(function () {\n _this3.getStorageList();\n\n _this3.goToDataFolder(item);\n\n _this3.$buefy.toast.open({\n message: _this3.$t(\'Eject Success\'),\n type: \'is-success\'\n });\n }).catch(function () {\n _this3.$buefy.toast.open({\n message: _this3.$t(\'Eject Failed\'),\n type: \'is-danger\'\n });\n });\n },\n // go to DATA folder\n goToDataFolder: function goToDataFolder(item) {\n if (this.$store.state.currentPath.startsWith(item.path)) {\n this.filePanel.getFileList(\'/DATA\');\n }\n }\n },\n sockets: {\n sys_usb: function sys_usb() {\n var _this4 = this;\n\n setTimeout(function () {\n _this4.$api.disks.getUsbs().then(function (res) {\n var usbStorageArray = [];\n res.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n usbStorageArray.push(part);\n });\n });\n _this4.usbStorageList = usbStorageArray.map(function (storage) {\n return {\n name: storage.name,\n icon: \'storage-USB\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n }).catch(function (error) {\n console.log(error.reponse.message);\n });\n }, 500);\n },\n storage_status: function storage_status() {\n var _this5 = this;\n\n setTimeout(function () {\n _this5.$api.storage.list().then(function (res) {\n var storageArray = [];\n res.data.data.forEach(function (item) {\n item.children.forEach(function (part) {\n storageArray.push(part);\n });\n });\n _this5.localStorageList = storageArray.map(function (storage) {\n return {\n name: storage.label,\n icon: \'storage-other\',\n pack: \'casa\',\n path: storage.mount_point,\n visible: true,\n selected: true,\n extensions: null\n };\n });\n }).catch(function (error) {\n console.log(error.reponse.message);\n });\n }, 500);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/MountList.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/sidebar/TreeList.vue?vue&type=script&lang=js&":/*!*************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/sidebar/TreeList.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ \"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ \"./node_modules/core-js/modules/es.array.find.js\");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/mixins/mixin */ \"./src/mixins/mixin.js\");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/events/events */ \"./src/events/events.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TreeListItem.vue */ \"./src/components/filebrowser/sidebar/TreeListItem.vue\");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_7__[\"mixin\"]],\n inject: ['filePanel'],\n components: {\n TreeListItem: _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_10__[\"default\"]\n },\n props: {\n path: {\n type: String,\n default: \"\"\n },\n autoLoad: {\n type: Boolean,\n default: false\n },\n isActive: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n rootDataList: [{\n name: 'Root',\n icon: 'folder-root',\n pack: 'casa',\n path: '/',\n visible: true,\n selected: true,\n extensions: null\n }],\n initFolders: [{\n name: 'DATA',\n icon: 'folder-data',\n pack: 'casa',\n path: '/DATA',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Documents',\n icon: 'folder-documents',\n pack: 'casa',\n path: '/DATA/Documents',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Downloads',\n icon: 'folder-downloads',\n pack: 'casa',\n path: '/DATA/Downloads',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Gallery',\n icon: 'folder-gallery',\n pack: 'casa',\n path: '/DATA/Gallery',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Media',\n icon: 'folder-media',\n pack: 'casa',\n path: '/DATA/Media',\n visible: true,\n selected: true,\n extensions: null\n }],\n dataList: []\n };\n },\n created: function created() {\n this.dataList = this.initFolders;\n this.getNewList();\n },\n mounted: function mounted() {\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_8__[\"default\"].RELOAD_FILE_LIST, this.getNewList);\n },\n methods: {\n getNewList: function getNewList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee() {\n var newList, dataList, contactList;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.folder.getList(_this.rootDataList[0].path);\n\n case 2:\n newList = _context.sent;\n _context.next = 5;\n return _this.$api.folder.getList(_this.initFolders[0].path);\n\n case 5:\n dataList = _context.sent;\n contactList = [];\n contactList.push.apply(contactList, Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(newList.data.data).concat(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(dataList.data.data)));\n\n _this.initFolders.forEach(function (dir) {\n dir.visible = contactList.some(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n var isInArray = contactList.find(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n dir.extensions = isInArray ? isInArray.extensions : null;\n });\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n checkSharevisibility: function checkSharevisibility(item) {\n var extensions = item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_9___default()(extensions, 'share')) {\n return extensions.share.shared === \"true\";\n } else {\n return false;\n }\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/TreeList.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/sidebar/TreeListItem.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ \"./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js\");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ \"./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js\");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ \"./node_modules/core-js/modules/es.array.find.js\");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/mixins/mixin */ \"./src/mixins/mixin.js\");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/events/events */ \"./src/events/events.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./TreeListItem.vue */ \"./src/components/filebrowser/sidebar/TreeListItem.vue\");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_7__[\"mixin\"]],\n inject: ['filePanel'],\n components: {\n TreeListItem: _TreeListItem_vue__WEBPACK_IMPORTED_MODULE_10__[\"default\"]\n },\n props: {\n path: {\n type: String,\n default: \"\"\n },\n autoLoad: {\n type: Boolean,\n default: false\n },\n isActive: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n rootDataList: [{\n name: 'Root',\n icon: 'folder-root',\n pack: 'casa',\n path: '/',\n visible: true,\n selected: true,\n extensions: null\n }],\n initFolders: [{\n name: 'DATA',\n icon: 'folder-data',\n pack: 'casa',\n path: '/DATA',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Documents',\n icon: 'folder-documents',\n pack: 'casa',\n path: '/DATA/Documents',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Downloads',\n icon: 'folder-downloads',\n pack: 'casa',\n path: '/DATA/Downloads',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Gallery',\n icon: 'folder-gallery',\n pack: 'casa',\n path: '/DATA/Gallery',\n visible: true,\n selected: true,\n extensions: null\n }, {\n name: 'Media',\n icon: 'folder-media',\n pack: 'casa',\n path: '/DATA/Media',\n visible: true,\n selected: true,\n extensions: null\n }],\n dataList: []\n };\n },\n created: function created() {\n this.dataList = this.initFolders;\n this.getNewList();\n },\n mounted: function mounted() {\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_8__[\"default\"].RELOAD_FILE_LIST, this.getNewList);\n },\n methods: {\n getNewList: function getNewList() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().mark(function _callee() {\n var newList, dataList, contactList;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.folder.getList(_this.rootDataList[0].path);\n\n case 2:\n newList = _context.sent;\n _context.next = 5;\n return _this.$api.folder.getList(_this.initFolders[0].path);\n\n case 5:\n dataList = _context.sent;\n contactList = [];\n contactList.push.apply(contactList, Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(newList.data.data).concat(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(dataList.data.data)));\n\n _this.initFolders.forEach(function (dir) {\n dir.visible = contactList.some(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n var isInArray = contactList.find(function (item) {\n return item.path == dir.path && item.is_dir;\n });\n dir.extensions = isInArray ? isInArray.extensions : null;\n });\n\n case 9:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n checkSharevisibility: function checkSharevisibility(item) {\n var extensions = item.extensions;\n\n if (extensions === null) {\n return false;\n } else {\n if (lodash_has__WEBPACK_IMPORTED_MODULE_9___default()(extensions, 'share')) {\n return extensions.share.shared === \"true\";\n } else {\n return false;\n }\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/TreeList.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options")},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/sidebar/TreeListItem.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/sidebar/TreeListItem.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************************/@@ -206,7 +206,7 @@/*!*************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/uploader/components/uploader.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/utils */ "./src/components/filebrowser/uploader/common/utils.js");\n/* harmony import */ var _btn_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./btn.vue */ "./src/components/filebrowser/uploader/components/btn.vue");\n/* harmony import */ var _drop_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./drop.vue */ "./src/components/filebrowser/uploader/components/drop.vue");\n/* harmony import */ var _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _list_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n // import UploaderFiles from \'./files.vue\'\n// import UploaderFile from \'./file.vue\'\n\nvar COMPONENT_NAME = \'uploader\';\nvar FILE_ADDED_EVENT = \'fileAdded\';\nvar FILES_ADDED_EVENT = \'filesAdded\';\nvar UPLOAD_START_EVENT = \'uploadStart\';\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: COMPONENT_NAME,\n provide: function provide() {\n return {\n uploader: this\n };\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n autoStart: {\n type: Boolean,\n default: true\n },\n fileStatusText: {\n type: [Object, Function],\n default: function _default() {\n return {\n success: \'success\',\n error: \'error\',\n uploading: \'uploading\',\n paused: \'paused\',\n waiting: \'waiting\'\n };\n }\n }\n },\n data: function data() {\n return {\n started: false,\n files: [],\n fileList: []\n };\n },\n methods: {\n uploadStart: function uploadStart() {\n this.started = true;\n },\n fileAdded: function fileAdded(file) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILE_ADDED_EVENT), file);\n\n if (file.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n filesAdded: function filesAdded(files, fileList) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILES_ADDED_EVENT), files, fileList);\n\n if (files.ignored || fileList.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n fileRemoved: function fileRemoved() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n },\n filesSubmitted: function filesSubmitted() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n\n if (this.autoStart) {\n this.uploader.upload();\n }\n },\n allEvent: function allEvent() {\n var _EVENTSMAP;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var name = args[0];\n var EVENTSMAP = (_EVENTSMAP = {}, Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILE_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILES_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, UPLOAD_START_EVENT, \'uploadStart\'), _EVENTSMAP);\n var handler = EVENTSMAP[name];\n\n if (handler) {\n if (handler === true) {\n return;\n }\n\n this[handler].apply(this, args.slice(1));\n }\n\n args[0] = Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(name);\n this.$emit.apply(this, args);\n }\n },\n created: function created() {\n // eslint-disable-next-line vue/no-mutating-props\n this.options.initialPaused = !this.autoStart;\n var uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default.a(this.options);\n this.uploader = uploader;\n this.uploader.fileStatusText = this.fileStatusText;\n uploader.on(\'catchAll\', this.allEvent);\n uploader.on(FILE_ADDED_EVENT, this.fileAdded);\n uploader.on(FILES_ADDED_EVENT, this.filesAdded);\n uploader.on(\'fileRemoved\', this.fileRemoved);\n uploader.on(\'filesSubmitted\', this.filesSubmitted);\n },\n destroyed: function destroyed() {\n var uploader = this.uploader;\n uploader.off(\'catchAll\', this.allEvent);\n uploader.off(FILE_ADDED_EVENT, this.fileAdded);\n uploader.off(FILES_ADDED_EVENT, this.filesAdded);\n uploader.off(\'fileRemoved\', this.fileRemoved);\n uploader.off(\'filesSubmitted\', this.filesSubmitted);\n this.uploader = null;\n },\n components: {\n UploaderBtn: _btn_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n UploaderDrop: _drop_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n UploaderUnsupport: _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n UploaderList: _list_vue__WEBPACK_IMPORTED_MODULE_7__["default"] // UploaderFiles,\n // UploaderFile\n\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/uploader/components/uploader.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common/utils */ "./src/components/filebrowser/uploader/common/utils.js");\n/* harmony import */ var _btn_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./btn.vue */ "./src/components/filebrowser/uploader/components/btn.vue");\n/* harmony import */ var _drop_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./drop.vue */ "./src/components/filebrowser/uploader/components/drop.vue");\n/* harmony import */ var _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./unsupport.vue */ "./src/components/filebrowser/uploader/components/unsupport.vue");\n/* harmony import */ var _list_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./list.vue */ "./src/components/filebrowser/uploader/components/list.vue");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n // import UploaderFiles from \'./files.vue\'\n// import UploaderFile from \'./file.vue\'\n\nvar COMPONENT_NAME = \'uploader\';\nvar FILE_ADDED_EVENT = \'fileAdded\';\nvar FILES_ADDED_EVENT = \'filesAdded\';\nvar UPLOAD_START_EVENT = \'uploadStart\';\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: COMPONENT_NAME,\n provide: function provide() {\n return {\n uploader: this\n };\n },\n props: {\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n autoStart: {\n type: Boolean,\n default: true\n },\n fileStatusText: {\n type: [Object, Function],\n default: function _default() {\n return {\n success: \'success\',\n error: \'error\',\n uploading: \'uploading\',\n paused: \'paused\',\n waiting: \'waiting\'\n };\n }\n }\n },\n data: function data() {\n return {\n started: false,\n files: [],\n fileList: []\n };\n },\n methods: {\n uploadStart: function uploadStart() {\n this.started = true;\n },\n fileAdded: function fileAdded(file) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILE_ADDED_EVENT), file);\n\n if (file.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n filesAdded: function filesAdded(files, fileList) {\n this.$emit(Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(FILES_ADDED_EVENT), files, fileList);\n\n if (files.ignored || fileList.ignored) {\n // is ignored, filter it\n return false;\n }\n },\n fileRemoved: function fileRemoved() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n },\n filesSubmitted: function filesSubmitted() {\n this.files = this.uploader.files;\n this.fileList = this.uploader.fileList;\n\n if (this.autoStart) {\n this.uploader.upload();\n }\n },\n allEvent: function allEvent() {\n var _EVENTSMAP;\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var name = args[0];\n var EVENTSMAP = (_EVENTSMAP = {}, Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILE_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, FILES_ADDED_EVENT, true), Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__["default"])(_EVENTSMAP, UPLOAD_START_EVENT, \'uploadStart\'), _EVENTSMAP);\n var handler = EVENTSMAP[name];\n\n if (handler) {\n if (handler === true) {\n return;\n }\n\n this[handler].apply(this, args.slice(1));\n }\n\n args[0] = Object(_common_utils__WEBPACK_IMPORTED_MODULE_3__["kebabCase"])(name);\n this.$emit.apply(this, args);\n }\n },\n created: function created() {\n // eslint-disable-next-line vue/no-mutating-props\n this.options.initialPaused = !this.autoStart;\n var uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_2___default.a(this.options);\n this.uploader = uploader;\n this.uploader.fileStatusText = this.fileStatusText;\n uploader.on(\'catchAll\', this.allEvent);\n uploader.on(FILE_ADDED_EVENT, this.fileAdded);\n uploader.on(FILES_ADDED_EVENT, this.filesAdded);\n uploader.on(\'fileRemoved\', this.fileRemoved);\n uploader.on(\'filesSubmitted\', this.filesSubmitted);\n },\n destroyed: function destroyed() {\n var uploader = this.uploader;\n uploader.off(\'catchAll\', this.allEvent);\n uploader.off(FILE_ADDED_EVENT, this.fileAdded);\n uploader.off(FILES_ADDED_EVENT, this.filesAdded);\n uploader.off(\'fileRemoved\', this.fileRemoved);\n uploader.off(\'filesSubmitted\', this.filesSubmitted);\n this.uploader = null;\n },\n components: {\n UploaderBtn: _btn_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n UploaderDrop: _drop_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n UploaderUnsupport: _unsupport_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n UploaderList: _list_vue__WEBPACK_IMPORTED_MODULE_7__["default"] // UploaderFiles,\n // UploaderFile\n\n }\n});\n\n//# sourceURL=webpack:///./src/components/filebrowser/uploader/components/uploader.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js&":/*!****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/CommandsInput.vue?vue&type=script&lang=js& ***!\****************************************************************************************************************************************************************************************************************************************************************/@@ -222,7 +222,7 @@/*!**************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/ImportPanel.vue?vue&type=script&lang=js& ***!\**************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ "./node_modules/core-js/modules/es.string.trim.js");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lodash/upperFirst */ "./node_modules/lodash/upperFirst.js");\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var yargs_parser__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! yargs-parser */ "./node_modules/yargs-parser/build/lib/index.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! yamljs */ "./node_modules/yamljs/lib/Yaml.js");\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(yamljs__WEBPACK_IMPORTED_MODULE_24__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n activeTab: 0,\n file: {},\n dropFiles: {},\n dockerCliCommands: "",\n dockerComposeCommands: "",\n parseError: false,\n appFileLoaded: false,\n errors: "",\n dropText: this.$t(\'Drop your app file here or click to upload\'),\n uploadIcon: "upload",\n updateData: this.initData\n };\n },\n props: {\n initData: Object,\n netWorks: Array,\n oriNetWorks: Array,\n deviceMemory: Number\n },\n created: function created() {//console.log(this.oriNetWorks);\n },\n methods: {\n /**\r\n * @description: Emit Event to tell parent Update\r\n * @param {*}\r\n * @return {*} void\r\n */\n emitSubmit: function emitSubmit() {\n if (this.activeTab == 0) {\n if (this.parseCli()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct command line\');\n this.parseError = true;\n }\n } else if (this.activeTab == 1) {\n if (this.parseComposeYaml()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct compose YAML\');\n this.parseError = true;\n }\n } else if (this.activeTab == 2) {\n if (this.appFileLoaded) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please import a valid App file\');\n this.parseError = true;\n }\n }\n },\n volumeAutoCheck: function volumeAutoCheck(containerPath, hostPath, appName) {\n var finalHostPath = hostPath;\n var rootDir = "/DATA";\n var checkArray = [{\n keywords: ["config"],\n value: "/AppData/".concat(appName).concat(containerPath)\n }, {\n keywords: ["tvshows", "TV", "tv"],\n value: "/Media/TV Shows"\n }, {\n keywords: ["movies", "Movie", "movie"],\n value: "/Media/Movies"\n }, {\n keywords: ["Music", "music"],\n value: "/Media/Music"\n }, {\n keywords: ["download"],\n value: "/Downloads"\n }, {\n keywords: ["pictures", "photo"],\n value: "/Gallery"\n }, {\n keywords: ["media"],\n value: "/Media"\n }];\n checkArray.forEach(function (item) {\n if (item.keywords.some(function (keywordsItem) {\n return containerPath.includes(keywordsItem);\n })) {\n finalHostPath = rootDir + item.value;\n return;\n }\n });\n return finalHostPath;\n },\n\n /**\r\n * @description: Parse Import Docker Cli Commands\r\n * @return {Boolean} \r\n */\n parseCli: function parseCli() {\n var _this2 = this;\n\n var formattedInput = this.dockerCliCommands.replace(/<[^>]*>/g, \'Custom_data\').replace(/[\\r\\n]/g, "").replace(/\\\\/g, "\\\\ ").replace("-d", "").replace(/[\\\\]/g, \'\').trim();\n var parsedInput = Object(yargs_parser__WEBPACK_IMPORTED_MODULE_21__["default"])(formattedInput);\n var command = parsedInput._;\n\n if (command[0] !== \'docker\' || command[1] !== \'run\' && command[1] !== \'create\') {\n return false;\n } else {\n //Image\n this.updateData.image = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(command).pop(); //Label\n\n if (parsedInput.name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(parsedInput.name);\n } else {\n var imageArray = this.updateData.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(lastNode.split(":")[0]);\n } //Envs\n\n\n var env = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.e), this.makeArray(parsedInput.env));\n this.updateData.envs = env.map(function (item) {\n var ii = item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n }); //Ports\n\n var ports = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.p), this.makeArray(parsedInput.publish));\n this.updateData.ports = ports.map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n var volumes = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.v), this.makeArray(parsedInput.volume));\n this.updateData.volumes = volumes.map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n // console.log(this.volumeAutoCheck(ii[1],ii[0], _.lowerFirst(this.updateData.label)));\n return {\n container: ii[1],\n host: _this2.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this2.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this2.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this2.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network != undefined ? parsedInput.network : parsedInput.net;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //privileged\n\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n this.updateData.cap_add = this.makeArray(parsedInput.capAdd); //hostname\n\n if (parsedInput.hostname != undefined) {\n this.updateData.host_name = parsedInput.hostname;\n } else {\n if (parsedInput.h != undefined) {\n this.updateData.host_name = parsedInput.h;\n } else {\n this.updateData.host_name = "";\n }\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n }\n },\n\n /**\r\n * @description: Make String to Array\r\n * @param {*}\r\n * @return {Array}\r\n */\n makeArray: function makeArray(foo) {\n var newArray = typeof foo == "string" ? [foo] : foo;\n return newArray == undefined ? [] : newArray;\n },\n\n /**\r\n * @description: Parse Import Docker Compose Commands\r\n * @return {Boolean} \r\n */\n parseComposeYaml: function parseComposeYaml() {\n var _this3 = this;\n\n try {\n var yaml = yamljs__WEBPACK_IMPORTED_MODULE_24___default.a.parse(this.dockerComposeCommands);\n\n if (yaml.version === undefined) {\n return false;\n }\n\n var parsedInput = Object.values(yaml.services)[0]; // Image\n\n this.updateData.image = parsedInput.image; // Label\n\n if (parsedInput.container_name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(parsedInput.container_name);\n } else {\n var imageArray = parsedInput.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(lastNode.split(":")[0]);\n } // Envs\n\n\n if (parsedInput.environment) {\n var envArray = Array.isArray(parsedInput.environment) ? parsedInput.environment : Object.entries(parsedInput.environment);\n this.updateData.envs = envArray.map(function (item) {\n var ii = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(item) === "object" ? Array.from(item) : item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n });\n } else {\n this.updateData.envs = [];\n } //Ports\n\n\n this.updateData.ports = this.makeArray(parsedInput.ports).map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n this.updateData.volumes = this.makeArray(parsedInput.volumes).map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n return {\n container: ii[1],\n host: _this3.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this3.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this3.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this3.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network_mode != undefined ? parsedInput.network_mode : parsedInput.network != undefined ? parsedInput.network[0] : undefined;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //hostname\n\n\n this.updateData.host_name = parsedInput.hostname != undefined ? parsedInput.hostname : ""; // privileged\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n if (parsedInput.cap_add != undefined) {\n this.updateData.cap_add = parsedInput.cap_add;\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n } catch (error) {\n console.log(error);\n return false;\n }\n },\n onSelect: function onSelect(val) {\n var _this = this;\n\n var reader = new FileReader();\n\n if (typeof FileReader === "undefined") {\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'Your browser does not support file reading.\'),\n type: \'is-danger\'\n });\n return;\n }\n\n reader.readAsText(val);\n\n reader.onload = function () {\n try {\n _this.updateData = JSON.parse(this.result);\n\n if (_this.updateData.version === undefined || _this.updateData.version != "1.0") {\n _this.clearInput();\n\n return false;\n } else {\n delete _this.updateData.versison;\n _this.updateData.network_model = _this.getNetworkModel(_this.updateData.network_model);\n _this.updateData.memory = _this.deviceMemory;\n\n if (!lodash_has__WEBPACK_IMPORTED_MODULE_23___default()(_this.updateData, \'protocol\')) {\n _this.updateData.protocol = "http";\n }\n\n _this.dropText = val.name + " " + _this.$t(\'has been selected\');\n _this.uploadIcon = "file-document";\n _this.appFileLoaded = true;\n return true;\n }\n } catch (e) {\n _this._this.clearInput();\n\n return false;\n }\n };\n },\n clearInput: function clearInput() {\n this.uploadIcon = "upload";\n this.dropText = this.$t(\'Drop your app file here or click to upload\');\n this.appFileLoaded = false;\n this.$refs.importUpload.clearInput();\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'This is not a valid json file.\'),\n type: \'is-danger\'\n });\n this.appFileLoaded = false;\n },\n getNetworkModel: function getNetworkModel(netName) {\n var network = this.oriNetWorks.filter(function (net) {\n return net.name == netName;\n });\n return network.length > 0 ? network[0].name : this.oriNetWorks[0].name;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/forms/ImportPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/InputGroup.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/typeof.js */ "./node_modules/@babel/runtime/helpers/esm/typeof.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */ "./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ "./node_modules/core-js/modules/es.number.constructor.js");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ "./node_modules/core-js/modules/es.string.trim.js");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");\n/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");\n/* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");\n/* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! lodash/upperFirst */ "./node_modules/lodash/upperFirst.js");\n/* harmony import */ var lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! lodash/lowerFirst */ "./node_modules/lodash/lowerFirst.js");\n/* harmony import */ var lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var yargs_parser__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! yargs-parser */ "./node_modules/yargs-parser/build/lib/index.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! lodash/concat */ "./node_modules/lodash/concat.js");\n/* harmony import */ var lodash_concat__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(lodash_concat__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! lodash/has */ "./node_modules/lodash/has.js");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! yamljs */ "./node_modules/yamljs/lib/Yaml.js");\n/* harmony import */ var yamljs__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(yamljs__WEBPACK_IMPORTED_MODULE_24__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n activeTab: 0,\n file: {},\n dropFiles: {},\n dockerCliCommands: "",\n dockerComposeCommands: "",\n parseError: false,\n appFileLoaded: false,\n errors: "",\n dropText: this.$t(\'Drop your app file here or click to upload\'),\n uploadIcon: "upload",\n updateData: this.initData\n };\n },\n props: {\n initData: Object,\n netWorks: Array,\n oriNetWorks: Array,\n deviceMemory: Number\n },\n created: function created() {//console.log(this.oriNetWorks);\n },\n methods: {\n /**\r\n * @description: Emit Event to tell parent Update\r\n * @param {*}\r\n * @return {*} void\r\n */\n emitSubmit: function emitSubmit() {\n if (this.activeTab == 0) {\n if (this.parseCli()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct command line\');\n this.parseError = true;\n }\n } else if (this.activeTab == 1) {\n if (this.parseComposeYaml()) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please fill correct compose YAML\');\n this.parseError = true;\n }\n } else if (this.activeTab == 2) {\n if (this.appFileLoaded) {\n this.errors = "";\n this.$emit(\'update\', this.updateData);\n this.$emit(\'close\');\n } else {\n this.errors = this.$t(\'Please import a valid App file\');\n this.parseError = true;\n }\n }\n },\n volumeAutoCheck: function volumeAutoCheck(containerPath, hostPath, appName) {\n var finalHostPath = hostPath;\n var rootDir = "/DATA";\n var checkArray = [{\n keywords: ["config"],\n value: "/AppData/".concat(appName).concat(containerPath)\n }, {\n keywords: ["tvshows", "TV", "tv"],\n value: "/Media/TV Shows"\n }, {\n keywords: ["movies", "Movie", "movie"],\n value: "/Media/Movies"\n }, {\n keywords: ["Music", "music"],\n value: "/Media/Music"\n }, {\n keywords: ["download"],\n value: "/Downloads"\n }, {\n keywords: ["pictures", "photo"],\n value: "/Gallery"\n }, {\n keywords: ["media"],\n value: "/Media"\n }];\n checkArray.forEach(function (item) {\n if (item.keywords.some(function (keywordsItem) {\n return containerPath.includes(keywordsItem);\n })) {\n finalHostPath = rootDir + item.value;\n return;\n }\n });\n return finalHostPath;\n },\n\n /**\r\n * @description: Parse Import Docker Cli Commands\r\n * @return {Boolean} \r\n */\n parseCli: function parseCli() {\n var _this2 = this;\n\n var formattedInput = this.dockerCliCommands.replace(/<[^>]*>/g, \'Custom_data\').replace(/[\\r\\n]/g, "").replace(/\\\\/g, "\\\\ ").replace("-d", "").replace(/[\\\\]/g, \'\').trim();\n var parsedInput = Object(yargs_parser__WEBPACK_IMPORTED_MODULE_21__["default"])(formattedInput);\n var command = parsedInput._;\n\n if (command[0] !== \'docker\' || command[1] !== \'run\' && command[1] !== \'create\') {\n return false;\n } else {\n //Image\n this.updateData.image = Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(command).pop(); //Label\n\n if (parsedInput.name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(parsedInput.name);\n } else {\n var imageArray = this.updateData.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(lastNode.split(":")[0]);\n } //Envs\n\n\n var env = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.e), this.makeArray(parsedInput.env));\n this.updateData.envs = env.map(function (item) {\n var ii = item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n }); //Ports\n\n var ports = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.p), this.makeArray(parsedInput.publish));\n this.updateData.ports = ports.map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n var volumes = lodash_concat__WEBPACK_IMPORTED_MODULE_22___default()(this.makeArray(parsedInput.v), this.makeArray(parsedInput.volume));\n this.updateData.volumes = volumes.map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n // console.log(this.volumeAutoCheck(ii[1],ii[0], _.lowerFirst(this.updateData.label)));\n return {\n container: ii[1],\n host: _this2.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this2.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this2.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this2.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network != undefined ? parsedInput.network : parsedInput.net;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //privileged\n\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n this.updateData.cap_add = this.makeArray(parsedInput.capAdd); //hostname\n\n if (parsedInput.hostname != undefined) {\n this.updateData.host_name = parsedInput.hostname;\n } else {\n if (parsedInput.h != undefined) {\n this.updateData.host_name = parsedInput.h;\n } else {\n this.updateData.host_name = "";\n }\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n }\n },\n\n /**\r\n * @description: Make String to Array\r\n * @param {*}\r\n * @return {Array}\r\n */\n makeArray: function makeArray(foo) {\n var newArray = typeof foo == "string" ? [foo] : foo;\n return newArray == undefined ? [] : newArray;\n },\n\n /**\r\n * @description: Parse Import Docker Compose Commands\r\n * @return {Boolean} \r\n */\n parseComposeYaml: function parseComposeYaml() {\n var _this3 = this;\n\n try {\n var yaml = yamljs__WEBPACK_IMPORTED_MODULE_24___default.a.parse(this.dockerComposeCommands);\n\n if (yaml.version === undefined) {\n return false;\n }\n\n var parsedInput = Object.values(yaml.services)[0]; // Image\n\n this.updateData.image = parsedInput.image; // Label\n\n if (parsedInput.container_name != undefined) {\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(parsedInput.container_name);\n } else {\n var imageArray = parsedInput.image.split("/");\n\n var lastNode = Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__["default"])(imageArray).pop();\n\n this.updateData.label = lodash_upperFirst__WEBPACK_IMPORTED_MODULE_19___default()(lastNode.split(":")[0]);\n } // Envs\n\n\n if (parsedInput.environment) {\n var envArray = Array.isArray(parsedInput.environment) ? parsedInput.environment : Object.entries(parsedInput.environment);\n this.updateData.envs = envArray.map(function (item) {\n var ii = Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(item) === "object" ? Array.from(item) : item.split("=");\n return {\n host: ii[1].replace(/"/g, ""),\n container: ii[0]\n };\n });\n } else {\n this.updateData.envs = [];\n } //Ports\n\n\n this.updateData.ports = this.makeArray(parsedInput.ports).map(function (item) {\n var pArray = item.split(":");\n var endArray = pArray[1].split("/");\n var protocol = endArray[1] ? endArray[1] : \'tcp\';\n return {\n container: endArray[0],\n host: pArray[0],\n protocol: protocol\n };\n }); //Volume\n\n this.updateData.volumes = this.makeArray(parsedInput.volumes).map(function (item) {\n var ii = item.split(":");\n\n if (ii.length > 1) {\n return {\n container: ii[1],\n host: _this3.volumeAutoCheck(ii[1], ii[0], lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this3.updateData.label))\n };\n } else {\n return {\n container: ii[0],\n host: _this3.volumeAutoCheck(ii[0], "", lodash_lowerFirst__WEBPACK_IMPORTED_MODULE_20___default()(_this3.updateData.label))\n };\n }\n }); // Devices\n\n this.updateData.devices = this.makeArray(parsedInput.device).map(function (item) {\n var ii = item.split(":");\n return {\n container: ii[1],\n host: ii[0]\n };\n }); //Network\n\n var pnetwork = parsedInput.network_mode != undefined ? parsedInput.network_mode : parsedInput.network != undefined ? parsedInput.network[0] : undefined;\n\n if (pnetwork != undefined) {\n var network = pnetwork == \'physical\' ? \'macvlan\' : pnetwork;\n var seletNetworks = this.netWorks.filter(function (item) {\n if (item.driver == network) {\n return true;\n }\n });\n\n if (seletNetworks.length > 0) {\n this.updateData.network_model = seletNetworks[0].networks[0].name;\n }\n } //hostname\n\n\n this.updateData.host_name = parsedInput.hostname != undefined ? parsedInput.hostname : ""; // privileged\n\n this.updateData.privileged = parsedInput.privileged != undefined; //cap-add\n\n if (parsedInput.cap_add != undefined) {\n this.updateData.cap_add = parsedInput.cap_add;\n } //Restart\n\n\n if (parsedInput.restart != undefined) {\n this.updateData.restart = parsedInput.restart;\n }\n\n return true;\n } catch (error) {\n console.log(error);\n return false;\n }\n },\n onSelect: function onSelect(val) {\n var _this = this;\n\n var reader = new FileReader();\n\n if (typeof FileReader === "undefined") {\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'Your browser does not support file reading.\'),\n type: \'is-danger\'\n });\n return;\n }\n\n reader.readAsText(val);\n\n reader.onload = function () {\n try {\n _this.updateData = JSON.parse(this.result);\n\n if (_this.updateData.version === undefined || _this.updateData.version != "1.0") {\n _this.clearInput();\n\n return false;\n } else {\n delete _this.updateData.versison;\n _this.updateData.network_model = _this.getNetworkModel(_this.updateData.network_model);\n _this.updateData.memory = _this.deviceMemory;\n\n if (!lodash_has__WEBPACK_IMPORTED_MODULE_23___default()(_this.updateData, \'protocol\')) {\n _this.updateData.protocol = "http";\n }\n\n _this.dropText = val.name + " " + _this.$t(\'has been selected\');\n _this.uploadIcon = "file-document";\n _this.appFileLoaded = true;\n return true;\n }\n } catch (e) {\n _this._this.clearInput();\n\n return false;\n }\n };\n },\n clearInput: function clearInput() {\n this.uploadIcon = "upload";\n this.dropText = this.$t(\'Drop your app file here or click to upload\');\n this.appFileLoaded = false;\n this.$refs.importUpload.clearInput();\n this.$buefy.toast.open({\n duration: 3000,\n message: this.$t(\'This is not a valid json file.\'),\n type: \'is-danger\'\n });\n this.appFileLoaded = false;\n },\n getNetworkModel: function getNetworkModel(netName) {\n var network = this.oriNetWorks.filter(function (net) {\n return net.name == netName;\n });\n return network.length > 0 ? network[0].name : this.oriNetWorks[0].name;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/forms/ImportPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/forms/InputGroup.vue?vue&type=script&lang=js&":/*!*************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/forms/InputGroup.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************/@@ -238,7 +238,7 @@/*!*************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/logsAndTerminal/TerminalCard.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! xterm/css/xterm.css */ "./node_modules/xterm/css/xterm.css");\n/* harmony import */ var xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var xterm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! xterm */ "./node_modules/xterm/lib/xterm.js");\n/* harmony import */ var xterm__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(xterm__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! xterm-addon-fit */ "./node_modules/xterm-addon-fit/lib/xterm-addon-fit.js");\n/* harmony import */ var xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! xterm-addon-attach */ "./node_modules/xterm-addon-attach/lib/xterm-addon-attach.js");\n/* harmony import */ var xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\nvar fitAddon = new xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__["FitAddon"]();\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "terminal-card",\n props: {\n id: String,\n label: String,\n initWsUrl: String\n },\n data: function data() {\n return {\n fullscreen: false,\n isConnecting: false,\n term: "",\n rows: 40,\n cols: 100,\n state: true,\n isVaild: false,\n wsUrl: "",\n sshUser: "",\n sshPassword: "",\n sshPort: 22,\n message: "",\n notificationShow: false\n };\n },\n computed: {\n buttonSzie: function buttonSzie() {\n return this.$store.state.device == "mobile" ? \'is-small\' : \'\';\n },\n buttonIcon: function buttonIcon() {\n return this.fullscreen ? "fullscreen-exit" : "fullscreen";\n }\n },\n mounted: function mounted() {\n this.rows = document.getElementById(\'terminal\').offsetHeight / 16 - 6;\n this.cols = document.getElementById(\'terminal\').offsetWidth / 14;\n\n if (this.initWsUrl != "") {\n this.isVaild = true;\n this.wsUrl = this.initWsUrl;\n this.initSocket();\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.isVaild) {\n this.socket.close();\n }\n\n if (this.term != "") this.term.dispose();\n window.removeEventListener(\'resize\', this.onWindowResize);\n },\n methods: {\n checkLogin: function checkLogin() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var postData;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isConnecting = true;\n postData = {\n username: String(_this.sshUser),\n password: String(_this.sshPassword),\n port: String(_this.sshPort)\n };\n _context.prev = 2;\n _context.next = 5;\n return _this.$api.sys.checkSshLogin(postData);\n\n case 5:\n _this.isConnecting = false;\n _this.isVaild = true;\n postData.token = _this.$store.state.access_token;\n _this.wsUrl = "ws://".concat(_this.$baseURL, "/v1/sys/wsssh?").concat(qs__WEBPACK_IMPORTED_MODULE_4___default.a.stringify(postData));\n\n _this.initSocket();\n\n _context.next = 17;\n break;\n\n case 12:\n _context.prev = 12;\n _context.t0 = _context["catch"](2);\n _this.notificationShow = true;\n _this.isConnecting = false;\n _this.message = _context.t0.response.data.data;\n\n case 17:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 12]]);\n }))();\n },\n toggleFullScreen: function toggleFullScreen() {\n this.fullscreen = !this.fullscreen;\n },\n initTerm: function initTerm() {\n var term = new xterm__WEBPACK_IMPORTED_MODULE_6__["Terminal"]({\n // rendererType: \'canvas\',\n fontSize: 14,\n cursorStyle: \'underline\',\n //光标样式\n cursorBlink: true,\n //光标闪烁\n theme: {\n background: \'#1E1E1E\'\n },\n rows: parseInt(this.rows),\n //行数\n cols: parseInt(this.cols) // 不指定行数,自动回车后光标从下一行开始\n\n });\n var attachAddon = new xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__["AttachAddon"](this.socket);\n term.loadAddon(attachAddon);\n term.loadAddon(fitAddon);\n term.open(document.getElementById(\'xterm\'));\n fitAddon.fit();\n term.focus();\n this.term = term;\n window.addEventListener(\'resize\', this.onWindowResize);\n this.socket.send(JSON.stringify({\n type: "resize",\n cols: this.term.cols,\n rows: this.term.rows\n }));\n },\n initSocket: function initSocket() {\n var _this2 = this;\n\n this.socket = new WebSocket(this.wsUrl);\n this.socketOnClose();\n this.socketOnOpen();\n this.socketOnError();\n\n this.socket.onmessage = function (event) {\n if (event.data == "\\r\\n\\x1B[?2004l\\rlogout\\r\\n") {\n _this2.socket.close();\n\n if (_this2.term != "") _this2.term.dispose();\n window.removeEventListener(\'resize\', _this2.onWindowResize);\n _this2.isVaild = false;\n }\n };\n },\n socketOnOpen: function socketOnOpen() {\n var _this3 = this;\n\n this.socket.onopen = function () {\n _this3.initTerm();\n };\n },\n socketOnClose: function socketOnClose() {\n this.socket.onclose = function () {\n console.log(\'close socket\');\n };\n },\n socketOnError: function socketOnError() {\n this.socket.onerror = function () {\n console.log(\'socket failure\');\n };\n },\n onWindowResize: function onWindowResize() {\n var _this4 = this;\n\n if (!this.isVaild) {\n return false;\n }\n\n this.$nextTick(function () {\n try {\n fitAddon.fit();\n\n _this4.socket.send(JSON.stringify({\n type: "resize",\n cols: _this4.term.cols,\n rows: _this4.term.rows\n }));\n } catch (e) {\n console.log("e", e.message);\n }\n });\n },\n getTop: function getTop(e) {\n var offset = e.offsetTop;\n if (e.offsetParent != null) offset += this.getTop(e.offsetParent);\n return offset;\n },\n active: function active(state) {\n this.state = state;\n\n if (state) {\n this.onWindowResize();\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/logsAndTerminal/TerminalCard.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/logsAndTerminal/TerminalPanel.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! xterm/css/xterm.css */ "./node_modules/xterm/css/xterm.css");\n/* harmony import */ var xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(xterm_css_xterm_css__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var xterm__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! xterm */ "./node_modules/xterm/lib/xterm.js");\n/* harmony import */ var xterm__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(xterm__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! xterm-addon-fit */ "./node_modules/xterm-addon-fit/lib/xterm-addon-fit.js");\n/* harmony import */ var xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! xterm-addon-attach */ "./node_modules/xterm-addon-attach/lib/xterm-addon-attach.js");\n/* harmony import */ var xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\nvar fitAddon = new xterm_addon_fit__WEBPACK_IMPORTED_MODULE_7__["FitAddon"]();\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "terminal-card",\n props: {\n id: String,\n label: String,\n initWsUrl: String\n },\n data: function data() {\n return {\n fullscreen: false,\n isConnecting: false,\n term: "",\n rows: 40,\n cols: 100,\n state: true,\n isVaild: false,\n wsUrl: "",\n sshUser: "",\n sshPassword: "",\n sshPort: 22,\n message: "",\n notificationShow: false\n };\n },\n computed: {\n buttonSzie: function buttonSzie() {\n return this.$store.state.device == "mobile" ? \'is-small\' : \'\';\n },\n buttonIcon: function buttonIcon() {\n return this.fullscreen ? "fullscreen-exit" : "fullscreen";\n }\n },\n mounted: function mounted() {\n this.rows = document.getElementById(\'terminal\').offsetHeight / 16 - 6;\n this.cols = document.getElementById(\'terminal\').offsetWidth / 14;\n\n if (this.initWsUrl != "") {\n this.isVaild = true;\n this.wsUrl = this.initWsUrl;\n this.initSocket();\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.isVaild) {\n this.socket.close();\n }\n\n if (this.term != "") this.term.dispose();\n window.removeEventListener(\'resize\', this.onWindowResize);\n },\n methods: {\n checkLogin: function checkLogin() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var postData;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isConnecting = true;\n postData = {\n username: String(_this.sshUser),\n password: String(_this.sshPassword),\n port: String(_this.sshPort)\n };\n _context.prev = 2;\n _context.next = 5;\n return _this.$api.sys.checkSshLogin(postData);\n\n case 5:\n _this.isConnecting = false;\n _this.isVaild = true;\n postData.token = _this.$store.state.access_token;\n _this.wsUrl = "ws://".concat(_this.$baseURL, "/v1/sys/wsssh?").concat(qs__WEBPACK_IMPORTED_MODULE_4___default.a.stringify(postData));\n\n _this.initSocket();\n\n _context.next = 17;\n break;\n\n case 12:\n _context.prev = 12;\n _context.t0 = _context["catch"](2);\n _this.notificationShow = true;\n _this.isConnecting = false;\n _this.message = _context.t0.response.data.data;\n\n case 17:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[2, 12]]);\n }))();\n },\n toggleFullScreen: function toggleFullScreen() {\n this.fullscreen = !this.fullscreen;\n },\n initTerm: function initTerm() {\n var term = new xterm__WEBPACK_IMPORTED_MODULE_6__["Terminal"]({\n // rendererType: \'canvas\',\n fontSize: 14,\n cursorStyle: \'underline\',\n //光标样式\n cursorBlink: true,\n //光标闪烁\n theme: {\n background: \'#1E1E1E\'\n },\n rows: parseInt(this.rows),\n //行数\n cols: parseInt(this.cols) // 不指定行数,自动回车后光标从下一行开始\n\n });\n var attachAddon = new xterm_addon_attach__WEBPACK_IMPORTED_MODULE_8__["AttachAddon"](this.socket);\n term.loadAddon(attachAddon);\n term.loadAddon(fitAddon);\n term.open(document.getElementById(\'xterm\'));\n fitAddon.fit();\n term.focus();\n this.term = term;\n window.addEventListener(\'resize\', this.onWindowResize);\n this.socket.send(JSON.stringify({\n type: "resize",\n cols: this.term.cols,\n rows: this.term.rows\n }));\n },\n initSocket: function initSocket() {\n var _this2 = this;\n\n this.socket = new WebSocket(this.wsUrl);\n this.socketOnClose();\n this.socketOnOpen();\n this.socketOnError();\n\n this.socket.onmessage = function (event) {\n if (event.data == "\\r\\n\\x1B[?2004l\\rlogout\\r\\n") {\n _this2.socket.close();\n\n if (_this2.term != "") _this2.term.dispose();\n window.removeEventListener(\'resize\', _this2.onWindowResize);\n _this2.isVaild = false;\n }\n };\n },\n socketOnOpen: function socketOnOpen() {\n var _this3 = this;\n\n this.socket.onopen = function () {\n _this3.initTerm();\n };\n },\n socketOnClose: function socketOnClose() {\n this.socket.onclose = function () {\n console.log(\'close socket\');\n };\n },\n socketOnError: function socketOnError() {\n this.socket.onerror = function () {\n console.log(\'socket failure\');\n };\n },\n onWindowResize: function onWindowResize() {\n var _this4 = this;\n\n if (!this.isVaild) {\n return false;\n }\n\n this.$nextTick(function () {\n try {\n fitAddon.fit();\n\n _this4.socket.send(JSON.stringify({\n type: "resize",\n cols: _this4.term.cols,\n rows: _this4.term.rows\n }));\n } catch (e) {\n console.log("e", e.message);\n }\n });\n },\n getTop: function getTop(e) {\n var offset = e.offsetTop;\n if (e.offsetParent != null) offset += this.getTop(e.offsetParent);\n return offset;\n },\n active: function active(state) {\n this.state = state;\n\n if (state) {\n this.onWindowResize();\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/logsAndTerminal/TerminalCard.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/logsAndTerminal/TerminalPanel.vue?vue&type=script&lang=js&":/*!**************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/logsAndTerminal/TerminalPanel.vue?vue&type=script&lang=js& ***!\**************************************************************************************************************************************************************************************************************************************************************************/@@ -246,15 +246,15 @@/*!***************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/settings/PortPanel.vue?vue&type=script&lang=js& ***!\***************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "port-panel",\n data: function data() {\n return {\n timer: 0,\n isLoading: false,\n confirmation: "",\n message: "",\n notificationShow: false,\n port: this.initPort,\n errorType: "is-success",\n errors: ""\n };\n },\n props: {\n initPort: {\n type: String,\n default: "0"\n }\n },\n methods: {\n savePort: function savePort() {\n var _this = this;\n\n this.isLoading = true;\n this.$api.sys.editServerPort({\n port: this.port\n }).then(function (res) {\n if (res.data.success == 200) {\n _this.errorType = "is-success";\n _this.errors = "";\n\n _this.$api.sys.stopCasaOS();\n\n _this.checkUpdate();\n } else {\n _this.isLoading = false;\n _this.errorType = "is-danger";\n _this.errors = res.data.message;\n }\n }).catch(function (err) {\n _this.isLoading = false;\n _this.errorType = "is-danger";\n _this.errors = err.response.data.message;\n });\n },\n checkUpdate: function checkUpdate() {\n var _this2 = this;\n\n this.timer = setInterval(function () {\n var protocol = document.location.protocol;\n var checkUrl = "".concat(protocol, "//").concat(_this2.$baseIp, ":").concat(_this2.port);\n\n _this2.$api.sys.checkUiPort(checkUrl + \'/v1/sys/port\').then(function (res) {\n if (res.data.success == 200) {\n clearInterval(_this2.timer);\n var url = "http://".concat(_this2.$baseIp, ":").concat(res.data.data);\n window.open(url, \'_self\');\n }\n });\n }, 1000);\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/PortPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/settings/UpdateCompleteModal.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "port-panel",\n data: function data() {\n return {\n timer: 0,\n isLoading: false,\n confirmation: "",\n message: "",\n notificationShow: false,\n port: this.initPort,\n errorType: "is-success",\n errors: ""\n };\n },\n props: {\n initPort: {\n type: String,\n default: "0"\n }\n },\n methods: {\n savePort: function savePort() {\n var _this = this;\n\n this.isLoading = true;\n this.$api.sys.editServerPort({\n port: this.port\n }).then(function (res) {\n if (res.data.success == 200) {\n _this.errorType = "is-success";\n _this.errors = "";\n\n _this.$api.sys.stopCasaOS();\n\n _this.checkUpdate();\n } else {\n _this.isLoading = false;\n _this.errorType = "is-danger";\n _this.errors = res.data.message;\n }\n }).catch(function (err) {\n _this.isLoading = false;\n _this.errorType = "is-danger";\n _this.errors = err.response.data.message;\n });\n },\n checkUpdate: function checkUpdate() {\n var _this2 = this;\n\n this.timer = setInterval(function () {\n var checkUrl = "".concat(_this2.$protocol, "//").concat(_this2.$baseIp, ":").concat(_this2.port);\n\n _this2.$api.sys.checkUiPort(checkUrl + \'/v1/sys/port\').then(function (res) {\n if (res.data.success == 200) {\n clearInterval(_this2.timer);\n var url = "".concat(_this2.$protocol, "//").concat(_this2.$baseIp, ":").concat(res.data.data);\n window.open(url, \'_self\');\n }\n });\n }, 1000);\n }\n },\n destroyed: function destroyed() {\n clearInterval(this.timer);\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/PortPanel.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/settings/UpdateCompleteModal.vue?vue&type=script&lang=js&":/*!*************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/settings/UpdateCompleteModal.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n markdown: "",\n githubUrl: "https://github.com/IceWhaleTech/CasaOS",\n shareTitle: "I\'m using CasaOS, a simple, easy-to-use, elegant open-source home cloud system, try it like me.",\n shareSites: [\'facebook\', \'twitter\', \'reddit\']\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateCompleteModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/settings/UpdateModal.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n markdown: "",\n githubUrl: "https://github.com/IceWhaleTech/CasaOS",\n shareTitle: "I\'m using CasaOS, a simple, easy-to-use, elegant open-source home cloud system, try it like me.",\n shareSites: [\'facebook\', \'twitter\', \'reddit\']\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateCompleteModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/settings/UpdateModal.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/settings/UpdateModal.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n isUpdating: false,\n markdown: "",\n updateLogs: ""\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n },\n updateMarkdownHtml: function updateMarkdownHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.updateLogs);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n localStorage.setItem(\'is_update\', \'true\');\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n isUpdating: false,\n markdown: "",\n updateLogs: ""\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n },\n updateMarkdownHtml: function updateMarkdownHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.updateLogs);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n localStorage.setItem(\'is_update\', \'true\');\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/settings/UpdateModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js&":/*!*****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/smartHome/SmartBlock.vue?vue&type=script&lang=js& ***!\*****************************************************************************************************************************************************************************************************************************************************************/@@ -262,7 +262,7 @@/*!****************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/syncthing/SyncBlock.vue?vue&type=script&lang=js& ***!\****************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "sync-block",\n data: function data() {\n return {\n isLoading: false,\n isStarting: false,\n syncBaseURL: "",\n isSyncInstalled: false,\n isSyncRunning: false,\n syncPort: "",\n syncId: ""\n };\n },\n created: function created() {\n var _this = this;\n\n this.checkSyncStatus();\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].UPDATE_SYNC_STATUS, function () {\n _this.checkSyncStatus();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.$EventBus.$off(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].UPDATE_SYNC_STATUS);\n },\n computed: {\n actionText: function actionText() {\n return !this.isSyncInstalled ? "Install" : "Open";\n }\n },\n methods: {\n checkSyncStatus: function checkSyncStatus() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, systemApps, is8384SyncInstalled;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$api.container.getMyAppList();\n\n case 2:\n listRes = _context.sent;\n systemApps = listRes.data.data.casaos_apps;\n is8384SyncInstalled = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384;\n });\n\n if (is8384SyncInstalled) {\n _this2.isSyncInstalled = true;\n _this2.syncBaseURL = "http://".concat(_this2.$baseIp, ":8384");\n _this2.syncPort = 8384;\n _this2.syncId = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384;\n }).port;\n _this2.isSyncRunning = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384 && app.state === \'running\';\n });\n } else {\n _this2.isSyncInstalled = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\');\n });\n\n if (_this2.isSyncInstalled) {\n _this2.isSyncRunning = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.state === "running";\n });\n _this2.syncPort = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\');\n }).port;\n _this2.syncId = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\');\n }).id;\n _this2.syncBaseURL = "http://".concat(_this2.$baseIp, ":").concat(_this2.syncPort);\n }\n }\n\n case 6:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n openSyncPanel: function openSyncPanel() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var arg;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return _this3.checkSyncStatus();\n\n case 2:\n if (!_this3.isSyncInstalled) {\n _this3.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING);\n } else {\n if (_this3.isSyncRunning) {\n arg = "<script>location.replace(\\"".concat(_this3.syncBaseURL, "\\")<\/script>");\n window.open(\'javascript:window.name;\', arg);\n } else {\n _this3.$buefy.dialog.confirm({\n title: \' \',\n message: _this3.$t(\'Syncthing is not running, start it?\'),\n hasIcon: true,\n closeOnConfirm: false,\n confirmText: _this3.$t(\'Start\'),\n cancelText: _this3.$t(\'Cancel\'),\n onConfirm: function onConfirm(value, _ref) {\n var close = _ref.close;\n\n _this3.$buefy.toast.open({\n message: _this3.$t("Starting Syncthing...")\n });\n\n _this3.$api.container.updateState(_this3.syncId, "start").then(function (res) {\n _this3.isStarting = false;\n\n if (res.data.success == 200) {\n _this3.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].RELOAD_APP_LIST);\n\n var _arg = "<script>location.replace(\\"".concat(_this3.syncBaseURL, "\\")<\/script>");\n\n setTimeout(function () {\n close();\n window.open(\'javascript:window.name;\', _arg);\n }, 2000);\n } else {\n _this3.$buefy.toast.open({\n message: _this3.$t("Failed to start, please try again."),\n type: \'is-danger\'\n });\n }\n });\n }\n });\n }\n }\n\n case 3:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.checkSyncStatus();\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/syncthing/SyncBlock.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/widgets/Settings.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "sync-block",\n data: function data() {\n return {\n isLoading: false,\n isStarting: false,\n syncBaseURL: "",\n isSyncInstalled: false,\n isSyncRunning: false,\n syncPort: "",\n syncId: ""\n };\n },\n created: function created() {\n var _this = this;\n\n this.checkSyncStatus();\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].UPDATE_SYNC_STATUS, function () {\n _this.checkSyncStatus();\n });\n },\n beforeDestroy: function beforeDestroy() {\n this.$EventBus.$off(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].UPDATE_SYNC_STATUS);\n },\n computed: {\n actionText: function actionText() {\n return !this.isSyncInstalled ? "Install" : "Open";\n }\n },\n methods: {\n checkSyncStatus: function checkSyncStatus() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var listRes, systemApps, is8384SyncInstalled;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$api.container.getMyAppList();\n\n case 2:\n listRes = _context.sent;\n systemApps = listRes.data.data.casaos_apps;\n is8384SyncInstalled = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384;\n });\n\n if (is8384SyncInstalled) {\n _this2.isSyncInstalled = true;\n _this2.syncBaseURL = "http://".concat(_this2.$baseIp, ":8384");\n _this2.syncPort = 8384;\n _this2.syncId = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384;\n }).port;\n _this2.isSyncRunning = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.port === 8384 && app.state === \'running\';\n });\n } else {\n _this2.isSyncInstalled = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\');\n });\n\n if (_this2.isSyncInstalled) {\n _this2.isSyncRunning = systemApps.some(function (app) {\n return app.image.includes(\'syncthing\') && app.state === "running";\n });\n _this2.syncPort = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\');\n }).port;\n _this2.syncId = systemApps.find(function (app) {\n return app.image.includes(\'syncthing\');\n }).id;\n _this2.syncBaseURL = "http://".concat(_this2.$baseIp, ":").concat(_this2.syncPort);\n }\n }\n\n case 6:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n openSyncPanel: function openSyncPanel() {\n var _this3 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee2() {\n var arg;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n _context2.next = 2;\n return _this3.checkSyncStatus();\n\n case 2:\n if (!_this3.isSyncInstalled) {\n _this3.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].OPEN_APP_STORE_AND_GOTO_SYNCTHING);\n } else {\n if (_this3.isSyncRunning) {\n arg = "<script>location.replace(\\"".concat(_this3.syncBaseURL, "\\")<\/script>");\n window.open(\'javascript:window.name;\', arg);\n } else {\n _this3.$buefy.dialog.confirm({\n title: \' \',\n message: _this3.$t(\'Syncthing is not running, start it?\'),\n hasIcon: true,\n closeOnConfirm: false,\n confirmText: _this3.$t(\'Start\'),\n cancelText: _this3.$t(\'Cancel\'),\n onConfirm: function onConfirm(value, _ref) {\n var close = _ref.close;\n\n _this3.$buefy.toast.open({\n message: _this3.$t("Starting Syncthing...")\n });\n\n _this3.$api.container.updateState(_this3.syncId, "start").then(function (res) {\n _this3.isStarting = false;\n\n if (res.data.success == 200) {\n _this3.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].RELOAD_APP_LIST);\n\n var _arg = "<script>location.replace(\\"".concat(_this3.syncBaseURL, "\\")<\/script>");\n\n setTimeout(function () {\n close();\n window.open(\'javascript:window.name;\', _arg);\n }, 2000);\n } else {\n _this3.$buefy.toast.open({\n message: _this3.$t("Failed to start, please try again."),\n type: \'is-danger\'\n });\n }\n });\n }\n });\n }\n }\n\n case 3:\n case "end":\n return _context2.stop();\n }\n }\n }, _callee2);\n }))();\n }\n },\n sockets: {\n app_install: function app_install(res) {\n var data = res.body.data;\n\n if (data.finished) {\n this.checkSyncStatus();\n }\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/syncthing/SyncBlock.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/widgets/Settings.vue?vue&type=script&lang=js&":/*!*************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/widgets/Settings.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************/@@ -270,7 +270,7 @@/*!********************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Home.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/SearchBar.vue */ "./src/components/SearchBar.vue");\n/* harmony import */ var _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/SideBar.vue */ "./src/components/SideBar.vue");\n/* harmony import */ var _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/TopBar.vue */ "./src/components/TopBar.vue");\n/* harmony import */ var _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/CoreService.vue */ "./src/components/CoreService.vue");\n/* harmony import */ var _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/Apps/AppSection.vue */ "./src/components/Apps/AppSection.vue");\n/* harmony import */ var _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/filebrowser/FilePanel.vue */ "./src/components/filebrowser/FilePanel.vue");\n/* harmony import */ var _components_settings_UpdateCompleteModal_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/settings/UpdateCompleteModal.vue */ "./src/components/settings/UpdateCompleteModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n //import Shortcuts from \'@/components/Shortcuts.vue\'\n\n\n\n\n\nvar wallpaperConfig = "wallpaper";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "home-page",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_9__["mixin"]],\n components: {\n SideBar: _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__["default"],\n SearchBar: _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__["default"],\n AppSection: _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n TopBar: _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n CoreService: _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n //Shortcuts,\n FilePanel: _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n hardwareInfoLoading: true,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n isFileActive: false,\n barData: {},\n topBarAni: {\n classes: \'fadeInDown\',\n duration: 800\n }\n };\n },\n provide: function provide() {\n return {\n homeShowFiles: this.showFiles\n };\n },\n computed: {\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n },\n searchbarShow: function searchbarShow() {\n return this.$store.state.searchEngineSwitch;\n },\n recommendShow: function recommendShow() {\n return this.$store.state.recommendSwitch;\n }\n },\n created: function created() {\n this.getHardwareInfo();\n this.getWallpaperConfig();\n this.getConfig();\n },\n mounted: function mounted() {\n window.addEventListener("resize", this.onResize);\n this.onResize();\n\n if (localStorage.getItem(\'is_update\') === "true") {\n this.showUpdateCompleteModal();\n localStorage.removeItem(\'is_update\');\n }\n },\n methods: {\n /**\r\n * @description: Get CasaOS Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n getConfig: function getConfig() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var systemConfig, barData, saveRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.users.getCustomStorage("system");\n\n case 2:\n systemConfig = _context.sent;\n\n if (!(systemConfig.data.success != 200 || systemConfig.data.data == "")) {\n _context.next = 9;\n break;\n }\n\n barData = {\n lang: _this.getLangFromBrowser(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: true,\n widgets_switch: true\n }; // save\n\n _context.next = 7;\n return _this.$api.users.setCustomStorage("system", barData);\n\n case 7:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n systemConfig = saveRes;\n _this.barData = saveRes.data.data;\n }\n\n case 9:\n _this.$store.commit(\'SET_SEARCH_ENGINE_SWITCH\', systemConfig.data.data.search_switch);\n\n _this.$store.commit(\'SET_RECOMMEND_SWITCH\', systemConfig.data.data.recommend_switch);\n\n _this.barData = systemConfig.data.data;\n _this.isLoading = false;\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*} void\r\n */\n showSideBar: function showSideBar() {\n console.log("showSidebar");\n },\n\n /**\r\n * @description: Show Files\r\n * @param {*}\r\n * @return {*} void\r\n */\n showFiles: function showFiles() {\n var _this2 = this;\n\n this.isFileActive = true;\n this.$nextTick(function () {\n _this2.$refs.filePanel.init();\n });\n },\n afterFileEnter: function afterFileEnter() {},\n\n /**\r\n * @description: Window Resize Handler\r\n * @param {*}\r\n * @return {*} void\r\n */\n onResize: function onResize() {\n if (window.innerWidth > 480 && this.sidebarOpen) {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n }\n },\n\n /**\r\n * @description: Get Hardware info and save to store\r\n * @param {*}\r\n * @return {*} void\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this3 = this;\n\n this.$api.sys.getUtilization().then(function (res) {\n if (res.data.success === 200) {\n _this3.hardwareInfoLoading = false;\n\n _this3.$store.commit(\'SET_HARDWARE_INFO\', res.data.data);\n }\n });\n },\n openHomeContaxtMenu: function openHomeContaxtMenu(e) {\n // console.log(e.target);\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_10__["default"].SHOW_HOME_CONTEXT_MENU, e);\n },\n getWallpaperConfig: function getWallpaperConfig() {\n var _this4 = this;\n\n this.$api.users.getCustomStorage(wallpaperConfig).then(function (res) {\n if (res.data.success === 200 && res.data.data != "") {\n _this4.$store.commit(\'SET_WALLPAPER\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }\n });\n },\n showUpdateCompleteModal: function showUpdateCompleteModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_settings_UpdateCompleteModal_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'network-storage-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n changeLog: "## [0.3.4] - 2022-07-29(UTC)\\n\\n### Added\\n\\n- SSH adds port-side options and prompts for connection status. ([#286](https://github.com/IceWhaleTech/CasaOS/issues/286))\\n\\n### Changed\\n\\n- Normalize all routes\\n- Application names now support spaces ([#211](https://github.com/IceWhaleTech/CasaOS/issues/211))\\n\\n### Removed\\n\\n- Removed casaos connect\\n\\n### Security\\n\\n- Adjustment of authentication method\\n\\n### Fixed\\n\\n- Fixed storage format and remove password error issues ([#344](https://github.com/IceWhaleTech/CasaOS/issues/344) [#357](https://github.com/IceWhaleTech/CasaOS/issues/357))"\n }\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener("resize", this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/views/Home.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Clock.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/SearchBar.vue */ "./src/components/SearchBar.vue");\n/* harmony import */ var _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/SideBar.vue */ "./src/components/SideBar.vue");\n/* harmony import */ var _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/TopBar.vue */ "./src/components/TopBar.vue");\n/* harmony import */ var _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/CoreService.vue */ "./src/components/CoreService.vue");\n/* harmony import */ var _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../components/Apps/AppSection.vue */ "./src/components/Apps/AppSection.vue");\n/* harmony import */ var _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/filebrowser/FilePanel.vue */ "./src/components/filebrowser/FilePanel.vue");\n/* harmony import */ var _components_settings_UpdateCompleteModal_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/components/settings/UpdateCompleteModal.vue */ "./src/components/settings/UpdateCompleteModal.vue");\n/* harmony import */ var _mixins_mixin__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../mixins/mixin */ "./src/mixins/mixin.js");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n //import Shortcuts from \'@/components/Shortcuts.vue\'\n\n\n\n\n\nvar wallpaperConfig = "wallpaper";\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "home-page",\n mixins: [_mixins_mixin__WEBPACK_IMPORTED_MODULE_9__["mixin"]],\n components: {\n SideBar: _components_SideBar_vue__WEBPACK_IMPORTED_MODULE_3__["default"],\n SearchBar: _components_SearchBar_vue__WEBPACK_IMPORTED_MODULE_2__["default"],\n AppSection: _components_Apps_AppSection_vue__WEBPACK_IMPORTED_MODULE_6__["default"],\n TopBar: _components_TopBar_vue__WEBPACK_IMPORTED_MODULE_4__["default"],\n CoreService: _components_CoreService_vue__WEBPACK_IMPORTED_MODULE_5__["default"],\n //Shortcuts,\n FilePanel: _components_filebrowser_FilePanel_vue__WEBPACK_IMPORTED_MODULE_7__["default"]\n },\n data: function data() {\n return {\n isLoading: true,\n hardwareInfoLoading: true,\n user_id: localStorage.getItem("user_id") ? localStorage.getItem("user_id") : 1,\n isFileActive: false,\n barData: {},\n topBarAni: {\n classes: \'fadeInDown\',\n duration: 800\n }\n };\n },\n provide: function provide() {\n return {\n homeShowFiles: this.showFiles\n };\n },\n computed: {\n sidebarOpen: function sidebarOpen() {\n return this.$store.state.sidebarOpen;\n },\n searchbarShow: function searchbarShow() {\n return this.$store.state.searchEngineSwitch;\n },\n recommendShow: function recommendShow() {\n return this.$store.state.recommendSwitch;\n }\n },\n created: function created() {\n this.getHardwareInfo();\n this.getWallpaperConfig();\n this.getConfig();\n },\n mounted: function mounted() {\n window.addEventListener("resize", this.onResize);\n this.onResize();\n\n if (localStorage.getItem(\'is_update\') === "true") {\n this.showUpdateCompleteModal();\n localStorage.removeItem(\'is_update\');\n }\n },\n methods: {\n /**\r\n * @description: Get CasaOS Configs\r\n * @param {*}\r\n * @return {*}\r\n */\n getConfig: function getConfig() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var systemConfig, barData, saveRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this.$api.users.getCustomStorage("system");\n\n case 2:\n systemConfig = _context.sent;\n\n if (!(systemConfig.data.success != 200 || systemConfig.data.data == "")) {\n _context.next = 9;\n break;\n }\n\n barData = {\n lang: _this.getLangFromBrowser(),\n search_engine: "https://duckduckgo.com/?q=",\n search_switch: true,\n recommend_switch: true,\n shortcuts_switch: true,\n widgets_switch: true\n }; // save\n\n _context.next = 7;\n return _this.$api.users.setCustomStorage("system", barData);\n\n case 7:\n saveRes = _context.sent;\n\n if (saveRes.data.success === 200) {\n systemConfig = saveRes;\n _this.barData = saveRes.data.data;\n }\n\n case 9:\n _this.$store.commit(\'SET_SEARCH_ENGINE_SWITCH\', systemConfig.data.data.search_switch);\n\n _this.$store.commit(\'SET_RECOMMEND_SWITCH\', systemConfig.data.data.recommend_switch);\n\n _this.barData = systemConfig.data.data;\n _this.isLoading = false;\n\n case 13:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Show SideBar\r\n * @param {*}\r\n * @return {*} void\r\n */\n showSideBar: function showSideBar() {\n console.log("showSidebar");\n },\n\n /**\r\n * @description: Show Files\r\n * @param {*}\r\n * @return {*} void\r\n */\n showFiles: function showFiles() {\n var _this2 = this;\n\n this.isFileActive = true;\n this.$nextTick(function () {\n _this2.$refs.filePanel.init();\n });\n },\n afterFileEnter: function afterFileEnter() {},\n\n /**\r\n * @description: Window Resize Handler\r\n * @param {*}\r\n * @return {*} void\r\n */\n onResize: function onResize() {\n if (window.innerWidth > 480 && this.sidebarOpen) {\n this.$store.commit(\'SET_SIDEBAR_CLOSE\');\n }\n },\n\n /**\r\n * @description: Get Hardware info and save to store\r\n * @param {*}\r\n * @return {*} void\r\n */\n getHardwareInfo: function getHardwareInfo() {\n var _this3 = this;\n\n this.$api.sys.getUtilization().then(function (res) {\n if (res.data.success === 200) {\n _this3.hardwareInfoLoading = false;\n\n _this3.$store.commit(\'SET_HARDWARE_INFO\', res.data.data);\n }\n });\n },\n openHomeContaxtMenu: function openHomeContaxtMenu(e) {\n // console.log(e.target);\n this.$EventBus.$emit(_events_events__WEBPACK_IMPORTED_MODULE_10__["default"].SHOW_HOME_CONTEXT_MENU, e);\n },\n getWallpaperConfig: function getWallpaperConfig() {\n var _this4 = this;\n\n this.$api.users.getCustomStorage(wallpaperConfig).then(function (res) {\n if (res.data.success === 200 && res.data.data != "") {\n _this4.$store.commit(\'SET_WALLPAPER\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }\n });\n },\n showUpdateCompleteModal: function showUpdateCompleteModal() {\n this.$buefy.modal.open({\n parent: this,\n component: _components_settings_UpdateCompleteModal_vue__WEBPACK_IMPORTED_MODULE_8__["default"],\n hasModalCard: true,\n customClass: \'network-storage-modal\',\n trapFocus: true,\n canCancel: [],\n scroll: "keep",\n animation: "zoom-in",\n props: {\n changeLog: "## [0.3.4] - 2022-07-29(UTC)\\n\\n### Added\\n\\n- SSH adds port-side options and prompts for connection status. ([#286](https://github.com/IceWhaleTech/CasaOS/issues/286))\\n\\n### Changed\\n\\n- Normalize all routes\\n- Application names now support spaces ([#211](https://github.com/IceWhaleTech/CasaOS/issues/211))\\n\\n### Removed\\n\\n- Removed casaos connect\\n\\n### Security\\n\\n- Adjustment of authentication method\\n\\n### Fixed\\n\\n- Fixed storage format and remove password error issues ([#344](https://github.com/IceWhaleTech/CasaOS/issues/344) [#357](https://github.com/IceWhaleTech/CasaOS/issues/357))"\n }\n });\n }\n },\n beforeDestroy: function beforeDestroy() {\n window.removeEventListener("resize", this.onResize);\n }\n});\n\n//# sourceURL=webpack:///./src/views/Home.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/widgets/Clock.vue?vue&type=script&lang=js&":/*!***********************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/widgets/Clock.vue?vue&type=script&lang=js& ***!\***********************************************************************************************************************************************************************************************************************************************/@@ -470,7 +470,7 @@/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/sidebar/TreeListItem.vue?vue&type=template&id=15167815&scoped=true& ***!\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: render, staticRenderFns */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c("li", [\n _vm.item.visible\n ? _c(\n "div",\n {\n staticClass: "is-flex list-item new-list-item",\n class: { active: _vm.isActived },\n on: {\n click: function ($event) {\n return _vm.open(_vm.item.path)\n },\n },\n },\n [\n _c(\n "div",\n { staticClass: "cover mr-2 is-flex-shrink-0 is-relative" },\n [\n _c("b-icon", {\n class: _vm.iconColor,\n attrs: {\n pack: _vm.item.pack,\n icon: _vm.item.icon,\n "custom-size": "casa-28px",\n },\n }),\n _vm.isShare\n ? _c(\n "div",\n { staticClass: "overlay-layer" },\n [\n _c("b-icon", {\n staticClass:\n "casa-color-green casa-shape-rounded casa-shape-12px",\n attrs: {\n pack: _vm.item.pack,\n icon: "share",\n "custom-size": "casa-10px",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n ),\n _c("div", { staticClass: " is-flex-grow-1" }, [\n _vm._v(_vm._s(_vm.item.name)),\n ]),\n _vm.iconName != ""\n ? _c(\n "div",\n {\n staticClass: " is-flex-shrink-0 is-flex",\n on: {\n click: function ($event) {\n $event.stopPropagation()\n return _vm.rightIconClick.apply(null, arguments)\n },\n },\n },\n [\n _c("b-icon", {\n staticClass: "casa-color-gray",\n attrs: {\n icon: _vm.iconName,\n pack: _vm.item.pack,\n "custom-size": "casa-24px",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]\n )\n : _vm._e(),\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/TreeListItem.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2241d1a626-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/uploader/components/btn.vue?vue&type=template&id=8bcb673e&':+/*! exports provided: render, staticRenderFns */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c("li", [\n _vm.item.visible\n ? _c(\n "div",\n {\n staticClass: "is-flex list-item new-list-item",\n class: { active: _vm.isActived },\n on: {\n click: function ($event) {\n return _vm.open(_vm.item.path)\n },\n },\n },\n [\n _c(\n "div",\n { staticClass: "cover mr-2 is-flex-shrink-0 is-relative" },\n [\n _c("b-icon", {\n class: _vm.iconColor,\n attrs: {\n pack: _vm.item.pack,\n icon: _vm.item.icon,\n "custom-size": "casa-28px",\n },\n }),\n _vm.isShare\n ? _c(\n "div",\n { staticClass: "overlay-layer" },\n [\n _c("b-icon", {\n staticClass:\n "casa-color-green casa-shape-rounded casa-shape-12px",\n attrs: {\n pack: _vm.item.pack,\n icon: "share",\n "custom-size": "casa-10px",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ],\n 1\n ),\n _c("div", { staticClass: " is-flex-grow-1 one-line" }, [\n _vm._v(_vm._s(_vm.item.name)),\n ]),\n _vm.iconName != ""\n ? _c(\n "div",\n {\n staticClass: " is-flex-shrink-0 is-flex",\n on: {\n click: function ($event) {\n $event.stopPropagation()\n return _vm.rightIconClick.apply(null, arguments)\n },\n },\n },\n [\n _c("b-icon", {\n staticClass: "casa-color-gray",\n attrs: {\n icon: _vm.iconName,\n pack: _vm.item.pack,\n "custom-size": "casa-24px",\n },\n }),\n ],\n 1\n )\n : _vm._e(),\n ]\n )\n : _vm._e(),\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/filebrowser/sidebar/TreeListItem.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%2241d1a626-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/filebrowser/uploader/components/btn.vue?vue&type=template&id=8bcb673e&':/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/filebrowser/uploader/components/btn.vue?vue&type=template&id=8bcb673e& ***!\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/@@ -790,7 +790,7 @@/*!**********************************************!*\!*** ./src/assets/img/share/share-empty.svg ***!\**********************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/share-empty.14ce54b3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/share/share-empty.svg?')},"./src/assets/img/smart/smart_icon.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/share-empty.b2f73c3a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/share/share-empty.svg?')},"./src/assets/img/smart/smart_icon.svg":/*!*********************************************!*\!*** ./src/assets/img/smart/smart_icon.svg ***!\*********************************************/@@ -810,7 +810,7 @@/*!********************************************!*\!*** ./src/assets/img/storage/storage.svg ***!\********************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/storage.608bc349.svg";\n\n//# sourceURL=webpack:///./src/assets/img/storage/storage.svg?')},"./src/assets/img/syncthing/sync.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/storage.e47db054.svg";\n\n//# sourceURL=webpack:///./src/assets/img/storage/storage.svg?')},"./src/assets/img/syncthing/sync.svg":/*!*******************************************!*\!*** ./src/assets/img/syncthing/sync.svg ***!\*******************************************/@@ -1802,7 +1802,7 @@/*!*************************************!*\!*** ./src/plugins/vee-validate.js ***!\*************************************/-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Home.vue":+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Home.vue":/*!****************************!*\!*** ./src/views/Home.vue ***!\****************************/diff --git a/web/js/7.js b/web/js/7.jsindex ddab451..7338a3a 100644--- a/web/js/7.js+++ b/web/js/7.js@@ -2,7 +2,7 @@/*!*********************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/wallpaper/WallpaperModal.vue?vue&type=script&lang=js& ***!\*********************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar wallpaperConfig = "wallpaper";\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n isLoading: false,\n isUpLoading: false,\n uploader: null,\n attributes: {\n accept: \'image/png, image/jpeg, image/svg+xml, image/bmp, image/png, image/gif\'\n },\n wallpaperItems: [{\n name: "Built-in wallpaper 1",\n path: __webpack_require__(/*! @/assets/background/wallpaper01.jpg */ "./src/assets/background/wallpaper01.jpg")\n }, {\n name: "Built-in wallpaper 2",\n path: __webpack_require__(/*! @/assets/background/wallpaper02.jpg */ "./src/assets/background/wallpaper02.jpg")\n }],\n backgroundStyleObj: {\n backgroundImage: "url(".concat(this.parseUrl(this.$store.state.wallpaperObject.path), ")")\n },\n path: this.$store.state.wallpaperObject.path,\n from: this.$store.state.wallpaperObject.from\n };\n },\n components: {},\n created: function created() {\n this.uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n target: this.getTargetUrl(),\n singleFile: true,\n testChunks: false,\n uploadMethod: "POST",\n allowDuplicateUploads: true,\n chunkSize: 1024 * 1024 * 1024 * 1024\n });\n },\n mounted: function mounted() {\n var _this = this;\n\n this.uploader.assignBrowse(document.getElementById(\'upload-wallpaper\'), false, true, this.attributes);\n this.uploader.on(\'filesSubmitted\', function () {\n _this.isUpLoading = true;\n\n _this.uploader.upload();\n });\n this.uploader.on(\'fileError\', function () {\n _this.isUpLoading = false;\n\n _this.$buefy.toast.open({\n message: _this.$t(\'Upload failed, please try again!\'),\n type: \'is-danger\'\n });\n });\n this.uploader.on(\'fileSuccess\', function (rootFile, file, message) {\n _this.isUpLoading = false;\n var res = JSON.parse(message);\n\n if (res.success === 200) {\n var uploadPath = "SERVER_URL" + res.data.online_path + "&time=" + new Date().getTime();\n _this.backgroundStyleObj.backgroundImage = "url(".concat(_this.parseUrl(uploadPath), ")");\n _this.path = uploadPath;\n _this.from = "Upload";\n } else {\n _this.$buefy.toast.open({\n message: res.message,\n type: \'is-danger\'\n });\n }\n });\n },\n methods: {\n saveChange: function saveChange() {\n var _this2 = this;\n\n var data = {\n path: this.path,\n from: this.from\n };\n this.isLoading = true;\n this.$api.users.setCustomStorage(wallpaperConfig, data).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success === 200) {\n _this2.$emit("close");\n\n setTimeout(function () {\n _this2.$store.commit(\'SET_WALLPAPER\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }, 300);\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Save failed, please try again!\'),\n type: \'is-danger\'\n });\n }\n });\n },\n changeWallpaper: function changeWallpaper(path) {\n this.backgroundStyleObj.backgroundImage = "url(".concat(this.parseUrl(path), ")");\n this.path = path;\n this.from = "Built-in";\n },\n checkActive: function checkActive(path) {\n return this.path == path;\n },\n checkActiveFrom: function checkActiveFrom(from) {\n return this.from == from;\n },\n getTargetUrl: function getTargetUrl() {\n var accessToken = localStorage.getItem("access_token");\n return "http://".concat(this.$baseURL, "/v1/users/current/image/").concat(wallpaperConfig, "?token=").concat(accessToken, "&type=wallpaper");\n },\n parseUrl: function parseUrl(serverUrl) {\n var newUrl = serverUrl.replace(\'SERVER_URL\', \'http://\' + this.$baseURL);\n return newUrl;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/wallpaper/WallpaperModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/WallpaperModal.vue?vue&type=template&id=6418f9a8&scoped=true&':+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! simple-uploader.js */ "./node_modules/simple-uploader.js/src/uploader.js");\n/* harmony import */ var simple_uploader_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(simple_uploader_js__WEBPACK_IMPORTED_MODULE_3__);\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar wallpaperConfig = "wallpaper";\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n data: function data() {\n return {\n isLoading: false,\n isUpLoading: false,\n uploader: null,\n attributes: {\n accept: \'image/png, image/jpeg, image/svg+xml, image/bmp, image/png, image/gif\'\n },\n wallpaperItems: [{\n name: "Built-in wallpaper 1",\n path: __webpack_require__(/*! @/assets/background/wallpaper01.jpg */ "./src/assets/background/wallpaper01.jpg")\n }, {\n name: "Built-in wallpaper 2",\n path: __webpack_require__(/*! @/assets/background/wallpaper02.jpg */ "./src/assets/background/wallpaper02.jpg")\n }],\n backgroundStyleObj: {\n backgroundImage: "url(".concat(this.parseUrl(this.$store.state.wallpaperObject.path), ")")\n },\n path: this.$store.state.wallpaperObject.path,\n from: this.$store.state.wallpaperObject.from\n };\n },\n components: {},\n created: function created() {\n this.uploader = new simple_uploader_js__WEBPACK_IMPORTED_MODULE_3___default.a({\n target: this.getTargetUrl(),\n singleFile: true,\n testChunks: false,\n uploadMethod: "POST",\n allowDuplicateUploads: true,\n chunkSize: 1024 * 1024 * 1024 * 1024\n });\n },\n mounted: function mounted() {\n var _this = this;\n\n this.uploader.assignBrowse(document.getElementById(\'upload-wallpaper\'), false, true, this.attributes);\n this.uploader.on(\'filesSubmitted\', function () {\n _this.isUpLoading = true;\n\n _this.uploader.upload();\n });\n this.uploader.on(\'fileError\', function () {\n _this.isUpLoading = false;\n\n _this.$buefy.toast.open({\n message: _this.$t(\'Upload failed, please try again!\'),\n type: \'is-danger\'\n });\n });\n this.uploader.on(\'fileSuccess\', function (rootFile, file, message) {\n _this.isUpLoading = false;\n var res = JSON.parse(message);\n\n if (res.success === 200) {\n var uploadPath = "SERVER_URL" + res.data.online_path + "&time=" + new Date().getTime();\n _this.backgroundStyleObj.backgroundImage = "url(".concat(_this.parseUrl(uploadPath), ")");\n _this.path = uploadPath;\n _this.from = "Upload";\n } else {\n _this.$buefy.toast.open({\n message: res.message,\n type: \'is-danger\'\n });\n }\n });\n },\n methods: {\n saveChange: function saveChange() {\n var _this2 = this;\n\n var data = {\n path: this.path,\n from: this.from\n };\n this.isLoading = true;\n this.$api.users.setCustomStorage(wallpaperConfig, data).then(function (res) {\n _this2.isLoading = false;\n\n if (res.data.success === 200) {\n _this2.$emit("close");\n\n setTimeout(function () {\n _this2.$store.commit(\'SET_WALLPAPER\', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n }, 300);\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t(\'Save failed, please try again!\'),\n type: \'is-danger\'\n });\n }\n });\n },\n changeWallpaper: function changeWallpaper(path) {\n this.backgroundStyleObj.backgroundImage = "url(".concat(this.parseUrl(path), ")");\n this.path = path;\n this.from = "Built-in";\n },\n checkActive: function checkActive(path) {\n return this.path == path;\n },\n checkActiveFrom: function checkActiveFrom(from) {\n return this.from == from;\n },\n getTargetUrl: function getTargetUrl() {\n var accessToken = localStorage.getItem("access_token");\n return "".concat(this.$protocol, "//").concat(this.$baseURL, "/v1/users/current/image/").concat(wallpaperConfig, "?token=").concat(accessToken, "&type=wallpaper");\n },\n parseUrl: function parseUrl(serverUrl) {\n var newUrl = serverUrl.replace(\'SERVER_URL\', "".concat(this.$protocol, "//").concat(this.$baseURL));\n return newUrl;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/wallpaper/WallpaperModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/WallpaperModal.vue?vue&type=template&id=6418f9a8&scoped=true&':/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/wallpaper/WallpaperModal.vue?vue&type=template&id=6418f9a8&scoped=true& ***!\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/diff --git a/web/js/8.js b/web/js/8.jsindex fe15f9c..e5b13f4 100644--- a/web/js/8.js+++ b/web/js/8.js@@ -2,7 +2,7 @@/*!***********************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Welcome.vue?vue&type=script&lang=js& ***!\***********************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "welcome-page",\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6___default.a],\n data: function data() {\n return {\n step: 1,\n username: \'\',\n password: \'\',\n confirmation: "",\n isLoading: true,\n message: "",\n notificationShow: false,\n isInit: false,\n initAni: {\n classes: \'zoomIn\',\n delay: 1000,\n duration: 700\n },\n s1Ani: {\n classes: \'fadeInUp\',\n delay: 1300,\n duration: 700\n },\n s2Ani: {\n classes: \'fadeInUp\',\n delay: 1700,\n duration: 700\n },\n s3Ani: {\n classes: \'fadeInUp\',\n delay: 1900,\n duration: 700\n },\n s4Ani: {\n classes: \'fadeIn\',\n delay: 2500,\n duration: 700\n }\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationProvider"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_5__["default"]\n },\n created: function created() {\n // var lang = navigator.language || navigator.userLanguage;\n this.isInit = !this.$store.state.needInitialization;\n\n if (this.isInit) {\n this.$router.push("/login");\n }\n },\n mounted: function mounted() {\n this.$smoothReflow({\n el: \'.login-panel\',\n property: [\'height\', \'width\']\n });\n this.isLoading = false;\n },\n watch: {\n // Watch System Initialization\n \'$store.state.needInitialization\': {\n handler: function handler(data) {\n this.isInit = !data;\n\n if (this.isInit) {\n this.$router.push("/login");\n }\n },\n deep: true\n }\n },\n methods: {\n /**\r\n * @description: register\r\n * @return {*}\r\n */\n register: function register() {\n var _this = this;\n\n var initKey = this.$store.state.initKey;\n this.$api.users.register(this.username, this.password, initKey).then(function (res) {\n if (res.data.success == 200) {\n _this.goToStep(3);\n }\n });\n },\n\n /**\r\n * @description: login\r\n * @return {*}\r\n */\n login: function login() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes, versionRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$api.users.login(_this2.username, _this2.password);\n\n case 2:\n userRes = _context.sent;\n\n if (!(userRes.data.success == 200)) {\n _context.next = 18;\n break;\n }\n\n localStorage.setItem("access_token", userRes.data.data.token.access_token);\n localStorage.setItem("refresh_token", userRes.data.data.token.refresh_token);\n localStorage.setItem("expires_at", userRes.data.data.token.expires_at);\n localStorage.setItem("user", JSON.stringify(userRes.data.data.user));\n\n _this2.$store.commit("SET_USER", userRes.data.data.user);\n\n _this2.$store.commit("SET_ACCESS_TOKEN", userRes.data.data.token.access_token);\n\n _this2.$store.commit("SET_REFRESH_TOKEN", userRes.data.data.token.refresh_token);\n\n _context.next = 13;\n return _this2.$api.sys.getVersion();\n\n case 13:\n versionRes = _context.sent;\n\n if (versionRes.data.success == 200) {\n localStorage.setItem("version", versionRes.data.data.current_version);\n }\n\n _this2.$router.push("/");\n\n _context.next = 20;\n break;\n\n case 18:\n _this2.message = _this2.$t("Username or Password error!");\n _this2.notificationShow = true;\n\n case 20:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n goToStep: function goToStep(step) {\n this.step = step;\n },\n complete: function complete() {\n this.login();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/Welcome.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Welcome.vue?vue&type=template&id=e4731dd0&':+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n/* harmony import */ var lottie_web_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lottie-web-vue */ "./node_modules/lottie-web-vue/dist/lottie-web-vue.esm.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue-smooth-reflow */ "./node_modules/vue-smooth-reflow/dist/vue-smooth-reflow.min.js");\n/* harmony import */ var vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6__);\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "welcome-page",\n mixins: [vue_smooth_reflow__WEBPACK_IMPORTED_MODULE_6___default.a],\n data: function data() {\n return {\n step: 1,\n username: \'\',\n password: \'\',\n confirmation: "",\n isLoading: true,\n message: "",\n notificationShow: false,\n isInit: false,\n initAni: {\n classes: \'zoomIn\',\n delay: 1000,\n duration: 700\n },\n s1Ani: {\n classes: \'fadeInUp\',\n delay: 1300,\n duration: 700\n },\n s2Ani: {\n classes: \'fadeInUp\',\n delay: 1700,\n duration: 700\n },\n s3Ani: {\n classes: \'fadeInUp\',\n delay: 1900,\n duration: 700\n },\n s4Ani: {\n classes: \'fadeIn\',\n delay: 2500,\n duration: 700\n }\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationProvider"],\n LottieAnimation: lottie_web_vue__WEBPACK_IMPORTED_MODULE_5__["default"]\n },\n created: function created() {\n // var lang = navigator.language || navigator.userLanguage;\n this.isInit = !this.$store.state.needInitialization;\n\n if (this.isInit) {\n this.$router.push("/login");\n }\n },\n mounted: function mounted() {\n this.$smoothReflow({\n el: \'.login-panel\',\n property: [\'height\', \'width\']\n });\n this.isLoading = false;\n },\n watch: {\n // Watch System Initialization\n \'$store.state.needInitialization\': {\n handler: function handler(data) {\n this.isInit = !data;\n\n if (this.isInit) {\n this.$router.push("/login");\n }\n },\n deep: true\n }\n },\n methods: {\n /**\r\n * @description: register\r\n * @return {*}\r\n */\n register: function register() {\n var _this = this;\n\n var initKey = this.$store.state.initKey;\n this.$api.users.register(this.username, this.password, initKey).then(function (res) {\n if (res.data.success == 200) {\n _this.goToStep(3);\n }\n });\n },\n\n /**\r\n * @description: login\r\n * @return {*}\r\n */\n login: function login() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes, versionRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.next = 2;\n return _this2.$api.users.login(_this2.username, _this2.password);\n\n case 2:\n userRes = _context.sent;\n\n if (!(userRes.data.success == 200)) {\n _context.next = 18;\n break;\n }\n\n localStorage.setItem("access_token", userRes.data.data.token.access_token);\n localStorage.setItem("refresh_token", userRes.data.data.token.refresh_token);\n localStorage.setItem("expires_at", userRes.data.data.token.expires_at);\n localStorage.setItem("user", JSON.stringify(userRes.data.data.user));\n\n _this2.$store.commit("SET_USER", userRes.data.data.user);\n\n _this2.$store.commit("SET_ACCESS_TOKEN", userRes.data.data.token.access_token);\n\n _this2.$store.commit("SET_REFRESH_TOKEN", userRes.data.data.token.refresh_token);\n\n _context.next = 13;\n return _this2.$api.sys.getVersion();\n\n case 13:\n versionRes = _context.sent;\n\n if (versionRes.data.success == 200) {\n localStorage.setItem("version", versionRes.data.data.current_version);\n }\n\n _this2.$router.push("/");\n\n _context.next = 20;\n break;\n\n case 18:\n _this2.message = _this2.$t("Username or Password error!");\n _this2.notificationShow = true;\n\n case 20:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n goToStep: function goToStep(step) {\n this.step = step;\n },\n complete: function complete() {\n this.login();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/Welcome.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Welcome.vue?vue&type=template&id=e4731dd0&':/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Welcome.vue?vue&type=template&id=e4731dd0& ***!\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/@@ -26,7 +26,7 @@/*!*************************************!*\!*** ./src/plugins/vee-validate.js ***!\*************************************/-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Welcome.vue":+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Welcome.vue":/*!*******************************!*\!*** ./src/views/Welcome.vue ***!\*******************************/diff --git a/web/js/9.js b/web/js/9.jsindex f80e7b5..4628de8 100644--- a/web/js/9.js+++ b/web/js/9.js@@ -2,7 +2,7 @@/*!*********************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=script&lang=js& ***!\*********************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "login-page",\n data: function data() {\n return {\n username: \'\',\n password: \'\',\n isLoading: false,\n message: "",\n notificationShow: false,\n isInit: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationProvider"]\n },\n created: function created() {\n this.isInit = !this.$store.state.needInitialization;\n\n if (!this.isInit) {\n this.$router.push("/welcome");\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$api.users.getAllUserName().then(function (users) {\n _this.username = users.data.data[0];\n });\n },\n watch: {\n // Watch System Initialization\n \'$store.state.needInitialization\': {\n handler: function handler(data) {\n this.isInit = !data;\n\n if (!this.isInit) {\n this.$router.push("/welcome");\n }\n },\n deep: true\n }\n },\n methods: {\n login: function login() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes, versionRes;\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this2.$api.users.login(_this2.username, _this2.password);\n\n case 3:\n userRes = _context.sent;\n localStorage.setItem("access_token", userRes.data.data.token.access_token);\n localStorage.setItem("refresh_token", userRes.data.data.token.refresh_token);\n localStorage.setItem("expires_at", userRes.data.data.token.expires_at);\n localStorage.setItem("user", JSON.stringify(userRes.data.data.user));\n\n _this2.$store.commit("SET_USER", userRes.data.data.user);\n\n _this2.$store.commit("SET_ACCESS_TOKEN", userRes.data.data.token.access_token);\n\n _this2.$store.commit("SET_REFRESH_TOKEN", userRes.data.data.token.refresh_token);\n\n _context.next = 13;\n return _this2.$api.sys.getVersion();\n\n case 13:\n versionRes = _context.sent;\n\n if (versionRes.data.success == 200) {\n localStorage.setItem("version", versionRes.data.data.current_version);\n }\n\n _this2.$router.push("/");\n\n _context.next = 22;\n break;\n\n case 18:\n _context.prev = 18;\n _context.t0 = _context["catch"](0);\n _this2.message = _this2.$t("Username or Password error!");\n _this2.notificationShow = true;\n\n case 22:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 18]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/Login.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Login.vue?vue&type=template&id=26084dc2&':+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/core-js/modules/es.json.stringify.js");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var _plugins_vee_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/plugins/vee-validate */ "./src/plugins/vee-validate.js");\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "login-page",\n data: function data() {\n return {\n username: \'\',\n password: \'\',\n isLoading: false,\n message: "",\n notificationShow: false,\n isInit: false\n };\n },\n components: {\n ValidationObserver: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationObserver"],\n ValidationProvider: vee_validate__WEBPACK_IMPORTED_MODULE_3__["ValidationProvider"]\n },\n created: function created() {\n this.isInit = !this.$store.state.needInitialization;\n\n if (!this.isInit) {\n this.$router.push("/welcome");\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$api.users.getAllUserName().then(function (users) {\n _this.username = users.data.data[0];\n });\n },\n watch: {\n // Watch System Initialization\n \'$store.state.needInitialization\': {\n handler: function handler(data) {\n this.isInit = !data;\n\n if (!this.isInit) {\n this.$router.push("/welcome");\n }\n },\n deep: true\n }\n },\n methods: {\n login: function login() {\n var _this2 = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n var userRes, versionRes;\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return _this2.$api.users.login(_this2.username, _this2.password);\n\n case 3:\n userRes = _context.sent;\n localStorage.setItem("access_token", userRes.data.data.token.access_token);\n localStorage.setItem("refresh_token", userRes.data.data.token.refresh_token);\n localStorage.setItem("expires_at", userRes.data.data.token.expires_at);\n localStorage.setItem("user", JSON.stringify(userRes.data.data.user));\n\n _this2.$store.commit("SET_USER", userRes.data.data.user);\n\n _this2.$store.commit("SET_ACCESS_TOKEN", userRes.data.data.token.access_token);\n\n _this2.$store.commit("SET_REFRESH_TOKEN", userRes.data.data.token.refresh_token);\n\n _context.next = 13;\n return _this2.$api.sys.getVersion();\n\n case 13:\n versionRes = _context.sent;\n\n if (versionRes.data.success == 200) {\n localStorage.setItem("version", versionRes.data.data.current_version);\n }\n\n _this2.$router.push("/");\n\n _context.next = 22;\n break;\n\n case 18:\n _context.prev = 18;\n _context.t0 = _context["catch"](0);\n _this2.message = _this2.$t("Username or Password error!");\n _this2.notificationShow = true;\n\n case 22:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 18]]);\n }))();\n }\n }\n});\n\n//# sourceURL=webpack:///./src/views/Login.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},'./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/views/Login.vue?vue&type=template&id=26084dc2&':/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"41d1a626-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/Login.vue?vue&type=template&id=26084dc2& ***!\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/@@ -18,7 +18,7 @@/*!*************************************!*\!*** ./src/plugins/vee-validate.js ***!\*************************************/-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Login.vue":+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ "./node_modules/@babel/runtime/helpers/esm/objectSpread2.js");\n/* harmony import */ var vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vee-validate/dist/rules */ "./node_modules/vee-validate/dist/rules.js");\n/* harmony import */ var vee_validate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vee-validate */ "./node_modules/vee-validate/dist/vee-validate.esm.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! is-valid-hostname */ "./node_modules/is-valid-hostname/index.js");\n/* harmony import */ var is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(is_valid_hostname__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! uuid-validate */ "./node_modules/uuid-validate/index.js");\n/* harmony import */ var uuid_validate__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(uuid_validate__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("required", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["required"]), {}, {\n message: "This field is required"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("email", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["email"]), {}, {\n message: "This field must be a valid email"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("confirmed", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["confirmed"]), {}, {\n message: "This field confirmation does not match"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("length", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["length"]), {}, {\n message: "This field must have 2 options"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])("min", Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])(Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__["default"])({}, vee_validate_dist_rules__WEBPACK_IMPORTED_MODULE_1__["min"]), {}, {\n message: "This field must have more than {length} characters"\n}));\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'rfc1123\', {\n validate: function validate(value) {\n return is_valid_hostname__WEBPACK_IMPORTED_MODULE_3___default()(value);\n },\n message: \'You entered an invalid RFC1123 hostname\'\n});\nObject(vee_validate__WEBPACK_IMPORTED_MODULE_2__["extend"])(\'uuid\', {\n validate: function validate(value) {\n return uuid_validate__WEBPACK_IMPORTED_MODULE_4___default()(value);\n },\n message: \'You entered an invalid share ID\'\n});\n\n//# sourceURL=webpack:///./src/plugins/vee-validate.js?')},"./src/views/Login.vue":/*!*****************************!*\!*** ./src/views/Login.vue ***!\*****************************/diff --git a/web/js/app.js b/web/js/app.jsindex edda956..288db70 100644--- a/web/js/app.js+++ b/web/js/app.js@@ -1,4 +1,4 @@-(function(e){function s(s){for(var o,r,t=s[0],i=s[1],l=s[2],c=0,d=[];c<t.length;c++)r=t[c],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);p&&p(s);while(d.length)d.shift()();return _.push.apply(_,l||[]),n()}function n(){for(var e,s=0;s<_.length;s++){for(var n=_[s],o=!0,r=1;r<n.length;r++){var t=n[r];0!==a[t]&&(o=!1)}o&&(_.splice(s--,1),e=i(i.s=n[0]))}return e}var o={},r={app:0},a={app:0},_=[];function t(e){return i.p+"js/"+({}[e]||e)+".js"}function i(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var s=[],n={4:1,5:1,6:1,7:1,8:1,9:1,13:1,14:1};r[e]?s.push(r[e]):0!==r[e]&&n[e]&&s.push(r[e]=new Promise((function(s,n){for(var o="css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",4:"5facaf2f",5:"3f6e4ac6",6:"0cf49524",7:"515410b8",8:"d30a96e7",9:"3e385d0d",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"4aea6393",14:"177dd094",15:"31d6cfe0"}[e]+".css",a=i.p+o,_=document.getElementsByTagName("link"),t=0;t<_.length;t++){var l=_[t],c=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(c===o||c===a))return s()}var d=document.getElementsByTagName("style");for(t=0;t<d.length;t++){l=d[t],c=l.getAttribute("data-href");if(c===o||c===a)return s()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=s,p.onerror=function(s){var o=s&&s.target&&s.target.src||a,_=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");_.code="CSS_CHUNK_LOAD_FAILED",_.request=o,delete r[e],p.parentNode.removeChild(p),n(_)},p.href=a;var u=document.getElementsByTagName("head")[0];u.appendChild(p)})).then((function(){r[e]=0})));var o=a[e];if(0!==o)if(o)s.push(o[2]);else{var _=new Promise((function(s,n){o=a[e]=[s,n]}));s.push(o[2]=_);var l,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=t(e);var d=new Error;l=function(s){c.onerror=c.onload=null,clearTimeout(p);var n=a[e];if(0!==n){if(n){var o=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",d.name="ChunkLoadError",d.type=o,d.request=r,n[1](d)}a[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:c})}),12e4);c.onerror=c.onload=l,document.head.appendChild(c)}return Promise.all(s)},i.m=e,i.c=o,i.d=function(e,s,n){i.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,s){if(1&s&&(e=i(e)),8&s)return e;if(4&s&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var o in e)i.d(n,o,function(s){return e[s]}.bind(null,o));return n},i.n=function(e){var s=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(s,"a",s),s},i.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},i.p="/ui/",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],c=l.push.bind(l);l.push=s,l=l.slice();for(var d=0;d<l.length;d++)s(l[d]);var p=c;_.push([0,"vendors~app"]),n()})({"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&":+(function(e){function s(s){for(var o,r,t=s[0],i=s[1],l=s[2],c=0,d=[];c<t.length;c++)r=t[c],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);p&&p(s);while(d.length)d.shift()();return _.push.apply(_,l||[]),n()}function n(){for(var e,s=0;s<_.length;s++){for(var n=_[s],o=!0,r=1;r<n.length;r++){var t=n[r];0!==a[t]&&(o=!1)}o&&(_.splice(s--,1),e=i(i.s=n[0]))}return e}var o={},r={app:0},a={app:0},_=[];function t(e){return i.p+"js/"+({}[e]||e)+".js"}function i(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.e=function(e){var s=[],n={4:1,5:1,6:1,7:1,8:1,9:1,13:1,14:1};r[e]?s.push(r[e]):0!==r[e]&&n[e]&&s.push(r[e]=new Promise((function(s,n){for(var o="css/"+({}[e]||e)+"."+{0:"31d6cfe0",1:"31d6cfe0",2:"31d6cfe0",3:"31d6cfe0",4:"0b84e87b",5:"b9bdfac7",6:"c3a0b3d4",7:"fdbd0ee0",8:"d53635ba",9:"b2f820da",10:"31d6cfe0",11:"31d6cfe0",12:"31d6cfe0",13:"3244968c",14:"edf73182",15:"31d6cfe0"}[e]+".css",a=i.p+o,_=document.getElementsByTagName("link"),t=0;t<_.length;t++){var l=_[t],c=l.getAttribute("data-href")||l.getAttribute("href");if("stylesheet"===l.rel&&(c===o||c===a))return s()}var d=document.getElementsByTagName("style");for(t=0;t<d.length;t++){l=d[t],c=l.getAttribute("data-href");if(c===o||c===a)return s()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=s,p.onerror=function(s){var o=s&&s.target&&s.target.src||a,_=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");_.code="CSS_CHUNK_LOAD_FAILED",_.request=o,delete r[e],p.parentNode.removeChild(p),n(_)},p.href=a;var u=document.getElementsByTagName("head")[0];u.appendChild(p)})).then((function(){r[e]=0})));var o=a[e];if(0!==o)if(o)s.push(o[2]);else{var _=new Promise((function(s,n){o=a[e]=[s,n]}));s.push(o[2]=_);var l,c=document.createElement("script");c.charset="utf-8",c.timeout=120,i.nc&&c.setAttribute("nonce",i.nc),c.src=t(e);var d=new Error;l=function(s){c.onerror=c.onload=null,clearTimeout(p);var n=a[e];if(0!==n){if(n){var o=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;d.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",d.name="ChunkLoadError",d.type=o,d.request=r,n[1](d)}a[e]=void 0}};var p=setTimeout((function(){l({type:"timeout",target:c})}),12e4);c.onerror=c.onload=l,document.head.appendChild(c)}return Promise.all(s)},i.m=e,i.c=o,i.d=function(e,s,n){i.o(e,s)||Object.defineProperty(e,s,{enumerable:!0,get:n})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,s){if(1&s&&(e=i(e)),8&s)return e;if(4&s&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&s&&"string"!=typeof e)for(var o in e)i.d(n,o,function(s){return e[s]}.bind(null,o));return n},i.n=function(e){var s=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(s,"a",s),s},i.o=function(e,s){return Object.prototype.hasOwnProperty.call(e,s)},i.p="/ui/",i.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],c=l.push.bind(l);l.push=s,l=l.slice();for(var d=0;d<l.length;d++)s(l[d]);var p=c;_.push([0,"vendors~app"]),n()})({"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js&":/*!*************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************/@@ -18,11 +18,11 @@/*!*************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/share/ShareModal.vue?vue&type=script&lang=js& ***!\*************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n githubUrl: "https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_social_share.png",\n shareTitle: "I\'m using CasaOS, a simple, easy-to-use, elegant open-source home cloud system, try it like me.",\n shareSites: [\'facebook\', \'twitter\', \'reddit\']\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/share/ShareModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/CasaWallpaper.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! marked */ "./node_modules/marked/lib/marked.umd.js");\n/* harmony import */ var marked__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(marked__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n props: {\n changeLog: {\n type: String,\n default: ""\n }\n },\n data: function data() {\n return {\n timer: 0,\n updateTimer: 0,\n githubUrl: "https://raw.githubusercontent.com/IceWhaleTech/logo/main/casaos/casaos_social_share.png",\n shareTitle: "I\'m using CasaOS, a simple, easy-to-use, elegant open-source home cloud system, try it like me.",\n shareSites: [\'facebook\', \'twitter\', \'reddit\']\n };\n },\n computed: {\n markdownToHtml: function markdownToHtml() {\n return marked__WEBPACK_IMPORTED_MODULE_4__["marked"].parse(this.changeLog);\n }\n },\n methods: {\n /**\r\n * @description: Update System Version and check update state\r\n * @return {*} void\r\n */\n updateSystem: function updateSystem() {\n var _this = this;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee() {\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _this.isUpdating = true;\n _context.next = 3;\n return _this.$api.sys.updateCasaOS();\n\n case 3:\n // this.checkUpdateState();\n _this.getUpdateLogs();\n\n case 4:\n case "end":\n return _context.stop();\n }\n }\n }, _callee);\n }))();\n },\n\n /**\r\n * @description: Get update logs\r\n * @return {*} void\r\n */\n getUpdateLogs: function getUpdateLogs() {\n var _this2 = this;\n\n this.updateTimer = setInterval(function () {\n _this2.$api.file.getContent("/var/log/casaos/upgrade.log").then(function (res) {\n _this2.updateLogs = res.data.data;\n\n if (_this2.updateLogs.includes("CasaOS upgrade successfully")) {\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n location.reload();\n }, 1000);\n } else if (_this2.updateLogs.includes("CasaOS upgrade failed")) {\n _this2.$buefy.toast.open({\n message: _this2.$t("There seems to be a problem with the upgrade process, please try again!"),\n type: \'is-danger\'\n });\n\n clearInterval(_this2.updateTimer);\n setTimeout(function () {\n _this2.isUpdating = false;\n }, 1000);\n }\n });\n }, 200);\n },\n\n /**\r\n * @description: check update state if is_need is false then reload page\r\n * @return {*} void\r\n */\n checkUpdateState: function checkUpdateState() {\n var _this3 = this;\n\n this.timer = setInterval(function () {\n _this3.$api.sys.getVersion().then(function (res) {\n if (res.data.success == 200) {\n if (!res.data.data.is_need) {\n clearInterval(_this3.timer);\n location.reload();\n }\n }\n });\n }, 3000);\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/share/ShareModal.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/CasaWallpaper.vue?vue&type=script&lang=js&":/*!********************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/wallpaper/CasaWallpaper.vue?vue&type=script&lang=js& ***!\********************************************************************************************************************************************************************************************************************************************************************/-/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ContextMenu.vue */ "./src/components/wallpaper/ContextMenu.vue");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "casa-background",\n components: {\n ContextMenu: _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_5__["default"]\n },\n props: {\n animate: {\n type: Object,\n default: null\n }\n },\n data: function data() {\n return {\n isWelcome: false,\n backgroundStyleObj: {\n backgroundImage: localStorage.getItem("wallpaper") ? "url(".concat(this.parseUrl(localStorage.getItem("wallpaper")), ")") : "url(".concat(this.$store.state.wallpaperObject.path, ")")\n }\n };\n },\n watch: {\n \'$store.state.wallpaperObject\': {\n handler: function handler(val) {\n this.backgroundStyleObj.backgroundImage = "url(".concat(this.parseUrl(val.path), ")");\n },\n deep: true\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_6__["default"].SHOW_CHANGE_WALLPAPER_MODAL, function () {\n _this.showChangeWallpaperModal();\n });\n },\n methods: {\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$buefy.modal.open({\n parent: this,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, /*! @/components/wallpaper/WallpaperModal.vue */ "./src/components/wallpaper/WallpaperModal.vue"));\n },\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {}\n });\n },\n parseUrl: function parseUrl(serverUrl) {\n var newUrl = serverUrl.replace(\'SERVER_URL\', \'http://\' + this.$baseURL);\n return newUrl;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/wallpaper/CasaWallpaper.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/ContextMenu.vue?vue&type=script&lang=js&":+/*! exports provided: default */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ContextMenu.vue */ "./src/components/wallpaper/ContextMenu.vue");\n/* harmony import */ var _events_events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/events/events */ "./src/events/events.js");\n\n\n\n\n\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__["default"] = ({\n name: "casa-background",\n components: {\n ContextMenu: _ContextMenu_vue__WEBPACK_IMPORTED_MODULE_6__["default"]\n },\n props: {\n animate: {\n type: Object,\n default: null\n }\n },\n data: function data() {\n return {\n isWelcome: false,\n backgroundStyleObj: {\n backgroundImage: localStorage.getItem("wallpaper") ? "url(".concat(this.parseUrl(localStorage.getItem("wallpaper")), ")") : "url(".concat(this.$store.state.wallpaperObject.path, ")")\n }\n };\n },\n watch: {\n \'$store.state.wallpaperObject\': {\n handler: function handler(val) {\n this.backgroundStyleObj.backgroundImage = "url(".concat(this.parseUrl(val.path), ")");\n },\n deep: true\n }\n },\n mounted: function mounted() {\n var _this = this;\n\n this.$EventBus.$on(_events_events__WEBPACK_IMPORTED_MODULE_7__["default"].SHOW_CHANGE_WALLPAPER_MODAL, function () {\n _this.showChangeWallpaperModal();\n });\n },\n methods: {\n showChangeWallpaperModal: function showChangeWallpaperModal() {\n this.$buefy.modal.open({\n parent: this,\n component: function component() {\n return Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, /*! @/components/wallpaper/WallpaperModal.vue */ "./src/components/wallpaper/WallpaperModal.vue"));\n },\n hasModalCard: true,\n customClass: \'\',\n trapFocus: true,\n canCancel: [\'\'],\n scroll: "keep",\n animation: "zoom-in",\n events: {}\n });\n },\n parseUrl: function parseUrl(serverUrl) {\n var newUrl = serverUrl.replace(\'SERVER_URL\', "".concat(this.$protocol, "//").concat(this.$baseURL));\n return newUrl;\n }\n }\n});\n\n//# sourceURL=webpack:///./src/components/wallpaper/CasaWallpaper.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options')},"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/wallpaper/ContextMenu.vue?vue&type=script&lang=js&":/*!******************************************************************************************************************************************************************************************************************************************************************!*\!*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/wallpaper/ContextMenu.vue?vue&type=script&lang=js& ***!\******************************************************************************************************************************************************************************************************************************************************************/@@ -114,183 +114,183 @@/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/android-package-archive.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/android-package-archive.c32c4fdb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/android-package-archive.svg?')},"./src/assets/img/filebrowser/application-apk.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/android-package-archive.3afaea4a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/android-package-archive.svg?')},"./src/assets/img/filebrowser/application-apk.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/application-apk.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-apk.319706c4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-apk.svg?')},"./src/assets/img/filebrowser/application-certificate.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-apk.1908f470.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-apk.svg?')},"./src/assets/img/filebrowser/application-certificate.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-certificate.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-certificate.64a6804d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-certificate.svg?')},"./src/assets/img/filebrowser/application-dicom.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-certificate.3af41dc6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-certificate.svg?')},"./src/assets/img/filebrowser/application-dicom.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-dicom.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-dicom.fbef31c7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-dicom.svg?')},"./src/assets/img/filebrowser/application-epub+zip.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-dicom.74419f7e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-dicom.svg?')},"./src/assets/img/filebrowser/application-epub+zip.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-epub+zip.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-epub+zip.73eef8b2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-epub+zip.svg?')},"./src/assets/img/filebrowser/application-illustrator.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-epub+zip.e9b0ed29.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-epub+zip.svg?')},"./src/assets/img/filebrowser/application-illustrator.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-illustrator.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-illustrator.2ea791ae.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-illustrator.svg?')},"./src/assets/img/filebrowser/application-json.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-illustrator.ab5bdf5d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-illustrator.svg?')},"./src/assets/img/filebrowser/application-json.svg":/*!*********************************************************!*\!*** ./src/assets/img/filebrowser/application-json.svg ***!\*********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-json.eea7b6c3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-json.svg?')},"./src/assets/img/filebrowser/application-msonenote.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-json.2465c375.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-json.svg?')},"./src/assets/img/filebrowser/application-msonenote.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-msonenote.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msonenote.4772ddbe.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msonenote.svg?')},"./src/assets/img/filebrowser/application-msoutlook.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msonenote.0502c82b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msonenote.svg?')},"./src/assets/img/filebrowser/application-msoutlook.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-msoutlook.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msoutlook.0c2789ef.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msoutlook.svg?')},"./src/assets/img/filebrowser/application-msword-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msoutlook.601be2b8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msoutlook.svg?')},"./src/assets/img/filebrowser/application-msword-template.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-msword-template.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msword-template.5500dd0c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msword-template.svg?')},"./src/assets/img/filebrowser/application-octet-stream.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-msword-template.e26b7026.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-msword-template.svg?')},"./src/assets/img/filebrowser/application-octet-stream.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-octet-stream.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-octet-stream.4dbc6148.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-octet-stream.svg?')},"./src/assets/img/filebrowser/application-ogg.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-octet-stream.1e155683.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-octet-stream.svg?')},"./src/assets/img/filebrowser/application-ogg.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/application-ogg.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-ogg.776137df.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-ogg.svg?')},"./src/assets/img/filebrowser/application-pdf.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-ogg.c7d6e243.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-ogg.svg?')},"./src/assets/img/filebrowser/application-pdf.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/application-pdf.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pdf.319df017.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pdf.svg?')},"./src/assets/img/filebrowser/application-pgp-signature.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pdf.96bc82b2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pdf.svg?')},"./src/assets/img/filebrowser/application-pgp-signature.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/application-pgp-signature.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pgp-signature.a482d859.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pgp-signature.svg?')},"./src/assets/img/filebrowser/application-pgp.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pgp-signature.52e392a3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pgp-signature.svg?')},"./src/assets/img/filebrowser/application-pgp.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/application-pgp.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pgp.ef9a65ff.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pgp.svg?')},"./src/assets/img/filebrowser/application-photoshop.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-pgp.eb4763a9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-pgp.svg?')},"./src/assets/img/filebrowser/application-photoshop.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-photoshop.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-photoshop.20ed858b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-photoshop.svg?')},"./src/assets/img/filebrowser/application-postscript.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-photoshop.b2f4aa1f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-photoshop.svg?')},"./src/assets/img/filebrowser/application-postscript.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/application-postscript.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-postscript.7a2e596a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-postscript.svg?')},"./src/assets/img/filebrowser/application-rss_xml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-postscript.97dc4d73.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-postscript.svg?')},"./src/assets/img/filebrowser/application-rss_xml.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-rss_xml.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-rss_xml.5d705f41.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-rss_xml.svg?')},"./src/assets/img/filebrowser/application-sql.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-rss_xml.8fc1a4e5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-rss_xml.svg?')},"./src/assets/img/filebrowser/application-sql.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/application-sql.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-sql.e76bf92b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-sql.svg?')},"./src/assets/img/filebrowser/application-vnd.appimage.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-sql.fd7955b0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-sql.svg?')},"./src/assets/img/filebrowser/application-vnd.appimage.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.appimage.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.appimage.50730ff3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.appimage.svg?')},"./src/assets/img/filebrowser/application-vnd.flatpak.ref.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.appimage.02af7c37.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.appimage.svg?')},"./src/assets/img/filebrowser/application-vnd.flatpak.ref.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.flatpak.ref.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.flatpak.ref.26e20d79.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.flatpak.ref.svg?')},"./src/assets/img/filebrowser/application-vnd.flatpak.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.flatpak.ref.659d849c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.flatpak.ref.svg?')},"./src/assets/img/filebrowser/application-vnd.flatpak.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.flatpak.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.flatpak.8a781de6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.flatpak.svg?')},"./src/assets/img/filebrowser/application-vnd.iccprofile.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.flatpak.a220023e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.flatpak.svg?')},"./src/assets/img/filebrowser/application-vnd.iccprofile.svg":/*!*******************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.iccprofile.svg ***!\*******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.iccprofile.0c017bee.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.iccprofile.svg?')},"./src/assets/img/filebrowser/application-vnd.kde.bluedevil-sendfile.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.iccprofile.18b446be.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.iccprofile.svg?')},"./src/assets/img/filebrowser/application-vnd.kde.bluedevil-sendfile.svg":/*!*******************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.kde.bluedevil-sendfile.svg ***!\*******************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.kde.bluedevil-sendfile.a912311c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.kde.bluedevil-sendfile.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-access.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.kde.bluedevil-sendfile.7e7e8165.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.kde.bluedevil-sendfile.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-access.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-access.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-access.785a7627.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-access.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-cab-compressed.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-access.f28a55ed.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-access.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-cab-compressed.svg":/*!**************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-cab-compressed.svg ***!\**************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-cab-compressed.011f2e86.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-cab-compressed.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-excel.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-cab-compressed.e0a79617.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-cab-compressed.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-excel.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-excel.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-excel.ec28c59f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-excel.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-excel.template.macroenabled.12.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-excel.ab671962.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-excel.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-excel.template.macroenabled.12.svg":/*!******************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-excel.template.macroenabled.12.svg ***!\******************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-excel.template.macroenabled.12.8ee75839.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-excel.template.macroenabled.12.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-htmlhelp.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-excel.template.macroenabled.12.a3d5c20d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-excel.template.macroenabled.12.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-htmlhelp.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-htmlhelp.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-htmlhelp.c8fb9bfd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-htmlhelp.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-infopath.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-htmlhelp.485c17a4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-htmlhelp.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-infopath.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-infopath.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-infopath.c0a76ad3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-infopath.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-powerpoint.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-infopath.d6786c4a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-infopath.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-powerpoint.svg":/*!**********************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-powerpoint.svg ***!\**********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-powerpoint.b1a13336.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-powerpoint.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-powerpoint.template.macroenabled.12.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-powerpoint.1422be00.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-powerpoint.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-powerpoint.template.macroenabled.12.svg":/*!***********************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-powerpoint.template.macroenabled.12.svg ***!\***********************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-powerpoint.template.macroenabled.12.0409b2fe.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-powerpoint.template.macroenabled.12.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-publisher.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-powerpoint.template.macroenabled.12.ed6f0545.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-powerpoint.template.macroenabled.12.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-publisher.svg":/*!*********************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-publisher.svg ***!\*********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-publisher.32dbb1c3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-publisher.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-word.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-publisher.e250f0d7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-publisher.svg?')},"./src/assets/img/filebrowser/application-vnd.ms-word.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.ms-word.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-word.0209c533.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-word.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.chart.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.ms-word.e5e1f75a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.ms-word.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.chart.svg":/*!*********************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.chart.svg ***!\*********************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.chart.91c53f93.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.chart.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.chart.8be7c119.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.chart.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula-template.svg":/*!********************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula-template.svg ***!\********************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.formula-template.d5dbf3d8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.formula-template.e6a5dbac.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula.svg":/*!***********************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula.svg ***!\***********************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.formula.a4bc6018.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.presentation-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.formula.e2783795.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.formula.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.presentation-template.svg":/*!*************************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.presentation-template.svg ***!\*************************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.presentation-template.5b2c8be4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.presentation-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.spreadsheet-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.presentation-template.fe58049e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.presentation-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.spreadsheet-template.svg":/*!************************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.spreadsheet-template.svg ***!\************************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.spreadsheet-template.a3256fa8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.spreadsheet-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.text-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.spreadsheet-template.b3ed44c1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.spreadsheet-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.text-template.svg":/*!*****************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.text-template.svg ***!\*****************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.text-template.4e634bfe.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.text-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.web-template.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.text-template.1b0703b7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.text-template.svg?')},"./src/assets/img/filebrowser/application-vnd.oasis.opendocument.web-template.svg":/*!****************************************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.oasis.opendocument.web-template.svg ***!\****************************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.web-template.5d282765.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.web-template.svg?')},"./src/assets/img/filebrowser/application-vnd.snap.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.oasis.opendocument.web-template.a0be65bd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.oasis.opendocument.web-template.svg?')},"./src/assets/img/filebrowser/application-vnd.snap.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.snap.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.snap.72d9809b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.snap.svg?')},"./src/assets/img/filebrowser/application-vnd.visio.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.snap.ac1545f5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.snap.svg?')},"./src/assets/img/filebrowser/application-vnd.visio.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-vnd.visio.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.visio.90d89058.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.visio.svg?')},"./src/assets/img/filebrowser/application-x-ace.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-vnd.visio.b4a772b5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-vnd.visio.svg?')},"./src/assets/img/filebrowser/application-x-ace.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-ace.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ace.03fa0685.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ace.svg?')},"./src/assets/img/filebrowser/application-x-addon.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ace.9d9569f5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ace.svg?')},"./src/assets/img/filebrowser/application-x-addon.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-addon.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-addon.4a1bb379.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-addon.svg?')},"./src/assets/img/filebrowser/application-x-apple.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-addon.8a8a65f1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-addon.svg?')},"./src/assets/img/filebrowser/application-x-apple.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-apple.svg ***!\************************************************************/@@ -298,303 +298,303 @@/*!*********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-ar.svg ***!\*********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ar.3c76d5a5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ar.svg?')},"./src/assets/img/filebrowser/application-x-arc.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ar.08311a98.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ar.svg?')},"./src/assets/img/filebrowser/application-x-arc.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-arc.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-arc.c4348636.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-arc.svg?')},"./src/assets/img/filebrowser/application-x-archive.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-arc.94629e38.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-arc.svg?')},"./src/assets/img/filebrowser/application-x-archive.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-archive.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-archive.3ecaf965.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-archive.svg?')},"./src/assets/img/filebrowser/application-x-arj.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-archive.97294dab.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-archive.svg?')},"./src/assets/img/filebrowser/application-x-arj.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-arj.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-arj.020953b3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-arj.svg?')},"./src/assets/img/filebrowser/application-x-bittorrent.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-arj.497bbf0a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-arj.svg?')},"./src/assets/img/filebrowser/application-x-bittorrent.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-bittorrent.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bittorrent.0e44cdf9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bittorrent.svg?')},"./src/assets/img/filebrowser/application-x-blender.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bittorrent.19ec98c9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bittorrent.svg?')},"./src/assets/img/filebrowser/application-x-blender.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-blender.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-blender.1a5d4c35.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-blender.svg?')},"./src/assets/img/filebrowser/application-x-bzdvi.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-blender.9d4bdc8b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-blender.svg?')},"./src/assets/img/filebrowser/application-x-bzdvi.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-bzdvi.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzdvi.ddea8a90.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzdvi.svg?')},"./src/assets/img/filebrowser/application-x-bzip-compressed-tar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzdvi.a25c18f1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzdvi.svg?')},"./src/assets/img/filebrowser/application-x-bzip-compressed-tar.svg":/*!**************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-bzip-compressed-tar.svg ***!\**************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzip-compressed-tar.b40885da.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzip-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-bzip.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzip-compressed-tar.cf494d80.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzip-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-bzip.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-bzip.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzip.821da79c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzip.svg?')},"./src/assets/img/filebrowser/application-x-cd-image.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-bzip.4825c82c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-bzip.svg?')},"./src/assets/img/filebrowser/application-x-cd-image.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-cd-image.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-cd-image.c1c970b2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-cd-image.svg?')},"./src/assets/img/filebrowser/application-x-chm.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-cd-image.aeb4b0bd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-cd-image.svg?')},"./src/assets/img/filebrowser/application-x-chm.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-chm.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-chm.331e830f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-chm.svg?')},"./src/assets/img/filebrowser/application-x-clementine.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-chm.bbee0df2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-chm.svg?')},"./src/assets/img/filebrowser/application-x-clementine.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-clementine.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-clementine.904d933a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-clementine.svg?')},"./src/assets/img/filebrowser/application-x-compressed-tar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-clementine.f6919c87.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-clementine.svg?')},"./src/assets/img/filebrowser/application-x-compressed-tar.svg":/*!*********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-compressed-tar.svg ***!\*********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-compressed-tar.9234c821.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-deb.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-compressed-tar.fd57db43.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-deb.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-deb.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-deb.b48e65ac.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-deb.svg?')},"./src/assets/img/filebrowser/application-x-designer.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-deb.2b581e3c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-deb.svg?')},"./src/assets/img/filebrowser/application-x-designer.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-designer.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-designer.989966cd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-designer.svg?')},"./src/assets/img/filebrowser/application-x-executable.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-designer.8c5a3b70.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-designer.svg?')},"./src/assets/img/filebrowser/application-x-executable.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-executable.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-executable.039ba516.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-executable.svg?')},"./src/assets/img/filebrowser/application-x-fictionbook+xml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-executable.0cd0b020.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-executable.svg?')},"./src/assets/img/filebrowser/application-x-fictionbook+xml.svg":/*!**********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-fictionbook+xml.svg ***!\**********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-fictionbook+xml.70ffd254.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-fictionbook+xml.svg?')},"./src/assets/img/filebrowser/application-x-firmware.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-fictionbook+xml.49de8e56.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-fictionbook+xml.svg?')},"./src/assets/img/filebrowser/application-x-firmware.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-firmware.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-firmware.294b1536.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-firmware.svg?')},"./src/assets/img/filebrowser/application-x-flash-video.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-firmware.07f61bd6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-firmware.svg?')},"./src/assets/img/filebrowser/application-x-flash-video.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-flash-video.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-flash-video.76dbbdb4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-flash-video.svg?')},"./src/assets/img/filebrowser/application-x-gzip.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-flash-video.db190ba0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-flash-video.svg?')},"./src/assets/img/filebrowser/application-x-gzip.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-gzip.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-gzip.c1f8871c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-gzip.svg?')},"./src/assets/img/filebrowser/application-x-gzpostscript.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-gzip.9cf0099d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-gzip.svg?')},"./src/assets/img/filebrowser/application-x-gzpostscript.svg":/*!*******************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-gzpostscript.svg ***!\*******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-gzpostscript.339f251e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-gzpostscript.svg?')},"./src/assets/img/filebrowser/application-x-java-archive.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-gzpostscript.4f10e596.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-gzpostscript.svg?')},"./src/assets/img/filebrowser/application-x-java-archive.svg":/*!*******************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-java-archive.svg ***!\*******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-java-archive.10bed785.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-java-archive.svg?')},"./src/assets/img/filebrowser/application-x-java.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-java-archive.b7f933b7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-java-archive.svg?')},"./src/assets/img/filebrowser/application-x-java.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-java.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-java.fdc1dc99.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-java.svg?')},"./src/assets/img/filebrowser/application-x-kdenlivetitle.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-java.d58599df.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-java.svg?')},"./src/assets/img/filebrowser/application-x-kdenlivetitle.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-kdenlivetitle.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kdenlivetitle.410e52e7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kdenlivetitle.svg?')},"./src/assets/img/filebrowser/application-x-kexi-connectiondata.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kdenlivetitle.1596795e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kdenlivetitle.svg?')},"./src/assets/img/filebrowser/application-x-kexi-connectiondata.svg":/*!**************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-kexi-connectiondata.svg ***!\**************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kexi-connectiondata.c28ccac0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kexi-connectiondata.svg?')},"./src/assets/img/filebrowser/application-x-kexiproject-shortcut.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kexi-connectiondata.af45dbe4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kexi-connectiondata.svg?')},"./src/assets/img/filebrowser/application-x-kexiproject-shortcut.svg":/*!***************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-kexiproject-shortcut.svg ***!\***************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kexiproject-shortcut.ed151f2c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kexiproject-shortcut.svg?')},"./src/assets/img/filebrowser/application-x-kplato.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kexiproject-shortcut.f33637c3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kexiproject-shortcut.svg?')},"./src/assets/img/filebrowser/application-x-kplato.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-kplato.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kplato.2f75469c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kplato.svg?')},"./src/assets/img/filebrowser/application-x-kvtml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kplato.1afb43e4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kplato.svg?')},"./src/assets/img/filebrowser/application-x-kvtml.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-kvtml.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kvtml.366fbcf1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kvtml.svg?')},"./src/assets/img/filebrowser/application-x-labplot2.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-kvtml.20aa1ffb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-kvtml.svg?')},"./src/assets/img/filebrowser/application-x-labplot2.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-labplot2.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-labplot2.4068c7bd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-labplot2.svg?')},"./src/assets/img/filebrowser/application-x-lzma-compressed-tar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-labplot2.59070416.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-labplot2.svg?')},"./src/assets/img/filebrowser/application-x-lzma-compressed-tar.svg":/*!**************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-lzma-compressed-tar.svg ***!\**************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-lzma-compressed-tar.e434137b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-lzma-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-lzop.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-lzma-compressed-tar.5c7f5d99.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-lzma-compressed-tar.svg?')},"./src/assets/img/filebrowser/application-x-lzop.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-lzop.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-lzop.d54363ff.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-lzop.svg?')},"./src/assets/img/filebrowser/application-x-macbinary.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-lzop.f9bef6fa.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-lzop.svg?')},"./src/assets/img/filebrowser/application-x-macbinary.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-macbinary.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-macbinary.488e1482.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-macbinary.svg?')},"./src/assets/img/filebrowser/application-x-marble.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-macbinary.97874ee4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-macbinary.svg?')},"./src/assets/img/filebrowser/application-x-marble.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-marble.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-marble.5e8f5c9a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-marble.svg?')},"./src/assets/img/filebrowser/application-x-mobipocket-ebook.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-marble.6c71e3a3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-marble.svg?')},"./src/assets/img/filebrowser/application-x-mobipocket-ebook.svg":/*!***********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-mobipocket-ebook.svg ***!\***********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-mobipocket-ebook.fe543506.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-mobipocket-ebook.svg?')},"./src/assets/img/filebrowser/application-x-model.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-mobipocket-ebook.114e4e17.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-mobipocket-ebook.svg?')},"./src/assets/img/filebrowser/application-x-model.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-model.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-model.d48e52c1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-model.svg?')},"./src/assets/img/filebrowser/application-x-ms-dos-executable.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-model.6e5ed0ae.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-model.svg?')},"./src/assets/img/filebrowser/application-x-ms-dos-executable.svg":/*!************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-ms-dos-executable.svg ***!\************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ms-dos-executable.9e92f58d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ms-dos-executable.svg?')},"./src/assets/img/filebrowser/application-x-ms-shortcut.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ms-dos-executable.33ce689d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ms-dos-executable.svg?')},"./src/assets/img/filebrowser/application-x-ms-shortcut.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-ms-shortcut.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ms-shortcut.84ccf367.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ms-shortcut.svg?')},"./src/assets/img/filebrowser/application-x-object.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ms-shortcut.b78c1ca8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ms-shortcut.svg?')},"./src/assets/img/filebrowser/application-x-object.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-object.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-object.936b0c35.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-object.svg?')},"./src/assets/img/filebrowser/application-x-osm+xml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-object.70e7c59e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-object.svg?')},"./src/assets/img/filebrowser/application-x-osm+xml.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-osm+xml.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-osm+xml.0038f16e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-osm+xml.svg?')},"./src/assets/img/filebrowser/application-x-partial-download.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-osm+xml.f7d5b8ff.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-osm+xml.svg?')},"./src/assets/img/filebrowser/application-x-partial-download.svg":/*!***********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-partial-download.svg ***!\***********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-partial-download.dceb675e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-partial-download.svg?')},"./src/assets/img/filebrowser/application-x-pem-key.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-partial-download.15ecb43a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-partial-download.svg?')},"./src/assets/img/filebrowser/application-x-pem-key.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-pem-key.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-pem-key.7057dfa1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-pem-key.svg?')},"./src/assets/img/filebrowser/application-x-perl.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-pem-key.12c49cfb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-pem-key.svg?')},"./src/assets/img/filebrowser/application-x-perl.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-perl.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-perl.550514df.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-perl.svg?')},"./src/assets/img/filebrowser/application-x-plasma.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-perl.2a1d8967.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-perl.svg?')},"./src/assets/img/filebrowser/application-x-plasma.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-plasma.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-plasma.798af4e5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-plasma.svg?')},"./src/assets/img/filebrowser/application-x-rar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-plasma.ad9a66ef.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-plasma.svg?')},"./src/assets/img/filebrowser/application-x-rar.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-rar.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-rar.3681a215.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-rar.svg?')},"./src/assets/img/filebrowser/application-x-remote-connection.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-rar.c8d2a52a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-rar.svg?')},"./src/assets/img/filebrowser/application-x-remote-connection.svg":/*!************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-remote-connection.svg ***!\************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-remote-connection.42b4f91f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-remote-connection.svg?')},"./src/assets/img/filebrowser/application-x-root.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-remote-connection.abfdc86c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-remote-connection.svg?')},"./src/assets/img/filebrowser/application-x-root.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-root.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-root.25518a9b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-root.svg?')},"./src/assets/img/filebrowser/application-x-rpm.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-root.a99967e7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-root.svg?')},"./src/assets/img/filebrowser/application-x-rpm.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-rpm.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-rpm.2229818c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-rpm.svg?')},"./src/assets/img/filebrowser/application-x-ruby.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-rpm.3e608617.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-rpm.svg?')},"./src/assets/img/filebrowser/application-x-ruby.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-ruby.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ruby.a488eec1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ruby.svg?')},"./src/assets/img/filebrowser/application-x-sharedlib.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-ruby.c01851ab.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-ruby.svg?')},"./src/assets/img/filebrowser/application-x-sharedlib.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-sharedlib.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-sharedlib.4fefe978.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-sharedlib.svg?')},"./src/assets/img/filebrowser/application-x-shellscript.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-sharedlib.0b944f22.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-sharedlib.svg?')},"./src/assets/img/filebrowser/application-x-shellscript.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-shellscript.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-shellscript.a5736365.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-shellscript.svg?')},"./src/assets/img/filebrowser/application-x-skg.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-shellscript.1960e3fc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-shellscript.svg?')},"./src/assets/img/filebrowser/application-x-skg.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-skg.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-skg.b7274411.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-skg.svg?')},"./src/assets/img/filebrowser/application-x-skgc.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-skg.1fcfd8ac.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-skg.svg?')},"./src/assets/img/filebrowser/application-x-skgc.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-skgc.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-skgc.d482ecc1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-skgc.svg?')},"./src/assets/img/filebrowser/application-x-smb-workgroup.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-skgc.a03b9e22.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-skgc.svg?')},"./src/assets/img/filebrowser/application-x-smb-workgroup.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-smb-workgroup.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-smb-workgroup.3853af30.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-smb-workgroup.svg?')},"./src/assets/img/filebrowser/application-x-sogouskin.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-smb-workgroup.d8197aeb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-smb-workgroup.svg?')},"./src/assets/img/filebrowser/application-x-sogouskin.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-sogouskin.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-sogouskin.0a9eae6d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-sogouskin.svg?')},"./src/assets/img/filebrowser/application-x-srt.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-sogouskin.3addad49.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-sogouskin.svg?')},"./src/assets/img/filebrowser/application-x-srt.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-srt.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-srt.dcbe510b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-srt.svg?')},"./src/assets/img/filebrowser/application-x-subrip.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-srt.2c0c9ac1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-srt.svg?')},"./src/assets/img/filebrowser/application-x-subrip.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-subrip.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-subrip.31e14787.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-subrip.svg?')},"./src/assets/img/filebrowser/application-x-tar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-subrip.612b34e7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-subrip.svg?')},"./src/assets/img/filebrowser/application-x-tar.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-tar.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tar.69641a89.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tar.svg?')},"./src/assets/img/filebrowser/application-x-tarz.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tar.5a6e5885.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tar.svg?')},"./src/assets/img/filebrowser/application-x-tarz.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-tarz.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tarz.9982ab50.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tarz.svg?')},"./src/assets/img/filebrowser/application-x-theme.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tarz.5828d454.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tarz.svg?')},"./src/assets/img/filebrowser/application-x-theme.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-theme.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-theme.7ca0272d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-theme.svg?')},"./src/assets/img/filebrowser/application-x-trash.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-theme.9832c8d8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-theme.svg?')},"./src/assets/img/filebrowser/application-x-trash.svg":/*!************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-trash.svg ***!\************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-trash.c329298f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-trash.svg?')},"./src/assets/img/filebrowser/application-x-tzo.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-trash.9b5cf9ad.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-trash.svg?')},"./src/assets/img/filebrowser/application-x-tzo.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-tzo.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tzo.8fd362a2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tzo.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-cpl.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-tzo.a6754a1c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-tzo.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-cpl.svg":/*!*************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-wine-extension-cpl.svg ***!\*************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-cpl.7620cca5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-cpl.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-skb.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-cpl.d7e60a7f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-cpl.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-skb.svg":/*!*************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-wine-extension-skb.svg ***!\*************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-skb.3333aed5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-skb.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-skp.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-skb.929455b9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-skb.svg?')},"./src/assets/img/filebrowser/application-x-wine-extension-skp.svg":/*!*************************************************************************!*\!*** ./src/assets/img/filebrowser/application-x-wine-extension-skp.svg ***!\*************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-skp.5bb208ef.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-skp.svg?')},"./src/assets/img/filebrowser/application-x-yaml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-wine-extension-skp.f6e21475.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-wine-extension-skp.svg?')},"./src/assets/img/filebrowser/application-x-yaml.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-yaml.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-yaml.bbfe2a3d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-yaml.svg?')},"./src/assets/img/filebrowser/application-x-zip.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-yaml.53a1ec1e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-yaml.svg?')},"./src/assets/img/filebrowser/application-x-zip.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-x-zip.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-zip.2b8e8127.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-zip.svg?')},"./src/assets/img/filebrowser/application-xmind.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-x-zip.84f34053.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-x-zip.svg?')},"./src/assets/img/filebrowser/application-xmind.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/application-xmind.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-xmind.4ee812ce.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-xmind.svg?')},"./src/assets/img/filebrowser/audio-midi.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/application-xmind.b929fb90.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/application-xmind.svg?')},"./src/assets/img/filebrowser/audio-midi.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/audio-midi.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-midi.774cfe55.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-midi.svg?')},"./src/assets/img/filebrowser/audio-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-midi.41dbce17.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-midi.svg?')},"./src/assets/img/filebrowser/audio-x-generic.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/audio-x-generic.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-x-generic.4ff85f90.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-x-generic.svg?')},"./src/assets/img/filebrowser/audio-x-mp3-playlist.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-x-generic.2e60794f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-x-generic.svg?')},"./src/assets/img/filebrowser/audio-x-mp3-playlist.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/audio-x-mp3-playlist.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-x-mp3-playlist.966c5c27.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-x-mp3-playlist.svg?')},"./src/assets/img/filebrowser/extension.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/audio-x-mp3-playlist.dd02f057.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/audio-x-mp3-playlist.svg?')},"./src/assets/img/filebrowser/extension.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/extension.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/extension.4324a3ba.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/extension.svg?')},"./src/assets/img/filebrowser/folder-application.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/extension.48dcbe0a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/extension.svg?')},"./src/assets/img/filebrowser/folder-application.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/folder-application.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-application.dda93821.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-application.svg?')},"./src/assets/img/filebrowser/folder-default.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-application.27f3fe4c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-application.svg?')},"./src/assets/img/filebrowser/folder-default.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/folder-default.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-default.6cee894f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-default.svg?')},"./src/assets/img/filebrowser/folder-documents.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-default.eed83807.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-default.svg?')},"./src/assets/img/filebrowser/folder-documents.svg":/*!*********************************************************!*\!*** ./src/assets/img/filebrowser/folder-documents.svg ***!\*********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-documents.b1e9da03.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-documents.svg?')},"./src/assets/img/filebrowser/folder-download.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-documents.3df23e5f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-documents.svg?')},"./src/assets/img/filebrowser/folder-download.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/folder-download.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-download.519db213.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-download.svg?')},"./src/assets/img/filebrowser/folder-hdd.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-download.2684831d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-download.svg?')},"./src/assets/img/filebrowser/folder-hdd.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/folder-hdd.svg ***!\***************************************************/@@ -602,15 +602,15 @@/*!****************************************************!*\!*** ./src/assets/img/filebrowser/folder-open.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-open.d382f130.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-open.svg?')},"./src/assets/img/filebrowser/folder-pictures.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-open.76f77e7b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-open.svg?')},"./src/assets/img/filebrowser/folder-pictures.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/folder-pictures.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-pictures.34f77c5a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-pictures.svg?')},"./src/assets/img/filebrowser/folder-root.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-pictures.779f1254.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-pictures.svg?')},"./src/assets/img/filebrowser/folder-root.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/folder-root.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-root.c4d11b43.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-root.svg?')},"./src/assets/img/filebrowser/folder-usb.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-root.f7f3d4ad.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-root.svg?')},"./src/assets/img/filebrowser/folder-usb.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/folder-usb.svg ***!\***************************************************/@@ -618,391 +618,391 @@/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/folder-video.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-video.833d539f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-video.svg?')},"./src/assets/img/filebrowser/font-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/folder-video.f88252f8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/folder-video.svg?')},"./src/assets/img/filebrowser/font-x-generic.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/font-x-generic.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/font-x-generic.0ba66ecb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/font-x-generic.svg?')},"./src/assets/img/filebrowser/image-svg+xml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/font-x-generic.03789568.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/font-x-generic.svg?')},"./src/assets/img/filebrowser/image-svg+xml.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/image-svg+xml.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-svg+xml.fb05a46f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-svg+xml.svg?')},"./src/assets/img/filebrowser/image-vnd.dgn.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-svg+xml.41c57ad0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-svg+xml.svg?')},"./src/assets/img/filebrowser/image-vnd.dgn.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/image-vnd.dgn.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.dgn.318bc597.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.dgn.svg?')},"./src/assets/img/filebrowser/image-vnd.djvu.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.dgn.38cbfdf8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.dgn.svg?')},"./src/assets/img/filebrowser/image-vnd.djvu.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/image-vnd.djvu.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.djvu.79501060.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.djvu.svg?')},"./src/assets/img/filebrowser/image-vnd.dwg.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.djvu.c518b8ad.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.djvu.svg?')},"./src/assets/img/filebrowser/image-vnd.dwg.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/image-vnd.dwg.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.dwg.f303d30f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.dwg.svg?')},"./src/assets/img/filebrowser/image-x-compressed-xcf.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-vnd.dwg.9d2e8105.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-vnd.dwg.svg?')},"./src/assets/img/filebrowser/image-x-compressed-xcf.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/image-x-compressed-xcf.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-x-compressed-xcf.8a729292.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-x-compressed-xcf.svg?')},"./src/assets/img/filebrowser/image-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-x-compressed-xcf.5c953aea.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-x-compressed-xcf.svg?')},"./src/assets/img/filebrowser/image-x-generic.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/image-x-generic.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-x-generic.3b124364.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-x-generic.svg?')},"./src/assets/img/filebrowser/inode-symlink.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/image-x-generic.7781e699.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/image-x-generic.svg?')},"./src/assets/img/filebrowser/inode-symlink.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/inode-symlink.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/inode-symlink.70f13ed0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/inode-symlink.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-database.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/inode-symlink.96a02690.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/inode-symlink.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-database.svg":/*!*******************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-database.svg ***!\*******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-database.0aea8598.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-database.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-drawing.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-database.68d01258.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-database.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-drawing.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-drawing.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-drawing.41c80166.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-drawing.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-formula.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-drawing.d6986fd5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-drawing.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-formula.svg":/*!******************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-formula.svg ***!\******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-formula.4cf7cd41.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-formula.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-master-document.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-formula.f0a2fef9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-formula.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-master-document.svg":/*!**************************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-master-document.svg ***!\**************************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-master-document.1e8f23f6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-master-document.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-presentation.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-master-document.8b112fd5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-master-document.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-presentation.svg":/*!***********************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-presentation.svg ***!\***********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-presentation.737fb816.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-presentation.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-spreadsheet.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-presentation.2332b45e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-presentation.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-spreadsheet.svg":/*!**********************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-spreadsheet.svg ***!\**********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-spreadsheet.e7d0fab4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-spreadsheet.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-text.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-spreadsheet.0d5f55a3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-spreadsheet.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-text.svg":/*!***************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-text.svg ***!\***************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-text.437339d2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-text.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-web.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-text.4d6f6a7f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-text.svg?')},"./src/assets/img/filebrowser/libreoffice-oasis-web.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/libreoffice-oasis-web.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-web.1979edcb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-web.svg?')},"./src/assets/img/filebrowser/message-news.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/libreoffice-oasis-web.8919454d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/libreoffice-oasis-web.svg?')},"./src/assets/img/filebrowser/message-news.svg":/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/message-news.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-news.183bb64f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-news.svg?')},"./src/assets/img/filebrowser/message-partial.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-news.c7193f50.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-news.svg?')},"./src/assets/img/filebrowser/message-partial.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/message-partial.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-partial.185f063f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-partial.svg?')},"./src/assets/img/filebrowser/message-rfc822.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-partial.d10206b7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-partial.svg?')},"./src/assets/img/filebrowser/message-rfc822.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/message-rfc822.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-rfc822.cfee7a2f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-rfc822.svg?')},"./src/assets/img/filebrowser/newFile.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/message-rfc822.53375e92.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/message-rfc822.svg?')},"./src/assets/img/filebrowser/newFile.svg":/*!************************************************!*\!*** ./src/assets/img/filebrowser/newFile.svg ***!\************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/newFile.984e37c6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/newFile.svg?')},"./src/assets/img/filebrowser/newFolder.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/newFile.f5efc20c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/newFile.svg?')},"./src/assets/img/filebrowser/newFolder.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/newFolder.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/newFolder.83778b3f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/newFolder.svg?')},"./src/assets/img/filebrowser/office-contact.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/newFolder.af556ea9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/newFolder.svg?')},"./src/assets/img/filebrowser/office-contact.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/office-contact.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/office-contact.92b22d81.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/office-contact.svg?')},"./src/assets/img/filebrowser/package-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/office-contact.0403516b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/office-contact.svg?')},"./src/assets/img/filebrowser/package-x-generic.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/package-x-generic.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/package-x-generic.19866e42.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/package-x-generic.svg?')},"./src/assets/img/filebrowser/stock_addressbook.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/package-x-generic.94e28ae5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/package-x-generic.svg?')},"./src/assets/img/filebrowser/stock_addressbook.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/stock_addressbook.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/stock_addressbook.adc09dd2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/stock_addressbook.svg?')},"./src/assets/img/filebrowser/text-css.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/stock_addressbook.d6aace9a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/stock_addressbook.svg?')},"./src/assets/img/filebrowser/text-css.svg":/*!*************************************************!*\!*** ./src/assets/img/filebrowser/text-css.svg ***!\*************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-css.08305bc9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-css.svg?')},"./src/assets/img/filebrowser/text-dockerfile.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-css.b025ce65.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-css.svg?')},"./src/assets/img/filebrowser/text-dockerfile.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/text-dockerfile.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-dockerfile.d287f76b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-dockerfile.svg?')},"./src/assets/img/filebrowser/text-html.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-dockerfile.bf416a0d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-dockerfile.svg?')},"./src/assets/img/filebrowser/text-html.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-html.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-html.c5f1ff8e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-html.svg?')},"./src/assets/img/filebrowser/text-less.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-html.ad72add6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-html.svg?')},"./src/assets/img/filebrowser/text-less.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-less.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-less.19f6a0cc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-less.svg?')},"./src/assets/img/filebrowser/text-markdown.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-less.1b4eedf1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-less.svg?')},"./src/assets/img/filebrowser/text-markdown.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-markdown.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-markdown.2fd302ef.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-markdown.svg?')},"./src/assets/img/filebrowser/text-richtext.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-markdown.cea36e17.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-markdown.svg?')},"./src/assets/img/filebrowser/text-richtext.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-richtext.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-richtext.be1ab267.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-richtext.svg?')},"./src/assets/img/filebrowser/text-rust.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-richtext.5efdad49.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-richtext.svg?')},"./src/assets/img/filebrowser/text-rust.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-rust.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-rust.e2b4dcfa.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-rust.svg?')},"./src/assets/img/filebrowser/text-vnd.trolltech.linguist.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-rust.b7df532c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-rust.svg?')},"./src/assets/img/filebrowser/text-vnd.trolltech.linguist.svg":/*!********************************************************************!*\!*** ./src/assets/img/filebrowser/text-vnd.trolltech.linguist.svg ***!\********************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-vnd.trolltech.linguist.74a622fb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-vnd.trolltech.linguist.svg?')},"./src/assets/img/filebrowser/text-wiki.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-vnd.trolltech.linguist.05294c62.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-vnd.trolltech.linguist.svg?')},"./src/assets/img/filebrowser/text-wiki.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-wiki.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-wiki.3aad4325.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-wiki.svg?')},"./src/assets/img/filebrowser/text-x-adasrc.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-wiki.219c8370.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-wiki.svg?')},"./src/assets/img/filebrowser/text-x-adasrc.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-adasrc.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-adasrc.ba23c056.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-adasrc.svg?')},"./src/assets/img/filebrowser/text-x-apport.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-adasrc.7a2e11d6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-adasrc.svg?')},"./src/assets/img/filebrowser/text-x-apport.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-apport.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-apport.d746fc50.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-apport.svg?')},"./src/assets/img/filebrowser/text-x-authors.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-apport.8236ab0f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-apport.svg?')},"./src/assets/img/filebrowser/text-x-authors.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-authors.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-authors.793e1eee.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-authors.svg?')},"./src/assets/img/filebrowser/text-x-c++hdr.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-authors.d8f73986.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-authors.svg?')},"./src/assets/img/filebrowser/text-x-c++hdr.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-c++hdr.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-c++hdr.9ff4eadc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-c++hdr.svg?')},"./src/assets/img/filebrowser/text-x-c.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-c++hdr.081df8db.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-c++hdr.svg?')},"./src/assets/img/filebrowser/text-x-c.svg":/*!*************************************************!*\!*** ./src/assets/img/filebrowser/text-x-c.svg ***!\*************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-c.06cab2b1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-c.svg?')},"./src/assets/img/filebrowser/text-x-changelog.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-c.6b05fd87.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-c.svg?')},"./src/assets/img/filebrowser/text-x-changelog.svg":/*!*********************************************************!*\!*** ./src/assets/img/filebrowser/text-x-changelog.svg ***!\*********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-changelog.845b7bcc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-changelog.svg?')},"./src/assets/img/filebrowser/text-x-chdr.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-changelog.16dff5f4.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-changelog.svg?')},"./src/assets/img/filebrowser/text-x-chdr.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-chdr.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-chdr.5a4bb151.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-chdr.svg?')},"./src/assets/img/filebrowser/text-x-cmake.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-chdr.30945665.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-chdr.svg?')},"./src/assets/img/filebrowser/text-x-cmake.svg":/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-cmake.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cmake.769eb003.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cmake.svg?')},"./src/assets/img/filebrowser/text-x-cobol.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cmake.492a3a60.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cmake.svg?')},"./src/assets/img/filebrowser/text-x-cobol.svg":/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-cobol.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cobol.22273beb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cobol.svg?')},"./src/assets/img/filebrowser/text-x-copying.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cobol.0abd8f2c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cobol.svg?')},"./src/assets/img/filebrowser/text-x-copying.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-copying.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-copying.edd689d2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-copying.svg?')},"./src/assets/img/filebrowser/text-x-cpp.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-copying.c5321f45.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-copying.svg?')},"./src/assets/img/filebrowser/text-x-cpp.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-cpp.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cpp.7de14c9b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cpp.svg?')},"./src/assets/img/filebrowser/text-x-csharp.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-cpp.7e5c3e46.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-cpp.svg?')},"./src/assets/img/filebrowser/text-x-csharp.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-csharp.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-csharp.5900ea81.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-csharp.svg?')},"./src/assets/img/filebrowser/text-x-fortran.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-csharp.e50630ee.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-csharp.svg?')},"./src/assets/img/filebrowser/text-x-fortran.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-fortran.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-fortran.c6994c51.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-fortran.svg?')},"./src/assets/img/filebrowser/text-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-fortran.f4f497ae.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-fortran.svg?')},"./src/assets/img/filebrowser/text-x-generic.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-generic.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-generic.e229caae.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-generic.svg?')},"./src/assets/img/filebrowser/text-x-gettext-translation.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-generic.850da44f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-generic.svg?')},"./src/assets/img/filebrowser/text-x-gettext-translation.svg":/*!*******************************************************************!*\!*** ./src/assets/img/filebrowser/text-x-gettext-translation.svg ***!\*******************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-gettext-translation.e7b76bf1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-gettext-translation.svg?')},"./src/assets/img/filebrowser/text-x-go.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-gettext-translation.869adb77.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-gettext-translation.svg?')},"./src/assets/img/filebrowser/text-x-go.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-x-go.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-go.4a74fa4e.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-go.svg?')},"./src/assets/img/filebrowser/text-x-haskell.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-go.9de9a74a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-go.svg?')},"./src/assets/img/filebrowser/text-x-haskell.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-haskell.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-haskell.6d387324.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-haskell.svg?')},"./src/assets/img/filebrowser/text-x-hex.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-haskell.31f91856.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-haskell.svg?')},"./src/assets/img/filebrowser/text-x-hex.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-hex.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-hex.2cdbebeb.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-hex.svg?')},"./src/assets/img/filebrowser/text-x-install.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-hex.255b17e8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-hex.svg?')},"./src/assets/img/filebrowser/text-x-install.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-install.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-install.1a5c6b8a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-install.svg?')},"./src/assets/img/filebrowser/text-x-java.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-install.dff31058.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-install.svg?')},"./src/assets/img/filebrowser/text-x-java.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-java.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-java.8e4f2f05.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-java.svg?')},"./src/assets/img/filebrowser/text-x-javascript.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-java.88b60c21.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-java.svg?')},"./src/assets/img/filebrowser/text-x-javascript.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/text-x-javascript.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-javascript.940d13c2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-javascript.svg?')},"./src/assets/img/filebrowser/text-x-kotlin.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-javascript.b90fca50.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-javascript.svg?')},"./src/assets/img/filebrowser/text-x-kotlin.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-kotlin.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-kotlin.8708325a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-kotlin.svg?')},"./src/assets/img/filebrowser/text-x-kvt.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-kotlin.b80ca5e3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-kotlin.svg?')},"./src/assets/img/filebrowser/text-x-kvt.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-kvt.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-kvt.24bff758.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-kvt.svg?')},"./src/assets/img/filebrowser/text-x-lua.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-kvt.93ba4b5b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-kvt.svg?')},"./src/assets/img/filebrowser/text-x-lua.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-lua.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-lua.823ee833.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-lua.svg?')},"./src/assets/img/filebrowser/text-x-pascal.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-lua.b3b5233b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-lua.svg?')},"./src/assets/img/filebrowser/text-x-pascal.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-pascal.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-pascal.28eec384.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-pascal.svg?')},"./src/assets/img/filebrowser/text-x-patch.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-pascal.f18b5855.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-pascal.svg?')},"./src/assets/img/filebrowser/text-x-patch.svg":/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-patch.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-patch.9fd801de.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-patch.svg?')},"./src/assets/img/filebrowser/text-x-php.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-patch.4d6001cf.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-patch.svg?')},"./src/assets/img/filebrowser/text-x-php.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-php.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-php.473ca16a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-php.svg?')},"./src/assets/img/filebrowser/text-x-po.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-php.271d8879.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-php.svg?')},"./src/assets/img/filebrowser/text-x-po.svg":/*!**************************************************!*\!*** ./src/assets/img/filebrowser/text-x-po.svg ***!\**************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-po.d30f93d5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-po.svg?')},"./src/assets/img/filebrowser/text-x-preview.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-po.ef6ccc21.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-po.svg?')},"./src/assets/img/filebrowser/text-x-preview.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-preview.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-preview.112f8e89.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-preview.svg?')},"./src/assets/img/filebrowser/text-x-python.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-preview.1cabfb6c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-preview.svg?')},"./src/assets/img/filebrowser/text-x-python.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-python.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-python.27ff7450.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-python.svg?')},"./src/assets/img/filebrowser/text-x-qml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-python.fffcf5dd.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-python.svg?')},"./src/assets/img/filebrowser/text-x-qml.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-qml.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-qml.9f75e0d8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-qml.svg?')},"./src/assets/img/filebrowser/text-x-r.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-qml.958d88a1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-qml.svg?')},"./src/assets/img/filebrowser/text-x-r.svg":/*!*************************************************!*\!*** ./src/assets/img/filebrowser/text-x-r.svg ***!\*************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-r.0c3c5e7f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-r.svg?')},"./src/assets/img/filebrowser/text-x-readme.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-r.fecbbf62.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-r.svg?')},"./src/assets/img/filebrowser/text-x-readme.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-readme.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-readme.dd5bda5d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-readme.svg?')},"./src/assets/img/filebrowser/text-x-rpm-spec.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-readme.a679ce09.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-readme.svg?')},"./src/assets/img/filebrowser/text-x-rpm-spec.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/text-x-rpm-spec.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-rpm-spec.140dfab2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-rpm-spec.svg?')},"./src/assets/img/filebrowser/text-x-ruby.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-rpm-spec.b08bda76.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-rpm-spec.svg?')},"./src/assets/img/filebrowser/text-x-ruby.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-ruby.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-ruby.6e115a10.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-ruby.svg?')},"./src/assets/img/filebrowser/text-x-sass.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-ruby.d08581c0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-ruby.svg?')},"./src/assets/img/filebrowser/text-x-sass.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-sass.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-sass.854342df.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-sass.svg?')},"./src/assets/img/filebrowser/text-x-scala.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-sass.9425df70.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-sass.svg?')},"./src/assets/img/filebrowser/text-x-scala.svg":/*!*****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-scala.svg ***!\*****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-scala.6b255281.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-scala.svg?')},"./src/assets/img/filebrowser/text-x-script.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-scala.e710f941.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-scala.svg?')},"./src/assets/img/filebrowser/text-x-script.svg":/*!******************************************************!*\!*** ./src/assets/img/filebrowser/text-x-script.svg ***!\******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-script.94a79648.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-script.svg?')},"./src/assets/img/filebrowser/text-x-sql.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-script.d19a82f3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-script.svg?')},"./src/assets/img/filebrowser/text-x-sql.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-sql.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-sql.a14ef79c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-sql.svg?')},"./src/assets/img/filebrowser/text-x-tcl.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-sql.44ffd123.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-sql.svg?')},"./src/assets/img/filebrowser/text-x-tcl.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-tcl.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-tcl.5100e882.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-tcl.svg?')},"./src/assets/img/filebrowser/text-x-tex.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-tcl.391f7fae.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-tcl.svg?')},"./src/assets/img/filebrowser/text-x-tex.svg":/*!***************************************************!*\!*** ./src/assets/img/filebrowser/text-x-tex.svg ***!\***************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-tex.156220f8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-tex.svg?')},"./src/assets/img/filebrowser/text-x-typescript.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-tex.f838bd51.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-tex.svg?')},"./src/assets/img/filebrowser/text-x-typescript.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/text-x-typescript.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-typescript.9eea9a3b.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-typescript.svg?')},"./src/assets/img/filebrowser/text-x-vala.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-typescript.c2a84dd3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-typescript.svg?')},"./src/assets/img/filebrowser/text-x-vala.svg":/*!****************************************************!*\!*** ./src/assets/img/filebrowser/text-x-vala.svg ***!\****************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-vala.e4f280c0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-vala.svg?')},"./src/assets/img/filebrowser/text-xml.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-x-vala.2513f7b2.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-x-vala.svg?')},"./src/assets/img/filebrowser/text-xml.svg":/*!*************************************************!*\!*** ./src/assets/img/filebrowser/text-xml.svg ***!\*************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-xml.e9961a45.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-xml.svg?')},"./src/assets/img/filebrowser/unknown.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/text-xml.cdce466a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/text-xml.svg?')},"./src/assets/img/filebrowser/unknown.svg":/*!************************************************!*\!*** ./src/assets/img/filebrowser/unknown.svg ***!\************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/unknown.f943a5c9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/unknown.svg?')},"./src/assets/img/filebrowser/upfile.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/unknown.b6bb97e8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/unknown.svg?')},"./src/assets/img/filebrowser/upfile.svg":/*!***********************************************!*\!*** ./src/assets/img/filebrowser/upfile.svg ***!\***********************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/upfile.7261d875.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/upfile.svg?')},"./src/assets/img/filebrowser/upfolder.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/upfile.d944b447.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/upfile.svg?')},"./src/assets/img/filebrowser/upfolder.svg":/*!*************************************************!*\!*** ./src/assets/img/filebrowser/upfolder.svg ***!\*************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/upfolder.7b74077f.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/upfolder.svg?')},"./src/assets/img/filebrowser/video-x-generic.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/upfolder.af01aae5.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/upfolder.svg?')},"./src/assets/img/filebrowser/video-x-generic.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/video-x-generic.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/video-x-generic.77c3ca16.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/video-x-generic.svg?')},"./src/assets/img/filebrowser/virtualbox-hdd.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/video-x-generic.26357c06.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/video-x-generic.svg?')},"./src/assets/img/filebrowser/virtualbox-hdd.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-hdd.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-hdd.90753ad8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-hdd.svg?')},"./src/assets/img/filebrowser/virtualbox-ova.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-hdd.5c0cb1a8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-hdd.svg?')},"./src/assets/img/filebrowser/virtualbox-ova.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-ova.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-ova.1f0c9e68.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-ova.svg?')},"./src/assets/img/filebrowser/virtualbox-ovf.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-ova.9c84eda7.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-ova.svg?')},"./src/assets/img/filebrowser/virtualbox-ovf.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-ovf.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-ovf.1f73968c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-ovf.svg?')},"./src/assets/img/filebrowser/virtualbox-vbox-extpack.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-ovf.cfdb1874.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-ovf.svg?')},"./src/assets/img/filebrowser/virtualbox-vbox-extpack.svg":/*!****************************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-vbox-extpack.svg ***!\****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vbox-extpack.d200a93a.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vbox-extpack.svg?')},"./src/assets/img/filebrowser/virtualbox-vbox.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vbox-extpack.3feae149.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vbox-extpack.svg?')},"./src/assets/img/filebrowser/virtualbox-vbox.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-vbox.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vbox.537b8347.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vbox.svg?')},"./src/assets/img/filebrowser/virtualbox-vdi.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vbox.0eb4e90c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vbox.svg?')},"./src/assets/img/filebrowser/virtualbox-vdi.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-vdi.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vdi.a1e6383c.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vdi.svg?')},"./src/assets/img/filebrowser/virtualbox-vhd.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vdi.bcd4ae99.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vdi.svg?')},"./src/assets/img/filebrowser/virtualbox-vhd.svg":/*!*******************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-vhd.svg ***!\*******************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vhd.484ec9bc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vhd.svg?')},"./src/assets/img/filebrowser/virtualbox-vmdk.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vhd.66101951.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vhd.svg?')},"./src/assets/img/filebrowser/virtualbox-vmdk.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/virtualbox-vmdk.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vmdk.c80ad833.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vmdk.svg?')},"./src/assets/img/filebrowser/x-content-software.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/virtualbox-vmdk.7224f8b9.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/virtualbox-vmdk.svg?')},"./src/assets/img/filebrowser/x-content-software.svg":/*!***********************************************************!*\!*** ./src/assets/img/filebrowser/x-content-software.svg ***!\***********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-content-software.7f547ec1.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-content-software.svg?')},"./src/assets/img/filebrowser/x-kde-nsplugin-generated.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-content-software.6b28f9c3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-content-software.svg?')},"./src/assets/img/filebrowser/x-kde-nsplugin-generated.svg":/*!*****************************************************************!*\!*** ./src/assets/img/filebrowser/x-kde-nsplugin-generated.svg ***!\*****************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-kde-nsplugin-generated.c4c42a02.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-kde-nsplugin-generated.svg?')},"./src/assets/img/filebrowser/x-media-podcast.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-kde-nsplugin-generated.c42e6358.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-kde-nsplugin-generated.svg?')},"./src/assets/img/filebrowser/x-media-podcast.svg":/*!********************************************************!*\!*** ./src/assets/img/filebrowser/x-media-podcast.svg ***!\********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-media-podcast.b8c8afd3.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-media-podcast.svg?')},"./src/assets/img/filebrowser/x-office-calendar.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-media-podcast.5b55bbdc.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-media-podcast.svg?')},"./src/assets/img/filebrowser/x-office-calendar.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/x-office-calendar.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-calendar.6b3bc745.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-calendar.svg?')},"./src/assets/img/filebrowser/x-office-document.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-calendar.4c8bb612.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-calendar.svg?')},"./src/assets/img/filebrowser/x-office-document.svg":/*!**********************************************************!*\!*** ./src/assets/img/filebrowser/x-office-document.svg ***!\**********************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-document.9cd66df0.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-document.svg?')},"./src/assets/img/filebrowser/x-office-presentation.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-document.1e399c42.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-document.svg?')},"./src/assets/img/filebrowser/x-office-presentation.svg":/*!**************************************************************!*\!*** ./src/assets/img/filebrowser/x-office-presentation.svg ***!\**************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-presentation.028f7bf6.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-presentation.svg?')},"./src/assets/img/filebrowser/x-office-spreadsheet.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-presentation.d703c6e8.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-presentation.svg?')},"./src/assets/img/filebrowser/x-office-spreadsheet.svg":/*!*************************************************************!*\!*** ./src/assets/img/filebrowser/x-office-spreadsheet.svg ***!\*************************************************************/-/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-spreadsheet.5955cf5d.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-spreadsheet.svg?')},"./src/assets/img/logo/casa-white.svg":+/*! no static exports found */function(module,exports,__webpack_require__){eval('module.exports = __webpack_require__.p + "img/x-office-spreadsheet.b9523c88.svg";\n\n//# sourceURL=webpack:///./src/assets/img/filebrowser/x-office-spreadsheet.svg?')},"./src/assets/img/logo/casa-white.svg":/*!********************************************!*\!*** ./src/assets/img/logo/casa-white.svg ***!\********************************************/@@ -1162,11 +1162,11 @@/*!*********************!*\!*** ./src/main.js ***!\*********************/-/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.finally.js */ "./node_modules/core-js/modules/es.promise.finally.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! intersection-observer */ "./node_modules/intersection-observer/intersection-observer.js");\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(intersection_observer__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var _App_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/App.vue */ "./src/App.vue");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n/* harmony import */ var _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/plugins/i18n */ "./src/plugins/i18n.js");\n/* harmony import */ var _service_api_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/service/api.js */ "./src/service/api.js");\n/* harmony import */ var buefy__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! buefy */ "./node_modules/buefy/dist/esm/index.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-fullscreen */ "./node_modules/vue-fullscreen/dist/vue-fullscreen.min.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue2-touch-events */ "./node_modules/vue2-touch-events/index.js");\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vue-tour */ "./node_modules/vue-tour/dist/vue-tour.umd.js");\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(vue_tour__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vue_social_sharing__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vue-social-sharing */ "./node_modules/vue-social-sharing/dist/vue-social-sharing.js");\n/* harmony import */ var vue_social_sharing__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(vue_social_sharing__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue-socket.io-extended */ "./node_modules/vue-socket.io-extended/dist/vue-socket.io-ext.esm.js");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/assets/scss/app.scss */ "./src/assets/scss/app.scss");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! vue-tour/dist/vue-tour.css */ "./node_modules/vue-tour/dist/vue-tour.css");\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var v_animate_css__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! v-animate-css */ "./node_modules/v-animate-css/index.js");\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-22 14:24:43\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-08-16 15:03:14\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\main.js\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar io = __webpack_require__(/*! socket.io-client */ "./node_modules/socket.io-client/lib/index.js"); // Import Styles\n\n\n\n\n\n_service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"].sys.getSocketPort().then(function (res) {\n var protocol = document.location.protocol;\n var wsPort = res.data.data;\n var devIp = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_IP;\n var devPort = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_PORT;\n var localhost = document.location.host;\n var localhostName = document.location.hostname;\n var baseIp = false ? undefined : "".concat(localhostName);\n var baseURL = false ? undefined : "".concat(localhost);\n var wsURL = "ws://".concat(baseIp, ":").concat(wsPort);\n var socket = io(wsURL, {\n transports: [\'websocket\', \'polling\']\n });\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(buefy__WEBPACK_IMPORTED_MODULE_12__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(v_animate_css__WEBPACK_IMPORTED_MODULE_20__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_tour__WEBPACK_IMPORTED_MODULE_15___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_17__["default"], socket);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_social_sharing__WEBPACK_IMPORTED_MODULE_16___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].config.productionTip = false;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$api = _service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"];\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseIp = baseIp;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseURL = baseURL;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$protocol = protocol;\n console.log(protocol); // Create an EventBus\n\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$EventBus = new vue__WEBPACK_IMPORTED_MODULE_6__["default"]();\n new vue__WEBPACK_IMPORTED_MODULE_6__["default"]({\n router: _router__WEBPACK_IMPORTED_MODULE_8__["default"],\n i18n: _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__["default"],\n store: _store__WEBPACK_IMPORTED_MODULE_9__["default"],\n render: function render(h) {\n return h(_App_vue__WEBPACK_IMPORTED_MODULE_7__["default"]);\n }\n }).$mount(\'#app\');\n});\n\n//# sourceURL=webpack:///./src/main.js?')},"./src/mixins/mixin.js":+/*! no exports provided */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/core-js/modules/es.promise.finally.js */ "./node_modules/core-js/modules/es.promise.finally.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(E_Company_CasaOS_UI_dev_node_modules_core_js_modules_es_promise_finally_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! intersection-observer */ "./node_modules/intersection-observer/intersection-observer.js");\n/* harmony import */ var intersection_observer__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(intersection_observer__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vue */ "./node_modules/vue/dist/vue.esm.js");\n/* harmony import */ var _App_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/App.vue */ "./src/App.vue");\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n/* harmony import */ var _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/plugins/i18n */ "./src/plugins/i18n.js");\n/* harmony import */ var _service_api_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @/service/api.js */ "./src/service/api.js");\n/* harmony import */ var buefy__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! buefy */ "./node_modules/buefy/dist/esm/index.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! vue-fullscreen */ "./node_modules/vue-fullscreen/dist/vue-fullscreen.min.js");\n/* harmony import */ var vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! vue2-touch-events */ "./node_modules/vue2-touch-events/index.js");\n/* harmony import */ var vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! vue-tour */ "./node_modules/vue-tour/dist/vue-tour.umd.js");\n/* harmony import */ var vue_tour__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(vue_tour__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var vue_social_sharing__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! vue-social-sharing */ "./node_modules/vue-social-sharing/dist/vue-social-sharing.js");\n/* harmony import */ var vue_social_sharing__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(vue_social_sharing__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! vue-socket.io-extended */ "./node_modules/vue-socket.io-extended/dist/vue-socket.io-ext.esm.js");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @/assets/scss/app.scss */ "./src/assets/scss/app.scss");\n/* harmony import */ var _assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_assets_scss_app_scss__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! vue-tour/dist/vue-tour.css */ "./node_modules/vue-tour/dist/vue-tour.css");\n/* harmony import */ var vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(vue_tour_dist_vue_tour_css__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var v_animate_css__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! v-animate-css */ "./node_modules/v-animate-css/index.js");\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-22 14:24:43\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-08-16 15:08:41\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\main.js\r\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar io = __webpack_require__(/*! socket.io-client */ "./node_modules/socket.io-client/lib/index.js"); // Import Styles\n\n\n\n\n\n_service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"].sys.getSocketPort().then(function (res) {\n var protocol = document.location.protocol;\n var wsPort = res.data.data;\n var devIp = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_IP;\n var devPort = Object({"NODE_ENV":"prod","BASE_URL":"/ui/"}).VUE_APP_DEV_PORT;\n var localhost = document.location.host;\n var localhostName = document.location.hostname;\n var baseIp = false ? undefined : "".concat(localhostName);\n var baseURL = false ? undefined : "".concat(localhost);\n var wsURL = "ws://".concat(baseIp, ":").concat(wsPort);\n var socket = io(wsURL, {\n transports: [\'websocket\', \'polling\']\n });\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(buefy__WEBPACK_IMPORTED_MODULE_12__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_fullscreen__WEBPACK_IMPORTED_MODULE_13___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(v_animate_css__WEBPACK_IMPORTED_MODULE_20__["default"]);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue2_touch_events__WEBPACK_IMPORTED_MODULE_14___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_tour__WEBPACK_IMPORTED_MODULE_15___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_socket_io_extended__WEBPACK_IMPORTED_MODULE_17__["default"], socket);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].use(vue_social_sharing__WEBPACK_IMPORTED_MODULE_16___default.a);\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].config.productionTip = false;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$api = _service_api_js__WEBPACK_IMPORTED_MODULE_11__["default"];\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseIp = baseIp;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$baseURL = baseURL;\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$protocol = protocol; // Create an EventBus\n\n vue__WEBPACK_IMPORTED_MODULE_6__["default"].prototype.$EventBus = new vue__WEBPACK_IMPORTED_MODULE_6__["default"]();\n new vue__WEBPACK_IMPORTED_MODULE_6__["default"]({\n router: _router__WEBPACK_IMPORTED_MODULE_8__["default"],\n i18n: _plugins_i18n__WEBPACK_IMPORTED_MODULE_10__["default"],\n store: _store__WEBPACK_IMPORTED_MODULE_9__["default"],\n render: function render(h) {\n return h(_App_vue__WEBPACK_IMPORTED_MODULE_7__["default"]);\n }\n }).$mount(\'#app\');\n});\n\n//# sourceURL=webpack:///./src/main.js?')},"./src/mixins/mixin.js":/*!*****************************!*\!*** ./src/mixins/mixin.js ***!\*****************************/-/*! exports provided: wallpaperType, mixin */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wallpaperType\", function() { return wallpaperType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mixin\", function() { return mixin; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"./node_modules/core-js/modules/es.number.to-fixed.js\");\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"./node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/core-js/modules/es.json.stringify.js\");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/union */ \"./node_modules/lodash/union.js\");\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_union__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! clipboard-copy */ \"./node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_17__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2022-01-20 12:01:07\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-07-21 08:36:34\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI\\src\\mixins\\mixin.js\r\n */\n\n\n\n\n\nvar typeMap = {\n \"image-x-generic\": ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg', 'tiff'],\n \"video-x-generic\": ['mkv', 'mp4', '3gp', 'avi', 'm2ts', 'webm', 'flv', 'vob', 'ts', 'mts', 'mov', 'wmv', 'rm', 'rmvb', 'asf', 'wmv', 'mpg', 'm4v', 'mpeg', 'f4v'],\n \"audio-x-generic\": ['aac', 'aiff', 'alac', 'amr', 'ape', 'flac', 'm4a', 'mp3', 'ogg', 'opus', 'wma', 'wav'],\n \"text-x-generic\": ['txt', 'log', 'pages', 'md', 'conf', 'list', 'ini'],\n \"text-css\": ['php', 'css', 'less', 'scss', 'sass', 'aspx', 'lua', 'vue', 'js', 'go', 'asp', 'bat', 'c', 'cpp', 'cs', 'json', 'py', 'perl', 'sh', 'xml', 'yaml', 'vb', 'vbs', 'sql', 'swift', 'rust', 'rs', 'jsp', 'yml'],\n \"text-html\": ['html', 'htm', 'shtml', 'shtm'],\n \"application-vnd.ms-word\": ['doc', 'docx', 'wps'],\n \"application-vnd.ms-excel\": ['xls', 'xlsx', 'csv'],\n \"application-vnd.ms-powerpoint\": ['ppt', 'pptx'],\n \"application-pdf\": ['pdf'],\n \"application-photoshop\": ['psd', 'psb'],\n \"application-illustrator\": ['ai', 'eps'],\n \"application-x-wine-extension-cpl\": ['exe'],\n \"application-apk\": ['apk'],\n \"application-x-zip\": ['zip', 'rar', '7z', 'gz', 'ace', 'xz'],\n \"application-x-cd-image\": ['iso', 'img', 'vmdk', 'raw', 'vhd'],\n \"application-x-apple\": ['dmg', 'ipa', 'pkg'],\n \"application-x-pem-key\": ['pem', 'crt', 'ca-bundle', 'p7b', 'p7s', 'der', 'cer', 'pfx', 'p12'],\n \"text-x-cmake\": ['makefile', 'cmake', 'dockerfile'],\n \"text-dockerfile\": ['dockerfile']\n};\nvar hasThumbType = ['png', 'jpg', 'jpeg', 'bmp', 'gif']; // eslint-disable-next-line no-unused-vars\n\nvar filePanelMap = {\n 'code-editor': lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['text-x-generic'], typeMap['text-css'], typeMap['text-html'], typeMap['text-x-cmake'], typeMap['text-dockerfile']),\n \"video-player\": lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['video-x-generic'], typeMap['audio-x-generic']),\n \"image-viewer\": typeMap['image-x-generic'] // \"pdf-viewer\": typeMap['application-pdf'],\n\n};\nvar wallpaperType = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'svg'];\nvar wallpaperConfig = \"wallpaper\";\nvar mixin = {\n data: function data() {\n return {\n baseUrl: \"http://\".concat(this.$baseURL, \"/v1/\")\n };\n },\n mounted: function mounted() {\n this.typeMap = typeMap;\n },\n methods: {\n /**\r\n * @description: Format size output\r\n * @param {int} bytes size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n\n /**\r\n * @description: Get Default Lang from browser\r\n * @return {String} lang \r\n */\n getLangFromBrowser: function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace(\"-\", \"_\");\n return lang;\n },\n\n /**\r\n * @description: Set Default Lang from browser\r\n * @param {String} lang \r\n * @return {void} \r\n */\n // \n setLang: function setLang(lang) {\n localStorage.setItem('lang', lang);\n this.$i18n.locale = lang;\n },\n\n /**\r\n * @description: Get file icon from file name\r\n * @param {Object} item \r\n * @return {Object} \r\n */\n // \n getIconFile: function getIconFile(item) {\n var isDir = false;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, 'is_dir') || lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, \"isFolder\")) {\n isDir = item.is_dir;\n }\n\n if (isDir) {\n var folder = \"folder-default\";\n\n if (item.type == \"application\") {\n folder = \"folder-application\";\n } else if (item.type == \"usb\") {\n folder = \"folder-usb\";\n } else if ([\"sata\", \"nvme\", \"spi\", \"sas\"].includes(item.type)) {\n folder = \"folder-hdd\";\n } else if (item.type == \"home\") {\n folder = \"folder-root\";\n } else if (item.name == \"Media\") {\n folder = \"folder-video\";\n } else if (item.name == \"Downloads\") {\n folder = \"folder-download\";\n } else if (item.name == \"Documents\") {\n folder = \"folder-documents\";\n } else if (item.name == \"Gallery\") {\n folder = \"folder-pictures\";\n } else if (item.name == \"AppData\") {\n folder = \"folder-application\";\n } else {\n folder = \"folder-default\";\n }\n\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(folder, \".svg\"));\n } else {\n var ext = this.getFileExt(item);\n var type = \"unknown\";\n Object.keys(typeMap).forEach(function (_type) {\n var extensions = typeMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(type, \".svg\"));\n }\n },\n getPanelType: function getPanelType(item) {\n var ext = this.getFileExt(item);\n var type = null;\n Object.keys(filePanelMap).forEach(function (_type) {\n var extensions = filePanelMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return type;\n },\n getFileExt: function getFileExt(item) {\n return item.name.substring(item.name.lastIndexOf('.') + 1);\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n downloadFile: function downloadFile(items) {\n this.$buefy.toast.open({\n message: this.$t('Download in preparation...'),\n type: 'is-light'\n });\n var url = this.getFileUrl(items);\n window.open(url, '_blank');\n },\n playVideo: function playVideo(item, player) {\n var url = player + this.getFileUrl(item);\n window.open(url, '_self');\n },\n // Get File Download URL\n getFileUrl: function getFileUrl(items) {\n var apiUrl = \"\";\n var path = \"\";\n var parameters = {\n token: this.$store.state.access_token\n };\n\n if (items.constructor === Object) {\n if (items.is_dir) {\n apiUrl = \"\".concat(this.baseUrl, \"batch\");\n path = items.path;\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n } else {\n apiUrl = \"\".concat(this.baseUrl, \"file\");\n parameters.path = items.path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n } else if (items.constructor === Array) {\n apiUrl = \"\".concat(this.baseUrl, \"batch\");\n var pathArray = items.map(function (o) {\n return o.path;\n });\n path = pathArray.join(\",\");\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n },\n // check if has thumb\n hasThumb: function hasThumb(item) {\n if (item.is_dir) {\n return false;\n } else {\n var ext = this.getFileExt(item);\n return hasThumbType.indexOf(ext.toLowerCase()) > -1;\n }\n },\n // Get Image Thumb URL\n getThumbUrl: function getThumbUrl(item) {\n var apiUrl = \"\".concat(this.baseUrl, \"image?\");\n var parameters = {\n path: item.path,\n token: this.$store.state.access_token,\n type: \"thumbnail\"\n };\n return apiUrl + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n },\n // Download Button Action\n download: function download() {\n this.$refs.dropDown.toggle();\n this.downloadFile(this.item);\n },\n // Copy Path\n copyPath: function copyPath() {\n this.$refs.dropDown.toggle();\n clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default()(this.item.path);\n this.$buefy.toast.open({\n message: this.$t('Copied to clipboard'),\n type: 'is-success'\n });\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n clickItem: function clickItem(event, item) {\n var bounced = event.target.getAttribute('class').includes('mdi-dots');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n },\n\n /**\r\n * @description: Open Context Menu\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n openContextMenu: function openContextMenu(e, item) {\n if (item) {\n e.cancelBubble = true;\n document.dispatchEvent(new CustomEvent('contextmenu'));\n }\n\n this.$refs.ctxMenu.open(e, item);\n },\n\n /**\r\n * @description: Copy Or Cut File\r\n * @param {String} type\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n operate: function operate(type, items) {\n var operateObject = {\n type: type\n };\n\n if (items.constructor === Object) {\n operateObject.item = [{\n from: items.path\n }];\n } else if (items.constructor === Array) {\n operateObject.item = items.map(function (o) {\n return {\n from: o.path\n };\n });\n }\n\n this.$store.commit('SET_OPERATE_OBJECT', operateObject);\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n },\n\n /**\r\n * @description: Delete File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n deleteItem: function deleteItem(items) {\n var _this = this;\n\n var path = \"\";\n\n if (items.constructor === Object) {\n path = [items.path];\n } else if (items.constructor === Array) {\n path = items.map(function (o) {\n return o.path;\n });\n }\n\n this.$api.batch.delete(JSON.stringify(path)).then(function (res) {\n if (res.data.success === 200) {\n if (_this.$refs.dropDown !== undefined) {\n _this.$refs.dropDown.toggle();\n\n _this.$emit(\"reload\");\n }\n\n try {\n if (typeof eval(_this.reload) === \"function\") {\n _this.reload();\n }\n } catch (e) {\n console.log(\"Delete Error\");\n }\n } else {\n _this.$buefy.toast.open({\n message: res.data.message,\n type: 'is-danger'\n });\n }\n });\n },\n\n /**\r\n * @description: Set an image as wallpaper\r\n * @param {*} item\r\n * @return {*}\r\n */\n setAsWallpaper: function setAsWallpaper(item) {\n var _this2 = this;\n\n var postData = {\n path: item.path\n };\n this.$api.users.setUserImage(wallpaperConfig, postData).then(function (res) {\n if (res.data.success === 200) {\n var resData = res.data.data;\n var wallpaperData = {\n path: \"SERVER_URL\" + resData.online_path + \"&time=\" + new Date().getTime(),\n from: \"Files\"\n };\n\n _this2.$api.users.setCustomStorage(wallpaperConfig, wallpaperData).then(function (res) {\n if (res.data.success === 200) {\n _this2.$store.commit('SET_WALLPAPER', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n\n _this2.$buefy.toast.open({\n message: _this2.$t('Set wallpaper successfully.'),\n type: 'is-success'\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n }\n },\n filters: {\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderBps: function renderBps(value) {\n if (null == value || value == '' || value == 0) {\n return \"0 bps\";\n }\n\n var unitArr = new Array(\"bps\", \"Kbps\", \"Mbps\", \"Gbps\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\");\n var index = 0,\n srcsize = parseFloat(value);\n index = Math.floor(Math.log(srcsize) / Math.log(1024));\n var size = srcsize / Math.pow(1024, index);\n size = size.toFixed(2);\n return size + \" \" + unitArr[index];\n },\n\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n toFahrenheit: function toFahrenheit(value) {\n return (32 + value * 1.8).toFixed(1);\n },\n formatNum: function formatNum(number) {\n return new Intl.NumberFormat().format(number);\n },\n getProgressType: function getProgressType(per) {\n if (per >= 0 && per < 80) {\n return \"is-primary\";\n } else if (per >= 80 && per < 90) {\n return \"is-warning\";\n } else {\n return \"is-danger\";\n }\n },\n getTextType: function getTextType(per) {\n if (per >= 0 && per < 80) {\n return \"has-text-success\";\n } else if (per >= 80 && per < 90) {\n return \"has-text-warning\";\n } else {\n return \"has-text-danger\";\n }\n },\n dateFmt: function dateFmt(value) {\n if (dayjs__WEBPACK_IMPORTED_MODULE_17___default()().isSame(value, 'year')) {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM hh:mm');\n } else {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM/YYYY hh:mm');\n }\n },\n coverType: function coverType(item) {\n return item.is_dir ? \"folder-cover\" : \"file-cover\";\n },\n iconType: function iconType(item) {\n return item.is_dir ? \"folder-icon\" : \"files-icon\";\n }\n }\n};\n\n//# sourceURL=webpack:///./src/mixins/mixin.js?")},"./src/plugins/i18n.js":+/*! exports provided: wallpaperType, mixin */function(module,__webpack_exports__,__webpack_require__){"use strict";eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"wallpaperType\", function() { return wallpaperType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"mixin\", function() { return mixin; });\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"./node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.number.to-fixed.js */ \"./node_modules/core-js/modules/es.number.to-fixed.js\");\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"./node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ \"./node_modules/core-js/modules/es.string.replace.js\");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ \"./node_modules/core-js/modules/es.array.includes.js\");\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"./node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"./node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ \"./node_modules/core-js/modules/web.dom-collections.for-each.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ \"./node_modules/core-js/modules/es.object.keys.js\");\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"./node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"./node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ \"./node_modules/core-js/modules/es.string.includes.js\");\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.json.stringify.js */ \"./node_modules/core-js/modules/es.json.stringify.js\");\n/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! qs */ \"./node_modules/qs/lib/index.js\");\n/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! lodash/has */ \"./node_modules/lodash/has.js\");\n/* harmony import */ var lodash_has__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(lodash_has__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! lodash/union */ \"./node_modules/lodash/union.js\");\n/* harmony import */ var lodash_union__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(lodash_union__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! clipboard-copy */ \"./node_modules/clipboard-copy/index.js\");\n/* harmony import */ var clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(clipboard_copy__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! dayjs */ \"./node_modules/dayjs/dayjs.min.js\");\n/* harmony import */ var dayjs__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(dayjs__WEBPACK_IMPORTED_MODULE_17__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2022-01-20 12:01:07\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-08-18 10:49:41\r\n * @Description: \r\n * @FilePath: \\CasaOS-UI-dev\\src\\mixins\\mixin.js\r\n */\n\n\n\n\n\nvar typeMap = {\n \"image-x-generic\": ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'webp', 'svg', 'tiff'],\n \"video-x-generic\": ['mkv', 'mp4', '3gp', 'avi', 'm2ts', 'webm', 'flv', 'vob', 'ts', 'mts', 'mov', 'wmv', 'rm', 'rmvb', 'asf', 'wmv', 'mpg', 'm4v', 'mpeg', 'f4v'],\n \"audio-x-generic\": ['aac', 'aiff', 'alac', 'amr', 'ape', 'flac', 'm4a', 'mp3', 'ogg', 'opus', 'wma', 'wav'],\n \"text-x-generic\": ['txt', 'log', 'pages', 'md', 'conf', 'list', 'ini'],\n \"text-css\": ['php', 'css', 'less', 'scss', 'sass', 'aspx', 'lua', 'vue', 'js', 'go', 'asp', 'bat', 'c', 'cpp', 'cs', 'json', 'py', 'perl', 'sh', 'xml', 'yaml', 'vb', 'vbs', 'sql', 'swift', 'rust', 'rs', 'jsp', 'yml'],\n \"text-html\": ['html', 'htm', 'shtml', 'shtm'],\n \"application-vnd.ms-word\": ['doc', 'docx', 'wps'],\n \"application-vnd.ms-excel\": ['xls', 'xlsx', 'csv'],\n \"application-vnd.ms-powerpoint\": ['ppt', 'pptx'],\n \"application-pdf\": ['pdf'],\n \"application-photoshop\": ['psd', 'psb'],\n \"application-illustrator\": ['ai', 'eps'],\n \"application-x-wine-extension-cpl\": ['exe'],\n \"application-apk\": ['apk'],\n \"application-x-zip\": ['zip', 'rar', '7z', 'gz', 'ace', 'xz'],\n \"application-x-cd-image\": ['iso', 'img', 'vmdk', 'raw', 'vhd'],\n \"application-x-apple\": ['dmg', 'ipa', 'pkg'],\n \"application-x-pem-key\": ['pem', 'crt', 'ca-bundle', 'p7b', 'p7s', 'der', 'cer', 'pfx', 'p12'],\n \"text-x-cmake\": ['makefile', 'cmake', 'dockerfile'],\n \"text-dockerfile\": ['dockerfile']\n};\nvar hasThumbType = ['png', 'jpg', 'jpeg', 'bmp', 'gif']; // eslint-disable-next-line no-unused-vars\n\nvar filePanelMap = {\n 'code-editor': lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['text-x-generic'], typeMap['text-css'], typeMap['text-html'], typeMap['text-x-cmake'], typeMap['text-dockerfile']),\n \"video-player\": lodash_union__WEBPACK_IMPORTED_MODULE_15___default()(typeMap['video-x-generic'], typeMap['audio-x-generic']),\n \"image-viewer\": typeMap['image-x-generic'] // \"pdf-viewer\": typeMap['application-pdf'],\n\n};\nvar wallpaperType = ['png', 'jpg', 'jpeg', 'bmp', 'gif', 'svg'];\nvar wallpaperConfig = \"wallpaper\";\nvar mixin = {\n data: function data() {\n return {\n baseUrl: \"\".concat(this.$protocol, \"://\").concat(this.$baseURL, \"/v1/\")\n };\n },\n mounted: function mounted() {\n this.typeMap = typeMap;\n },\n methods: {\n /**\r\n * @description: Format size output\r\n * @param {int} bytes size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n\n /**\r\n * @description: Get Default Lang from browser\r\n * @return {String} lang \r\n */\n getLangFromBrowser: function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace(\"-\", \"_\");\n return lang;\n },\n\n /**\r\n * @description: Set Default Lang from browser\r\n * @param {String} lang \r\n * @return {void} \r\n */\n // \n setLang: function setLang(lang) {\n localStorage.setItem('lang', lang);\n this.$i18n.locale = lang;\n },\n\n /**\r\n * @description: Get file icon from file name\r\n * @param {Object} item \r\n * @return {Object} \r\n */\n // \n getIconFile: function getIconFile(item) {\n var isDir = false;\n\n if (lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, 'is_dir') || lodash_has__WEBPACK_IMPORTED_MODULE_14___default()(item, \"isFolder\")) {\n isDir = item.is_dir;\n }\n\n if (isDir) {\n var folder = \"folder-default\";\n\n if (item.type == \"application\") {\n folder = \"folder-application\";\n } else if (item.type == \"usb\") {\n folder = \"folder-usb\";\n } else if ([\"sata\", \"nvme\", \"spi\", \"sas\"].includes(item.type)) {\n folder = \"folder-hdd\";\n } else if (item.type == \"home\") {\n folder = \"folder-root\";\n } else if (item.name == \"Media\") {\n folder = \"folder-video\";\n } else if (item.name == \"Downloads\") {\n folder = \"folder-download\";\n } else if (item.name == \"Documents\") {\n folder = \"folder-documents\";\n } else if (item.name == \"Gallery\") {\n folder = \"folder-pictures\";\n } else if (item.name == \"AppData\") {\n folder = \"folder-application\";\n } else {\n folder = \"folder-default\";\n }\n\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(folder, \".svg\"));\n } else {\n var ext = this.getFileExt(item);\n var type = \"unknown\";\n Object.keys(typeMap).forEach(function (_type) {\n var extensions = typeMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return __webpack_require__(\"./src/assets/img/filebrowser sync recursive ^\\\\.\\\\/.*\\\\.svg$\")(\"./\".concat(type, \".svg\"));\n }\n },\n getPanelType: function getPanelType(item) {\n var ext = this.getFileExt(item);\n var type = null;\n Object.keys(filePanelMap).forEach(function (_type) {\n var extensions = filePanelMap[_type];\n\n if (extensions.indexOf(ext.toLowerCase()) > -1) {\n type = _type;\n }\n });\n return type;\n },\n getFileExt: function getFileExt(item) {\n return item.name.substring(item.name.lastIndexOf('.') + 1);\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n downloadFile: function downloadFile(items) {\n this.$buefy.toast.open({\n message: this.$t('Download in preparation...'),\n type: 'is-light'\n });\n var url = this.getFileUrl(items);\n window.open(url, '_blank');\n },\n playVideo: function playVideo(item, player) {\n var url = player + this.getFileUrl(item);\n window.open(url, '_self');\n },\n // Get File Download URL\n getFileUrl: function getFileUrl(items) {\n var apiUrl = \"\";\n var path = \"\";\n var parameters = {\n token: this.$store.state.access_token\n };\n\n if (items.constructor === Object) {\n if (items.is_dir) {\n apiUrl = \"\".concat(this.baseUrl, \"batch\");\n path = items.path;\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n } else {\n apiUrl = \"\".concat(this.baseUrl, \"file\");\n parameters.path = items.path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n } else if (items.constructor === Array) {\n apiUrl = \"\".concat(this.baseUrl, \"batch\");\n var pathArray = items.map(function (o) {\n return o.path;\n });\n path = pathArray.join(\",\");\n parameters.files = path;\n return apiUrl + \"?\" + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n }\n },\n // check if has thumb\n hasThumb: function hasThumb(item) {\n if (item.is_dir) {\n return false;\n } else {\n var ext = this.getFileExt(item);\n return hasThumbType.indexOf(ext.toLowerCase()) > -1;\n }\n },\n // Get Image Thumb URL\n getThumbUrl: function getThumbUrl(item) {\n var apiUrl = \"\".concat(this.baseUrl, \"image?\");\n var parameters = {\n path: item.path,\n token: this.$store.state.access_token,\n type: \"thumbnail\"\n };\n return apiUrl + qs__WEBPACK_IMPORTED_MODULE_13___default.a.stringify(parameters);\n },\n // Download Button Action\n download: function download() {\n this.$refs.dropDown.toggle();\n this.downloadFile(this.item);\n },\n // Copy Path\n copyPath: function copyPath() {\n this.$refs.dropDown.toggle();\n clipboard_copy__WEBPACK_IMPORTED_MODULE_16___default()(this.item.path);\n this.$buefy.toast.open({\n message: this.$t('Copied to clipboard'),\n type: 'is-success'\n });\n },\n\n /**\r\n * @description: Download File\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n clickItem: function clickItem(event, item) {\n var bounced = event.target.getAttribute('class').includes('mdi-dots');\n\n if (bounced) {\n return false;\n }\n\n if (item.is_dir) {\n this.$emit('gotoFolder', item.path);\n } else {\n this.$emit('showDetailModal', item);\n }\n },\n\n /**\r\n * @description: Open Context Menu\r\n * @param {Object,Object} event item \r\n * @return {void} \r\n */\n openContextMenu: function openContextMenu(e, item) {\n if (item) {\n e.cancelBubble = true;\n document.dispatchEvent(new CustomEvent('contextmenu'));\n }\n\n this.$refs.ctxMenu.open(e, item);\n },\n\n /**\r\n * @description: Copy Or Cut File\r\n * @param {String} type\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n operate: function operate(type, items) {\n var operateObject = {\n type: type\n };\n\n if (items.constructor === Object) {\n operateObject.item = [{\n from: items.path\n }];\n } else if (items.constructor === Array) {\n operateObject.item = items.map(function (o) {\n return {\n from: o.path\n };\n });\n }\n\n this.$store.commit('SET_OPERATE_OBJECT', operateObject);\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n },\n\n /**\r\n * @description: Delete File\r\n * @param {Object,Array} items\r\n * @return {void} \r\n */\n deleteItem: function deleteItem(items) {\n var _this = this;\n\n var path = \"\";\n\n if (items.constructor === Object) {\n path = [items.path];\n } else if (items.constructor === Array) {\n path = items.map(function (o) {\n return o.path;\n });\n }\n\n this.$api.batch.delete(JSON.stringify(path)).then(function (res) {\n if (res.data.success === 200) {\n if (_this.$refs.dropDown !== undefined) {\n _this.$refs.dropDown.toggle();\n\n _this.$emit(\"reload\");\n }\n\n try {\n if (typeof eval(_this.reload) === \"function\") {\n _this.reload();\n }\n } catch (e) {\n console.log(\"Delete Error\");\n }\n } else {\n _this.$buefy.toast.open({\n message: res.data.message,\n type: 'is-danger'\n });\n }\n });\n },\n\n /**\r\n * @description: Set an image as wallpaper\r\n * @param {*} item\r\n * @return {*}\r\n */\n setAsWallpaper: function setAsWallpaper(item) {\n var _this2 = this;\n\n var postData = {\n path: item.path\n };\n this.$api.users.setUserImage(wallpaperConfig, postData).then(function (res) {\n if (res.data.success === 200) {\n var resData = res.data.data;\n var wallpaperData = {\n path: \"SERVER_URL\" + resData.online_path + \"&time=\" + new Date().getTime(),\n from: \"Files\"\n };\n\n _this2.$api.users.setCustomStorage(wallpaperConfig, wallpaperData).then(function (res) {\n if (res.data.success === 200) {\n _this2.$store.commit('SET_WALLPAPER', {\n path: res.data.data.path,\n from: res.data.data.from\n });\n\n _this2.$buefy.toast.open({\n message: _this2.$t('Set wallpaper successfully.'),\n type: 'is-success'\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n } else {\n _this2.$buefy.toast.open({\n message: _this2.$t('Save failed, please try again!'),\n type: 'is-danger'\n });\n }\n });\n\n if (this.$refs.dropDown !== undefined) {\n this.$refs.dropDown.toggle();\n }\n }\n },\n filters: {\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderBps: function renderBps(value) {\n if (null == value || value == '' || value == 0) {\n return \"0 bps\";\n }\n\n var unitArr = new Array(\"bps\", \"Kbps\", \"Mbps\", \"Gbps\", \"TB\", \"PB\", \"EB\", \"ZB\", \"YB\");\n var index = 0,\n srcsize = parseFloat(value);\n index = Math.floor(Math.log(srcsize) / Math.log(1024));\n var size = srcsize / Math.pow(1024, index);\n size = size.toFixed(2);\n return size + \" \" + unitArr[index];\n },\n\n /**\r\n * @description: Format size output\r\n * @param {int} value size value\r\n * @return {String} \r\n */\n renderSize: function renderSize(bytes) {\n var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];\n if (bytes === 0) return '0 Bytes';\n var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)), 10);\n if (i === 0) return \"\".concat(bytes, \" \").concat(sizes[i]);\n return \"\".concat(parseFloat((bytes / Math.pow(1024, i)).toFixed(2)), \" \").concat(sizes[i]);\n },\n toFahrenheit: function toFahrenheit(value) {\n return (32 + value * 1.8).toFixed(1);\n },\n formatNum: function formatNum(number) {\n return new Intl.NumberFormat().format(number);\n },\n getProgressType: function getProgressType(per) {\n if (per >= 0 && per < 80) {\n return \"is-primary\";\n } else if (per >= 80 && per < 90) {\n return \"is-warning\";\n } else {\n return \"is-danger\";\n }\n },\n getTextType: function getTextType(per) {\n if (per >= 0 && per < 80) {\n return \"has-text-success\";\n } else if (per >= 80 && per < 90) {\n return \"has-text-warning\";\n } else {\n return \"has-text-danger\";\n }\n },\n dateFmt: function dateFmt(value) {\n if (dayjs__WEBPACK_IMPORTED_MODULE_17___default()().isSame(value, 'year')) {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM hh:mm');\n } else {\n return dayjs__WEBPACK_IMPORTED_MODULE_17___default()(value).format('DD/MM/YYYY hh:mm');\n }\n },\n coverType: function coverType(item) {\n return item.is_dir ? \"folder-cover\" : \"file-cover\";\n },\n iconType: function iconType(item) {\n return item.is_dir ? \"folder-icon\" : \"files-icon\";\n }\n }\n};\n\n//# sourceURL=webpack:///./src/mixins/mixin.js?")},"./src/plugins/i18n.js":/*!*****************************!*\!*** ./src/plugins/i18n.js ***!\*****************************/@@ -1222,7 +1222,7 @@/*!********************************!*\!*** ./src/service/service.js ***!\********************************/-/*! exports provided: api */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "api", function() { return api; });\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n\n\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-07-27 16:20:06\r\n * @Description: \r\n * @FilePath: /CasaOS-UI/src/service/service.js\r\n */\n\n\n // import { ToastProgrammatic as Toast } from \'buefy\'\n\nvar axiosBaseURL = false ? undefined : "/v1"; //Create a axios instance, And set timeout to 30s\n\nvar instance = axios__WEBPACK_IMPORTED_MODULE_7___default.a.create({\n baseURL: axiosBaseURL,\n timeout: 30000,\n headers: {\n "Content-Type": "application/json"\n },\n withCredentials: false\n});\n\nvar getLangFromBrowser = function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace("-", "_");\n return lang;\n};\n\nvar getInitLang = function getInitLang() {\n var lang = localStorage.getItem(\'lang\') || getLangFromBrowser();\n return lang;\n}; // Interception before request initiation\n\n\ninstance.interceptors.request.use(function (config) {\n config.headers.common["Language"] = getInitLang();\n var token = localStorage.getItem("access_token");\n var rtoken = localStorage.getItem("refresh_token");\n\n if (token) {\n config.headers.Authorization = token;\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_ACCESS_TOKEN", token);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_REFRESH_TOKEN", rtoken);\n }\n\n return config;\n}, function (error) {\n // Do something with request error\n return Promise.reject(error);\n}); // Response interception\n\nvar isRefreshing = false;\nvar requests = [];\ninstance.interceptors.response.use(function (response) {\n return response;\n}, /*#__PURE__*/function () {\n var _ref = Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee(error) {\n var originalConfig, _error$response, refresh_token, tokenRes;\n\n return Object(E_Company_CasaOS_UI_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n originalConfig = error === null || error === void 0 ? void 0 : error.config;\n\n if (!(originalConfig.url !== "/users/register" && error.response)) {\n _context.next = 28;\n break;\n }\n\n if (!((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 401)) {\n _context.next = 28;\n break;\n }\n\n if (isRefreshing) {\n _context.next = 27;\n break;\n }\n\n isRefreshing = true;\n _context.prev = 5;\n refresh_token = localStorage.getItem("refresh_token");\n\n if (!refresh_token) {\n _context.next = 20;\n break;\n }\n\n _context.prev = 8;\n _context.next = 11;\n return instance.post("/users/refresh", {\n refresh_token: refresh_token\n });\n\n case 11:\n tokenRes = _context.sent;\n\n if (tokenRes.data.success == 200) {\n localStorage.setItem("access_token", tokenRes.data.data.access_token);\n localStorage.setItem("refresh_token", tokenRes.data.data.refresh_token);\n localStorage.setItem("expires_at", tokenRes.data.data.expires_at);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_ACCESS_TOKEN", tokenRes.data.data.access_token);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_REFRESH_TOKEN", tokenRes.data.data.refresh_token);\n originalConfig.headers.Authorization = tokenRes.data.data.access_token;\n Promise.resolve().then(function () {\n requests.forEach(function (cb) {\n return cb();\n });\n requests = [];\n });\n } else {\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the logout page\n path: \'/logout\'\n });\n }\n\n _context.next = 18;\n break;\n\n case 15:\n _context.prev = 15;\n _context.t0 = _context["catch"](8);\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the logout page\n path: \'/logout\'\n });\n\n case 18:\n _context.next = 21;\n break;\n\n case 20:\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the login page\n path: \'/login\'\n });\n\n case 21:\n _context.next = 26;\n break;\n\n case 23:\n _context.prev = 23;\n _context.t1 = _context["catch"](5);\n return _context.abrupt("return", Promise.reject(_context.t1));\n\n case 26:\n isRefreshing = false;\n\n case 27:\n return _context.abrupt("return", new Promise(function (resolve) {\n requests.push(function () {\n resolve(instance(originalConfig));\n });\n }));\n\n case 28:\n return _context.abrupt("return", Promise.reject(error));\n\n case 29:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[5, 23], [8, 15]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n}());\nvar CancelToken = axios__WEBPACK_IMPORTED_MODULE_7___default.a.CancelToken; // Wrapping of axios by request type\n\nvar api = {\n get: function get(url, data, _this) {\n if (_this) {\n return instance.get(url, {\n params: data,\n cancelToken: new CancelToken(function executor(c) {\n _this.cancelRequest = c;\n })\n });\n } else {\n return instance.get(url, {\n params: data\n });\n }\n },\n post: function post(url, data) {\n return instance.post(url, data);\n },\n put: function put(url, data) {\n return instance.put(url, data);\n },\n delete: function _delete(url, data) {\n return instance.delete(url, {\n data: data\n });\n }\n};\n\n\n//# sourceURL=webpack:///./src/service/service.js?')},"./src/service/storage.js":+/*! exports provided: api */function(module,__webpack_exports__,__webpack_require__){"use strict";eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "api", function() { return api; });\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js */ "./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js");\n/* harmony import */ var E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ "./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! axios */ "./node_modules/axios/index.js");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/router */ "./src/router/index.js");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/store */ "./src/store/index.js");\n\n\n\n\n\n\n\n\n/*\r\n * @Author: JerryK\r\n * @Date: 2021-09-18 21:32:13\r\n * @LastEditors: Jerryk [email protected]\r\n * @LastEditTime: 2022-07-27 16:20:06\r\n * @Description: \r\n * @FilePath: /CasaOS-UI/src/service/service.js\r\n */\n\n\n // import { ToastProgrammatic as Toast } from \'buefy\'\n\nvar axiosBaseURL = false ? undefined : "/v1"; //Create a axios instance, And set timeout to 30s\n\nvar instance = axios__WEBPACK_IMPORTED_MODULE_7___default.a.create({\n baseURL: axiosBaseURL,\n timeout: 30000,\n headers: {\n "Content-Type": "application/json"\n },\n withCredentials: false\n});\n\nvar getLangFromBrowser = function getLangFromBrowser() {\n var lang = navigator.language || navigator.userLanguage;\n lang = lang.toLowerCase().replace("-", "_");\n return lang;\n};\n\nvar getInitLang = function getInitLang() {\n var lang = localStorage.getItem(\'lang\') || getLangFromBrowser();\n return lang;\n}; // Interception before request initiation\n\n\ninstance.interceptors.request.use(function (config) {\n config.headers.common["Language"] = getInitLang();\n var token = localStorage.getItem("access_token");\n var rtoken = localStorage.getItem("refresh_token");\n\n if (token) {\n config.headers.Authorization = token;\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_ACCESS_TOKEN", token);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_REFRESH_TOKEN", rtoken);\n }\n\n return config;\n}, function (error) {\n // Do something with request error\n return Promise.reject(error);\n}); // Response interception\n\nvar isRefreshing = false;\nvar requests = [];\ninstance.interceptors.response.use(function (response) {\n return response;\n}, /*#__PURE__*/function () {\n var _ref = Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().mark(function _callee(error) {\n var originalConfig, _error$response, refresh_token, tokenRes;\n\n return Object(E_Company_CasaOS_UI_dev_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__["default"])().wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n originalConfig = error === null || error === void 0 ? void 0 : error.config;\n\n if (!(originalConfig.url !== "/users/register" && error.response)) {\n _context.next = 28;\n break;\n }\n\n if (!((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 401)) {\n _context.next = 28;\n break;\n }\n\n if (isRefreshing) {\n _context.next = 27;\n break;\n }\n\n isRefreshing = true;\n _context.prev = 5;\n refresh_token = localStorage.getItem("refresh_token");\n\n if (!refresh_token) {\n _context.next = 20;\n break;\n }\n\n _context.prev = 8;\n _context.next = 11;\n return instance.post("/users/refresh", {\n refresh_token: refresh_token\n });\n\n case 11:\n tokenRes = _context.sent;\n\n if (tokenRes.data.success == 200) {\n localStorage.setItem("access_token", tokenRes.data.data.access_token);\n localStorage.setItem("refresh_token", tokenRes.data.data.refresh_token);\n localStorage.setItem("expires_at", tokenRes.data.data.expires_at);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_ACCESS_TOKEN", tokenRes.data.data.access_token);\n _store__WEBPACK_IMPORTED_MODULE_9__["default"].commit("SET_REFRESH_TOKEN", tokenRes.data.data.refresh_token);\n originalConfig.headers.Authorization = tokenRes.data.data.access_token;\n Promise.resolve().then(function () {\n requests.forEach(function (cb) {\n return cb();\n });\n requests = [];\n });\n } else {\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the logout page\n path: \'/logout\'\n });\n }\n\n _context.next = 18;\n break;\n\n case 15:\n _context.prev = 15;\n _context.t0 = _context["catch"](8);\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the logout page\n path: \'/logout\'\n });\n\n case 18:\n _context.next = 21;\n break;\n\n case 20:\n _router__WEBPACK_IMPORTED_MODULE_8__["default"].replace({\n //Jump to the login page\n path: \'/login\'\n });\n\n case 21:\n _context.next = 26;\n break;\n\n case 23:\n _context.prev = 23;\n _context.t1 = _context["catch"](5);\n return _context.abrupt("return", Promise.reject(_context.t1));\n\n case 26:\n isRefreshing = false;\n\n case 27:\n return _context.abrupt("return", new Promise(function (resolve) {\n requests.push(function () {\n resolve(instance(originalConfig));\n });\n }));\n\n case 28:\n return _context.abrupt("return", Promise.reject(error));\n\n case 29:\n case "end":\n return _context.stop();\n }\n }\n }, _callee, null, [[5, 23], [8, 15]]);\n }));\n\n return function (_x) {\n return _ref.apply(this, arguments);\n };\n}());\nvar CancelToken = axios__WEBPACK_IMPORTED_MODULE_7___default.a.CancelToken; // Wrapping of axios by request type\n\nvar api = {\n get: function get(url, data, _this) {\n if (_this) {\n return instance.get(url, {\n params: data,\n cancelToken: new CancelToken(function executor(c) {\n _this.cancelRequest = c;\n })\n });\n } else {\n return instance.get(url, {\n params: data\n });\n }\n },\n post: function post(url, data) {\n return instance.post(url, data);\n },\n put: function put(url, data) {\n return instance.put(url, data);\n },\n delete: function _delete(url, data) {\n return instance.delete(url, {\n data: data\n });\n }\n};\n\n\n//# sourceURL=webpack:///./src/service/service.js?')},"./src/service/storage.js":/*!********************************!*\!*** ./src/service/storage.js ***!\********************************/