layerpro 3.1.0 → 3.1.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/index.cjs CHANGED
@@ -1,15 +1,22 @@
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;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--raised-background:rgba(0,0,0,.3);--popup-z-index:1000;--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:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--raised-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);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:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);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+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIKICAgeG1sbnM6Y2M9Imh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL25zIyIKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xL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gPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Im1heGltaXplLnN2ZyIKICAgeG1sbnM6aW5rc2NhcGU9Imh0dHA6Ly93d3cuaW5rc2NhcGUub3JnL25hbWVzcGFjZXMvaW5rc2NhcGUiCiAgIHhtbG5zOnNvZGlwb2RpPSJodHRwOi8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G93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpwYWdlY2hlY2tlcmJvYXJkPSIwIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTM3NjUiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTI5MS43MDgzMikiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAuMTQ3MDQ1NCIKICAgICAgIGlkPSJyZWN0MzczMiIKICAgICAgIHdpZHRoPSI0Ljc2MjQ5OTgiCiAgICAgICBoZWlnaHQ9IjQuNzYyNDk5OCIKICAgICAgIHg9IjAuMjkxODUyNTMiCiAgICAgICB5PSIyOTIuMDEwNDQiCiAgICAgICByeT0iMC42NjcxMjEyMyIgLz4KICA8L2c+Cjwvc3ZnPgo=) !important;}#popup .close:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD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3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+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"), t = globalThis;
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;--bar-background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);--bar-selected-background:linear-gradient( 45deg,#162858 60%,#224e918a 100%);--bar-color:#eee;--bar-border-bottom:2px solid #555;--bar-shadow:0 1px 1px #888;--window-background:gray;--window-shadow:0 0 10px rgba(0,0,0,.3);--window-border-radius:10px;--window-z-high-border:#278ed0;--window-z-high-shadow:0 0 15px rgba(0,0,0,.7);--internal-background:linear-gradient( 0deg,rgba(60,60,60,1) 0%,#4a4a4f 100%);--body-color:#eee;--body-background:transparent;--raised-background:rgba(0,0,0,.3);--popup-z-index:1000;--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:var(--bar-selected-background) !important;}#popup .zHigh{border-top-color:var(--window-z-high-border) !important;box-shadow:var(--window-z-high-shadow) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class*=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--raised-background);z-index:1;}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:var(--window-border-radius);background:var(--window-background);}#popup .popup_bar,#popup [class*=popup_bar_]{display:flex;width:100%;height:36px;background:var(--bar-background);border-bottom:var(--bar-border-bottom);box-shadow:var(--bar-shadow);z-index:2;}#popup [class*=popup_drag_]{width:100%;padding:10px 0 0 10px;color:var(--bar-color);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class*=popup_icon_]{padding:8px 0 0 10px;color:var(--bar-color);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:var(--internal-background);}#popup .popup_body,#popup [class*=popup_body_]{position:absolute;inset:0;color:var(--body-color);background:var(--body-background);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+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRkIgogICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi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Z2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOm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iMTkyMCIKICAgICBpbmtzY2FwZTp3aW5kb3ctaGVpZ2h0PSIxMDI3IgogICAgIGlua3NjYXBlOndpbmRvdy14PSItOCIKICAgICBpbmtzY2FwZTp3aW5kb3cteT0iLTgiCiAgICAgaW5rc2NhcGU6d2luZG93LW1heGltaXplZD0iMSIKICAgICBpbmtzY2FwZTpwYWdlY2hlY2tlcmJvYXJkPSIwIiAvPgogIDxtZXRhZGF0YQogICAgIGlkPSJtZXRhZGF0YTM3NjUiPgogICAgPHJkZjpSREY+CiAgICAgIDxjYzpXb3JrCiAgICAgICAgIHJkZjphYm91dD0iIj4KICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3N2Zyt4bWw8L2RjOmZvcm1hdD4KICAgICAgICA8ZGM6dHlwZQogICAgICAgICAgIHJkZjpyZXNvdXJjZT0iaHR0cDovL3B1cmwub3JnL2RjL2RjbWl0eXBlL1N0aWxsSW1hZ2UiIC8+CiAgICAgIDwvY2M6V29yaz4KICAgIDwvcmRmOlJERj4KICA8L21ldGFkYXRhPgogIDxnCiAgICAgaW5rc2NhcGU6bGFiZWw9IkxheWVyIDEiCiAgICAgaW5rc2NhcGU6Z3JvdXBtb2RlPSJsYXllciIKICAgICBpZD0ibGF5ZXIxIgogICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTI5MS43MDgzMikiPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiMwMDAwMDA7c3Ryb2tlLXdpZHRoOjAuMTQ3MDQ1NCIKICAgICAgIGlkPSJyZWN0MzczMiIKICAgICAgIHdpZHRoPSI0Ljc2MjQ5OTgiCiAgICAgICBoZWlnaHQ9IjQuNzYyNDk5OCIKICAgICAgIHg9IjAuMjkxODUyNTMiCiAgICAgICB5PSIyOTIuMDEwNDQiCiAgICAgICByeT0iMC42NjcxMjEyMyIgLz4KICA8L2c+Cjwvc3ZnPgo=) !important;}#popup .close:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4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BjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+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
2
 
3
- t.layerpro || Object.defineProperty(t, "layerpro", {
3
+ var e = Object.defineProperty, t = (t, o, i) => ((t, o, i) => o in t ? e(t, o, {
4
+ enumerable: !0,
5
+ configurable: !0,
6
+ writable: !0,
7
+ value: i
8
+ }) : t[o] = i)(t, o + "", i), o = globalThis;
9
+
10
+ o.layerpro || Object.defineProperty(o, "layerpro", {
4
11
  value: {},
5
12
  writable: !1,
6
13
  configurable: !1,
7
14
  enumerable: !1
8
15
  });
9
16
 
10
- var o = t.layerpro;
17
+ var i = o.layerpro;
11
18
 
12
- if (!o.setProps) {
19
+ if (!i.setProps) {
13
20
  const e = (t, o) => {
14
21
  Reflect.ownKeys(t).forEach(i => {
15
22
  const n = Object.getOwnPropertyDescriptor(t, i);
@@ -19,31 +26,31 @@ if (!o.setProps) {
19
26
  "object" == typeof s && null !== s && e(s, o);
20
27
  });
21
28
  };
22
- Object.defineProperty(o, "setProps", {
29
+ Object.defineProperty(i, "setProps", {
23
30
  value: e,
24
31
  writable: !1,
25
32
  configurable: !1
26
33
  });
27
34
  }
28
35
 
29
- var i = globalThis.layerpro;
36
+ var n = globalThis.layerpro;
30
37
 
31
- Object.defineProperty(i, "credits", {
38
+ Object.defineProperty(n, "credits", {
32
39
  value: e => {},
33
40
  writable: !1,
34
41
  configurable: !1
35
42
  });
36
43
 
37
- var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, r = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], a = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), c = (e, t) => "number" != typeof t || a.has(e.toLowerCase()) ? String(t) : `${t}px`, l = (e, t, o, i) => {
38
- const s = e => o(e), p = i?.ns ? `${t}.${i.ns}` : t;
39
- e.addEventListener(t, s, i);
40
- let r = n.get(e);
41
- r || (r = new Map, n.set(e, r)), r.set(p, {
42
- handler: s,
44
+ var s = new WeakMap, p = new WeakMap, r = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, a = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], l = new Set([ "opacity", "zindex", "z-index", "fontweight", "font-weight", "lineheight", "line-height", "zoom", "flex", "flexgrow", "flex-grow", "flexshrink", "flex-shrink", "order", "gridcolumn", "grid-column", "gridrow", "grid-row", "columncount", "column-count", "fontsizeadjust", "font-size-adjust", "appearance" ]), c = (e, t) => "number" != typeof t || l.has(e.toLowerCase()) ? String(t) : `${t}px`, d = (e, t, o, i) => {
45
+ const n = e => o(e), p = i?.ns ? `${t}.${i.ns}` : t;
46
+ e.addEventListener(t, n, i);
47
+ let r = s.get(e);
48
+ r || (r = new Map, s.set(e, r)), r.set(p, {
49
+ handler: n,
43
50
  opts: i ?? {}
44
51
  });
45
- }, d = (e, t, o) => {
46
- const i = n.get(e);
52
+ }, u = (e, t, o) => {
53
+ const i = s.get(e);
47
54
  if (i) {
48
55
  if (o?.ns) {
49
56
  const n = `${t}.${o.ns}`, s = i.get(n);
@@ -52,10 +59,9 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
52
59
  for (const [o, n] of [ ...i ]) (o === t || o.startsWith(`${t}.`)) && (e.removeEventListener(t, n.handler, n.opts),
53
60
  i.delete(o));
54
61
  }
55
- }, u = class e {
56
- el;
62
+ }, h = class e {
57
63
  constructor(e) {
58
- this.el = e;
64
+ t(this, "el"), this.el = e;
59
65
  }
60
66
  append(t) {
61
67
  return t instanceof e ? this.el.appendChild(t.el) : "string" == typeof t ? this.el.appendChild(document.createTextNode(t)) : this.el.appendChild(t),
@@ -64,7 +70,7 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
64
70
  appendTo(t) {
65
71
  let o;
66
72
  if (t instanceof e) o = t.el; else {
67
- const e = p(t);
73
+ const e = r(t);
68
74
  o = e === document ? document.body : e;
69
75
  }
70
76
  return o.appendChild(this.el), this;
@@ -80,15 +86,15 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
80
86
  return this;
81
87
  }
82
88
  addClass(e) {
83
- for (const t of r(e)) this.el.classList.add(t);
89
+ for (const t of a(e)) this.el.classList.add(t);
84
90
  return this;
85
91
  }
86
92
  removeClass(e) {
87
- for (const t of r(e)) this.el.classList.remove(t);
93
+ for (const t of a(e)) this.el.classList.remove(t);
88
94
  return this;
89
95
  }
90
96
  toggleClass(e, t) {
91
- for (const o of r(e)) this.el.classList.toggle(o, t);
97
+ for (const o of a(e)) this.el.classList.toggle(o, t);
92
98
  return this;
93
99
  }
94
100
  hasClass(e) {
@@ -125,18 +131,18 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
125
131
  return this.el.style.display = "none" === this.el.style.display ? "" : "none", this;
126
132
  }
127
133
  on(e, t, o) {
128
- return l(this.el, e, t, o), this;
134
+ return d(this.el, e, t, o), this;
129
135
  }
130
136
  off(e, t) {
131
- return d(this.el, e, t), this;
137
+ return u(this.el, e, t), this;
132
138
  }
133
139
  data(e, t) {
134
- let o = s.get(this.el);
135
- return o || (o = new Map, s.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
140
+ let o = p.get(this.el);
141
+ return o || (o = new Map, p.set(this.el, o)), void 0 === t ? o.get(e) : (o.set(e, t),
136
142
  this);
137
143
  }
138
144
  removeData(e) {
139
- return s.get(this.el)?.delete(e), this;
145
+ return p.get(this.el)?.delete(e), this;
140
146
  }
141
147
  offset() {
142
148
  const e = this.el.getBoundingClientRect();
@@ -207,94 +213,114 @@ var n = new WeakMap, s = new WeakMap, p = e => "string" == typeof e ? document.q
207
213
  }
208
214
  };
209
215
 
210
- function h(e, t) {
211
- const o = p(t).querySelector(e);
212
- return o ? new u(o) : null;
216
+ function f(e, t) {
217
+ const o = r(t).querySelector(e);
218
+ return o ? new h(o) : null;
213
219
  }
214
220
 
215
- function f(e, t) {
216
- return [ ...p(t).querySelectorAll(e) ].map(e => new u(e));
221
+ function m(e, t) {
222
+ return [ ...r(t).querySelectorAll(e) ].map(e => new h(e));
217
223
  }
218
224
 
219
- var m = e => {
225
+ var b = e => {
220
226
  const t = document.createElement("div");
221
227
  t.innerHTML = e.trim();
222
228
  const o = t.firstElementChild;
223
- return new u(o);
224
- }, b = {
229
+ return new h(o);
230
+ }, g = {
225
231
  on(e, t, o) {
226
- l(document, e, t, o);
232
+ d(document, e, t, o);
227
233
  },
228
234
  off(e, t) {
229
- d(document, e, t);
235
+ u(document, e, t);
230
236
  }
231
237
  }, _ = {
232
238
  on(e, t, o) {
233
- l(window, e, t, o);
239
+ d(window, e, t, o);
234
240
  },
235
241
  off(e, t) {
236
- d(window, e, t);
242
+ u(window, e, t);
237
243
  },
238
244
  height: () => window.innerHeight,
239
245
  width: () => window.innerWidth,
240
246
  scrollTop: () => window.scrollY || document.documentElement.scrollTop || 0,
241
247
  scrollLeft: () => window.scrollX || document.documentElement.scrollLeft || 0
242
- }, g = new Map, v = new Map, y = {
248
+ }, v = new Map, y = new Map, w = {
243
249
  "&": "&",
244
250
  "<": "&lt;",
245
251
  ">": "&gt;",
246
252
  '"': "&quot;",
247
253
  "'": "&#39;"
248
- }, w = e => e.replace(/[&<>"']/g, e => y[e]), z = t => {
249
- if (t.body && !t.source) {
250
- const o = t.body;
251
- if ("object" == typeof o && null !== o && void 0 !== o.type && "object" == typeof o.props && null !== o.props) {
252
- const o = document.querySelector(".popup_body_" + t.id);
253
- if (!o) return;
254
- try {
255
- const i = e.createRoot(o);
256
- i.render(t.body), g.set(String(t.id), i);
257
- } catch (e) {
258
- const t = e?.message || String(e);
259
- t.includes("Invalid hook call") || t.includes("hooks");
260
- }
261
- } else if ("string" == typeof t.body && t.body.trim().startsWith("<")) {
262
- const e = w(t.body);
263
- h(`.popup_body_${t.id}`)?.html(e).fadeIn(t.fadeIn);
254
+ }, z = e => e.replace(/[&<>"']/g, e => w[e]), x = e => {
255
+ if (!e.source) return;
256
+ const t = f(`.popup_body_${e.id}`), o = String(e.source);
257
+ let i;
258
+ try {
259
+ i = new URL(o, window.location.origin);
260
+ } catch {
261
+ return;
262
+ }
263
+ if (i.origin !== window.location.origin) return;
264
+ const n = new AbortController;
265
+ v.set(String(e.id), n), fetch(o, {
266
+ mode: "same-origin",
267
+ signal: n.signal
268
+ }).then(e => {
269
+ if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
270
+ return e.text();
271
+ }).then(o => {
272
+ if (!v.get(String(e.id)) || n.signal.aborted) return;
273
+ const i = z(o);
274
+ t?.hide().html(i).fadeIn(e.fadeIn);
275
+ }).catch(e => {
276
+ e.name;
277
+ });
278
+ }, k = e => {
279
+ if (e.body && !e.source) {
280
+ const t = e.body;
281
+ if ("object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props) {
282
+ const t = document.querySelector(".popup_body_" + e.id);
283
+ if (!t) return;
284
+ "function" == typeof layerpro.popup.useReactAdapter ? layerpro.popup.useReactAdapter(e, t) : import("layerpro/react").then(o => {
285
+ o.default && o.default(e, t, null);
286
+ }).catch(e => {});
287
+ } else if ("string" == typeof e.body && e.body.trim().startsWith("<")) {
288
+ const t = z(e.body);
289
+ f(`.popup_body_${e.id}`)?.html(t).fadeIn(e.fadeIn);
264
290
  } else {
265
- const e = w(String(t.body));
266
- h(`.popup_body_${t.id}`)?.text(e).fadeIn(t.fadeIn);
291
+ const t = z(String(e.body));
292
+ f(`.popup_body_${e.id}`)?.text(t).fadeIn(e.fadeIn);
267
293
  }
268
294
  }
269
- }, x = e => {
295
+ }, T = e => {
270
296
  if (e.buttons) {
271
- if (m('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
272
- const t = w(e.buttons.confirm.text.toUpperCase()), o = m(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(".buttons");
297
+ if (b('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
298
+ const t = z(e.buttons.confirm.text.toUpperCase()), o = b(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(".buttons");
273
299
  e.buttons.confirm.cb && o.on("click", () => {
274
300
  e.buttons?.confirm?.cb?.(), layerpro.popup.close(e);
275
301
  });
276
302
  }
277
303
  if (e.buttons.cancel) {
278
- const t = w(e.buttons.cancel.text.toUpperCase());
279
- m(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(".buttons").on("click", () => {
304
+ const t = z(e.buttons.cancel.text.toUpperCase());
305
+ b(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(".buttons").on("click", () => {
280
306
  e.buttons?.cancel?.cb?.(), layerpro.popup.close(e);
281
307
  });
282
308
  }
283
309
  }
284
- }, k = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, $ = () => {
310
+ }, $ = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, E = () => {
285
311
  if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
286
312
  const e = (() => {
287
313
  if ("undefined" == typeof navigator) return !1;
288
314
  const e = navigator.userAgent;
289
315
  return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
290
- })() || k();
316
+ })() || $();
291
317
  return ("ontouchstart" in window || navigator.maxTouchPoints > 0) && e ? "touch" : "mouse";
292
- }, T = $(), E = !k(), C = null;
318
+ }, C = E(), L = !$(), S = null;
293
319
 
294
320
  if ("undefined" != typeof window) {
295
321
  const e = window.matchMedia("(max-width: 1024px)"), t = () => {
296
- const e = $(), t = T, o = !k();
297
- T = e, E !== o && (E = o, C && C(e, t));
322
+ const e = E(), t = C, o = !$();
323
+ C = e, L !== o && (L = o, S && S(e, t));
298
324
  };
299
325
  let o;
300
326
  e.addListener ? e.addListener(t) : e.addEventListener("change", t), window.addEventListener("resize", () => {
@@ -302,10 +328,16 @@ if ("undefined" != typeof window) {
302
328
  });
303
329
  }
304
330
 
305
- var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX, M = e => void 0 !== e.clientY ? e.clientY : e.touches && e.touches.length > 0 ? e.touches[0].clientY : e.clientY, S = 250, N = 150, O = !1, I = 1e3, A = !1, H = 0, P = 0, j = 0, W = 0, R = 0, D = 0, q = 0, B = 0, X = 0, Y = new Map, U = new Map, K = () => h("body"), F = e => "object" == typeof e && null !== e ? e.id : e, Z = {
331
+ var M = e => {
332
+ const t = e;
333
+ return void 0 !== t.clientX ? t.clientX : t.touches && t.touches.length > 0 ? t.touches[0].clientX : 0;
334
+ }, O = e => {
335
+ const t = e;
336
+ return void 0 !== t.clientY ? t.clientY : t.touches && t.touches.length > 0 ? t.touches[0].clientY : 0;
337
+ }, N = 250, A = 150, H = !1, I = 1e3, P = !1, j = 0, W = new Map, R = new Map, B = null, D = () => f("body"), X = e => "object" == typeof e && null !== e ? e.id : e, Y = {
306
338
  open: e => {
307
339
  if (!e) return e;
308
- e.id = e.id ?? "popup_" + ++H, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
340
+ e.id = e.id ?? "popup_" + ++j, e.body = e.body ?? "", e.class = e.class ?? "", e.width = e.width ?? 340,
309
341
  e.height = e.height ?? 220, e.minWidth = e.minWidth ?? 340, e.minHeight = e.minHeight ?? 220,
310
342
  e.name = e.name ?? "popUp_" + e.id, e.source = e.source ?? null, e.icon = e.icon ?? null,
311
343
  e.iconize = e.iconize ?? null, e.maximize = e.maximize ?? null, e.isMaximize = e.isMaximize ?? null,
@@ -313,21 +345,21 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
313
345
  e.movable = e.movable ?? null, e.resizable = e.resizable ?? null, e.store = e.store ?? !1,
314
346
  e.top = e.top ?? "auto", e.left = e.left ?? "auto", e.right = e.right ?? "auto",
315
347
  e.bottom = e.bottom ?? "auto", e.fadeIn = e.fadeIn ?? 100, e.fadeOut = e.fadeOut ?? 100,
316
- S = e.minWidth, N = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
348
+ N = e.minWidth, A = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
317
349
  e.height < e.minHeight && (e.height, e.height = e.minHeight), "auto" === e.width && (e.width = "100%"),
318
- "auto" === e.height && (e.height = "100%"), h("#popup") || m('<div id="popup">').appendTo("body").css({
350
+ "auto" === e.height && (e.height = "100%"), f("#popup") || b('<div id="popup">').appendTo("body").css({
319
351
  "pointer-events": "none",
320
- "z-index": Z.zIndex() + 1
352
+ "z-index": Y.zIndex() + 1
321
353
  });
322
- return h(".popup_window_" + e.id, "#popup") ? (Z.index(e), layerpro.popup.unmount(String(e.id)),
323
- z(e), x(e)) : (e => {
354
+ return f(".popup_window_" + e.id, "#popup") ? (Y.index(e), layerpro.popup.unmount(String(e.id)),
355
+ k(e), T(e)) : (e => {
324
356
  if ("function" == typeof e.body) return;
325
357
  const t = !0 === e.raised ? ".popup_raised_" + e.id : "#popup";
326
- f('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), f('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
327
- f('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.raised && m(`<div class="popup_raised_${e.id} popup_raised">`).appendTo("#popup").css({
358
+ m('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
359
+ m('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.raised && b(`<div class="popup_raised_${e.id} popup_raised">`).appendTo("#popup").css({
328
360
  "pointer-events": "auto",
329
361
  "z-index": layerpro.popup.zIndex() + 1e3
330
- }), m(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
362
+ }), b(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).css({
331
363
  top: e.top,
332
364
  left: e.left,
333
365
  right: e.right,
@@ -343,67 +375,73 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
343
375
  }).on("pointerdown", () => {
344
376
  layerpro.popup.index(e);
345
377
  }).hide().fadeIn(e.fadeIn);
346
- const o = m(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
378
+ const o = b(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
347
379
  "pointer-events": "auto"
348
380
  }).addClass("zHigh").addClass(e.class), i = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
349
381
  if (!0 === e.center || 0 === i) {
350
- const t = f('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
382
+ const t = m('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
351
383
  layerpro.popup.center(e, o);
352
384
  }
353
385
  layerpro.popup.unmount = e => {
354
- const t = g.get(e);
355
- t && (t.unmount(), g.delete(e));
386
+ const t = layerpro.popup.getReactRoots();
387
+ if (t) {
388
+ const o = t.get(e);
389
+ o && (o.unmount(), t.delete(e));
390
+ }
356
391
  }, layerpro.popup.cleanupEvents = e => {
357
- const t = v.get(e);
358
- t && (t.iconClick && h(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && h(`.icon_close_${e}`, "#popup_dock")?.off("click"),
359
- t.buttonIconize && h(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && h(`.button_maximize_${e}`)?.off("click"),
360
- t.buttonClose && h(`.button_close_${e}`)?.off("click"), t.escKey && b.off("keydown", {
392
+ const t = y.get(e);
393
+ t && (t.iconClick && f(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && f(`.icon_close_${e}`, "#popup_dock")?.off("click"),
394
+ t.buttonIconize && f(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && f(`.button_maximize_${e}`)?.off("click"),
395
+ t.buttonClose && f(`.button_close_${e}`)?.off("click"), t.escKey && g.off("keydown", {
361
396
  ns: `esc-${e}`
362
- }), v.delete(e));
363
- }, layerpro.popup.getReactRoot = e => g.get(e), m(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
364
- e.icon && m(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
365
- const n = w(String(e.name));
366
- m(`<div class="popup_drag_${e.id} popup_drag">${n}</div>`).appendTo(`.popup_bar_${e.id}`),
367
- m(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
368
- !0 !== e.iconize || h("#popup_dock") || (h("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
369
- m('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
397
+ }), y.delete(e));
398
+ }, layerpro.popup.getReactRoots = () => null, layerpro.popup.abortSource = e => {
399
+ const t = v.get(e);
400
+ t && (t.abort(), v.delete(e));
401
+ }, b(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
402
+ e.icon && b(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
403
+ const n = z(String(e.name));
404
+ b(`<div class="popup_drag_${e.id} popup_drag">${n}</div>`).appendTo(`.popup_bar_${e.id}`),
405
+ b(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
406
+ !0 !== e.iconize || f("#popup_dock") || (f("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
407
+ b('\n <div id="popup_dock">\n <div id="popup_dock_icon"></div>\n <div id="popup_dock_list"></div>\n <div id="popup_dock_options"></div>\n </div>\n ').appendTo("#popup").css({
370
408
  pointerEvents: "auto",
371
409
  zIndex: layerpro.popup.zIndex() + 1e3
372
410
  }));
373
- if (h("#popup_dock") && !0 === e.dockable) {
411
+ if (f("#popup_dock") && !0 === e.dockable) {
374
412
  const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${n}</span>\n </div>\n `, i = () => {
375
- const t = h(".popup_overflow_" + e.id, "#popup");
413
+ const t = f(".popup_overflow_" + e.id, "#popup");
376
414
  t && t.data("iconize") ? (layerpro.popup.index(e), layerpro.popup.iconize(e)) : layerpro.popup.iconize(e),
377
415
  layerpro.popup.index(e);
378
416
  }, s = t => {
379
417
  t?.stopPropagation(), e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
380
418
  };
381
- v.set(t, {
419
+ y.set(t, {
382
420
  iconClick: !0,
383
421
  iconClose: !0
384
- }), m(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", i),
385
- m(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
422
+ }), b(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", i),
423
+ b(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
386
424
  }
387
425
  if (!0 === e.iconize) {
388
426
  const t = String(e.id), o = () => {
389
427
  layerpro.popup.iconize(e);
390
- }, i = v.get(t) || {};
391
- i.buttonIconize = !0, v.set(t, i), m(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
428
+ }, i = y.get(t) || {};
429
+ i.buttonIconize = !0, y.set(t, i), b(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
392
430
  }
393
431
  if (!0 === e.maximize) {
394
432
  const t = String(e.id), o = () => {
395
433
  layerpro.popup.maximize(e);
396
- }, i = v.get(t) || {};
397
- i.buttonMaximize = !0, v.set(t, i), m(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
434
+ }, i = y.get(t) || {};
435
+ i.buttonMaximize = !0, y.set(t, i), b(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
398
436
  }
399
437
  if (!0 === e.close) {
400
438
  const t = String(e.id), o = () => {
401
439
  e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
402
- }, i = v.get(t) || {};
403
- i.buttonClose = !0, v.set(t, i), m(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
440
+ }, i = y.get(t) || {};
441
+ i.buttonClose = !0, y.set(t, i), b(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
404
442
  }
405
- const s = String(e.id), p = v.get(s) || {};
406
- if (p.escKey = !0, v.set(s, p), b.on("keydown", t => {
443
+ const s = String(e.id), p = y.get(s) || {};
444
+ if (p.escKey = !0, y.set(s, p), g.on("keydown", t => {
407
445
  const o = t;
408
446
  "Escape" !== o.key && 27 !== o.keyCode || (e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(),
409
447
  layerpro.popup.close(e));
@@ -415,93 +453,75 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
415
453
  layerpro.popup.close(e), clearTimeout(t[String(`st_${e.id}`)]);
416
454
  }, e.timer);
417
455
  }
418
- if (e.source) {
419
- const t = h(`.popup_body_${e.id}`), o = String(e.source);
420
- let i;
421
- try {
422
- i = new URL(o, window.location.origin);
423
- } catch {
424
- return;
425
- }
426
- if (i.origin !== window.location.origin) return;
427
- fetch(o, {
428
- mode: "same-origin"
429
- }).then(e => {
430
- if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
431
- return e.text();
432
- }).then(o => {
433
- const i = w(o);
434
- t?.hide().html(i).fadeIn(e.fadeIn);
435
- }).catch(e => {});
436
- }
437
456
  e.movable && layerpro.popup.movable(e), e.resizable && layerpro.popup.resizable(e),
438
- e.isMaximize && layerpro.popup.maximize(e), m(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
439
- m(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
440
- z(e), x(e);
457
+ e.isMaximize && layerpro.popup.maximize(e), b(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
458
+ b(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
459
+ x(e), k(e), T(e);
441
460
  });
442
461
  })(e), e;
443
462
  },
444
463
  dispatch: e => {
445
- Z.store(e);
464
+ Y.store(e);
446
465
  },
447
466
  store: e => {},
448
467
  show: e => {
449
- const t = e instanceof u ? e : "string" == typeof e ? h(e) : null;
468
+ const t = e instanceof h ? e : "string" == typeof e ? f(e) : null;
450
469
  t?.toggle();
451
470
  },
452
471
  vfx: (e, t, o = !1) => {
453
472
  setTimeout(() => {
454
- f('[class^="popup_overflow_"]', "#popup").forEach(e => {
473
+ m('[class^="popup_overflow_"]', "#popup").forEach(e => {
455
474
  e.css("opacity", !0 === t ? 1 : .5), e.find('[class^="popup_body_"]')?.css({
456
475
  "content-visibility": !0 === t ? "auto" : "hidden"
457
476
  });
458
477
  });
459
- const i = e instanceof u ? e : "string" == typeof e ? h(e) : null;
460
- i?.css("opacity", 1), !o && i && f('[class^="popup_body_"]', i.el).forEach(e => e.css("content-visibility", "visible"));
478
+ const i = e instanceof h ? e : "string" == typeof e ? f(e) : null;
479
+ i?.css("opacity", 1), !o && i && m('[class^="popup_body_"]', i.el).forEach(e => e.css("content-visibility", "visible"));
461
480
  }, 1), dispatchEvent(new Event("layerProResize"));
462
481
  },
463
482
  center: (e, t = 0) => {
464
- const o = h(".popup_overflow_" + F(e), "#popup");
483
+ const o = f(".popup_overflow_" + X(e), "#popup");
465
484
  o && (o.css("top", Math.max(0, (_.height() - o.outerHeight()) / 2 + _.scrollTop() + t)),
466
485
  o.css("left", Math.max(0, (_.width() - o.outerWidth()) / 2 + _.scrollLeft() + t)));
467
486
  },
468
- checkArea: e => [ L(e), M(e), _.scrollLeft(), _.scrollTop(), _.height(), _.width() ],
487
+ checkArea: e => [ M(e), O(e), _.scrollLeft(), _.scrollTop(), _.height(), _.width() ],
469
488
  close: e => {
470
489
  let t;
471
490
  if (e) {
472
- t = F(e);
491
+ t = X(e);
473
492
  const o = "object" == typeof e && null !== e ? e : void 0;
474
- layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t));
475
- const i = Y.get(String(t));
493
+ layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.abortSource && layerpro.popup.abortSource(String(t)),
494
+ layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t));
495
+ const i = W.get(String(t));
476
496
  if (i) {
477
497
  const e = {
478
498
  passive: !1
479
499
  };
480
500
  i.move && document.removeEventListener("pointermove", i.move, e), i.up && document.removeEventListener("pointerup", i.up, e),
481
- Y.delete(String(t));
501
+ W.delete(String(t));
482
502
  }
483
- const n = U.get(String(t));
503
+ const n = R.get(String(t));
484
504
  if (n) {
485
505
  const e = {
486
506
  passive: !1
487
507
  };
488
508
  n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
489
- U.delete(String(t));
509
+ R.delete(String(t));
490
510
  }
491
- (o ? !0 === o.raised : !!h(".popup_raised_" + t)) ? h(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => h(".popup_raised_" + t)?.remove()) : h(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
492
- h(".popup_overflow_" + t)?.remove(), h(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => h(".popup_raised_" + t)?.remove());
511
+ (o ? !0 === o.raised : !!f(".popup_raised_" + t)) ? f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove()) : f(".popup_overflow_" + t)?.fadeOut(o?.fadeOut || 500, () => {
512
+ f(".popup_overflow_" + t)?.remove(), f(".popup_raised_" + t)?.fadeOut(o?.fadeOut || 500, () => f(".popup_raised_" + t)?.remove());
493
513
  });
494
- } else h("#popup")?.fadeOut(() => h("#popup")?.remove());
495
- setTimeout(() => Z.removeDock(e), 300);
514
+ } else f("#popup")?.fadeOut(() => f("#popup")?.remove());
515
+ setTimeout(() => Y.removeDock(e), 300);
496
516
  },
497
517
  removeDock: e => {
498
- const t = F(e);
499
- h(".icon_" + t)?.remove(), f('[class^="popup_overflow_"]', "#popup").length < 1 && (h("#root")?.css("margin", "0"),
500
- h("#popup_dock")?.remove());
518
+ const t = X(e);
519
+ f(".icon_" + t)?.remove(), m('[class^="popup_overflow_"]', "#popup").length < 1 && (f("#root")?.css("margin", "0"),
520
+ f("#popup_dock")?.remove());
501
521
  },
502
522
  iconize: e => {
503
- const t = F(e), o = h(".popup_overflow_" + t, "#popup");
504
- if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (Z.vfx(o, !1, !0),
523
+ const t = X(e), o = f(".popup_overflow_" + t, "#popup");
524
+ if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (Y.vfx(o, !1, !0),
505
525
  o.data("iconize")) {
506
526
  if (o.data("iconize")) {
507
527
  const e = o.data("iconize");
@@ -511,10 +531,10 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
511
531
  width: e.w,
512
532
  height: e.h,
513
533
  opacity: 1
514
- }), Z.vfx(o, !0), o.removeData("iconize");
534
+ }), Y.vfx(o, !0), o.removeData("iconize");
515
535
  }
516
536
  } else {
517
- const e = h(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
537
+ const e = f(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
518
538
  o.data("iconize", {
519
539
  y: o.el.offsetTop,
520
540
  x: o.el.offsetLeft,
@@ -526,12 +546,12 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
526
546
  width: 0,
527
547
  height: 0,
528
548
  opacity: 0
529
- }), Z.vfx(o, !0);
549
+ }), Y.vfx(o, !0);
530
550
  }
531
551
  },
532
552
  maximize: e => {
533
- const t = h(".popup_overflow_" + F(e), "#popup"), o = t ? h('[class^="resize_"]', t.el) : null;
534
- if (Z.vfx(t, !1, !0), t?.data("store")) {
553
+ const t = f(".popup_overflow_" + X(e), "#popup"), o = t ? f('[class^="resize_"]', t.el) : null;
554
+ if (Y.vfx(t, !1, !0), t?.data("store")) {
535
555
  if (t?.data("store")) {
536
556
  const i = t.data("store");
537
557
  t.css({
@@ -543,8 +563,8 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
543
563
  width: i.w,
544
564
  height: i.h
545
565
  }), o?.on("pointerdown", function(t) {
546
- Z.resizeModals(t, this, e);
547
- }), Z.vfx(t, !0), t.removeData("store");
566
+ Y.resizeModals(t, this, e);
567
+ }), Y.vfx(t, !0), t.removeData("store");
548
568
  }
549
569
  } else t.data("store", {
550
570
  y: t.el.offsetTop,
@@ -559,175 +579,183 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
559
579
  bottom: 39,
560
580
  width: "auto",
561
581
  height: "auto"
562
- }), o?.off("pointerdown"), Z.vfx(t, !0, !0);
582
+ }), o?.off("pointerdown"), Y.vfx(t, !0, !0);
563
583
  },
564
584
  movable: e => {
565
585
  if (!1 === e.movable) return;
566
- const t = F(e), o = String(t), i = h(".popup_overflow_" + t, "#popup"), n = i ? h(".popup_drag_" + t, i.el) : null, s = i ? h(".popup_body_" + t, i.el) : null;
586
+ const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup"), n = i ? f(".popup_drag_" + t, i.el) : null, s = i ? f(".popup_body_" + t, i.el) : null;
567
587
  i?.css("touch-action", "none");
568
- let p = 0, r = 0, a = 0, c = 0;
569
- const l = e => {
588
+ let p = 0, r = 0, a = 0, l = 0;
589
+ const c = e => {
570
590
  e.preventDefault();
571
- const t = L(e), o = M(e);
572
- p = a - t, r = c - o, a = t, c = o, Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && i?.css("top", i.el.offsetTop - r),
573
- Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && i?.css("left", i.el.offsetLeft - p);
591
+ const t = M(e), o = O(e);
592
+ p = a - t, r = l - o, a = t, l = o, Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && i?.css("top", i.el.offsetTop - r),
593
+ Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && i?.css("left", i.el.offsetLeft - p);
574
594
  }, d = () => {
575
595
  const e = {
576
596
  passive: !1
577
597
  };
578
- document.removeEventListener("pointermove", l, e), document.removeEventListener("pointerup", d, e),
579
- Y.delete(o), s?.css("pointer-events", "auto"), Z.vfx(i, !0);
598
+ document.removeEventListener("pointermove", c, e), document.removeEventListener("pointerup", d, e),
599
+ W.delete(o), s?.css("pointer-events", "auto"), Y.vfx(i, !0);
580
600
  };
581
- Y.set(o, {
582
- move: l,
601
+ W.set(o, {
602
+ move: c,
583
603
  up: d
584
604
  });
585
605
  n?.el.addEventListener("pointerdown", e => {
586
606
  "fixed" !== i?.el.style.position && (e.preventDefault(), s?.css("pointer-events", "none"),
587
- u(e), Z.vfx(i, !1));
607
+ u(e), Y.vfx(i, !1));
588
608
  }, {
589
609
  passive: !1
590
610
  }), e.maximize && n?.on("dblclick", () => {
591
611
  layerpro.popup.maximize(e);
592
612
  });
593
613
  const u = e => {
594
- a = L(e), c = M(e);
614
+ a = M(e), l = O(e);
595
615
  const t = {
596
616
  passive: !1
597
617
  };
598
- document.addEventListener("pointermove", l, t), document.addEventListener("pointerup", d, t);
618
+ document.addEventListener("pointermove", c, t), document.addEventListener("pointerup", d, t);
599
619
  };
600
620
  },
601
621
  resizable: e => {
602
622
  if (!e.resizable) return;
603
- const t = F(e), o = String(t), i = h(".popup_overflow_" + t, "#popup");
604
- for (let e = 4; e--; ) m(`<div class='resize_${e}'>`).appendTo(i?.el).css("touch-action", "none"),
605
- m(`<div class='resize_corner_${e}'>`).appendTo(i?.el).css("touch-action", "none");
606
- const n = U.get(o) || {};
623
+ const t = X(e), o = String(t), i = f(".popup_overflow_" + t, "#popup");
624
+ for (let e = 4; e--; ) b(`<div class='resize_${e}'>`).appendTo(i?.el).css("touch-action", "none"),
625
+ b(`<div class='resize_corner_${e}'>`).appendTo(i?.el).css("touch-action", "none");
626
+ const n = R.get(o) || {};
607
627
  n.down = function(t) {
608
- Z.resizeModals(t, this, e);
609
- }, U.set(o, n);
628
+ Y.resizeModals(t, this, e);
629
+ }, R.set(o, n);
610
630
  const s = {
611
631
  passive: !1
612
632
  };
613
- f("[class^=resize_]").forEach(t => {
633
+ m("[class^=resize_]").forEach(t => {
614
634
  t.el.addEventListener("pointerdown", o => {
615
- o.preventDefault(), Z.resizeModals(o, t.el, e);
635
+ o.preventDefault(), Y.resizeModals(o, t.el, e);
616
636
  }, s);
617
637
  });
618
638
  },
619
639
  resizeModals: (e, t, o) => {
620
- const i = t instanceof HTMLElement ? new u(t) : h(t), n = i?.parent(), s = String(o.id);
640
+ const i = t instanceof HTMLElement ? new h(t) : f(t), n = i?.parent(), s = String(o.id);
621
641
  n?.el.style.setProperty("transition", "none");
622
- const p = L(e), r = M(e), a = [ p - _.scrollLeft(), r - _.scrollTop() ];
623
- o.minWidth, K()?.css("pointer-events", "none"), n?.css("pointer-events", "none"),
624
- Z.vfx(n, !1);
625
- const c = e => {
626
- Z.doRes(e, t);
627
- }, l = () => {
628
- Z.stopRes(t, s);
629
- }, d = U.get(s) || {};
630
- d.move = c, d.up = l, U.set(s, d);
631
- const f = {
642
+ const p = M(e), r = O(e), a = [ p - _.scrollLeft(), r - _.scrollTop() ];
643
+ o.minWidth, D()?.css("pointer-events", "none"), n?.css("pointer-events", "none"),
644
+ Y.vfx(n, !1);
645
+ const l = e => {
646
+ Y.doRes(e, t);
647
+ }, c = () => {
648
+ Y.stopRes(t, s);
649
+ }, d = R.get(s) || {};
650
+ d.move = l, d.up = c, R.set(s, d);
651
+ const u = {
632
652
  passive: !1
633
653
  };
634
- document.addEventListener("pointermove", c, f), document.addEventListener("pointerup", l, f),
635
- P = a[0], j = a[1], W = n?.width() ?? 0, R = n?.height() ?? 0, D = n?.position().left ?? 0,
636
- q = n?.position().top ?? 0, B = q + R + 1, X = D + W + 1, O = t;
654
+ document.addEventListener("pointermove", l, u), document.addEventListener("pointerup", c, u);
655
+ const m = n?.position().left ?? 0, b = n?.position().top ?? 0, g = n?.width() ?? 0, v = n?.height() ?? 0;
656
+ B = {
657
+ id: String(o.id),
658
+ startX: a[0],
659
+ startY: a[1],
660
+ startWidth: g,
661
+ startHeight: v,
662
+ startLeft: m,
663
+ startTop: b,
664
+ startBottom: b + v + 1,
665
+ startRight: m + g + 1
666
+ }, H = t;
637
667
  },
638
668
  doRes: (e, t) => {
639
669
  dispatchEvent(new Event("layerProResize"));
640
- const o = t instanceof HTMLElement ? new u(t) : h(t), i = o?.parent(), n = L(e), s = M(e), p = [ n - _.scrollLeft(), s - _.scrollTop() ];
641
- if (t === O) {
642
- let t = W + p[0] - P, n = R + p[1] - j;
643
- const s = W - p[0] + P, r = R - p[1] + j;
644
- t <= 0 && (t = 0), n <= 0 && (n = 0), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && o?.hasClass("resize_0") && (i && i.height() <= N && r > N && i.css({
645
- height: Number(N + 1)
646
- }), i && i.height() > N && N <= r && i.css({
647
- top: Number(B - r),
648
- height: parseInt(String(r))
649
- })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && o?.hasClass("resize_1") && (i && i.width() >= S && i.css({
650
- width: Number(t),
651
- right: Number(D - t)
652
- }), i && i.width() <= S && i.css({
653
- width: Number(S + 1)
654
- })), Z.checkArea(e)[1] < Z.checkArea(e)[4] && 1 === Math.sign(Z.checkArea(e)[1]) && o?.hasClass("resize_2") && (i && i.height() >= N && i.css({
655
- height: Number(n)
656
- }), i && i.height() <= N && n > N && i.css({
657
- height: Number(N + 1)
658
- })), Z.checkArea(e)[0] < Z.checkArea(e)[5] && 1 === Math.sign(Z.checkArea(e)[0]) && o?.hasClass("resize_3") && (i && i.width() <= S && s > S && i.css({
659
- width: Number(S + 1)
660
- }), i && i.width() > S && S <= s && i.css({
661
- width: parseInt(String(s)),
662
- left: Number(X - s)
663
- })), 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]) && (o?.hasClass("resize_corner_0") && (i && i.height() >= N && r > N && i.css({
664
- top: Number(B - r),
665
- height: parseInt(String(r))
666
- }), i && i.height() <= N && r > N && i.css({
667
- height: Number(N + 1)
668
- }), i && i.width() >= S && s > S && i.css({
669
- width: parseInt(String(s)),
670
- left: Number(X - s)
671
- }), i && i.width() <= S && s > S && i.css({
672
- width: Number(S + 1)
673
- })), o?.hasClass("resize_corner_1") && (i && i.height() >= N && r > N && i.css({
674
- top: Number(B - r),
675
- height: Number(r)
676
- }), i && i.height() <= N && r > N && i.css({
677
- height: Number(N + 1)
678
- }), i && i.width() >= S && i.css({
679
- width: Number(t),
680
- right: Number(D - t)
681
- }), i && i.width() <= S && s > S && i.css({
682
- width: Number(S + 1)
683
- })), o?.hasClass("resize_corner_2") && (i && i.height() >= N && i.css({
684
- height: Number(n)
685
- }), i && i.height() <= N && n > N && i.css({
686
- height: Number(N + 1)
687
- }), i && i.width() >= S && i.css({
688
- width: Number(t),
689
- right: Number(D - t)
690
- }), i && i.width() <= S && i.css({
691
- width: Number(S + 1)
692
- })), o?.hasClass("resize_corner_3") && (i && i.height() >= N && n > N && i.css({
693
- height: Number(n)
694
- }), i && i.height() <= N && n > N && i.css({
695
- height: Number(N + 1)
696
- }), i && i.width() >= S && s > S && i.css({
697
- width: Number(s),
698
- left: Number(X - s)
699
- }), i && i.width() <= S && s > S && i.css({
700
- width: Number(S + 1)
670
+ const o = t instanceof HTMLElement ? new h(t) : f(t), i = o?.parent(), n = M(e), s = O(e), p = [ n - _.scrollLeft(), s - _.scrollTop() ];
671
+ if (t === H && B) {
672
+ const t = B;
673
+ let n = t.startWidth + p[0] - t.startX, s = t.startHeight + p[1] - t.startY;
674
+ const r = t.startWidth - p[0] + t.startX, a = t.startHeight - p[1] + t.startY;
675
+ n <= 0 && (n = 0), s <= 0 && (s = 0), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_0") && (i && i.height() <= A && a > A && i.css({
676
+ height: Number(A + 1)
677
+ }), i && i.height() > A && A <= a && i.css({
678
+ top: Number(t.startBottom - a),
679
+ height: parseInt(String(a))
680
+ })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_1") && (i && i.width() >= N && i.css({
681
+ width: Number(n),
682
+ right: Number(t.startLeft - n)
683
+ }), i && i.width() <= N && i.css({
684
+ width: Number(N + 1)
685
+ })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && 1 === Math.sign(Y.checkArea(e)[1]) && o?.hasClass("resize_2") && (i && i.height() >= A && i.css({
686
+ height: Number(s)
687
+ }), i && i.height() <= A && s > A && i.css({
688
+ height: Number(A + 1)
689
+ })), Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && o?.hasClass("resize_3") && (i && i.width() <= N && r > N && i.css({
690
+ width: Number(N + 1)
691
+ }), i && i.width() > N && N <= r && i.css({
692
+ width: parseInt(String(r)),
693
+ left: Number(t.startRight - r)
694
+ })), Y.checkArea(e)[1] < Y.checkArea(e)[4] && Y.checkArea(e)[0] < Y.checkArea(e)[5] && 1 === Math.sign(Y.checkArea(e)[0]) && 1 === Math.sign(Y.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (i && i.height() >= A && a > A && i.css({
695
+ top: Number(t.startBottom - a),
696
+ height: parseInt(String(a))
697
+ }), i && i.height() <= A && a > A && i.css({
698
+ height: Number(A + 1)
699
+ }), i && i.width() >= N && r > N && i.css({
700
+ width: parseInt(String(r)),
701
+ left: Number(t.startRight - r)
702
+ }), i && i.width() <= N && r > N && i.css({
703
+ width: Number(N + 1)
704
+ })), o?.hasClass("resize_corner_1") && (i && i.height() >= A && a > A && i.css({
705
+ top: Number(t.startBottom - a),
706
+ height: Number(a)
707
+ }), i && i.height() <= A && a > A && i.css({
708
+ height: Number(A + 1)
709
+ }), i && i.width() >= N && i.css({
710
+ width: Number(n),
711
+ right: Number(t.startLeft - n)
712
+ }), i && i.width() <= N && r > N && i.css({
713
+ width: Number(N + 1)
714
+ })), o?.hasClass("resize_corner_2") && (i && i.height() >= A && i.css({
715
+ height: Number(s)
716
+ }), i && i.height() <= A && s > A && i.css({
717
+ height: Number(A + 1)
718
+ }), i && i.width() >= N && i.css({
719
+ width: Number(n),
720
+ right: Number(t.startLeft - n)
721
+ }), i && i.width() <= N && i.css({
722
+ width: Number(N + 1)
723
+ })), o?.hasClass("resize_corner_3") && (i && i.height() >= A && s > A && i.css({
724
+ height: Number(s)
725
+ }), i && i.height() <= A && s > A && i.css({
726
+ height: Number(A + 1)
727
+ }), i && i.width() >= N && r > N && i.css({
728
+ width: Number(r),
729
+ left: Number(t.startRight - r)
730
+ }), i && i.width() <= N && r > N && i.css({
731
+ width: Number(N + 1)
701
732
  })));
702
733
  }
703
734
  },
704
735
  stopRes: (e, t) => {
705
- const o = e instanceof HTMLElement ? new u(e) : h(e), i = o?.parent();
736
+ const o = e instanceof HTMLElement ? new h(e) : f(e), i = o?.parent();
706
737
  i?.el.style.setProperty("transition", ""), o?.el.style.setProperty("transition", ""),
707
- K()?.css("pointer-events", "auto"), i?.css("pointer-events", "auto"), Z.vfx(i, !0),
708
- O = !1;
709
- const n = U.get(t);
738
+ D()?.css("pointer-events", "auto"), i?.css("pointer-events", "auto"), Y.vfx(i, !0),
739
+ H = !1, B?.id === t && (B = null);
740
+ const n = R.get(t);
710
741
  if (n) {
711
742
  const e = {
712
743
  passive: !1
713
744
  };
714
745
  n.move && document.removeEventListener("pointermove", n.move, e), n.up && document.removeEventListener("pointerup", n.up, e),
715
- U.delete(t);
746
+ R.delete(t);
716
747
  }
717
748
  },
718
749
  index: e => {
719
- const t = F(e), o = f('[class^="popup_overflow_"]', "#popup");
720
- f('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), f('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
721
- f('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
722
- o.forEach(e => {
723
- const t = parseInt(e.el.style.zIndex || "0", 10);
724
- e.css("zIndex", t - 1);
725
- }), h(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), h(".popup_overflow_" + t, "#popup")?.css("zIndex", Z.zIndex()),
726
- h(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), h(".popup_window_" + t, "#popup")?.addClass("zHigh");
750
+ const t = X(e);
751
+ m('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), m('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
752
+ m('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
753
+ f(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_overflow_" + t, "#popup")?.css("zIndex", Y.zIndex()),
754
+ f(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), f(".popup_window_" + t, "#popup")?.addClass("zHigh");
727
755
  },
728
756
  zIndex: () => {
729
- if (!A) {
730
- A = !0;
757
+ if (!P) {
758
+ P = !0;
731
759
  try {
732
760
  const e = getComputedStyle(document.documentElement).getPropertyValue("--popup-z-index").trim();
733
761
  if (e) {
@@ -741,33 +769,37 @@ var L = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length >
741
769
  };
742
770
 
743
771
  Object.defineProperty(layerpro, "popup", {
744
- value: Z,
772
+ value: Y,
745
773
  writable: !1,
746
774
  configurable: !1
775
+ }), globalThis.popup = Y, Object.defineProperty(window, "popup", {
776
+ enumerable: !1
747
777
  });
748
778
 
749
- var G = {
779
+ var q = {
750
780
  "&": "&amp;",
751
781
  "<": "&lt;",
752
782
  ">": "&gt;",
753
783
  '"': "&quot;",
754
784
  "'": "&#39;"
755
- }, J = e => e.replace(/[&<>"']/g, e => G[e]), V = globalThis.alert, Q = globalThis.confirm, ee = globalThis.prompt, te = globalThis.message;
785
+ }, U = e => e.replace(/[&<>"']/g, e => q[e]), K = globalThis.alert, F = globalThis.confirm, G = globalThis.prompt, Z = globalThis.message, J = () => {
786
+ globalThis.message = (e, t) => layerpro.message(e, t), globalThis.alert = e => layerpro.alert(e),
787
+ globalThis.confirm = (e, t, o) => layerpro.confirm(e, t, o), globalThis.prompt = (e, t, o) => layerpro.prompt(e, t),
788
+ Object.defineProperty(window, "alert", {
789
+ enumerable: !1
790
+ }), Object.defineProperty(window, "prompt", {
791
+ enumerable: !1
792
+ }), Object.defineProperty(window, "message", {
793
+ enumerable: !1
794
+ }), Object.defineProperty(window, "confirm", {
795
+ enumerable: !1
796
+ });
797
+ };
756
798
 
757
- globalThis.message = (e, t) => layerpro.message(e, t), globalThis.alert = e => layerpro.alert(e),
758
- globalThis.confirm = (e, t, o) => layerpro.confirm(e, t, o), globalThis.prompt = (e, t, o) => layerpro.prompt(e, t),
759
- Object.defineProperty(window, "alert", {
760
- enumerable: !1
761
- }), Object.defineProperty(window, "prompt", {
762
- enumerable: !1
763
- }), Object.defineProperty(window, "message", {
764
- enumerable: !1
765
- }), Object.defineProperty(window, "confirm", {
766
- enumerable: !1
767
- }), Object.defineProperties(layerpro, {
799
+ J(), Object.defineProperties(layerpro, {
768
800
  prompt: {
769
801
  value: (e, t) => {
770
- const o = t || "_prompt", i = J(String(e)), n = layerpro.popup.open({
802
+ const o = t || "_prompt", i = U(String(e)), n = layerpro.popup.open({
771
803
  id: "__prompt",
772
804
  name: "Prompt",
773
805
  icon: "&#9998;",
@@ -782,13 +814,13 @@ Object.defineProperty(window, "alert", {
782
814
  movable: !0,
783
815
  resizable: !1
784
816
  }), s = `\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 `;
785
- h(".popup_body_" + n.id)?.html(s);
786
- const p = h("#input_" + n.id);
817
+ f(".popup_body_" + n.id)?.html(s);
818
+ const p = f("#input_" + n.id);
787
819
  p?.on("focus", () => {
788
820
  p.attr("placeholder", "");
789
821
  })?.on("blur", () => {
790
822
  p.attr("placeholder", "write here");
791
- }), h("#a_" + n.id)?.on("click", () => {
823
+ }), f("#a_" + n.id)?.on("click", () => {
792
824
  const e = p?.val() ?? "";
793
825
  if (e > "") {
794
826
  if ("function" == typeof o) {
@@ -798,14 +830,14 @@ Object.defineProperty(window, "alert", {
798
830
  if (String(o) === o) return JSON.stringify(e);
799
831
  layerpro.popup.close(n);
800
832
  } else alert("input can't be empty!");
801
- }), h("#b_" + n.id)?.on("click", () => {
833
+ }), f("#b_" + n.id)?.on("click", () => {
802
834
  layerpro.popup.close(n);
803
835
  });
804
836
  }
805
837
  },
806
838
  alert: {
807
839
  value: e => {
808
- const t = J(String(e)), o = layerpro.popup.open({
840
+ const t = U(String(e)), o = layerpro.popup.open({
809
841
  id: "__alert",
810
842
  name: "Warning",
811
843
  icon: "&#9888;",
@@ -820,14 +852,14 @@ Object.defineProperty(window, "alert", {
820
852
  movable: !0,
821
853
  resizable: !1
822
854
  }), i = `\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_" + o.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
823
- h(".popup_body_" + o.id)?.html(i), h("#a_" + o.id)?.on("click", () => {
855
+ f(".popup_body_" + o.id)?.html(i), f("#a_" + o.id)?.on("click", () => {
824
856
  layerpro.popup.close(o);
825
857
  });
826
858
  }
827
859
  },
828
860
  message: {
829
861
  value: (e, t) => {
830
- const o = J(String(e)), i = layerpro.popup.open({
862
+ const o = U(String(e)), i = layerpro.popup.open({
831
863
  id: "__message",
832
864
  name: "Message",
833
865
  icon: "&#9965;",
@@ -842,15 +874,15 @@ Object.defineProperty(window, "alert", {
842
874
  movable: !0,
843
875
  resizable: !1
844
876
  }), n = `\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_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
845
- h(".popup_body_" + i.id)?.html(n), h("#a_" + i.id)?.on("click", () => {
877
+ f(".popup_body_" + i.id)?.html(n), f("#a_" + i.id)?.on("click", () => {
846
878
  t && t(), layerpro.popup.close(i);
847
879
  });
848
880
  }
849
881
  },
850
882
  confirm: {
851
883
  value: (e, t, o) => {
852
- if (!h(".confirm")) {
853
- const i = J(String(e)), n = layerpro.popup.open({
884
+ if (!f(".confirm")) {
885
+ const i = U(String(e)), n = layerpro.popup.open({
854
886
  id: "__confirm",
855
887
  name: "Confirm",
856
888
  icon: "&#9745;",
@@ -865,27 +897,27 @@ Object.defineProperty(window, "alert", {
865
897
  movable: !0,
866
898
  resizable: !1
867
899
  }), s = `\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 `;
868
- h(".popup_body_" + n.id)?.html(s), h("#a_" + n.id)?.on("click", () => {
900
+ f(".popup_body_" + n.id)?.html(s), f("#a_" + n.id)?.on("click", () => {
869
901
  t && t(), layerpro.popup.close(n);
870
- }), h("#b_" + n.id)?.on("click", () => {
902
+ }), f("#b_" + n.id)?.on("click", () => {
871
903
  o && o(), layerpro.popup.close(n);
872
904
  });
873
905
  }
874
906
  }
875
907
  },
908
+ installGlobals: {
909
+ value: J
910
+ },
876
911
  noGlobals: {
877
912
  value: () => {
878
913
  const e = globalThis;
879
- e.alert = V, e.confirm = Q, e.prompt = ee, void 0 === te ? delete e.message : e.message = te;
914
+ e.alert = K, e.confirm = F, e.prompt = G, void 0 === Z ? delete e.message : e.message = Z;
880
915
  }
881
916
  }
882
- }), globalThis.layerpro.offScreenBuffering = !0, addEventListener("wheel", e => {}, {
883
- capture: !0,
884
- passive: !0
885
917
  });
886
918
 
887
- C = (e, t) => {
888
- f('[class^="popup_overflow_"]').forEach(e => {
919
+ S = (e, t) => {
920
+ m('[class^="popup_overflow_"]').forEach(e => {
889
921
  const t = e.el.className.match(/popup_overflow_(\d+)/);
890
922
  t && t[1] && layerpro.popup.close({
891
923
  id: t[1],
@@ -894,10 +926,10 @@ C = (e, t) => {
894
926
  });
895
927
  };
896
928
 
897
- var oe = globalThis.layerpro;
929
+ var V = globalThis.layerpro;
898
930
 
899
- oe.setProps(oe, {
931
+ V.setProps(V, {
900
932
  configurable: !1,
901
933
  enumerable: !1,
902
934
  writable: !1
903
- }), Object.freeze(oe);
935
+ }), Object.freeze(V);