infinity-forge 2.7.3 → 2.7.4

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 (24) hide show
  1. package/dist/infinity-forge.css +1 -1
  2. package/dist/reset.css +1 -1
  3. package/dist/system/presentation/context/auth/components/private-page/index.js +0 -1
  4. package/dist/system/presentation/context/auth/components/private-page/index.js.map +1 -1
  5. package/dist/test/index.js +7 -1
  6. package/dist/test/index.js.map +1 -1
  7. package/dist/ui/components/form/input-file/hooks/use-file.js +10 -5
  8. package/dist/ui/components/form/input-file/hooks/use-file.js.map +1 -1
  9. package/dist/ui/components/form/input-file/render-files/file-item/styles.js +1 -1
  10. package/dist/ui/components/form/input-file/render-files/file-item/styles.js.map +1 -1
  11. package/dist/ui/contexts/dynamic-sections/context.d.ts +2 -1
  12. package/dist/ui/contexts/dynamic-sections/context.js +10 -5
  13. package/dist/ui/contexts/dynamic-sections/context.js.map +1 -1
  14. package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.d.ts +1 -1
  15. package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.js +3 -4
  16. package/dist/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.js.map +1 -1
  17. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js +1 -1
  18. package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js.map +1 -1
  19. package/dist/ui/contexts/i18n/context.js +0 -1
  20. package/dist/ui/contexts/i18n/context.js.map +1 -1
  21. package/dist/ui/contexts/i18n/edit-mode/index.js +9 -18
  22. package/dist/ui/contexts/i18n/edit-mode/index.js.map +1 -1
  23. package/dist/ui/styles/reset.css +6 -0
  24. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
1
  a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
2
- *,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}
2
+ *,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
package/dist/reset.css CHANGED
@@ -1 +1 @@
1
- *,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}
1
+ *,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}#__next{position:relative;z-index:1}
@@ -72,7 +72,6 @@ function PrivatePage(_a) {
72
72
  var _b = (0, react_1.useState)(false), interceptorIsReady = _b[0], setInterceptorIsReady = _b[1];
73
73
  var router = (0, router_1.useRouter)();
74
74
  var _c = (0, context_1.useAuthAdmin)(), user = _c.user, roleUser = _c.roleUser, signOut = _c.signOut, ForbiddenCompoent = _c.ForbiddenCompoent;
75
- console.log("i18nRoles", roles, roleUser);
76
75
  var hasAccess = roles && roles.length > 0 ? roles.includes(roleUser) : true;
77
76
  (0, react_1.useEffect)(function () {
78
77
  var _a, _b;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/context/auth/components/private-page/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,sCAAuC;AACvC,6CAAyC;AAEzC,2BAA2C;AAE3C,kCAAgC;AAChC,yCAA4C;AAI5C,SAAgB,WAAW,CAAC,EAA6C;QAA3C,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA;IACjD,IAAA,KAA8C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA5D,kBAAkB,QAAA,EAAE,qBAAqB,QAAmB,CAAA;IAEnE,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IACpB,IAAA,KAAiD,IAAA,sBAAY,GAAE,EAA7D,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,iBAAiB,uBAAmB,CAAA;IAErE,O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U,CAAC,0CAAE,YAAY,0CAAE,SAAS,CAAC,CAAC,CAAC,aAAK,CAAA;IAE1G,IAAM,OAAO,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,kBAAkB,IAAI,CAAC,MAAM,CAAC,OAAO,CAAE,IAAG,OAAO,CAAA;IAC5E,IAAM,UAAU,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,OAAO,IAAI,kBAAkB,IAAI,CAAC,OAAO,CAAA;IAE5E,OAAO,CACL,6DACG,OAAO,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAEnD,UAAU,IAAI,uBAAC,cAAc,KAAG,IAChC,CACJ,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/system/presentation/context/auth/components/private-page/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA2C;AAE3C,sCAAuC;AACvC,6CAAyC;AAEzC,2BAA2C;AAE3C,kCAAgC;AAChC,yCAA4C;AAI5C,SAAgB,WAAW,CAAC,EAA6C;QAA3C,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,UAAU,gBAAA;IACjD,IAAA,KAA8C,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAA5D,kBAAkB,QAAA,EAAE,qBAAqB,QAAmB,CAAA;IAEnE,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IACpB,IAAA,KAAiD,IAAA,sBAAY,GAAE,EAA7D,IAAI,UAAA,EAAE,QAAQ,cAAA,EAAE,OAAO,aAAA,EAAE,iBAAiB,uBAAmB,CAAA;IAErE,IAAM,SAAS,GAAG,KAAK,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;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AAI,MAAM,CAAC,OAAO,IAAI,kBAAkB,IAAI,CAAC,OAAO,CAAA;IAE5E,OAAO,CACL,6DACG,OAAO,IAAI,uBAAC,kBAAa,IAAC,IAAI,EAAE,EAAE,EAAE,KAAK,EAAC,MAAM,GAAG,EAEnD,UAAU,IAAI,uBAAC,cAAc,KAAG,IAChC,CACJ,CAAA;AACH,CAAC"}
@@ -9,7 +9,13 @@ function HomePage() {
9
9
  refSection: 'test',
10
10
  fields: {},
11
11
  }), Section = _b.Section, title = _b.title, images = _b.images;
12
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(Section, { children: [title, (0, jsx_runtime_1.jsx)("img", { height: 100, width: 100, src: (_a = images === null || images === void 0 ? void 0 : images[0]) === null || _a === void 0 ? void 0 : _a.url, alt: '' })] }) }));
12
+ var Section2 = (0, index_1.useDynamicSection)({
13
+ refSection: 'test1',
14
+ fields: {
15
+ images: {}
16
+ },
17
+ });
18
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(Section, { children: [title, (0, jsx_runtime_1.jsx)("img", { height: 100, width: 100, src: (_a = images === null || images === void 0 ? void 0 : images[0]) === null || _a === void 0 ? void 0 : _a.url, alt: '' })] }), (0, jsx_runtime_1.jsx)(Section2.Section, { children: "a" })] }));
13
19
  }
