layerpro 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +673 -63
- package/index.css +486 -1
- package/index.js +672 -60
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,65 +1,677 @@
|
|
|
1
|
-
;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px)}#popup>[class^=popup_overflow],#popup>[class^=popup_bar_],#popup>[class^=popup_window_],#popup>[class^=popup_internal],#popup>[class^=popup_body],#popup{position:static}#popup>[class^=popup_overflow],#popup>[class^=popup_bar_],#popup>[class^=popup_window_],#popup>[class^=popup_internal],#popup>[class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width}#popup{position:absolute;inset: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,#3c3c3c);overflow:hidden;position:relative;color:var(--button-color)}#popup .buttons button:last-child{border-right:none}#popup .buttons button img{filter:invert(1);opacity:.5;width:15px;height:auto;margin-top:2px}#popup .buttons button:hover{transition:all .3s ease;box-shadow:inset 0 0 5px #000;text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255)}#popup .popup_bar_selected{background:linear-gradient(45deg,#162858 60%,#224e918a)!important}#popup .zHigh{border-top-color:#278ed0!important;box-shadow:0 -15px 20px -10px #1e96ff80,0 0 15px #000000b3!important;border:1px solid rgba(0,0,0,.05)}#popup [class^=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:#0000004d;z-index:1}#popup [class^=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:10px;box-shadow:0 0 10px #0000004d;overflow:hidden}#popup [class^=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:10px;background:gray}#popup [class^=popup_bar_]{display:flex;width:100%;height:36px;background:linear-gradient(45deg,#4a4a4f 60%,#aaa);border-bottom:2px solid #555;box-shadow:0 1px 1px #888;z-index:2}#popup [class^=popup_drag_]{width:100%;padding:10px 0 0 10px;color:#eee;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#popup [class^=popup_icon_]{padding:8px 0 0 10px;color:#eee;font-size:1.1em}#popup [class^=popup_option_]{display:flex;margin-right:15px}#popup [class^=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:#fff;border-radius:5px;margin:4px;transition:all .3s ease;background:transparent}#popup [class^=popup_option_] button img{filter:invert(1);opacity:.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,#3c3c3c);border-radius:5px;z-index:-1}#popup [class^=popup_option_] button:after{opacity:0;transition:opacity .3s ease-in-out}#popup [class^=popup_option_] button:hover{background:#ffffff1a;box-shadow:inset 0 0 5px #000;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,#popup [class^=button_close_]:hover{background:red!important;box-shadow:inset 0 0 25px #fff,0 0 35px red!important}#popup [class^=popup_internal_]{position:absolute;inset:37px 0 0;z-index:1;background:linear-gradient(0deg,#3c3c3c,#4a4a4f)}#popup [class^=popup_body_]{position:absolute;inset:0;color:#eee;text-align:center}.popupMaxSize{position:absolute!important;width:100%!important;height:100%!important;inset:0!important;margin:0!important;padding:0!important;border-radius:0!important}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,.521)}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height)}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:#fff;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:#4d4d4d}#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:#fff;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:.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:.5;margin:0;padding:0}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uP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Y3LC0wLjAwNCAwLjEyOTM3OSwtMC4wMTI1IDAuMTI3OTcxLC0wLjAyNDkgMC4yNTAxLC0wLjA4NzIgMC4zNDk2MiwtMC4xODY3NiAwLjAzMzIsLTAuMDMzMiAwLjA2MjMsLTAuMDY4NiAwLjA4NzEsLTAuMTA2MTQgMC4xNzQxNiwtMC4yNjMxOSAwLjE0NTA2OSwtMC42MTk0NiAtMC4wODcxLC0wLjg1MTY2IGwgLTEuMjI0MjA4LC0xLjIyNDE3IDEuMjI0MjA4LC0xLjIyNDE3IGMgMC4yNjUzNywtMC4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+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,.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::-webkit-scrollbar{width:10px;scroll-behavior:smooth}#popup::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px;margin:5px}#popup::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:#1e96ff!important}}";document.head.appendChild(s)})();import { createRoot } from 'react-dom/client';
|
|
2
|
-
import he from 'jquery';
|
|
1
|
+
;(()=>{const s=document.createElement("style");s.textContent="@layer layerpro {:root{--input-background-color:#444;--input-color:white;--button-background-color:#444;--button-color:white;--inputButton-fontSize:.8em;--resize-background-color:rgba(30,150,255,.5);--resize-shadow:0 0 10px rgba(30,150,255,.5);--dock-background-color:black;--dock-height:35px;--dock-sideLeft:10px;--dock-sideCenter:auto;--dock-sideRight:10px;--dock-icon-width:140px;--transition-time:.5s;--border-radius:25px;--corner-size:14px;--corner-border-radius:50%;--hover-opacity:1;--hover-filter:blur(3px);}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup{position:static;}#popup > [class^=popup_overflow],#popup > [class^=popup_bar_],#popup > [class^=popup_window_],#popup > [class^=popup_internal],#popup > [class^=popup_body],#popup,#popup_dock{will-change:transform,opacity,top,left,height,width;}#popup{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;}#popup .buttons{display:flex;position:absolute;left:0;right:0;bottom:0;height:40px;justify-content:space-evenly;align-items:center;}#popup .buttons button{all:unset;width:100%;height:100%;border-right:2px solid #636363;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);overflow:hidden;position:relative;color:var(--button-color);}#popup .buttons button:last-child{border-right:none;}#popup .buttons button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup .buttons button:hover{transition:all 0.3s ease;box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup .popup_bar_selected{background:linear-gradient( 45deg,#162858 60%,rgba(34,78,145,0.5411764706) 100%) !important;}#popup .zHigh{border-top-color:#278ed0 !important;box-shadow:0 -15px 20px -10px rgba(30,150,255,0.5),0 0 15px rgba(0,0,0,0.7) !important;border:1px solid rgba(0,0,0,0.05);}#popup [class^=popup_raised_]{position:absolute;inset:0;width:100%;height:100%;background-color:rgba(0,0,0,0.3);z-index:1;}#popup [class^=popup_window_]{position:absolute;inset:0;width:100%;height:100%;z-index:2;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,0.3);overflow:hidden;}#popup [class^=popup_overflow_]{position:absolute;inset:auto;z-index:3;border-radius:10px;background:gray;}#popup [class^=popup_bar_]{display:flex;width:100%;height:36px;background:linear-gradient( 45deg,#4a4a4f 60%,#AAA 100%);border-bottom:2px solid #555;box-shadow:0 1px 1px #888;z-index:2;}#popup [class^=popup_drag_]{width:100%;padding:10px 0 0 10px;color:#eee;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup [class^=popup_icon_]{padding:8px 0 0 10px;color:#eee;font-size:1.1em;}#popup [class^=popup_option_]{display:flex;margin-right:15px;}#popup [class^=popup_option_] button{position:relative;display:inline-block;width:36px;height:28px;color:white;border-radius:5px;margin:4px;transition:all 0.3s ease;background:transparent;}#popup [class^=popup_option_] button img{filter:invert(1);opacity:0.5;width:15px;height:auto;margin-top:2px;}#popup [class^=popup_option_] button:after{content:\"\";inset:0;display:block;position:absolute;background:linear-gradient( 180deg,#000 0%,rgb(60,60,60) 100%);border-radius:5px;z-index:-1;}#popup [class^=popup_option_] button:after{opacity:0;transition:opacity 0.3s ease-in-out;}#popup [class^=popup_option_] button:hover{background:rgba(255,255,255,0.1);box-shadow:inset 0 0 5px rgb(0,0,0);text-shadow:0 0 15px rgb(255,255,255),0 0 3px rgb(255,255,255);}#popup [class^=popup_option_] button:hover::after{opacity:1;}#popup [class^=popup_option_] button [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=button_close_]:hover{background:rgb(255,0,0) !important;box-shadow:inset 0 0 25px rgb(255,255,255),0 0 35px rgb(255,0,0) !important;}#popup [class^=popup_internal_]{position:absolute;inset:37px 0 0 0;z-index:1;background:linear-gradient( 0deg,rgb(60,60,60) 0%,#4a4a4f 100%);}#popup [class^=popup_body_]{position:absolute;inset:0;color:#eee;text-align:center;}.popupMaxSize{position:absolute !important;width:100% !important;height:100% !important;inset:0 !important;margin:0 !important;padding:0 !important;border-radius:0 !important;}#popup_dock{position:absolute;bottom:0;left:0;right:0;height:var(--dock-height);background-color:var(--dock-background-color);border-top:1px solid rgba(255,255,255,0.521);}#popup_dock #popup_dock_icon{position:absolute;top:3px;left:3px;width:70px;height:var(--dock-height);}#popup_dock #popup_dock_list{position:absolute;top:3px;left:var(--dock-sideLeft);right:var(--dock-sideLeft);height:calc(var(--dock-height) - 5px);overflow-y:auto;text-align:right;display:flex;flex-direction:row;justify-content:flex-end;}#popup_dock #popup_dock_list [class^=icon_]{width:var(--dock-icon-width);float:left;padding:4px;color:white;margin:2px 3px 0 0;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;filter:saturate(400%);}#popup_dock #popup_dock_list [class^=icon_]:hover{background-color:rgb(77,77,77);}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(1){width:20%;text-align:center;color:#F60;}#popup_dock #popup_dock_list [class^=icon_] span:nth-child(2){width:80%;text-align:left;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;}#popup_dock #popup_dock_list [class^=icon_] button{width:20px;height:20px;color:white;padding:4px;margin:0;display:flex;align-content:center;justify-content:center;font-size:0.7em;border:none;background:none;}#popup_dock #popup_dock_options{position:absolute;top:3px;right:10px;width:var(--dock-sideRight);height:var(--dock-height);}#popup .iconize:before,#popup .maximize:before,#popup .close:before{content:\"\";position:absolute;inset:0;background-repeat:no-repeat !important;background-position:center !important;background-size:50% !important;filter:invert(1);opacity:0.5;margin:0;padding:0;}#popup .iconize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjwhLS0gQ3JlYXRlZCB3aXRoIElua3NjYXBlIChodHRwOi8vd3d3Lmlua3NjYXBlLm9yZy8pIC0tPgoKPHN2ZwogICB3aWR0aD0iMjAiCiAgIGhlaWdodD0iMjAiCiAgIHZpZXdCb3g9IjAgMCA1LjI5MTY2NjUgNS4yOTE2NjY4IgogICB2ZXJzaW9uPSIxLjEiCiAgIGlkPSJzdmczNzY4IgogICBpbmtzY2FwZTp2ZXJzaW9uPSIxLjEuMSAoM2JmNWFlMGQyNSwgMjAyMS0wOS0yMCkiCiAgIHNvZGlwb2RpO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PSIxOTIwIgogICAgIGlua3NjYXBlOndpbmRvdy1oZWlnaHQ9IjEwMjciCiAgICAgaW5rc2NhcGU6d2luZG93LXg9Ii04IgogICAgIGlua3NjYXBlOndpbmRvdy15PSItOCIKICAgICBpbmtzY2FwZTp3aW5kb3ctbWF4aW1pemVkPSIxIgogICAgIGlua3NjYXBlOnBhZ2VjaGVja2VyYm9hcmQ9IjAiIC8+CiAgPG1ldGFkYXRhCiAgICAgaWQ9Im1ldGFkYXRhMzc2NSI+CiAgICA8cmRmOlJERj4KICAgICAgPGNjOldvcmsKICAgICAgICAgcmRmOmFib3V0PSIiPgogICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2Uvc3ZnK3htbDwvZGM6Zm9ybWF0PgogICAgICAgIDxkYzp0eXBlCiAgICAgICAgICAgcmRmOnJlc291cmNlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvU3RpbGxJbWFnZSIgLz4KICAgICAgPC9jYzpXb3JrPgogICAgPC9yZGY6UkRGPgogIDwvbWV0YWRhdGE+CiAgPGcKICAgICBpbmtzY2FwZTpsYWJlbD0iTGF5ZXIgMSIKICAgICBpbmtzY2FwZTpncm91cG1vZGU9ImxheWVyIgogICAgIGlkPSJsYXllcjEiCiAgICAgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMCwtMjkxLjcwODMyKSI+CiAgICA8cmVjdAogICAgICAgcnk9IjAuNjk5MTc0MjMiCiAgICAgICB5PSIyOTMuNjkyNzgiCiAgICAgICB4PSIwLjI3NDg0NjczIgogICAgICAgaGVpZ2h0PSIxLjM5ODM0ODUiCiAgICAgICB3aWR0aD0iNC43NjI0OTk4IgogICAgICAgaWQ9InJlY3QzNzM2LTciCiAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO3N0cm9rZS13aWR0aDowLjEzMjk5MTg1IiAvPgogIDwvZz4KPC9zdmc+Cg==) !important;}#popup .maximize:before{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS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uMDMzMiAwLjA2MjMsLTAuMDY4NiAwLjA4NzEsLTAuMTA2MTQgMC4xNzQxNiwtMC4yNjMxOSAwLjE0NTA2OSwtMC42MTk0NiAtMC4wODcxLC0wLjg1MTY2IGwgLTEuMjI0MjA4LC0xLjIyNDE3IDEuMjI0MjA4LC0xLjIyNDE3IGMgMC4yNjUzNywtMC4yNjUzNyAwLjI2NTM3LC0wLjY5MjQ0IDAsLTAuOTU3ODEgLTAuMjY1Mzc5LC0wLjI2NTM3IC0wLjY5MjYxLC0wLjI2NTM3IC0wLjk1Nzk5LDAgbCAtMS4yMjQyMDgsMS4yMjQxNyAtMS4yMjQyMSwtMS4yMjQxNyBjIC0wLjEzMjY5LC0wLjEzMjY5IC0wLjMwNTgzLC0wLjE5OTI3IC0wLjQ3ODk4OTk1LC0wLjE5OTI3IHoiCiAgICAgICBpZD0icmVjdDM3MTUiCiAgICAgICBpbmtzY2FwZTpjb25uZWN0b3ItY3VydmF0dXJlPSIwIiAvPgogIDwvZz4KPC9zdmc+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)})();import { createRoot as e } from "react-dom/client";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
<div class='popup_prompt'>
|
|
6
|
-
<div class="popup_message_body">
|
|
7
|
-
<center>${t}</center>
|
|
8
|
-
</div>
|
|
9
|
-
<div class="buttons">
|
|
10
|
-
<button id="${"a_"+i.id}" type="button">CLOSE</button>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
`;$(".popup_body_"+i.id).html(o),$("#a_"+i.id).on("click",()=>{window.layerpro.popup.close(i);});},ze=(e,t)=>{let i=N(String(e)),o=window.layerpro.popup.open({id:"__message",name:"Message",icon:"⛭",width:380,height:220,iconize:false,maximize:false,close:true,isMaximize:false,dockable:false,raised:true,movable:true,resizable:false}),n=`
|
|
14
|
-
<div class='popup_prompt'>
|
|
15
|
-
<div class="popup_message_body">
|
|
16
|
-
<center>${i}</center>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="buttons">
|
|
19
|
-
<button id="${"a_"+o.id}" type="button">CLOSE</button>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
`;$(".popup_body_"+o.id).html(n),$("#a_"+o.id).on("click",()=>{t&&t(),window.layerpro.popup.close(o);});},ke=(e,t,i)=>{if($(".confirm").length===0){let o=N(String(e)),n=window.layerpro.popup.open({id:"__confirm",name:"Confirm",icon:"☑",width:380,height:220,iconize:false,maximize:false,close:true,isMaximize:false,dockable:false,raised:true,movable:true,resizable:false}),l=`
|
|
23
|
-
<div class='popup_prompt'>
|
|
24
|
-
<div class="popup_message_body">
|
|
25
|
-
<center>${o}</center>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="buttons">
|
|
28
|
-
<button id="${"a_"+n.id}" type="button">CONFIRM</button>
|
|
29
|
-
<button id="${"b_"+n.id}" type="button">CANCEL</button>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
`;$(".popup_body_"+n.id).html(l),$("#a_"+n.id).on("click",()=>{t&&t(),window.layerpro.popup.close(n);}),$("#b_"+n.id).on("click",()=>{i&&i(),window.layerpro.popup.close(n);});}},je=(e,t)=>{let i=t||"_prompt",o=N(String(e)),n=window.layerpro.popup.open({id:"__prompt",name:"Prompt",icon:"✎",width:380,height:220,iconize:false,maximize:false,close:true,isMaximize:false,dockable:false,raised:true,movable:true,resizable:false}),l=`
|
|
33
|
-
<div class='popup_prompt'>
|
|
3
|
+
import o from "jquery";
|
|
34
4
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
5
|
+
var t, i, n, p, s, r, c, a = Object.defineProperty, d = Object.getOwnPropertyNames, u = (e, o) => function() {
|
|
6
|
+
return e && (o = (0, e[d(e)[0]])(e = 0)), o;
|
|
7
|
+
}, l = (e, o) => {
|
|
8
|
+
for (var t in o) a(e, t, {
|
|
9
|
+
get: o[t],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
}, h = u({
|
|
13
|
+
"core/credits.ts"() {
|
|
14
|
+
t = e => {}, Object.defineProperty(layerpro, "credits", {
|
|
15
|
+
value: t,
|
|
16
|
+
writable: !1,
|
|
17
|
+
configurable: !1
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
});
|
|
40
21
|
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
l({}, {
|
|
23
|
+
getMouseDirection: () => c,
|
|
24
|
+
mouseCoord: () => i
|
|
25
|
+
});
|
|
43
26
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
var m, b, _, f, v, g, w, y, z, x, k, C, N, M, T, E, I, O, S, L, A, P, j, H, R, W, D, X, Y, U, K, B, F, q, J, Q, G = u({
|
|
28
|
+
"core/mouseCoords.ts"() {
|
|
29
|
+
i = e => [ e.clientX, e.clientY, e.screenX, e.screenY, e.pageX, e.pageY ], n = 0,
|
|
30
|
+
p = "", s = 0, r = 0, c = e => (n = s < e.pageX ? 1 : 0, p = r < e.pageY ? "down" : "up",
|
|
31
|
+
s = e.pageX, r = e.pageY, [ n, p ]);
|
|
32
|
+
}
|
|
33
|
+
}), V = u({
|
|
34
|
+
"core/message.ts"() {
|
|
35
|
+
m = e => {
|
|
36
|
+
const o = document.createElement("div");
|
|
37
|
+
return o.textContent = e, o.innerHTML;
|
|
38
|
+
}, b = e => {
|
|
39
|
+
const o = m(String(e)), t = window.layerpro.popup.open({
|
|
40
|
+
id: "__alert",
|
|
41
|
+
name: "Warning",
|
|
42
|
+
icon: "⚠",
|
|
43
|
+
width: 380,
|
|
44
|
+
height: 220,
|
|
45
|
+
iconize: !1,
|
|
46
|
+
maximize: !1,
|
|
47
|
+
close: !0,
|
|
48
|
+
isMaximize: !1,
|
|
49
|
+
dockable: !1,
|
|
50
|
+
raised: !0,
|
|
51
|
+
movable: !0,
|
|
52
|
+
resizable: !1
|
|
53
|
+
}), i = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${o}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + t.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
|
|
54
|
+
$(".popup_body_" + t.id).html(i), $("#a_" + t.id).on("click", () => {
|
|
55
|
+
window.layerpro.popup.close(t);
|
|
56
|
+
});
|
|
57
|
+
}, _ = (e, o) => {
|
|
58
|
+
const t = m(String(e)), i = window.layerpro.popup.open({
|
|
59
|
+
id: "__message",
|
|
60
|
+
name: "Message",
|
|
61
|
+
icon: "⛭",
|
|
62
|
+
width: 380,
|
|
63
|
+
height: 220,
|
|
64
|
+
iconize: !1,
|
|
65
|
+
maximize: !1,
|
|
66
|
+
close: !0,
|
|
67
|
+
isMaximize: !1,
|
|
68
|
+
dockable: !1,
|
|
69
|
+
raised: !0,
|
|
70
|
+
movable: !0,
|
|
71
|
+
resizable: !1
|
|
72
|
+
}), n = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${t}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + i.id}" type="button">CLOSE</button>\n </div>\n </div>\n `;
|
|
73
|
+
$(".popup_body_" + i.id).html(n), $("#a_" + i.id).on("click", () => {
|
|
74
|
+
o && o(), window.layerpro.popup.close(i);
|
|
75
|
+
});
|
|
76
|
+
}, f = (e, o, t) => {
|
|
77
|
+
if (0 === $(".confirm").length) {
|
|
78
|
+
const i = m(String(e)), n = window.layerpro.popup.open({
|
|
79
|
+
id: "__confirm",
|
|
80
|
+
name: "Confirm",
|
|
81
|
+
icon: "☑",
|
|
82
|
+
width: 380,
|
|
83
|
+
height: 220,
|
|
84
|
+
iconize: !1,
|
|
85
|
+
maximize: !1,
|
|
86
|
+
close: !0,
|
|
87
|
+
isMaximize: !1,
|
|
88
|
+
dockable: !1,
|
|
89
|
+
raised: !0,
|
|
90
|
+
movable: !0,
|
|
91
|
+
resizable: !1
|
|
92
|
+
}), p = `\n <div class='popup_prompt'>\n <div class="popup_message_body">\n <center>${i}</center>\n </div>\n <div class="buttons">\n <button id="${"a_" + n.id}" type="button">CONFIRM</button>\n <button id="${"b_" + n.id}" type="button">CANCEL</button>\n </div>\n </div>\n `;
|
|
93
|
+
$(".popup_body_" + n.id).html(p), $("#a_" + n.id).on("click", () => {
|
|
94
|
+
o && o(), window.layerpro.popup.close(n);
|
|
95
|
+
}), $("#b_" + n.id).on("click", () => {
|
|
96
|
+
t && t(), window.layerpro.popup.close(n);
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}, v = (e, o) => {
|
|
100
|
+
const t = o || "_prompt", i = m(String(e)), n = window.layerpro.popup.open({
|
|
101
|
+
id: "__prompt",
|
|
102
|
+
name: "Prompt",
|
|
103
|
+
icon: "✎",
|
|
104
|
+
width: 380,
|
|
105
|
+
height: 220,
|
|
106
|
+
iconize: !1,
|
|
107
|
+
maximize: !1,
|
|
108
|
+
close: !0,
|
|
109
|
+
isMaximize: !1,
|
|
110
|
+
dockable: !1,
|
|
111
|
+
raised: !0,
|
|
112
|
+
movable: !0,
|
|
113
|
+
resizable: !1
|
|
114
|
+
}), p = `\n <div class='popup_prompt'>\n\n <div class="popup_message_body">\n <center>\n ${i}\n </center>\n </div>\n\n <input id="input_${n.id}" type="text" placeholder="write here" />\n <br/>\n\n <div class="buttons">\n <button id="a_${n.id}" type="button">OK</button>\n <button id="b_${n.id}" type="button">CANCEL</button>\n </div>\n\n </div>\n `;
|
|
115
|
+
$(".popup_body_" + n.id).html(p), $("#input_" + n.id).on("focus", function() {
|
|
116
|
+
$(this).attr("placeholder", "");
|
|
117
|
+
}).on("blur", function() {
|
|
118
|
+
$(this).attr("placeholder", "write here");
|
|
119
|
+
}), $("#a_" + n.id).on("click", () => {
|
|
120
|
+
if ($("#input_" + n.id).val() > "") {
|
|
121
|
+
"function" == typeof t && t();
|
|
122
|
+
if (String(t) === t) return JSON.stringify($("#input_" + n.id).val());
|
|
123
|
+
window.layerpro.popup.close(n);
|
|
124
|
+
} else alert("input can't be empty!");
|
|
125
|
+
}), $("#b_" + n.id).on("click", () => {
|
|
126
|
+
window.layerpro.popup.close(n);
|
|
127
|
+
});
|
|
128
|
+
}, window.message = (e, o) => window.layerpro.message(e, o), window.alert = e => window.layerpro.alert(e),
|
|
129
|
+
window.confirm = (e, o, t) => window.layerpro.confirm(e, o, t), window.prompt = (e, o, t) => window.layerpro.prompt(e, o, t),
|
|
130
|
+
Object.defineProperty(window, "alert", {
|
|
131
|
+
enumerable: !1
|
|
132
|
+
}), Object.defineProperty(window, "prompt", {
|
|
133
|
+
enumerable: !1
|
|
134
|
+
}), Object.defineProperty(window, "message", {
|
|
135
|
+
enumerable: !1
|
|
136
|
+
}), Object.defineProperty(window, "confirm", {
|
|
137
|
+
enumerable: !1
|
|
138
|
+
}), Object.defineProperties(window.layerpro, {
|
|
139
|
+
prompt: {
|
|
140
|
+
value: v
|
|
141
|
+
},
|
|
142
|
+
alert: {
|
|
143
|
+
value: b
|
|
144
|
+
},
|
|
145
|
+
message: {
|
|
146
|
+
value: _
|
|
147
|
+
},
|
|
148
|
+
confirm: {
|
|
149
|
+
value: f
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}), Z = u({
|
|
154
|
+
"core/genLayer.ts"() {
|
|
155
|
+
V(), g = new Map, w = new Map, y = e => {
|
|
156
|
+
const o = document.createElement("div");
|
|
157
|
+
return o.textContent = e, o.innerHTML;
|
|
158
|
+
}, z = o => {
|
|
159
|
+
if ("function" == typeof o.body) return;
|
|
160
|
+
const t = !0 === o.raised ? ".popup_raised_" + o.id : "#popup";
|
|
161
|
+
$('[class^="popup_window_"]', t).removeClass("zHigh"), $('[class^="popup_bar_"]', t).removeClass("popup_bar_selected"),
|
|
162
|
+
$('[class^="icon_"]', t).removeClass("popup_bar_selected"), !0 === o.raised && $('<div class="popup_raised_' + o.id + '">', t).appendTo("#popup").css({
|
|
163
|
+
"pointer-events": "auto",
|
|
164
|
+
"z-index": Number(layerpro.popup.zIndex($('[class^="popup_overflow_"]', t))) + 1e3
|
|
165
|
+
}), $('<div class="popup_overflow_' + o.id + '">', t).appendTo(t).css({
|
|
166
|
+
top: o.top,
|
|
167
|
+
left: o.left,
|
|
168
|
+
right: o.right,
|
|
169
|
+
bottom: o.bottom,
|
|
170
|
+
width: o.width,
|
|
171
|
+
height: o.height,
|
|
172
|
+
minWidth: o.minWidth,
|
|
173
|
+
minHeight: o.minHeight,
|
|
174
|
+
maxWidth: o.maxWidth,
|
|
175
|
+
maxHeight: o.maxHeight,
|
|
176
|
+
pointerEvents: "auto",
|
|
177
|
+
zIndex: Number(layerpro.popup.zIndex($('[class^="popup_overflow_"]', t))) + 1
|
|
178
|
+
}).on("mousedown", e => {
|
|
179
|
+
layerpro.popup.index(o);
|
|
180
|
+
}).hide().fadeIn(o.fadeIn);
|
|
181
|
+
const i = $('<div class="popup_window_' + o.id + '">', t).appendTo(".popup_overflow_" + o.id).css({
|
|
182
|
+
"pointer-events": "auto"
|
|
183
|
+
}).addClass("zHigh").addClass(o.class);
|
|
184
|
+
0 === [ o.top, o.left, o.bottom, o.right ].reduce((e, o) => "number" == typeof o && isFinite(o) ? Number(e) + o : e, 0) && layerpro.popup.center(o),
|
|
185
|
+
layerpro.popup.unmount = e => {
|
|
186
|
+
const o = g.get(e);
|
|
187
|
+
o && (o.unmount(), g.delete(e));
|
|
188
|
+
}, layerpro.popup.cleanupEvents = e => {
|
|
189
|
+
const o = w.get(e);
|
|
190
|
+
o && (o.iconClick && $(".icon_" + e, "#popup_dock").find("span").off("click"), o.iconClose && $(".icon_close_" + e, "#popup_dock").off("click"),
|
|
191
|
+
o.buttonIconize && $(".button_iconize_" + e).off("click"), o.buttonMaximize && $(".button_maximize_" + e).off("click"),
|
|
192
|
+
o.buttonClose && $(".button_close_" + e).off("click"), o.escKey && $(document).off("keydown"),
|
|
193
|
+
w.delete(e));
|
|
194
|
+
}, layerpro.popup.getReactRoot = e => g.get(e), $('<div class="popup_bar_' + o.id + '">', t).appendTo(i).addClass("popup_bar_selected"),
|
|
195
|
+
o.icon && $('<div class="popup_icon_' + o.id + '">' + o.icon + "</div>", t).appendTo(".popup_bar_" + o.id);
|
|
196
|
+
const n = y(String(o.name));
|
|
197
|
+
if ($('<div class="popup_drag_' + o.id + '">' + n + "</div>", t).appendTo(".popup_bar_" + o.id),
|
|
198
|
+
$('<div class="popup_option_' + o.id + '">', t).appendTo(".popup_bar_" + o.id),
|
|
199
|
+
!0 === o.iconize && 0 === $("#popup_dock").length) {
|
|
200
|
+
$("#root").css("margin", "0 0 var( --dock-height ) 0");
|
|
201
|
+
$('\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({
|
|
202
|
+
pointerEvents: "auto",
|
|
203
|
+
zIndex: Number(layerpro.popup.zIndex($("#popup"))) + 1e3
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
if ($("#popup_dock").length > 0 && !0 === o.dockable) {
|
|
207
|
+
const e = String(o.id), t = `\n <div class="icon_${o.id}">\n <span>${o.icon ? o.icon : ""}</span>\n <span>${n}</span>\n `, i = function(e) {
|
|
208
|
+
$(".popup_overflow_" + o.id + ":hidden") ? (layerpro.popup.iconize(o), layerpro.popup.index(o)) : layerpro.popup.iconize(o),
|
|
209
|
+
layerpro.popup.index(o);
|
|
210
|
+
}, p = function(e) {
|
|
211
|
+
o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(), layerpro.popup.close(o);
|
|
212
|
+
};
|
|
213
|
+
w.set(e, {
|
|
214
|
+
iconClick: !0,
|
|
215
|
+
iconClose: !0
|
|
216
|
+
}), $(t, "#popup_dock").appendTo("#popup_dock_list").addClass("popup_bar_selected").find("span").on("click", i),
|
|
217
|
+
$(`<button class="icon_close_${o.id}">X</button>`, "#popup_dock").appendTo(`.icon_${o.id}`).on("click", p);
|
|
218
|
+
}
|
|
219
|
+
if (!0 === o.iconize) {
|
|
220
|
+
const e = String(o.id), t = function(e) {
|
|
221
|
+
layerpro.popup.iconize(o);
|
|
222
|
+
}, i = w.get(e) || {};
|
|
223
|
+
i.buttonIconize = !0, w.set(e, i), $('<button class="button_iconize_' + o.id + ' iconize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
|
|
224
|
+
}
|
|
225
|
+
if (!0 === o.maximize) {
|
|
226
|
+
const e = String(o.id), t = function(e) {
|
|
227
|
+
layerpro.popup.maximize(o);
|
|
228
|
+
}, i = w.get(e) || {};
|
|
229
|
+
i.buttonMaximize = !0, w.set(e, i), $('<button class="button_maximize_' + o.id + ' maximize">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
|
|
230
|
+
}
|
|
231
|
+
if (!0 === o.close) {
|
|
232
|
+
const e = String(o.id), t = function(e) {
|
|
233
|
+
o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(), layerpro.popup.close(o);
|
|
234
|
+
}, i = w.get(e) || {};
|
|
235
|
+
i.buttonClose = !0, w.set(e, i), $('<button class="button_close_' + o.id + ' close">', "#popup").appendTo(".popup_option_" + o.id).on("click", t);
|
|
236
|
+
}
|
|
237
|
+
const p = String(o.id), s = w.get(p) || {};
|
|
238
|
+
if (s.escKey = !0, w.set(p, s), $(document).on("keydown", function(e) {
|
|
239
|
+
"Escape" !== e.key && 27 !== e.keyCode || (o?.buttons?.cancel?.cb && o?.buttons?.cancel?.cb(),
|
|
240
|
+
layerpro.popup.close(o));
|
|
241
|
+
}), o.timer > 0) {
|
|
242
|
+
const e = {};
|
|
243
|
+
e[String(`st_${o.id}`)] = setTimeout(() => {
|
|
244
|
+
layerpro.popup.close(o), clearTimeout(e[String(`st_${o.id}`)]);
|
|
245
|
+
}, o.timer);
|
|
246
|
+
}
|
|
247
|
+
if (o.source) {
|
|
248
|
+
const e = $(".popup_body_" + o.id), t = String(o.source);
|
|
249
|
+
try {
|
|
250
|
+
const e = new URL(t, window.location.origin);
|
|
251
|
+
if ("https:" !== e.protocol && "http:" !== e.protocol && "" !== e.protocol) return;
|
|
252
|
+
} catch {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
fetch(t, {
|
|
256
|
+
mode: "same-origin"
|
|
257
|
+
}).then(e => {
|
|
258
|
+
if ((e.headers.get("content-type") || "").includes("text/html"), !e.ok) throw new Error(`HTTP error! status: ${e.status}`);
|
|
259
|
+
return e.text();
|
|
260
|
+
}).then(t => {
|
|
261
|
+
const i = y(t);
|
|
262
|
+
e.hide().html(i).fadeIn(o.fadeIn);
|
|
263
|
+
}).catch(e => {});
|
|
264
|
+
}
|
|
265
|
+
o.movable && layerpro.popup.movable(o), o.resizable && layerpro.popup.resizable(o),
|
|
266
|
+
o.isMaximize && layerpro.popup.maximize(o);
|
|
267
|
+
const r = $('<div class="popup_overflow_' + o.id + '">', "#popup");
|
|
268
|
+
$('<div class="popup_internal_' + o.id + '">', r).appendTo(i), $('<div class="popup_body_' + o.id + '">', r).appendTo(".popup_internal_" + o.id).hide().fadeIn(o.fadeIn, function() {
|
|
269
|
+
(() => {
|
|
270
|
+
if (o.body && !o.source) if ("object" == typeof o.body && null !== o.body && void 0 !== o.body.props) {
|
|
271
|
+
const t = document.querySelector(".popup_body_" + o.id);
|
|
272
|
+
if (!t) return;
|
|
273
|
+
try {
|
|
274
|
+
const i = e(t);
|
|
275
|
+
i.render(o.body), g.set(String(o.id), i);
|
|
276
|
+
} catch (e) {}
|
|
277
|
+
} else if ("string" == typeof o.body && o.body.trim().startsWith("<")) {
|
|
278
|
+
const e = y(o.body);
|
|
279
|
+
$(".popup_body_" + o.id).html(e).fadeIn(o.fadeIn);
|
|
280
|
+
} else {
|
|
281
|
+
const e = y(String(o.body));
|
|
282
|
+
$(".popup_body_" + o.id).text(e).fadeIn(o.fadeIn);
|
|
283
|
+
}
|
|
284
|
+
})(), (() => {
|
|
285
|
+
if (o.buttons) {
|
|
286
|
+
if ($('<div class="buttons"></div>').appendTo(".popup_body_" + o.id), o.buttons.confirm) {
|
|
287
|
+
const e = $(`<button id="lp_confirm" type="button">\n ${o.buttons.confirm.text.toUpperCase()}\n </button>`).appendTo(".buttons");
|
|
288
|
+
o.buttons.confirm.cb && e.click(() => {
|
|
289
|
+
o.buttons?.confirm?.cb?.(), layerpro.popup.close(o);
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
o.buttons.cancel && $(`<button id="lp_cancel" type="button">\n ${o.buttons.cancel.text.toUpperCase()}\n </button>`).appendTo(".buttons").click(() => {
|
|
293
|
+
o.buttons?.cancel?.cb?.(), layerpro.popup.close(o);
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
})();
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
}), ee = u({
|
|
301
|
+
"core/mobile.ts"() {
|
|
302
|
+
if (x = () => "undefined" != typeof window && window.matchMedia("(max-width: 1024px)").matches,
|
|
303
|
+
k = () => {
|
|
304
|
+
if ("undefined" == typeof navigator) return !1;
|
|
305
|
+
const e = navigator.userAgent;
|
|
306
|
+
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e);
|
|
307
|
+
}, C = () => "ontouchstart" in window || navigator.maxTouchPoints > 0, (N = () => {
|
|
308
|
+
if (!0 === window.__FORCE_TOUCH_MODE__) return "touch";
|
|
309
|
+
const e = k() || x();
|
|
310
|
+
return C() && e ? "touch" : "mouse";
|
|
311
|
+
})(), M = !x(), "undefined" != typeof window) {
|
|
312
|
+
const e = window.matchMedia("(max-width: 1024px)"), o = () => {
|
|
313
|
+
const e = N(), o = !x();
|
|
314
|
+
M !== o && (M = o);
|
|
315
|
+
};
|
|
316
|
+
let t;
|
|
317
|
+
e.addListener ? e.addListener(o) : e.addEventListener("change", o), window.addEventListener("resize", () => {
|
|
318
|
+
clearTimeout(t), t = setTimeout(o, 150);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
T = () => "pointerdown", E = () => "pointermove", I = () => "pointerup", O = e => void 0 !== e.clientX ? e.clientX : e.touches && e.touches.length > 0 ? e.touches[0].clientX : e.clientX,
|
|
322
|
+
S = e => void 0 !== e.clientY ? e.clientY : e.touches && e.touches.length > 0 ? e.touches[0].clientY : e.clientY;
|
|
323
|
+
}
|
|
324
|
+
});
|
|
48
325
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</button>`).appendTo(".buttons").click(()=>{e.buttons?.cancel?.cb?.(),layerpro.popup.close(e);});}},_=$('<div class="popup_overflow_'+e.id+'">',"#popup");$('<div class="popup_internal_'+e.id+'">',_).appendTo(i),$('<div class="popup_body_'+e.id+'">',_).appendTo(".popup_internal_"+e.id).hide().fadeIn(e.fadeIn,function(){g(),m();});};});var T,ae,re,ce,W,ie,ne,se,k,y,A,M,x,pe=C(()=>{T=()=>typeof window>"u"?false:window.matchMedia("(max-width: 1024px)").matches,ae=()=>{if(typeof navigator>"u")return false;let e=navigator.userAgent;return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)},re=()=>"ontouchstart"in window||navigator.maxTouchPoints>0,ce=()=>{if(window.__FORCE_TOUCH_MODE__===true)return "touch";let e=ae()||T();return re()&&e?"touch":"mouse"},W=ce(),ie=!T(),ne=null,se=()=>{console.debug(`[LayerPro] Mode: ${W==="touch"?"MOBILE (touch events)":"DESKTOP (mouse events)"} | UA: ${ae()?"mobile":"desktop"} | Viewport: ${T()?"mobile":"desktop"} | Touch: ${re()}`);};typeof window<"u"&&se();if(typeof window<"u"){let e=window.matchMedia("(max-width: 1024px)"),t=()=>{let o=ce(),n=W,l=!T();W=o,se(),ie!==l&&(ie=l,ne&&ne(o,n));};e.addListener?e.addListener(t):e.addEventListener("change",t);let i;window.addEventListener("resize",()=>{clearTimeout(i),i=setTimeout(t,150);});}k=()=>"pointerdown",y=()=>"pointermove",A=()=>"pointerup",M=e=>e.clientX!==void 0?e.clientX:e.touches&&e.touches.length>0?e.touches[0].clientX:e.clientX,x=e=>e.clientY!==void 0?e.clientY:e.touches&&e.touches.length>0?e.touches[0].clientY:e.clientY;});var ue={};X(ue,{popup:()=>c});var d,p,P,H,E,B,Y,G,j,le,S,O,R,v,I,de,c,ge=C(()=>{oe();pe();d=250,p=150,H=1,R=new Map,v=new Map,I=$(window),de=$("body"),c={open:e=>{if(e)return e.id=e.id||Math.round(Math.random()*1e3),e.body=e.body||"",e.class=e.class||"",e.width=e.width||300,e.height=e.height||200,e.minWidth=e.minWidth||340,e.minHeight=e.minHeight||220,e.name=e.name||"popUp_"+e.id,e.source=e.source||null,e.icon=e.icon||null,e.iconize=e.iconize||null,e.maximize=e.maximize||null,e.isMaximize=e.isMaximize||null,e.dockable=e.dockable||null,e.close=e.close||null,e.raised=e.raised||null,e.movable=e.movable||null,e.resizable=e.resizable||null,e.store=e.store||false,e.top=e.top?e.top:"auto",e.left=e.left?e.left:"auto",e.right=e.right?e.right:"auto",e.bottom=e.bottom?e.bottom:"auto",e.fadeIn=e.fadeIn||100,e.fadeOut=e.fadeOut||100,d=e.minWidth,p=e.minHeight,e.width<e.minWidth&&(e.width=e.minWidth),e.height<e.minHeight&&(e.height=e.minHeight),e.width==="auto"&&(e.width="100%"),e.height==="auto"&&(e.height="100%"),$("#popup").length===0&&$('<div id="popup">',"#popup").appendTo("body").css({"pointer-events":"none","z-index":c.zIndex($("*"))+1}),$(".popup_window_"+e.id,"#popup").length===0&&te(e),layerpro.purge(document),e},dispatch:e=>{layerpro.popup.store(e);},store:e=>{console.debug(e);},show:e=>{e.toggle();},vfx:(e,t,i=false)=>{setTimeout(()=>{$('[class^="popup_overflow_"]',"#popup").css("opacity",t==true?1:.5).find('[class^="popup_body_"]').css({"content-visibility":t==true?"auto":"hidden"}),e.css("opacity",1),i||$('[class^="popup_body_"]',e).css("content-visibility","visible");},1),dispatchEvent(new Event("layerProResize"));},center:e=>{let t=$(".popup_overflow_"+e.id,"#popup");t.css("top",Math.max(0,(I.height()-t.outerHeight())/2+I.scrollTop())),t.css("left",Math.max(0,(I.width()-t.outerWidth())/2+I.scrollLeft()));},checkArea:e=>{let t=M(e),i=x(e);return [t,i,I.scrollLeft(),I.scrollTop(),I.height(),I.width()]},close:e=>{let t;if(!e)$("#popup").fadeOut(()=>{$(void 0).remove();});else {typeof e=="object"?t=e.id:t=e,layerpro.popup.unmount&&layerpro.popup.unmount(String(t)),layerpro.popup.cleanupEvents&&layerpro.popup.cleanupEvents(String(t));let i=R.get(String(t));if(i){let n={passive:false};i.move&&document.removeEventListener(y(),i.move,n),i.up&&document.removeEventListener(A(),i.up,n),R.delete(String(t));}let o=v.get(String(t));if(o){let n={passive:false};o.move&&document.removeEventListener(y(),o.move,n),o.up&&document.removeEventListener(A(),o.up,n),v.delete(String(t));}e.raised===true?$(".popup_raised_"+t).fadeOut(e.fadeOut||500,n=>{$(".popup_raised_"+t).remove();}):$(".popup_overflow_"+t).fadeOut(e.fadeOut||500,function(n){$(this).remove(),$(".popup_raised_"+t).fadeOut(e.fadeOut||500,function(l){$(this).remove();});});}layerpro.purge(document),setTimeout(()=>c.removeDock(e),300);},removeDock:e=>{$(".icon_"+e.id).remove(),$('[class^="popup_overflow_"]',"#popup").length<1&&($("#root").css("margin","0"),$("#popup_dock").remove());},iconize:e=>{let t=$(".popup_overflow_"+e.id,"#popup");if(t.find("[class^=popup_window_]").hasClass("zHigh")!==false){if(c.vfx(t,false,true),!t.data("iconize"))t.animate({top:"100%",left:$(".icon_"+e.id,"#popup_dock").offset().left+15,width:0,height:0,opacity:0},200,()=>c.vfx(t,true)),t.data("iconize",{y:t.offset().top,x:t.offset().left,w:t.width(),h:t.height()},200);else if(t.data("iconize")){let i=t.data("iconize");t.animate({top:i.y,left:i.x,width:i.w,height:i.h,opacity:1},()=>c.vfx(t,true)),t.removeData("iconize");}}},maximize:e=>{let t=$(".popup_overflow_"+e.id,"#popup"),i=$('[class^="resize_"]',t),o=$('[class^="popup_drag_"]',t),n=6;if(c.vfx(t,false,true),!t.data("store"))t.data("store",{y:t.offset().top,x:t.offset().left,w:t.width(),h:t.height()}),t.animate({position:"absolute",top:-n,left:-n,right:-n,bottom:-n,width:I.width()+n*2,height:I.height()+n*2-45},()=>{I.on("layerProResize.eventItem",l=>{t.css({width:I.width()+n*2,height:I.height()+n*2-40});}),o.css("pointer-events","none"),i.off(k()),c.vfx(t,true,true);});else if(t.data("store")){let l=t.data("store");t.animate({top:l.y,left:l.x,width:l.w,height:l.h},()=>{o.css("pointer-events","auto"),i.on(k(),function(b){c.resizeModals(b,this,e);}),I.off("layerProResize.eventItem"),c.vfx(t,true);}),t.removeData("store");}},movable:e=>{if(e.movable===false)return;let t=String(e.id),i=$(".popup_overflow_"+e.id,"#popup"),o=$(".popup_drag_"+e.id,i),n=$(".popup_body_"+e.id,i);i.css("touch-action","none");let l=0,b=0,h=0,u=0,g=a=>{a.preventDefault();let s=M(a),w=x(a);l=h-s,b=u-w,h=s,u=w,c.checkArea(a)[1]<c.checkArea(a)[4]&&Math.sign(c.checkArea(a)[1])===1&&i.css("top",i.offset().top-b),c.checkArea(a)[0]<c.checkArea(a)[5]&&Math.sign(c.checkArea(a)[0])===1&&i.css("left",i.offset().left-l);},m=a=>{let s={passive:false};document.removeEventListener(y(),g,s),document.removeEventListener(A(),m,s),R.delete(t),n.css("pointer-events","auto"),c.vfx(i,true);};R.set(t,{move:g,up:m});let _={passive:false};o[0].addEventListener(k(),a=>{a.preventDefault(),n.css("pointer-events","none"),r(a),c.vfx(i,false);},_),e.maximize&&o.on("dblclick",a=>{layerpro.popup.maximize(e);});let r=a=>{h=M(a),u=x(a);let s={passive:false};document.addEventListener(y(),g,s),document.addEventListener(A(),m,s);};},resizable:e=>{if(!e.resizable)return;let t=String(e.id),i=$(".popup_overflow_"+e.id,"#popup");for(let b=4;b--;)$(`<div class='resize_${b}'>`,i).appendTo(i).css("touch-action","none"),$(`<div class='resize_corner_${b}'>`,i).appendTo(i).css("touch-action","none");let o=function(b){c.resizeModals(b,this,e);},n=v.get(t)||{};n.down=o,v.set(t,n);let l={passive:false};$("[class^=resize_]").each((b,h)=>{h.addEventListener(k(),u=>{u.preventDefault(),c.resizeModals(u,h,e);},l);});},resizeModals:(e,t,i)=>{let o=$(t),n=o.parent(),l=String(i.id),b=M(e),h=x(e),u=[b-I.scrollLeft(),h-I.scrollTop()];i.minWidth,de.css("pointer-events","none"),n.css("pointer-events","none"),c.vfx(n,false);let g=a=>{c.doRes(a,t);},m=a=>{c.stopRes(t);},_=v.get(l)||{};_.move=g,_.up=m,v.set(l,_);let r={passive:false};document.addEventListener(y(),g,r),document.addEventListener(A(),m,r),E=u[0],B=u[1],Y=n.width(),G=n.height(),j=n.position().left,le=n.position().top,S=le+G+1,O=j+Y+1,P=t;},doRes:(e,t)=>{dispatchEvent(new Event("layerProResize"));let i=$(t),o=i.parent(),n=M(e),l=x(e),b=[n-I.scrollLeft(),l-I.scrollTop()];if(t===P){let h=Y+b[0]-E,u=G+b[1]-B,g=Y-b[0]+E,m=G-b[1]+B;h<=0&&(h=0),u<=0&&(u=0),c.checkArea(e)[1]<c.checkArea(e)[4]&&Math.sign(c.checkArea(e)[1])===1&&i.hasClass("resize_0")&&(o.height()<=p&&m>p&&o.css({height:Number(p+1)}),o.height()>p&&p<=m&&o.css({top:Number(S-m),height:parseInt(m)})),c.checkArea(e)[0]<c.checkArea(e)[5]&&Math.sign(c.checkArea(e)[0])===1&&i.hasClass("resize_1")&&(o.width()>=d&&o.css({width:Number(h),right:Number(j-h)}),o.width()<=d&&o.css({width:Number(d+1)})),c.checkArea(e)[1]<c.checkArea(e)[4]&&Math.sign(c.checkArea(e)[1])===1&&i.hasClass("resize_2")&&(o.height()>=p&&o.css({height:Number(u)}),o.height()<=p&&u>p&&o.css({height:Number(p+1)})),c.checkArea(e)[0]<c.checkArea(e)[5]&&Math.sign(c.checkArea(e)[0])===1&&i.hasClass("resize_3")&&(o.width()<=d&&g>d&&o.css({width:Number(d+1)}),o.width()>d&&d<=g&&o.css({width:parseInt(g),left:Number(O-g)})),c.checkArea(e)[1]<c.checkArea(e)[4]&&c.checkArea(e)[0]<c.checkArea(e)[5]&&Math.sign(c.checkArea(e)[0])===1&&Math.sign(c.checkArea(e)[1])===1&&(i.hasClass("resize_corner_0")&&(o.height()>=p&&m>p&&o.css({top:Number(S-m),height:parseInt(m)}),o.height()<=p&&m>p&&o.css({height:Number(p+1)}),o.width()>=d&&g>d&&o.css({width:parseInt(g),left:Number(O-g)}),o.width()<=d&&g>d&&o.css({width:Number(d+1)})),i.hasClass("resize_corner_1")&&(o.height()>=p&&m>p&&o.css({top:Number(S-m),height:Number(m)}),o.height()<=p&&m>p&&o.css({height:Number(p+1)}),o.width()>=d&&o.css({width:Number(h),right:Number(j-h)}),o.width()<=d&&g>d&&o.css({width:Number(d+1)})),i.hasClass("resize_corner_2")&&(o.height()>=p&&o.css({height:Number(u)}),o.height()<=p&&u>p&&o.css({height:Number(p+1)}),o.width()>=d&&o.css({width:Number(h),right:Number(j-h)}),o.width()<=d&&o.css({width:Number(d+1)})),i.hasClass("resize_corner_3")&&(o.height()>=p&&u>p&&o.css({height:Number(u)}),o.height()<=p&&u>p&&o.css({height:Number(p+1)}),o.width()>=d&&g>d&&o.css({width:Number(g),left:Number(O-g)}),o.width()<=d&&g>d&&o.css({width:Number(d+1)})));}},stopRes:e=>{let t=$(e),i=t.parent();de.css("pointer-events","auto"),i.css("pointer-events","auto"),c.vfx(i,true),P=false;let o=v.get(String(e));if(o){let n={passive:false};o.move&&document.removeEventListener(y(),o.move,n),o.up&&document.removeEventListener(A(),o.up,n),v.delete(String(e));}},index:e=>{let t=$('[class^="popup_overflow_"]',"#popup");$('[class^="popup_window_"]',"#popup").removeClass("zHigh"),$('[class^="popup_bar_"]',"#popup").removeClass("popup_bar_selected"),$('[class^="icon_"]',"#popup").removeClass("popup_bar_selected"),t.each(function(){$(this,"#popup").css("zIndex",$(this,"#popup")[0].style.zIndex-1);}),$(".icon_"+e.id,"#popup").addClass("popup_bar_selected"),$(".popup_overflow_"+e.id,"#popup").css("zIndex",c.zIndex(t)),$(".popup_bar_"+e.id,"#popup").addClass("popup_bar_selected"),$(".popup_window_"+e.id,"#popup").addClass("zHigh");},zIndex:e=>(e.each(function(){let t=parseInt($(this,"#popup").css("zIndex"),10);t>H&&(H=t);}),H+1)};Object.defineProperty(layerpro,"popup",{value:c,writable:false,configurable:false});});var Le,be=C(()=>{Le=e=>{let t=e.attributes,i,o,n;if(t)for(o=t.length,i=0;i<o;i+=1)n=t[i].name,e[n];if(t=e.childNodes,t)for(o=t.length,i=0;i<o;i+=1)layerpro.purge(e.childNodes[i]);};Object.defineProperty(layerpro,"purge",{value:new Proxy(Le,{}),writable:false,configurable:false});});var me=C(()=>{window.offScreenBuffering=true;addEventListener("wheel",e=>{},{capture:true,passive:true});});globalThis.$=he;globalThis.jQuery=he;var Ye=()=>{window.layerpro||(Object.defineProperty(window,"layerpro",{value:{},writable:false,configurable:false,enumerable:false}),J(),q(),ge(),be(),me(),layerpro.setProps=(e,t)=>{Reflect.ownKeys(e).forEach(o=>{let n=Object.getOwnPropertyDescriptor(e,o);n&&(n.enumerable=t?.enumerable||false,n.configurable=t?.enumerable||false,n.writable=t?.writable||false,Object.defineProperty(e,o,n)),typeof e[o]=="object"&&e[o]!==null&&layerpro.setProps(e[o],t);});},layerpro.setProps(layerpro,{configurable:false,enumerable:false,writable:false}),Object.freeze(layerpro));};Ye();
|
|
326
|
+
l({}, {
|
|
327
|
+
popup: () => Q
|
|
328
|
+
});
|
|
329
|
+
|
|
330
|
+
var oe, te = u({
|
|
331
|
+
"core/properties.ts"() {
|
|
332
|
+
Z(), ee(), L = 250, A = 150, j = 1, B = new Map, F = new Map, q = $(window), J = $("body"),
|
|
333
|
+
Q = {
|
|
334
|
+
open: e => {
|
|
335
|
+
if (e) return e.id = e.id || Math.round(1e3 * Math.random()), e.body = e.body || "",
|
|
336
|
+
e.class = e.class || "", e.width = e.width || 300, e.height = e.height || 200, e.minWidth = e.minWidth || 340,
|
|
337
|
+
e.minHeight = e.minHeight || 220, e.name = e.name || "popUp_" + e.id, e.source = e.source || null,
|
|
338
|
+
e.icon = e.icon || null, e.iconize = e.iconize || null, e.maximize = e.maximize || null,
|
|
339
|
+
e.isMaximize = e.isMaximize || null, e.dockable = e.dockable || null, e.close = e.close || null,
|
|
340
|
+
e.raised = e.raised || null, e.movable = e.movable || null, e.resizable = e.resizable || null,
|
|
341
|
+
e.store = e.store || !1, e.top = e.top ? e.top : "auto", e.left = e.left ? e.left : "auto",
|
|
342
|
+
e.right = e.right ? e.right : "auto", e.bottom = e.bottom ? e.bottom : "auto", e.fadeIn = e.fadeIn || 100,
|
|
343
|
+
e.fadeOut = e.fadeOut || 100, L = e.minWidth, A = e.minHeight, e.width < e.minWidth && (e.width = e.minWidth),
|
|
344
|
+
e.height < e.minHeight && (e.height = e.minHeight), "auto" === e.width && (e.width = "100%"),
|
|
345
|
+
"auto" === e.height && (e.height = "100%"), 0 === $("#popup").length && $('<div id="popup">', "#popup").appendTo("body").css({
|
|
346
|
+
"pointer-events": "none",
|
|
347
|
+
"z-index": Q.zIndex($("*")) + 1
|
|
348
|
+
}), 0 === $(".popup_window_" + e.id, "#popup").length && z(e), layerpro.purge(document),
|
|
349
|
+
e;
|
|
350
|
+
},
|
|
351
|
+
dispatch: e => {
|
|
352
|
+
layerpro.popup.store(e);
|
|
353
|
+
},
|
|
354
|
+
store: e => {},
|
|
355
|
+
show: e => {
|
|
356
|
+
e.toggle();
|
|
357
|
+
},
|
|
358
|
+
vfx: (e, o, t = !1) => {
|
|
359
|
+
setTimeout(() => {
|
|
360
|
+
$('[class^="popup_overflow_"]', "#popup").css("opacity", 1 == o ? 1 : .5).find('[class^="popup_body_"]').css({
|
|
361
|
+
"content-visibility": 1 == o ? "auto" : "hidden"
|
|
362
|
+
}), e.css("opacity", 1), t || $('[class^="popup_body_"]', e).css("content-visibility", "visible");
|
|
363
|
+
}, 1), dispatchEvent(new Event("layerProResize"));
|
|
364
|
+
},
|
|
365
|
+
center: e => {
|
|
366
|
+
const o = $(".popup_overflow_" + e.id, "#popup");
|
|
367
|
+
o.css("top", Math.max(0, (q.height() - o.outerHeight()) / 2 + q.scrollTop())), o.css("left", Math.max(0, (q.width() - o.outerWidth()) / 2 + q.scrollLeft()));
|
|
368
|
+
},
|
|
369
|
+
checkArea: e => [ O(e), S(e), q.scrollLeft(), q.scrollTop(), q.height(), q.width() ],
|
|
370
|
+
close: e => {
|
|
371
|
+
let o;
|
|
372
|
+
if (e) {
|
|
373
|
+
o = "object" == typeof e ? e.id : e, layerpro.popup.unmount && layerpro.popup.unmount(String(o)),
|
|
374
|
+
layerpro.popup.cleanupEvents && layerpro.popup.cleanupEvents(String(o));
|
|
375
|
+
const t = B.get(String(o));
|
|
376
|
+
if (t) {
|
|
377
|
+
const e = {
|
|
378
|
+
passive: !1
|
|
379
|
+
};
|
|
380
|
+
t.move && document.removeEventListener(E(), t.move, e), t.up && document.removeEventListener(I(), t.up, e),
|
|
381
|
+
B.delete(String(o));
|
|
382
|
+
}
|
|
383
|
+
const i = F.get(String(o));
|
|
384
|
+
if (i) {
|
|
385
|
+
const e = {
|
|
386
|
+
passive: !1
|
|
387
|
+
};
|
|
388
|
+
i.move && document.removeEventListener(E(), i.move, e), i.up && document.removeEventListener(I(), i.up, e),
|
|
389
|
+
F.delete(String(o));
|
|
390
|
+
}
|
|
391
|
+
!0 === e.raised ? $(".popup_raised_" + o).fadeOut(e.fadeOut || 500, e => {
|
|
392
|
+
$(".popup_raised_" + o).remove();
|
|
393
|
+
}) : $(".popup_overflow_" + o).fadeOut(e.fadeOut || 500, function(t) {
|
|
394
|
+
$(this).remove(), $(".popup_raised_" + o).fadeOut(e.fadeOut || 500, function(e) {
|
|
395
|
+
$(this).remove();
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
} else $("#popup").fadeOut(() => {
|
|
399
|
+
$(void 0).remove();
|
|
400
|
+
});
|
|
401
|
+
layerpro.purge(document), setTimeout(() => Q.removeDock(e), 300);
|
|
402
|
+
},
|
|
403
|
+
removeDock: e => {
|
|
404
|
+
$(".icon_" + e.id).remove(), $('[class^="popup_overflow_"]', "#popup").length < 1 && ($("#root").css("margin", "0"),
|
|
405
|
+
$("#popup_dock").remove());
|
|
406
|
+
},
|
|
407
|
+
iconize: e => {
|
|
408
|
+
const o = $(".popup_overflow_" + e.id, "#popup");
|
|
409
|
+
if (!1 !== o.find("[class^=popup_window_]").hasClass("zHigh")) if (Q.vfx(o, !1, !0),
|
|
410
|
+
o.data("iconize")) {
|
|
411
|
+
if (o.data("iconize")) {
|
|
412
|
+
const e = o.data("iconize");
|
|
413
|
+
o.animate({
|
|
414
|
+
top: e.y,
|
|
415
|
+
left: e.x,
|
|
416
|
+
width: e.w,
|
|
417
|
+
height: e.h,
|
|
418
|
+
opacity: 1
|
|
419
|
+
}, () => Q.vfx(o, !0)), o.removeData("iconize");
|
|
420
|
+
}
|
|
421
|
+
} else o.animate({
|
|
422
|
+
top: "100%",
|
|
423
|
+
left: $(".icon_" + e.id, "#popup_dock").offset().left + 15,
|
|
424
|
+
width: 0,
|
|
425
|
+
height: 0,
|
|
426
|
+
opacity: 0
|
|
427
|
+
}, 200, () => Q.vfx(o, !0)), o.data("iconize", {
|
|
428
|
+
y: o.offset().top,
|
|
429
|
+
x: o.offset().left,
|
|
430
|
+
w: o.width(),
|
|
431
|
+
h: o.height()
|
|
432
|
+
}, 200);
|
|
433
|
+
},
|
|
434
|
+
maximize: e => {
|
|
435
|
+
const o = $(".popup_overflow_" + e.id, "#popup"), t = $('[class^="resize_"]', o), i = $('[class^="popup_drag_"]', o);
|
|
436
|
+
if (Q.vfx(o, !1, !0), o.data("store")) {
|
|
437
|
+
if (o.data("store")) {
|
|
438
|
+
const n = o.data("store");
|
|
439
|
+
o.animate({
|
|
440
|
+
top: n.y,
|
|
441
|
+
left: n.x,
|
|
442
|
+
width: n.w,
|
|
443
|
+
height: n.h
|
|
444
|
+
}, () => {
|
|
445
|
+
i.css("pointer-events", "auto"), t.on(T(), function(o) {
|
|
446
|
+
Q.resizeModals(o, this, e);
|
|
447
|
+
}), q.off("layerProResize.eventItem"), Q.vfx(o, !0);
|
|
448
|
+
}), o.removeData("store");
|
|
449
|
+
}
|
|
450
|
+
} else o.data("store", {
|
|
451
|
+
y: o.offset().top,
|
|
452
|
+
x: o.offset().left,
|
|
453
|
+
w: o.width(),
|
|
454
|
+
h: o.height()
|
|
455
|
+
}), o.animate({
|
|
456
|
+
position: "absolute",
|
|
457
|
+
top: -6,
|
|
458
|
+
left: -6,
|
|
459
|
+
right: -6,
|
|
460
|
+
bottom: -6,
|
|
461
|
+
width: q.width() + 12,
|
|
462
|
+
height: q.height() + 12 - 45
|
|
463
|
+
}, () => {
|
|
464
|
+
q.on("layerProResize.eventItem", e => {
|
|
465
|
+
o.css({
|
|
466
|
+
width: q.width() + 12,
|
|
467
|
+
height: q.height() + 12 - 40
|
|
468
|
+
});
|
|
469
|
+
}), i.css("pointer-events", "none"), t.off(T()), Q.vfx(o, !0, !0);
|
|
470
|
+
});
|
|
471
|
+
},
|
|
472
|
+
movable: e => {
|
|
473
|
+
if (!1 === e.movable) return;
|
|
474
|
+
const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup"), i = $(".popup_drag_" + e.id, t), n = $(".popup_body_" + e.id, t);
|
|
475
|
+
t.css("touch-action", "none");
|
|
476
|
+
let p = 0, s = 0, r = 0, c = 0;
|
|
477
|
+
const a = e => {
|
|
478
|
+
e.preventDefault();
|
|
479
|
+
const o = O(e), i = S(e);
|
|
480
|
+
p = r - o, s = c - i, r = o, c = i, Q.checkArea(e)[1] < Q.checkArea(e)[4] && 1 === Math.sign(Q.checkArea(e)[1]) && t.css("top", t.offset().top - s),
|
|
481
|
+
Q.checkArea(e)[0] < Q.checkArea(e)[5] && 1 === Math.sign(Q.checkArea(e)[0]) && t.css("left", t.offset().left - p);
|
|
482
|
+
}, d = e => {
|
|
483
|
+
const i = {
|
|
484
|
+
passive: !1
|
|
485
|
+
};
|
|
486
|
+
document.removeEventListener(E(), a, i), document.removeEventListener(I(), d, i),
|
|
487
|
+
B.delete(o), n.css("pointer-events", "auto"), Q.vfx(t, !0);
|
|
488
|
+
};
|
|
489
|
+
B.set(o, {
|
|
490
|
+
move: a,
|
|
491
|
+
up: d
|
|
492
|
+
});
|
|
493
|
+
i[0].addEventListener(T(), e => {
|
|
494
|
+
e.preventDefault(), n.css("pointer-events", "none"), u(e), Q.vfx(t, !1);
|
|
495
|
+
}, {
|
|
496
|
+
passive: !1
|
|
497
|
+
}), e.maximize && i.on("dblclick", o => {
|
|
498
|
+
layerpro.popup.maximize(e);
|
|
499
|
+
});
|
|
500
|
+
const u = e => {
|
|
501
|
+
r = O(e), c = S(e);
|
|
502
|
+
const o = {
|
|
503
|
+
passive: !1
|
|
504
|
+
};
|
|
505
|
+
document.addEventListener(E(), a, o), document.addEventListener(I(), d, o);
|
|
506
|
+
};
|
|
507
|
+
},
|
|
508
|
+
resizable: e => {
|
|
509
|
+
if (!e.resizable) return;
|
|
510
|
+
const o = String(e.id), t = $(".popup_overflow_" + e.id, "#popup");
|
|
511
|
+
for (let e = 4; e--; ) $(`<div class='resize_${e}'>`, t).appendTo(t).css("touch-action", "none"),
|
|
512
|
+
$(`<div class='resize_corner_${e}'>`, t).appendTo(t).css("touch-action", "none");
|
|
513
|
+
const i = F.get(o) || {};
|
|
514
|
+
i.down = function(o) {
|
|
515
|
+
Q.resizeModals(o, this, e);
|
|
516
|
+
}, F.set(o, i);
|
|
517
|
+
const n = {
|
|
518
|
+
passive: !1
|
|
519
|
+
};
|
|
520
|
+
$("[class^=resize_]").each((o, t) => {
|
|
521
|
+
t.addEventListener(T(), o => {
|
|
522
|
+
o.preventDefault(), Q.resizeModals(o, t, e);
|
|
523
|
+
}, n);
|
|
524
|
+
});
|
|
525
|
+
},
|
|
526
|
+
resizeModals: (e, o, t) => {
|
|
527
|
+
const i = $(o).parent(), n = String(t.id), p = O(e), s = S(e), r = [ p - q.scrollLeft(), s - q.scrollTop() ];
|
|
528
|
+
t.minWidth, J.css("pointer-events", "none"), i.css("pointer-events", "none"), Q.vfx(i, !1);
|
|
529
|
+
const c = e => {
|
|
530
|
+
Q.doRes(e, o);
|
|
531
|
+
}, a = e => {
|
|
532
|
+
Q.stopRes(o);
|
|
533
|
+
}, d = F.get(n) || {};
|
|
534
|
+
d.move = c, d.up = a, F.set(n, d);
|
|
535
|
+
const u = {
|
|
536
|
+
passive: !1
|
|
537
|
+
};
|
|
538
|
+
document.addEventListener(E(), c, u), document.addEventListener(I(), a, u), H = r[0],
|
|
539
|
+
R = r[1], W = i.width(), D = i.height(), X = i.position().left, Y = i.position().top,
|
|
540
|
+
U = Y + D + 1, K = X + W + 1, P = o;
|
|
541
|
+
},
|
|
542
|
+
doRes: (e, o) => {
|
|
543
|
+
dispatchEvent(new Event("layerProResize"));
|
|
544
|
+
const t = $(o), i = t.parent(), n = O(e), p = S(e), s = [ n - q.scrollLeft(), p - q.scrollTop() ];
|
|
545
|
+
if (o === P) {
|
|
546
|
+
let o = W + s[0] - H, n = D + s[1] - R;
|
|
547
|
+
const p = W - s[0] + H, r = D - s[1] + R;
|
|
548
|
+
o <= 0 && (o = 0), n <= 0 && (n = 0), Q.checkArea(e)[1] < Q.checkArea(e)[4] && 1 === Math.sign(Q.checkArea(e)[1]) && t.hasClass("resize_0") && (i.height() <= A && r > A && i.css({
|
|
549
|
+
height: Number(A + 1)
|
|
550
|
+
}), i.height() > A && A <= r && i.css({
|
|
551
|
+
top: Number(U - r),
|
|
552
|
+
height: parseInt(r)
|
|
553
|
+
})), Q.checkArea(e)[0] < Q.checkArea(e)[5] && 1 === Math.sign(Q.checkArea(e)[0]) && t.hasClass("resize_1") && (i.width() >= L && i.css({
|
|
554
|
+
width: Number(o),
|
|
555
|
+
right: Number(X - o)
|
|
556
|
+
}), i.width() <= L && i.css({
|
|
557
|
+
width: Number(L + 1)
|
|
558
|
+
})), Q.checkArea(e)[1] < Q.checkArea(e)[4] && 1 === Math.sign(Q.checkArea(e)[1]) && t.hasClass("resize_2") && (i.height() >= A && i.css({
|
|
559
|
+
height: Number(n)
|
|
560
|
+
}), i.height() <= A && n > A && i.css({
|
|
561
|
+
height: Number(A + 1)
|
|
562
|
+
})), Q.checkArea(e)[0] < Q.checkArea(e)[5] && 1 === Math.sign(Q.checkArea(e)[0]) && t.hasClass("resize_3") && (i.width() <= L && p > L && i.css({
|
|
563
|
+
width: Number(L + 1)
|
|
564
|
+
}), i.width() > L && L <= p && i.css({
|
|
565
|
+
width: parseInt(p),
|
|
566
|
+
left: Number(K - p)
|
|
567
|
+
})), Q.checkArea(e)[1] < Q.checkArea(e)[4] && Q.checkArea(e)[0] < Q.checkArea(e)[5] && 1 === Math.sign(Q.checkArea(e)[0]) && 1 === Math.sign(Q.checkArea(e)[1]) && (t.hasClass("resize_corner_0") && (i.height() >= A && r > A && i.css({
|
|
568
|
+
top: Number(U - r),
|
|
569
|
+
height: parseInt(r)
|
|
570
|
+
}), i.height() <= A && r > A && i.css({
|
|
571
|
+
height: Number(A + 1)
|
|
572
|
+
}), i.width() >= L && p > L && i.css({
|
|
573
|
+
width: parseInt(p),
|
|
574
|
+
left: Number(K - p)
|
|
575
|
+
}), i.width() <= L && p > L && i.css({
|
|
576
|
+
width: Number(L + 1)
|
|
577
|
+
})), t.hasClass("resize_corner_1") && (i.height() >= A && r > A && i.css({
|
|
578
|
+
top: Number(U - r),
|
|
579
|
+
height: Number(r)
|
|
580
|
+
}), i.height() <= A && r > A && i.css({
|
|
581
|
+
height: Number(A + 1)
|
|
582
|
+
}), i.width() >= L && i.css({
|
|
583
|
+
width: Number(o),
|
|
584
|
+
right: Number(X - o)
|
|
585
|
+
}), i.width() <= L && p > L && i.css({
|
|
586
|
+
width: Number(L + 1)
|
|
587
|
+
})), t.hasClass("resize_corner_2") && (i.height() >= A && i.css({
|
|
588
|
+
height: Number(n)
|
|
589
|
+
}), i.height() <= A && n > A && i.css({
|
|
590
|
+
height: Number(A + 1)
|
|
591
|
+
}), i.width() >= L && i.css({
|
|
592
|
+
width: Number(o),
|
|
593
|
+
right: Number(X - o)
|
|
594
|
+
}), i.width() <= L && i.css({
|
|
595
|
+
width: Number(L + 1)
|
|
596
|
+
})), t.hasClass("resize_corner_3") && (i.height() >= A && n > A && i.css({
|
|
597
|
+
height: Number(n)
|
|
598
|
+
}), i.height() <= A && n > A && i.css({
|
|
599
|
+
height: Number(A + 1)
|
|
600
|
+
}), i.width() >= L && p > L && i.css({
|
|
601
|
+
width: Number(p),
|
|
602
|
+
left: Number(K - p)
|
|
603
|
+
}), i.width() <= L && p > L && i.css({
|
|
604
|
+
width: Number(L + 1)
|
|
605
|
+
})));
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
stopRes: e => {
|
|
609
|
+
const o = $(e).parent();
|
|
610
|
+
J.css("pointer-events", "auto"), o.css("pointer-events", "auto"), Q.vfx(o, !0),
|
|
611
|
+
P = !1;
|
|
612
|
+
const t = F.get(String(e));
|
|
613
|
+
if (t) {
|
|
614
|
+
const o = {
|
|
615
|
+
passive: !1
|
|
616
|
+
};
|
|
617
|
+
t.move && document.removeEventListener(E(), t.move, o), t.up && document.removeEventListener(I(), t.up, o),
|
|
618
|
+
F.delete(String(e));
|
|
619
|
+
}
|
|
620
|
+
},
|
|
621
|
+
index: e => {
|
|
622
|
+
const o = $('[class^="popup_overflow_"]', "#popup");
|
|
623
|
+
$('[class^="popup_window_"]', "#popup").removeClass("zHigh"), $('[class^="popup_bar_"]', "#popup").removeClass("popup_bar_selected"),
|
|
624
|
+
$('[class^="icon_"]', "#popup").removeClass("popup_bar_selected"), o.each(function() {
|
|
625
|
+
$(this, "#popup").css("zIndex", $(this, "#popup")[0].style.zIndex - 1);
|
|
626
|
+
}), $(".icon_" + e.id, "#popup").addClass("popup_bar_selected"), $(".popup_overflow_" + e.id, "#popup").css("zIndex", Q.zIndex(o)),
|
|
627
|
+
$(".popup_bar_" + e.id, "#popup").addClass("popup_bar_selected"), $(".popup_window_" + e.id, "#popup").addClass("zHigh");
|
|
628
|
+
},
|
|
629
|
+
zIndex: e => (e.each(function() {
|
|
630
|
+
const e = parseInt($(this, "#popup").css("zIndex"), 10);
|
|
631
|
+
e > j && (j = e);
|
|
632
|
+
}), j + 1)
|
|
633
|
+
}, Object.defineProperty(layerpro, "popup", {
|
|
634
|
+
value: Q,
|
|
635
|
+
writable: !1,
|
|
636
|
+
configurable: !1
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
}), ie = u({
|
|
640
|
+
"core/purge.ts"() {
|
|
641
|
+
oe = e => {
|
|
642
|
+
let o, t, i, n = e.attributes;
|
|
643
|
+
if (n) for (t = n.length, o = 0; o < t; o += 1) i = n[o].name, e[i];
|
|
644
|
+
if (n = e.childNodes, n) for (t = n.length, o = 0; o < t; o += 1) layerpro.purge(e.childNodes[o]);
|
|
645
|
+
}, Object.defineProperty(layerpro, "purge", {
|
|
646
|
+
value: new Proxy(oe, {}),
|
|
647
|
+
writable: !1,
|
|
648
|
+
configurable: !1
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
}), ne = u({
|
|
652
|
+
"core/window.ts"() {
|
|
653
|
+
window.offScreenBuffering = !0, addEventListener("wheel", e => {}, {
|
|
654
|
+
capture: !0,
|
|
655
|
+
passive: !0
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
|
|
660
|
+
globalThis.$ = o, globalThis.jQuery = o;
|
|
661
|
+
|
|
662
|
+
window.layerpro || (Object.defineProperty(window, "layerpro", {
|
|
663
|
+
value: {},
|
|
664
|
+
writable: !1,
|
|
665
|
+
configurable: !1,
|
|
666
|
+
enumerable: !1
|
|
667
|
+
}), h(), G(), te(), ie(), ne(), layerpro.setProps = (e, o) => {
|
|
668
|
+
Reflect.ownKeys(e).forEach(t => {
|
|
669
|
+
const i = Object.getOwnPropertyDescriptor(e, t);
|
|
670
|
+
i && (i.enumerable = o?.enumerable || !1, i.configurable = o?.enumerable || !1,
|
|
671
|
+
i.writable = o?.writable || !1, Object.defineProperty(e, t, i)), "object" == typeof e[t] && null !== e[t] && layerpro.setProps(e[t], o);
|
|
672
|
+
});
|
|
673
|
+
}, layerpro.setProps(layerpro, {
|
|
674
|
+
configurable: !1,
|
|
675
|
+
enumerable: !1,
|
|
676
|
+
writable: !1
|
|
677
|
+
}), Object.freeze(layerpro));
|