@galadrim/galadmin 0.1.31 → 0.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/dist/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +1 -1
  3. package/src/front/build/asset-manifest.json +6 -6
  4. package/src/front/build/index.html +1 -1
  5. package/src/front/build/static/css/{main.6cc4d508.chunk.css → main.4e416844.chunk.css} +2 -2
  6. package/src/front/build/static/css/main.4e416844.chunk.css.map +1 -0
  7. package/src/front/build/static/js/main.4ce5340d.chunk.js +2 -0
  8. package/src/front/build/static/js/main.4ce5340d.chunk.js.map +1 -0
  9. package/src/front/node_modules/.cache/.eslintcache +1 -1
  10. package/src/front/node_modules/.cache/babel-loader/{a442b07ccfc975b334314fdb76b50b42.json → 04b67a528af96a9bceeadf265dfb56d2.json} +1 -1
  11. package/src/front/node_modules/.cache/babel-loader/cdf89c046963294c4cbf7482c8706cbc.json +1 -0
  12. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/c3/3e/f2b5b90044b7bdbb4cff67b2c09e24bb506274240d920de24bb4b678f3f00b80f7e9f0900cd1de883484031488d8603e97ea6b4e39a9c6ab5160353d3be9 +1 -0
  13. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/6c/19/fe86ba5d7c4062f185480ad22dd3b9fae9b30149827224339f9a633a9a94 +1 -1
  14. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/87/08/421190bfe6e50816e059da6c33526c9943732ef856ebd2752d0cbfb4a852 +1 -1
  15. package/src/front/node_modules/.cache/terser-webpack-plugin/index-v5/{b3/58/c0bc4ec69302d38ceac243da47ee7549ca88af7e0c89962c82ad9b304bbb → c2/e5/5451dd89bb0fd48f988bf27c7ee614c66eb91f7085c5b5c8cb33048d0c32} +1 -1
  16. package/src/front/node_modules/.package-lock.json +50 -58
  17. package/src/front/node_modules/@babel/compat-data/README.md +1 -1
  18. package/src/front/node_modules/@babel/compat-data/data/corejs2-built-ins.json +146 -0
  19. package/src/front/node_modules/@babel/compat-data/data/native-modules.json +1 -1
  20. package/src/front/node_modules/@babel/compat-data/data/plugin-bugfixes.json +15 -0
  21. package/src/front/node_modules/@babel/compat-data/data/plugins.json +68 -9
  22. package/src/front/node_modules/@babel/compat-data/package.json +4 -4
  23. package/src/front/node_modules/@babel/core/README.md +1 -1
  24. package/src/front/node_modules/@babel/core/lib/config/config-chain.js +1 -3
  25. package/src/front/node_modules/@babel/core/lib/config/config-chain.js.map +1 -1
  26. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js +5 -5
  27. package/src/front/node_modules/@babel/core/lib/config/files/module-types.js.map +1 -1
  28. package/src/front/node_modules/@babel/core/lib/config/full.js +2 -3
  29. package/src/front/node_modules/@babel/core/lib/config/full.js.map +1 -1
  30. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js +4 -4
  31. package/src/front/node_modules/@babel/core/lib/config/helpers/config-api.js.map +1 -1
  32. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js +1 -3
  33. package/src/front/node_modules/@babel/core/lib/config/validation/option-assertions.js.map +1 -1
  34. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js +5 -2
  35. package/src/front/node_modules/@babel/core/lib/config/validation/plugins.js.map +1 -1
  36. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +2 -1
  37. package/src/front/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js.map +1 -1
  38. package/src/front/node_modules/@babel/core/lib/index.js +1 -1
  39. package/src/front/node_modules/@babel/core/lib/transformation/file/file.js +5 -5
  40. package/src/front/node_modules/@babel/core/lib/transformation/file/file.js.map +1 -1
  41. package/src/front/node_modules/@babel/core/package.json +10 -10
  42. package/src/front/node_modules/@babel/generator/README.md +1 -1
  43. package/src/front/node_modules/@babel/generator/lib/buffer.js +6 -6
  44. package/src/front/node_modules/@babel/generator/lib/buffer.js.map +1 -1
  45. package/src/front/node_modules/@babel/generator/lib/generators/types.js +1 -1
  46. package/src/front/node_modules/@babel/generator/lib/generators/types.js.map +1 -1
  47. package/src/front/node_modules/@babel/generator/lib/printer.js +4 -4
  48. package/src/front/node_modules/@babel/generator/lib/printer.js.map +1 -1
  49. package/src/front/node_modules/@babel/generator/package.json +4 -3
  50. package/src/front/node_modules/@babel/helper-compilation-targets/README.md +1 -1
  51. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js +2 -2
  52. package/src/front/node_modules/@babel/helper-compilation-targets/lib/debug.js.map +1 -1
  53. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js +5 -9
  54. package/src/front/node_modules/@babel/helper-compilation-targets/lib/filter-items.js.map +1 -1
  55. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js +8 -4
  56. package/src/front/node_modules/@babel/helper-compilation-targets/lib/index.js.map +1 -1
  57. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js +2 -1
  58. package/src/front/node_modules/@babel/helper-compilation-targets/lib/options.js.map +1 -1
  59. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js +2 -2
  60. package/src/front/node_modules/@babel/helper-compilation-targets/lib/pretty.js.map +1 -1
  61. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js +1 -1
  62. package/src/front/node_modules/@babel/helper-compilation-targets/lib/targets.js.map +1 -1
  63. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js +3 -3
  64. package/src/front/node_modules/@babel/helper-compilation-targets/lib/utils.js.map +1 -1
  65. package/src/front/node_modules/@babel/helper-compilation-targets/package.json +6 -6
  66. package/src/front/node_modules/@babel/helper-split-export-declaration/README.md +1 -1
  67. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js +5 -1
  68. package/src/front/node_modules/@babel/helper-split-export-declaration/lib/index.js.map +1 -1
  69. package/src/front/node_modules/@babel/helper-split-export-declaration/package.json +1 -1
  70. package/src/front/node_modules/@babel/helpers/README.md +1 -1
  71. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js +9 -13
  72. package/src/front/node_modules/@babel/helpers/lib/helpers/dispose.js.map +1 -1
  73. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js +1 -1
  74. package/src/front/node_modules/@babel/helpers/lib/helpers/using.js.map +1 -1
  75. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js +2 -2
  76. package/src/front/node_modules/@babel/helpers/lib/helpers-generated.js.map +1 -1
  77. package/src/front/node_modules/@babel/helpers/package.json +3 -3
  78. package/src/front/node_modules/@babel/parser/README.md +1 -1
  79. package/src/front/node_modules/@babel/parser/lib/index.js +1 -3
  80. package/src/front/node_modules/@babel/parser/lib/index.js.map +1 -1
  81. package/src/front/node_modules/@babel/parser/lib/parser/statement.js +1 -3
  82. package/src/front/node_modules/@babel/parser/lib/parser/statement.js.map +1 -1
  83. package/src/front/node_modules/@babel/parser/lib/plugins/flow/index.js.map +1 -1
  84. package/src/front/node_modules/@babel/parser/package.json +2 -2
  85. package/src/front/node_modules/@babel/traverse/README.md +1 -1
  86. package/src/front/node_modules/@babel/traverse/lib/path/lib/virtual-types.js.map +1 -1
  87. package/src/front/node_modules/@babel/traverse/lib/scope/index.js +21 -9
  88. package/src/front/node_modules/@babel/traverse/lib/scope/index.js.map +1 -1
  89. package/src/front/node_modules/@babel/traverse/lib/types.js.map +1 -1
  90. package/src/front/node_modules/@babel/traverse/lib/visitors.js +22 -15
  91. package/src/front/node_modules/@babel/traverse/lib/visitors.js.map +1 -1
  92. package/src/front/node_modules/@babel/traverse/package.json +4 -4
  93. package/src/front/node_modules/{@babel/helper-compilation-targets/node_modules/semver → @nicolo-ribaudo/semver-v6}/README.md +13 -2
  94. package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/package.json +4 -4
  95. package/src/front/node_modules/{@babel/helper-compilation-targets/node_modules/semver → @nicolo-ribaudo/semver-v6}/semver.js +40 -27
  96. package/src/front/node_modules/typescript/lib/tsc.js +16 -19
  97. package/src/front/node_modules/typescript/lib/tsserver.js +22 -24
  98. package/src/front/node_modules/typescript/lib/tsserverlibrary.d.ts +0 -1
  99. package/src/front/node_modules/typescript/lib/tsserverlibrary.js +22 -24
  100. package/src/front/node_modules/typescript/lib/typescript.d.ts +0 -1
  101. package/src/front/node_modules/typescript/lib/typescript.js +22 -24
  102. package/src/front/node_modules/typescript/lib/typingsInstaller.js +1 -1
  103. package/src/front/node_modules/typescript/package.json +1 -1
  104. package/src/front/package-lock.json +97 -112
  105. package/src/front/src/App.css +69 -30
  106. package/src/front/src/components/Input.js +6 -0
  107. package/src/front/src/components/Sidebar.js +2 -2
  108. package/src/front/build/static/css/main.6cc4d508.chunk.css.map +0 -1
  109. package/src/front/build/static/js/main.405f6f90.chunk.js +0 -2
  110. package/src/front/build/static/js/main.405f6f90.chunk.js.map +0 -1
  111. package/src/front/node_modules/.cache/babel-loader/964c56108bc43622244156806407d3d8.json +0 -1
  112. package/src/front/node_modules/.cache/terser-webpack-plugin/content-v2/sha512/00/35/f206f48274d030c7a1e2457996323f694ca72c9ec94bddb8ecc8f37aa4632918182acf152491e9b475b95f567493b47644434cdb77f795b23c0b8392aaf7 +0 -1
  113. package/src/front/node_modules/@babel/core/node_modules/semver/README.md +0 -443
  114. package/src/front/node_modules/@babel/core/node_modules/semver/semver.js +0 -1596
  115. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/CHANGELOG.md +0 -70
  116. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/LICENSE +0 -15
  117. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/bin/semver.js +0 -174
  118. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/package.json +0 -28
  119. package/src/front/node_modules/@babel/helper-compilation-targets/node_modules/semver/range.bnf +0 -16
  120. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/CHANGELOG.md +0 -0
  121. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/LICENSE +0 -0
  122. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/bin/semver.js +0 -0
  123. /package/src/front/node_modules/{@babel/core/node_modules/semver → @nicolo-ribaudo/semver-v6}/range.bnf +0 -0