14
20
  exports.HomePage = HomePage;
15
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AAAA,kCAA8D;AAE9D,SAAgB,QAAQ;;IAChB,IAAA,KAA6B,IAAA,yBAAiB,EAAC;QACnD,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,EAAE;KACX,CAAC,EAHM,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAG5B,CAAA;IAEF,OAAO,CACL,2DACE,wBAAC,OAAO,eACL,KAAK,EAEN,gCAAK,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,0CAAE,GAAG,EAAE,GAAG,EAAC,EAAE,GAAG,IACtD,GACT,CACJ,CAAA;AACH,CAAC;AAfD,4BAeC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AAAA,kCAA8D;AAE9D,SAAgB,QAAQ;;IAChB,IAAA,KAA6B,IAAA,yBAAiB,EAAC;QACnD,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,EAAE;KACX,CAAC,EAHM,OAAO,aAAA,EAAE,KAAK,WAAA,EAAE,MAAM,YAG5B,CAAA;IAEF,IAAM,QAAQ,GAAG,IAAA,yBAAiB,EAAC;QACjC,UAAU,EAAE,OAAO;QACnB,MAAM,EAAE;YACN,MAAM,EAAE,EACP;SACF;KACF,CAAC,CAAA;IAGF,OAAO,CACL,6DACE,wBAAC,OAAO,eACL,KAAK,EAEN,gCAAK,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,0CAAE,GAAG,EAAE,GAAG,EAAC,EAAE,GAAG,IACtD,EAEV,uBAAC,QAAQ,CAAC,OAAO,oBAEE,IAClB,CACJ,CAAA;AACH,CAAC;AA5BD,4BA4BC"}
@@ -62,8 +62,14 @@ var formik_1 = require("formik");
62
62
  var ui_1 = require("../../../../../ui/index.js");
63
63
  var use_file_elements_1 = require("./use-file-elements.js");
