@ukpc-lib/react 0.13.1-dev.4 → 0.13.1-dev.5
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.
- package/dist/components/index.cjs +2 -2
- package/dist/components/index.js +3 -3
- package/dist/{index.esm2017-gn4YavpL.js → index.esm2017-DmH2CLan.js} +7922 -7918
- package/dist/{index.esm2017-D_jfQoO6.cjs → index.esm2017-__zCiOmA.cjs} +90 -90
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/access-denied/index.js +2 -2
- package/web-components-bundle/favorite-menu/index.js +5 -6
- package/web-components-bundle/global-menu/index.js +4 -5
- package/web-components-bundle/global-topbar/index.js +7 -8
- package/web-components-bundle/has-permission/index.js +4 -5
- package/web-components-bundle/{index-BSe1av43.js → index-B1bJ4sn5.js} +1 -1
- package/web-components-bundle/index-CHE1hDLM.js +45338 -0
- package/web-components-bundle/{index-T58UE-6b.js → index-DyX6L9q-.js} +226 -215
- package/web-components-bundle/page-not-found/index.js +2 -2
- package/web-components-bundle/{react-to-web-component-CXwKHjZr.js → react-to-web-component-C4-Jmrxs.js} +5 -5
- package/web-components-bundle/{react-toastify.esm-CrTD7cpE.js → react-toastify.esm-C4-Xv2fh.js} +175 -156
- package/web-components-bundle/toast-config/index.js +2 -2
- package/web-components-bundle/toast-config-notification/index.js +2 -2
- package/web-components-bundle/base-breadcrumbs/index.js +0 -5
- package/web-components-bundle/clsx-DB4S2d7J.js +0 -22
- package/web-components-bundle/index-BziS9Had.js +0 -5410
- package/web-components-bundle/index-Ck-3mxIe.js +0 -39996
- package/web-components-bundle/setPrototypeOf-BVKdEITT.js +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('._page-container_1pwo1_1{padding-top:16px;background-color:#fafafa;width:100%;height:800px}._page-main-content_1pwo1_8{padding:16px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:23px;margin-left:auto;margin-right:auto}._page-title_1pwo1_19{font-weight:500;font-size:20px;line-height:26px;text-align:center}._text-base_1pwo1_26{font-size:14px;line-height:18px;color:#85858a;text-align:center}._mt-4_1pwo1_33{margin-top:1rem}:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: #e74c3c;--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient( to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55 );--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%)}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right)}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%)}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right)}@media only screen and (max-width : 480px){.Toastify__toast-container{width:100vw;padding:0;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}}.Toastify__toast{--y: 0;position:relative;touch-action:none;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:var(--toastify-toast-bd-radius);box-shadow:0 4px 12px #0000001a;display:flex;justify-content:space-between;max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0;overflow:hidden}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;flex:1 1 auto;padding:6px;display:flex;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;flex:1}.Toastify__toast-icon{margin-inline-end:10px;width:20px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width : 480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;align-self:flex-start;z-index:1}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial;border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp{position:absolute;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.daterangepicker{position:absolute;color:inherit;background-color:#fff;border-radius:4px;border:1px solid #ddd;width:278px;max-width:none;padding:0;margin-top:7px;top:100px;left:20px;z-index:3001;display:none;font-family:arial;font-size:15px;line-height:1em}.daterangepicker:before,.daterangepicker:after{position:absolute;display:inline-block;border-bottom-color:#0003;content:""}.daterangepicker:before{top:-7px;border-right:7px solid transparent;border-left:7px solid transparent;border-bottom:7px solid #ccc}.daterangepicker:after{top:-6px;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent}.daterangepicker.opensleft:before{right:9px}.daterangepicker.opensleft:after{right:10px}.daterangepicker.openscenter:before{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.openscenter:after{left:0;right:0;width:0;margin-left:auto;margin-right:auto}.daterangepicker.opensright:before{left:9px}.daterangepicker.opensright:after{left:10px}.daterangepicker.drop-up{margin-top:-7px}.daterangepicker.drop-up:before{top:initial;bottom:-7px;border-bottom:initial;border-top:7px solid #ccc}.daterangepicker.drop-up:after{top:initial;bottom:-6px;border-bottom:initial;border-top:6px solid #fff}.daterangepicker.single .daterangepicker .ranges,.daterangepicker.single .drp-calendar{float:none}.daterangepicker.single .drp-selected{display:none}.daterangepicker.show-calendar .drp-calendar,.daterangepicker.show-calendar .drp-buttons{display:block}.daterangepicker.auto-apply .drp-buttons{display:none}.daterangepicker .drp-calendar{display:none;max-width:270px}.daterangepicker .drp-calendar.left{padding:8px 0 8px 8px}.daterangepicker .drp-calendar.right{padding:8px}.daterangepicker .drp-calendar.single .calendar-table{border:none}.daterangepicker .calendar-table .next span,.daterangepicker .calendar-table .prev span{color:#fff;border:solid black;border-width:0 2px 2px 0;border-radius:0;display:inline-block;padding:3px}.daterangepicker .calendar-table .next span{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}.daterangepicker .calendar-table .prev span{transform:rotate(135deg);-webkit-transform:rotate(135deg)}.daterangepicker .calendar-table th,.daterangepicker .calendar-table td{text-align:center;vertical-align:middle;min-width:32px;width:32px;height:24px;line-height:24px;font-size:12px;border-radius:4px;border:1px solid transparent;white-space:nowrap;cursor:pointer}.daterangepicker .calendar-table{border:1px solid #fff;border-radius:4px;background-color:#fff}.daterangepicker .calendar-table table{width:100%;margin:0;border-spacing:0;border-collapse:collapse}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background-color:#eee;border-color:transparent;color:inherit}.daterangepicker td.week,.daterangepicker th.week{font-size:80%;color:#ccc}.daterangepicker td.off,.daterangepicker td.off.in-range,.daterangepicker td.off.start-date,.daterangepicker td.off.end-date{background-color:#fff;border-color:transparent;color:#999}.daterangepicker td.in-range{background-color:#ebf4f8;border-color:transparent;color:#000;border-radius:0}.daterangepicker td.start-date{border-radius:4px 0 0 4px}.daterangepicker td.end-date{border-radius:0 4px 4px 0}.daterangepicker td.start-date.end-date{border-radius:4px}.daterangepicker td.active,.daterangepicker td.active:hover{background-color:#357ebd;border-color:transparent;color:#fff}.daterangepicker th.month{width:auto}.daterangepicker td.disabled,.daterangepicker option.disabled{color:#999;cursor:not-allowed;text-decoration:line-through}.daterangepicker select.monthselect,.daterangepicker select.yearselect{font-size:12px;padding:1px;height:auto;margin:0;cursor:default}.daterangepicker select.monthselect{margin-right:2%;width:56%}.daterangepicker select.yearselect{width:40%}.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.secondselect,.daterangepicker select.ampmselect{width:50px;margin:0 auto;background:#eee;border:1px solid #eee;padding:2px;outline:0;font-size:12px}.daterangepicker .calendar-time{text-align:center;margin:4px auto 0;line-height:30px;position:relative}.daterangepicker .calendar-time select.disabled{color:#ccc;cursor:not-allowed}.daterangepicker .drp-buttons{clear:both;text-align:right;padding:8px;border-top:1px solid #ddd;display:none;line-height:12px;vertical-align:middle}.daterangepicker .drp-selected{display:inline-block;font-size:12px;padding-right:8px}.daterangepicker .drp-buttons .btn{margin-left:8px;font-size:12px;font-weight:700;padding:4px 8px}.daterangepicker.show-ranges.single.rtl .drp-calendar.left{border-right:1px solid #ddd}.daterangepicker.show-ranges.single.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker.show-ranges.rtl .drp-calendar.right{border-right:1px solid #ddd}.daterangepicker.show-ranges.ltr .drp-calendar.left{border-left:1px solid #ddd}.daterangepicker .ranges{float:none;text-align:left;margin:0}.daterangepicker.show-calendar .ranges{margin-top:8px}.daterangepicker .ranges ul{list-style:none;margin:0 auto;padding:0;width:100%}.daterangepicker .ranges li{font-size:12px;padding:8px 12px;cursor:pointer}.daterangepicker .ranges li:hover{background-color:#eee}.daterangepicker .ranges li.active{background-color:#08c;color:#fff}@media (min-width: 564px){.daterangepicker{width:auto}.daterangepicker .ranges ul{width:140px}.daterangepicker.single .ranges ul{width:100%}.daterangepicker.single .drp-calendar.left{clear:none}.daterangepicker.single .ranges,.daterangepicker.single .drp-calendar{float:left}.daterangepicker{direction:ltr;text-align:left}.daterangepicker .drp-calendar.left{clear:left;margin-right:0}.daterangepicker .drp-calendar.left .calendar-table{border-right:none;border-top-right-radius:0;border-bottom-right-radius:0}.daterangepicker .drp-calendar.right{margin-left:0}.daterangepicker .drp-calendar.right .calendar-table{border-left:none;border-top-left-radius:0;border-bottom-left-radius:0}.daterangepicker .drp-calendar.left .calendar-table{padding-right:8px}.daterangepicker .ranges,.daterangepicker .drp-calendar{float:left}}@media (min-width: 730px){.daterangepicker .ranges{width:auto;float:left}.daterangepicker.rtl .ranges{float:right}.daterangepicker .drp-calendar.left{clear:none!important}}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
import "../react-to-web-component-
|
|
3
|
-
import { P as a } from "../index-
|
|
2
|
+
import "../react-to-web-component-C4-Jmrxs.js";
|
|
3
|
+
import { P as a } from "../index-B1bJ4sn5.js";
|
|
4
4
|
export {
|
|
5
5
|
a as PageNotFound
|
|
6
6
|
};
|
|
@@ -6375,12 +6375,12 @@ function ep(e, t = {}) {
|
|
|
6375
6375
|
return Qd(e, t, { mount: Kd, update: Yd, unmount: Xd });
|
|
6376
6376
|
}
|
|
6377
6377
|
export {
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6378
|
+
Jd as R,
|
|
6379
|
+
Zd as a,
|
|
6380
|
+
Ku as b,
|
|
6381
6381
|
Gd as c,
|
|
6382
|
-
|
|
6383
|
-
|
|
6382
|
+
bd as d,
|
|
6383
|
+
sf as e,
|
|
6384
6384
|
Xi as g,
|
|
6385
6385
|
qd as j,
|
|
6386
6386
|
ll as r,
|
package/web-components-bundle/{react-toastify.esm-CrTD7cpE.js → react-toastify.esm-C4-Xv2fh.js}
RENAMED
|
@@ -1,28 +1,46 @@
|
|
|
1
|
-
import { r as b,
|
|
2
|
-
|
|
1
|
+
import { r as b, b as y } from "./react-to-web-component-C4-Jmrxs.js";
|
|
2
|
+
function de(e) {
|
|
3
|
+
var t, n, s = "";
|
|
4
|
+
if (typeof e == "string" || typeof e == "number")
|
|
5
|
+
s += e;
|
|
6
|
+
else if (typeof e == "object")
|
|
7
|
+
if (Array.isArray(e)) {
|
|
8
|
+
var a = e.length;
|
|
9
|
+
for (t = 0; t < a; t++)
|
|
10
|
+
e[t] && (n = de(e[t])) && (s && (s += " "), s += n);
|
|
11
|
+
} else
|
|
12
|
+
for (n in e)
|
|
13
|
+
e[n] && (s && (s += " "), s += n);
|
|
14
|
+
return s;
|
|
15
|
+
}
|
|
16
|
+
function F() {
|
|
17
|
+
for (var e, t, n = 0, s = "", a = arguments.length; n < a; n++)
|
|
18
|
+
(e = arguments[n]) && (t = de(e)) && (s && (s += " "), s += t);
|
|
19
|
+
return s;
|
|
20
|
+
}
|
|
3
21
|
const J = (e) => typeof e == "number" && !isNaN(e), q = (e) => typeof e == "string", k = (e) => typeof e == "function", ne = (e) => q(e) || k(e) ? e : null, ie = (e) => b.isValidElement(e) || q(e) || k(e) || J(e);
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
const { scrollHeight:
|
|
22
|
+
function ve(e, t, n) {
|
|
23
|
+
n === void 0 && (n = 300);
|
|
24
|
+
const { scrollHeight: s, style: a } = e;
|
|
7
25
|
requestAnimationFrame(() => {
|
|
8
|
-
a.minHeight = "initial", a.height =
|
|
9
|
-
a.height = "0", a.padding = "0", a.margin = "0", setTimeout(t,
|
|
26
|
+
a.minHeight = "initial", a.height = s + "px", a.transition = `all ${n}ms`, requestAnimationFrame(() => {
|
|
27
|
+
a.height = "0", a.padding = "0", a.margin = "0", setTimeout(t, n);
|
|
10
28
|
});
|
|
11
29
|
});
|
|
12
30
|
}
|
|
13
31
|
function se(e) {
|
|
14
|
-
let { enter: t, exit:
|
|
15
|
-
return function(
|
|
16
|
-
let { children: E, position: p, preventExitTransition: _, done:
|
|
17
|
-
const m =
|
|
32
|
+
let { enter: t, exit: n, appendPosition: s = !1, collapse: a = !0, collapseDuration: u = 300 } = e;
|
|
33
|
+
return function(o) {
|
|
34
|
+
let { children: E, position: p, preventExitTransition: _, done: d, nodeRef: C, isIn: I, playToast: N } = o;
|
|
35
|
+
const m = s ? `${t}--${p}` : t, c = s ? `${n}--${p}` : n, T = b.useRef(0);
|
|
18
36
|
return b.useLayoutEffect(() => {
|
|
19
|
-
const f = C.current, l = m.split(" "),
|
|
20
|
-
g.target === C.current && (N(), f.removeEventListener("animationend",
|
|
37
|
+
const f = C.current, l = m.split(" "), r = (g) => {
|
|
38
|
+
g.target === C.current && (N(), f.removeEventListener("animationend", r), f.removeEventListener("animationcancel", r), T.current === 0 && g.type !== "animationcancel" && f.classList.remove(...l));
|
|
21
39
|
};
|
|
22
|
-
f.classList.add(...l), f.addEventListener("animationend",
|
|
40
|
+
f.classList.add(...l), f.addEventListener("animationend", r), f.addEventListener("animationcancel", r);
|
|
23
41
|
}, []), b.useEffect(() => {
|
|
24
42
|
const f = C.current, l = () => {
|
|
25
|
-
f.removeEventListener("animationend", l), a ?
|
|
43
|
+
f.removeEventListener("animationend", l), a ? ve(f, d, u) : d();
|
|
26
44
|
};
|
|
27
45
|
I || (_ ? l() : (T.current = 1, f.className += ` ${c}`, f.addEventListener("animationend", l)));
|
|
28
46
|
}, [I]), y.createElement(y.Fragment, null, E);
|
|
@@ -33,50 +51,50 @@ function ce(e, t) {
|
|
|
33
51
|
}
|
|
34
52
|
const $ = /* @__PURE__ */ new Map();
|
|
35
53
|
let K = [];
|
|
36
|
-
const le = /* @__PURE__ */ new Set(),
|
|
37
|
-
function
|
|
38
|
-
var
|
|
54
|
+
const le = /* @__PURE__ */ new Set(), he = (e) => le.forEach((t) => t(e)), pe = () => $.size > 0;
|
|
55
|
+
function fe(e, t) {
|
|
56
|
+
var n;
|
|
39
57
|
if (t)
|
|
40
|
-
return !((
|
|
41
|
-
let
|
|
58
|
+
return !((n = $.get(t)) == null || !n.isToastActive(e));
|
|
59
|
+
let s = !1;
|
|
42
60
|
return $.forEach((a) => {
|
|
43
|
-
a.isToastActive(e) && (
|
|
44
|
-
}),
|
|
61
|
+
a.isToastActive(e) && (s = !0);
|
|
62
|
+
}), s;
|
|
45
63
|
}
|
|
46
|
-
function
|
|
47
|
-
ie(e) && (
|
|
48
|
-
|
|
64
|
+
function me(e, t) {
|
|
65
|
+
ie(e) && (pe() || K.push({ content: e, options: t }), $.forEach((n) => {
|
|
66
|
+
n.buildToast(e, t);
|
|
49
67
|
}));
|
|
50
68
|
}
|
|
51
|
-
function
|
|
52
|
-
$.forEach((
|
|
53
|
-
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) ===
|
|
69
|
+
function ue(e, t) {
|
|
70
|
+
$.forEach((n) => {
|
|
71
|
+
t != null && t != null && t.containerId ? (t == null ? void 0 : t.containerId) === n.id && n.toggle(e, t == null ? void 0 : t.id) : n.toggle(e, t == null ? void 0 : t.id);
|
|
54
72
|
});
|
|
55
73
|
}
|
|
56
|
-
function
|
|
57
|
-
const { subscribe: t, getSnapshot:
|
|
58
|
-
const
|
|
74
|
+
function Ee(e) {
|
|
75
|
+
const { subscribe: t, getSnapshot: n, setProps: s } = b.useRef(function(u) {
|
|
76
|
+
const o = u.containerId || 1;
|
|
59
77
|
return { subscribe(E) {
|
|
60
|
-
const p = /* @__PURE__ */ function(
|
|
78
|
+
const p = /* @__PURE__ */ function(d, C, I) {
|
|
61
79
|
let N = 1, m = 0, c = [], T = [], f = [], l = C;
|
|
62
|
-
const
|
|
63
|
-
f = Array.from(
|
|
80
|
+
const r = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Set(), A = () => {
|
|
81
|
+
f = Array.from(r.values()), g.forEach((i) => i());
|
|
64
82
|
}, O = (i) => {
|
|
65
|
-
T = i == null ? [] : T.filter((v) => v !== i),
|
|
83
|
+
T = i == null ? [] : T.filter((v) => v !== i), A();
|
|
66
84
|
}, L = (i) => {
|
|
67
85
|
const { toastId: v, onOpen: w, updateId: R, children: S } = i.props, Y = R == null;
|
|
68
|
-
i.staleId &&
|
|
86
|
+
i.staleId && r.delete(i.staleId), r.set(v, i), T = [...T, i.props.toastId].filter((z) => z !== i.staleId), A(), I(ce(i, Y ? "added" : "updated")), Y && k(w) && w(b.isValidElement(S) && S.props);
|
|
69
87
|
};
|
|
70
|
-
return { id:
|
|
71
|
-
|
|
88
|
+
return { id: d, props: l, observe: (i) => (g.add(i), () => g.delete(i)), toggle: (i, v) => {
|
|
89
|
+
r.forEach((w) => {
|
|
72
90
|
v != null && v !== w.props.toastId || k(w.toggle) && w.toggle(i);
|
|
73
91
|
});
|
|
74
|
-
}, removeToast: O, toasts:
|
|
92
|
+
}, removeToast: O, toasts: r, clearQueue: () => {
|
|
75
93
|
m -= c.length, c = [];
|
|
76
94
|
}, buildToast: (i, v) => {
|
|
77
|
-
if (((
|
|
78
|
-
let { containerId: P, toastId: x, updateId: B } =
|
|
79
|
-
const V = P ? P !==
|
|
95
|
+
if (((M) => {
|
|
96
|
+
let { containerId: P, toastId: x, updateId: B } = M;
|
|
97
|
+
const V = P ? P !== d : d !== 1, U = r.has(x) && B == null;
|
|
80
98
|
return V || U;
|
|
81
99
|
})(v))
|
|
82
100
|
return;
|
|
@@ -84,12 +102,12 @@ function he(e) {
|
|
|
84
102
|
O(w);
|
|
85
103
|
}, Z = R == null;
|
|
86
104
|
Z && m++;
|
|
87
|
-
const D = { ...l, style: l.toastStyle, key: N++, ...Object.fromEntries(Object.entries(v).filter((
|
|
88
|
-
let [P, x] =
|
|
105
|
+
const D = { ...l, style: l.toastStyle, key: N++, ...Object.fromEntries(Object.entries(v).filter((M) => {
|
|
106
|
+
let [P, x] = M;
|
|
89
107
|
return x != null;
|
|
90
108
|
})), toastId: w, updateId: R, data: S, closeToast: Q, isIn: !1, className: ne(v.className || l.toastClassName), bodyClassName: ne(v.bodyClassName || l.bodyClassName), progressClassName: ne(v.progressClassName || l.progressClassName), autoClose: !v.isLoading && (H = v.autoClose, j = l.autoClose, H === !1 || J(H) && H > 0 ? H : j), deleteToast() {
|
|
91
|
-
const
|
|
92
|
-
k(P) && P(b.isValidElement(x) && x.props), I(ce(
|
|
109
|
+
const M = r.get(w), { onClose: P, children: x } = M.props;
|
|
110
|
+
k(P) && P(b.isValidElement(x) && x.props), I(ce(M, "removed")), r.delete(w), m--, m < 0 && (m = 0), c.length > 0 ? L(c.shift()) : A();
|
|
93
111
|
} };
|
|
94
112
|
var H, j;
|
|
95
113
|
D.closeButton = l.closeButton, v.closeButton === !1 || ie(v.closeButton) ? D.closeButton = v.closeButton : v.closeButton === !0 && (D.closeButton = !ie(l.closeButton) || l.closeButton);
|
|
@@ -102,145 +120,145 @@ function he(e) {
|
|
|
102
120
|
}, setProps(i) {
|
|
103
121
|
l = i;
|
|
104
122
|
}, setToggle: (i, v) => {
|
|
105
|
-
|
|
123
|
+
r.get(i).toggle = v;
|
|
106
124
|
}, isToastActive: (i) => T.some((v) => v === i), getSnapshot: () => f };
|
|
107
|
-
}(
|
|
108
|
-
$.set(
|
|
125
|
+
}(o, u, he);
|
|
126
|
+
$.set(o, p);
|
|
109
127
|
const _ = p.observe(E);
|
|
110
|
-
return K.forEach((
|
|
111
|
-
_(), $.delete(
|
|
128
|
+
return K.forEach((d) => me(d.content, d.options)), K = [], () => {
|
|
129
|
+
_(), $.delete(o);
|
|
112
130
|
};
|
|
113
131
|
}, setProps(E) {
|
|
114
132
|
var p;
|
|
115
|
-
(p = $.get(
|
|
133
|
+
(p = $.get(o)) == null || p.setProps(E);
|
|
116
134
|
}, getSnapshot() {
|
|
117
135
|
var E;
|
|
118
|
-
return (E = $.get(
|
|
136
|
+
return (E = $.get(o)) == null ? void 0 : E.getSnapshot();
|
|
119
137
|
} };
|
|
120
138
|
}(e)).current;
|
|
121
|
-
|
|
122
|
-
const a = b.useSyncExternalStore(t,
|
|
123
|
-
return { getToastToRender: function(
|
|
139
|
+
s(e);
|
|
140
|
+
const a = b.useSyncExternalStore(t, n, n);
|
|
141
|
+
return { getToastToRender: function(u) {
|
|
124
142
|
if (!a)
|
|
125
143
|
return [];
|
|
126
|
-
const
|
|
144
|
+
const o = /* @__PURE__ */ new Map();
|
|
127
145
|
return e.newestOnTop && a.reverse(), a.forEach((E) => {
|
|
128
146
|
const { position: p } = E.props;
|
|
129
|
-
|
|
130
|
-
}), Array.from(
|
|
131
|
-
}, isToastActive:
|
|
147
|
+
o.has(p) || o.set(p, []), o.get(p).push(E);
|
|
148
|
+
}), Array.from(o, (E) => u(E[0], E[1]));
|
|
149
|
+
}, isToastActive: fe, count: a == null ? void 0 : a.length };
|
|
132
150
|
}
|
|
133
|
-
function
|
|
134
|
-
const [t,
|
|
151
|
+
function Te(e) {
|
|
152
|
+
const [t, n] = b.useState(!1), [s, a] = b.useState(!1), u = b.useRef(null), o = b.useRef({ start: 0, delta: 0, removalDistance: 0, canCloseOnClick: !0, canDrag: !1, didMove: !1 }).current, { autoClose: E, pauseOnHover: p, closeToast: _, onClick: d, closeOnClick: C } = e;
|
|
135
153
|
var I, N;
|
|
136
154
|
function m() {
|
|
137
|
-
|
|
155
|
+
n(!0);
|
|
138
156
|
}
|
|
139
157
|
function c() {
|
|
140
|
-
|
|
158
|
+
n(!1);
|
|
141
159
|
}
|
|
142
|
-
function T(
|
|
143
|
-
const g =
|
|
144
|
-
|
|
160
|
+
function T(r) {
|
|
161
|
+
const g = u.current;
|
|
162
|
+
o.canDrag && g && (o.didMove = !0, t && c(), o.delta = e.draggableDirection === "x" ? r.clientX - o.start : r.clientY - o.start, o.start !== r.clientX && (o.canCloseOnClick = !1), g.style.transform = `translate3d(${e.draggableDirection === "x" ? `${o.delta}px, var(--y)` : `0, calc(${o.delta}px + var(--y))`},0)`, g.style.opacity = "" + (1 - Math.abs(o.delta / o.removalDistance)));
|
|
145
163
|
}
|
|
146
164
|
function f() {
|
|
147
165
|
document.removeEventListener("pointermove", T), document.removeEventListener("pointerup", f);
|
|
148
|
-
const
|
|
149
|
-
if (
|
|
150
|
-
if (
|
|
166
|
+
const r = u.current;
|
|
167
|
+
if (o.canDrag && o.didMove && r) {
|
|
168
|
+
if (o.canDrag = !1, Math.abs(o.delta) > o.removalDistance)
|
|
151
169
|
return a(!0), e.closeToast(), void e.collapseAll();
|
|
152
|
-
|
|
170
|
+
r.style.transition = "transform 0.2s, opacity 0.2s", r.style.removeProperty("transform"), r.style.removeProperty("opacity");
|
|
153
171
|
}
|
|
154
172
|
}
|
|
155
|
-
(N = $.get((I = { id: e.toastId, containerId: e.containerId, fn:
|
|
173
|
+
(N = $.get((I = { id: e.toastId, containerId: e.containerId, fn: n }).containerId || 1)) == null || N.setToggle(I.id, I.fn), b.useEffect(() => {
|
|
156
174
|
if (e.pauseOnFocusLoss)
|
|
157
175
|
return document.hasFocus() || c(), window.addEventListener("focus", m), window.addEventListener("blur", c), () => {
|
|
158
176
|
window.removeEventListener("focus", m), window.removeEventListener("blur", c);
|
|
159
177
|
};
|
|
160
178
|
}, [e.pauseOnFocusLoss]);
|
|
161
|
-
const l = { onPointerDown: function(
|
|
162
|
-
if (e.draggable === !0 || e.draggable ===
|
|
163
|
-
|
|
164
|
-
const g =
|
|
165
|
-
|
|
179
|
+
const l = { onPointerDown: function(r) {
|
|
180
|
+
if (e.draggable === !0 || e.draggable === r.pointerType) {
|
|
181
|
+
o.didMove = !1, document.addEventListener("pointermove", T), document.addEventListener("pointerup", f);
|
|
182
|
+
const g = u.current;
|
|
183
|
+
o.canCloseOnClick = !0, o.canDrag = !0, g.style.transition = "none", e.draggableDirection === "x" ? (o.start = r.clientX, o.removalDistance = g.offsetWidth * (e.draggablePercent / 100)) : (o.start = r.clientY, o.removalDistance = g.offsetHeight * (e.draggablePercent === 80 ? 1.5 * e.draggablePercent : e.draggablePercent) / 100);
|
|
166
184
|
}
|
|
167
|
-
}, onPointerUp: function(
|
|
168
|
-
const { top: g, bottom:
|
|
169
|
-
|
|
185
|
+
}, onPointerUp: function(r) {
|
|
186
|
+
const { top: g, bottom: A, left: O, right: L } = u.current.getBoundingClientRect();
|
|
187
|
+
r.nativeEvent.type !== "touchend" && e.pauseOnHover && r.clientX >= O && r.clientX <= L && r.clientY >= g && r.clientY <= A ? c() : m();
|
|
170
188
|
} };
|
|
171
|
-
return E && p && (l.onMouseEnter = c, e.stacked || (l.onMouseLeave = m)), C && (l.onClick = (
|
|
172
|
-
|
|
173
|
-
}), { playToast: m, pauseToast: c, isRunning: t, preventExitTransition:
|
|
189
|
+
return E && p && (l.onMouseEnter = c, e.stacked || (l.onMouseLeave = m)), C && (l.onClick = (r) => {
|
|
190
|
+
d && d(r), o.canCloseOnClick && _();
|
|
191
|
+
}), { playToast: m, pauseToast: c, isRunning: t, preventExitTransition: s, toastRef: u, eventHandlers: l };
|
|
174
192
|
}
|
|
175
|
-
function
|
|
176
|
-
let { delay: t, isRunning:
|
|
177
|
-
const N =
|
|
193
|
+
function be(e) {
|
|
194
|
+
let { delay: t, isRunning: n, closeToast: s, type: a = "default", hide: u, className: o, style: E, controlledProgress: p, progress: _, rtl: d, isIn: C, theme: I } = e;
|
|
195
|
+
const N = u || p && _ === 0, m = { ...E, animationDuration: `${t}ms`, animationPlayState: n ? "running" : "paused" };
|
|
178
196
|
p && (m.transform = `scaleX(${_})`);
|
|
179
|
-
const c = F("Toastify__progress-bar", p ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${I}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl":
|
|
180
|
-
C &&
|
|
197
|
+
const c = F("Toastify__progress-bar", p ? "Toastify__progress-bar--controlled" : "Toastify__progress-bar--animated", `Toastify__progress-bar-theme--${I}`, `Toastify__progress-bar--${a}`, { "Toastify__progress-bar--rtl": d }), T = k(o) ? o({ rtl: d, type: a, defaultClassName: c }) : F(c, o), f = { [p && _ >= 1 ? "onTransitionEnd" : "onAnimationEnd"]: p && _ < 1 ? null : () => {
|
|
198
|
+
C && s();
|
|
181
199
|
} };
|
|
182
200
|
return y.createElement("div", { className: "Toastify__progress-bar--wrp", "data-hidden": N }, y.createElement("div", { className: `Toastify__progress-bar--bg Toastify__progress-bar-theme--${I} Toastify__progress-bar--${a}` }), y.createElement("div", { role: "progressbar", "aria-hidden": N ? "true" : "false", "aria-label": "notification timer", className: T, style: m, ...f }));
|
|
183
201
|
}
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
return e && (q(e.toastId) || J(e.toastId)) ? e.toastId :
|
|
202
|
+
let Ie = 1;
|
|
203
|
+
const ge = () => "" + Ie++;
|
|
204
|
+
function _e(e) {
|
|
205
|
+
return e && (q(e.toastId) || J(e.toastId)) ? e.toastId : ge();
|
|
188
206
|
}
|
|
189
207
|
function G(e, t) {
|
|
190
|
-
return
|
|
208
|
+
return me(e, t), t.toastId;
|
|
191
209
|
}
|
|
192
210
|
function oe(e, t) {
|
|
193
|
-
return { ...t, type: t && t.type || e, toastId:
|
|
211
|
+
return { ...t, type: t && t.type || e, toastId: _e(t) };
|
|
194
212
|
}
|
|
195
213
|
function ee(e) {
|
|
196
|
-
return (t,
|
|
214
|
+
return (t, n) => G(t, oe(e, n));
|
|
197
215
|
}
|
|
198
216
|
function h(e, t) {
|
|
199
217
|
return G(e, oe("default", t));
|
|
200
218
|
}
|
|
201
|
-
h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), h.promise = function(e, t,
|
|
202
|
-
let
|
|
203
|
-
a && (
|
|
204
|
-
const E = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, p = (
|
|
219
|
+
h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOnClick: !1, closeButton: !1, draggable: !1, ...t })), h.promise = function(e, t, n) {
|
|
220
|
+
let s, { pending: a, error: u, success: o } = t;
|
|
221
|
+
a && (s = q(a) ? h.loading(a, n) : h.loading(a.render, { ...n, ...a }));
|
|
222
|
+
const E = { isLoading: null, autoClose: null, closeOnClick: null, closeButton: null, draggable: null }, p = (d, C, I) => {
|
|
205
223
|
if (C == null)
|
|
206
|
-
return void h.dismiss(
|
|
207
|
-
const N = { type:
|
|
208
|
-
return
|
|
224
|
+
return void h.dismiss(s);
|
|
225
|
+
const N = { type: d, ...E, ...n, data: I }, m = q(C) ? { render: C } : C;
|
|
226
|
+
return s ? h.update(s, { ...N, ...m }) : h(m.render, { ...N, ...m }), I;
|
|
209
227
|
}, _ = k(e) ? e() : e;
|
|
210
|
-
return _.then((
|
|
228
|
+
return _.then((d) => p("success", o, d)).catch((d) => p("error", u, d)), _;
|
|
211
229
|
}, h.success = ee("success"), h.info = ee("info"), h.error = ee("error"), h.warning = ee("warning"), h.warn = h.warning, h.dark = (e, t) => G(e, oe("default", { theme: "dark", ...t })), h.dismiss = function(e) {
|
|
212
230
|
(function(t) {
|
|
213
|
-
var
|
|
214
|
-
if (
|
|
215
|
-
if (t == null || q(
|
|
216
|
-
$.forEach((
|
|
217
|
-
|
|
231
|
+
var n;
|
|
232
|
+
if (pe()) {
|
|
233
|
+
if (t == null || q(n = t) || J(n))
|
|
234
|
+
$.forEach((s) => {
|
|
235
|
+
s.removeToast(t);
|
|
218
236
|
});
|
|
219
237
|
else if (t && ("containerId" in t || "id" in t)) {
|
|
220
|
-
const
|
|
221
|
-
|
|
238
|
+
const s = $.get(t.containerId);
|
|
239
|
+
s ? s.removeToast(t.id) : $.forEach((a) => {
|
|
222
240
|
a.removeToast(t.id);
|
|
223
241
|
});
|
|
224
242
|
}
|
|
225
243
|
} else
|
|
226
|
-
K = K.filter((
|
|
244
|
+
K = K.filter((s) => t != null && s.options.toastId !== t);
|
|
227
245
|
})(e);
|
|
228
246
|
}, h.clearWaitingQueue = function(e) {
|
|
229
247
|
e === void 0 && (e = {}), $.forEach((t) => {
|
|
230
248
|
!t.props.limit || e.containerId && t.id !== e.containerId || t.clearQueue();
|
|
231
249
|
});
|
|
232
|
-
}, h.isActive =
|
|
250
|
+
}, h.isActive = fe, h.update = function(e, t) {
|
|
233
251
|
t === void 0 && (t = {});
|
|
234
|
-
const
|
|
235
|
-
var
|
|
236
|
-
let { containerId:
|
|
237
|
-
return (
|
|
252
|
+
const n = ((s, a) => {
|
|
253
|
+
var u;
|
|
254
|
+
let { containerId: o } = a;
|
|
255
|
+
return (u = $.get(o || 1)) == null ? void 0 : u.toasts.get(s);
|
|
238
256
|
})(e, t);
|
|
239
|
-
if (
|
|
240
|
-
const { props:
|
|
241
|
-
|
|
242
|
-
const
|
|
243
|
-
delete
|
|
257
|
+
if (n) {
|
|
258
|
+
const { props: s, content: a } = n, u = { delay: 100, ...s, ...t, toastId: t.toastId || e, updateId: ge() };
|
|
259
|
+
u.toastId !== e && (u.staleId = e);
|
|
260
|
+
const o = u.render || a;
|
|
261
|
+
delete u.render, G(o, u);
|
|
244
262
|
}
|
|
245
263
|
}, h.done = (e) => {
|
|
246
264
|
h.update(e, { progress: 1 });
|
|
@@ -248,10 +266,10 @@ h.loading = (e, t) => G(e, oe("default", { isLoading: !0, autoClose: !1, closeOn
|
|
|
248
266
|
return le.add(e), () => {
|
|
249
267
|
le.delete(e);
|
|
250
268
|
};
|
|
251
|
-
}, h.play = (e) =>
|
|
252
|
-
const
|
|
253
|
-
let { theme: t, type:
|
|
254
|
-
return y.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${
|
|
269
|
+
}, h.play = (e) => ue(!0, e), h.pause = (e) => ue(!1, e);
|
|
270
|
+
const Ce = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = (e) => {
|
|
271
|
+
let { theme: t, type: n, isLoading: s, ...a } = e;
|
|
272
|
+
return y.createElement("svg", { viewBox: "0 0 24 24", width: "100%", height: "100%", fill: t === "colored" ? "currentColor" : `var(--toastify-icon-color-${n})`, ...a });
|
|
255
273
|
}, re = { info: function(e) {
|
|
256
274
|
return y.createElement(te, { ...e }, y.createElement("path", { d: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z" }));
|
|
257
275
|
}, warning: function(e) {
|
|
@@ -262,59 +280,60 @@ const _e = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = (e) => {
|
|
|
262
280
|
return y.createElement(te, { ...e }, y.createElement("path", { d: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z" }));
|
|
263
281
|
}, spinner: function() {
|
|
264
282
|
return y.createElement("div", { className: "Toastify__spinner" });
|
|
265
|
-
} },
|
|
266
|
-
const { isRunning: t, preventExitTransition:
|
|
267
|
-
let { theme:
|
|
268
|
-
const U = { theme:
|
|
269
|
-
return B === !1 || (k(B) ? V = B({ ...U, isLoading: x }) : b.isValidElement(B) ? V = b.cloneElement(B, U) : x ? V = re.spinner() : ((
|
|
270
|
-
}(e), H = !!L || !p, j = { closeToast: I, type:
|
|
283
|
+
} }, Le = (e) => {
|
|
284
|
+
const { isRunning: t, preventExitTransition: n, toastRef: s, eventHandlers: a, playToast: u } = Te(e), { closeButton: o, children: E, autoClose: p, onClick: _, type: d, hideProgressBar: C, closeToast: I, transition: N, position: m, className: c, style: T, bodyClassName: f, bodyStyle: l, progressClassName: r, progressStyle: g, updateId: A, role: O, progress: L, rtl: i, toastId: v, deleteToast: w, isIn: R, isLoading: S, closeOnClick: Y, theme: z } = e, Q = F("Toastify__toast", `Toastify__toast-theme--${z}`, `Toastify__toast--${d}`, { "Toastify__toast--rtl": i }, { "Toastify__toast--close-on-click": Y }), Z = k(c) ? c({ rtl: i, position: m, type: d, defaultClassName: Q }) : F(Q, c), D = function(X) {
|
|
285
|
+
let { theme: M, type: P, isLoading: x, icon: B } = X, V = null;
|
|
286
|
+
const U = { theme: M, type: P };
|
|
287
|
+
return B === !1 || (k(B) ? V = B({ ...U, isLoading: x }) : b.isValidElement(B) ? V = b.cloneElement(B, U) : x ? V = re.spinner() : ((ye) => ye in re)(P) && (V = re[P](U))), V;
|
|
288
|
+
}(e), H = !!L || !p, j = { closeToast: I, type: d, theme: z };
|
|
271
289
|
let W = null;
|
|
272
|
-
return
|
|
273
|
-
let { closeToast:
|
|
290
|
+
return o === !1 || (W = k(o) ? o(j) : b.isValidElement(o) ? b.cloneElement(o, j) : function(X) {
|
|
291
|
+
let { closeToast: M, theme: P, ariaLabel: x = "close" } = X;
|
|
274
292
|
return y.createElement("button", { className: `Toastify__close-button Toastify__close-button--${P}`, type: "button", onClick: (B) => {
|
|
275
|
-
B.stopPropagation(),
|
|
293
|
+
B.stopPropagation(), M(B);
|
|
276
294
|
}, "aria-label": x }, y.createElement("svg", { "aria-hidden": "true", viewBox: "0 0 14 16" }, y.createElement("path", { fillRule: "evenodd", d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z" })));
|
|
277
|
-
}(j)), y.createElement(N, { isIn: R, done: w, position: m, preventExitTransition:
|
|
295
|
+
}(j)), y.createElement(N, { isIn: R, done: w, position: m, preventExitTransition: n, nodeRef: s, playToast: u }, y.createElement("div", { id: v, onClick: _, "data-in": R, className: Z, ...a, style: T, ref: s }, y.createElement("div", { ...R && { role: O }, className: k(f) ? f({ type: d }) : F("Toastify__toast-body", f), style: l }, D != null && y.createElement("div", { className: F("Toastify__toast-icon", { "Toastify--animate-icon Toastify__zoom-enter": !S }) }, D), y.createElement("div", null, E)), W, y.createElement(be, { ...A && !H ? { key: `pb-${A}` } : {}, rtl: i, theme: z, delay: p, isRunning: t, isIn: R, closeToast: I, hide: C, type: d, style: g, className: r, controlledProgress: H, progress: L || 0 })));
|
|
278
296
|
}, ae = function(e, t) {
|
|
279
297
|
return t === void 0 && (t = !1), { enter: `Toastify--animate Toastify__${e}-enter`, exit: `Toastify--animate Toastify__${e}-exit`, appendPosition: t };
|
|
280
|
-
},
|
|
298
|
+
}, Ne = se(ae("bounce", !0));
|
|
281
299
|
se(ae("slide", !0));
|
|
282
300
|
se(ae("zoom"));
|
|
283
301
|
se(ae("flip"));
|
|
284
|
-
const
|
|
302
|
+
const $e = { position: "top-right", transition: Ne, autoClose: 5e3, closeButton: !0, pauseOnHover: !0, pauseOnFocusLoss: !0, draggable: "touch", draggablePercent: 80, draggableDirection: "x", role: "alert", theme: "light" };
|
|
285
303
|
function ke(e) {
|
|
286
|
-
let t = {
|
|
287
|
-
const
|
|
304
|
+
let t = { ...$e, ...e };
|
|
305
|
+
const n = e.stacked, [s, a] = b.useState(!0), u = b.useRef(null), { getToastToRender: o, isToastActive: E, count: p } = Ee(t), { className: _, style: d, rtl: C, containerId: I } = t;
|
|
288
306
|
function N(c) {
|
|
289
307
|
const T = F("Toastify__toast-container", `Toastify__toast-container--${c}`, { "Toastify__toast-container--rtl": C });
|
|
290
308
|
return k(_) ? _({ position: c, rtl: C, defaultClassName: T }) : F(T, ne(_));
|
|
291
309
|
}
|
|
292
310
|
function m() {
|
|
293
|
-
|
|
311
|
+
n && (a(!0), h.play());
|
|
294
312
|
}
|
|
295
|
-
return
|
|
296
|
-
if (
|
|
313
|
+
return Ce(() => {
|
|
314
|
+
if (n) {
|
|
297
315
|
var c;
|
|
298
|
-
const T =
|
|
299
|
-
let
|
|
300
|
-
Array.from(T).reverse().forEach((
|
|
301
|
-
const L =
|
|
302
|
-
L.classList.add("Toastify__toast--stacked"), O > 0 && (L.dataset.collapsed = `${
|
|
303
|
-
const i =
|
|
304
|
-
L.style.setProperty("--y", `${l ? i : -1 * i}px`), L.style.setProperty("--g", `${f}`), L.style.setProperty("--s", "" + (1 - (
|
|
316
|
+
const T = u.current.querySelectorAll('[data-in="true"]'), f = 12, l = (c = t.position) == null ? void 0 : c.includes("top");
|
|
317
|
+
let r = 0, g = 0;
|
|
318
|
+
Array.from(T).reverse().forEach((A, O) => {
|
|
319
|
+
const L = A;
|
|
320
|
+
L.classList.add("Toastify__toast--stacked"), O > 0 && (L.dataset.collapsed = `${s}`), L.dataset.pos || (L.dataset.pos = l ? "top" : "bot");
|
|
321
|
+
const i = r * (s ? 0.2 : 1) + (s ? 0 : f * O);
|
|
322
|
+
L.style.setProperty("--y", `${l ? i : -1 * i}px`), L.style.setProperty("--g", `${f}`), L.style.setProperty("--s", "" + (1 - (s ? g : 0))), r += L.offsetHeight, g += 0.025;
|
|
305
323
|
});
|
|
306
324
|
}
|
|
307
|
-
}, [
|
|
308
|
-
|
|
309
|
-
}, onMouseLeave: m },
|
|
310
|
-
const f = T.length ? { ...
|
|
325
|
+
}, [s, p, n]), y.createElement("div", { ref: u, className: "Toastify", id: I, onMouseEnter: () => {
|
|
326
|
+
n && (a(!1), h.pause());
|
|
327
|
+
}, onMouseLeave: m }, o((c, T) => {
|
|
328
|
+
const f = T.length ? { ...d } : { ...d, pointerEvents: "none" };
|
|
311
329
|
return y.createElement("div", { className: N(c), style: f, key: `container-${c}` }, T.map((l) => {
|
|
312
|
-
let { content:
|
|
313
|
-
return y.createElement(
|
|
330
|
+
let { content: r, props: g } = l;
|
|
331
|
+
return y.createElement(Le, { ...g, stacked: n, collapseAll: m, isIn: E(g.toastId, g.containerId), style: g.style, key: `toast-${g.key}` }, r);
|
|
314
332
|
}));
|
|
315
333
|
}));
|
|
316
334
|
}
|
|
317
335
|
export {
|
|
318
336
|
h as B,
|
|
319
|
-
ke as Q
|
|
337
|
+
ke as Q,
|
|
338
|
+
F as c
|
|
320
339
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as t, j as s } from "../react-to-web-component-
|
|
2
|
-
import { Q as e } from "../react-toastify.esm-
|
|
1
|
+
import { s as t, j as s } from "../react-to-web-component-C4-Jmrxs.js";
|
|
2
|
+
import { Q as e } from "../react-toastify.esm-C4-Xv2fh.js";
|
|
3
3
|
const n = (o) => /* @__PURE__ */ s.jsx(
|
|
4
4
|
e,
|
|
5
5
|
{
|