@@ -1,2 +1,2 @@
1
- body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}@font-face{font-family:"gt-eesti-medium";src:url(/_HOMEPAGE_/static/media/gt-eesti-medium.a48c02fa.woff) format("woff")}@font-face{font-family:"gt-eesti-regular";src:url(/_HOMEPAGE_/static/media/gt-eesti-regular.304a7ae0.woff) format("woff")}@font-face{font-family:"Cubano";src:url(/_HOMEPAGE_/static/media/cubano.4eaa47ef.woff) format("woff")}#body{font-family:gt-eesti-regular,"Helvetica Neue",Helvetica,sans-serif;margin:0;display:flex;flex-direction:row}.backgroundBlue{background-color:#f2f6fa}.noData{padding:30px;text-align:center}.fileInputContent,.noData{background-color:#f2f6fa;color:#8798ac}.fileInputContent{padding:10px;box-shadow:inset 0 1px 1px 0 #c3ccd7;border-radius:2px;border:1px solid #adb9c6;cursor:pointer;display:inline-block}.fileInputContainer form{margin-bottom:0}.clickToSelectFile{padding:30px;text-align:center;display:block}.actionButton,a{color:#3ea065;text-decoration:none;cursor:pointer;display:inline}button,input,select{font-family:inherit}:focus{outline:0}.view{flex-grow:1}.sidebar,.view{height:100vh;overflow-y:auto}.sidebar{background-color:#425060;box-sizing:border-box;width:260px;min-width:260px;padding:15px 15px 60px}.sidebarItem{padding:20px;color:#adb9c6;cursor:pointer;white-space:nowrap;position:relative}.sidebarItem:hover{color:#fff}.sidebarItem.active{color:#fff;background-color:#536579}[data-subview-index]{font-size:13px;padding:10px 0 10px 30px;color:#adb9c6!important}.subviewsSeparator{padding-top:20px}[data-subview-index].active,[data-subview-index]:hover{color:#fff!important}.sidebarIcon{width:20px;color:#647a93;margin-right:10px}.sidebarIcon,.sidebarLabel{display:inline-block;vertical-align:middle}table{border-collapse:collapse;width:100%}.record{height:47px}.viewHeaderActions{display:flex}table thead th{text-align:left;background-color:#303b47;color:#adb9c6;padding:15px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.83px;height:43px}table tbody td{padding:15px;transition:all .1s ease-out;color:#425060}table tbody tr:nth-child(2n) td{background-color:#f2f6fa}table tbody tr:hover:not(.nonClickableRow) td{background:#647a93;color:#fff;cursor:pointer}tr:hover a{color:#fff}.panelTable tr:hover a{color:#3ea065}.viewHeader{box-shadow:0 1px 0 rgba(0,0,0,.1);padding:20px 30px;height:70px;background:#fff}.panelHeader,.viewHeader{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}.panelHeader{margin-bottom:25px}.panelTitle,.viewTitle{font-family:Cubano,"Helvetica Neue",Helvetica,sans-serif;font-size:20px;text-transform:uppercase}.showContainer{display:flex;flex-direction:row;flex:1 1}.detailsPanel{flex:2 1}.recordViewPanels{margin-left:20px;flex:1 1}.panelTitle{margin-bottom:25px}.panel{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.15);background-color:#fff;padding:15px;position:relative;margin-bottom:20px;overflow:auto}.sidebarTitle{color:#fff;text-align:center;font-weight:500;font-size:22px;margin-top:30px;margin-bottom:10px}.sidebarSubtitle{color:#fff;text-align:center;margin-bottom:40px;color:#adb9c6}.sidebarBranding{position:fixed;bottom:0;width:260px;text-align:center;color:#647a93;height:50px;line-height:50px;left:0;font-size:14px}.button,.button:active,.button:hover,.swal-button,.swal-button:active,.swal-button:hover{display:inline-block;cursor:pointer;border-radius:2px;padding:10px 22px;background-color:#f2f6fa;color:#536579;font-size:14px;margin-right:8px}.button.openBulkActionsButton{padding:7px 22px;margin-left:16px}.smallButton,.smallButton:hover{padding:5px 22px}.swal-button,.swal-button:active,.swal-button:hover{margin-right:0}.swal-button--danger,.swal-button--danger:active,.swal-button--danger:hover{background-color:#e64942;color:#fff}.swal-button:focus{box-shadow:none}.button.loading{opacity:.5;cursor:default}.downloadButton,.downloadPanelButton{display:inline-block;cursor:pointer;border-radius:2px;font-size:12px;color:#647a93;background-color:#f2f6fa;width:30px;height:30px;text-align:center;justify-content:center;display:flex;align-items:center;line-height:30px;margin-left:5px}.plusButton{width:30px}.alternativePlusButton,.plusButton{margin-left:5px;display:inline-block;cursor:pointer;border-radius:2px;font-size:14px;background:#45b271;color:#fff;height:30px;text-align:center;justify-content:center;display:flex;align-items:center;line-height:30px}.alternativePlusButton{padding:0 10px}.greenButton,.greenButton:active,.greenButton:hover{background:#45b271;color:#fff}.paddedView{padding:30px}.formElement{margin-bottom:30px}.showRecordField{margin-bottom:20px}.filterLabel,.formLabel{color:#8798ac;font-size:13px;font-weight:500;margin-bottom:6px;text-transform:uppercase}.addFilterPopup input,.addFilterPopup select,.editLocalesTable input,.editLocalesTable textarea,.formInput input,.formInput select,.formInput textarea,.ql-editor{background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;box-shadow:inset 0 1px 1px 0 #c3ccd7;color:#536579;padding:0 15px;width:100%;font-size:14px;box-sizing:border-box}.ql-editor{padding:15px}.addFilterPopup input,.addFilterPopup select{padding:10px;margin-bottom:10px}.formInput textarea{height:150px;padding:15px}input{box-sizing:border-box}.editLocalesTable input,.formInput input,.formInput select{height:38px;min-height:38px;transition:all .25s ease-out}textarea{resize:none;font-family:inherit}.editLocalesTable textarea{line-height:1.7;padding:5px 15px}.formValue{color:#607083}.formValue h1,.formValue h2,.formValue h3,.formValue p,.formValue ul{margin:0}.scrollable{height:calc(100vh - 40px);overflow-y:auto;position:relative}.tableFooter{height:40px;box-sizing:border-box;background-color:#303b47;color:#adb9c6;padding:0 15px;display:flex;justify-content:space-between;text-transform:uppercase;align-items:center;font-size:12px;font-family:gt-eesti-medium,"Helvetica Neue",Helvetica,sans-serif;letter-spacing:.83px}.paginator{display:flex;flex-direction:row}.paginatorNumber{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);color:#adb9c6;padding:0 10px;height:20px;align-items:center;display:flex}.paginatorLeft,.paginatorRight{opacity:.2;cursor:pointer;border:1px solid #fff;font-size:13px;height:20px;align-items:center;display:flex;width:20px;justify-content:center}.fakeRecord{height:10px;background-color:#f2f6fa;width:80%}thead .fakeRecord{background-color:#adb9c6}table tbody tr:nth-child(2n) .fakeRecord{background-color:#d0d8e0}.actionButtonsContainer{position:relative;display:inline-block}.actions,.bulkActions{position:absolute;right:8px;top:37px;z-index:1;box-shadow:0 2px 40px 0 rgba(49,47,51,.3)}.bulkActions{top:31px}.red{color:#fb6669!important}.action{cursor:pointer;background:#fff;border-bottom:1px solid #f2f6fa;color:#647a93;font-size:14px;line-height:14px;min-width:150px;padding:10px 12px;text-align:left;white-space:nowrap;box-sizing:border-box}.swal-overlay--show-modal .swal-modal{-webkit-animation:none;animation:none}.swal-overlay{transition:none}.swal-title{color:#607083;font-weight:400}.swal-modal{border-radius:2px}.swal-text{color:#8798ac}.searchBarContainer{position:relative}.searchBar{background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;color:#536579;display:flex;height:30px;overflow:hidden;width:430px;box-shadow:inset 0 1px 1px 0 #c3ccd7;padding-left:30px}.searchBarIcon{position:absolute;color:#647a93;top:0;left:0;height:30px;display:flex;width:30px;align-items:center;justify-content:center}.map{height:300px}.galleryPicture{width:calc(50% - 4px);margin-bottom:8px;position:relative;display:inline-block}.deleteFile,.deleteIcon{cursor:pointer;border-radius:2px;font-size:14px;background-color:#f2f6fa;color:#536579;text-align:center;justify-content:center;display:none;align-items:center;width:30px;height:30px;line-height:30px}.galleryPicture .deleteIcon{position:absolute;top:8px;right:8px}.record:hover .deleteIcon{display:flex}.deleteIconCell{box-sizing:border-box;width:40px;padding:0!important}.galleryPicture:hover .deleteIcon{display:flex}.galleryPicture img{width:100%}.galleryPicture:nth-child(odd){margin-right:8px}.sortable{cursor:pointer}.columnSortIcon{padding-left:8px;display:inline}.sortable:hover .columnSortIcon{color:#fff}.colorPreview{width:80px;height:30px;box-shadow:0 1px 4px rgba(0,0,0,.1)}iframe{width:100%;margin:0;box-sizing:border-box;height:100%;border:none}.flagContainer{padding-top:0;padding-bottom:0;height:44px}.flag{height:22px;margin-right:8px;margin-left:2px}.flag,.flagLabel{vertical-align:middle}.flagLabel{display:inline-block}.localesTableHeaderContainer{background-color:#303b47}.editLocalesTable,.localesTable,.localesTableHeader{width:100%;table-layout:fixed}.localesTableHeader{width:calc(100% - 17px)}.localesTableContainer{height:calc(100vh - 114px);overflow-y:scroll}.folded{display:none}.quill{height:200px}.ql-container.ql-snow{border:none}.dashboardView{flex-wrap:wrap;flex:1 1;display:flex;align-items:flex-start;align-content:flex-start;box-sizing:border-box}.dashboardPanel{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.15);background-color:#fff;padding:15px;position:relative;margin-bottom:20px;margin-right:20px;flex-grow:0;flex-shrink:1;flex-basis:calc(33.33% - 50px)}.dashboardLegend{color:#425060;margin-bottom:15px}.dashboardValue{font-size:30px;color:#1f262e}.addFilterPopup{position:absolute;box-shadow:0 2px 40px 0 rgba(49,47,51,.3);background:#fff;padding:15px;right:0;top:31px;width:280px}.openFilterPopup{padding:6px 22px!important;margin-left:8px!important;margin-right:0!important;position:relative}.openFilterPopup i{margin-right:8px;font-size:12px}.filtersContainer{padding:12px}.filterItem{color:#fff;background-color:#647a93;font-size:12px;text-transform:uppercase;display:inline-block;border-radius:2px;margin-right:8px;overflow:hidden}.filterItemLabel,.filterRemove{display:inline-block;padding:4px;height:22px;box-sizing:border-box}.filterRemove{cursor:pointer;background-color:#536579}.logo{width:60%;left:20%;position:relative;top:10px}.notificationWrapper{color:#fff;background-color:#f44336;border-radius:50%;width:15px;height:15px;position:absolute;justify-content:center;align-items:center;top:31px;left:28px;font-size:11px;display:none}[data-subview-index]{position:relative}.notificationWrapperForSubview{color:#fff;background-color:#f44336;border-radius:4px;padding:0 5px;height:15px;position:absolute;justify-content:center;align-items:center;top:10px;right:0;font-size:11px;display:none}.checkbox{width:15px;height:15px;background-color:#fff;border:1px solid #000;border-radius:3px}.checkbox.checked{position:relative;background-color:#45b271}.checkbox.checked:after{position:absolute;font-family:"Font Awesome 5 Pro";content:"\f00c";color:#fff;font-size:14px}.fileInputContent{position:relative}.fileInputContent .deleteFile{position:absolute;bottom:20px;right:20px}.fileInputContent .nonImageFileOutput .deleteFile{bottom:4px;right:4px}.fileInputContent:hover .deleteFile{display:flex}.labelTooltipContainer{position:relative;display:inline-block;flex-direction:row}.labelTooltipIcon{padding-left:5px}.tooltip{position:absolute;top:-10px;left:25px;background:#fff;padding:10px;box-shadow:0 1px 3px 0 #c3ccd7;font-size:12px;min-width:80px;z-index:1;text-transform:lowercase}.loginPanelBackground{font-family:gt-eesti-regular,"Helvetica Neue",Helvetica,sans-serif;margin:0;background:#233550}.appLoading,.loginPanelBackground{display:flex;height:100vh;justify-content:center;align-items:center;flex:1 1}.appLoading{color:#233550;font-size:72px}.loginLogoContainer{text-align:center}.loginLogo{width:180px;margin-bottom:30px}.loginPanel{background:#fff;border-radius:2px;padding:30px;border:1px solid #ebedf8;max-width:250px;position:relative}.loginPanel label{font-weight:500;font-size:14px;margin-bottom:7px;color:#647a93;font-size:12px;text-transform:uppercase}.loginPanel input{margin-top:5px;margin-bottom:25px;background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;box-shadow:inset 0 1px 1px 0 #c3ccd7;color:#536579;height:38px;min-height:38px;padding:0 15px}.loginPanel button,.loginPanel input{font-family:inherit;width:100%;font-size:14px}.loginPanel button{display:inline-block;cursor:pointer;border-radius:2px;padding:10px 22px;border:none}
2
- /*# sourceMappingURL=main.6cc4d508.chunk.css.map */
1
+ body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen","Ubuntu","Cantarell","Fira Sans","Droid Sans","Helvetica Neue",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}code{font-family:source-code-pro,Menlo,Monaco,Consolas,"Courier New",monospace}@font-face{font-family:"gt-eesti-medium";src:url(/_HOMEPAGE_/static/media/gt-eesti-medium.a48c02fa.woff) format("woff")}@font-face{font-family:"gt-eesti-regular";src:url(/_HOMEPAGE_/static/media/gt-eesti-regular.304a7ae0.woff) format("woff")}@font-face{font-family:"Cubano";src:url(/_HOMEPAGE_/static/media/cubano.4eaa47ef.woff) format("woff")}#body{font-family:gt-eesti-regular,"Helvetica Neue",Helvetica,sans-serif;margin:0;display:flex;flex-direction:row}.backgroundBlue{background-color:#f2f6fa}.noData{padding:30px;text-align:center}.fileInputContent,.noData{background-color:#f2f6fa;color:#8798ac}.fileInputContent{padding:10px;box-shadow:inset 0 1px 1px 0 #c3ccd7;border-radius:2px;border:1px solid #adb9c6;cursor:pointer;display:inline-block}.fileInputContainer form{margin-bottom:0}.clickToSelectFile{padding:30px;text-align:center;display:block}.actionButton,a{color:#3ea065;text-decoration:none;cursor:pointer;display:inline}button,input,select{font-family:inherit}:focus{outline:0}.view{flex-grow:1}.sidebar,.view{height:100vh;overflow-y:auto}.sidebar{background-color:#425060;box-sizing:border-box;width:260px;min-width:260px;padding:15px 15px 60px}.sidebarItem{padding:20px;color:#adb9c6;cursor:pointer;white-space:nowrap;position:relative}.sidebarItem:hover{color:#fff}.sidebarItem.active{color:#fff;background-color:#536579}[data-subview-index]{font-size:13px;padding:10px 0 10px 30px;color:#adb9c6!important}.subviewsSeparator{padding-top:20px}[data-subview-index].active,[data-subview-index]:hover{color:#fff!important}.sidebarIcon{width:20px;color:#647a93;margin-right:10px}.sidebarIcon,.sidebarLabel{display:inline-block;vertical-align:middle}table{border-collapse:collapse;width:100%}.record{height:47px}.viewHeaderActions{display:flex}table thead th{text-align:left;background-color:#303b47;color:#adb9c6;padding:15px;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.83px;height:43px}table tbody td{padding:15px;transition:all .1s ease-out;color:#425060}table tbody tr:nth-child(2n) td{background-color:#f2f6fa}table tbody tr:hover:not(.nonClickableRow) td{background:#647a93;color:#fff;cursor:pointer}tr:hover a{color:#fff}.panelTable tr:hover a{color:#3ea065}.viewHeader{box-shadow:0 1px 0 rgba(0,0,0,.1);padding:20px 30px;height:70px;background:#fff}.panelHeader,.viewHeader{display:flex;justify-content:space-between;align-items:center;box-sizing:border-box}.panelHeader{margin-bottom:25px}.panelTitle,.viewTitle{font-family:Cubano,"Helvetica Neue",Helvetica,sans-serif;font-size:20px;text-transform:uppercase}.showContainer{display:flex;flex-direction:row;flex:1 1}.detailsPanel{flex:2 1}.recordViewPanels{margin-left:20px;flex:1 1}.panelTitle{margin-bottom:25px}.panel{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.15);background-color:#fff;padding:15px;position:relative;margin-bottom:20px;overflow:auto}.sidebarTitle{color:#fff;text-align:center;font-weight:500;font-size:22px;margin-top:30px;margin-bottom:10px}.sidebarSubtitle{color:#fff;text-align:center;margin-bottom:40px;color:#adb9c6}.sidebarBranding{position:fixed;bottom:0;width:260px;text-align:center;color:#647a93;height:50px;line-height:50px;left:0;font-size:14px}.button,.button:active,.button:hover,.swal-button,.swal-button:active,.swal-button:hover{display:inline-block;cursor:pointer;border-radius:2px;padding:10px 22px;background-color:#f2f6fa;color:#536579;font-size:14px;margin-right:8px}.button.openBulkActionsButton{padding:7px 22px;margin-left:16px}.smallButton,.smallButton:hover{padding:5px 22px}.swal-button,.swal-button:active,.swal-button:hover{margin-right:0}.swal-button--danger,.swal-button--danger:active,.swal-button--danger:hover{background-color:#e64942;color:#fff}.swal-button:focus{box-shadow:none}.button.loading{opacity:.5;cursor:default}.downloadButton,.downloadPanelButton{display:inline-block;cursor:pointer;border-radius:2px;font-size:12px;color:#647a93;background-color:#f2f6fa;width:30px;height:30px;text-align:center;justify-content:center;display:flex;align-items:center;line-height:30px;margin-left:5px}.plusButton{width:30px}.alternativePlusButton,.plusButton{margin-left:5px;display:inline-block;cursor:pointer;border-radius:2px;font-size:14px;background:#45b271;color:#fff;height:30px;text-align:center;justify-content:center;display:flex;align-items:center;line-height:30px}.alternativePlusButton{padding:0 10px}.greenButton,.greenButton:active,.greenButton:hover{background:#45b271;color:#fff}.paddedView{padding:30px}.formElement{margin-bottom:30px}.showRecordField{margin-bottom:20px}.filterLabel,.formLabel{color:#8798ac;font-size:13px;font-weight:500;margin-bottom:6px;text-transform:uppercase}.addFilterPopup input,.addFilterPopup select,.editLocalesTable input,.editLocalesTable textarea,.formInput input,.formInput select,.formInput textarea,.ql-editor{background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;box-shadow:inset 0 1px 1px 0 #c3ccd7;color:#536579;padding:0 15px;width:100%;font-size:14px;box-sizing:border-box}.ql-editor{padding:15px}.addFilterPopup input,.addFilterPopup select{padding:10px;margin-bottom:10px}.formInput textarea{height:150px;padding:15px}input{box-sizing:border-box}.editLocalesTable input,.formInput input,.formInput select{height:38px;min-height:38px;transition:all .25s ease-out}textarea{resize:none;font-family:inherit}.editLocalesTable textarea{line-height:1.7;padding:5px 15px}.formValue{color:#607083}.formValue h1,.formValue h2,.formValue h3,.formValue p,.formValue ul{margin:0}.scrollable{height:calc(100vh - 40px);overflow-y:auto;position:relative}.tableFooter{height:40px;box-sizing:border-box;background-color:#303b47;color:#adb9c6;padding:0 15px;display:flex;justify-content:space-between;text-transform:uppercase;align-items:center;font-size:12px;font-family:gt-eesti-medium,"Helvetica Neue",Helvetica,sans-serif;letter-spacing:.83px}.paginator{display:flex;flex-direction:row}.paginatorNumber{border-top:1px solid hsla(0,0%,100%,.2);border-bottom:1px solid hsla(0,0%,100%,.2);color:#adb9c6;padding:0 10px;height:20px;align-items:center;display:flex}.paginatorLeft,.paginatorRight{opacity:.2;cursor:pointer;border:1px solid #fff;font-size:13px;height:20px;align-items:center;display:flex;width:20px;justify-content:center}.fakeRecord{height:10px;background-color:#f2f6fa;width:80%}thead .fakeRecord{background-color:#adb9c6}table tbody tr:nth-child(2n) .fakeRecord{background-color:#d0d8e0}.actionButtonsContainer{position:relative;display:inline-block}.actions,.bulkActions{position:absolute;right:8px;top:37px;z-index:1;box-shadow:0 2px 40px 0 rgba(49,47,51,.3)}.bulkActions{top:31px}.red{color:#fb6669!important}.action{cursor:pointer;background:#fff;border-bottom:1px solid #f2f6fa;color:#647a93;font-size:14px;line-height:14px;min-width:150px;padding:10px 12px;text-align:left;white-space:nowrap;box-sizing:border-box}.swal-overlay--show-modal .swal-modal{-webkit-animation:none;animation:none}.swal-overlay{transition:none}.swal-title{color:#607083;font-weight:400}.swal-modal{border-radius:2px}.swal-text{color:#8798ac}.searchBarContainer{position:relative}.searchBar{background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;color:#536579;display:flex;height:30px;overflow:hidden;width:430px;box-shadow:inset 0 1px 1px 0 #c3ccd7;padding-left:30px}.searchBarIcon{position:absolute;color:#647a93;top:0;left:0;height:30px;display:flex;width:30px;align-items:center;justify-content:center}.map{height:300px}.galleryPicture{width:calc(50% - 4px);margin-bottom:8px;position:relative;display:inline-block}.deleteFile,.deleteIcon{cursor:pointer;border-radius:2px;font-size:14px;background-color:#f2f6fa;color:#536579;text-align:center;justify-content:center;display:none;align-items:center;width:30px;height:30px;line-height:30px}.galleryPicture .deleteIcon{position:absolute;top:8px;right:8px}.record:hover .deleteIcon{display:flex}.deleteIconCell{box-sizing:border-box;width:40px;padding:0!important}.galleryPicture:hover .deleteIcon{display:flex}.galleryPicture img{width:100%}.galleryPicture:nth-child(odd){margin-right:8px}.sortable{cursor:pointer}.columnSortIcon{padding-left:8px;display:inline}.sortable:hover .columnSortIcon{color:#fff}.colorPreview{width:80px;height:30px;box-shadow:0 1px 4px rgba(0,0,0,.1)}iframe{width:100%;margin:0;box-sizing:border-box;height:100%;border:none;display:block}.flagContainer{padding-top:0;padding-bottom:0;height:44px}.flag{height:22px;margin-right:8px;margin-left:2px}.flag,.flagLabel{vertical-align:middle}.flagLabel{display:inline-block}.localesTableHeaderContainer{background-color:#303b47}.editLocalesTable,.localesTable,.localesTableHeader{width:100%;table-layout:fixed}.localesTableHeader{width:calc(100% - 17px)}.localesTableContainer{height:calc(100vh - 114px);overflow-y:scroll}.folded{display:none}.quill{height:200px}.ql-container.ql-snow{border:none}.dashboardView{flex-wrap:wrap;flex:1 1;display:flex;align-items:flex-start;align-content:flex-start;box-sizing:border-box}.dashboardPanel{border-radius:4px;box-shadow:0 1px 2px rgba(0,0,0,.15);background-color:#fff;padding:15px;position:relative;margin-bottom:20px;margin-right:20px;flex-grow:0;flex-shrink:1;flex-basis:calc(33.33% - 50px)}.dashboardLegend{color:#425060;margin-bottom:15px}.dashboardValue{font-size:30px;color:#1f262e}.addFilterPopup{position:absolute;box-shadow:0 2px 40px 0 rgba(49,47,51,.3);background:#fff;padding:15px;right:0;top:31px;width:280px}.openFilterPopup{padding:6px 22px!important;margin-left:8px!important;margin-right:0!important;position:relative}.openFilterPopup i{margin-right:8px;font-size:12px}.filtersContainer{padding:12px}.filterItem{color:#fff;background-color:#647a93;font-size:12px;text-transform:uppercase;display:inline-block;border-radius:2px;margin-right:8px;overflow:hidden}.filterItemLabel,.filterRemove{display:inline-block;padding:4px;height:22px;box-sizing:border-box}.filterRemove{cursor:pointer;background-color:#536579}.logo{width:60%;left:20%;position:relative;top:10px}.notificationWrapper{color:#fff;background-color:#f44336;border-radius:50%;width:15px;height:15px;position:absolute;justify-content:center;align-items:center;top:31px;left:28px;font-size:11px;display:none}[data-subview-index]{position:relative}.notificationWrapperForSubview{color:#fff;background-color:#f44336;border-radius:4px;padding:0 5px;height:15px;position:absolute;justify-content:center;align-items:center;top:10px;right:0;font-size:11px;display:none}.checkbox{width:15px;height:15px;background-color:#fff;border:1px solid #000;border-radius:3px}.checkbox.checked{position:relative;background-color:#45b271}.checkbox.checked:after{position:absolute;font-family:"Font Awesome 5 Pro";content:"\f00c";color:#fff;font-size:14px}.fileInputContent{position:relative}.fileInputContent .deleteFile{position:absolute;bottom:20px;right:20px}.fileInputContent .nonImageFileOutput .deleteFile{bottom:4px;right:4px}.fileInputContent:hover .deleteFile{display:flex}.labelTooltipContainer{position:relative;display:inline-block;flex-direction:row}.labelTooltipIcon{padding-left:5px}.tooltip{position:absolute;top:-10px;left:25px;background:#fff;padding:10px;box-shadow:0 1px 3px 0 #c3ccd7;font-size:12px;min-width:80px;z-index:1;text-transform:lowercase}.loginPanelBackground{font-family:gt-eesti-regular,"Helvetica Neue",Helvetica,sans-serif;margin:0;background:#233550}.appLoading,.loginPanelBackground{display:flex;height:100vh;justify-content:center;align-items:center;flex:1 1}.appLoading{color:#233550;font-size:72px}.loginLogoContainer{text-align:center}.loginLogo{width:180px;margin-bottom:30px}.loginPanel{background:#fff;border-radius:2px;padding:30px;border:1px solid #ebedf8;max-width:250px;position:relative}.loginPanel label{font-weight:500;font-size:14px;margin-bottom:7px;color:#647a93;font-size:12px;text-transform:uppercase}.loginPanel input{margin-top:5px;margin-bottom:25px;background-color:#f2f6fa;border-radius:2px;border:1px solid #adb9c6;box-shadow:inset 0 1px 1px 0 #c3ccd7;color:#536579;height:38px;min-height:38px;padding:0 15px}.loginPanel button,.loginPanel input{font-family:inherit;width:100%;font-size:14px}.loginPanel button{display:inline-block;cursor:pointer;border-radius:2px;padding:10px 22px;border:none}
2
+ /*# sourceMappingURL=main.4e416844.chunk.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["webpack://src/index.css","webpack://src/App.css"],"names":[],"mappings":"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","file":"main.4e416844.chunk.css","sourcesContent":["body {\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n","@font-face {\n\tfont-family: 'gt-eesti-medium';\n\tsrc: url(\"./fonts/gt-eesti-medium.woff\") format(\"woff\");\n}\n\n@font-face {\n\tfont-family: 'gt-eesti-regular';\n\tsrc: url(\"./fonts/gt-eesti-regular.woff\") format(\"woff\");\n}\n\n@font-face {\n\tfont-family: 'Cubano';\n\tsrc: url(\"./fonts/cubano.woff\") format(\"woff\");\n}\n\n#body {\n\tfont-family: gt-eesti-regular, \"Helvetica Neue\", Helvetica, sans-serif;\n\tmargin: 0px;\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\n.backgroundBlue {\n\tbackground-color: #F2F6FA;\n}\n\n.noData {\n\tbackground-color: #F2F6FA;\n\tcolor: #8798AC;\n\tpadding: 30px;\n\ttext-align: center;\n}\n\n.fileInputContent {\n\tbackground-color: #F2F6FA;\n\tcolor: #8798AC;\n\tpadding: 10px;\n\tbox-shadow: inset 0 1px 1px 0 #C3CCD7;\n\tborder-color: #ADB9C6;\n\tborder-radius: 2px;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tcursor: pointer;\n\tdisplay: inline-block;\n}\n\n.fileInputContainer form {\n\tmargin-bottom: 0px;\n}\n\n.clickToSelectFile {\n\tpadding: 30px;\n\ttext-align: center;\n\tdisplay: block;\n}\n\na,\n.actionButton {\n\tcolor: #3ea065;\n\ttext-decoration: none;\n\tcursor: pointer;\n\tdisplay: inline;\n}\n\ninput,\nselect,\nbutton {\n\tfont-family: inherit;\n}\n\n:focus {\n\toutline: 0;\n}\n\n.view {\n\theight: 100vh;\n\tflex-grow: 1;\n\toverflow-y: auto;\n}\n\n.sidebar {\n\tbackground-color: #425060;\n\theight: 100vh;\n\tbox-sizing: border-box;\n\tpadding: 15px;\n\twidth: 260px;\n\tmin-width: 260px;\n\toverflow-y: auto;\n\tpadding-bottom: 60px;\n}\n\n.sidebarItem {\n\tpadding: 20px;\n\tcolor: #ADB9C6;\n\tcursor: pointer;\n\twhite-space: nowrap;\n\tposition: relative;\n}\n\n.sidebarItem:hover {\n\tcolor: white;\n}\n\n.sidebarItem.active {\n\tcolor: white;\n\tbackground-color: #536579;\n}\n\n[data-subview-index] {\n\tfont-size: 13px;\n\tpadding: 10px 0px 10px 30px;\n\tcolor: #ADB9C6 !important;\n}\n\n.subviewsSeparator {\n\tpadding-top: 20px;\n}\n\n[data-subview-index]:hover,\n[data-subview-index].active {\n\tcolor: white !important;\n}\n\n.sidebarIcon {\n\twidth: 20px;\n\tcolor: #647A93;\n\tmargin-right: 10px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\n.sidebarLabel {\n\tdisplay: inline-block;\n\tvertical-align: middle;\n}\n\ntable {\n\tborder-collapse: collapse;\n\twidth: 100%;\n}\n\n.record {\n\theight: 47px;\n}\n\n.viewHeaderActions {\n\tdisplay: flex;\n}\n\ntable thead th {\n\ttext-align: left;\n\tbackground-color: #303B47;\n\tcolor: #ADB9C6;\n\tpadding: 15px;\n\tfont-size: 12px;\n\tfont-weight: 500;\n\ttext-transform: uppercase;\n\tletter-spacing: .83px;\n\theight: 43px;\n}\n\ntable tbody td {\n\tpadding: 15px;\n\ttransition: all .1s ease-out;\n\tcolor: #425060;\n}\n\ntable tbody tr:nth-child(2n) td {\n\tbackground-color: #F2F6FA;\n}\n\ntable tbody tr:hover:not(.nonClickableRow) td {\n\tbackground: #647A93;\n\tcolor: white;\n\tcursor: pointer;\n}\n\ntr:hover a {\n\tcolor: white;\n}\n\n.panelTable tr:hover a {\n\tcolor: #3ea065;\n}\n\n.viewHeader {\n\tbox-shadow: 0 1px 0 rgba(0, 0, 0, .1);\n\tpadding: 20px 30px;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\theight: 70px;\n\tbox-sizing: border-box;\n\tbackground: white;\n}\n\n.panelHeader {\n\tdisplay: flex;\n\tjustify-content: space-between;\n\talign-items: center;\n\tmargin-bottom: 25px;\n\tbox-sizing: border-box;\n}\n\n.viewTitle,\n.panelTitle {\n\tfont-family: Cubano, \"Helvetica Neue\", Helvetica, sans-serif;\n\tfont-size: 20px;\n\ttext-transform: uppercase;\n}\n\n.showContainer {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex: 1;\n}\n\n.detailsPanel {\n\tflex: 2;\n}\n\n.recordViewPanels {\n\tmargin-left: 20px;\n\tflex: 1;\n}\n\n.panelTitle {\n\tmargin-bottom: 25px;\n}\n\n.panel {\n\tborder-radius: 4px;\n\tbox-shadow: 0 1px 2px rgba(0, 0, 0, .15);\n\tbackground-color: #fff;\n\tpadding: 15px;\n\tposition: relative;\n\tmargin-bottom: 20px;\n\toverflow: auto;\n}\n\n.sidebarTitle {\n\tcolor: white;\n\ttext-align: center;\n\tfont-weight: 500;\n\tfont-size: 22px;\n\tmargin-top: 30px;\n\tmargin-bottom: 10px;\n}\n\n.sidebarSubtitle {\n\tcolor: white;\n\ttext-align: center;\n\tmargin-bottom: 40px;\n\tcolor: #ADB9C6;\n}\n\n.sidebarBranding {\n\tposition: fixed;\n\tbottom: 0px;\n\twidth: 260px;\n\ttext-align: center;\n\tcolor: #647A93;\n\theight: 50px;\n\tline-height: 50px;\n\tleft: 0px;\n\tfont-size: 14px;\n\t/* z-index: 0; */\n}\n\n.button,\n.button:hover,\n.button:active,\n.swal-button,\n.swal-button:hover,\n.swal-button:active {\n\tdisplay: inline-block;\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tpadding: 10px 22px;\n\tbackground-color: #F2F6FA;\n\tcolor: #536579;\n\tfont-size: 14px;\n\tmargin-right: 8px;\n}\n\n.button.openBulkActionsButton {\n\tpadding: 7px 22px;\n\tmargin-left: 16px;\n}\n\n.smallButton,\n.smallButton:hover {\n\tpadding: 5px 22px;\n}\n\n.swal-button,\n.swal-button:hover,\n.swal-button:active {\n\tmargin-right: 0px;\n}\n\n.swal-button--danger,\n.swal-button--danger:hover,\n.swal-button--danger:active {\n\tbackground-color: #e64942;\n\tcolor: white;\n}\n\n.swal-button:focus {\n\tbox-shadow: none;\n}\n\n.button.loading {\n\topacity: 0.5;\n\tcursor: default;\n}\n\n.downloadButton,\n.downloadPanelButton {\n\tdisplay: inline-block;\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tfont-size: 12px;\n\tcolor: #647A93;\n\tbackground-color: #F2F6FA;\n\twidth: 30px;\n\theight: 30px;\n\ttext-align: center;\n\tjustify-content: center;\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 30px;\n\tmargin-left: 5px;\n}\n\n.plusButton {\n\tmargin-left: 5px;\n\tdisplay: inline-block;\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tfont-size: 14px;\n\tbackground: #45B271;\n\tcolor: white;\n\twidth: 30px;\n\theight: 30px;\n\ttext-align: center;\n\tjustify-content: center;\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 30px;\n}\n\n.alternativePlusButton {\n\tmargin-left: 5px;\n\tdisplay: inline-block;\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tfont-size: 14px;\n\tbackground: #45B271;\n\tcolor: white;\n\tpadding: 0px 10px;\n\theight: 30px;\n\ttext-align: center;\n\tjustify-content: center;\n\tdisplay: flex;\n\talign-items: center;\n\tline-height: 30px;\n}\n\n.greenButton,\n.greenButton:hover,\n.greenButton:active {\n\tbackground: #45B271;\n\tcolor: white;\n}\n\n.paddedView {\n\tpadding: 30px;\n}\n\n.formElement {\n\tmargin-bottom: 30px;\n}\n\n.showRecordField {\n\tmargin-bottom: 20px;\n}\n\n.formLabel,\n.filterLabel {\n\tcolor: #8798AC;\n\tfont-size: 13px;\n\tfont-weight: 500;\n\tmargin-bottom: 6px;\n\ttext-transform: uppercase;\n}\n\n.formInput input,\n.formInput select,\n.formInput textarea,\n.editLocalesTable input,\n.editLocalesTable textarea,\n.ql-editor,\n.addFilterPopup input,\n.addFilterPopup select {\n\tbackground-color: #F2F6FA;\n\tborder-color: #ADB9C6;\n\tborder-radius: 2px;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tbox-shadow: inset 0 1px 1px 0 #C3CCD7;\n\tcolor: #536579;\n\tpadding: 0 15px;\n\twidth: 100%;\n\tfont-size: 14px;\n\tbox-sizing: border-box;\n}\n\n.ql-editor {\n\tpadding: 15px;\n}\n\n.addFilterPopup input,\n.addFilterPopup select {\n\tpadding: 10px;\n\tmargin-bottom: 10px;\n}\n\n.formInput textarea {\n\theight: 150px;\n\tpadding: 15px;\n}\n\ninput {\n\tbox-sizing: border-box;\n}\n\n.formInput input,\n.formInput select,\n.editLocalesTable input {\n\theight: 38px;\n\tmin-height: 38px;\n\ttransition: all 250ms ease-out;\n}\n\ntextarea {\n\tresize: none;\n\tfont-family: inherit;\n}\n\n.editLocalesTable textarea {\n\tline-height: 1.7;\n\tpadding: 5px 15px;\n}\n\n.formValue {\n\tcolor: #607083;\n}\n\n.formValue p,\n.formValue ul,\n.formValue h2,\n.formValue h1,\n.formValue h3 {\n\tmargin: 0;\n}\n\n.scrollable {\n\theight: calc(100vh - 40px);\n\toverflow-y: auto;\n\tposition: relative;\n}\n\n.tableFooter {\n\theight: 40px;\n\tbox-sizing: border-box;\n\tbackground-color: #303B47;\n\tcolor: #ADB9C6;\n\tpadding: 0px 15px;\n\tdisplay: flex;\n\tjustify-content: space-between;\n\ttext-transform: uppercase;\n\talign-items: center;\n\tfont-size: 12px;\n\tfont-family: gt-eesti-medium, \"Helvetica Neue\", Helvetica, sans-serif;\n\tletter-spacing: .83px;\n}\n\n.paginator {\n\tdisplay: flex;\n\tflex-direction: row;\n}\n\n.paginatorNumber {\n\tborder-top: 1px solid rgba(255, 255, 255, 0.2);\n\tborder-bottom: 1px solid rgba(255, 255, 255, 0.2);\n\tcolor: #ADB9C6;\n\tpadding: 0px 10px;\n\theight: 20px;\n\talign-items: center;\n\tdisplay: flex;\n}\n\n.paginatorLeft,\n.paginatorRight {\n\topacity: 0.2;\n\tcursor: pointer;\n\tborder: 1px solid white;\n\tfont-size: 13px;\n\theight: 20px;\n\talign-items: center;\n\tdisplay: flex;\n\twidth: 20px;\n\tjustify-content: center;\n}\n\n.fakeRecord {\n\theight: 10px;\n\tbackground-color: #F2F6FA;\n\twidth: 80%;\n}\n\nthead .fakeRecord {\n\tbackground-color: #ADB9C6;\n}\n\ntable tbody tr:nth-child(2n) .fakeRecord {\n\tbackground-color: #D0D8E0;\n}\n\n.actionButtonsContainer {\n\tposition: relative;\n\tdisplay: inline-block;\n}\n\n.actions,\n.bulkActions {\n\tposition: absolute;\n\tright: 8px;\n\ttop: 37px;\n\tz-index: 1;\n\tbox-shadow: 0 2px 40px 0 rgba(49, 47, 51, .3);\n}\n\n.bulkActions {\n\ttop: 31px;\n}\n\n.red {\n\tcolor: #FB6669 !important;\n}\n\n.action {\n\tcursor: pointer;\n\tbackground: white;\n\tborder-bottom: 1px solid #F2F6FA;\n\tcolor: #647A93;\n\tfont-size: 14px;\n\tline-height: 14px;\n\tmin-width: 150px;\n\tpadding: 10px 12px;\n\ttext-align: left;\n\twhite-space: nowrap;\n\tbox-sizing: border-box;\n}\n\n.swal-overlay--show-modal .swal-modal {\n\tanimation: none;\n}\n\n.swal-overlay {\n\ttransition: none;\n}\n\n.swal-title {\n\tcolor: #607083;\n\tfont-weight: normal;\n}\n\n.swal-modal {\n\tborder-radius: 2px;\n}\n\n.swal-text {\n\tcolor: #8798AC;\n}\n\n.searchBarContainer {\n\tposition: relative;\n}\n\n.searchBar {\n\tbackground-color: #F2F6FA;\n\tborder-color: #ADB9C6;\n\tborder-radius: 2px;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tcolor: #536579;\n\tdisplay: flex;\n\theight: 30px;\n\toverflow: hidden;\n\twidth: 430px;\n\tbox-shadow: inset 0 1px 1px 0 #C3CCD7;\n\tpadding-left: 30px;\n}\n\n.searchBarIcon {\n\tposition: absolute;\n\tcolor: #647A93;\n\ttop: 0px;\n\tleft: 0px;\n\theight: 30px;\n\tdisplay: flex;\n\twidth: 30px;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n.map {\n\theight: 300px;\n}\n\n.galleryPicture {\n\twidth: calc(50% - 4px);\n\tmargin-bottom: 8px;\n\tposition: relative;\n\tdisplay: inline-block;\n}\n\n.deleteIcon,\n.deleteFile {\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tfont-size: 14px;\n\tbackground-color: #F2F6FA;\n\tcolor: #536579;\n\ttext-align: center;\n\tjustify-content: center;\n\tdisplay: none;\n\talign-items: center;\n\twidth: 30px;\n\theight: 30px;\n\tline-height: 30px;\n}\n\n.galleryPicture .deleteIcon {\n\tposition: absolute;\n\ttop: 8px;\n\tright: 8px;\n}\n\n.record:hover .deleteIcon {\n\tdisplay: flex;\n}\n\n.deleteIconCell {\n\tbox-sizing: border-box;\n\twidth: 40px;\n\tpadding: 0px !important;\n}\n\n.galleryPicture:hover .deleteIcon {\n\tdisplay: flex;\n}\n\n.galleryPicture img {\n\twidth: 100%;\n}\n\n.galleryPicture:nth-child(2n + 1) {\n\tmargin-right: 8px;\n}\n\n.sortable {\n\tcursor: pointer;\n}\n\n.columnSortIcon {\n\tpadding-left: 8px;\n\tdisplay: inline;\n}\n\n.sortable:hover .columnSortIcon {\n\tcolor: white;\n}\n\n.colorPreview {\n\twidth: 80px;\n\theight: 30px;\n\tbox-shadow: 0 1px 4px rgba(0, 0, 0, .1);\n}\n\niframe {\n\twidth: 100%;\n\tmargin: 0;\n\tbox-sizing: border-box;\n\theight: 100%;\n\tborder: none;\n\tdisplay: block;\n}\n\n.flagContainer {\n\tpadding-top: 0px;\n\tpadding-bottom: 0px;\n\theight: 44px;\n}\n\n.flag {\n\theight: 22px;\n\tvertical-align: middle;\n\tmargin-right: 8px;\n\tmargin-left: 2px;\n}\n\n.flagLabel {\n\tvertical-align: middle;\n\tdisplay: inline-block;\n}\n\n.localesTableHeaderContainer {\n\tbackground-color: #303B47;\n}\n\n.localesTableHeader,\n.localesTable,\n.editLocalesTable {\n\twidth: 100%;\n\ttable-layout: fixed;\n}\n\n.localesTableHeader {\n\twidth: calc(100% - 17px);\n}\n\n.localesTableContainer {\n\theight: calc(100vh - 114px);\n\toverflow-y: scroll;\n}\n\n.folded {\n\tdisplay: none;\n}\n\n.quill {\n\theight: 200px;\n}\n\n.ql-container.ql-snow {\n\tborder: none;\n}\n\n.dashboardView {\n\tflex-wrap: wrap;\n\tflex: 1;\n\tdisplay: flex;\n\talign-items: flex-start;\n\talign-content: flex-start;\n\tbox-sizing: border-box;\n}\n\n.dashboardPanel {\n\tborder-radius: 4px;\n\tbox-shadow: 0 1px 2px rgba(0, 0, 0, .15);\n\tbackground-color: #fff;\n\tpadding: 15px;\n\tposition: relative;\n\tmargin-bottom: 20px;\n\tmargin-right: 20px;\n\tflex: 0 1 calc(33.33% - 50px);\n}\n\n.dashboardLegend {\n\tcolor: rgb(66, 80, 96);\n\tmargin-bottom: 15px;\n}\n\n.dashboardValue {\n\tfont-size: 30px;\n\tcolor: rgb(31, 38, 46);\n}\n\n.addFilterPopup {\n\tposition: absolute;\n\tbox-shadow: 0 2px 40px 0 rgba(49, 47, 51, .3);\n\tbackground: white;\n\tpadding: 15px;\n\tright: 0px;\n\ttop: 31px;\n\twidth: 280px;\n}\n\n.openFilterPopup {\n\tpadding: 6px 22px !important;\n\tmargin-left: 8px !important;\n\tmargin-right: 0px !important;\n\tposition: relative;\n}\n\n.openFilterPopup i {\n\tmargin-right: 8px;\n\tfont-size: 12px;\n}\n\n.filtersContainer {\n\tpadding: 12px;\n}\n\n.filterItem {\n\tcolor: white;\n\tbackground-color: #647A93;\n\tfont-size: 12px;\n\ttext-transform: uppercase;\n\tdisplay: inline-block;\n\tborder-radius: 2px;\n\tmargin-right: 8px;\n\toverflow: hidden;\n}\n\n.filterItemLabel {\n\tdisplay: inline-block;\n\tpadding: 4px;\n\theight: 22px;\n\tbox-sizing: border-box;\n}\n\n.filterRemove {\n\tpadding: 4px;\n\tcursor: pointer;\n\tdisplay: inline-block;\n\tbackground-color: #536579;\n\theight: 22px;\n\tbox-sizing: border-box;\n}\n\n.logo {\n\twidth: 60%;\n\tleft: 20%;\n\tposition: relative;\n\ttop: 10px;\n}\n\n.notificationWrapper {\n\tcolor: white;\n\tbackground-color: #F44336;\n\tborder-radius: 50%;\n\twidth: 15px;\n\theight: 15px;\n\tposition: absolute;\n\tjustify-content: center;\n\talign-items: center;\n\ttop: 31px;\n\tleft: 28px;\n\tfont-size: 11px;\n\tdisplay: none;\n}\n\n[data-subview-index] {\n\tposition: relative;\n}\n\n.notificationWrapperForSubview {\n\tcolor: white;\n\tbackground-color: #F44336;\n\tborder-radius: 4px;\n\tpadding: 0px 5px;\n\theight: 15px;\n\tposition: absolute;\n\tjustify-content: center;\n\talign-items: center;\n\ttop: 10px;\n\tright: 0px;\n\tfont-size: 11px;\n\tdisplay: none;\n}\n\n.checkbox {\n\twidth: 15px;\n\theight: 15px;\n\tbackground-color: white;\n\tborder: 1px solid black;\n\tborder-radius: 3px;\n}\n\n.checkbox.checked {\n\tposition: relative;\n\tbackground-color: #45B271;\n}\n\n.checkbox.checked::after {\n\tposition: absolute;\n\tfont-family: \"Font Awesome 5 Pro\";\n\tcontent: \"\\f00c\";\n\tcolor: white;\n\tfont-size: 14px;\n}\n\n.fileInputContent {\n\tposition: relative;\n}\n\n.fileInputContent .deleteFile {\n\tposition: absolute;\n\tbottom: 20px;\n\tright: 20px;\n}\n\n.fileInputContent .nonImageFileOutput .deleteFile {\n\tbottom: 4px;\n\tright: 4px;\n}\n\n.fileInputContent:hover .deleteFile {\n\tdisplay: flex;\n}\n\n.labelTooltipContainer {\n\tposition: relative;\n\tdisplay: inline-block;\n\tflex-direction: row;\n}\n\n.labelTooltipIcon {\n\tpadding-left: 5px;\n}\n\n.tooltip {\n\tposition: absolute;\n\ttop: -10px;\n\tleft: 25px;\n\tbackground: white;\n\tpadding: 10px;\n\tbox-shadow: 0 1px 3px 0 #C3CCD7;\n\tfont-size: 12px;\n\tmin-width: 80px;\n\tz-index: 1;\n\ttext-transform: lowercase;\n}\n\n\n.loginPanelBackground {\n\tfont-family: gt-eesti-regular, \"Helvetica Neue\", Helvetica, sans-serif;\n\tmargin: 0px;\n\tdisplay: flex;\n\theight: 100vh;\n\tjustify-content: center;\n\talign-items: center;\n\tbackground: #233550;\n\tflex: 1;\n}\n\n.appLoading {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tflex: 1;\n\tcolor: #233550;\n\tfont-size: 72px;\n\theight: 100vh;\n}\n\n.loginLogoContainer {\n\ttext-align: center;\n}\n\n.loginLogo {\n\twidth: 180px;\n\tmargin-bottom: 30px;\n}\n\n.loginPanel {\n\tbackground: white;\n\tborder-radius: 2px;\n\tpadding: 30px;\n\tborder: 1px solid #EBEDF8;\n\tmax-width: 250px;\n\tposition: relative;\n}\n\n.loginPanel label {\n\tfont-weight: 500;\n\tfont-size: 14px;\n\tmargin-bottom: 7px;\n\tcolor: #647A93;\n\tfont-size: 12px;\n\ttext-transform: uppercase;\n}\n\n.loginPanel input {\n\twidth: 100%;\n\tmargin-top: 5px;\n\tmargin-bottom: 25px;\n\tfont-family: inherit;\n\n\tbackground-color: #F2F6FA;\n\tborder-color: #ADB9C6;\n\tborder-radius: 2px;\n\tborder-style: solid;\n\tborder-width: 1px;\n\tbox-shadow: inset 0 1px 1px 0 #C3CCD7;\n\tcolor: #536579;\n\theight: 38px;\n\tmin-height: 38px;\n\tpadding: 0 15px;\n\twidth: 100%;\n\tfont-size: 14px;\n}\n\n.loginPanel button {\n\tdisplay: inline-block;\n\tcursor: pointer;\n\tborder-radius: 2px;\n\tpadding: 10px 22px;\n\tfont-size: 14px;\n\twidth: 100%;\n\tborder: none;\n\tfont-family: inherit;\n}"]}
@@ -0,0 +1,2 @@
1
+ (this["webpackJsonpgaladmin-front"]=this["webpackJsonpgaladmin-front"]||[]).push([[0],{16:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_exports__.a=function(expression,data){try{var varString="";for(var key in data)varString+="var "+key+" = "+("string"===typeof data[key]?"'"+data[key].replace(/'/g,"\\'").replace(/\n/g,"<br>").replace(/\r/g,"")+"'":"object"===typeof data[key]?JSON.stringify(data[key]):data[key])+";";return eval(varString+expression)}catch(e){return console.log(varString+expression),console.error(e),"Error"}}},49:function(e,t,n){},50:function(e,t,n){},7:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return ConfigContext})),__webpack_require__.d(__webpack_exports__,"b",(function(){return ConfigProvider}));var _home_runner_work_galadmin_galadmin_src_front_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1),react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__),axios__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),axios__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_2__),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(0),react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__),ConfigContext=Object(react__WEBPACK_IMPORTED_MODULE_1__.createContext)(null),ConfigProvider=function ConfigProvider(props){var _useState=Object(react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),_useState2=Object(_home_runner_work_galadmin_galadmin_src_front_node_modules_babel_preset_react_app_node_modules_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__.a)(_useState,2),config=_useState2[0],setConfig=_useState2[1];return Object(react__WEBPACK_IMPORTED_MODULE_1__.useEffect)((function(){axios__WEBPACK_IMPORTED_MODULE_2___default.a.get("/config").then((function(response){var _config=eval("("+response.data.config+")");if(setConfig(_config),_config.googleMapsKey){var script=document.createElement("script");return script.src="https://maps.googleapis.com/maps/api/js?key="+_config.googleMapsKey+"&libraries=places,autocomplete",document.body.appendChild(script),function(){document.body.removeChild(script)}}}))}),[]),config?Object(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(ConfigContext.Provider,{value:config,children:props.children}):null}},75:function(e,t,n){"use strict";n.r(t);var c=n(1),a=n.n(c),r=n(39),i=n.n(r),l=(n(49),n(2)),o=n(4),s=n(8),u=(n(50),n(7)),d=n(0),j=function(e){var t=e.view;return Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"sidebarIcon",children:Object(d.jsx)("i",{class:"fas fa-".concat(t.icon||"square")})}),Object(d.jsx)("div",{class:"sidebarLabel",children:t.label})]})},b=function(){var e=Object(s.h)(),t=Object(c.useContext)(u.a),n=Object(s.g)();return Object(d.jsxs)("div",{class:"sidebar",children:[t.logo?Object(d.jsx)("img",{src:t.logo,class:"logo"}):null,Object(d.jsx)("div",{class:"sidebarTitle",children:t.name}),Object(d.jsx)("div",{class:"sidebarSubtitle",children:"Back-office"}),t.views.filter((function(e){return!e.hidden})).map((function(t,c){if("link"===t.type)return Object(d.jsx)("a",{href:t.src,children:Object(d.jsx)("div",{class:"sidebarItem",children:Object(d.jsx)("div",{children:Object(d.jsx)(j,{view:t})})})},c);if("iframe"===t.type){var a=e.pathname==="/iframe/".concat(c);return Object(d.jsx)(o.b,{to:"/iframe/".concat(c),children:Object(d.jsx)("div",{class:"sidebarItem ".concat(a?"active":""),children:Object(d.jsx)("div",{children:Object(d.jsx)(j,{view:t})})})},c)}if("custom"===t.type){var r=e.pathname==="/customView/".concat(c);return Object(d.jsx)(o.b,{to:"/customView/".concat(c),children:Object(d.jsx)("div",{class:"sidebarItem ".concat(r?"active":""),children:Object(d.jsx)("div",{children:Object(d.jsx)(j,{view:t})})})},c)}if("table"===t.type){var i=e.pathname.startsWith("/records/".concat(c))||e.pathname==="/createRecord/".concat(c)||e.pathname.startsWith("/record/".concat(c))||e.pathname.startsWith("/editRecord/".concat(c));return Object(d.jsx)("div",{onClick:function(){return n.push("/records/".concat(c))},children:Object(d.jsxs)("div",{class:"sidebarItem ".concat(i?"active":""),children:[Object(d.jsxs)("div",{children:[Object(d.jsx)("div",{class:"notificationWrapper"}),Object(d.jsx)(j,{view:t})]}),t.subviews?Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"subviewsSeparator"}),t.subviews.map((function(t,a){var r=e.pathname=="/records/".concat(c,"/").concat(a);return Object(d.jsx)("div",{onClick:function(e){n.push("/records/".concat(c,"/").concat(a)),e.stopPropagation()},children:Object(d.jsxs)("div",{"data-subview-index":a,class:r?"active":"",children:[Object(d.jsx)("div",{class:"notificationWrapperForSubview"}),t.label]})})}))]}):null]})},c)}})),t.hideBranding?null:Object(d.jsxs)("div",{class:"sidebarBranding",children:["Made with ",Object(d.jsx)("i",{class:"fas fa-heart"})," by Galadrim"]})]})},f=function(){var e=Object(c.useContext)(u.a).views[0];return e?"table"===e.type?Object(d.jsx)(s.a,{to:"/records/0"}):"iframe"===e.type?Object(d.jsx)(s.a,{to:"/iframe/0"}):"custom"===e.type?Object(d.jsx)(s.a,{to:"/customView/0"}):null:null},v=n(12),p=n(5),O=n.n(p),h=n(10),x=n(23),m=n(3),_=n.n(m),g=n(6),w=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=Object(c.useRef)(null);return Object(c.useEffect)((function(){return r.current&&(window.$(r.current).spectrum({preferredFormat:"hex",showInput:!0,chooseText:"OK",cancelText:"Annuler",color:null===a||void 0===a?void 0:a[t.name]}),window.$(r.current).on("change.spectrum",(function(e,c){n(Object(g.a)({},t.name,c.toHexString()))}))),function(){return window.$(r.current).off()}}),[r.current]),Object(d.jsx)("input",{ref:r,type:"text",onChange:function(e){return n(Object(g.a)({},t.name,e.target.value))}})};window.Quill.prototype.getHTML=function(){return this.container.querySelector(".ql-editor").innerHTML};var y=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=Object(c.useRef)(null);return Object(c.useEffect)((function(){if(r.current&&!r.current.editor){var e=new window.Quill(r.current,{theme:"snow",modules:{toolbar:[[{header:[1,2,3,4,!1]}],["bold","italic","underline","link"],["image"],[{align:[]}],[{list:"ordered"},{list:"bullet"}],["clean"]]}});if(t.contentField){if(null===a||void 0===a?void 0:a[t.contentField])try{e.setContents(JSON.parse(null===a||void 0===a?void 0:a[t.contentField]))}catch(c){}}else t.htmlField&&e.clipboard.dangerouslyPasteHTML(0,null===a||void 0===a?void 0:a[t.htmlField]);return e.on("text-change",(function(){n(Object(v.a)(Object(g.a)({},t.htmlField,e.getHTML()),t.contentField&&Object(g.a)({},t.contentField,JSON.stringify(e.getContents()))))})),r.current.editor=e,e.off()}}),[r.current]),Object(d.jsx)("div",{class:"quillContainer",children:Object(d.jsx)("div",{class:"quill",ref:r,style:t.height?{height:t.height}:null})})},C=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=e.withTime,i=Object(c.useRef)(null);return Object(c.useEffect)((function(){if(i.current){var e=window.$(i.current).datepicker({language:"fr",autoClose:!0,onSelect:function(e,c){n(Object(g.a)({},t.name,window.moment(c).format(r?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD")))}});(null===a||void 0===a?void 0:a[t.name])&&e.data("datepicker").selectDate(new Date(null===a||void 0===a?void 0:a[t.name]))}}),[i.current]),Object(d.jsx)("div",{children:Object(d.jsx)("input",{type:"text",ref:i,"data-timepicker":r?"true":"false"})})},I=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=Object(c.useRef)(null);return Object(c.useEffect)((function(){if(r.current&&window.google){var e=new window.google.maps.places.Autocomplete(r.current,t.componentRestrictions?{componentRestrictions:t.componentRestrictions}:{});e.addListener("place_changed",(function(){var c=e.getPlace();if(0!==c.length&&c.geometry){var a={latitudeField:function(e){return e.geometry.location.lat()},longitudeField:function(e){return e.geometry.location.lng()},addressField:function(e){return e.formatted_address},streetNumberField:function(e){var t;return null===(t=e.address_components.find((function(e){return"street_number"===e.type})))||void 0===t?void 0:t.long_name},routeField:function(e){var t;return null===(t=e.address_components.find((function(e){return"route"===e.type})))||void 0===t?void 0:t.long_name},localityField:function(e){var t;return null===(t=e.address_components.find((function(e){return"locality"===e.type})))||void 0===t?void 0:t.long_name},administrativeAreaLevel2Field:function(e){var t;return null===(t=e.address_components.find((function(e){return"administrative_area_level_2"===e.type})))||void 0===t?void 0:t.long_name},administrativeAreaLevel1Field:function(e){var t;return null===(t=e.address_components.find((function(e){return"administrative_area_level_1"===e.type})))||void 0===t?void 0:t.long_name},countryField:function(e){var t;return null===(t=e.address_components.find((function(e){return"country"===e.type})))||void 0===t?void 0:t.long_name},postalCodeField:function(e){var t;return null===(t=e.address_components.find((function(e){return"postal_code"===e.type})))||void 0===t?void 0:t.long_name}},i={};for(var l in a)t[l]&&(i[t[l]]=a[l](c));r.current.value=c.formatted_address,n(i)}}))}}),[r.current]),Object(c.useEffect)((function(){var e,t=function(){r.current&&(r.current.value="")};return null===r||void 0===r||null===(e=r.current)||void 0===e||e.addEventListener("focusout",t),function(){var e;return null===r||void 0===r||null===(e=r.current)||void 0===e?void 0:e.removeEventListener("focusout",t)}}),[r.current]),Object(d.jsx)("div",{children:Object(d.jsx)("input",{type:"text",placeholder:"",ref:r,defaultValue:null===a||void 0===a?void 0:a[t.name]})})},k=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=Object(c.useRef)(null),i=Object(s.i)().viewIndex,o=Object(c.useState)(!1),u=Object(l.a)(o,2),j=u[0],b=u[1],f=Object(c.useState)(null===a||void 0===a?void 0:a[t.name]),v=Object(l.a)(f,2),p=v[0],x=v[1],m=function(){var e=Object(h.a)(O.a.mark((function e(){var c,a,l;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c=new FormData(r.current),b(!0),e.next=4,_()({method:"post",url:"/uploadFile",data:c,params:{viewIndex:i,columnId:t.__id__},headers:{"Content-Type":"multipart/form-data"}});case 4:a=e.sent,l=Object(g.a)({},t.name,a.data.path),t.aspectRatioField&&(l[t.aspectRatioField]=a.data.aspectRatio),t.originalNameField&&(l[t.originalNameField]=a.data.originalFilename),n(l),b(!1),x(a.data.path);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),w=Math.random().toString();return Object(d.jsx)("div",{class:"fileInputContainer",children:Object(d.jsxs)("label",{htmlFor:w,children:[Object(d.jsx)("form",{ref:r,children:Object(d.jsx)("input",{type:"file",id:w,style:{display:"none"},name:"file",onChange:m})}),Object(d.jsxs)("div",{class:"fileInputContent ".concat(p?"":"clickToSelectFile"),children:[j?Object(d.jsx)("i",{class:"fa fa-circle-notch fa-spin"}):null,j||p?null:Object(d.jsx)("div",{children:"Cliquez pour s\xe9lectionner un fichier"}),!j&&p?Object(d.jsxs)("div",{class:"nonImageFileOutput",children:[Object(d.jsx)("span",{children:"Fichier t\xe9l\xe9charg\xe9"}),Object(d.jsx)("div",{class:"deleteFile",onClick:function(e){x(null);var c=Object(g.a)({},t.name,null);t.aspectRatioField&&(c[t.aspectRatioField]=null),t.originalNameField&&(c[t.originalNameField]=null),n(c),e.preventDefault()},children:Object(d.jsx)("i",{class:"fal fa-trash-alt"})})]}):null]})]})})},E=function(e){var t=e.column,n=e.onChange,a=e.initialData,r=Object(c.useState)(null),i=Object(l.a)(r,2),o=i[0],u=i[1],j=Object(s.i)().viewIndex;return Object(c.useEffect)((function(){_.a.post("/foreignSelectRecords",{viewIndex:j,columnId:t.__id__}).then((function(e){var c,r;u(e.data),n(Object(g.a)({},t.name,(null===a||void 0===a?void 0:a[t.name])||(t.optional?"NULL":null===(c=e.data[0])||void 0===c?void 0:c.value)),{label:t.optional?"-":null===(r=e.data[0])||void 0===r?void 0:r.label})}))}),[]),null===o?Object(d.jsx)("i",{class:"fa fa-circle-notch fa-spin",style:{color:"#536579"}}):Object(d.jsxs)("select",{onChange:function(e){var c;return n(Object(g.a)({},t.name,e.target.value),{label:null===(c=o.find((function(t){return t.value==e.target.value})))||void 0===c?void 0:c.label})},defaultValue:null===a||void 0===a?void 0:a[t.name],children:[t.optional?Object(d.jsx)("option",{value:"NULL",children:"-"}):null,o.map((function(e){return Object(d.jsx)("option",{value:e.value,children:e.label},e.value)}))]})},T=function(e){var t,n=e.column,a=e.onChange,r=e.initialData,i=Object(c.useState)([]),o=Object(l.a)(i,2),u=o[0],j=o[1],b=Object(s.i)().viewIndex,f=Object(c.useState)(""),v=Object(l.a)(f,2),p=v[0],O=v[1],h=Object(c.useRef)(null),x=Object(c.useRef)(!1);Object(c.useEffect)((function(){_.a.post("/foreignSelectRecords",{viewIndex:b,columnId:n.__id__,query:p}).then((function(e){j(e.data)}))}),[p]),Object(c.useEffect)((function(){var e,t=function(){h.current&&!x.current&&(h.current.value="")};return null===h||void 0===h||null===(e=h.current)||void 0===e||e.addEventListener("focusout",t),function(){var e;return null===h||void 0===h||null===(e=h.current)||void 0===e?void 0:e.removeEventListener("focusout",t)}}),[h.current]);var m=Math.random();return null===u?Object(d.jsx)("i",{class:"fa fa-circle-notch fa-spin",style:{color:"#536579"}}):Object(d.jsxs)("div",{children:[Object(d.jsx)("input",{type:"text",list:m,ref:h,onChange:function(e){var t,c,r=null!==(t=null===(c=u.find((function(t){return t.label===e.target.value})))||void 0===c?void 0:c.value)&&void 0!==t?t:null;x.current=!!r,O(e.target.value),a(Object(g.a)({},n.name,r))},defaultValue:null===(t=u.find((function(e){return e.value===(null===r||void 0===r?void 0:r[n.name])})))||void 0===t?void 0:t.label}),Object(d.jsxs)("datalist",{id:m,children:[n.optional?Object(d.jsx)("option",{value:"NULL",children:"-"}):null,u.map((function(e){return Object(d.jsx)("option",{value:e.label,children:e.label},e.value)}))]})]})},D=function(e){var t,n,c,a=e.column,r=e.onChange,i=e.initialData,l=a.dataType;return["int","double","float","decimal"].includes(l)?Object(d.jsx)("input",{type:"number",onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null===i||void 0===i?void 0:i[a.name],onWheel:function(e){e.target.blur(),setTimeout((function(){e.target.focus()}),0)}}):"tinyint"===l?Object(d.jsxs)("select",{onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null!==(t=null===i||void 0===i?void 0:i[a.name])&&void 0!==t?t:a.defaultOption,children:[a.optional?Object(d.jsx)("option",{value:"NULL",children:"-"}):null,Object(d.jsx)("option",{value:"0",children:"Non"}),Object(d.jsx)("option",{value:"1",children:"Oui"})]}):"select"===l&&Array.isArray(a.options)?Object(d.jsxs)("select",{onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null!==(n=null===i||void 0===i?void 0:i[a.name])&&void 0!==n?n:a.defaultOption,children:[a.optional?Object(d.jsx)("option",{value:"NULL",children:"-"}):null,a.options.map((function(e){return Object(d.jsx)("option",{value:e,children:e},e)}))]}):"select"===l?Object(d.jsxs)("select",{onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null!==(c=null===i||void 0===i?void 0:i[a.name])&&void 0!==c?c:a.defaultOption,children:[a.optional?Object(d.jsx)("option",{value:"NULL",children:"-"}):null,Object.keys(a.options).map((function(e){return Object(d.jsx)("option",{value:e,children:a.options[e]},e)}))]}):"datalist"===l?Object(d.jsx)(T,{column:a,onChange:r,initialData:i}):"foreign"===l?Object(d.jsx)(E,{column:a,onChange:r,initialData:i}):"address"===l?Object(d.jsx)(I,{column:a,onChange:r,initialData:i}):"color"===l?Object(d.jsx)(w,{column:a,onChange:r,initialData:i}):"file"===l?Object(d.jsx)(k,{column:a,onChange:r,initialData:i}):"datetime"===l?Object(d.jsx)(C,{column:a,onChange:r,initialData:i,withTime:!0}):"date"===l?Object(d.jsx)(C,{column:a,onChange:r,initialData:i,withTime:!1}):"textarea"===l?Object(d.jsx)("textarea",{onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null===i||void 0===i?void 0:i[a.name]}):"richText"===l?Object(d.jsx)(y,{column:a,onChange:r,initialData:i}):Object(d.jsx)("input",{type:"text",onChange:function(e){return r(Object(g.a)({},a.name,e.target.value))},defaultValue:null===i||void 0===i?void 0:i[a.name]})},M=function(e){var t=e.text,n=Object(c.useState)(!1),a=Object(l.a)(n,2),r=a[0],i=a[1];return Object(d.jsxs)("div",{class:"labelTooltipContainer",onMouseLeave:function(){return i(!1)},children:[Object(d.jsx)("div",{class:"labelTooltipIcon",onMouseEnter:function(){return i(!0)},children:Object(d.jsx)("i",{class:"fa fa-question-circle"})}),r?Object(d.jsx)("div",{class:"tooltip",children:t}):null]})};var A=function(e,t){var n,c=e.filter((function(e){return e.required&&(void 0===(n=t[e.name])||null===n||""===n);var n}));return!(c.length>0)||(n=1==c.length?"Le champ requis ".concat(c.map((function(e){return e.label})).join(", ")," n'a pas \xe9t\xe9 rempli"):"Les champs requis ".concat(c.map((function(e){return e.label})).join(", ")," n'ont pas \xe9t\xe9 remplis"),window.swal({title:"Erreur",text:n,dangerMode:!0}),!1)},S=function(){var e,t=Object(c.useContext)(u.a),n=Object(s.i)(),a=n.viewIndex,r=n.panelIndex,i=n.recordId,o=Object(s.g)(),j=t.views[a],b=r?j.recordViewPanels[r]:null,f=b?b.createConfig.columns:j.columns.filter((function(e){return e.dataType&&(!0===e.canEditOnCreation||!1!==e.canEdit)&&!e.hidden})),p={},m=Object(x.a)(f);try{for(m.s();!(e=m.n()).done;){var g=e.value;g.defaultOption?p[g.name]=g.defaultOption:"tinyint"===g.dataType?p[g.name]=g.optional?"NULL":"0":"select"===g.dataType&&Array.isArray(g.options)?p[g.name]=g.options[0]:"select"===g.dataType&&(p[g.name]=Object.keys(g.options)[0]),g.defaultValue&&(p[g.name]=g.defaultValue)}}catch(T){m.e(T)}finally{m.f()}var w=Object(c.useRef)(p),y=Object(c.useState)(!1),C=Object(l.a)(y,2),I=C[0],k=C[1],E=function(){var e=Object(h.a)(O.a.mark((function e(){var t,n,c;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A(f,w.current)){e.next=2;break}return e.abrupt("return");case 2:for(t in j.createFilters)w.current[t]=j.createFilters[t];return k(!0),e.prev=4,e.next=7,_.a.post("/createRecord",{viewIndex:a,panelIndex:r,recordId:i,data:w.current});case 7:c=e.sent,k(!1),i?o.push("/record/".concat(a,"/").concat(i)):(null===j||void 0===j||null===(n=j.createConfig)||void 0===n?void 0:n.redirectToCreatedItems)?o.push("/record/".concat(a,"/").concat(c.data.id)):o.push("/records/".concat(a)),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),window.swal({title:"Erreur",text:_.a.isAxiosError(e.t0)?e.t0.response.data.message:"Une erreur est survenue",dangerMode:!0}),k(!1);case 16:case"end":return e.stop()}}),e,null,[[4,12]])})));return function(){return e.apply(this,arguments)}}();return Object(d.jsxs)("div",{class:"view",children:[Object(d.jsx)("div",{class:"viewHeader",children:Object(d.jsx)("div",{class:"viewTitle",children:b?b.createConfig.label:"Cr\xe9er ".concat(j.aNewSingular)})}),Object(d.jsxs)("div",{class:"paddedView",children:[Object(d.jsx)("div",{class:"form",children:f.map((function(e,t){return Object(d.jsxs)("div",{class:"formElement",children:[Object(d.jsxs)("div",{class:"formLabel",children:[e.label," ",e.required?"*":"",e.labelTooltip?Object(d.jsx)(M,{text:e.labelTooltip}):null]}),Object(d.jsx)("div",{class:"formInput",children:Object(d.jsx)(D,{column:e,onChange:function(e){w.current=Object(v.a)(Object(v.a)({},w.current),e)}})})]},t)}))}),Object(d.jsx)("div",{class:"button greenButton ".concat(I?"loading":""),onClick:E,children:I?"Sauvegarde en cours...":"Cr\xe9er"}),Object(d.jsx)("div",{class:"button",onClick:function(){return o.goBack()},children:"Annuler"})]})]})},L=function(){var e=Object(c.useContext)(u.a),t=Object(s.i)(),n=t.viewIndex,a=t.recordId,r=Object(s.g)(),i=e.views[n],o=Object(c.useState)(null),j=Object(l.a)(o,2),b=j[0],f=j[1],p=i.columns.filter((function(e){return e.dataType&&!1!==e.canEdit&&!e.hidden})),x=Object(c.useRef)({}),m=Object(c.useState)(!1),g=Object(l.a)(m,2),w=g[0],y=g[1];Object(c.useEffect)((function(){_.a.get("/record",{params:{viewIndex:n,recordId:a}}).then((function(e){x.current={},f(e.data)}))}),[n,a]);var C=function(){var e=Object(h.a)(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A(p,Object(v.a)(Object(v.a)({},b),x.current))){e.next=2;break}return e.abrupt("return");case 2:return y(!0),e.prev=3,e.next=6,_.a.post("/updateRecord",{viewIndex:n,primaryValue:a,data:x.current,previousData:b});case 6:y(!1),r.push("/record/".concat(n,"/").concat(a)),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),e.t0.response.responseText&&window.swal({title:"Erreur",text:e.t0.response.responseText,dangerMode:!0}),y(!1);case 14:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();return Object(d.jsxs)("div",{class:"view",children:[Object(d.jsx)("div",{class:"viewHeader",children:Object(d.jsx)("div",{class:"viewTitle",children:i.label})}),Object(d.jsx)("div",{class:"paddedView",children:b?Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"form",children:p.map((function(e,t){return Object(d.jsxs)("div",{class:"formElement",children:[Object(d.jsxs)("div",{class:"formLabel",children:[e.label," ",e.required?"*":"",e.labelTooltip?Object(d.jsx)(M,{text:e.labelTooltip}):null]}),Object(d.jsx)("div",{class:"formInput",children:Object(d.jsx)(D,{column:e,initialData:b,onChange:function(e){x.current=Object(v.a)(Object(v.a)({},x.current),e)}})})]},t)}))}),Object(d.jsx)("div",{class:"button greenButton ".concat(w?"loading":""),onClick:C,children:w?"Sauvegarde en cours...":"Sauvegarder"}),Object(d.jsx)("div",{class:"button",onClick:function(){return r.goBack()},children:"Annuler"})]}):null})]})},P=n(28),F=function(e){var t=e.view,n=e.viewIndex,a=e.subviewIndex,r=e.currentFilters,i=e.orderBy,o=e.isDesc,s=e.query,u=Object(c.useState)(!1),j=Object(l.a)(u,2),b=j[0],f=j[1];return Object(d.jsx)("div",{class:"downloadButton",onClick:function(){f(!0),_.a.post("/recordsExport",{viewIndex:n,subviewIndex:a,filters:r.map((function(e){return e.query})),orderBy:i,isDesc:o,query:s}).then((function(e){f(!1),window.download(e.data.content,t.label+".csv")}))},children:Object(d.jsx)("i",{class:"fa ".concat(b?"fa-spin fa-circle-notch":"fa-cloud-download")})})};function R(e){var t,n,a=Object(c.useRef)(null);return t=a,n=e.onOutsideClick,Object(c.useEffect)((function(){function e(e){var c;!t.current||t.current.contains(e.target)||(null===(c=document.getElementById("datepickers-container"))||void 0===c?void 0:c.contains(e.target))||n()}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t]),Object(d.jsx)("div",{ref:a,children:e.children})}var q=function(e){var t=e.view,n=(e.refreshData,e.onAddFilter),a=Object(c.useState)(!1),r=Object(l.a)(a,2),i=r[0],o=r[1],s=Object(c.useState)(null),u=Object(l.a)(s,2),j=u[0],b=u[1],f=Object(c.useState)("contains"),v=Object(l.a)(f,2),p=v[0],O=v[1],h=Object(c.useState)(null),x=Object(l.a)(h,2),m=x[0],_=x[1],g=Object(c.useRef)("-"),w=t.columns.find((function(e){return(e.searchableName||e.name)===j}));Object(c.useEffect)((function(){"select"===(null===w||void 0===w?void 0:w.dataType)&&_(Array.isArray(w.options)?w.options[0]:Object.keys(w.options)[0])}),[j]);return Object(d.jsx)(R,{onOutsideClick:function(){return o(!1)},children:Object(d.jsxs)("div",{class:"button openFilterPopup",onClick:function(){return o(!i)},children:[Object(d.jsx)("i",{class:"fas fa-filter"})," Ajouter un filtre",i?Object(d.jsxs)("div",{class:"addFilterPopup",onClick:function(e){return e.stopPropagation()},children:[Object(d.jsx)("div",{class:"filterLabel",children:"Champ"}),Object(d.jsxs)("select",{onChange:function(e){return b(e.target.value)},children:[Object(d.jsx)("option",{value:"",children:"S\xe9lectionnez un champ"}),t.columns.filter((function(e){return(e.searchableName||e.name)&&"datalist"!==e.dataType})).map((function(e){var t=e.searchableName||e.name;return Object(d.jsx)("option",{value:t,children:e.label},t)}))]}),"select"===(null===w||void 0===w?void 0:w.dataType)?Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"filterLabel",children:"Valeur"}),Object(d.jsx)("select",{onChange:function(e){return _(e.target.value)},children:Array.isArray(w.options)?w.options.map((function(e){return Object(d.jsx)("option",{value:e,children:e})})):Object.keys(w.options).map((function(e){return Object(d.jsx)("option",{value:e,children:w.options[e]})}))})]}):"foreign"===(null===w||void 0===w?void 0:w.dataType)?Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"filterLabel",children:"Valeur"}),Object(d.jsx)(E,{column:w,onChange:function(e,t){_(e[w.name]),g.current=t.label}})]}):"date"===(null===w||void 0===w?void 0:w.dataType)||"datetime"===(null===w||void 0===w?void 0:w.dataType)?Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"filterLabel",children:"De"}),Object(d.jsx)(C,{column:w,withTime:!0,onChange:function(e){_({from:e[w.name],to:null===m||void 0===m?void 0:m.to})}}),Object(d.jsx)("div",{class:"filterLabel",children:"\xc0"}),Object(d.jsx)(C,{column:w,withTime:!0,onChange:function(e){_({from:null===m||void 0===m?void 0:m.from,to:e[w.name]})}})]}):Object(d.jsxs)(d.Fragment,{children:[Object(d.jsx)("div",{class:"filterLabel",children:"Op\xe9rateur"}),Object(d.jsxs)("select",{onChange:function(e){return O(e.target.value)},children:[Object(d.jsx)("option",{value:"contains",children:"contient"}),Object(d.jsx)("option",{value:"notContains",children:"ne contient pas"}),Object(d.jsx)("option",{value:"startsWith",children:"commence par"}),Object(d.jsx)("option",{value:"endsWith",children:"finit par"}),Object(d.jsx)("option",{value:"is",children:"est"}),Object(d.jsx)("option",{value:"isNot",children:"n'est pas"}),Object(d.jsx)("option",{value:"largerThan",children:"est sup\xe9rieur \xe0"}),Object(d.jsx)("option",{value:"smallerThan",children:"est inf\xe9rieur \xe0"})]}),Object(d.jsx)("div",{class:"filterLabel",children:"Valeur"}),Object(d.jsx)("input",{onChange:function(e){return _(e.target.value)}})]}),Object(d.jsx)("div",{class:"button greenButton",onClick:function(){if(j&&m){var e=null===w||void 0===w?void 0:w.label,t="(".concat((null===w||void 0===w?void 0:w.searchableName)||(null===w||void 0===w?void 0:w.name),")");if("select"===(null===w||void 0===w?void 0:w.dataType)){var c=Array.isArray(null===w||void 0===w?void 0:w.options)?m:w.options[m];n({label:e+" est "+c,query:t+" = '"+m+"'"})}else if("foreign"===(null===w||void 0===w?void 0:w.dataType))n({label:e+" est "+g.current,query:w.name+" = '"+m+"'"});else if("date"===(null===w||void 0===w?void 0:w.dataType)||"datetime"===(null===w||void 0===w?void 0:w.dataType)){var a,r=[];a=m.from&&!m.to?e+" est apr\xe8s "+m.from:m.to&&!m.from?e+" est avant "+m.to:e+" de "+m.from+" \xe0 "+m.to,m.from&&r.push(w.name+" >= '"+m.from+"'"),m.to&&r.push(w.name+" <= '"+m.to+"'"),n({label:a,query:r.join(" AND ")})}else"contains"===p?n({label:e+" contient "+m,query:t+" LIKE '%"+m+"%'"}):"notContains"===p?n({label:e+" ne contient pas "+m,query:t+" NOT LIKE '%"+m+"%'"}):"is"===p?n({label:e+" est "+m,query:t+" = '"+m+"'"}):"isNot"===p?n({label:e+" n'est pas "+m,query:t+" != '"+m+"'"}):"startsWith"===p?n({label:e+" commence par "+m,query:t+" LIKE '"+m+"%'"}):"endsWith"===p?n({label:e+" finit par "+m,query:t+" LIKE '%"+m+"'"}):"largerThan"===p?n({label:e+" sup\xe9rieur \xe0 "+m,query:t+" >= "+m}):"smallerThan"===p&&n({label:e+" inf\xe9rieur \xe0 "+m,query:t+" <= "+m});b(null),_(null),o(!1)}},children:"Ajouter"})]}):null]})})},B=function(e){var t,n,a=e.viewIndex,r=e.selectedRecordIds,i=e.refreshData,o=Object(c.useContext)(u.a),s=o.views[a],j=Object(c.useState)(!1),b=Object(l.a)(j,2),f=b[0],v=b[1];return!o.hideMultiselect&&(!1!==s.canDelete||(null===(t=s.customActions)||void 0===t?void 0:t.length)>0)?Object(d.jsx)(R,{onOutsideClick:function(){return v(!1)},children:Object(d.jsxs)("div",{class:"actionButtonsContainer",children:[Object(d.jsx)("div",{class:"button openBulkActionsButton",onClick:function(){return v(!f)},children:"Actions"}),f?Object(d.jsxs)("div",{class:"bulkActions",children:[null===(n=s.customActions)||void 0===n?void 0:n.map((function(e,t){return Object(d.jsx)("div",{class:"action recordAction",onClick:(n=t,function(){v(!1),_.a.post("customAction",{viewIndex:a,actionIndex:n,selectedRecordIds:r}).then((function(e){e.data.message&&alert(e.data.message),i()})).catch((function(){window.swal({title:"Erreur",text:"L'action a \xe9chou\xe9",dangerMode:!0})}))}),children:e.label});var n})),!1!==s.canDelete?Object(d.jsx)("div",{class:"action recordAction red",onClick:function(){window.swal({title:"\xcates-vous s\xfbr ?",text:"Une fois la suppression confirm\xe9e, il ne sera pas possible de revenir en arri\xe8re.",buttons:["Annuler","Oui"],dangerMode:!0}).then((function(e){e&&_.a.post("deleteRecords",{viewIndex:a,primaryValues:r}).then((function(){i()})).catch((function(){window.swal({title:"Erreur",text:"Suppression impossible",dangerMode:!0})}))}))},children:"Supprimer"}):null]}):null]})}):null},V=n(16),N=function(e,t,n,c){var a="foreign"===e.dataType?n.views.findIndex((function(t){return t.tableName===e.table})):-1;if("foreign"===e.dataType&&a>-1)return e.formatValue?Object(d.jsx)(o.b,{to:"/record/".concat(a,"/").concat(t[e.name]),dangerouslySetInnerHTML:{__html:t["__formatValue-".concat(e.__id__,"__")]}}):e.formattedValue?Object(d.jsx)(o.b,{to:"/record/".concat(a,"/").concat(t[e.name]),children:Object(V.a)(e.formattedValue,t)}):Object(d.jsx)(o.b,{to:"/record/".concat(a,"/").concat(t[e.name]),children:t[e.name]});if(e.showAsPicture){var r=e.baseUrl+t[e.pathField];return t[e.pathField]?Object(d.jsx)("a",{href:r,target:"_blank",children:Object(d.jsx)("img",{src:r,style:{width:c?60:300,height:c?30:150,objectFit:"contain"}})}):null}if(e.formatValue)return Object(d.jsx)("div",{dangerouslySetInnerHTML:{__html:t["__formatValue-".concat(e.__id__,"__")]}});if(e.formattedValue)return Object(d.jsx)("div",{children:Object(V.a)(e.formattedValue,t)});if(e.action){if(e.actionDisplayCondition)if(!Object(V.a)(e.actionDisplayCondition,t))return"";var i=JSON.parse(JSON.stringify(e.data));for(var l in i)i[l]=Object(V.a)(i[l],t);return Object(d.jsx)("div",{class:"actionButton","data-route":'" + column.route + "',"data-data":'" + JSON.stringify(data) + "',children:e.action})}return"tinyint"===e.dataType?Object(d.jsx)("div",{children:1===t[e.name]?"Oui":"Non"}):"color"===e.dataType?Object(d.jsx)("div",{class:"colorPreview",style:{backgroundColor:t[e.name]}}):"richText"===e.dataType?Object(d.jsx)("div",{dangerouslySetInnerHTML:{__html:t[e.htmlField]}}):"select"===e.dataType&&e.options&&e.options.constructor==Object?Object(d.jsx)("div",{children:e.options[t[e.name]]}):Object(d.jsx)("div",{children:t[e.name]})},U=null,W=1,K=[],H=null,J=null,Q="",Y=function(){var e,t,n=Object(s.i)(),a=n.viewIndex,r=n.subviewIndex,i=Object(s.g)(),j=Object(c.useState)(W),b=Object(l.a)(j,2),f=b[0],v=b[1],p=Object(c.useState)(K),O=Object(l.a)(p,2),h=O[0],x=O[1],m=Object(c.useState)(H),g=Object(l.a)(m,2),w=g[0],y=g[1],C=Object(c.useState)(J),I=Object(l.a)(C,2),k=I[0],E=I[1],T=Object(c.useState)(Q),D=Object(l.a)(T,2),M=D[0],A=D[1],S=Object(c.useState)([]),L=Object(l.a)(S,2),R=L[0],V=L[1],Y=Object(c.useState)(null),z=Object(l.a)(Y,2),$=z[0],G=z[1],X=Object(c.useContext)(u.a),Z=X.views[a],ee=null===(e=Z.columns)||void 0===e?void 0:e.filter((function(e){return!e.hideInTable&&!e.hidden}));function te(){G(null),_.a.post("/records",{viewIndex:a,subviewIndex:r,page:f,filters:h.map((function(e){return e.query})),orderBy:w,isDesc:k,query:M}).then((function(e){var t,n;0===(null===(t=e.data)||void 0===t||null===(n=t.records)||void 0===n?void 0:n.length)&&f>1&&v(1),G(e.data)}))}return Object(c.useEffect)((function(){a!==U&&(v(1),A(null),y(null),E(null),A(""),R.length>0&&V([]),h.length>0&&x([]))}),[a]),Object(c.useEffect)((function(){te(),U=a,W=f,Q=M,K=h,H=w,J=k}),[a,r,f,M,h,w,k]),Object(d.jsxs)("div",{class:"view",children:[Object(d.jsxs)("div",{class:"scrollable",children:[Object(d.jsxs)("div",{class:"viewHeader",children:[Object(d.jsx)("div",{class:"viewTitle",children:Z.label}),Object(d.jsxs)("div",{class:"viewHeaderActions",children:[Object(d.jsxs)("div",{class:"searchBarContainer",children:[Object(d.jsx)("input",{type:"text",placeholder:"Rechercher",class:"searchBar",value:M,onChange:function(e){return A(e.target.value)}}),Object(d.jsx)("div",{class:"searchBarIcon",children:Object(d.jsx)("i",{class:"fa fa-search"})})]}),Object(d.jsx)(B,{viewIndex:a,selectedRecordIds:R,refreshData:te}),Object(d.jsx)(q,{view:Z,refreshData:te,onAddFilter:function(e){return x([].concat(Object(P.a)(h),[e]))}}),!1!==Z.canExport?Object(d.jsx)(F,{view:Z,viewIndex:a,subviewIndex:r,currentFilters:h,orderBy:w,isDesc:k,query:M}):null,Z.canCreate?Object(d.jsx)(o.b,{to:"/createRecord/".concat(a),children:Object(d.jsx)("div",{class:"plusButton",children:Object(d.jsx)("i",{class:"fa fa-plus"})})}):null]})]}),h.length>0?Object(d.jsx)("div",{class:"filtersContainer",children:h.map((function(e,t){return Object(d.jsxs)("div",{class:"filterItem",children:[Object(d.jsx)("div",{class:"filterItemLabel",children:e.label}),Object(d.jsx)("div",{class:"filterRemove",onClick:function(){x(h.filter((function(t){return t.query!==e.query})))},children:Object(d.jsx)("i",{class:"fa fa-times"})})]},t)}))}):null,Object(d.jsxs)("table",{class:"table",children:[Object(d.jsx)("thead",{children:Object(d.jsxs)("tr",{children:[X.hideMultiselect?null:Object(d.jsx)("th",{}),ee.map((function(e,t){var n="foreign"===e.dataType||"datalist"===e.dataType?e.formattedValue:e.sortName||e.name;return Object(d.jsxs)("th",{class:n?"sortable":"",onClick:function(){n&&(y(n),E(w===n&&!k))},children:[e.label,n?Object(d.jsx)("div",{class:"columnSortIcon",children:Object(d.jsx)("i",{class:"fas fa-sort".concat(!0===k&&n===w?"-down":!1===k&&n===w?"-up":"")})}):null]},t)}))]})}),Object(d.jsxs)("tbody",{children:[$?null:Array.from({length:10}).map((function(e,t){return Object(d.jsx)("tr",{class:"record",children:Array.from({length:ee.length+(X.hideMultiselect?0:1)}).map((function(e,t){return Object(d.jsx)("td",{children:" "},t)}))},t)})),null===$||void 0===$||null===(t=$.records)||void 0===t?void 0:t.map((function(e){var t=e[Z.primaryId];return Object(d.jsxs)("tr",{class:"record ".concat(Z.notClickable?"nonClickableRow":""),onClick:function(e){"A"!=e.target.tagName?Z.notClickable||(Z.clickToEdit?i.push("/editRecord/".concat(a,"/").concat(t)):i.push("/record/".concat(a,"/").concat(t))):e.stopPropagation()},children:[X.hideMultiselect?null:Object(d.jsx)("td",{class:"checkboxParent",onClick:function(e){V(R.includes(t)?R.filter((function(e){return e!==t})):[].concat(Object(P.a)(R),[t])),e.stopPropagation()},children:Object(d.jsx)("div",{class:"checkbox ".concat(R.includes(t)?"checked":"")})}),ee.map((function(t,n){return Object(d.jsx)("td",{children:N(t,e,X,!0)},n)}))]},t)}))]})]})]}),Object(d.jsxs)("div",{class:"tableFooter",children:[Object(d.jsxs)("div",{class:"tableCounter",children:[(null===$||void 0===$?void 0:$.count)||"-"," ",Z.label]}),Object(d.jsxs)("div",{class:"paginator",children:[Object(d.jsx)("div",{class:"paginatorLeft",onClick:function(){return v(Math.max(1,f-1))},children:Object(d.jsx)("i",{class:"fas fa-caret-left"})}),Object(d.jsxs)("div",{class:"paginatorNumber",children:[f," / ",$&&$.count?Math.ceil($.count/(Z.limit||10)):"-"]}),Object(d.jsx)("div",{class:"paginatorRight",onClick:function(){return v(Math.min(f+1,Math.ceil($.count/(Z.limit||10))))},children:Object(d.jsx)("i",{class:"fas fa-caret-right"})})]})]})]})},z=function(e){var t,n,a=e.viewIndex,r=e.record,i=e.refreshData,o=Object(c.useContext)(u.a).views[a],j=Object(c.useState)(!1),b=Object(l.a)(j,2),f=b[0],v=b[1],p=Object(s.g)(),x=function(){var e=Object(h.a)(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.swal({title:"\xcates-vous s\xfbr ?",text:"Une fois la suppression confirm\xe9e, il ne sera pas possible de revenir en arri\xe8re.",buttons:["Annuler","Oui"],dangerMode:!0});case 2:if(!e.sent){e.next=14;break}return o.deleteCallback&&_.a.post(o.deleteCallback,{id:r[o.primaryId],data:r}),e.prev=5,e.next=8,_.a.post("/deleteRecord",{viewIndex:a,primaryValue:r[o.primaryId]});case 8:p.push("/records/".concat(a)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(5),window.swal({title:"Erreur",text:"Suppression impossible",dangerMode:!0});case 14:case"end":return e.stop()}}),e,null,[[5,11]])})));return function(){return e.apply(this,arguments)}}();return!0===o.canDuplicate||!1!==o.canDelete||(null===(t=o.customActions)||void 0===t?void 0:t.length)>0?Object(d.jsx)(R,{onOutsideClick:function(){return v(!1)},children:Object(d.jsxs)("div",{class:"actionButtonsContainer",children:[Object(d.jsx)("div",{class:"button openActionsButton",onClick:function(){return v(!f)},children:"Actions"}),f?Object(d.jsxs)("div",{class:"actions",children:[null===(n=o.customActions)||void 0===n?void 0:n.map((function(e,t){return Object(d.jsx)("div",{class:"action recordAction",onClick:(n=t,function(){v(!1),_.a.post("customAction",{viewIndex:a,actionIndex:n,selectedRecordIds:[r[o.primaryId]]}).then((function(e){e.data.message&&alert(e.data.message),i()})).catch((function(){window.swal({title:"Erreur",text:"L'action a \xe9chou\xe9",dangerMode:!0})}))}),children:e.label});var n})),!0===o.canDuplicate?Object(d.jsx)("div",{class:"action recordAction duplicateRecord",children:"Dupliquer"}):null,!1!==o.canDelete?Object(d.jsx)("div",{class:"action recordAction red",onClick:x,children:"Supprimer"}):null]}):null]})}):null},$=function(){var e=Object(s.g)();return Object(d.jsx)("div",{class:"button backButton",onClick:function(){return e.goBack()},children:"Retour"})},G=function(e){var t=e.record,n=e.panel;return Object(d.jsx)("div",{class:"downloadPanelButton",onClick:function(){_.a.get("/customQuery",{params:{query:n.query||Object(V.a)(n.formattedQuery,t),primaryValue:2630}}).then((function(e){var t=e.data,c=[];c.push(Object.keys(t[0]).filter((function(e){return e!==n.primaryId})).join(","));var a,r=Object(x.a)(t);try{var i=function(){var e=a.value;c.push(Object.keys(e).filter((function(e){return e!==n.primaryId})).map((function(t){return n.formattedValues&&t in n.formattedValues?Object(V.a)(n.formattedValues[t],e):e[t]})).join(","))};for(r.s();!(a=r.n()).done;)i()}catch(l){r.e(l)}finally{r.f()}window.download(c.join("\r\n"),n.label+".csv")}))},children:Object(d.jsx)("i",{class:"fa fa-cloud-download"})})},X=function(e){var t=e.panel,n=e.record,a=e.view,r=e.index,i=Object(c.useState)(null),o=Object(l.a)(i,2),j=o[0],b=o[1],f=Object(s.g)(),v=Object(s.i)().viewIndex,p=Object(c.useContext)(u.a);Object(c.useEffect)((function(){x()}),[n]);var x=function(){_.a.get("/customQuery",{params:{viewIndex:v,panelIndex:r,query:t.query||Object(V.a)(t.formattedQuery,n),primaryValue:n[a.primaryId]}}).then((function(e){b(e.data)}))},m=function(){var e=Object(h.a)(O.a.mark((function e(n){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.swal({title:"\xcates-vous s\xfbr ?",text:"Une fois la suppression confirm\xe9e, il ne sera pas possible de revenir en arri\xe8re.",buttons:["Annuler","Oui"],dangerMode:!0});case 2:if(!e.sent){e.next=13;break}return e.prev=4,e.next=7,_.a.post("/deleteRecordFromPanel",{viewIndex:v,panelId:t.__id__,primaryValue:n[t.primaryId]});case 7:x(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),window.swal({title:"Erreur",text:"Suppression impossible",dangerMode:!0});case 13:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(t){return e.apply(this,arguments)}}();return Object(d.jsx)("div",{children:(null===j||void 0===j?void 0:j.length)>0?Object(d.jsxs)("table",{class:"table panelTable ".concat(t.folded?"folded":""),children:[Object(d.jsx)("thead",{children:Object(d.jsxs)("tr",{children:[Object.keys(j[0]).filter((function(e){return e!==t.primaryId})).map((function(e){return Object(d.jsx)("th",{children:e},e)})),t.canDelete?Object(d.jsx)("th",{}):null]})}),Object(d.jsx)("tbody",{children:j.map((function(e){return Object(d.jsxs)("tr",{class:"record ".concat(t.canShow?"":"nonClickableRow"),onClick:function(){var n=p.views.findIndex((function(e){return"table"===e.type&&e.tableName===t.tableName}));t.canShow&&f.push("/record/".concat(n,"/").concat(e[t.primaryId]))},children:[Object.keys(e).filter((function(e){return e!==t.primaryId})).map((function(n){return Object(d.jsx)("td",{children:Object(d.jsx)("div",{dangerouslySetInnerHTML:{__html:t.formattedValues&&n in t.formattedValues?Object(V.a)(t.formattedValues[n],e):e[n]}})},n)})),t.canDelete?Object(d.jsx)("td",{class:"deleteIconCell",children:Object(d.jsx)("div",{class:"deleteIcon",onClick:function(t){m(e),t.stopPropagation()},children:Object(d.jsx)("i",{class:"fa fa-minus"})})}):null]})}))})]}):0===(null===j||void 0===j?void 0:j.length)?Object(d.jsx)("div",{class:"noData panelTable ".concat(t.folded?"folded":""),children:"Aucune donn\xe9e"}):null})},Z=function(e){var t=e.panel,n=e.record,a=e.view,r=Object(c.useState)(null),i=Object(l.a)(r,2),o=i[0],u=i[1],j=(Object(s.g)(),Object(s.i)().viewIndex);Object(c.useEffect)((function(){b()}),[t.query,n]);var b=function(){_.a.get("/customQuery",{params:{query:t.query,primaryValue:n[a.primaryId]}}).then((function(e){u(e.data)}))},f=function(){var e=Object(h.a)(O.a.mark((function e(n){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.swal({title:"\xcates-vous s\xfbr ?",text:"Une fois la suppression confirm\xe9e, il ne sera pas possible de revenir en arri\xe8re.",buttons:["Annuler","Oui"],dangerMode:!0});case 2:if(!e.sent){e.next=13;break}return e.prev=4,e.next=7,_.a.post("/deleteRecordFromPanel",{viewIndex:j,panelId:t.__id__,primaryValue:n[t.primaryId]});case 7:b(),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(4),window.swal({title:"Erreur",text:"Suppression impossible",dangerMode:!0});case 13:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(t){return e.apply(this,arguments)}}(),v=t.pathField||"Path";return Object(d.jsx)("div",{children:(null===o||void 0===o?void 0:o.length)>0?Object(d.jsx)("div",{class:"gallery",children:o.map((function(e){return Object(d.jsxs)("div",{class:"galleryPicture",children:[t.canDelete?Object(d.jsx)("div",{class:"deleteIcon",onClick:function(t){f(e),t.stopPropagation()},children:Object(d.jsx)("i",{class:"fa fa-minus"})}):null,Object(d.jsx)("a",{href:t.baseUrl+e[v],target:"_blank",children:Object(d.jsx)("img",{src:t.baseUrl+e[v],style:{width:"100%",height:150,objectFit:t.objectFit||"cover"},onerror:"this.style.height = 0"})})]},e[v])}))}):0===(null===o||void 0===o?void 0:o.length)?Object(d.jsx)("div",{class:"noData panelTable ".concat(t.folded?"folded":""),children:"Aucune donn\xe9e"}):null})},ee=function(e){var t=e.panel,n=e.record,a=e.view,r=Object(c.useRef)();Object(c.useEffect)((function(){window.google&&n&&(t.query?_.a.get("/customQuery",{query:t.query,primaryValue:n[a.primaryId]}).then((function(e){var n,c=null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n[0];c&&i(c.Lat,c.Lng,t.zoom||12)})):i(n[t.latitudeField],n[t.longitudeField],t.zoom||12))}),[n,window.google]);var i=function(e,t,n){var c=new window.google.maps.Map(r.current,{zoom:n,center:{lat:e,lng:t}});new window.google.maps.Marker({position:{lat:e,lng:t},map:c})};return Object(d.jsx)("div",{class:"map",ref:r})},te=function(){var e,t=Object(c.useContext)(u.a),n=Object(s.i)(),a=n.viewIndex,r=n.recordId,i=Object(c.useState)(null),j=Object(l.a)(i,2),b=j[0],f=j[1],v=t.views[a],p=null===(e=v.columns)||void 0===e?void 0:e.filter((function(e){return!e.hidden}));Object(c.useEffect)((function(){O()}),[a,r]);var O=function(){_.a.get("/record",{params:{viewIndex:a,recordId:r}}).then((function(e){f(e.data)}))};return Object(d.jsxs)("div",{class:"view backgroundBlue",children:[Object(d.jsxs)("div",{class:"viewHeader",children:[Object(d.jsx)("div",{class:"viewTitle",children:v.label}),Object(d.jsxs)("div",{class:"viewHeaderActions",children:[Object(d.jsx)($,{}),Object(d.jsx)(z,{viewIndex:a,record:b,refreshData:O}),!1!==v.canEdit?Object(d.jsx)(o.b,{to:"/editRecord/".concat(a,"/").concat(r),children:Object(d.jsx)("div",{class:"button greenButton recordAction",children:"Modifier"})}):null]})]}),Object(d.jsx)("div",{class:"paddedView",children:Object(d.jsxs)("div",{class:"showContainer",children:[Object(d.jsxs)("div",{class:"panel detailsPanel",children:[Object(d.jsx)("div",{class:"panelTitle",children:"D\xe9tails"}),b?p.map((function(e,n){return Object(d.jsxs)("div",{class:"showRecordField",children:[Object(d.jsx)("div",{class:"formLabel",children:e.label}),Object(d.jsx)("div",{class:"formValue",children:N(e,b,t,!1)||"-"})]},n)})):null]}),v.recordViewPanels&&b?Object(d.jsx)("div",{class:"recordViewPanels",children:v.recordViewPanels.map((function(e,t){return Object(d.jsxs)("div",{class:"panel",children:[Object(d.jsxs)("div",{class:"panelHeader",children:[Object(d.jsx)("div",{class:"viewTitle",children:e.label}),Object(d.jsxs)("div",{class:"viewHeaderActions",children:[e.folded?Object(d.jsx)("div",{class:"button smallButton unfoldPanel",children:"Afficher"}):null,e.canCreate?Object(d.jsx)(o.b,{to:"/createRecord/".concat(a,"/").concat(t,"/").concat(r),children:Object(d.jsx)("div",{class:"plusButton",children:Object(d.jsx)("i",{class:"fa fa-plus"})})}):null,e.canDownload&&"table"===e.type?Object(d.jsx)(G,{record:b,panel:e}):null]})]}),"table"===e.type?Object(d.jsx)(X,{record:b,panel:e,view:v,index:t}):null,"gallery"===e.type?Object(d.jsx)(Z,{record:b,panel:e,view:v,index:t}):null,"map"===e.type?Object(d.jsx)(ee,{record:b,panel:e,view:v,index:t}):null]},t)}))}):null]})})]})},ne=n.p+"static/media/logo.e407b9ca.png",ce=function(e){var t=e.setIsAuthenticated,n=Object(c.useState)(""),a=Object(l.a)(n,2),r=a[0],i=a[1],o=Object(c.useState)(""),s=Object(l.a)(o,2),u=s[0],j=s[1],b=function(){var e=Object(h.a)(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_.a.post("/login",{username:r,password:u});case 2:e.sent.data.success&&t(!0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return Object(d.jsx)("div",{class:"loginPanelBackground",children:Object(d.jsxs)("div",{class:"loginPanel",children:[Object(d.jsx)("div",{class:"loginLogoContainer",children:Object(d.jsx)("img",{class:"loginLogo",src:ne})}),Object(d.jsx)("label",{children:"Nom d'utilisateur"}),Object(d.jsx)("input",{type:"text",name:"username",onChange:function(e){return i(e.target.value)}}),Object(d.jsx)("label",{children:"Mot de passe"}),Object(d.jsx)("input",{type:"password",name:"password",onChange:function(e){return j(e.target.value)}}),Object(d.jsx)("button",{class:"button greenButton fullWidth",onClick:b,children:"Se connecter"})]})})},ae=function(){var e=Object(c.useContext)(u.a),t=Object(s.i)().viewIndex,n=e.views[t];return Object(d.jsx)("div",{class:"view",children:Object(d.jsx)("iframe",{src:n.src})})},re=n(44),ie=n(40),le=["componentPath","children"],oe={react:function(){return{exports:a.a}},axios:function(){return{exports:_.a}},"styled-components":function(){return{exports:ie.a}}};function se(e,t,n){var c=Object.create(n);return function n(a){if(a in c||t!==a){if(!(a in c))throw"Module '".concat(a,"' not found")}else{var r={exports:{}};c[a]=function(){return r},Function("require, exports, module",e)(n,r.exports,r)}return c[a]().exports}(t)}function ue(e){return de.apply(this,arguments)}function de(){return(de=Object(h.a)(O.a.mark((function e(t){var n,c;return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_.a.get("/customComponent",{params:{componentPath:t}});case 3:return n=e.sent,c=n.data,e.abrupt("return",{default:se(c,"__moduleName__",oe)});case 8:return e.prev=8,e.t0=e.catch(0),console.error(e.t0),e.abrupt("return",{default:function(){return Object(d.jsx)("div",{children:"Erreur de rendu"})}});case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))).apply(this,arguments)}var je=function(e){var t=e.componentPath,n=e.children,r=Object(re.a)(e,le),i=Object(c.useMemo)((function(){return a.a.lazy(Object(h.a)(O.a.mark((function e(){return O.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",ue(t));case 1:case"end":return e.stop()}}),e)}))))}),[t]);return Object(d.jsx)(c.Suspense,{fallback:null,children:Object(d.jsx)(i,Object(v.a)(Object(v.a)({},r),{},{children:n}))})},be=a.a.memo(je),fe=function(){var e=Object(c.useContext)(u.a),t=Object(s.i)().viewIndex,n=e.views[t].componentPath;return Object(d.jsx)(be,{componentPath:n})};_.a.defaults.withCredentials=!0,_.a.defaults.baseURL="/_HOMEPAGE_/api";var ve=function(){var e=Object(c.useState)(null),t=Object(l.a)(e,2),n=t[0],a=t[1];return Object(c.useEffect)((function(){_.a.get("/isAuthenticated").then((function(e){a(e.data.isAuthenticated)}))}),[]),Object(d.jsx)("div",{id:"body",children:!0===n?Object(d.jsx)(u.b,{children:Object(d.jsxs)(o.a,{basename:"/_HOMEPAGE_",children:[Object(d.jsx)(b,{}),Object(d.jsxs)(s.d,{children:[Object(d.jsx)(s.b,{path:"/records/:viewIndex/:subviewIndex?",children:Object(d.jsx)(Y,{})}),Object(d.jsx)(s.b,{path:"/record/:viewIndex/:recordId",children:Object(d.jsx)(te,{})}),Object(d.jsx)(s.b,{path:"/editRecord/:viewIndex/:recordId",children:Object(d.jsx)(L,{})}),Object(d.jsx)(s.b,{path:"/createRecord/:viewIndex/:panelIndex?/:recordId?",children:Object(d.jsx)(S,{})}),Object(d.jsx)(s.b,{path:"/iframe/:viewIndex",children:Object(d.jsx)(ae,{})}),Object(d.jsx)(s.b,{path:"/customView/:viewIndex",children:Object(d.jsx)(fe,{})}),Object(d.jsx)(s.b,{path:"/",children:Object(d.jsx)(f,{})})]})]})}):!1===n?Object(d.jsx)(ce,{setIsAuthenticated:a}):Object(d.jsx)("div",{class:"appLoading",children:Object(d.jsx)("i",{class:"fa fa-circle-notch fa-spin"})})})};i.a.render(Object(d.jsx)(a.a.StrictMode,{children:Object(d.jsx)(ve,{})}),document.getElementById("root"))}},[[75,1,2]]]);
2
+ //# sourceMappingURL=main.4ce5340d.chunk.js.map