64
64
  function useFile(props) {
65
- var _a = (0, react_1.useState)(false), loading = _a[0], setLoading = _a[1];
66
- var _b = (0, formik_1.useField)({ name: (props === null || props === void 0 ? void 0 : props.name) || "" }), field = _b[0], _ = _b[1], handlers = _b[2];
65
+ var _a = (0, react_1.useState)(''), idFile = _a[0], setIdFile = _a[1];
66
+ (0, react_1.useEffect)(function () {
67
+ if (!idFile) {
68
+ setIdFile((0, ui_1.uid)(10));
69
+ }
70
+ }, [idFile]);
71
+ var _b = (0, react_1.useState)(false), loading = _b[0], setLoading = _b[1];
72
+ var _c = (0, formik_1.useField)({ name: (props === null || props === void 0 ? void 0 : props.name) || '' }), field = _c[0], _ = _c[1], handlers = _c[2];
67
73
  function convertToFileSystemType(file) {
68
74
  return {
69
75
  id: Date.now(),
@@ -82,14 +88,14 @@ function useFile(props) {
82
88
  case 0:
83
89
  files = event.currentTarget.files;
84
90
  if (!props.isLocalFile) return [3 /*break*/, 1];
85
- console.log("files", files);
91
+ console.log('files', files);
86
92
  fileSystemTypes = Array.from(files).map(convertToFileSystemType);
87
93
  console.log(props.isAccumalativeFile, field.value);
88
94
  if (props.isAccumalativeFile && field.value) {
89
95
  handlers.setValue(__spreadArray(__spreadArray([], field.value, true), fileSystemTypes, true));
90
96
  }
91
97
  else {
92
- console.log(fileSystemTypes, "fileSystem");
98
+ console.log(fileSystemTypes, 'fileSystem');
93
99
  handlers.setValue(fileSystemTypes);
94
100
  }
95
101
  return [3 /*break*/, 3];
@@ -106,7 +112,6 @@ function useFile(props) {
106
112
  });
107
113
  });
108
114
  }
109
- var idFile = (0, ui_1.uid)(10);
110
115
  var fileState = { idFile: idFile, field: field, handlers: handlers, loading: loading, setLoading: setLoading, onChangeInputFile: onChangeInputFile };
111
116
  var fileElements = (0, use_file_elements_1.useFileElements)({ fileProps: props, fileState: fileState });
112
117
  return __assign(__assign({}, fileState), fileElements);
