layerpro 4.0.0 → 4.0.1
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 +245 -15
- package/global.cjs +519 -416
- package/global.js +517 -416
- package/index.cjs +519 -416
- package/index.css +596 -502
- package/index.js +517 -416
- package/llms.txt +9 -4
- package/markdown/GUIDE.md +160 -10
- package/package.json +1 -1
- package/types/layerpro.d.ts +19 -0
package/global.cjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
;(()=>{if(typeof document==="undefined"||document.querySelector("style[data-layerpro-styles]"))return;const s=document.createElement("style");const n=globalThis.__layerproNonce||globalThis.layerpro?.nonce||document.querySelector("style[nonce],script[nonce]")?.nonce||document.body?.dataset?.nonce;if(n)s.setAttribute("nonce",n);s.setAttribute("data-layerpro-styles","");s.textContent=":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;--modal-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]{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_modal_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--modal-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+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3NvZGlwb2RpLTAuZHRk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mQ9IjAiIC8+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhMzc2NSI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MT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NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+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, n) => ((t, o, n) => o in t ? e(t, o, {
|
|
1
|
+
;(()=>{if(typeof document==="undefined"||document.querySelector("style[data-layerpro-styles]"))return;const s=document.createElement("style");const n=globalThis.__layerproNonce||globalThis.layerpro?.nonce||document.querySelector("style[nonce],script[nonce]")?.nonce||document.body?.dataset?.nonce;if(n)s.setAttribute("nonce",n);s.setAttribute("data-layerpro-styles","");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;--modal-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);}}@layer layerpro{#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body]{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%;pointer-events:none;z-index:var(--lp-z-index,1001);}#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_modal_]{position:absolute;inset:0;width:100%;height:100%;background-color:var(--modal-background);pointer-events:auto;z-index:var(--lp-z-index,1);}#popup [class*=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:auto;border-radius:var(--window-border-radius);box-shadow:var(--window-shadow);overflow:hidden;}#popup [class*=popup_overflow_]{position:absolute;inset:auto;top:var(--lp-top,auto);left:var(--lp-left,auto);right:var(--lp-right,auto);bottom:var(--lp-bottom,auto);width:var(--lp-width,auto);height:var(--lp-height,auto);min-width:var(--lp-min-width,auto);min-height:var(--lp-min-height,auto);max-width:var(--lp-max-width,none);max-height:var(--lp-max-height,none);z-index:var(--lp-z-index,3);pointer-events:auto;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;}}@layer layerpro{#popup .lp_hidden{display:none;}#popup .lp_fade_in{opacity:1;transition:opacity var(--lp-fade-duration,100ms) ease;}#popup .lp_fade_out{opacity:0;transition:opacity var(--lp-fade-duration,100ms) ease;}#popup .lp_no_transition{transition:none;}#popup .popup_maximized{position:fixed;top:-6px;left:-6px;right:-6px;bottom:-6px;width:auto;height:auto;}#popup .popup_iconized{width:0;height:0;opacity:0;}#popup .popup_dimmed{opacity:0.5;}#popup [class*=popup_body_].popup_content_hidden{content-visibility:hidden;}#popup [class*=popup_body_].popup_content_visible{content-visibility:visible;}#popup .lp_no_pointer{pointer-events:none;}#popup .lp_pointer{pointer-events:auto;}#popup .lp_no_touch{touch-action:none;}body.lp_page_locked{pointer-events:none;}}@layer layerpro{#root.layerpro-dock,html.layerpro-dock,body.layerpro-dock{position:absolute;top:0;right:0;left:0;bottom:var(--dock-height) !important;overflow-y:auto !important;}#popup_dock{position:fixed;bottom:0;left:0;right:0;height:var(--dock-height);pointer-events:auto;z-index:var(--lp-z-index,1001);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);}}@layer layerpro{#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+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpOmRvY25hbWU9Imljb25pemUuc3ZnIgogICB4bWxuczppbmtzY2FwZT0iaHR0cDovL3d3dy5pbmtzY2FwZS5vcmcvbmFtZXNwYWNlcy9pbmtzY2FwZSIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG9kaS5zb3VyY2Vmb3JnZS5uZXQvRFREL3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hZ2VjaGVja2VyYm9hcmQ9IjAiIC8+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhMzc2NSI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdC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ywtMC4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}}@layer layerpro{#popup > input,#popup > button,#popup > textarea,#popup > select{all:unset;}}@layer layerpro{.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;}}@layer layerpro{.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);}}@layer layerpro{#popup{}#popup::-webkit-scrollbar{width:10px;scroll-behavior:smooth;}#popup{}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px;}#popup{}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgb(30,150,255) !important;}}";document.head.appendChild(s)})();"use strict";
|
|
2
|
+
|
|
3
|
+
var e = Object.defineProperty, t = (t, o, n) => ((t, o, n) => o in t ? e(t, o, {
|
|
2
4
|
enumerable: !0,
|
|
3
5
|
configurable: !0,
|
|
4
6
|
writable: !0,
|
|
@@ -20,8 +22,8 @@ if (!n.setProps) {
|
|
|
20
22
|
const i = Object.getOwnPropertyDescriptor(t, n);
|
|
21
23
|
i && (i.enumerable = o?.enumerable ?? !1, i.configurable = o?.configurable ?? !1,
|
|
22
24
|
i.writable = o?.writable ?? !1, Object.defineProperty(t, n, i));
|
|
23
|
-
const
|
|
24
|
-
"object" == typeof
|
|
25
|
+
const r = t[n];
|
|
26
|
+
"object" == typeof r && null !== r && e(r, o);
|
|
25
27
|
});
|
|
26
28
|
};
|
|
27
29
|
Object.defineProperty(n, "setProps", {
|
|
@@ -31,25 +33,25 @@ if (!n.setProps) {
|
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
|
|
34
|
-
var i = globalThis.layerpro,
|
|
36
|
+
var i = globalThis.layerpro, r = globalThis;
|
|
35
37
|
|
|
36
38
|
Object.defineProperty(i, "config", {
|
|
37
39
|
value: e => {
|
|
38
|
-
void 0 !== e.nonce && (
|
|
40
|
+
void 0 !== e.nonce && (r.__layerproNonce = e.nonce);
|
|
39
41
|
},
|
|
40
42
|
writable: !1,
|
|
41
43
|
configurable: !1
|
|
42
44
|
});
|
|
43
45
|
|
|
44
|
-
var
|
|
46
|
+
var s = globalThis.layerpro;
|
|
45
47
|
|
|
46
|
-
Object.defineProperty(
|
|
48
|
+
Object.defineProperty(s, "credits", {
|
|
47
49
|
value: e => {},
|
|
48
50
|
writable: !1,
|
|
49
51
|
configurable: !1
|
|
50
52
|
});
|
|
51
53
|
|
|
52
|
-
var p = "4.0.
|
|
54
|
+
var p = "4.0.1", a = globalThis.layerpro;
|
|
53
55
|
|
|
54
56
|
Object.defineProperty(a, "version", {
|
|
55
57
|
value: () => p,
|
|
@@ -57,20 +59,20 @@ Object.defineProperty(a, "version", {
|
|
|
57
59
|
configurable: !1
|
|
58
60
|
});
|
|
59
61
|
|
|
60
|
-
var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, u = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], h = new Set([ "
|
|
61
|
-
const i = e => o(e),
|
|
62
|
+
var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.querySelector(e) ?? document : e instanceof HTMLElement ? e : document, u = e => e ? e.split(/\s+/).filter(e => e.length > 0) : [], h = new Set([ "--lp-z-index", "--lp-opacity" ]), m = (e, t, o, n) => {
|
|
63
|
+
const i = e => o(e), r = n?.ns ? `${t}.${n.ns}` : t;
|
|
62
64
|
e.addEventListener(t, i, n);
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
+
let s = l.get(e);
|
|
66
|
+
s || (s = new Map, l.set(e, s)), s.set(r, {
|
|
65
67
|
handler: i,
|
|
66
68
|
opts: n ?? {}
|
|
67
69
|
});
|
|
68
|
-
},
|
|
70
|
+
}, f = (e, t, o) => {
|
|
69
71
|
const n = l.get(e);
|
|
70
72
|
if (n) {
|
|
71
73
|
if (o?.ns) {
|
|
72
|
-
const i = `${t}.${o.ns}`,
|
|
73
|
-
return void (
|
|
74
|
+
const i = `${t}.${o.ns}`, r = n.get(i);
|
|
75
|
+
return void (r && (e.removeEventListener(t, r.handler, r.opts), n.delete(i)));
|
|
74
76
|
}
|
|
75
77
|
for (const [o, i] of [ ...n ]) (o === t || o.startsWith(`${t}.`)) && (e.removeEventListener(t, i.handler, i.opts),
|
|
76
78
|
n.delete(o));
|
|
@@ -97,9 +99,19 @@ var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.q
|
|
|
97
99
|
text(e) {
|
|
98
100
|
return this.el.textContent = e, this;
|
|
99
101
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
return this;
|
|
102
|
+
cssVar(e, t) {
|
|
103
|
+
const o = e.startsWith("--") ? e : `--${e}`, n = "number" == typeof t && !h.has(o) ? `${t}px` : String(t);
|
|
104
|
+
return this.el.style.setProperty(o, n), this;
|
|
105
|
+
}
|
|
106
|
+
removeVar(e) {
|
|
107
|
+
const t = e.startsWith("--") ? e : `--${e}`;
|
|
108
|
+
return this.el.style.removeProperty(t), this;
|
|
109
|
+
}
|
|
110
|
+
geom(e) {
|
|
111
|
+
return void 0 !== e.top && this.cssVar("--lp-top", e.top), void 0 !== e.left && this.cssVar("--lp-left", e.left),
|
|
112
|
+
void 0 !== e.right && this.cssVar("--lp-right", e.right), void 0 !== e.bottom && this.cssVar("--lp-bottom", e.bottom),
|
|
113
|
+
void 0 !== e.width && this.cssVar("--lp-width", e.width), void 0 !== e.height && this.cssVar("--lp-height", e.height),
|
|
114
|
+
this;
|
|
103
115
|
}
|
|
104
116
|
addClass(e) {
|
|
105
117
|
for (const t of u(e)) this.el.classList.add(t);
|
|
@@ -118,7 +130,7 @@ var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.q
|
|
|
118
130
|
}
|
|
119
131
|
isHidden() {
|
|
120
132
|
const e = this.el;
|
|
121
|
-
return
|
|
133
|
+
return !!e.classList.contains("lp_hidden") || ("none" === getComputedStyle(e).display || 0 === e.offsetWidth && 0 === e.offsetHeight);
|
|
122
134
|
}
|
|
123
135
|
attr(e, t) {
|
|
124
136
|
return void 0 === t ? this.el.getAttribute(e) : (this.el.setAttribute(e, t), this);
|
|
@@ -138,19 +150,19 @@ var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.q
|
|
|
138
150
|
return this.el.parentElement ? new e(this.el.parentElement) : null;
|
|
139
151
|
}
|
|
140
152
|
hide() {
|
|
141
|
-
return this.el.
|
|
153
|
+
return this.el.classList.add("lp_hidden"), this;
|
|
142
154
|
}
|
|
143
155
|
show() {
|
|
144
|
-
return this.el.
|
|
156
|
+
return this.el.classList.remove("lp_hidden"), this;
|
|
145
157
|
}
|
|
146
158
|
toggle() {
|
|
147
|
-
return this.el.
|
|
159
|
+
return this.el.classList.toggle("lp_hidden"), this;
|
|
148
160
|
}
|
|
149
161
|
on(e, t, o) {
|
|
150
|
-
return
|
|
162
|
+
return m(this.el, e, t, o), this;
|
|
151
163
|
}
|
|
152
164
|
off(e, t) {
|
|
153
|
-
return
|
|
165
|
+
return f(this.el, e, t), this;
|
|
154
166
|
}
|
|
155
167
|
data(e, t) {
|
|
156
168
|
let o = c.get(this.el);
|
|
@@ -192,115 +204,203 @@ var l = new WeakMap, c = new WeakMap, d = e => "string" == typeof e ? document.q
|
|
|
192
204
|
fadeIn(e, t) {
|
|
193
205
|
const o = this.el;
|
|
194
206
|
let n = 100, i = t;
|
|
195
|
-
return "function" == typeof e ? i = e : n = e, o.style.
|
|
196
|
-
o.
|
|
197
|
-
o.
|
|
198
|
-
|
|
207
|
+
return "function" == typeof e ? i = e : n = e, o.style.setProperty("--lp-fade-duration", `${n}ms`),
|
|
208
|
+
o.classList.remove("lp_hidden"), o.classList.add("lp_no_transition"), o.classList.add("lp_fade_out"),
|
|
209
|
+
o.offsetWidth, o.classList.remove("lp_no_transition"), o.classList.remove("lp_fade_out"),
|
|
210
|
+
o.classList.add("lp_fade_in"), this.finishTransition(n, () => {
|
|
211
|
+
o.classList.remove("lp_fade_in"), i?.();
|
|
199
212
|
}), this;
|
|
200
213
|
}
|
|
201
214
|
fadeOut(e, t) {
|
|
202
215
|
const o = this.el;
|
|
203
216
|
let n = 100, i = t;
|
|
204
|
-
return "function" == typeof e ? i = e : n = e, o.style.
|
|
205
|
-
o.
|
|
206
|
-
o.
|
|
207
|
-
}), this;
|
|
208
|
-
}
|
|
209
|
-
animate(e, t, o) {
|
|
210
|
-
const n = this.el;
|
|
211
|
-
let i = 200, s = o;
|
|
212
|
-
"function" == typeof t ? s = t : i = t;
|
|
213
|
-
const r = Object.keys(e), p = {};
|
|
214
|
-
for (const t of r) p[t] = m(t, e[t]);
|
|
215
|
-
return n.style.transition = "none", n.offsetWidth, n.style.transition = `${r.join(", ")} ${i}ms ease`,
|
|
216
|
-
Object.assign(n.style, p), this.finishTransition(i, () => {
|
|
217
|
-
n.style.transition = "", s?.();
|
|
217
|
+
return "function" == typeof e ? i = e : n = e, o.style.setProperty("--lp-fade-duration", `${n}ms`),
|
|
218
|
+
o.classList.remove("lp_fade_in"), o.classList.add("lp_fade_out"), this.finishTransition(n, () => {
|
|
219
|
+
o.classList.add("lp_hidden"), o.classList.remove("lp_fade_out"), i?.();
|
|
218
220
|
}), this;
|
|
219
221
|
}
|
|
220
222
|
finishTransition(e, t) {
|
|
221
223
|
const o = this.el;
|
|
222
224
|
let n = !1;
|
|
223
225
|
const i = () => {
|
|
224
|
-
n || (n = !0, o.removeEventListener("transitionend",
|
|
225
|
-
},
|
|
226
|
+
n || (n = !0, o.removeEventListener("transitionend", r), t());
|
|
227
|
+
}, r = e => {
|
|
226
228
|
e.target === o && i();
|
|
227
229
|
};
|
|
228
|
-
o.addEventListener("transitionend",
|
|
230
|
+
o.addEventListener("transitionend", r), window.setTimeout(i, e + 60);
|
|
229
231
|
}
|
|
230
232
|
};
|
|
231
233
|
|
|
232
|
-
function
|
|
234
|
+
function b(e, t) {
|
|
233
235
|
const o = d(t).querySelector(e);
|
|
234
236
|
return o ? new _(o) : null;
|
|
235
237
|
}
|
|
236
238
|
|
|
237
|
-
function
|
|
239
|
+
function g(e, t) {
|
|
238
240
|
return [ ...d(t).querySelectorAll(e) ].map(e => new _(e));
|
|
239
241
|
}
|
|
240
242
|
|
|
241
|
-
var
|
|
243
|
+
var v = e => {
|
|
242
244
|
const t = document.createElement("div");
|
|
243
245
|
t.innerHTML = e.trim();
|
|
244
246
|
const o = t.firstElementChild;
|
|
245
247
|
return new _(o);
|
|
246
|
-
},
|
|
248
|
+
}, y = {
|
|
247
249
|
on(e, t, o) {
|
|
248
|
-
|
|
250
|
+
m(document, e, t, o);
|
|
249
251
|
},
|
|
250
252
|
off(e, t) {
|
|
251
|
-
|
|
253
|
+
f(document, e, t);
|
|
252
254
|
}
|
|
253
|
-
},
|
|
255
|
+
}, w = {
|
|
254
256
|
on(e, t, o) {
|
|
255
|
-
|
|
257
|
+
m(window, e, t, o);
|
|
256
258
|
},
|
|
257
259
|
off(e, t) {
|
|
258
|
-
|
|
260
|
+
f(window, e, t);
|
|
259
261
|
},
|
|
260
262
|
height: () => window.innerHeight,
|
|
261
263
|
width: () => window.innerWidth,
|
|
262
264
|
scrollTop: () => window.scrollY || document.documentElement.scrollTop || 0,
|
|
263
265
|
scrollLeft: () => window.scrollX || document.documentElement.scrollLeft || 0
|
|
264
|
-
},
|
|
266
|
+
}, z = new Map, $ = new WeakSet, k = new Map, x = e => {
|
|
265
267
|
e ? Array.from(document.body.children).forEach(e => {
|
|
266
|
-
"popup" !== e.id && (e.setAttribute("aria-hidden", "true"),
|
|
268
|
+
"popup" !== e.id && "popup_dock" !== e.id && (e.setAttribute("aria-hidden", "true"),
|
|
269
|
+
$.add(e));
|
|
267
270
|
}) : Array.from(document.body.children).forEach(e => {
|
|
268
|
-
|
|
271
|
+
$.has(e) && (e.removeAttribute("aria-hidden"), $.delete(e));
|
|
269
272
|
});
|
|
270
|
-
},
|
|
271
|
-
const e =
|
|
272
|
-
e && "function" == typeof e.focus && e.focus(),
|
|
273
|
-
},
|
|
274
|
-
const t =
|
|
275
|
-
t && (t.el.removeEventListener("keydown", t.handler),
|
|
276
|
-
},
|
|
273
|
+
}, S = () => {
|
|
274
|
+
const e = z.get("__lastActive__");
|
|
275
|
+
e && "function" == typeof e.focus && e.focus(), z.delete("__lastActive__");
|
|
276
|
+
}, C = e => {
|
|
277
|
+
const t = k.get(e);
|
|
278
|
+
t && (t.el.removeEventListener("keydown", t.handler), k.delete(e));
|
|
279
|
+
}, L = x, E = () => {
|
|
277
280
|
const e = document.activeElement;
|
|
278
|
-
|
|
279
|
-
},
|
|
281
|
+
z.set("__lastActive__", e);
|
|
282
|
+
}, T = (e, t) => {
|
|
280
283
|
const o = e => {
|
|
281
284
|
const o = e;
|
|
282
285
|
if ("Tab" !== o.key) return;
|
|
283
286
|
const n = t.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
284
287
|
if (0 === n.length) return;
|
|
285
|
-
const i = n[0],
|
|
286
|
-
o.shiftKey ? document.activeElement === i && (e.preventDefault(),
|
|
288
|
+
const i = n[0], r = n[n.length - 1];
|
|
289
|
+
o.shiftKey ? document.activeElement === i && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(),
|
|
287
290
|
i.focus());
|
|
288
291
|
};
|
|
289
|
-
|
|
292
|
+
k.set(e, {
|
|
290
293
|
el: t,
|
|
291
294
|
handler: o
|
|
292
295
|
}), t.addEventListener("keydown", o, !0);
|
|
293
|
-
},
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
+
}, M = e => {
|
|
297
|
+
C(e), S(), x(!1);
|
|
298
|
+
}, A = "layerpro-dock", P = () => {
|
|
299
|
+
document.documentElement?.classList.remove(A), document.body?.classList.remove(A);
|
|
300
|
+
}, N = {
|
|
296
301
|
"&": "&",
|
|
297
302
|
"<": "<",
|
|
298
303
|
">": ">",
|
|
299
304
|
'"': """,
|
|
300
305
|
"'": "'"
|
|
301
|
-
},
|
|
306
|
+
}, O = e => e.replace(/[&<>"']/g, e => N[e]), I = new Map, V = new Map, H = e => {
|
|
307
|
+
if ("function" == typeof e.body) return;
|
|
308
|
+
const t = !0 === e.modal ? ".popup_modal_" + e.id : "#popup";
|
|
309
|
+
g('[class^="popup_window_"]', t).forEach(e => e.removeClass("zHigh")), g('[class^="popup_bar_"]', t).forEach(e => e.removeClass("popup_bar_selected")),
|
|
310
|
+
g('[class^="icon_"]', t).forEach(e => e.removeClass("popup_bar_selected")), !0 === e.modal && v(`<div class="popup_modal_${e.id} popup_modal">`).appendTo("#popup").cssVar("--lp-z-index", layerpro.popup.zIndex() + 1e3),
|
|
311
|
+
v(`<div class="popup_overflow_${e.id} popup_overflow">`).appendTo(t).cssVar("--lp-top", e.top).cssVar("--lp-left", e.left).cssVar("--lp-right", e.right).cssVar("--lp-bottom", e.bottom).cssVar("--lp-width", e.width).cssVar("--lp-height", e.height).cssVar("--lp-min-width", e.minWidth).cssVar("--lp-min-height", e.minHeight).cssVar("--lp-z-index", layerpro.popup.zIndex()).on("pointerdown", () => {
|
|
312
|
+
layerpro.popup.index(e);
|
|
313
|
+
}).hide().fadeIn(e.fadeIn);
|
|
314
|
+
const o = v(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).addClass("zHigh").addClass(e.class);
|
|
315
|
+
o.attr("role", "dialog"), o.attr("tabindex", "-1"), o.attr("aria-modal", !0 === e.modal ? "true" : "false"),
|
|
316
|
+
e.name && o.attr("aria-label", String(e.name)), L(!0), E(), T(String(e.id), o.el),
|
|
317
|
+
"function" == typeof requestAnimationFrame ? requestAnimationFrame(() => o.el.focus()) : o.el.focus();
|
|
318
|
+
const n = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
|
|
319
|
+
if (!0 === e.center || 0 === n) {
|
|
320
|
+
const t = g('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
|
|
321
|
+
layerpro.popup.center(e, o);
|
|
322
|
+
}
|
|
323
|
+
layerpro.popup.unmount = e => {
|
|
324
|
+
import("layerpro/react").then(t => {
|
|
325
|
+
const o = t.default;
|
|
326
|
+
o.unmount && o.unmount(String(e));
|
|
327
|
+
}).catch(() => {});
|
|
328
|
+
}, layerpro.popup.cleanupEvents = e => {
|
|
329
|
+
const t = V.get(e);
|
|
330
|
+
t && (t.iconClick && b(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && b(`.icon_close_${e}`, "#popup_dock")?.off("click"),
|
|
331
|
+
t.buttonIconize && b(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && b(`.button_maximize_${e}`)?.off("click"),
|
|
332
|
+
t.buttonClose && b(`.button_close_${e}`)?.off("click"), t.escKey && y.off("keydown", {
|
|
333
|
+
ns: `esc-${e}`
|
|
334
|
+
}), V.delete(e));
|
|
335
|
+
}, layerpro.popup.abortSource = e => {
|
|
336
|
+
const t = I.get(e);
|
|
337
|
+
t && (t.abort(), I.delete(e));
|
|
338
|
+
}, layerpro.popup.destroy = e => {
|
|
339
|
+
layerpro.popup.abortSource(e), layerpro.popup.cleanupEvents(e), L(!1);
|
|
340
|
+
const t = document.querySelector(`.popup_window_${e}`);
|
|
341
|
+
t && t.remove();
|
|
342
|
+
}, v(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
|
|
343
|
+
e.icon && v(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
|
|
344
|
+
const i = O(String(e.name));
|
|
345
|
+
if (v(`<div class="popup_drag_${e.id} popup_drag">${i}</div>`).appendTo(`.popup_bar_${e.id}`),
|
|
346
|
+
v(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
|
|
347
|
+
!0 === e.iconize && !b("#popup_dock")) {
|
|
348
|
+
v('\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("html").cssVar("--lp-z-index", layerpro.popup.zIndex() + 1e3),
|
|
349
|
+
document.documentElement?.classList.add(A), document.body?.classList.add(A);
|
|
350
|
+
}
|
|
351
|
+
if (b("#popup_dock") && !0 === e.dockable) {
|
|
352
|
+
const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${i}</span>\n </div>\n `, n = () => {
|
|
353
|
+
const t = b(".popup_overflow_" + e.id, "#popup");
|
|
354
|
+
t && t.data("iconize") ? (layerpro.popup.index(e), layerpro.popup.iconize(e)) : layerpro.popup.iconize(e),
|
|
355
|
+
layerpro.popup.index(e);
|
|
356
|
+
}, r = t => {
|
|
357
|
+
t?.stopPropagation(), e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
|
|
358
|
+
};
|
|
359
|
+
V.set(t, {
|
|
360
|
+
iconClick: !0,
|
|
361
|
+
iconClose: !0
|
|
362
|
+
}), v(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", n),
|
|
363
|
+
v(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", r);
|
|
364
|
+
}
|
|
365
|
+
if (!0 === e.iconize) {
|
|
366
|
+
const t = String(e.id), o = () => {
|
|
367
|
+
layerpro.popup.iconize(e);
|
|
368
|
+
}, n = V.get(t) || {};
|
|
369
|
+
n.buttonIconize = !0, V.set(t, n), v(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
370
|
+
}
|
|
371
|
+
if (!0 === e.maximize) {
|
|
372
|
+
const t = String(e.id), o = () => {
|
|
373
|
+
layerpro.popup.maximize(e);
|
|
374
|
+
}, n = V.get(t) || {};
|
|
375
|
+
n.buttonMaximize = !0, V.set(t, n), v(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
376
|
+
}
|
|
377
|
+
if (!0 === e.close) {
|
|
378
|
+
const t = String(e.id), o = () => {
|
|
379
|
+
e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
|
|
380
|
+
}, n = V.get(t) || {};
|
|
381
|
+
n.buttonClose = !0, V.set(t, n), v(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
382
|
+
}
|
|
383
|
+
const r = String(e.id), s = V.get(r) || {};
|
|
384
|
+
if (s.escKey = !0, V.set(r, s), y.on("keydown", t => {
|
|
385
|
+
const o = t;
|
|
386
|
+
"Escape" !== o.key && 27 !== o.keyCode || (e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(),
|
|
387
|
+
layerpro.popup.close(e));
|
|
388
|
+
}, {
|
|
389
|
+
ns: `esc-${r}`
|
|
390
|
+
}), e.timer > 0) {
|
|
391
|
+
const t = {};
|
|
392
|
+
t[String(`st_${e.id}`)] = setTimeout(() => {
|
|
393
|
+
layerpro.popup.close(e), clearTimeout(t[String(`st_${e.id}`)]);
|
|
394
|
+
}, e.timer);
|
|
395
|
+
}
|
|
396
|
+
e.movable && layerpro.popup.movable(e), e.resizable && layerpro.popup.resizable(e),
|
|
397
|
+
e.isMaximize && layerpro.popup.maximize(e), v(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
|
|
398
|
+
v(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
|
|
399
|
+
W(e), j(e), R(e);
|
|
400
|
+
});
|
|
401
|
+
}, W = e => {
|
|
302
402
|
if (!e.source) return;
|
|
303
|
-
const t =
|
|
403
|
+
const t = b(`.popup_body_${e.id}`), o = String(e.source);
|
|
304
404
|
let n;
|
|
305
405
|
try {
|
|
306
406
|
n = new URL(o, window.location.origin);
|
|
@@ -309,18 +409,18 @@ var y = e => {
|
|
|
309
409
|
}
|
|
310
410
|
if (n.origin !== window.location.origin) return;
|
|
311
411
|
const i = new AbortController;
|
|
312
|
-
|
|
412
|
+
I.set(String(e.id), i), fetch(o, {
|
|
313
413
|
mode: "same-origin",
|
|
314
414
|
signal: i.signal
|
|
315
415
|
}).then(e => {
|
|
316
416
|
if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|
|
317
417
|
return e.text();
|
|
318
418
|
}).then(o => {
|
|
319
|
-
|
|
419
|
+
I.get(String(e.id)) && !i.signal.aborted && t?.hide().html(o).fadeIn(e.fadeIn);
|
|
320
420
|
}).catch(e => {
|
|
321
421
|
e.name;
|
|
322
422
|
});
|
|
323
|
-
},
|
|
423
|
+
}, j = e => {
|
|
324
424
|
if (e.body && !e.source) {
|
|
325
425
|
const t = e.body;
|
|
326
426
|
if ("object" == typeof t && null !== t && void 0 !== t.type && "object" == typeof t.props && null !== t.props) {
|
|
@@ -331,42 +431,42 @@ var y = e => {
|
|
|
331
431
|
n && n(e, t);
|
|
332
432
|
}).catch(e => {});
|
|
333
433
|
} else if ("string" == typeof e.body && e.body.trim().startsWith("<")) {
|
|
334
|
-
const t =
|
|
335
|
-
|
|
434
|
+
const t = O(e.body);
|
|
435
|
+
b(`.popup_body_${e.id}`)?.html(t).fadeIn(e.fadeIn);
|
|
336
436
|
} else {
|
|
337
|
-
const t =
|
|
338
|
-
|
|
437
|
+
const t = O(String(e.body));
|
|
438
|
+
b(`.popup_body_${e.id}`)?.text(t).fadeIn(e.fadeIn);
|
|
339
439
|
}
|
|
340
440
|
}
|
|
341
|
-
},
|
|
441
|
+
}, R = e => {
|
|
342
442
|
if (e.buttons) {
|
|
343
|
-
if (
|
|
344
|
-
const t =
|
|
443
|
+
if (v('<div class="buttons"></div>').appendTo(`.popup_body_${e.id}`), e.buttons.confirm) {
|
|
444
|
+
const t = O(e.buttons.confirm.text.toUpperCase()), o = v(`<button id="lp_confirm" type="button">\n ${t}\n </button>`).appendTo(`.popup_body_${e.id} .buttons`);
|
|
345
445
|
e.buttons.confirm.cb && o.on("click", () => {
|
|
346
446
|
e.buttons?.confirm?.cb?.(), layerpro.popup.close(e);
|
|
347
447
|
});
|
|
348
448
|
}
|
|
349
449
|
if (e.buttons.cancel) {
|
|
350
|
-
const t =
|
|
351
|
-
|
|
450
|
+
const t = O(e.buttons.cancel.text.toUpperCase());
|
|
451
|
+
v(`<button id="lp_cancel" type="button">\n ${t}\n </button>`).appendTo(`.popup_body_${e.id} .buttons`).on("click", () => {
|
|
352
452
|
e.buttons?.cancel?.cb?.(), layerpro.popup.close(e);
|
|
353
453
|
});
|
|
354
454
|
}
|
|
355
455
|
}
|
|
356
|
-
},
|
|
456
|
+
}, q = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches, D = () => {
|
|
357
457
|
if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
|
|
358
458
|
const e = (() => {
|
|
359
459
|
if ("undefined" == typeof navigator) return !1;
|
|
360
460
|
const e = navigator.userAgent;
|
|
361
461
|
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
|
|
362
|
-
})() ||
|
|
462
|
+
})() || q();
|
|
363
463
|
return ("ontouchstart" in window || navigator.maxTouchPoints > 0) && e ? "touch" : "mouse";
|
|
364
|
-
},
|
|
464
|
+
}, B = D(), X = !q(), Y = null;
|
|
365
465
|
|
|
366
466
|
if ("undefined" != typeof window) {
|
|
367
467
|
const e = window.matchMedia("(max-width: 1024px)"), t = () => {
|
|
368
|
-
const e = D(), t =
|
|
369
|
-
|
|
468
|
+
const e = D(), t = B, o = !q();
|
|
469
|
+
B = e, X !== o && (X = o, Y && Y(e, t));
|
|
370
470
|
};
|
|
371
471
|
let o;
|
|
372
472
|
e.addListener ? e.addListener(t) : e.addEventListener("change", t), window.addEventListener("resize", () => {
|
|
@@ -374,302 +474,315 @@ if ("undefined" != typeof window) {
|
|
|
374
474
|
});
|
|
375
475
|
}
|
|
376
476
|
|
|
377
|
-
var
|
|
477
|
+
var U = e => {
|
|
378
478
|
const t = e;
|
|
379
479
|
return void 0 !== t.clientX ? t.clientX : t.touches && t.touches.length > 0 ? t.touches[0].clientX : 0;
|
|
380
480
|
}, K = e => {
|
|
381
481
|
const t = e;
|
|
382
482
|
return void 0 !== t.clientY ? t.clientY : t.touches && t.touches.length > 0 ? t.touches[0].clientY : 0;
|
|
383
|
-
}, F =
|
|
483
|
+
}, F = e => `layerpro:geometry:${e}`, G = e => `layerpro:native:${e}`, J = () => {
|
|
484
|
+
try {
|
|
485
|
+
return "undefined" == typeof localStorage ? null : localStorage;
|
|
486
|
+
} catch {
|
|
487
|
+
return null;
|
|
488
|
+
}
|
|
489
|
+
}, Q = (e, t) => {
|
|
490
|
+
const o = J();
|
|
491
|
+
if (o) try {
|
|
492
|
+
o.setItem(e, JSON.stringify(t));
|
|
493
|
+
} catch {}
|
|
494
|
+
}, Z = e => {
|
|
495
|
+
const t = J();
|
|
496
|
+
if (!t) return null;
|
|
497
|
+
try {
|
|
498
|
+
const o = t.getItem(e);
|
|
499
|
+
if (!o) return null;
|
|
500
|
+
const n = JSON.parse(o);
|
|
501
|
+
return n && "object" == typeof n ? n : null;
|
|
502
|
+
} catch {
|
|
503
|
+
return null;
|
|
504
|
+
}
|
|
505
|
+
}, ee = [ "--input-background-color", "--input-color", "--button-background-color", "--button-color", "--inputButton-fontSize", "--resize-background-color", "--resize-shadow", "--dock-background-color", "--dock-height", "--dock-sideLeft", "--dock-sideCenter", "--dock-sideRight", "--dock-icon-width", "--bar-background", "--bar-selected-background", "--bar-color", "--bar-border-bottom", "--bar-shadow", "--window-background", "--window-shadow", "--window-border-radius", "--window-z-high-border", "--window-z-high-shadow", "--internal-background", "--body-color", "--body-background", "--modal-background", "--popup-z-index", "--transition-time", "--border-radius", "--corner-size", "--corner-border-radius", "--hover-opacity", "--hover-filter" ], te = new Map, oe = (e, t) => {
|
|
506
|
+
const o = String(e.id), n = !0 === e.persist ? (e => Z(G(e)))(o) : null, i = ((e, t) => {
|
|
507
|
+
const o = t?.outerWidth ?? ("number" == typeof e.width ? e.width : 340), n = t?.outerHeight ?? ("number" == typeof e.height ? e.height : 220), i = t?.screenX ?? ("number" == typeof e.left ? e.left : void 0), r = t?.screenY ?? ("number" == typeof e.top ? e.top : void 0), s = [ `width=${Math.round(o)}`, `height=${Math.round(n)}`, "menubar=no", "toolbar=no", "location=no", "status=no", "resizable=yes", "scrollbars=yes" ];
|
|
508
|
+
return void 0 !== i && s.push(`left=${Math.round(i)}`), void 0 !== r && s.push(`top=${Math.round(r)}`),
|
|
509
|
+
s.join(",");
|
|
510
|
+
})(e, n), r = window.open("", `layerpro_${o}`, i);
|
|
511
|
+
if (!r) return null;
|
|
512
|
+
const s = r.document;
|
|
513
|
+
s.open(), s.write(`<!DOCTYPE html><html><head><meta charset="utf-8"><title>${O(String(e.name ?? "LayerPro"))}</title><style>${(() => {
|
|
514
|
+
const e = document.querySelector("style[data-layerpro-styles]");
|
|
515
|
+
return e?.textContent ?? "";
|
|
516
|
+
})()}</style><style>:root{${(() => {
|
|
517
|
+
const e = getComputedStyle(document.documentElement), t = [];
|
|
518
|
+
for (const o of ee) {
|
|
519
|
+
const n = e.getPropertyValue(o);
|
|
520
|
+
n && t.push(`${o}:${n.trim()};`);
|
|
521
|
+
}
|
|
522
|
+
return t.join("");
|
|
523
|
+
})()}}html,body{margin:0;padding:0;height:100%;overflow:hidden}</style></head><body>${(e => {
|
|
524
|
+
const t = String(e.id), o = O(String(e.name ?? "")), n = e.icon ? O(String(e.icon)) : "", i = [];
|
|
525
|
+
return !0 === e.maximize && i.push(`<button class="button_maximize_${t} maximize"></button>`),
|
|
526
|
+
!0 === e.close && i.push(`<button class="button_close_${t} close"></button>`), `\n <div id="popup">\n <div class="popup_overflow_${t} popup_overflow">\n <div class="popup_window_${t} popup_window zHigh" role="dialog" tabindex="-1" aria-label="${o}">\n <div class="popup_bar_${t} popup_bar popup_bar_selected">\n ${n ? `<div class="popup_icon_${t} popup_icon">${n}</div>` : ""}\n <div class="popup_drag_${t} popup_drag">${o}</div>\n <div class="popup_option_${t} popup_option">${i.join("")}</div>\n </div>\n <div class="popup_internal_${t} popup_internal">\n <div class="popup_body_${t} popup_body"></div>\n </div>\n </div>\n </div>\n </div>\n `;
|
|
527
|
+
})(e)}</body></html>`), s.close();
|
|
528
|
+
const p = s.querySelector(`.popup_overflow_${o}`);
|
|
529
|
+
p && (p.style.setProperty("--lp-top", "0"), p.style.setProperty("--lp-left", "0"),
|
|
530
|
+
p.style.setProperty("--lp-width", "100%"), p.style.setProperty("--lp-height", "100%"));
|
|
531
|
+
const a = s.querySelector(`.popup_body_${o}`);
|
|
532
|
+
a && (a.innerHTML = (e => {
|
|
533
|
+
const t = e.body;
|
|
534
|
+
return "string" != typeof t ? "" : (t.trim().startsWith("<"), O(t));
|
|
535
|
+
})(e) + (e => {
|
|
536
|
+
if (!e.buttons) return "";
|
|
537
|
+
const t = [ '<div class="buttons">' ];
|
|
538
|
+
return e.buttons.confirm && t.push(`<button id="lp_confirm" type="button">${O(String(e.buttons.confirm.text).toUpperCase())}</button>`),
|
|
539
|
+
e.buttons.cancel && t.push(`<button id="lp_cancel" type="button">${O(String(e.buttons.cancel.text).toUpperCase())}</button>`),
|
|
540
|
+
t.push("</div>"), t.join("");
|
|
541
|
+
})(e));
|
|
542
|
+
const l = s.getElementById("lp_confirm");
|
|
543
|
+
l?.addEventListener("click", () => {
|
|
544
|
+
e.buttons?.confirm?.cb?.(), r.close();
|
|
545
|
+
});
|
|
546
|
+
const c = s.getElementById("lp_cancel");
|
|
547
|
+
c?.addEventListener("click", () => {
|
|
548
|
+
e.buttons?.cancel?.cb?.(), r.close();
|
|
549
|
+
});
|
|
550
|
+
const d = s.querySelector(`.button_close_${o}`);
|
|
551
|
+
d?.addEventListener("click", () => {
|
|
552
|
+
e.buttons?.cancel?.cb?.(), r.close();
|
|
553
|
+
}), s.addEventListener("keydown", t => {
|
|
554
|
+
const o = t;
|
|
555
|
+
"Escape" !== o.key && 27 !== o.keyCode || (e.buttons?.cancel?.cb?.(), r.close());
|
|
556
|
+
}), !0 === e.closeWithOpener && (e => {
|
|
557
|
+
const t = e.setInterval(() => {
|
|
558
|
+
let o = !1;
|
|
559
|
+
try {
|
|
560
|
+
const t = e.opener;
|
|
561
|
+
o = !t || !0 === t.closed;
|
|
562
|
+
} catch {
|
|
563
|
+
o = !1;
|
|
564
|
+
}
|
|
565
|
+
if (o) {
|
|
566
|
+
e.clearInterval(t);
|
|
567
|
+
try {
|
|
568
|
+
e.close();
|
|
569
|
+
} catch {}
|
|
570
|
+
}
|
|
571
|
+
}, 400);
|
|
572
|
+
})(r);
|
|
573
|
+
const u = () => {
|
|
574
|
+
if (!0 === e.persist) try {
|
|
575
|
+
((e, t) => {
|
|
576
|
+
Q(G(e), t);
|
|
577
|
+
})(o, {
|
|
578
|
+
screenX: r.screenX,
|
|
579
|
+
screenY: r.screenY,
|
|
580
|
+
outerWidth: r.outerWidth,
|
|
581
|
+
outerHeight: r.outerHeight
|
|
582
|
+
});
|
|
583
|
+
} catch {}
|
|
584
|
+
}, h = window.setInterval(() => {
|
|
585
|
+
r.closed && (window.clearInterval(h), u(), te.delete(o), t?.());
|
|
586
|
+
}, 400), m = {
|
|
587
|
+
win: r,
|
|
588
|
+
id: o,
|
|
589
|
+
close: () => {
|
|
590
|
+
window.clearInterval(h), u(), te.delete(o);
|
|
591
|
+
try {
|
|
592
|
+
r.close();
|
|
593
|
+
} catch {}
|
|
594
|
+
t?.();
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
return te.set(o, m), m;
|
|
598
|
+
}, ne = 250, ie = 150, re = !1, se = 1e3, pe = !1, ae = 0, le = new Map, ce = new Map, de = new Map, ue = new Map, he = new Map, me = null, fe = () => b("body"), _e = e => "object" == typeof e && null !== e ? e.id : e, be = {
|
|
384
599
|
open: e => {
|
|
385
600
|
if (!e) return Promise.reject(new Error("LayerPro: open() requires a props object"));
|
|
386
|
-
e.id = e.id ?? "popup_" + ++
|
|
387
|
-
e.
|
|
388
|
-
e.name = e.name ?? "popUp_" + e.id, e.source = e.source ?? null,
|
|
389
|
-
e.
|
|
390
|
-
e.
|
|
391
|
-
e.
|
|
392
|
-
e.top = e.top ?? "auto", e.left = e.left ?? "auto", e.right = e.right ?? "auto",
|
|
601
|
+
e.id = e.id ?? "popup_" + ++ae, e.body = e.body ?? "", e.class = e.class ?? "",
|
|
602
|
+
e.width = e.width ?? 340, e.height = e.height ?? 220, e.minWidth = e.minWidth ?? 340,
|
|
603
|
+
e.minHeight = e.minHeight ?? 220, e.name = e.name ?? "popUp_" + e.id, e.source = e.source ?? null,
|
|
604
|
+
e.icon = e.icon ?? null, e.iconize = e.iconize ?? null, e.maximize = e.maximize ?? null,
|
|
605
|
+
e.isMaximize = e.isMaximize ?? null, e.dockable = e.dockable ?? null, e.close = e.close ?? null,
|
|
606
|
+
e.modal = e.modal ?? null, e.movable = e.movable ?? null, e.resizable = e.resizable ?? null,
|
|
607
|
+
e.store = e.store ?? !1, e.top = e.top ?? "auto", e.left = e.left ?? "auto", e.right = e.right ?? "auto",
|
|
393
608
|
e.bottom = e.bottom ?? "auto", e.fadeIn = e.fadeIn ?? 100, e.fadeOut = e.fadeOut ?? 100,
|
|
394
|
-
|
|
609
|
+
e.native = e.native ?? !1, e.persist = e.persist ?? !1, e.closeWithOpener = e.closeWithOpener ?? !1,
|
|
610
|
+
ne = e.minWidth, ie = e.minHeight, e.width < e.minWidth && (e.width, e.width = e.minWidth),
|
|
395
611
|
e.height < e.minHeight && (e.height, e.height = e.minHeight), "auto" === e.width && (e.width = "100%"),
|
|
396
|
-
"auto" === e.height && (e.height = "100%"),
|
|
397
|
-
"pointer-events": "none",
|
|
398
|
-
"z-index": re.zIndex() + 1
|
|
399
|
-
});
|
|
612
|
+
"auto" === e.height && (e.height = "100%"), b("#popup") || v('<div id="popup">').appendTo("body").cssVar("--lp-z-index", be.zIndex() + 1);
|
|
400
613
|
const t = String(e.id);
|
|
401
|
-
|
|
614
|
+
ue.delete(t), he.set(t, e);
|
|
402
615
|
const o = new Promise(e => {
|
|
403
|
-
|
|
616
|
+
ue.set(t, e);
|
|
404
617
|
});
|
|
405
|
-
|
|
406
|
-
if (
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
width
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
maxHeight: e.maxHeight,
|
|
423
|
-
pointerEvents: "auto",
|
|
424
|
-
zIndex: layerpro.popup.zIndex()
|
|
425
|
-
}).on("pointerdown", () => {
|
|
426
|
-
layerpro.popup.index(e);
|
|
427
|
-
}).hide().fadeIn(e.fadeIn);
|
|
428
|
-
const o = y(`<div class="popup_window_${e.id} popup_window">`).appendTo(`.popup_overflow_${e.id}`).css({
|
|
429
|
-
"pointer-events": "auto"
|
|
430
|
-
}).addClass("zHigh").addClass(e.class);
|
|
431
|
-
o.attr("role", "dialog"), o.attr("tabindex", "-1"), o.attr("aria-modal", !0 === e.modal ? "true" : "false"),
|
|
432
|
-
e.name && o.attr("aria-label", String(e.name)), C(!0), L(), M(String(e.id), o.el),
|
|
433
|
-
"function" == typeof requestAnimationFrame ? requestAnimationFrame(() => o.el.focus()) : o.el.focus();
|
|
434
|
-
const n = [ e.top, e.left, e.bottom, e.right ].reduce((e, t) => "number" == typeof t && isFinite(t) ? Number(e) + t : e, 0);
|
|
435
|
-
if (!0 === e.center || 0 === n) {
|
|
436
|
-
const t = v('[class^="popup_overflow_"]', "#popup").length, o = 20 * Math.max(0, t - 1);
|
|
437
|
-
layerpro.popup.center(e, o);
|
|
438
|
-
}
|
|
439
|
-
layerpro.popup.unmount = e => {
|
|
440
|
-
import("layerpro/react").then(t => {
|
|
441
|
-
const o = t.default;
|
|
442
|
-
o.unmount && o.unmount(String(e));
|
|
443
|
-
}).catch(() => {});
|
|
444
|
-
}, layerpro.popup.cleanupEvents = e => {
|
|
445
|
-
const t = O.get(e);
|
|
446
|
-
t && (t.iconClick && g(`.icon_${e}`, "#popup_dock")?.off("click"), t.iconClose && g(`.icon_close_${e}`, "#popup_dock")?.off("click"),
|
|
447
|
-
t.buttonIconize && g(`.button_iconize_${e}`)?.off("click"), t.buttonMaximize && g(`.button_maximize_${e}`)?.off("click"),
|
|
448
|
-
t.buttonClose && g(`.button_close_${e}`)?.off("click"), t.escKey && w.off("keydown", {
|
|
449
|
-
ns: `esc-${e}`
|
|
450
|
-
}), O.delete(e));
|
|
451
|
-
}, layerpro.popup.abortSource = e => {
|
|
452
|
-
const t = N.get(e);
|
|
453
|
-
t && (t.abort(), N.delete(e));
|
|
454
|
-
}, layerpro.popup.destroy = e => {
|
|
455
|
-
layerpro.popup.abortSource(e), layerpro.popup.cleanupEvents(e), C(!1);
|
|
456
|
-
const t = document.querySelector(`.popup_window_${e}`);
|
|
457
|
-
t && t.remove();
|
|
458
|
-
}, y(`<div class="popup_bar_${e.id} popup_bar">`).appendTo(o).addClass("popup_bar_selected"),
|
|
459
|
-
e.icon && y(`<div class="popup_icon_${e.id} popup_icon">${e.icon}</div>`).appendTo(`.popup_bar_${e.id}`);
|
|
460
|
-
const i = P(String(e.name));
|
|
461
|
-
y(`<div class="popup_drag_${e.id} popup_drag">${i}</div>`).appendTo(`.popup_bar_${e.id}`),
|
|
462
|
-
y(`<div class="popup_option_${e.id} popup_option">`).appendTo(`.popup_bar_${e.id}`),
|
|
463
|
-
!0 !== e.iconize || g("#popup_dock") || (g("#root")?.css("margin", "0 0 var( --dock-height ) 0"),
|
|
464
|
-
y('\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({
|
|
465
|
-
pointerEvents: "auto",
|
|
466
|
-
zIndex: layerpro.popup.zIndex() + 1e3
|
|
467
|
-
}));
|
|
468
|
-
if (g("#popup_dock") && !0 === e.dockable) {
|
|
469
|
-
const t = String(e.id), o = `\n <div class="icon_${e.id}">\n <span>${e.icon ? e.icon : ""}</span>\n <span>${i}</span>\n </div>\n `, n = () => {
|
|
470
|
-
const t = g(".popup_overflow_" + e.id, "#popup");
|
|
471
|
-
t && t.data("iconize") ? (layerpro.popup.index(e), layerpro.popup.iconize(e)) : layerpro.popup.iconize(e),
|
|
472
|
-
layerpro.popup.index(e);
|
|
473
|
-
}, s = t => {
|
|
474
|
-
t?.stopPropagation(), e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
|
|
475
|
-
};
|
|
476
|
-
O.set(t, {
|
|
477
|
-
iconClick: !0,
|
|
478
|
-
iconClose: !0
|
|
479
|
-
}), y(o).appendTo("#popup_dock_list").addClass("popup_bar_selected").on("click", n),
|
|
480
|
-
y(`<button class="icon_close_${e.id}">X</button>`).appendTo(`.icon_${e.id}`).on("click", s);
|
|
481
|
-
}
|
|
482
|
-
if (!0 === e.iconize) {
|
|
483
|
-
const t = String(e.id), o = () => {
|
|
484
|
-
layerpro.popup.iconize(e);
|
|
485
|
-
}, n = O.get(t) || {};
|
|
486
|
-
n.buttonIconize = !0, O.set(t, n), y(`<button class="button_iconize_${e.id} iconize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
487
|
-
}
|
|
488
|
-
if (!0 === e.maximize) {
|
|
489
|
-
const t = String(e.id), o = () => {
|
|
490
|
-
layerpro.popup.maximize(e);
|
|
491
|
-
}, n = O.get(t) || {};
|
|
492
|
-
n.buttonMaximize = !0, O.set(t, n), y(`<button class="button_maximize_${e.id} maximize">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
493
|
-
}
|
|
494
|
-
if (!0 === e.close) {
|
|
495
|
-
const t = String(e.id), o = () => {
|
|
496
|
-
e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(), layerpro.popup.close(e);
|
|
497
|
-
}, n = O.get(t) || {};
|
|
498
|
-
n.buttonClose = !0, O.set(t, n), y(`<button class="button_close_${e.id} close">`).appendTo(`.popup_option_${e.id}`).on("click", o);
|
|
499
|
-
}
|
|
500
|
-
const s = String(e.id), r = O.get(s) || {};
|
|
501
|
-
if (r.escKey = !0, O.set(s, r), w.on("keydown", t => {
|
|
502
|
-
const o = t;
|
|
503
|
-
"Escape" !== o.key && 27 !== o.keyCode || (e?.buttons?.cancel?.cb && e?.buttons?.cancel?.cb(),
|
|
504
|
-
layerpro.popup.close(e));
|
|
505
|
-
}, {
|
|
506
|
-
ns: `esc-${s}`
|
|
507
|
-
}), e.timer > 0) {
|
|
508
|
-
const t = {};
|
|
509
|
-
t[String(`st_${e.id}`)] = setTimeout(() => {
|
|
510
|
-
layerpro.popup.close(e), clearTimeout(t[String(`st_${e.id}`)]);
|
|
511
|
-
}, e.timer);
|
|
512
|
-
}
|
|
513
|
-
e.movable && layerpro.popup.movable(e), e.resizable && layerpro.popup.resizable(e),
|
|
514
|
-
e.isMaximize && layerpro.popup.maximize(e), y(`<div class="popup_internal_${e.id} popup_internal">`).appendTo(o),
|
|
515
|
-
y(`<div class="popup_body_${e.id} popup_body">`).appendTo(`.popup_internal_${e.id}`).hide().fadeIn(e.fadeIn, () => {
|
|
516
|
-
I(e), W(e), j(e);
|
|
517
|
-
});
|
|
518
|
-
})(e), o;
|
|
618
|
+
if (!0 === e.native) {
|
|
619
|
+
if (oe(e, () => {
|
|
620
|
+
const o = ue.get(t);
|
|
621
|
+
o && (o(e), ue.delete(t));
|
|
622
|
+
})) return o;
|
|
623
|
+
e.native = !1;
|
|
624
|
+
}
|
|
625
|
+
if (b(".popup_window_" + e.id, "#popup") ? (be.index(e), j(e), R(e)) : H(e), !0 === e.persist) {
|
|
626
|
+
const t = (n = String(e.id), Z(F(n)));
|
|
627
|
+
t && ((e, t) => {
|
|
628
|
+
const o = document.querySelector(`.popup_overflow_${e}`);
|
|
629
|
+
!!o && (void 0 !== t.top && o.style.setProperty("--lp-top", `${t.top}px`), void 0 !== t.left && o.style.setProperty("--lp-left", `${t.left}px`),
|
|
630
|
+
void 0 !== t.width && o.style.setProperty("--lp-width", `${t.width}px`), void 0 !== t.height && o.style.setProperty("--lp-height", `${t.height}px`));
|
|
631
|
+
})(String(e.id), t);
|
|
632
|
+
}
|
|
633
|
+
var n;
|
|
634
|
+
return o;
|
|
519
635
|
},
|
|
520
636
|
store: e => {
|
|
521
|
-
null != e &&
|
|
637
|
+
null != e && de.set(String(Date.now()), e);
|
|
522
638
|
},
|
|
523
639
|
show: e => {
|
|
524
|
-
const t = e instanceof _ ? e : "string" == typeof e ?
|
|
640
|
+
const t = e instanceof _ ? e : "string" == typeof e ? b(e) : null;
|
|
525
641
|
t?.toggle();
|
|
526
642
|
},
|
|
527
643
|
vfx: (e, t, o = !1) => {
|
|
528
644
|
setTimeout(() => {
|
|
529
|
-
|
|
530
|
-
e.
|
|
531
|
-
"content-visibility": !0 === t ? "auto" : "hidden"
|
|
532
|
-
});
|
|
645
|
+
g('[class^="popup_overflow_"]', "#popup").forEach(e => {
|
|
646
|
+
e.toggleClass("popup_dimmed", !0 !== t), e.find('[class^="popup_body_"]')?.toggleClass("popup_content_hidden", !0 !== t);
|
|
533
647
|
});
|
|
534
|
-
const n = e instanceof _ ? e : "string" == typeof e ?
|
|
535
|
-
n?.
|
|
648
|
+
const n = e instanceof _ ? e : "string" == typeof e ? b(e) : null;
|
|
649
|
+
n?.removeClass("popup_dimmed"), !o && n && g('[class^="popup_body_"]', n.el).forEach(e => e.addClass("popup_content_visible"));
|
|
536
650
|
}, 1), dispatchEvent(new Event("layerProResize"));
|
|
537
651
|
},
|
|
538
652
|
center: (e, t = 0) => {
|
|
539
|
-
const o =
|
|
540
|
-
o && (o.
|
|
541
|
-
o.
|
|
653
|
+
const o = b(".popup_overflow_" + _e(e), "#popup");
|
|
654
|
+
o && (o.cssVar("--lp-top", Math.max(0, (w.height() - o.outerHeight()) / 2 + w.scrollTop() + t)),
|
|
655
|
+
o.cssVar("--lp-left", Math.max(0, (w.width() - o.outerWidth()) / 2 + w.scrollLeft() + t)));
|
|
542
656
|
},
|
|
543
|
-
checkArea: e => [
|
|
657
|
+
checkArea: e => [ U(e), K(e), w.scrollLeft(), w.scrollTop(), w.height(), w.width() ],
|
|
544
658
|
close: e => {
|
|
545
659
|
let t;
|
|
546
660
|
if (e) {
|
|
547
|
-
t =
|
|
548
|
-
const
|
|
661
|
+
t = _e(e);
|
|
662
|
+
const n = "object" == typeof e && null !== e ? e : void 0;
|
|
663
|
+
if (o = t, te.has(String(o))) return void (e => {
|
|
664
|
+
const t = te.get(String(e));
|
|
665
|
+
!!t && t.close();
|
|
666
|
+
})(t);
|
|
667
|
+
const i = n ?? he.get(String(t));
|
|
668
|
+
if (!0 === i?.persist) {
|
|
669
|
+
const e = (e => {
|
|
670
|
+
const t = document.querySelector(`.popup_overflow_${e}`);
|
|
671
|
+
return t ? {
|
|
672
|
+
top: t.offsetTop,
|
|
673
|
+
left: t.offsetLeft,
|
|
674
|
+
width: t.offsetWidth,
|
|
675
|
+
height: t.offsetHeight
|
|
676
|
+
} : null;
|
|
677
|
+
})(String(t));
|
|
678
|
+
e && ((e, t) => {
|
|
679
|
+
Q(F(e), t);
|
|
680
|
+
})(String(t), e);
|
|
681
|
+
}
|
|
549
682
|
layerpro.popup.unmount && layerpro.popup.unmount(String(t)), layerpro.popup.abortSource && layerpro.popup.abortSource(String(t)),
|
|
550
|
-
layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t)),
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
const
|
|
554
|
-
if (
|
|
683
|
+
layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(t)), M(String(t));
|
|
684
|
+
const r = ue.get(String(t));
|
|
685
|
+
r && (r(n ?? {}), ue.delete(String(t))), he.delete(String(t));
|
|
686
|
+
const s = le.get(String(t));
|
|
687
|
+
if (s) {
|
|
555
688
|
const e = {
|
|
556
689
|
passive: !1
|
|
557
690
|
};
|
|
558
|
-
|
|
559
|
-
|
|
691
|
+
s.move && document.removeEventListener("pointermove", s.move, e), s.up && document.removeEventListener("pointerup", s.up, e),
|
|
692
|
+
le.delete(String(t));
|
|
560
693
|
}
|
|
561
|
-
const
|
|
562
|
-
if (
|
|
694
|
+
const p = ce.get(String(t));
|
|
695
|
+
if (p) {
|
|
563
696
|
const e = {
|
|
564
697
|
passive: !1
|
|
565
698
|
};
|
|
566
|
-
|
|
567
|
-
|
|
699
|
+
p.move && document.removeEventListener("pointermove", p.move, e), p.up && document.removeEventListener("pointerup", p.up, e),
|
|
700
|
+
ce.delete(String(t));
|
|
568
701
|
}
|
|
569
|
-
(
|
|
570
|
-
|
|
702
|
+
(n ? !0 === n.modal : !!b(".popup_modal_" + t)) ? b(".popup_modal_" + t)?.fadeOut(n?.fadeOut || 500, () => b(".popup_modal_" + t)?.remove()) : b(".popup_overflow_" + t)?.fadeOut(n?.fadeOut || 500, () => {
|
|
703
|
+
b(".popup_overflow_" + t)?.remove(), b(".popup_modal_" + t)?.fadeOut(n?.fadeOut || 500, () => b(".popup_modal_" + t)?.remove());
|
|
571
704
|
});
|
|
572
|
-
} else
|
|
573
|
-
|
|
705
|
+
} else (() => {
|
|
706
|
+
for (const e of [ ...te.values() ]) e.close();
|
|
707
|
+
})(), b("#popup")?.fadeOut(() => {
|
|
708
|
+
b("#popup")?.remove(), b("#popup_dock")?.remove(), P();
|
|
709
|
+
});
|
|
710
|
+
var o;
|
|
711
|
+
setTimeout(() => be.removeDock(e), 300);
|
|
574
712
|
},
|
|
575
713
|
removeDock: e => {
|
|
576
|
-
const t =
|
|
577
|
-
|
|
578
|
-
|
|
714
|
+
const t = _e(e);
|
|
715
|
+
b(".icon_" + t)?.remove(), b(".popup_overflow_" + t) ? setTimeout(() => be.removeDock(e), 100) : g('[class^="popup_overflow_"]', "#popup").length < 1 && (b("#popup_dock")?.remove(),
|
|
716
|
+
P());
|
|
579
717
|
},
|
|
580
718
|
iconize: e => {
|
|
581
|
-
const t =
|
|
582
|
-
if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (
|
|
719
|
+
const t = _e(e), o = b(".popup_overflow_" + t, "#popup");
|
|
720
|
+
if (o && !1 !== o.find("[class^=popup_window_]")?.hasClass("zHigh")) if (be.vfx(o, !1, !0),
|
|
583
721
|
o.data("iconize")) {
|
|
584
722
|
if (o.data("iconize")) {
|
|
585
723
|
const e = o.data("iconize");
|
|
586
|
-
o.
|
|
587
|
-
|
|
588
|
-
left: e.x,
|
|
589
|
-
width: e.w,
|
|
590
|
-
height: e.h,
|
|
591
|
-
opacity: 1
|
|
592
|
-
}), re.vfx(o, !0), o.removeData("iconize");
|
|
724
|
+
o.removeClass("popup_iconized").cssVar("--lp-top", e.y).cssVar("--lp-left", e.x).cssVar("--lp-width", e.w).cssVar("--lp-height", e.h),
|
|
725
|
+
be.vfx(o, !0), o.removeData("iconize");
|
|
593
726
|
}
|
|
594
727
|
} else {
|
|
595
|
-
const e =
|
|
728
|
+
const e = b(".icon_" + t, "#popup_dock")?.el.offsetLeft ?? 0;
|
|
596
729
|
o.data("iconize", {
|
|
597
730
|
y: o.el.offsetTop,
|
|
598
731
|
x: o.el.offsetLeft,
|
|
599
732
|
w: o.el.offsetWidth,
|
|
600
733
|
h: o.el.offsetHeight
|
|
601
|
-
}), o.
|
|
602
|
-
|
|
603
|
-
left: e + 15,
|
|
604
|
-
width: 0,
|
|
605
|
-
height: 0,
|
|
606
|
-
opacity: 0
|
|
607
|
-
}), re.vfx(o, !0);
|
|
734
|
+
}), o.cssVar("--lp-top", "100%").cssVar("--lp-left", e + 15).addClass("popup_iconized"),
|
|
735
|
+
be.vfx(o, !0);
|
|
608
736
|
}
|
|
609
737
|
},
|
|
610
738
|
maximize: e => {
|
|
611
|
-
const t =
|
|
612
|
-
if (
|
|
739
|
+
const t = b(".popup_overflow_" + _e(e), "#popup"), o = t ? b('[class^="resize_"]', t.el) : null;
|
|
740
|
+
if (be.vfx(t, !1, !0), t?.data("store")) {
|
|
613
741
|
if (t?.data("store")) {
|
|
614
742
|
const n = t.data("store");
|
|
615
|
-
t.
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
right: "auto",
|
|
620
|
-
bottom: "auto",
|
|
621
|
-
width: n.w,
|
|
622
|
-
height: n.h
|
|
623
|
-
}), o?.on("pointerdown", function(t) {
|
|
624
|
-
re.resizeModals(t, this, e);
|
|
625
|
-
}), re.vfx(t, !0), t.removeData("store");
|
|
743
|
+
t.removeClass("popup_maximized"), t.cssVar("--lp-top", n.y).cssVar("--lp-left", n.x).cssVar("--lp-width", n.w).cssVar("--lp-height", n.h),
|
|
744
|
+
o?.on("pointerdown", function(t) {
|
|
745
|
+
be.resizeModals(t, this, e);
|
|
746
|
+
}), be.vfx(t, !0), t.removeData("store");
|
|
626
747
|
}
|
|
627
748
|
} else t.data("store", {
|
|
628
749
|
y: t.el.offsetTop,
|
|
629
750
|
x: t.el.offsetLeft,
|
|
630
751
|
w: t.el.offsetWidth,
|
|
631
752
|
h: t.el.offsetHeight
|
|
632
|
-
}), t.
|
|
633
|
-
position: "fixed",
|
|
634
|
-
top: -6,
|
|
635
|
-
left: -6,
|
|
636
|
-
right: -6,
|
|
637
|
-
bottom: 39,
|
|
638
|
-
width: "auto",
|
|
639
|
-
height: "auto"
|
|
640
|
-
}), o?.off("pointerdown"), re.vfx(t, !0, !0);
|
|
753
|
+
}), t.addClass("popup_maximized"), o?.off("pointerdown"), be.vfx(t, !0, !0);
|
|
641
754
|
},
|
|
642
755
|
movable: e => {
|
|
643
756
|
if (!1 === e.movable) return;
|
|
644
|
-
const t =
|
|
645
|
-
n?.
|
|
646
|
-
let
|
|
757
|
+
const t = _e(e), o = String(t), n = b(".popup_overflow_" + t, "#popup"), i = n ? b(".popup_drag_" + t, n.el) : null, r = n ? b(".popup_body_" + t, n.el) : null;
|
|
758
|
+
n?.addClass("lp_no_touch");
|
|
759
|
+
let s = 0, p = 0, a = 0, l = 0;
|
|
647
760
|
const c = e => {
|
|
648
761
|
e.preventDefault();
|
|
649
|
-
const t =
|
|
650
|
-
|
|
651
|
-
|
|
762
|
+
const t = U(e), o = K(e);
|
|
763
|
+
s = a - t, p = l - o, a = t, l = o, be.checkArea(e)[1] < be.checkArea(e)[4] && 1 === Math.sign(be.checkArea(e)[1]) && n?.cssVar("--lp-top", n.el.offsetTop - p),
|
|
764
|
+
be.checkArea(e)[0] < be.checkArea(e)[5] && 1 === Math.sign(be.checkArea(e)[0]) && n?.cssVar("--lp-left", n.el.offsetLeft - s);
|
|
652
765
|
}, d = () => {
|
|
653
766
|
const e = {
|
|
654
767
|
passive: !1
|
|
655
768
|
};
|
|
656
769
|
document.removeEventListener("pointermove", c, e), document.removeEventListener("pointerup", d, e),
|
|
657
|
-
|
|
770
|
+
le.delete(o), r?.addClass("lp_pointer"), be.vfx(n, !0);
|
|
658
771
|
};
|
|
659
|
-
|
|
772
|
+
le.set(o, {
|
|
660
773
|
move: c,
|
|
661
774
|
up: d
|
|
662
775
|
});
|
|
663
776
|
i?.el.addEventListener("pointerdown", e => {
|
|
664
|
-
"
|
|
665
|
-
u(e),
|
|
777
|
+
n?.hasClass("popup_maximized") || (e.preventDefault(), r?.addClass("lp_no_pointer"),
|
|
778
|
+
u(e), be.vfx(n, !1));
|
|
666
779
|
}, {
|
|
667
780
|
passive: !1
|
|
668
781
|
}), e.maximize && i?.on("dblclick", () => {
|
|
669
782
|
layerpro.popup.maximize(e);
|
|
670
783
|
});
|
|
671
784
|
const u = e => {
|
|
672
|
-
a =
|
|
785
|
+
a = U(e), l = K(e);
|
|
673
786
|
const t = {
|
|
674
787
|
passive: !1
|
|
675
788
|
};
|
|
@@ -678,174 +791,164 @@ var Y = e => {
|
|
|
678
791
|
},
|
|
679
792
|
resizable: e => {
|
|
680
793
|
if (!e.resizable) return;
|
|
681
|
-
const t =
|
|
682
|
-
for (let e = 4; e--; )
|
|
683
|
-
|
|
684
|
-
const i =
|
|
794
|
+
const t = _e(e), o = String(t), n = b(".popup_overflow_" + t, "#popup");
|
|
795
|
+
for (let e = 4; e--; ) v(`<div class='resize_${e}'>`).appendTo(n?.el).addClass("lp_no_touch"),
|
|
796
|
+
v(`<div class='resize_corner_${e}'>`).appendTo(n?.el).addClass("lp_no_touch");
|
|
797
|
+
const i = ce.get(o) || {};
|
|
685
798
|
i.down = function(t) {
|
|
686
|
-
|
|
687
|
-
},
|
|
688
|
-
const
|
|
799
|
+
be.resizeModals(t, this, e);
|
|
800
|
+
}, ce.set(o, i);
|
|
801
|
+
const r = {
|
|
689
802
|
passive: !1
|
|
690
803
|
};
|
|
691
|
-
|
|
804
|
+
g("[class^=resize_]").forEach(t => {
|
|
692
805
|
t.el.addEventListener("pointerdown", o => {
|
|
693
|
-
o.preventDefault(),
|
|
694
|
-
},
|
|
806
|
+
o.preventDefault(), be.resizeModals(o, t.el, e);
|
|
807
|
+
}, r);
|
|
695
808
|
});
|
|
696
809
|
},
|
|
697
810
|
resizeModals: (e, t, o) => {
|
|
698
|
-
const n = t instanceof HTMLElement ? new _(t) :
|
|
699
|
-
i?.
|
|
700
|
-
const
|
|
701
|
-
o.minWidth,
|
|
702
|
-
re.vfx(i, !1);
|
|
811
|
+
const n = t instanceof HTMLElement ? new _(t) : b(t), i = n?.parent(), r = String(o.id);
|
|
812
|
+
i?.addClass("lp_no_transition");
|
|
813
|
+
const s = U(e), p = K(e), a = [ s - w.scrollLeft(), p - w.scrollTop() ];
|
|
814
|
+
o.minWidth, fe()?.addClass("lp_page_locked"), i?.addClass("lp_no_pointer"), be.vfx(i, !1);
|
|
703
815
|
const l = e => {
|
|
704
|
-
|
|
816
|
+
be.doRes(e, t);
|
|
705
817
|
}, c = () => {
|
|
706
|
-
|
|
707
|
-
}, d =
|
|
708
|
-
d.move = l, d.up = c,
|
|
818
|
+
be.stopRes(t, r);
|
|
819
|
+
}, d = ce.get(r) || {};
|
|
820
|
+
d.move = l, d.up = c, ce.set(r, d);
|
|
709
821
|
const u = {
|
|
710
822
|
passive: !1
|
|
711
823
|
};
|
|
712
824
|
document.addEventListener("pointermove", l, u), document.addEventListener("pointerup", c, u);
|
|
713
|
-
const h = i?.position().left ?? 0, m = i?.position().top ?? 0, f = i?.width() ?? 0,
|
|
714
|
-
|
|
825
|
+
const h = i?.position().left ?? 0, m = i?.position().top ?? 0, f = i?.width() ?? 0, g = i?.height() ?? 0;
|
|
826
|
+
me = {
|
|
715
827
|
id: String(o.id),
|
|
716
828
|
startX: a[0],
|
|
717
829
|
startY: a[1],
|
|
718
830
|
startWidth: f,
|
|
719
|
-
startHeight:
|
|
831
|
+
startHeight: g,
|
|
720
832
|
startLeft: h,
|
|
721
833
|
startTop: m,
|
|
722
|
-
startBottom: m +
|
|
834
|
+
startBottom: m + g + 1,
|
|
723
835
|
startRight: h + f + 1
|
|
724
|
-
},
|
|
836
|
+
}, re = t;
|
|
725
837
|
},
|
|
726
838
|
doRes: (e, t) => {
|
|
727
839
|
dispatchEvent(new Event("layerProResize"));
|
|
728
|
-
const o = t instanceof HTMLElement ? new _(t) :
|
|
729
|
-
if (t ===
|
|
730
|
-
const t =
|
|
731
|
-
let i = t.startWidth +
|
|
732
|
-
const p = t.startWidth -
|
|
733
|
-
i <= 0 && (i = 0),
|
|
734
|
-
height: Number(
|
|
735
|
-
}), n && n.height() >
|
|
840
|
+
const o = t instanceof HTMLElement ? new _(t) : b(t), n = o?.parent(), i = U(e), r = K(e), s = [ i - w.scrollLeft(), r - w.scrollTop() ];
|
|
841
|
+
if (t === re && me) {
|
|
842
|
+
const t = me;
|
|
843
|
+
let i = t.startWidth + s[0] - t.startX, r = t.startHeight + s[1] - t.startY;
|
|
844
|
+
const p = t.startWidth - s[0] + t.startX, a = t.startHeight - s[1] + t.startY;
|
|
845
|
+
i <= 0 && (i = 0), r <= 0 && (r = 0), be.checkArea(e)[1] < be.checkArea(e)[4] && 1 === Math.sign(be.checkArea(e)[1]) && o?.hasClass("resize_0") && (n && n.height() <= ie && a > ie && n.geom({
|
|
846
|
+
height: Number(ie + 1)
|
|
847
|
+
}), n && n.height() > ie && ie <= a && n.geom({
|
|
736
848
|
top: Number(t.startBottom - a),
|
|
737
849
|
height: parseInt(String(a))
|
|
738
|
-
})),
|
|
850
|
+
})), be.checkArea(e)[0] < be.checkArea(e)[5] && 1 === Math.sign(be.checkArea(e)[0]) && o?.hasClass("resize_1") && (n && n.width() >= ne && n.geom({
|
|
739
851
|
width: Number(i),
|
|
740
852
|
right: Number(t.startLeft - i)
|
|
741
|
-
}), n && n.width() <=
|
|
742
|
-
width: Number(
|
|
743
|
-
})),
|
|
744
|
-
height: Number(
|
|
745
|
-
}), n && n.height() <=
|
|
746
|
-
height: Number(
|
|
747
|
-
})),
|
|
748
|
-
width: Number(
|
|
749
|
-
}), n && n.width() >
|
|
853
|
+
}), n && n.width() <= ne && n.geom({
|
|
854
|
+
width: Number(ne + 1)
|
|
855
|
+
})), be.checkArea(e)[1] < be.checkArea(e)[4] && 1 === Math.sign(be.checkArea(e)[1]) && o?.hasClass("resize_2") && (n && n.height() >= ie && n.geom({
|
|
856
|
+
height: Number(r)
|
|
857
|
+
}), n && n.height() <= ie && r > ie && n.geom({
|
|
858
|
+
height: Number(ie + 1)
|
|
859
|
+
})), be.checkArea(e)[0] < be.checkArea(e)[5] && 1 === Math.sign(be.checkArea(e)[0]) && o?.hasClass("resize_3") && (n && n.width() <= ne && p > ne && n.geom({
|
|
860
|
+
width: Number(ne + 1)
|
|
861
|
+
}), n && n.width() > ne && ne <= p && n.geom({
|
|
750
862
|
width: parseInt(String(p)),
|
|
751
863
|
left: Number(t.startRight - p)
|
|
752
|
-
})),
|
|
864
|
+
})), be.checkArea(e)[1] < be.checkArea(e)[4] && be.checkArea(e)[0] < be.checkArea(e)[5] && 1 === Math.sign(be.checkArea(e)[0]) && 1 === Math.sign(be.checkArea(e)[1]) && (o?.hasClass("resize_corner_0") && (n && n.height() >= ie && a > ie && n.geom({
|
|
753
865
|
top: Number(t.startBottom - a),
|
|
754
866
|
height: parseInt(String(a))
|
|
755
|
-
}), n && n.height() <=
|
|
756
|
-
height: Number(
|
|
757
|
-
}), n && n.width() >=
|
|
867
|
+
}), n && n.height() <= ie && a > ie && n.geom({
|
|
868
|
+
height: Number(ie + 1)
|
|
869
|
+
}), n && n.width() >= ne && p > ne && n.geom({
|
|
758
870
|
width: parseInt(String(p)),
|
|
759
871
|
left: Number(t.startRight - p)
|
|
760
|
-
}), n && n.width() <=
|
|
761
|
-
width: Number(
|
|
762
|
-
})), o?.hasClass("resize_corner_1") && (n && n.height() >=
|
|
872
|
+
}), n && n.width() <= ne && p > ne && n.geom({
|
|
873
|
+
width: Number(ne + 1)
|
|
874
|
+
})), o?.hasClass("resize_corner_1") && (n && n.height() >= ie && a > ie && n.geom({
|
|
763
875
|
top: Number(t.startBottom - a),
|
|
764
876
|
height: Number(a)
|
|
765
|
-
}), n && n.height() <=
|
|
766
|
-
height: Number(
|
|
767
|
-
}), n && n.width() >=
|
|
877
|
+
}), n && n.height() <= ie && a > ie && n.geom({
|
|
878
|
+
height: Number(ie + 1)
|
|
879
|
+
}), n && n.width() >= ne && n.geom({
|
|
768
880
|
width: Number(i),
|
|
769
881
|
right: Number(t.startLeft - i)
|
|
770
|
-
}), n && n.width() <=
|
|
771
|
-
width: Number(
|
|
772
|
-
})), o?.hasClass("resize_corner_2") && (n && n.height() >=
|
|
773
|
-
height: Number(
|
|
774
|
-
}), n && n.height() <=
|
|
775
|
-
height: Number(
|
|
776
|
-
}), n && n.width() >=
|
|
882
|
+
}), n && n.width() <= ne && p > ne && n.geom({
|
|
883
|
+
width: Number(ne + 1)
|
|
884
|
+
})), o?.hasClass("resize_corner_2") && (n && n.height() >= ie && n.geom({
|
|
885
|
+
height: Number(r)
|
|
886
|
+
}), n && n.height() <= ie && r > ie && n.geom({
|
|
887
|
+
height: Number(ie + 1)
|
|
888
|
+
}), n && n.width() >= ne && n.geom({
|
|
777
889
|
width: Number(i),
|
|
778
890
|
right: Number(t.startLeft - i)
|
|
779
|
-
}), n && n.width() <=
|
|
780
|
-
width: Number(
|
|
781
|
-
})), o?.hasClass("resize_corner_3") && (n && n.height() >=
|
|
782
|
-
height: Number(
|
|
783
|
-
}), n && n.height() <=
|
|
784
|
-
height: Number(
|
|
785
|
-
}), n && n.width() >=
|
|
891
|
+
}), n && n.width() <= ne && n.geom({
|
|
892
|
+
width: Number(ne + 1)
|
|
893
|
+
})), o?.hasClass("resize_corner_3") && (n && n.height() >= ie && r > ie && n.geom({
|
|
894
|
+
height: Number(r)
|
|
895
|
+
}), n && n.height() <= ie && r > ie && n.geom({
|
|
896
|
+
height: Number(ie + 1)
|
|
897
|
+
}), n && n.width() >= ne && p > ne && n.geom({
|
|
786
898
|
width: Number(p),
|
|
787
899
|
left: Number(t.startRight - p)
|
|
788
|
-
}), n && n.width() <=
|
|
789
|
-
width: Number(
|
|
900
|
+
}), n && n.width() <= ne && p > ne && n.geom({
|
|
901
|
+
width: Number(ne + 1)
|
|
790
902
|
})));
|
|
791
903
|
}
|
|
792
904
|
},
|
|
793
905
|
stopRes: (e, t) => {
|
|
794
|
-
const o = e instanceof HTMLElement ? new _(e) :
|
|
795
|
-
n?.
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
const i = ee.get(t);
|
|
906
|
+
const o = e instanceof HTMLElement ? new _(e) : b(e), n = o?.parent();
|
|
907
|
+
n?.removeClass("lp_no_transition"), o?.removeClass("lp_no_transition"), fe()?.removeClass("lp_page_locked"),
|
|
908
|
+
n?.removeClass("lp_no_pointer"), be.vfx(n, !0), re = !1, me?.id === t && (me = null);
|
|
909
|
+
const i = ce.get(t);
|
|
799
910
|
if (i) {
|
|
800
911
|
const e = {
|
|
801
912
|
passive: !1
|
|
802
913
|
};
|
|
803
914
|
i.move && document.removeEventListener("pointermove", i.move, e), i.up && document.removeEventListener("pointerup", i.up, e),
|
|
804
|
-
|
|
915
|
+
ce.delete(t);
|
|
805
916
|
}
|
|
806
917
|
},
|
|
807
918
|
index: e => {
|
|
808
|
-
const t =
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
919
|
+
const t = _e(e);
|
|
920
|
+
g('[class^="popup_window_"]', "#popup").forEach(e => e.removeClass("zHigh")), g('[class^="popup_bar_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
|
|
921
|
+
g('[class^="icon_"]', "#popup").forEach(e => e.removeClass("popup_bar_selected")),
|
|
922
|
+
b(".icon_" + t, "#popup")?.addClass("popup_bar_selected"), b(".popup_overflow_" + t, "#popup")?.cssVar("--lp-z-index", be.zIndex()),
|
|
923
|
+
b(".popup_bar_" + t, "#popup")?.addClass("popup_bar_selected"), b(".popup_window_" + t, "#popup")?.addClass("zHigh");
|
|
813
924
|
},
|
|
814
925
|
zIndex: () => {
|
|
815
|
-
if (!
|
|
816
|
-
|
|
926
|
+
if (!pe) {
|
|
927
|
+
pe = !0;
|
|
817
928
|
try {
|
|
818
929
|
const e = getComputedStyle(document.documentElement).getPropertyValue("--popup-z-index").trim();
|
|
819
930
|
if (e) {
|
|
820
931
|
const t = parseInt(e, 10);
|
|
821
|
-
isNaN(t) || (
|
|
932
|
+
isNaN(t) || (se = t);
|
|
822
933
|
}
|
|
823
934
|
} catch {}
|
|
824
935
|
}
|
|
825
|
-
return ++
|
|
936
|
+
return ++se;
|
|
826
937
|
}
|
|
827
938
|
};
|
|
828
939
|
|
|
829
940
|
Object.defineProperty(layerpro, "popup", {
|
|
830
|
-
value:
|
|
941
|
+
value: be,
|
|
831
942
|
writable: !1,
|
|
832
943
|
configurable: !1
|
|
833
|
-
}), globalThis.popup =
|
|
944
|
+
}), globalThis.popup = be, Object.defineProperty(window, "popup", {
|
|
834
945
|
enumerable: !1
|
|
835
946
|
});
|
|
836
947
|
|
|
837
|
-
var pe = {
|
|
838
|
-
"&": "&",
|
|
839
|
-
"<": "<",
|
|
840
|
-
">": ">",
|
|
841
|
-
'"': """,
|
|
842
|
-
"'": "'"
|
|
843
|
-
}, ae = e => e.replace(/[&<>"']/g, e => pe[e]);
|
|
844
|
-
|
|
845
948
|
Object.defineProperties(layerpro, {
|
|
846
949
|
prompt: {
|
|
847
950
|
value: (e, t) => {
|
|
848
|
-
const o =
|
|
951
|
+
const o = O(String(e)), n = {
|
|
849
952
|
value: ""
|
|
850
953
|
}, i = {
|
|
851
954
|
id: "__prompt",
|
|
@@ -861,24 +964,24 @@ Object.defineProperties(layerpro, {
|
|
|
861
964
|
modal: !0,
|
|
862
965
|
movable: !0,
|
|
863
966
|
resizable: !1
|
|
864
|
-
},
|
|
865
|
-
|
|
866
|
-
const p =
|
|
967
|
+
}, r = layerpro.popup.open(i), s = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${o}\n </center>\n </div>\n\n <input id="input_${i.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${i.id}" type="button">OK</button>\n <button id="b_${i.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
|
|
968
|
+
b(".popup_body_" + i.id)?.html(s);
|
|
969
|
+
const p = b("#input_" + i.id);
|
|
867
970
|
return t && p?.val(t), p?.on("focus", () => {
|
|
868
971
|
p.attr("placeholder", "");
|
|
869
972
|
})?.on("blur", () => {
|
|
870
973
|
p.attr("placeholder", "write here");
|
|
871
|
-
}),
|
|
974
|
+
}), b("#a_" + i.id)?.on("click", () => {
|
|
872
975
|
const e = p?.val() ?? "";
|
|
873
976
|
String(e) > "" ? (n.value = String(e), layerpro.popup.close(i)) : layerpro.alert("input can't be empty!");
|
|
874
|
-
}),
|
|
977
|
+
}), b("#b_" + i.id)?.on("click", () => {
|
|
875
978
|
n.value = "", layerpro.popup.close(i);
|
|
876
|
-
}),
|
|
979
|
+
}), r.then(() => n.value);
|
|
877
980
|
}
|
|
878
981
|
},
|
|
879
982
|
alert: {
|
|
880
983
|
value: e => {
|
|
881
|
-
const t =
|
|
984
|
+
const t = O(String(e)), o = {
|
|
882
985
|
id: "__alert",
|
|
883
986
|
name: "Warning",
|
|
884
987
|
icon: "⚠",
|
|
@@ -893,14 +996,14 @@ Object.defineProperties(layerpro, {
|
|
|
893
996
|
movable: !0,
|
|
894
997
|
resizable: !1
|
|
895
998
|
}, n = layerpro.popup.open(o), 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 `;
|
|
896
|
-
return
|
|
999
|
+
return b(".popup_body_" + o.id)?.html(i), b("#a_" + o.id)?.on("click", () => {
|
|
897
1000
|
layerpro.popup.close(o);
|
|
898
1001
|
}), n.then(() => {});
|
|
899
1002
|
}
|
|
900
1003
|
},
|
|
901
1004
|
message: {
|
|
902
1005
|
value: e => {
|
|
903
|
-
const t =
|
|
1006
|
+
const t = O(String(e)), o = {
|
|
904
1007
|
id: "__message",
|
|
905
1008
|
name: "Message",
|
|
906
1009
|
icon: "⛭",
|
|
@@ -915,14 +1018,14 @@ Object.defineProperties(layerpro, {
|
|
|
915
1018
|
movable: !0,
|
|
916
1019
|
resizable: !1
|
|
917
1020
|
}, n = layerpro.popup.open(o), 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">OK</button>\n </div>\n </div>\n `;
|
|
918
|
-
return
|
|
1021
|
+
return b(".popup_body_" + o.id)?.html(i), b("#a_" + o.id)?.on("click", () => {
|
|
919
1022
|
layerpro.popup.close(o);
|
|
920
1023
|
}), n.then(() => {});
|
|
921
1024
|
}
|
|
922
1025
|
},
|
|
923
1026
|
confirm: {
|
|
924
1027
|
value: e => {
|
|
925
|
-
const t =
|
|
1028
|
+
const t = O(String(e)), o = {
|
|
926
1029
|
value: !1
|
|
927
1030
|
}, n = {
|
|
928
1031
|
id: "__confirm",
|
|
@@ -938,10 +1041,10 @@ Object.defineProperties(layerpro, {
|
|
|
938
1041
|
modal: !0,
|
|
939
1042
|
movable: !0,
|
|
940
1043
|
resizable: !1
|
|
941
|
-
}, i = layerpro.popup.open(n),
|
|
942
|
-
return
|
|
1044
|
+
}, i = layerpro.popup.open(n), r = `\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_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
|
|
1045
|
+
return b(".popup_body_" + n.id)?.html(r), b("#a_" + n.id)?.on("click", () => {
|
|
943
1046
|
o.value = !0, layerpro.popup.close(n);
|
|
944
|
-
}),
|
|
1047
|
+
}), b("#b_" + n.id)?.on("click", () => {
|
|
945
1048
|
o.value = !1, layerpro.popup.close(n);
|
|
946
1049
|
}), i.then(() => o.value);
|
|
947
1050
|
}
|
|
@@ -955,8 +1058,8 @@ Object.defineProperties(layerpro, {
|
|
|
955
1058
|
}
|
|
956
1059
|
});
|
|
957
1060
|
|
|
958
|
-
|
|
959
|
-
|
|
1061
|
+
Y = (e, t) => {
|
|
1062
|
+
g('[class^="popup_overflow_"]').forEach(e => {
|
|
960
1063
|
const t = e.el.className.match(/popup_overflow_(\d+)/);
|
|
961
1064
|
t && t[1] && layerpro.popup.close({
|
|
962
1065
|
id: t[1],
|
|
@@ -965,10 +1068,10 @@ X = (e, t) => {
|
|
|
965
1068
|
});
|
|
966
1069
|
};
|
|
967
1070
|
|
|
968
|
-
var
|
|
1071
|
+
var ge = globalThis.layerpro;
|
|
969
1072
|
|
|
970
|
-
|
|
1073
|
+
ge.installGlobals(), ge.setProps(ge, {
|
|
971
1074
|
configurable: !1,
|
|
972
1075
|
enumerable: !1,
|
|
973
1076
|
writable: !1
|
|
974
|
-
}), Object.freeze(
|
|
1077
|
+
}), Object.freeze(ge);
|