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