@@ -1 +1 @@
1
- {"version":3,"file":"use-file.js","sourceRoot":"","sources":["../../../../../../src/ui/components/form/input-file/hooks/use-file.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAEhC,iCAAoE;AAGpE,2BAAkD;AAElD,yDAAqD;AAWrD,SAAgB,OAAO,CAAC,KAAiB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,CAAC,CAAA;wBACpC,CAAC;;;wBAED,UAAU,CAAC,IAAI,CAAC,CAAA;wBAEH,qBAAM,IAAA,eAAU,EAAC,EAAE,KAAK,OAAA,EAAE,CAAC,EAAA;;wBAAlC,IAAI,GAAG,SAA2B;wBAExC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;wBAEvB,UAAU,CAAC,KAAK,CAAC,CAAA;;;;;;KAEpB;IAED,IAAM,SAAS,GAAG,EAAE,MAAM,QAAA,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,iBAAiB,mBAAA,EAAE,CAAA;IAErF,IAAM,YAAY,GAAG,IAAA,mCAAe,EAAC,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,WAAA,EAAE,CAAC,CAAA;IAErE,6BAAY,SAAS,GAAK,YAAY,EAAE;AAC1C,CAAC;AAvDD,0BAuDC"}
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
10
  exports.FileItem = void 0;
11
11
  var styled_components_1 = __importDefault(require("styled-components"));
12
- exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n \n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n \n .left {\n display: flex;\n flex-direction: column;\n\n .file-nam {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
12
+ exports.FileItem = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-name {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 130px;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"], ["\n display: flex;\n gap: 15px;\n margin-bottom: 15px;\n\n .image {\n height: 90px;\n width: 90px;\n border-radius: 5px;\n border: 1px solid #aaa;\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n\n img {\n object-fit: contain;\n height: 100%;\n width: 100%;\n }\n }\n\n .text {\n width: calc(100% - 105px);\n\n h3 {\n display: flex;\n justify-content: space-between;\n padding-top: 5px;\n gap: 10px;\n\n .left {\n display: flex;\n flex-direction: column;\n\n .file-name {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n max-width: 130px;\n }\n }\n\n .size {\n display: flex;\n flex-direction: column;\n gap: 3px;\n\n span {\n display: flex;\n gap: 3px;\n\n svg {\n width: 14px;\n height: auto;\n fill: #000;\n }\n }\n }\n }\n\n .actions {\n display: flex;\n gap: 10px;\n margin-top: 15px;\n\n > div > label {\n border: 0;\n padding: 0;\n height: unset;\n margin: 0;\n display: inline-block;\n\n &:hover {\n background-color: transparent;\n }\n }\n\n .action-button {\n padding: 0;\n border: 0;\n width: 30px;\n height: 30px;\n border-radius: 5px;\n background: #e1e1e1;\n color: #828282;\n cursor: pointer;\n padding: 8px;\n display: flex;\n transition: 0.3s;\n\n &:hover {\n background-color: #cbcaca;\n }\n\n svg {\n width: 100%;\n height: auto;\n fill: currentColor;\n }\n }\n }\n }\n\n &:last-child {\n margin-bottom: 0;\n }\n"])));
13
13
  var templateObject_1;
14
14
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,29DAAA,w5DA4GpC,KAAA"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../../../src/ui/components/form/input-file/render-files/file-item/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,QAAQ,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,m/DAAA,g7DA6GpC,KAAA"}
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { DynamicSection } from '../../../system/index.js';
3
- import { FetcherParams } from "../../../ui/index.js";
3
+ import { FetcherParams } from '../../../ui/index.js';
4
4
  declare function DynamicSectionProvider({ children, sections, }: {
5
5
  sections: DynamicSection[];
6
6
  children: React.ReactNode;
@@ -8,5 +8,6 @@ declare function DynamicSectionProvider({ children, sections, }: {
8
8
  declare function useDynamicSectionContext(): {
9
9
  sections: DynamicSection[];
10
10
  mutate: (params?: FetcherParams) => void;
11
+ isEditMode: boolean;
11
12
  };
12
13
  export { DynamicSectionProvider, useDynamicSectionContext };
@@ -56,28 +56,33 @@ var ui_1 = require("../../../ui/index.js");
56
56
  var dynamicSectionContext = (0, react_1.createContext)({
57
57
  sections: [],
58
58
  mutate: function () { },
59
+ isEditMode: false,
59
60
  });
60
61
  function DynamicSectionProvider(_a) {
61
62
  var _this = this;
62
63
  var children = _a.children, _b = _a.sections, sections = _b === void 0 ? [] : _b;
64
+ var user = (0, system_1.useAuthAdmin)().user;
63
65
  var router = (0, router_1.useRouter)();
64
- var isEditMode = router.isReady && router.query.editMode === "true";
66
+ var hasUser = !!user;
67
+ var isEditMode = router.isReady && (router.query.editMode === 'true' || router.query.editMode === 'false') && hasUser;
65
68
  var _c = (0, ui_1.useQuery)({
66
- queryKey: "RemoteDynamicSection_loadAll",
69
+ queryKey: 'RemoteDynamicSection_loadAll',
67
70
  queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
68
71
  var response;
69
72
  return __generator(this, function (_a) {
70
73
  switch (_a.label) {
71
- case 0: return [4 /*yield*/, system_1.container.get(system_1.Types.RemoteDynamicSection).loadAll(__assign(__assign({}, (0, ui_1.getPathnameRef)(undefined, router)), { isEditMode: true }))];
74
+ case 0: return [4 /*yield*/, system_1.container
75
+ .get(system_1.Types.RemoteDynamicSection)
76
+ .loadAll(__assign(__assign({}, (0, ui_1.getPathnameRef)(undefined, router)), { isEditMode: true }))];
72
77
  case 1:
73
78
  response = _a.sent();
74
79
  return [2 /*return*/, response];
75
80
  }
76
81
  });
77
82
  }); },
78
- enabled: isEditMode
83
+ enabled: isEditMode,
79
84
  }), data = _c.data, isFetching = _c.isFetching, mutate = _c.mutate;
80
- return ((0, jsx_runtime_1.jsxs)(dynamicSectionContext.Provider, { value: { sections: isEditMode ? data : sections, mutate: mutate }, children: [isFetching && isEditMode && data && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { color: '#000', size: 30, hasOpacity: true }), children] }));
85
+ return ((0, jsx_runtime_1.jsxs)(dynamicSectionContext.Provider, { value: { isEditMode: isEditMode, sections: isEditMode && Array.isArray(data) && data.length > 0 ? data : sections, mutate: mutate }, children: [isFetching && isEditMode && data && (0, jsx_runtime_1.jsx)(ui_1.LoadingScreen, { color: '#000', size: 30, hasOpacity: true }), children] }));
81
86
  }
82
87
  exports.DynamicSectionProvider = DynamicSectionProvider;
83
88
  function useDynamicSectionContext() {
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,mCAAkF;AAClF,2BAA8F;AAE9F,IAAM,qBAAqB,GAAG,IAAA,qBAAa,EAA2E;IACpH,QAAQ,EAAE,EAAE;IACZ,MAAM,EAAE,cAAO,CAAC;CACjB,CAAC,CAAA;AAEF,SAAS,sBAAsB,CAAC,EAM/B;IAND,iBA6BC;QA5BC,QAAQ,cAAA,EACR,gBAAa,EAAb,QAAQ,mBAAG,EAAE,KAAA;IAMb,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAA;IAE/D,IAAA,KAA+B,IAAA,aAAQ,EAAC;QAC5C,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;;;;4BACU,qBAAM,kBAA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,EAAC,qBAAqB,CAAC,CAAA;AAC1C,CAAC;AAEgC,4DAAwB"}
@@ -1,4 +1,4 @@
1
1
  import { AppContext } from "next/app";
2
2
  export declare function getInitialPropsDynamicSection({ context }: {
3
3
  context: AppContext;
4
- }): Promise<import("../../../system/index.js").LoadAllDynamicSection.Model>;
4
+ }): Promise<any>;
@@ -38,10 +38,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getInitialPropsDynamicSection = void 0;
40
40
  var ui_1 = require("../../../ui/index.js");
41
- var system_1 = require("../../../system/index.js");
42
41
  function getInitialPropsDynamicSection(_a) {
43
42
  return __awaiter(this, arguments, void 0, function (_b) {
44
- var remote, sections, err_1;
43
+ var params, sections, err_1;
45
44
  var _c;
46
45
  var context = _b.context;
47
46
  return __generator(this, function (_d) {
@@ -51,8 +50,8 @@ function getInitialPropsDynamicSection(_a) {
51
50
  if (((_c = context === null || context === void 0 ? void 0 : context.router) === null || _c === void 0 ? void 0 : _c.asPath) === '/404') {
52
51
  return [2 /*return*/, []];
53
52
  }
54
- remote = system_1.container.get(system_1.Types.RemoteDynamicSection);
55
- return [4 /*yield*/, remote.loadAll((0, ui_1.getPathnameRef)(context))];
53
+ params = new URLSearchParams((0, ui_1.getPathnameRef)(context)).toString();
54
+ return [4 /*yield*/, fetch("".concat(process.env.api, "section?").concat(params)).then(function (r) { return r.json(); })];
56
55
  case 1:
57
56
  sections = _d.sent();
58
57
  return [2 /*return*/, sections];
@@ -1 +1 @@
1
- {"version":3,"file":"get-initial-props-dynamic-section.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2BAAsC;AACtC,mCAAkE;AAElE,SAAsB,6BAA6B;wDAAC,EAAoC;;;YAAlC,OAAO,aAAA;;;;;oBAEzD,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,MAAM,MAAK,MAAM,EAAE,CAAC;wBACvC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,MAAM,GAAG,kBAAS,CAAC,GAAG,CAAuB,cAAK,CAAC,oBAAoB,CAAC,CAAA;oBAE7D,qBAAM,MAAM,CAAC,OAAO,CAAC,IAAA,mBAAc,EAAC,OAAO,CAAC,CAAC,EAAA;;oBAAxD,QAAQ,GAAG,SAA6C;oBAE9D,sBAAO,QAAQ,EAAC;;;oBAGhB,sBAAO,EAAE,EAAC;;;;;CAEb;AAfD,sEAeC"}
1
+ {"version":3,"file":"get-initial-props-dynamic-section.js","sourceRoot":"","sources":["../../../../src/ui/contexts/dynamic-sections/get-initial-props-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2BAAsC;AAEtC,SAAsB,6BAA6B;wDAAC,EAAoC;;;YAAlC,OAAO,aAAA;;;;;oBAEzD,IAAI,CAAA,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,MAAM,MAAK,MAAM,EAAE,CAAC;wBACvC,sBAAO,EAAE,EAAA;oBACX,CAAC;oBAEK,MAAM,GAAG,IAAI,eAAe,CAAC,IAAA,mBAAc,EAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;oBACtD,qBAAM,KAAK,CAAC,UAAG,OAAO,CAAC,GAAG,CAAC,GAAG,qBAAW,MAAM,CAAE,CAAC,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,EAAE,EAAR,CAAQ,CAAC,EAAA;;oBAAnF,QAAQ,GAAG,SAAwE;oBAEzF,sBAAO,QAAQ,EAAC;;;oBAEhB,sBAAO,EAAE,EAAC;;;;;CAEb;AAbD,sEAaC"}
@@ -119,6 +119,6 @@ function EditSectionComponent(_a) {
119
119
  }); }, name: 'enabled' }) }), (0, jsx_runtime_1.jsxs)("button", { type: 'button', onClick: function () { return setOpen(true); }, className: 'edit_section', children: [(0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconEdit', fill: '#000' }), "Editar"] })] })) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: " " }))] }));
120
120
  }
121
121
  exports.EditSectionComponent = EditSectionComponent;
122
- var Styles = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 999;\n position: relative;\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 999;\n position: relative;\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"])), function (props) { return (props.$enabled ? 1 : 0.6); });
122
+ var Styles = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 2;\n position: relative;\n\n & + * {\n z-index: 1;\n position: relative;\n }\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 10px;\n gap: 10px;\n z-index: 2;\n position: relative;\n\n & + * {\n z-index: 1;\n position: relative;\n }\n \n & + * {\n opacity: ", ";\n }\n\n .input_control {\n margin-bottom: 0;\n }\n\n .edit_section {\n font-size: 13px;\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 5px;\n border-radius: 3px;\n border: 1px solid #ccc;\n padding: 5px 10px;\n transition: 0.3s;\n\n\n &:hover {\n background-color: #f1f1f1;\n }\n\n svg {\n width: 10px !important;\n height: auto !important;\n fill: #000 !important;\n }\n }\n"])), function (props) { return (props.$enabled ? 1 : 0.6); });
123
123
  var templateObject_1;
124
124
  //# sourceMappingURL=edit-section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"edit-section.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAGhC,sCAAuC;AAEvC,wEAAsC;AAEtC,2BAUa;AACb,mCAAiF;AAIjF,SAAgB,oBAAoB,CAAC,EAQpC;IARD,iBA2GC;QA1GC,MAAM,YAAA,EACN,UAAU,gBAAA,EACV,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAMb,IAAA,KAAkB,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAhC,IAAI,QAAA,EAAE,OAAO,QAAmB,CAAA;IAE/B,IAAA,KAAK,GAAK,IAAA,kBAAS,GAAE,MAAhB,CAAgB;IAErB,IAAA,WAAW,GAAK,IAAA,aA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AE,EAAE,QAAQ,EAAE,YAAY,YAC1F,uBAAC,gBAAW,IACV,YAAY,EAAE,UAAU,EACxB,aAAa,EAAE,UAAO,EAAE;;;gDACtB,qBAAM,YAAY,qBAAG,IAAI,EAAE,EAAE,IAAK,WAAW,KAAE,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,IAAG,EAAA;;4CAA9E,SAA8E,CAAA;4CAC9E,qBAAM,OAAO,CAAC,8BAA8B,CAAC,EAAA;;4CAA7C,SAA6C,CAAA;4CAC7C,WAAW,CAAC,EAAE,OAAO,EAAE,+BAA+B,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAA;;;;iCAC7E,EACD,IAAI,EAAC,SAAS,GACd,GACU,EAEd,oCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,CAAC,EAAb,CAAa,EAAE,SAAS,EAAC,cAAc,aAC1E,uBAAC,SAAI,IAAC,IAAI,EAAC,UAAU,EAAC,IAAI,EAAC,MAAM,GAAG,cAG7B,IACF,CACV,CAAC,CAAC,CAAC,CACF,iEAAM,CACP,IACA,CACJ,CAAA;AACH,CAAC;AA3GD,oDA2GC;AAED,IAAM,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,4sBAAuB,8KAUpC,EAAqC,ydA6BnD,KA7Bc,UAAC,KAAK,IAAK,OAAA,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAA1B,CAA0B,CA6BnD,CAAA"}
1
+ {"version":3,"file":"edit-section.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAgC;AAGhC,sCAAuC;AAEvC,wEAAsC;AAEtC,2BAUa;AACb,mCAAiF;AAIjF,SA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C,CAAC,GAAG,CAAC,EAA1B,CAA0B,CA6BnD,CAAA"}
@@ -87,7 +87,6 @@ function I18nProvider(props) {
87
87
  enabled: isReady && query.editMode === 'true',
88
88
  }), data = _a.data, isFetching = _a.isFetching, mutate = _a.mutate;
89
89
  var words = data || props.words;
90
- console.log("roleToEditLanguage", props.roleToEditLanguage);
91
90
  return ((0, jsx_runtime_1.jsxs)(I18nContext.Provider, { value: __assign(__assign({}, props), { isFetchingWords: isFetching, words: words, mutate: mutate, changeLanguage: changeLanguage }), children: [router.query.editMode === "true" ? ((0, jsx_runtime_1.jsx)(system_1.PrivatePage, { roles: props.roleToEditLanguage, children: props.children })) : (props.children), !props.disableEditMode && (0, jsx_runtime_1.jsx)(edit_mode_1.EditMode, {})] }));
92
91
  }
93
92
  exports.I18nProvider = I18nProvider;
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../../../src/ui/contexts/i18n/context.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAiD;AAEjD,sCAAuC;AAEvC,iCAA6B;AAC7B,2BAA+C;AAC/C,mCAAgD;AAEhD,yCAAsC;AAItC,IAAM,WAAW,GAAG,IAAA,qBAAa,EAAkB;IACjD,QAAQ,EAAE,OAAO;IACjB,SAAS,EAAE,EAAE;IACb,KAAK,EAAE,EAAE;IACT,eAAe,EAAE,IAAI;IACrB,MAAM,EAAE,cAAO,CAAC;IAChB,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,cAAM,OAAA,SAAS,EAAT,CAAS;CAChC,CAAC,CAAA;AAEF,SAAS,YAAY,CAAC,KAAuB;IAA7C,iBAoCC;IAnCC,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAClB,IAAA,QAAQ,GAA6B,MAAM,SAAnC,EAAE,MAAM,GAAqB,MAAM,OAA3B,EAAE,OAAO,GAAY,MAAM,QAAlB,EAAE,KAAK,GAAK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E,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,IAAA,mBAAc,EAAC,SAAS,EAAE,MAAM,CAAC,EAAE,CAAC,EAAA;;wBAA7F,QAAQ,GAAG,SAAkF;wBAEnG,sBAAO,QAAQ,EAAA;;;aAChB;QACD,OAAO,EAAE,OAAO,IAAI,KAAK,CAAC,QAAQ,KAAK,MAAM;KAC9C,CAAC,EATM,IAAI,UAAA,EAAE,UAAU,gBAAA,EAAE,MAAM,YAS9B,CAAA;IAEF,IAAM,KAAK,GAAG,IAAI,IAAI,KAAK,CAAC,KAAK,CAAA;IAEjC,OAAO,CACL,wBAAC,WAAW,CAAC,QAAQ,IACnB,KAAK,wBAAO,KAAK,KAAE,eAAe,EAAE,UAAU,EAAE,KAAK,OAAA,EAAE,MAAM,QAAA,EAAE,cAAc,gBAAA,gBAE5E,MAAM,CAAC,KAAK,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC,CAAC,CAClC,uBAAC,oBAAW,IAAC,KAAK,EAAE,KAAK,CAAC,kBAAkB,YAAG,KAAK,CAAC,QAAQ,GAAe,CAC7E,CAAC,CAAC,CAAC,CACF,KAAK,CAAC,QAAQ,CACf,EAEA,CAAC,KAAK,CAAC,eAAe,IAAI,uBAAC,oBAAQ,KAAG,IAClB,CACxB,CAAA;AACH,CAAC;AAQQ,oCAAY;AANrB,SAAS,OAAO;IACd,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,WAAW,CAAC,CAAA;IAEvC,OAAO,OAAO,CAAA;AAChB,CAAC;AAEsB,0BAAO"}
@@ -1,25 +1,16 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.EditMode = void 0;
7
4
  var jsx_runtime_1 = require("react/jsx-runtime");
8
- var react_1 = __importDefault(require("react"));
9
5
  var router_1 = require("next/router");
10
6
  var ui_1 = require("../../../../ui/index.js");
11
7
  var system_1 = require("../../../../system/index.js");
12
8
  function EditMode() {
13
- var _a = react_1.default.useState(false), hasPermission = _a[0], setHasPermission = _a[1];
9
+ var user = (0, system_1.useAuthAdmin)().user;
14
10
  var router = (0, router_1.useRouter)();
15
- react_1.default.useEffect(function () {
16
- var _a;
17
- var storage = (_a = system_1.container.get(system_1.InfraTypes.storage).get('token')) === null || _a === void 0 ? void 0 : _a.value;
18
- if (storage) {
19
- setHasPermission(true);
20
- }
21
- }, []);
22
- if (!hasPermission || router.query.editMode === "false") {
11
+ var hasUser = !!(user);
12
+ var isEditMode = router.isReady && (router.query.editMode === "true" || router.query.editMode === "false") && hasUser;
13
+ if (!isEditMode) {
23
14
  return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
24
15
  }
25
16
  return ((0, jsx_runtime_1.jsx)("button", { type: 'button', style: {
@@ -29,11 +20,11 @@ function EditMode() {
29
20
  right: 20,
30
21
  width: '100px',
31
22
  height: '35px',
32
- border: "0",
33
- fontWeight: "bold",
34
- color: "#fff",
35
- background: router.query.editMode === "true" ? "green" : '#000',
36
- }, onClick: function () { return (0, ui_1.updateRoute)({ router: router, params: { editMode: router.query.editMode === "true" ? "false" : "true" } }); }, children: "Modo edi\u00E7\u00E3o" }));
23
+ border: '0',
24
+ fontWeight: 'bold',
25
+ color: '#fff',
26
+ background: router.query.editMode === 'true' ? 'green' : '#000',
27
+ }, onClick: function () { return (0, ui_1.updateRoute)({ router: router, params: { editMode: router.query.editMode === 'true' ? 'false' : 'true' } }); }, children: "Modo edi\u00E7\u00E3o" }));
37
28
  }
38
29
  exports.EditMode = EditMode;
39
30
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/contexts/i18n/edit-mode/index.tsx"],"names":[],"mappings":";;;;;;;AAAA,gDAAyB;AAEzB,sCAAuC;AAEvC,2BAAkC;AAClC,mCAAgD;AAEhD,SAAgB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ul li {
349
349
  z-index: 10000000000;
350
350
  position: relative;
351
351
  }
352
+
353
+
354
+ #__next {
355
+ position: relative;
356
+ z-index: 1;
357
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "2.7.3",
3
+ "version": "2.7.4",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",