layerpro 2.3.0 → 2.5.0

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/index.cjs CHANGED
@@ -1,6 +1,4 @@
1
- ;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:linear-gradient( 45deg,#162858 60%,rgba(34,78,145,0.5411764706) 100%) !important;}#popup .zHigh{border-top-color:#278ed0 !important;box-shadow:0 -15px 20px -10px rgba(30,150,255,0.5),0 0 15px rgba(0,0,0,0.7) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class^=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:rgba(0,0,0,0.3);z-index:1;}#popup [class^=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,0.3);overflow:hidden;}#popup [class^=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:10px;background:gray;}#popup [class^=popup_bar_]{display:flex;width:100%;height:36px;background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);border-bottom:2px solid #555;box-shadow:0 1px 1px #888;z-index:2;}#popup [class^=popup_drag_]{width:100%;padding:10px 0 0 10px;color:#eee;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class^=popup_icon_]{padding:8px 0 0 10px;color:#eee;font-size:1.1em;}#popup [class^=popup_option_]{display:flex;margin-right:15px;}#popup [class^=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class^=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class^=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class^=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class^=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class^=popup_option_] button:hover::after{opacity:1;}#popup [class^=popup_option_] button [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:linear-gradient( 0deg,rgb(60,60,60) 0%,#4a4a4f 100%);}#popup [class^=popup_body_]{position:absolute;inset:0;color:#eee;text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+C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5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Im1heGltaXplLnN2ZyIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8vc29kaXBvZGkuc291cmNlZm9yZ2UubmV0L0RURC9zb2RpcG9kaS0wLmR0ZCIKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG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AuMjY1MzcgMC42OTI2MDk5NSwwLjI2NTM3IDAuOTU3OTg5OTUsMCBsIDEuMjI0MjEsLTEuMjI0MTcgMS4yMjQyMDgsMS4yMjQxNyBjIDAuMTMyNjkyLDAuMTMyNjggMC4zMDU4MywwLjE5OTI3IDAuNDc4OTkxLDAuMTk5MjcgMC4wNDMzLDAgMC4wODY3LC0wLjAwNCAwLjEyOTM3OSwtMC4wMTI1IDAuMTI3OTcxLC0wLjAyNDkgMC4yNTAxLC0wLjA4NzIgMC4zNDk2MiwtMC4xODY3NiAwLjAzMzIsLTAuMDMzMiAwLjA2MjMsLTAuMDY4NiAwLjA4NzEsLTAuMTA2MTQgMC4xNzQxNiwtMC4yNjMxOSAwLjE0NTA2OSwtMC42MTk0NiAtMC4wODcxLC0wLjg1MTY2IGwgLTEuMjI0MjA4LC0xLjIyNDE3IDEuMjI0MjA4LC0xLjIyNDE3IGMgMC4yNjUzNywtMC4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();"use strict";
2
-
3
- var e = require("react-dom/client");
1
+ ;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:linear-gradient( 45deg,#162858 60%,rgba(34,78,145,0.5411764706) 100%) !important;}#popup .zHigh{border-top-color:#278ed0 !important;box-shadow:0 -15px 20px -10px rgba(30,150,255,0.5),0 0 15px rgba(0,0,0,0.7) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class^=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:rgba(0,0,0,0.3);z-index:1;}#popup [class^=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,0.3);overflow:hidden;}#popup [class^=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:10px;background:gray;}#popup [class^=popup_bar_]{display:flex;width:100%;height:36px;background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);border-bottom:2px solid #555;box-shadow:0 1px 1px #888;z-index:2;}#popup [class^=popup_drag_]{width:100%;padding:10px 0 0 10px;color:#eee;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class^=popup_icon_]{padding:8px 0 0 10px;color:#eee;font-size:1.1em;}#popup [class^=popup_option_]{display:flex;margin-right:15px;}#popup [class^=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class^=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class^=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class^=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class^=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class^=popup_option_] button:hover::after{opacity:1;}#popup [class^=popup_option_] button [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:linear-gradient( 0deg,rgb(60,60,60) 0%,#4a4a4f 100%);}#popup [class^=popup_body_]{position:absolute;inset:0;color:#eee;text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0a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yMjQxNyBjIDAuMTMyNjkyLDAuMTMyNjggMC4zMDU4MywwLjE5OTI3IDAuNDc4OTkxLDAuMTk5MjcgMC4wNDMzLDAgMC4wODY3LC0wLjAwNCAwLjEyOTM3OSwtMC4wMTI1IDAuMTI3OTcxLC0wLjAyNDkgMC4yNTAxLC0wLjA4NzIgMC4zNDk2MiwtMC4xODY3NiAwLjAzMzIsLTAuMDMzMiAwLjA2MjMsLTAuMDY4NiAwLjA4NzEsLTAuMTA2MTQgMC4xNzQxNiwtMC4yNjMxOSAwLjE0NTA2OSwtMC42MTk0NiAtMC4wODcxLC0wLjg1MTY2IGwgLTEuMjI0MjA4LC0xLjIyNDE3IDEuMjI0MjA4LC0xLjIyNDE3IGMgMC4yNjUzNywtMC4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}.popup_alert,.popup_message,.popup_prompt,.popup_confirm{height:calc(100% - 41px);box-shadow:0 1px 1px #888;overflow:auto;padding:20px;word-break:break-all;}.popup_alert input[type=text],.popup_message input[type=text],.popup_prompt input[type=text],.popup_confirm input[type=text]{position:relative;width:90%;height:35px;padding:5px;font-size:1.05em;border:2px solid rgba(0,0,0,0.3);border-radius:6px;color:#ddd;background-color:#4a4a4f;}.popup_window___alert #a___alert,.popup_window___alert #a___message,.popup_window___message #a___alert,.popup_window___message #a___message{width:100% !important;}.popup_window___prompt #a___alert,.popup_window___prompt #b___alert,.popup_window___prompt #a___message,.popup_window___prompt #b___message,.popup_window___confirm #a___alert,.popup_window___confirm #b___alert,.popup_window___confirm #a___message,.popup_window___confirm #b___message{width:50% !important;}.resize_0,.resize_1,.resize_2,.resize_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);}.resize_0{top:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_1{top:0;right:-4px;width:10px;height:100%;cursor:e-resize;}.resize_2{bottom:-4px;left:0;width:100%;height:10px;cursor:n-resize;}.resize_3{top:0;left:-4px;width:10px;height:100%;cursor:e-resize;}.resize_corner_0,.resize_corner_1,.resize_corner_2,.resize_corner_3{position:absolute;background-color:var(--resize-background-color);border-radius:var(--border-radius);opacity:0;z-index:5000;transition:var(--transition-time);width:var(--corner-size);height:var(--corner-size);border-radius:var(--corner-border-radius);}.resize_corner_0{top:-4px;left:-4px;cursor:nw-resize;}.resize_corner_1{top:-4px;right:-4px;cursor:ne-resize;}.resize_corner_2{bottom:-4px;right:-4px;cursor:nw-resize;}.resize_corner_3{bottom:-4px;left:-4px;cursor:ne-resize;}.resize_0:hover,.resize_1:hover,.resize_2:hover,.resize_3:hover,.resize_corner_0:hover,.resize_corner_1:hover,.resize_corner_2:hover,.resize_corner_3:hover{opacity:var(--hover-opacity);filter:var(--hover-filter);box-shadow:var(--resize-shadow);transition:var(--transition-time);}#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();var e = require("react-dom/client");
4
2
 
5
3
  function o(e) {
6
4
  return e && e.__esModule ? e : {
@@ -8,14 +6,14 @@ function o(e) {
8
6
  };
9
7
  }
10
8
 
11
- var t, i, n, p, s, r, c, a = o(require("jquery")), d = Object.defineProperty, u = Object.getOwnPropertyNames, l = (e, o) => function() {
12
- return e && (o = (0, e[u(e)[0]])(e = 0)), o;
9
+ var t, i, p, n, s, r, c, a = o(require("jquery")), d = Object.defineProperty, l = Object.getOwnPropertyNames, u = (e, o) => function() {
10
+ return e && (o = (0, e[l(e)[0]])(e = 0)), o;
13
11
  }, h = (e, o) => {
14
12
  for (var t in o) d(e, t, {
15
13
  get: o[t],
16
14
  enumerable: !0
17
15
  });
18
- }, m = l({
16
+ }, m = u({
19
17
  "core/credits.ts"() {
20
18
  t = e => {}, Object.defineProperty(layerpro, "credits", {
21
19
  value: t,
@@ -30,13 +28,13 @@ h({}, {
30
28
  mouseCoord: () => i
31
29
  });
32
30
 
33
- var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q, D, X, Y, U, K, B, F, J, Q, G, V, Z, ee = l({
31
+ var b, _, f, v, g, y, w, z, k, x, T, C, E, S, M, I, N, O, A, L, P, j, H, R, W, q, D, X, Y, U, B, K, F, J, Q, G, V, Z, ee = u({
34
32
  "core/mouseCoords.ts"() {
35
- i = e => [ e.clientX, e.clientY, e.screenX, e.screenY, e.pageX, e.pageY ], n = 0,
36
- p = "", s = 0, r = 0, c = e => (n = s < e.pageX ? 1 : 0, p = r < e.pageY ? "down" : "up",
37
- s = e.pageX, r = e.pageY, [ n, p ]);
33
+ i = e => [ e.clientX, e.clientY, e.screenX, e.screenY, e.pageX, e.pageY ], p = 0,
34
+ n = "", s = 0, r = 0, c = e => (p = s < e.pageX ? 1 : 0, n = r < e.pageY ? "down" : "up",
35
+ s = e.pageX, r = e.pageY, [ p, n ]);
38
36
  }
39
- }), oe = l({
37
+ }), oe = u({
40
38
  "core/message.ts"() {
41
39
  b = {
42
40
  "&": "&amp;",
@@ -45,7 +43,7 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
45
43
  '"': "&quot;",
46
44
  "'": "&#39;"
47
45
  }, _ = e => e.replace(/[&<>"']/g, e => b[e]), f = e => {
48
- const o = _(String(e)), t = window.layerpro.popup.open({
46
+ const o = _(String(e)), t = layerpro.popup.open({
49
47
  id: "__alert",
50
48
  name: "Warning",
51
49
  icon: "&#9888;",
@@ -61,10 +59,10 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
61
59
  resizable: !1
62
60
  }), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${o}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + t.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
63
61
  $(".popup_body_" + t.id).html(i), $("#a_" + t.id).on("click", () => {
64
- window.layerpro.popup.close(t);
62
+ layerpro.popup.close(t);
65
63
  });
66
64
  }, v = (e, o) => {
67
- const t = _(String(e)), i = window.layerpro.popup.open({
65
+ const t = _(String(e)), i = layerpro.popup.open({
68
66
  id: "__message",
69
67
  name: "Message",
70
68
  icon: "&#9965;",
@@ -78,13 +76,13 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
78
76
  raised: !0,
79
77
  movable: !0,
80
78
  resizable: !1
81
- }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
82
- $(".popup_body_" + i.id).html(n), $("#a_" + i.id).on("click", () => {
83
- o && o(), window.layerpro.popup.close(i);
79
+ }), p = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
80
+ $(".popup_body_" + i.id).html(p), $("#a_" + i.id).on("click", () => {
81
+ o && o(), layerpro.popup.close(i);
84
82
  });
85
83
  }, g = (e, o, t) => {
86
84
  if (0 === $(".confirm").length) {
87
- const i = _(String(e)), n = window.layerpro.popup.open({
85
+ const i = _(String(e)), p = layerpro.popup.open({
88
86
  id: "__confirm",
89
87
  name: "Confirm",
90
88
  icon: "&#9745;",
@@ -98,15 +96,15 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
98
96
  raised: !0,
99
97
  movable: !0,
100
98
  resizable: !1
101
- }), p = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
102
- $(".popup_body_" + n.id).html(p), $("#a_" + n.id).on("click", () => {
103
- o && o(), window.layerpro.popup.close(n);
104
- }), $("#b_" + n.id).on("click", () => {
105
- t && t(), window.layerpro.popup.close(n);
99
+ }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + p.id}" type="button">CONFIRM</button>\n <button id="${"b_" + p.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
100
+ $(".popup_body_" + p.id).html(n), $("#a_" + p.id).on("click", () => {
101
+ o && o(), layerpro.popup.close(p);
102
+ }), $("#b_" + p.id).on("click", () => {
103
+ t && t(), layerpro.popup.close(p);
106
104
  });
107
105
  }
108
- }, w = (e, o) => {
109
- const t = o || "_prompt", i = _(String(e)), n = window.layerpro.popup.open({
106
+ }, y = (e, o) => {
107
+ const t = o || "_prompt", i = _(String(e)), p = layerpro.popup.open({
110
108
  id: "__prompt",
111
109
  name: "Prompt",
112
110
  icon: "&#9998;",
@@ -120,22 +118,25 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
120
118
  raised: !0,
121
119
  movable: !0,
122
120
  resizable: !1
123
- }), p = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${n.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${n.id}" type="button">OK</button>\n <button id="b_${n.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
124
- $(".popup_body_" + n.id).html(p), $("#input_" + n.id).on("focus", function() {
121
+ }), n = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${p.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${p.id}" type="button">OK</button>\n <button id="b_${p.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
122
+ $(".popup_body_" + p.id).html(n), $("#input_" + p.id).on("focus", function() {
125
123
  $(this).attr("placeholder", "");
126
124
  }).on("blur", function() {
127
125
  $(this).attr("placeholder", "write here");
128
- }), $("#a_" + n.id).on("click", () => {
129
- if ($("#input_" + n.id).val() > "") {
130
- "function" == typeof t && t();
131
- if (String(t) === t) return JSON.stringify($("#input_" + n.id).val());
132
- window.layerpro.popup.close(n);
126
+ }), $("#a_" + p.id).on("click", () => {
127
+ if ($("#input_" + p.id).val() > "") {
128
+ if ("function" == typeof t) {
129
+ const e = String(document.getElementById("input___prompt"));
130
+ t(e);
131
+ }
132
+ if (String(t) === t) return JSON.stringify($("#input_" + p.id).val());
133
+ layerpro.popup.close(p);
133
134
  } else alert("input can't be empty!");
134
- }), $("#b_" + n.id).on("click", () => {
135
- window.layerpro.popup.close(n);
135
+ }), $("#b_" + p.id).on("click", () => {
136
+ layerpro.popup.close(p);
136
137
  });
137
- }, window.message = (e, o) => window.layerpro.message(e, o), window.alert = e => window.layerpro.alert(e),
138
- window.confirm = (e, o, t) => window.layerpro.confirm(e, o, t), window.prompt = (e, o, t) => window.layerpro.prompt(e, o, t),
138
+ }, globalThis.message = (e, o) => layerpro.message(e, o), globalThis.alert = e => layerpro.alert(e),
139
+ globalThis.confirm = (e, o, t) => layerpro.confirm(e, o, t), globalThis.prompt = (e, o, t) => layerpro.prompt(e, o, t),
139
140
  Object.defineProperty(window, "alert", {
140
141
  enumerable: !1
141
142
  }), Object.defineProperty(window, "prompt", {
@@ -144,9 +145,9 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
144
145
  enumerable: !1
145
146
  }), Object.defineProperty(window, "confirm", {
146
147
  enumerable: !1
147
- }), Object.defineProperties(window.layerpro, {
148
+ }), Object.defineProperties(layerpro, {
148
149
  prompt: {
149
- value: w
150
+ value: y
150
151
  },
151
152
  alert: {
152
153
  value: f
@@ -159,15 +160,15 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
159
160
  }
160
161
  });
161
162
  }
162
- }), te = l({
163
+ }), te = u({
163
164
  "core/genLayer.ts"() {
164
- oe(), y = new Map, z = new Map, k = {
165
+ oe(), w = new Map, z = new Map, k = {
165
166
  "&": "&amp;",
166
167
  "<": "&lt;",
167
168
  ">": "&gt;",
168
169
  '"': "&quot;",
169
170
  "'": "&#39;"
170
- }, x = e => e.replace(/[&<>"']/g, e => k[e]), C = o => {
171
+ }, x = e => e.replace(/[&<>"']/g, e => k[e]), T = o => {
171
172
  if ("function" == typeof o.body) return;
172
173
  const t = !0 === o.raised ? ".popup_raised_" + o.id : "#popup", i = "#popup" === t ? document.querySelector("#popup") : document.querySelector(t);
173
174
  i?.querySelectorAll('[class^="popup_window_"]').forEach(e => e.classList.remove("zHigh")),
@@ -192,23 +193,23 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
192
193
  }).on("mousedown", e => {
193
194
  layerpro.popup.index(o);
194
195
  }).hide().fadeIn(o.fadeIn);
195
- const n = $('<div class="popup_window_' + o.id + '">', t).appendTo(".popup_overflow_" + o.id).css({
196
+ const p = $('<div class="popup_window_' + o.id + '">', t).appendTo(".popup_overflow_" + o.id).css({
196
197
  "pointer-events": "auto"
197
198
  }).addClass("zHigh").addClass(o.class);
198
199
  0 === [ o.top, o.left, o.bottom, o.right ].reduce((e, o) => "number" == typeof o && isFinite(o) ? Number(e) + o : e, 0) && layerpro.popup.center(o),
199
200
  layerpro.popup.unmount = e => {
200
- const o = y.get(e);
201
- o && (o.unmount(), y.delete(e));
201
+ const o = w.get(e);
202
+ o && (o.unmount(), w.delete(e));
202
203
  }, layerpro.popup.cleanupEvents = e => {
203
204
  const o = z.get(e);
204
205
  o && (o.iconClick && $(".icon_" + e, "#popup_dock").find("span").off("click"), o.iconClose && $(".icon_close_" + e, "#popup_dock").off("click"),
205
206
  o.buttonIconize && $(".button_iconize_" + e).off("click"), o.buttonMaximize && $(".button_maximize_" + e).off("click"),
206
207
  o.buttonClose && $(".button_close_" + e).off("click"), o.escKey && $(document).off("keydown"),
207
208
  z.delete(e));
208
- }, layerpro.popup.getReactRoot = e => y.get(e), $('<div class="popup_bar_' + o.id + '">', t).appendTo(n).addClass("popup_bar_selected"),
209
+ }, layerpro.popup.getReactRoot = e => w.get(e), $('<div class="popup_bar_' + o.id + '">', t).appendTo(p).addClass("popup_bar_selected"),
209
210
  o.icon && $('<div class="popup_icon_' + o.id + '">' + o.icon + "</div>", t).appendTo(".popup_bar_" + o.id);
210
- const p = x(String(o.name));
211
- if ($('<div class="popup_drag_' + o.id + '">' + p + "</div>", t).appendTo(".popup_bar_" + o.id),
211
+ const n = x(String(o.name));
212
+ if ($('<div class="popup_drag_' + o.id + '">' + n + "</div>", t).appendTo(".popup_bar_" + o.id),
212
213
  $('<div class="popup_option_' + o.id + '">', t).appendTo(".popup_bar_" + o.id),
213
214
  !0 === o.iconize && 0 === $("#popup_dock").length) {
214
215
  $("#root").css("margin", "0 0 var( --dock-height ) 0");
@@ -218,17 +219,17 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
218
219
  });
219
220
  }
220
221
  if ($("#popup_dock").length > 0 && !0 === o.dockable) {
221
- const e = String(o.id), t = `\n <div class="icon_${o.id}">\n <span>${o.icon ? o.icon : ""}</span>\n <span>${p}</span>\n `, i = function(e) {
222
+ const e = String(o.id), t = `\n <div class="icon_${o.id}">\n <span>${o.icon ? o.icon : ""}</span>\n <span>${n}</span>\n `, i = function(e) {
222
223
  $(".popup_overflow_" + o.id + ":hidden") ? (layerpro.popup.iconize(o), layerpro.popup.index(o)) : layerpro.popup.iconize(o),
223
224
  layerpro.popup.index(o);
224
- }, n = function(e) {
225
+ }, p = function(e) {
225
226
  o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(), layerpro.popup.close(o);
226
227
  };
227
228
  z.set(e, {
228
229
  iconClick: !0,
229
230
  iconClose: !0
230
231
  }), $(t, "#popup_dock").appendTo("#popup_dock_list").addClass("popup_bar_selected").find("span").on("click", i),
231
- $(`<button class="icon_close_${o.id}">X</button>`, "#popup_dock").appendTo(`.icon_${o.id}`).on("click", n);
232
+ $(`<button class="icon_close_${o.id}">X</button>`, "#popup_dock").appendTo(`.icon_${o.id}`).on("click", p);
232
233
  }
233
234
  if (!0 === o.iconize) {
234
235
  const e = String(o.id), t = function(e) {
@@ -279,7 +280,7 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
279
280
  o.movable && layerpro.popup.movable(o), o.resizable && layerpro.popup.resizable(o),
280
281
  o.isMaximize && layerpro.popup.maximize(o);
281
282
  const c = $('<div class="popup_overflow_' + o.id + '">', "#popup");
282
- $('<div class="popup_internal_' + o.id + '">', c).appendTo(n), $('<div class="popup_body_' + o.id + '">', c).appendTo(".popup_internal_" + o.id).hide().fadeIn(o.fadeIn, function() {
283
+ $('<div class="popup_internal_' + o.id + '">', c).appendTo(p), $('<div class="popup_body_' + o.id + '">', c).appendTo(".popup_internal_" + o.id).hide().fadeIn(o.fadeIn, function() {
283
284
  (() => {
284
285
  if (o.body && !o.source) {
285
286
  const t = o.body, i = "object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props;
@@ -289,7 +290,7 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
289
290
  if (!t) return;
290
291
  try {
291
292
  const i = e.createRoot(t);
292
- i.render(o.body), y.set(String(o.id), i);
293
+ i.render(o.body), w.set(String(o.id), i);
293
294
  } catch (e) {
294
295
  const o = e?.message || String(e);
295
296
  o.includes("Invalid hook call") || o.includes("hooks");
@@ -318,28 +319,28 @@ var b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, q
318
319
  });
319
320
  };
320
321
  }
321
- }), ie = l({
322
+ }), ie = u({
322
323
  "core/mobile.ts"() {
323
- if (E = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches,
324
- S = () => {
324
+ if (C = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches,
325
+ E = () => {
325
326
  if ("undefined" == typeof navigator) return !1;
326
327
  const e = navigator.userAgent;
327
328
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
328
- }, M = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, (N = () => {
329
+ }, S = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, (M = () => {
329
330
  if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
330
- const e = S() || E();
331
- return M() && e ? "touch" : "mouse";
332
- })(), T = !E(), "undefined" != typeof window) {
331
+ const e = E() || C();
332
+ return S() && e ? "touch" : "mouse";
333
+ })(), I = !C(), "undefined" != typeof window) {
333
334
  const e = window.matchMedia("(max-width: 1024px)"), o = () => {
334
- const e = N(), o = !E();
335
- T !== o && (T = o);
335
+ const e = M(), o = !C();
336
+ I !== o && (I = o);
336
337
  };
337
338
  let t;
338
339
  e.addListener ? e.addListener(o) : e.addEventListener("change", o), window.addEventListener("resize", () => {
339
340
  clearTimeout(t), t = setTimeout(o, 150);
340
341
  });
341
342
  }
342
- O = () => "pointerdown", I = () => "pointermove", A = () => "pointerup", L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX,
343
+ N = () => "pointerdown", O = () => "pointermove", A = () => "pointerup", L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX,
343
344
  P = e => void 0 !== e.clientY ? e.clientY : e.touches && e.touches.length > 0 ? e.touches[0].clientY : e.clientY;
344
345
  }
345
346
  });
@@ -348,7 +349,7 @@ h({}, {
348
349
  popup: () => Z
349
350
  });
350
351
 
351
- var ne, pe = l({
352
+ var pe = u({
352
353
  "core/properties.ts"() {
353
354
  te(), ie(), j = 250, H = 150, W = 1e3, J = new Map, Q = new Map, G = $(window),
354
355
  V = $("body"), Z = {
@@ -366,8 +367,7 @@ var ne, pe = l({
366
367
  "auto" === e.height && (e.height = "100%"), 0 === $("#popup").length && $('<div id="popup">', "#popup").appendTo("body").css({
367
368
  "pointer-events": "none",
368
369
  "z-index": Z.zIndex($("*")) + 1
369
- }), 0 === $(".popup_window_" + e.id, "#popup").length && C(e), layerpro.purge(document),
370
- e;
370
+ }), 0 === $(".popup_window_" + e.id, "#popup").length && T(e), e;
371
371
  },
372
372
  dispatch: e => {
373
373
  layerpro.popup.store(e);
@@ -398,7 +398,7 @@ var ne, pe = l({
398
398
  const e = {
399
399
  passive: !1
400
400
  };
401
- t.move && document.removeEventListener(I(), t.move, e), t.up && document.removeEventListener(A(), t.up, e),
401
+ t.move && document.removeEventListener(O(), t.move, e), t.up && document.removeEventListener(A(), t.up, e),
402
402
  J.delete(String(o));
403
403
  }
404
404
  const i = Q.get(String(o));
@@ -406,7 +406,7 @@ var ne, pe = l({
406
406
  const e = {
407
407
  passive: !1
408
408
  };
409
- i.move && document.removeEventListener(I(), i.move, e), i.up && document.removeEventListener(A(), i.up, e),
409
+ i.move && document.removeEventListener(O(), i.move, e), i.up && document.removeEventListener(A(), i.up, e),
410
410
  Q.delete(String(o));
411
411
  }
412
412
  !0 === e.raised ? $(".popup_raised_" + o).fadeOut(e.fadeOut || 500, e => {
@@ -419,7 +419,7 @@ var ne, pe = l({
419
419
  } else $("#popup").fadeOut(() => {
420
420
  $(void 0).remove();
421
421
  });
422
- layerpro.purge(document), setTimeout(() => Z.removeDock(e), 300);
422
+ setTimeout(() => Z.removeDock(e), 300);
423
423
  },
424
424
  removeDock: e => {
425
425
  $(".icon_" + e.id).remove(), $('[class^="popup_overflow_"]', "#popup").length < 1 && ($("#root").css("margin", "0"),
@@ -456,14 +456,14 @@ var ne, pe = l({
456
456
  const o = $(".popup_overflow_" + e.id, "#popup"), t = $('[class^="resize_"]', o), i = $('[class^="popup_drag_"]', o);
457
457
  if (Z.vfx(o, !1, !0), o.data("store")) {
458
458
  if (o.data("store")) {
459
- const n = o.data("store");
459
+ const p = o.data("store");
460
460
  o.animate({
461
- top: n.y,
462
- left: n.x,
463
- width: n.w,
464
- height: n.h
461
+ top: p.y,
462
+ left: p.x,
463
+ width: p.w,
464
+ height: p.h
465
465
  }, () => {
466
- i.css("pointer-events", "auto"), t.on(O(), function(o) {
466
+ i.css("pointer-events", "auto"), t.on(N(), function(o) {
467
467
  Z.resizeModals(o, this, e);
468
468
  }), G.off("layerProResize.eventItem"), Z.vfx(o, !0);
469
469
  }), o.removeData("store");
@@ -487,43 +487,43 @@ var ne, pe = l({
487
487
  width: G.width() + 12,
488
488
  height: G.height() + 12 - 40
489
489
  });
490
- }), i.css("pointer-events", "none"), t.off(O()), Z.vfx(o, !0, !0);
490
+ }), i.css("pointer-events", "none"), t.off(N()), Z.vfx(o, !0, !0);
491
491
  });
492
492
  },
493
493
  movable: e => {
494
494
  if (!1 === e.movable) return;
495
- const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup"), i = $(".popup_drag_" + e.id, t), n = $(".popup_body_" + e.id, t);
495
+ const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup"), i = $(".popup_drag_" + e.id, t), p = $(".popup_body_" + e.id, t);
496
496
  t.css("touch-action", "none");
497
- let p = 0, s = 0, r = 0, c = 0;
497
+ let n = 0, s = 0, r = 0, c = 0;
498
498
  const a = e => {
499
499
  e.preventDefault();
500
500
  const o = L(e), i = P(e);
501
- p = r - o, s = c - i, r = o, c = i, Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && t.css("top", t.offset().top - s),
502
- Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && t.css("left", t.offset().left - p);
501
+ n = r - o, s = c - i, r = o, c = i, Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && t.css("top", t.offset().top - s),
502
+ Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && t.css("left", t.offset().left - n);
503
503
  }, d = e => {
504
504
  const i = {
505
505
  passive: !1
506
506
  };
507
- document.removeEventListener(I(), a, i), document.removeEventListener(A(), d, i),
508
- J.delete(o), n.css("pointer-events", "auto"), Z.vfx(t, !0);
507
+ document.removeEventListener(O(), a, i), document.removeEventListener(A(), d, i),
508
+ J.delete(o), p.css("pointer-events", "auto"), Z.vfx(t, !0);
509
509
  };
510
510
  J.set(o, {
511
511
  move: a,
512
512
  up: d
513
513
  });
514
- i[0].addEventListener(O(), e => {
515
- e.preventDefault(), n.css("pointer-events", "none"), u(e), Z.vfx(t, !1);
514
+ i[0].addEventListener(N(), e => {
515
+ e.preventDefault(), p.css("pointer-events", "none"), l(e), Z.vfx(t, !1);
516
516
  }, {
517
517
  passive: !1
518
518
  }), e.maximize && i.on("dblclick", o => {
519
519
  layerpro.popup.maximize(e);
520
520
  });
521
- const u = e => {
521
+ const l = e => {
522
522
  r = L(e), c = P(e);
523
523
  const o = {
524
524
  passive: !1
525
525
  };
526
- document.addEventListener(I(), a, o), document.addEventListener(A(), d, o);
526
+ document.addEventListener(O(), a, o), document.addEventListener(A(), d, o);
527
527
  };
528
528
  },
529
529
  resizable: e => {
@@ -535,41 +535,41 @@ var ne, pe = l({
535
535
  i.down = function(o) {
536
536
  Z.resizeModals(o, this, e);
537
537
  }, Q.set(o, i);
538
- const n = {
538
+ const p = {
539
539
  passive: !1
540
540
  };
541
541
  $("[class^=resize_]").each((o, t) => {
542
- t.addEventListener(O(), o => {
542
+ t.addEventListener(N(), o => {
543
543
  o.preventDefault(), Z.resizeModals(o, t, e);
544
- }, n);
544
+ }, p);
545
545
  });
546
546
  },
547
547
  resizeModals: (e, o, t) => {
548
- const i = $(o).parent(), n = String(t.id), p = L(e), s = P(e), r = [ p - G.scrollLeft(), s - G.scrollTop() ];
548
+ const i = $(o).parent(), p = String(t.id), n = L(e), s = P(e), r = [ n - G.scrollLeft(), s - G.scrollTop() ];
549
549
  t.minWidth, V.css("pointer-events", "none"), i.css("pointer-events", "none"), Z.vfx(i, !1);
550
550
  const c = e => {
551
551
  Z.doRes(e, o);
552
552
  }, a = e => {
553
553
  Z.stopRes(o);
554
- }, d = Q.get(n) || {};
555
- d.move = c, d.up = a, Q.set(n, d);
556
- const u = {
554
+ }, d = Q.get(p) || {};
555
+ d.move = c, d.up = a, Q.set(p, d);
556
+ const l = {
557
557
  passive: !1
558
558
  };
559
- document.addEventListener(I(), c, u), document.addEventListener(A(), a, u), q = r[0],
560
- D = r[1], X = i.width(), Y = i.height(), U = i.position().left, K = i.position().top,
561
- B = K + Y + 1, F = U + X + 1, R = o;
559
+ document.addEventListener(O(), c, l), document.addEventListener(A(), a, l), q = r[0],
560
+ D = r[1], X = i.width(), Y = i.height(), U = i.position().left, B = i.position().top,
561
+ K = B + Y + 1, F = U + X + 1, R = o;
562
562
  },
563
563
  doRes: (e, o) => {
564
564
  dispatchEvent(new Event("layerProResize"));
565
- const t = $(o), i = t.parent(), n = L(e), p = P(e), s = [ n - G.scrollLeft(), p - G.scrollTop() ];
565
+ const t = $(o), i = t.parent(), p = L(e), n = P(e), s = [ p - G.scrollLeft(), n - G.scrollTop() ];
566
566
  if (o === R) {
567
- let o = X + s[0] - q, n = Y + s[1] - D;
568
- const p = X - s[0] + q, r = Y - s[1] + D;
569
- o <= 0 && (o = 0), n <= 0 && (n = 0), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && t.hasClass("resize_0") && (i.height() <= H && r > H && i.css({
567
+ let o = X + s[0] - q, p = Y + s[1] - D;
568
+ const n = X - s[0] + q, r = Y - s[1] + D;
569
+ o <= 0 && (o = 0), p <= 0 && (p = 0), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && t.hasClass("resize_0") && (i.height() <= H && r > H && i.css({
570
570
  height: Number(H + 1)
571
571
  }), i.height() > H && H <= r && i.css({
572
- top: Number(B - r),
572
+ top: Number(K - r),
573
573
  height: parseInt(r)
574
574
  })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && t.hasClass("resize_1") && (i.width() >= j && i.css({
575
575
  width: Number(o),
@@ -577,51 +577,51 @@ var ne, pe = l({
577
577
  }), i.width() <= j && i.css({
578
578
  width: Number(j + 1)
579
579
  })), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && t.hasClass("resize_2") && (i.height() >= H && i.css({
580
- height: Number(n)
581
- }), i.height() <= H && n > H && i.css({
580
+ height: Number(p)
581
+ }), i.height() <= H && p > H && i.css({
582
582
  height: Number(H + 1)
583
- })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && t.hasClass("resize_3") && (i.width() <= j && p > j && i.css({
583
+ })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && t.hasClass("resize_3") && (i.width() <= j && n > j && i.css({
584
584
  width: Number(j + 1)
585
- }), i.width() > j && j <= p && i.css({
586
- width: parseInt(p),
587
- left: Number(F - p)
585
+ }), i.width() > j && j <= n && i.css({
586
+ width: parseInt(n),
587
+ left: Number(F - n)
588
588
  })), Z.checkArea(e)[1] < Z.checkArea(e)[4] && Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && 1 === Math.sign(Z.checkArea(e)[1]) && (t.hasClass("resize_corner_0") && (i.height() >= H && r > H && i.css({
589
- top: Number(B - r),
589
+ top: Number(K - r),
590
590
  height: parseInt(r)
591
591
  }), i.height() <= H && r > H && i.css({
592
592
  height: Number(H + 1)
593
- }), i.width() >= j && p > j && i.css({
594
- width: parseInt(p),
595
- left: Number(F - p)
596
- }), i.width() <= j && p > j && i.css({
593
+ }), i.width() >= j && n > j && i.css({
594
+ width: parseInt(n),
595
+ left: Number(F - n)
596
+ }), i.width() <= j && n > j && i.css({
597
597
  width: Number(j + 1)
598
598
  })), t.hasClass("resize_corner_1") && (i.height() >= H && r > H && i.css({
599
- top: Number(B - r),
599
+ top: Number(K - r),
600
600
  height: Number(r)
601
601
  }), i.height() <= H && r > H && i.css({
602
602
  height: Number(H + 1)
603
603
  }), i.width() >= j && i.css({
604
604
  width: Number(o),
605
605
  right: Number(U - o)
606
- }), i.width() <= j && p > j && i.css({
606
+ }), i.width() <= j && n > j && i.css({
607
607
  width: Number(j + 1)
608
608
  })), t.hasClass("resize_corner_2") && (i.height() >= H && i.css({
609
- height: Number(n)
610
- }), i.height() <= H && n > H && i.css({
609
+ height: Number(p)
610
+ }), i.height() <= H && p > H && i.css({
611
611
  height: Number(H + 1)
612
612
  }), i.width() >= j && i.css({
613
613
  width: Number(o),
614
614
  right: Number(U - o)
615
615
  }), i.width() <= j && i.css({
616
616
  width: Number(j + 1)
617
- })), t.hasClass("resize_corner_3") && (i.height() >= H && n > H && i.css({
618
- height: Number(n)
619
- }), i.height() <= H && n > H && i.css({
617
+ })), t.hasClass("resize_corner_3") && (i.height() >= H && p > H && i.css({
618
+ height: Number(p)
619
+ }), i.height() <= H && p > H && i.css({
620
620
  height: Number(H + 1)
621
- }), i.width() >= j && p > j && i.css({
622
- width: Number(p),
623
- left: Number(F - p)
624
- }), i.width() <= j && p > j && i.css({
621
+ }), i.width() >= j && n > j && i.css({
622
+ width: Number(n),
623
+ left: Number(F - n)
624
+ }), i.width() <= j && n > j && i.css({
625
625
  width: Number(j + 1)
626
626
  })));
627
627
  }
@@ -635,7 +635,7 @@ var ne, pe = l({
635
635
  const o = {
636
636
  passive: !1
637
637
  };
638
- t.move && document.removeEventListener(I(), t.move, o), t.up && document.removeEventListener(A(), t.up, o),
638
+ t.move && document.removeEventListener(O(), t.move, o), t.up && document.removeEventListener(A(), t.up, o),
639
639
  Q.delete(String(e));
640
640
  }
641
641
  },
@@ -654,19 +654,7 @@ var ne, pe = l({
654
654
  configurable: !1
655
655
  });
656
656
  }
657
- }), se = l({
658
- "core/purge.ts"() {
659
- ne = e => {
660
- let o, t, i = e.attributes;
661
- if (i) for (t = i.length, o = 0; o < t; o += 1) i[o].name;
662
- if (i = e.childNodes, i) for (t = i.length, o = 0; o < t; o += 1) layerpro.purge(e.childNodes[o]);
663
- }, Object.defineProperty(layerpro, "purge", {
664
- value: new Proxy(ne, {}),
665
- writable: !1,
666
- configurable: !1
667
- });
668
- }
669
- }), re = l({
657
+ }), ne = u({
670
658
  "core/window.ts"() {
671
659
  window.offScreenBuffering = !0, addEventListener("wheel", e => {}, {
672
660
  capture: !0,
@@ -682,7 +670,7 @@ window.layerpro || (Object.defineProperty(window, "layerpro", {
682
670
  writable: !1,
683
671
  configurable: !1,
684
672
  enumerable: !1
685
- }), m(), ee(), pe(), se(), re(), layerpro.setProps = (e, o) => {
673
+ }), m(), ee(), pe(), ne(), layerpro.setProps = (e, o) => {
686
674
  Reflect.ownKeys(e).forEach(t => {
687
675
  const i = Object.getOwnPropertyDescriptor(e, t);
688
676
  i && (i.enumerable = o?.enumerable || !1, i.configurable = o?.enumerable || !1,
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  import o from "jquery";
4
4
 
5
- var t, i, n, p, s, r, c, a = Object.defineProperty, d = Object.getOwnPropertyNames, l = (e, o) => function() {
5
+ var t, i, p, n, s, r, c, a = Object.defineProperty, d = Object.getOwnPropertyNames, l = (e, o) => function() {
6
6
  return e && (o = (0, e[d(e)[0]])(e = 0)), o;
7
7
  }, u = (e, o) => {
8
8
  for (var t in o) a(e, t, {
@@ -24,11 +24,11 @@ u({}, {
24
24
  mouseCoord: () => i
25
25
  });
26
26
 
27
- var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W, D, X, q, Y, U, K, B, F, J, Q, G, V, Z = l({
27
+ var m, b, _, f, v, g, y, w, z, k, x, T, C, E, S, M, I, N, O, A, L, P, j, H, R, W, D, X, q, Y, U, B, K, F, J, Q, G, V, Z = l({
28
28
  "core/mouseCoords.ts"() {
29
- i = e => [ e.clientX, e.clientY, e.screenX, e.screenY, e.pageX, e.pageY ], n = 0,
30
- p = "", s = 0, r = 0, c = e => (n = s < e.pageX ? 1 : 0, p = r < e.pageY ? "down" : "up",
31
- s = e.pageX, r = e.pageY, [ n, p ]);
29
+ i = e => [ e.clientX, e.clientY, e.screenX, e.screenY, e.pageX, e.pageY ], p = 0,
30
+ n = "", s = 0, r = 0, c = e => (p = s < e.pageX ? 1 : 0, n = r < e.pageY ? "down" : "up",
31
+ s = e.pageX, r = e.pageY, [ p, n ]);
32
32
  }
33
33
  }), ee = l({
34
34
  "core/message.ts"() {
@@ -39,7 +39,7 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
39
39
  '"': "&quot;",
40
40
  "'": "&#39;"
41
41
  }, b = e => e.replace(/[&<>"']/g, e => m[e]), _ = e => {
42
- const o = b(String(e)), t = window.layerpro.popup.open({
42
+ const o = b(String(e)), t = layerpro.popup.open({
43
43
  id: "__alert",
44
44
  name: "Warning",
45
45
  icon: "&#9888;",
@@ -55,10 +55,10 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
55
55
  resizable: !1
56
56
  }), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${o}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + t.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
57
57
  $(".popup_body_" + t.id).html(i), $("#a_" + t.id).on("click", () => {
58
- window.layerpro.popup.close(t);
58
+ layerpro.popup.close(t);
59
59
  });
60
60
  }, f = (e, o) => {
61
- const t = b(String(e)), i = window.layerpro.popup.open({
61
+ const t = b(String(e)), i = layerpro.popup.open({
62
62
  id: "__message",
63
63
  name: "Message",
64
64
  icon: "&#9965;",
@@ -72,13 +72,13 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
72
72
  raised: !0,
73
73
  movable: !0,
74
74
  resizable: !1
75
- }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
76
- $(".popup_body_" + i.id).html(n), $("#a_" + i.id).on("click", () => {
77
- o && o(), window.layerpro.popup.close(i);
75
+ }), p = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
76
+ $(".popup_body_" + i.id).html(p), $("#a_" + i.id).on("click", () => {
77
+ o && o(), layerpro.popup.close(i);
78
78
  });
79
79
  }, v = (e, o, t) => {
80
80
  if (0 === $(".confirm").length) {
81
- const i = b(String(e)), n = window.layerpro.popup.open({
81
+ const i = b(String(e)), p = layerpro.popup.open({
82
82
  id: "__confirm",
83
83
  name: "Confirm",
84
84
  icon: "&#9745;",
@@ -92,15 +92,15 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
92
92
  raised: !0,
93
93
  movable: !0,
94
94
  resizable: !1
95
- }), p = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
96
- $(".popup_body_" + n.id).html(p), $("#a_" + n.id).on("click", () => {
97
- o && o(), window.layerpro.popup.close(n);
98
- }), $("#b_" + n.id).on("click", () => {
99
- t && t(), window.layerpro.popup.close(n);
95
+ }), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + p.id}" type="button">CONFIRM</button>\n <button id="${"b_" + p.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
96
+ $(".popup_body_" + p.id).html(n), $("#a_" + p.id).on("click", () => {
97
+ o && o(), layerpro.popup.close(p);
98
+ }), $("#b_" + p.id).on("click", () => {
99
+ t && t(), layerpro.popup.close(p);
100
100
  });
101
101
  }
102
102
  }, g = (e, o) => {
103
- const t = o || "_prompt", i = b(String(e)), n = window.layerpro.popup.open({
103
+ const t = o || "_prompt", i = b(String(e)), p = layerpro.popup.open({
104
104
  id: "__prompt",
105
105
  name: "Prompt",
106
106
  icon: "&#9998;",
@@ -114,22 +114,25 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
114
114
  raised: !0,
115
115
  movable: !0,
116
116
  resizable: !1
117
- }), p = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${n.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${n.id}" type="button">OK</button>\n <button id="b_${n.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
118
- $(".popup_body_" + n.id).html(p), $("#input_" + n.id).on("focus", function() {
117
+ }), n = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${p.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${p.id}" type="button">OK</button>\n <button id="b_${p.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
118
+ $(".popup_body_" + p.id).html(n), $("#input_" + p.id).on("focus", function() {
119
119
  $(this).attr("placeholder", "");
120
120
  }).on("blur", function() {
121
121
  $(this).attr("placeholder", "write here");
122
- }), $("#a_" + n.id).on("click", () => {
123
- if ($("#input_" + n.id).val() > "") {
124
- "function" == typeof t && t();
125
- if (String(t) === t) return JSON.stringify($("#input_" + n.id).val());
126
- window.layerpro.popup.close(n);
122
+ }), $("#a_" + p.id).on("click", () => {
123
+ if ($("#input_" + p.id).val() > "") {
124
+ if ("function" == typeof t) {
125
+ const e = String(document.getElementById("input___prompt"));
126
+ t(e);
127
+ }
128
+ if (String(t) === t) return JSON.stringify($("#input_" + p.id).val());
129
+ layerpro.popup.close(p);
127
130
  } else alert("input can't be empty!");
128
- }), $("#b_" + n.id).on("click", () => {
129
- window.layerpro.popup.close(n);
131
+ }), $("#b_" + p.id).on("click", () => {
132
+ layerpro.popup.close(p);
130
133
  });
131
- }, window.message = (e, o) => window.layerpro.message(e, o), window.alert = e => window.layerpro.alert(e),
132
- window.confirm = (e, o, t) => window.layerpro.confirm(e, o, t), window.prompt = (e, o, t) => window.layerpro.prompt(e, o, t),
134
+ }, globalThis.message = (e, o) => layerpro.message(e, o), globalThis.alert = e => layerpro.alert(e),
135
+ globalThis.confirm = (e, o, t) => layerpro.confirm(e, o, t), globalThis.prompt = (e, o, t) => layerpro.prompt(e, o, t),
133
136
  Object.defineProperty(window, "alert", {
134
137
  enumerable: !1
135
138
  }), Object.defineProperty(window, "prompt", {
@@ -138,7 +141,7 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
138
141
  enumerable: !1
139
142
  }), Object.defineProperty(window, "confirm", {
140
143
  enumerable: !1
141
- }), Object.defineProperties(window.layerpro, {
144
+ }), Object.defineProperties(layerpro, {
142
145
  prompt: {
143
146
  value: g
144
147
  },
@@ -155,7 +158,7 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
155
158
  }
156
159
  }), oe = l({
157
160
  "core/genLayer.ts"() {
158
- ee(), w = new Map, y = new Map, z = {
161
+ ee(), y = new Map, w = new Map, z = {
159
162
  "&": "&amp;",
160
163
  "<": "&lt;",
161
164
  ">": "&gt;",
@@ -186,23 +189,23 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
186
189
  }).on("mousedown", e => {
187
190
  layerpro.popup.index(o);
188
191
  }).hide().fadeIn(o.fadeIn);
189
- const n = $('<div class="popup_window_' + o.id + '">', t).appendTo(".popup_overflow_" + o.id).css({
192
+ const p = $('<div class="popup_window_' + o.id + '">', t).appendTo(".popup_overflow_" + o.id).css({
190
193
  "pointer-events": "auto"
191
194
  }).addClass("zHigh").addClass(o.class);
192
195
  0 === [ o.top, o.left, o.bottom, o.right ].reduce((e, o) => "number" == typeof o && isFinite(o) ? Number(e) + o : e, 0) && layerpro.popup.center(o),
193
196
  layerpro.popup.unmount = e => {
194
- const o = w.get(e);
195
- o && (o.unmount(), w.delete(e));
196
- }, layerpro.popup.cleanupEvents = e => {
197
197
  const o = y.get(e);
198
+ o && (o.unmount(), y.delete(e));
199
+ }, layerpro.popup.cleanupEvents = e => {
200
+ const o = w.get(e);
198
201
  o && (o.iconClick && $(".icon_" + e, "#popup_dock").find("span").off("click"), o.iconClose && $(".icon_close_" + e, "#popup_dock").off("click"),
199
202
  o.buttonIconize && $(".button_iconize_" + e).off("click"), o.buttonMaximize && $(".button_maximize_" + e).off("click"),
200
203
  o.buttonClose && $(".button_close_" + e).off("click"), o.escKey && $(document).off("keydown"),
201
- y.delete(e));
202
- }, layerpro.popup.getReactRoot = e => w.get(e), $('<div class="popup_bar_' + o.id + '">', t).appendTo(n).addClass("popup_bar_selected"),
204
+ w.delete(e));
205
+ }, layerpro.popup.getReactRoot = e => y.get(e), $('<div class="popup_bar_' + o.id + '">', t).appendTo(p).addClass("popup_bar_selected"),
203
206
  o.icon && $('<div class="popup_icon_' + o.id + '">' + o.icon + "</div>", t).appendTo(".popup_bar_" + o.id);
204
- const p = k(String(o.name));
205
- if ($('<div class="popup_drag_' + o.id + '">' + p + "</div>", t).appendTo(".popup_bar_" + o.id),
207
+ const n = k(String(o.name));
208
+ if ($('<div class="popup_drag_' + o.id + '">' + n + "</div>", t).appendTo(".popup_bar_" + o.id),
206
209
  $('<div class="popup_option_' + o.id + '">', t).appendTo(".popup_bar_" + o.id),
207
210
  !0 === o.iconize && 0 === $("#popup_dock").length) {
208
211
  $("#root").css("margin", "0 0 var( --dock-height ) 0");
@@ -212,38 +215,38 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
212
215
  });
213
216
  }
214
217
  if ($("#popup_dock").length > 0 && !0 === o.dockable) {
215
- const e = String(o.id), t = `\n <div class="icon_${o.id}">\n <span>${o.icon ? o.icon : ""}</span>\n <span>${p}</span>\n `, i = function(e) {
218
+ const e = String(o.id), t = `\n <div class="icon_${o.id}">\n <span>${o.icon ? o.icon : ""}</span>\n <span>${n}</span>\n `, i = function(e) {
216
219
  $(".popup_overflow_" + o.id + ":hidden") ? (layerpro.popup.iconize(o), layerpro.popup.index(o)) : layerpro.popup.iconize(o),
217
220
  layerpro.popup.index(o);
218
- }, n = function(e) {
221
+ }, p = function(e) {
219
222
  o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(), layerpro.popup.close(o);
220
223
  };
221
- y.set(e, {
224
+ w.set(e, {
222
225
  iconClick: !0,
223
226
  iconClose: !0
224
227
  }), $(t, "#popup_dock").appendTo("#popup_dock_list").addClass("popup_bar_selected").find("span").on("click", i),
225
- $(`<button class="icon_close_${o.id}">X</button>`, "#popup_dock").appendTo(`.icon_${o.id}`).on("click", n);
228
+ $(`<button class="icon_close_${o.id}">X</button>`, "#popup_dock").appendTo(`.icon_${o.id}`).on("click", p);
226
229
  }
227
230
  if (!0 === o.iconize) {
228
231
  const e = String(o.id), t = function(e) {
229
232
  layerpro.popup.iconize(o);
230
- }, i = y.get(e) || {};
231
- i.buttonIconize = !0, y.set(e, i), $('<button class="button_iconize_' + o.id + ' iconize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
233
+ }, i = w.get(e) || {};
234
+ i.buttonIconize = !0, w.set(e, i), $('<button class="button_iconize_' + o.id + ' iconize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
232
235
  }
233
236
  if (!0 === o.maximize) {
234
237
  const e = String(o.id), t = function(e) {
235
238
  layerpro.popup.maximize(o);
236
- }, i = y.get(e) || {};
237
- i.buttonMaximize = !0, y.set(e, i), $('<button class="button_maximize_' + o.id + ' maximize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
239
+ }, i = w.get(e) || {};
240
+ i.buttonMaximize = !0, w.set(e, i), $('<button class="button_maximize_' + o.id + ' maximize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
238
241
  }
239
242
  if (!0 === o.close) {
240
243
  const e = String(o.id), t = function(e) {
241
244
  o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(), layerpro.popup.close(o);
242
- }, i = y.get(e) || {};
243
- i.buttonClose = !0, y.set(e, i), $('<button class="button_close_' + o.id + ' close">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
245
+ }, i = w.get(e) || {};
246
+ i.buttonClose = !0, w.set(e, i), $('<button class="button_close_' + o.id + ' close">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
244
247
  }
245
- const s = String(o.id), r = y.get(s) || {};
246
- if (r.escKey = !0, y.set(s, r), $(document).on("keydown", function(e) {
248
+ const s = String(o.id), r = w.get(s) || {};
249
+ if (r.escKey = !0, w.set(s, r), $(document).on("keydown", function(e) {
247
250
  "Escape" !== e.key && 27 !== e.keyCode || (o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(),
248
251
  layerpro.popup.close(o));
249
252
  }), o.timer > 0) {
@@ -273,7 +276,7 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
273
276
  o.movable && layerpro.popup.movable(o), o.resizable && layerpro.popup.resizable(o),
274
277
  o.isMaximize && layerpro.popup.maximize(o);
275
278
  const c = $('<div class="popup_overflow_' + o.id + '">', "#popup");
276
- $('<div class="popup_internal_' + o.id + '">', c).appendTo(n), $('<div class="popup_body_' + o.id + '">', c).appendTo(".popup_internal_" + o.id).hide().fadeIn(o.fadeIn, function() {
279
+ $('<div class="popup_internal_' + o.id + '">', c).appendTo(p), $('<div class="popup_body_' + o.id + '">', c).appendTo(".popup_internal_" + o.id).hide().fadeIn(o.fadeIn, function() {
277
280
  (() => {
278
281
  if (o.body && !o.source) {
279
282
  const t = o.body, i = "object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props;
@@ -283,7 +286,7 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
283
286
  if (!t) return;
284
287
  try {
285
288
  const i = e(t);
286
- i.render(o.body), w.set(String(o.id), i);
289
+ i.render(o.body), y.set(String(o.id), i);
287
290
  } catch (e) {
288
291
  const o = e?.message || String(e);
289
292
  o.includes("Invalid hook call") || o.includes("hooks");
@@ -314,26 +317,26 @@ var m, b, _, f, v, g, w, y, z, k, x, C, E, S, M, N, T, O, I, A, L, P, j, H, R, W
314
317
  }
315
318
  }), te = l({
316
319
  "core/mobile.ts"() {
317
- if (C = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches,
318
- E = () => {
320
+ if (T = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches,
321
+ C = () => {
319
322
  if ("undefined" == typeof navigator) return !1;
320
323
  const e = navigator.userAgent;
321
324
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
322
- }, S = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, (M = () => {
325
+ }, E = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, (S = () => {
323
326
  if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
324
- const e = E() || C();
325
- return S() && e ? "touch" : "mouse";
326
- })(), N = !C(), "undefined" != typeof window) {
327
+ const e = C() || T();
328
+ return E() && e ? "touch" : "mouse";
329
+ })(), M = !T(), "undefined" != typeof window) {
327
330
  const e = window.matchMedia("(max-width: 1024px)"), o = () => {
328
- const e = M(), o = !C();
329
- N !== o && (N = o);
331
+ const e = S(), o = !T();
332
+ M !== o && (M = o);
330
333
  };
331
334
  let t;
332
335
  e.addListener ? e.addListener(o) : e.addEventListener("change", o), window.addEventListener("resize", () => {
333
336
  clearTimeout(t), t = setTimeout(o, 150);
334
337
  });
335
338
  }
336
- T = () => "pointerdown", O = () => "pointermove", I = () => "pointerup", A = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX,
339
+ I = () => "pointerdown", N = () => "pointermove", O = () => "pointerup", A = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX,
337
340
  L = e => void 0 !== e.clientY ? e.clientY : e.touches && e.touches.length > 0 ? e.touches[0].clientY : e.clientY;
338
341
  }
339
342
  });
@@ -342,7 +345,7 @@ u({}, {
342
345
  popup: () => V
343
346
  });
344
347
 
345
- var ie, ne = l({
348
+ var ie = l({
346
349
  "core/properties.ts"() {
347
350
  oe(), te(), P = 250, j = 150, R = 1e3, F = new Map, J = new Map, Q = $(window),
348
351
  G = $("body"), V = {
@@ -360,8 +363,7 @@ var ie, ne = l({
360
363
  "auto" === e.height && (e.height = "100%"), 0 === $("#popup").length && $('<div id="popup">', "#popup").appendTo("body").css({
361
364
  "pointer-events": "none",
362
365
  "z-index": V.zIndex($("*")) + 1
363
- }), 0 === $(".popup_window_" + e.id, "#popup").length && x(e), layerpro.purge(document),
364
- e;
366
+ }), 0 === $(".popup_window_" + e.id, "#popup").length && x(e), e;
365
367
  },
366
368
  dispatch: e => {
367
369
  layerpro.popup.store(e);
@@ -392,7 +394,7 @@ var ie, ne = l({
392
394
  const e = {
393
395
  passive: !1
394
396
  };
395
- t.move && document.removeEventListener(O(), t.move, e), t.up && document.removeEventListener(I(), t.up, e),
397
+ t.move && document.removeEventListener(N(), t.move, e), t.up && document.removeEventListener(O(), t.up, e),
396
398
  F.delete(String(o));
397
399
  }
398
400
  const i = J.get(String(o));
@@ -400,7 +402,7 @@ var ie, ne = l({
400
402
  const e = {
401
403
  passive: !1
402
404
  };
403
- i.move && document.removeEventListener(O(), i.move, e), i.up && document.removeEventListener(I(), i.up, e),
405
+ i.move && document.removeEventListener(N(), i.move, e), i.up && document.removeEventListener(O(), i.up, e),
404
406
  J.delete(String(o));
405
407
  }
406
408
  !0 === e.raised ? $(".popup_raised_" + o).fadeOut(e.fadeOut || 500, e => {
@@ -413,7 +415,7 @@ var ie, ne = l({
413
415
  } else $("#popup").fadeOut(() => {
414
416
  $(void 0).remove();
415
417
  });
416
- layerpro.purge(document), setTimeout(() => V.removeDock(e), 300);
418
+ setTimeout(() => V.removeDock(e), 300);
417
419
  },
418
420
  removeDock: e => {
419
421
  $(".icon_" + e.id).remove(), $('[class^="popup_overflow_"]', "#popup").length < 1 && ($("#root").css("margin", "0"),
@@ -450,14 +452,14 @@ var ie, ne = l({
450
452
  const o = $(".popup_overflow_" + e.id, "#popup"), t = $('[class^="resize_"]', o), i = $('[class^="popup_drag_"]', o);
451
453
  if (V.vfx(o, !1, !0), o.data("store")) {
452
454
  if (o.data("store")) {
453
- const n = o.data("store");
455
+ const p = o.data("store");
454
456
  o.animate({
455
- top: n.y,
456
- left: n.x,
457
- width: n.w,
458
- height: n.h
457
+ top: p.y,
458
+ left: p.x,
459
+ width: p.w,
460
+ height: p.h
459
461
  }, () => {
460
- i.css("pointer-events", "auto"), t.on(T(), function(o) {
462
+ i.css("pointer-events", "auto"), t.on(I(), function(o) {
461
463
  V.resizeModals(o, this, e);
462
464
  }), Q.off("layerProResize.eventItem"), V.vfx(o, !0);
463
465
  }), o.removeData("store");
@@ -481,32 +483,32 @@ var ie, ne = l({
481
483
  width: Q.width() + 12,
482
484
  height: Q.height() + 12 - 40
483
485
  });
484
- }), i.css("pointer-events", "none"), t.off(T()), V.vfx(o, !0, !0);
486
+ }), i.css("pointer-events", "none"), t.off(I()), V.vfx(o, !0, !0);
485
487
  });
486
488
  },
487
489
  movable: e => {
488
490
  if (!1 === e.movable) return;
489
- const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup"), i = $(".popup_drag_" + e.id, t), n = $(".popup_body_" + e.id, t);
491
+ const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup"), i = $(".popup_drag_" + e.id, t), p = $(".popup_body_" + e.id, t);
490
492
  t.css("touch-action", "none");
491
- let p = 0, s = 0, r = 0, c = 0;
493
+ let n = 0, s = 0, r = 0, c = 0;
492
494
  const a = e => {
493
495
  e.preventDefault();
494
496
  const o = A(e), i = L(e);
495
- p = r - o, s = c - i, r = o, c = i, V.checkArea(e)[1] < V.checkArea(e)[4] && 1 === Math.sign(V.checkArea(e)[1]) && t.css("top", t.offset().top - s),
496
- V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && t.css("left", t.offset().left - p);
497
+ n = r - o, s = c - i, r = o, c = i, V.checkArea(e)[1] < V.checkArea(e)[4] && 1 === Math.sign(V.checkArea(e)[1]) && t.css("top", t.offset().top - s),
498
+ V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && t.css("left", t.offset().left - n);
497
499
  }, d = e => {
498
500
  const i = {
499
501
  passive: !1
500
502
  };
501
- document.removeEventListener(O(), a, i), document.removeEventListener(I(), d, i),
502
- F.delete(o), n.css("pointer-events", "auto"), V.vfx(t, !0);
503
+ document.removeEventListener(N(), a, i), document.removeEventListener(O(), d, i),
504
+ F.delete(o), p.css("pointer-events", "auto"), V.vfx(t, !0);
503
505
  };
504
506
  F.set(o, {
505
507
  move: a,
506
508
  up: d
507
509
  });
508
- i[0].addEventListener(T(), e => {
509
- e.preventDefault(), n.css("pointer-events", "none"), l(e), V.vfx(t, !1);
510
+ i[0].addEventListener(I(), e => {
511
+ e.preventDefault(), p.css("pointer-events", "none"), l(e), V.vfx(t, !1);
510
512
  }, {
511
513
  passive: !1
512
514
  }), e.maximize && i.on("dblclick", o => {
@@ -517,7 +519,7 @@ var ie, ne = l({
517
519
  const o = {
518
520
  passive: !1
519
521
  };
520
- document.addEventListener(O(), a, o), document.addEventListener(I(), d, o);
522
+ document.addEventListener(N(), a, o), document.addEventListener(O(), d, o);
521
523
  };
522
524
  },
523
525
  resizable: e => {
@@ -529,41 +531,41 @@ var ie, ne = l({
529
531
  i.down = function(o) {
530
532
  V.resizeModals(o, this, e);
531
533
  }, J.set(o, i);
532
- const n = {
534
+ const p = {
533
535
  passive: !1
534
536
  };
535
537
  $("[class^=resize_]").each((o, t) => {
536
- t.addEventListener(T(), o => {
538
+ t.addEventListener(I(), o => {
537
539
  o.preventDefault(), V.resizeModals(o, t, e);
538
- }, n);
540
+ }, p);
539
541
  });
540
542
  },
541
543
  resizeModals: (e, o, t) => {
542
- const i = $(o).parent(), n = String(t.id), p = A(e), s = L(e), r = [ p - Q.scrollLeft(), s - Q.scrollTop() ];
544
+ const i = $(o).parent(), p = String(t.id), n = A(e), s = L(e), r = [ n - Q.scrollLeft(), s - Q.scrollTop() ];
543
545
  t.minWidth, G.css("pointer-events", "none"), i.css("pointer-events", "none"), V.vfx(i, !1);
544
546
  const c = e => {
545
547
  V.doRes(e, o);
546
548
  }, a = e => {
547
549
  V.stopRes(o);
548
- }, d = J.get(n) || {};
549
- d.move = c, d.up = a, J.set(n, d);
550
+ }, d = J.get(p) || {};
551
+ d.move = c, d.up = a, J.set(p, d);
550
552
  const l = {
551
553
  passive: !1
552
554
  };
553
- document.addEventListener(O(), c, l), document.addEventListener(I(), a, l), W = r[0],
555
+ document.addEventListener(N(), c, l), document.addEventListener(O(), a, l), W = r[0],
554
556
  D = r[1], X = i.width(), q = i.height(), Y = i.position().left, U = i.position().top,
555
- K = U + q + 1, B = Y + X + 1, H = o;
557
+ B = U + q + 1, K = Y + X + 1, H = o;
556
558
  },
557
559
  doRes: (e, o) => {
558
560
  dispatchEvent(new Event("layerProResize"));
559
- const t = $(o), i = t.parent(), n = A(e), p = L(e), s = [ n - Q.scrollLeft(), p - Q.scrollTop() ];
561
+ const t = $(o), i = t.parent(), p = A(e), n = L(e), s = [ p - Q.scrollLeft(), n - Q.scrollTop() ];
560
562
  if (o === H) {
561
- let o = X + s[0] - W, n = q + s[1] - D;
562
- const p = X - s[0] + W, r = q - s[1] + D;
563
- o <= 0 && (o = 0), n <= 0 && (n = 0), V.checkArea(e)[1] < V.checkArea(e)[4] && 1 === Math.sign(V.checkArea(e)[1]) && t.hasClass("resize_0") && (i.height() <= j && r > j && i.css({
563
+ let o = X + s[0] - W, p = q + s[1] - D;
564
+ const n = X - s[0] + W, r = q - s[1] + D;
565
+ o <= 0 && (o = 0), p <= 0 && (p = 0), V.checkArea(e)[1] < V.checkArea(e)[4] && 1 === Math.sign(V.checkArea(e)[1]) && t.hasClass("resize_0") && (i.height() <= j && r > j && i.css({
564
566
  height: Number(j + 1)
565
567
  }), i.height() > j && j <= r && i.css({
566
- top: Number(K - r),
568
+ top: Number(B - r),
567
569
  height: parseInt(r)
568
570
  })), V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && t.hasClass("resize_1") && (i.width() >= P && i.css({
569
571
  width: Number(o),
@@ -571,51 +573,51 @@ var ie, ne = l({
571
573
  }), i.width() <= P && i.css({
572
574
  width: Number(P + 1)
573
575
  })), V.checkArea(e)[1] < V.checkArea(e)[4] && 1 === Math.sign(V.checkArea(e)[1]) && t.hasClass("resize_2") && (i.height() >= j && i.css({
574
- height: Number(n)
575
- }), i.height() <= j && n > j && i.css({
576
+ height: Number(p)
577
+ }), i.height() <= j && p > j && i.css({
576
578
  height: Number(j + 1)
577
- })), V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && t.hasClass("resize_3") && (i.width() <= P && p > P && i.css({
579
+ })), V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && t.hasClass("resize_3") && (i.width() <= P && n > P && i.css({
578
580
  width: Number(P + 1)
579
- }), i.width() > P && P <= p && i.css({
580
- width: parseInt(p),
581
- left: Number(B - p)
581
+ }), i.width() > P && P <= n && i.css({
582
+ width: parseInt(n),
583
+ left: Number(K - n)
582
584
  })), V.checkArea(e)[1] < V.checkArea(e)[4] && V.checkArea(e)[0] < V.checkArea(e)[5] && 1 === Math.sign(V.checkArea(e)[0]) && 1 === Math.sign(V.checkArea(e)[1]) && (t.hasClass("resize_corner_0") && (i.height() >= j && r > j && i.css({
583
- top: Number(K - r),
585
+ top: Number(B - r),
584
586
  height: parseInt(r)
585
587
  }), i.height() <= j && r > j && i.css({
586
588
  height: Number(j + 1)
587
- }), i.width() >= P && p > P && i.css({
588
- width: parseInt(p),
589
- left: Number(B - p)
590
- }), i.width() <= P && p > P && i.css({
589
+ }), i.width() >= P && n > P && i.css({
590
+ width: parseInt(n),
591
+ left: Number(K - n)
592
+ }), i.width() <= P && n > P && i.css({
591
593
  width: Number(P + 1)
592
594
  })), t.hasClass("resize_corner_1") && (i.height() >= j && r > j && i.css({
593
- top: Number(K - r),
595
+ top: Number(B - r),
594
596
  height: Number(r)
595
597
  }), i.height() <= j && r > j && i.css({
596
598
  height: Number(j + 1)
597
599
  }), i.width() >= P && i.css({
598
600
  width: Number(o),
599
601
  right: Number(Y - o)
600
- }), i.width() <= P && p > P && i.css({
602
+ }), i.width() <= P && n > P && i.css({
601
603
  width: Number(P + 1)
602
604
  })), t.hasClass("resize_corner_2") && (i.height() >= j && i.css({
603
- height: Number(n)
604
- }), i.height() <= j && n > j && i.css({
605
+ height: Number(p)
606
+ }), i.height() <= j && p > j && i.css({
605
607
  height: Number(j + 1)
606
608
  }), i.width() >= P && i.css({
607
609
  width: Number(o),
608
610
  right: Number(Y - o)
609
611
  }), i.width() <= P && i.css({
610
612
  width: Number(P + 1)
611
- })), t.hasClass("resize_corner_3") && (i.height() >= j && n > j && i.css({
612
- height: Number(n)
613
- }), i.height() <= j && n > j && i.css({
613
+ })), t.hasClass("resize_corner_3") && (i.height() >= j && p > j && i.css({
614
+ height: Number(p)
615
+ }), i.height() <= j && p > j && i.css({
614
616
  height: Number(j + 1)
615
- }), i.width() >= P && p > P && i.css({
616
- width: Number(p),
617
- left: Number(B - p)
618
- }), i.width() <= P && p > P && i.css({
617
+ }), i.width() >= P && n > P && i.css({
618
+ width: Number(n),
619
+ left: Number(K - n)
620
+ }), i.width() <= P && n > P && i.css({
619
621
  width: Number(P + 1)
620
622
  })));
621
623
  }
@@ -629,7 +631,7 @@ var ie, ne = l({
629
631
  const o = {
630
632
  passive: !1
631
633
  };
632
- t.move && document.removeEventListener(O(), t.move, o), t.up && document.removeEventListener(I(), t.up, o),
634
+ t.move && document.removeEventListener(N(), t.move, o), t.up && document.removeEventListener(O(), t.up, o),
633
635
  J.delete(String(e));
634
636
  }
635
637
  },
@@ -649,18 +651,6 @@ var ie, ne = l({
649
651
  });
650
652
  }
651
653
  }), pe = l({
652
- "core/purge.ts"() {
653
- ie = e => {
654
- let o, t, i = e.attributes;
655
- if (i) for (t = i.length, o = 0; o < t; o += 1) i[o].name;
656
- if (i = e.childNodes, i) for (t = i.length, o = 0; o < t; o += 1) layerpro.purge(e.childNodes[o]);
657
- }, Object.defineProperty(layerpro, "purge", {
658
- value: new Proxy(ie, {}),
659
- writable: !1,
660
- configurable: !1
661
- });
662
- }
663
- }), se = l({
664
654
  "core/window.ts"() {
665
655
  window.offScreenBuffering = !0, addEventListener("wheel", e => {}, {
666
656
  capture: !0,
@@ -676,7 +666,7 @@ window.layerpro || (Object.defineProperty(window, "layerpro", {
676
666
  writable: !1,
677
667
  configurable: !1,
678
668
  enumerable: !1
679
- }), h(), Z(), ne(), pe(), se(), layerpro.setProps = (e, o) => {
669
+ }), h(), Z(), ie(), pe(), layerpro.setProps = (e, o) => {
680
670
  Reflect.ownKeys(e).forEach(t => {
681
671
  const i = Object.getOwnPropertyDescriptor(e, t);
682
672
  i && (i.enumerable = o?.enumerable || !1, i.configurable = o?.enumerable || !1,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "layerpro",
3
- "code": "layerpro",
4
- "version": "2.3.0",
3
+ "codeName": "layerpro",
4
+ "version": "2.5.0",
5
5
  "description": "The real custom modals, alert, confirm, prompt... for your browser",
6
6
  "main": "./index.cjs",
7
7
  "browser": "./index.cjs",
@@ -37,6 +37,9 @@
37
37
  "url": "https://www.patreon.com/passariello"
38
38
  }
39
39
  ],
40
+ "workspaces": [
41
+ "tests"
42
+ ],
40
43
  "engines": {
41
44
  "node": ">=18.0.0"
42
45
  },
@@ -80,7 +80,6 @@ interface _layerpro {
80
80
  readonly prompt: (txt: string, callback: (input: string) => void, event: Event) => void
81
81
  readonly message: (txt: string, callback: () => void) => void
82
82
  readonly confirm: (txt: string, yesCallback: () => void, noCallback: () => void) => void
83
- readonly purge: (document: Document) => void
84
83
  readonly credits: (txt: string) => void
85
84
 
86
85
  setProps: (obj, options?) => void