Plugin Directory

Changeset 2995127

Timestamp:
11/13/2023 12:12:02 PM (9 months ago)
Author:
ediamin
Message:

Release version 2.4.1

Location:
wp-console/trunk
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • wp-console/trunk/assets/js/wp-console.asset.php

    r2762190 r2995127  
    1 <?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '3129e04a459e2803dba5');
     1<?php return array('dependencies' => array('jquery', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n'), 'version' => '');
  • wp-console/trunk/assets/js/wp-console.js

    r2762190 r2995127  
    11!function(){var e,t,n={907:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"bug",icon:[512,512,[],"f188","M352 96V99.56C352 115.3 339.3 128 323.6 128H188.4C172.7 128 159.1 115.3 159.1 99.56V96C159.1 42.98 202.1 0 255.1 0C309 0 352 42.98 352 96zM41.37 105.4C53.87 92.88 74.13 92.88 86.63 105.4L150.6 169.4C151.3 170 151.9 170.7 152.5 171.4C166.8 164.1 182.9 160 199.1 160H312C329.1 160 345.2 164.1 359.5 171.4C360.1 170.7 360.7 170 361.4 169.4L425.4 105.4C437.9 92.88 458.1 92.88 470.6 105.4C483.1 117.9 483.1 138.1 470.6 150.6L406.6 214.6C405.1 215.3 405.3 215.9 404.6 216.5C410.7 228.5 414.6 241.9 415.7 256H480C497.7 256 512 270.3 512 288C512 305.7 497.7 320 480 320H416C416 344.6 410.5 367.8 400.6 388.6C402.7 389.9 404.8 391.5 406.6 393.4L470.6 457.4C483.1 469.9 483.1 490.1 470.6 502.6C458.1 515.1 437.9 515.1 425.4 502.6L362.3 439.6C337.8 461.4 306.5 475.8 272 479.2V240C272 231.2 264.8 224 255.1 224C247.2 224 239.1 231.2 239.1 240V479.2C205.5 475.8 174.2 461.4 149.7 439.6L86.63 502.6C74.13 515.1 53.87 515.1 41.37 502.6C28.88 490.1 28.88 469.9 41.37 457.4L105.4 393.4C107.2 391.5 109.3 389.9 111.4 388.6C101.5 367.8 96 344.6 96 320H32C14.33 320 0 305.7 0 288C0 270.3 14.33 256 32 256H96.3C97.38 241.9 101.3 228.5 107.4 216.5C106.7 215.9 106 215.3 105.4 214.6L41.37 150.6C28.88 138.1 28.88 117.9 41.37 105.4H41.37z"]},t.QL=t.DF},811:function(e,t,n){"use strict";var o=n(686);t.DF={prefix:o.prefix,iconName:o.iconName,icon:[o.width,o.height,o.aliases,o.unicode,o.svgPathData]},t.f8=t.DF,o.prefix,o.iconName,o.width,o.height,o.aliases,o.unicode,o.svgPathData,o.aliases},686:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="circle-check",o=[61533,"check-circle"],s="f058",i="M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM371.8 211.8C382.7 200.9 382.7 183.1 371.8 172.2C360.9 161.3 343.1 161.3 332.2 172.2L224 280.4L179.8 236.2C168.9 225.3 151.1 225.3 140.2 236.2C129.3 247.1 129.3 264.9 140.2 275.8L204.2 339.8C215.1 350.7 232.9 350.7 243.8 339.8L371.8 211.8z";t.definition={prefix:"fas",iconName:n,icon:[512,512,o,s,i]},t.faCircleCheck=t.definition,t.prefix="fas",t.iconName=n,t.width=512,t.height=512,t.ligatures=o,t.unicode=s,t.svgPathData=i,t.aliases=o},982:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"clone",icon:[512,512,[],"f24d","M0 224C0 188.7 28.65 160 64 160H128V288C128 341 170.1 384 224 384H352V448C352 483.3 323.3 512 288 512H64C28.65 512 0 483.3 0 448V224zM224 352C188.7 352 160 323.3 160 288V64C160 28.65 188.7 0 224 0H448C483.3 0 512 28.65 512 64V288C512 323.3 483.3 352 448 352H224z"]},t.WM=t.DF},755:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"eraser",icon:[512,512,[],"f12d","M480 416C497.7 416 512 430.3 512 448C512 465.7 497.7 480 480 480H150.6C133.7 480 117.4 473.3 105.4 461.3L25.37 381.3C.3786 356.3 .3786 315.7 25.37 290.7L258.7 57.37C283.7 32.38 324.3 32.38 349.3 57.37L486.6 194.7C511.6 219.7 511.6 260.3 486.6 285.3L355.9 416H480zM265.4 416L332.7 348.7L195.3 211.3L70.63 336L150.6 416L265.4 416z"]},t.xf=t.DF},753:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M361 215C375.3 223.8 384 239.3 384 256C384 272.7 375.3 288.2 361 296.1L73.03 472.1C58.21 482 39.66 482.4 24.52 473.9C9.377 465.4 0 449.4 0 432V80C0 62.64 9.377 46.63 24.52 38.13C39.66 29.64 58.21 29.99 73.03 39.04L361 215z"]},t.zc=t.DF},405:function(e,t){"use strict";t.DF={prefix:"fas",iconName:"terminal",icon:[576,512,[],"f120","M9.372 86.63C-3.124 74.13-3.124 53.87 9.372 41.37C21.87 28.88 42.13 28.88 54.63 41.37L246.6 233.4C259.1 245.9 259.1 266.1 246.6 278.6L54.63 470.6C42.13 483.1 21.87 483.1 9.372 470.6C-3.124 458.1-3.124 437.9 9.372 425.4L178.7 256L9.372 86.63zM544 416C561.7 416 576 430.3 576 448C576 465.7 561.7 480 544 480H256C238.3 480 224 465.7 224 448C224 430.3 238.3 416 256 416H544z"]},t.Jw=t.DF},545:function(e,t,n){"use strict";var o=n(709);t.DF={prefix:o.prefix,iconName:o.iconName,icon:[o.width,o.height,o.aliases,o.unicode,o.svgPathData]},t.NB=t.DF,o.prefix,o.iconName,o.width,o.height,o.aliases,o.unicode,o.svgPathData,o.aliases},709:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="xmark",o=[128473,10005,10006,10060,215,"close","multiply","remove","times"],s="f00d",i="M310.6 361.4c12.5 12.5 12.5 32.75 0 45.25C304.4 412.9 296.2 416 288 416s-16.38-3.125-22.62-9.375L160 301.3L54.63 406.6C48.38 412.9 40.19 416 32 416S15.63 412.9 9.375 406.6c-12.5-12.5-12.5-32.75 0-45.25l105.4-105.4L9.375 150.6c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L160 210.8l105.4-105.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-105.4 105.4L310.6 361.4z";t.definition={prefix:"fas",iconName:n,icon:[320,512,o,s,i]},t.faXmark=t.definition,t.prefix="fas",t.iconName=n,t.width=320,t.height=512,t.ligatures=o,t.unicode=s,t.svgPathData=i,t.aliases=o},6:function(e,t,n){"use strict";var o=n(989),s=n.n(o);t.Z=async(e,t)=>{const{setNotice:n,setOutput:o,setDump:i,setExecutionTime:c,setErrorTrace:r,resetConsoleResponses:l,startExecuting:a,finishExecuting:u}=t;e=e.replace(/^\<\?php/,"//").trim(),a(l),n("");try{const t=await s()({path:"/wp-console/v1/console",method:"post",data:{input:e},headers:{"X-WP-Console":!0}});t.output&&o(t.output),t.dump&&i(t.dump),t.execution_time&&c(t.execution_time)}catch(e){var p;e.message&&n(e.message),null!=e&&null!==(p=e.data)&&void 0!==p&&p.trace&&r(e.data.trace)}finally{u()}}},654:function(e,t,n){"use strict";var o=n(989),s=n.n(o);t.Z=async e=>{const{setNotice:t,startFetchingLog:n,finishFetchingLog:o,setLog:i,setExtraInfo:c}=e;n(),t(""),i(""),c({});try{const e=await s()({path:"/wp-console/v1/debug-log",method:"get",parse:!1,headers:{"X-WP-Console":!0}}),t=await e.json(),n=JSON.parse(e.headers.get("X-WP-Console-Debug-Log-Extra-Info"));i(t.trim()),c(n)}catch(e){const n=await e.json();n.message&&t(n.message),i("API_ERROR")}finally{o()}}},543:function(e,t,n){"use strict";n.d(t,{AI:function(){return h},Bu:function(){return S},Ch:function(){return m},JF:function(){return E},KX:function(){return v},W7:function(){return w},_u:function(){return _},ey:function(){return f},fn:function(){return y},ox:function(){return C},qv:function(){return b}});var o=n(307),s=n(609),i=n(405),c=n(907),r=n(545),l=n(753),a=n(755),u=n(982),p=n(811);function d(e){const t={width:`${e.width||13}px`,height:`${e.height||13}px`};return e.top&&(t.position="relative",t.top=`${e.top}px`),t}const g=e=>(0,o.createElement)(s.SVG,{className:`wp-console-icon icon-${e.iconName}`,xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${e.icon[0]} ${e.icon[1]}`,style:d(e)},(0,o.createElement)(s.Path,{d:e.icon[4]})),m=e=>g({...e,...i.Jw}),f=e=>g({...e,...c.QL}),h=e=>g({...e,...r.NB}),E=e=>g({...e,...l.zc}),w=e=>g({...e,...a.xf}),C=e=>g({...e,...u.WM}),S=e=>g({...e,...p.f8}),v=e=>g({...e,iconName:"split-window-horizontal",icon:["468.062","468.062",null,null,"M431.379,0.222h-394.7C16.456,0.222,0,16.671,0,36.895v394.268c0,20.221,16.456,36.677,36.679,36.677h394.7 c20.228,0,36.683-16.456,36.683-36.677V36.895C468.062,16.665,451.606,0.222,431.379,0.222z M406.519,41.966 c8.689,0,15.723,7.04,15.723,15.72c0,8.683-7.033,15.717-15.723,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.006,397.83,41.966,406.519,41.966z M350.189,41.966c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.006,341.506,41.966,350.189,41.966z M41.913,112.426h184.055v313.495H41.913V112.426z M426.148,425.921H242.104V112.426h184.044V425.921z"]}),_=e=>g({...e,iconName:"split-window-vertical",icon:["468.067","468.067",null,null,"M431.38,0.225H36.685C16.458,0.225,0,16.674,0,36.898v394.268c0,20.221,16.458,36.677,36.685,36.677H431.38 c20.232,0,36.688-16.456,36.688-36.677V36.898C468.062,16.668,451.606,0.225,431.38,0.225z M406.519,41.969 c8.678,0,15.711,7.04,15.711,15.72c0,8.683-7.033,15.717-15.711,15.717c-8.688,0-15.723-7.04-15.723-15.717 C390.796,49.009,397.83,41.969,406.519,41.969z M350.189,41.969c8.688,0,15.723,7.04,15.723,15.72 c0,8.683-7.034,15.717-15.723,15.717c-8.684,0-15.711-7.04-15.711-15.717C334.479,49.009,341.513,41.969,350.189,41.969z M426.143,112.429v143.519H41.919V112.429H426.143z M41.919,425.924V272.09h384.224v153.84H41.919V425.924z"]}),b=e=>(0,o.createElement)(s.SVG,{className:"wp-console-icon icon-curly-braces",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1652 1478",style:d(e)},(0,o.createElement)(s.G,{transform:"translate(0.000000,1478.000000) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},(0,o.createElement)(s.Path,{d:"M4350 14769 c-349 -13 -704 -56 -895 -108 -584 -159 -1003 -401 -1270 -731 -251 -310 -377 -667 -439 -1235 -47 -435 -61 -790 -71 -1780 -9 -935 -35 -1173 -171 -1585 -96 -288 -273 -560 -464 -713 -209 -167 -516 -262 -943 -293 l-97 -7 2 -921 3 -920 45 -3 c107 -8 304 -36 410 -59 313 -68 520 -171 684 -338 160 -165 284 -390 385 -696 102 -314 137 -738 146 -1800 9 -985 36 -1446 106 -1805 93 -475 302 -855 631 -1142 544 -475 1170 -632 2524 -633 l312 0 6 22 c8 30 8 1792 0 1812 -5 14 -30 16 -174 16 -278 0 -596 27 -766 66 -229 52 -424 186 -513 353 -84 158 -105 308 -116 841 -7 306 -21 732 -35 1040 -19 415 -30 645 -35 690 -65 621 -138 977 -270 1315 -188 480 -520 870 -997 1170 l-108 67 33 22 c626 427 865 702 1080 1241 154 387 235 843 267 1495 17 351 20 412 26 515 15 291 35 815 39 1070 11 542 40 709 152 872 82 120 242 229 391 267 150 38 497 66 828 66 l191 0 7 46 c8 60 8 1757 0 1778 -5 14 -45 16 -353 14 -190 0 -438 -5 -551 -9z"}),(0,o.createElement)(s.Path,{d:"M11260 13862 l0 -922 173 0 c406 -1 756 -31 907 -80 150 -48 329 -188 383 -300 72 -150 99 -388 112 -1005 12 -556 44 -1306 71 -1650 48 -625 151 -1051 348 -1450 166 -333 361 -569 665 -805 91 -70 136 -102 300 -215 l63 -44 -47 -28 c-437 -256 -741 -570 -952 -984 -152 -296 -207 -448 -267 -729 -84 -397 -112 -711 -146 -1615 -5 -148 -12 -326 -15 -395 -3 -69 -10 -307 -15 -530 -10 -432 -21 -553 -66 -706 -30 -104 -43 -132 -102 -209 -100 -133 -249 -224 -450 -276 -154 -39 -495 -69 -794 -69 l-168 0 0 -925 0 -925 368 1 c935 3 1371 62 1845 250 186 74 286 125 457 233 294 185 484 407 632 741 139 314 201 634 242 1245 23 351 25 413 31 888 12 1029 19 1251 45 1492 34 302 118 615 224 829 144 292 339 511 553 619 116 59 333 120 503 141 52 7 122 16 156 22 33 5 83 9 110 9 27 0 59 3 72 6 l22 6 0 919 0 919 -43 0 c-66 0 -281 27 -397 50 -295 59 -592 205 -740 366 -147 159 -269 388 -359 676 -62 200 -101 475 -116 828 -4 80 -8 163 -10 185 -2 22 -7 261 -10 530 -10 960 -17 1184 -45 1510 -44 498 -104 769 -240 1070 -181 403 -517 743 -930 942 -434 210 -917 286 -1902 300 l-468 6 0 -921z"}),(0,o.createElement)(s.Path,{d:"M7150 10410 l0 -1080 1080 2 1080 3 0 870 c0 479 0 963 0 1078 l0 207 -1080 0 -1080 0 0 -1080z"}),(0,o.createElement)(s.Path,{d:"M7157 5473 c-4 -3 -7 -489 -7 -1080 l1 -1073 447 -1 c246 0 480 0 521 1 l74 1 -6 -138 c-16 -368 -129 -705 -312 -932 -130 -160 -296 -285 -540 -405 -93 -46 -212 -99 -263 -116 -104 -37 -102 -32 -57 -120 31 -61 195 -402 195 -406 0 -2 39 -83 86 -181 47 -98 90 -188 95 -200 8 -21 10 -22 46 -9 189 69 487 216 672 331 75 47 289 205 346 255 163 144 327 330 427 485 73 113 174 311 222 435 98 259 175 701 201 1158 4 73 8 1596 5 1989 0 10 -223 13 -1073 13 -591 0 -1077 -3 -1080 -7z"}))),y=e=>(0,o.createElement)(s.SVG,{className:"wp-console-icon icon-execution-time",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",style:d(e)},(0,o.createElement)(s.G,{transform:"translate(0.000000,512) scale(0.100000,-0.100000)",fill:"#000000",stroke:"none"},(0,o.createElement)(s.Path,{d:"M1987 4795 c-129 -45 -168 -212 -72 -306 48 -47 85 -57 213 -58 l112 -1 0 -180 0 -180 -24 0 c-13 0 -79 -14 -146 -31 -711 -179 -1243 -733 -1396 -1454 -35 -164 -45 -473 -20 -645 160 -1102 1216 -1827 2299 -1578 l87 20 0 254 c0 140 -1 254 -3 254 -1 0 -29 -9 -61 -20 -280 -99 -622 -98 -906 2 -213 76 -393 192 -553 357 -194 201 -313 424 -373 702 -27 120 -27 428 0 549 40 183 115 360 223 523 66 100 268 299 373 368 162 107 329 177 510 216 66 14 129 18 285 18 185 0 208 -2 309 -28 344 -87 619 -270 823 -547 194 -264 295 -624 264 -940 -6 -62 -10 -114 -8 -116 17 -14 417 -254 425 -254 10 0 33 90 54 220 18 112 15 433 -6 555 -34 202 -80 349 -162 523 -189 401 -536 739 -942 917 -122 54 -297 108 -404 126 l-78 13 0 177 0 177 128 3 c116 4 132 6 164 28 125 86 111 270 -27 332 -37 17 -76 19 -545 18 -402 0 -513 -3 -543 -14z"}),(0,o.createElement)(s.Path,{d:"M2400 3228 c-49 -26 -50 -33 -50 -503 l-1 -440 -379 -254 c-365 -246 -400 -273 -400 -319 0 -26 128 -230 152 -243 11 -6 34 -9 52 -7 45 5 934 602 947 636 6 15 8 238 7 558 l-3 533 -23 23 c-21 21 -33 23 -150 26 -89 2 -134 -1 -152 -10z"}),(0,o.createElement)(s.Path,{d:"M3220 1420 c0 -614 3 -771 13 -767 31 13 1241 755 1244 763 2 7 -1209 756 -1249 772 -4 2 -8 -344 -8 -768z"})))},847:function(e,t,n){"use strict";var o=n(333),s=n(818);t.Z=function(e){let{select:t=[],dispatch:n=[]}=e;return(0,o.compose)((0,s.withSelect)((e=>{const n={},o=e("wp-console");for(let e=0;e<t.length;e++){const s=t[e];n[s]=o[s]()}return n})),(0,s.withDispatch)((e=>{const t={},o=e("wp-console");for(let e=0;e<n.length;e++)t[n[e]]=o[n[e]];return t})))}},846:function(e){var t,n;t=this,n=function(e){var t,n,o,s,i,c=/"|(\/\*)|(\*\/)|(\/\/)|\n|\r|\[|]/g,r=!1,l=!1,a=!1,u=[],p=0,d=0;for(c.lastIndex=0;t=c.exec(e);)o=RegExp.leftContext,s=RegExp.rightContext,l||a||(n=o.substring(d),r||(n=n.replace(/(\n|\r|\s)*/g,"")),u[p++]=n),i=d,d=c.lastIndex,'"'!==t[0]||l||a?"/*"!==t[0]||r||l||a?"*/"!==t[0]||r||!l||a?"//"!==t[0]||r||l||a?"\n"!==t[0]&&"\r"!==t[0]||r||l||!a?l||a||/\n|\r|\s/.test(t[0])||(u[p++]=t[0]):a=!1:a=!0:l=!1:l=!0:(o.lastIndex=i,n=o.match(/(\\)*$/),r&&n&&n[0].length%2!=0||(r=!r),d--,s=e.substring(d));return u[p++]=s,u.join("")},e.exports?(e.exports=n,JSON.minify=n):(void 0!==t.JSON&&t.JSON||(t.JSON={}),t.JSON.minify=n)},989:function(e){"use strict";e.exports=window.wp.apiFetch},609:function(e){"use strict";e.exports=window.wp.components},333:function(e){"use strict";e.exports=window.wp.compose},818:function(e){"use strict";e.exports=window.wp.data},307:function(e){"use strict";e.exports=window.wp.element},736:function(e){"use strict";e.exports=window.wp.i18n}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var i=o[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=n,s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.f={},s.e=function(e){return Promise.all(Object.keys(s.f).reduce((function(t,n){return s.f[n](e,t),t}),[]))},s.u=function(e){return"chunks/"+{5:"7eb22a880ef433b6dc70",747:"e5d14fe9b3f7b8ca121f"}[e]+".js"},s.miniCssF=function(e){},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="wp-console:",s.l=function(n,o,i,c){if(e[n])e[n].push(o);else{var r,l;if(void 0!==i)for(var a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var p=a[u];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+i){r=p;break}}r||(l=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,s.nc&&r.setAttribute("nonce",s.nc),r.setAttribute("data-webpack",t+i),r.src=n),e[n]=[o];var d=function(t,o){r.onerror=r.onload=null,clearTimeout(g);var s=e[n];if(delete e[n],r.parentNode&&r.parentNode.removeChild(r),s&&s.forEach((function(e){return e(o)})),t)return t(o)},g=setTimeout(d.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=d.bind(null,r.onerror),r.onload=d.bind(null,r.onload),l&&document.head.appendChild(r)}},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e}(),function(){var e={220:0};s.f.j=function(t,n){var o=s.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise((function(n,s){o=e[t]=[n,s]}));n.push(o[2]=i);var c=s.p+s.u(t),r=new Error;s.l(c,(function(n){if(s.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;r.message="Loading chunk "+t+" failed.\n("+i+": "+c+")",r.name="ChunkLoadError",r.type=i,r.request=c,o[1](r)}}),"chunk-"+t,t)}};var t=function(t,n){var o,i,c=n[0],r=n[1],l=n[2],a=0;if(c.some((function(t){return 0!==e[t]}))){for(o in r)s.o(r,o)&&(s.m[o]=r[o]);l&&l(s)}for(t&&t(n);a<c.length;a++)i=c[a],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.wpConsoleWebpack=self.wpConsoleWebpack||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}(),function(){"use strict";var e=s(307),t=window.jQuery,n=s.n(t),o=window.wp.hooks,i=s(818),c=s(736),r=s(543),l=s(609),a=s(847),u=s(6);let p=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");var d=s(846),g=s.n(d);let m=null,f=[];var h=(0,a.Z)({select:["userSettings"],dispatch:["setUserSettings","setNotice"]})((t=>{let{closeManager:n,setCanCloseManager:o,userSettings:s,setUserSettings:i,setNotice:a}=t;const[u,d]=(0,e.useState)(""),[h,E]=(0,e.useState)(!1),[w,C]=(0,e.useState)(!1);(0,e.useEffect)((()=>{var e;let t={};return Array.isArray(null==s||null===(e=s.console)||void 0===e?void 0:e.snippets)&&s.console.snippets.length?(f=s.console.snippets,t=f[0]):(t={id:p(),title:(0,c.__)("Custom Snippets","wp-console"),snippets:"{}"},f=[t]),S(t),d(t.id),o(!0),()=>{m=null,f=[]}}),[]);const S=e=>{m=wpConsoleAce.edit("wp-console-snippet-manager-main"),m.setTheme("ace/theme/xcode"),m.session.setMode("ace/mode/json"),m.setOptions({enableLiveAutocompletion:!0,tabSize:2}),m.container.style.lineHeight=1.6,m.renderer.updateFontSize(),m.setShowPrintMargin(!1),m.session.setValue(JSON.stringify(JSON.parse(e.snippets),null,2)),m.focus()};return(0,e.createElement)("div",{id:"wp-console-snippet-manager",className:h?"is-saving-snippets":""},(0,e.createElement)("div",{id:"wp-console-snippet-manager-main"}),(0,e.createElement)("div",{id:"wp-console-snippet-manager-footer"},(0,e.createElement)("div",{id:"wp-conoele-snippet-manager-update-message"},w&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(r.Bu,null)," ",(0,c.__)("Snippets updated","wp-console"))),(0,e.createElement)("div",{id:"wp-console-snippet-manager-buttons"},(0,e.createElement)(l.Button,{onClick:()=>n(),isTertiary:!0,disabled:h},(0,c.__)("Cancel","wp-console")),(0,e.createElement)(l.Button,{onClick:()=>(async()=>{if((()=>{const e=[];return m.session.getAnnotations().forEach((t=>{"error"===t.type&&e.push((0,c.sprintf)(// translators: %1$s: error message, %2$s: line number, %3$s: column number
    2 (0,c.__)("%1$s at line %2$d, column %3$d.","wp-console"),t.text,t.row+1,t.column+1))})),e.length&&a(e.join(" ")),e.length})())return;a(""),o(!1),E(!0);const e=f.findIndex((e=>e.id===u));f[e].snippets=g()(m.session.getValue())||"{}";const t=await i("console","snippets",f,a);await t.response&&(C(!0),setTimeout((()=>{m&&C(!1)}),4e3)),E(!1),o(!0)})(),isPrimary:!0,disabled:h,isBusy:h},h?(0,c.__)("Saving Snippets","wp-console"):(0,c.__)("Save Snippets","wp-console")))))})),E=(0,a.Z)({select:["userSettings","code","isExecuting"],dispatch:["setUserSettings","setNotice","setOutput","setDump","setErrorTrace","resetConsoleResponses","startExecuting","finishExecuting","setExecutionTime"]})((t=>{const[n,o]=(0,e.useState)(!1),[s,i]=(0,e.useState)(!0),{userSettings:a,code:p,isExecuting:d,setUserSettings:g,setNotice:m}=t,f=a.console.window_split,E="horizontal"===f?r.KX:r._u;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"list-inline"},(0,e.createElement)("li",{id:"wp-console-console-snippets-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:()=>o(!0)},(0,e.createElement)(r.qv,null)," ",(0,c.__)("Snippets","wp-console"))),(0,e.createElement)("li",{id:"wp-console-console-split-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:()=>(async()=>{const e="horizontal"===f?"vertical":"horizontal";await g("console","window_split",e,m),wpConsole.hooks.doAction("wp_console_console_toggle_window_split",e)})()},(0,e.createElement)(E,null)," ",(0,c.__)("Split","wp-console"))),(0,e.createElement)("li",{id:"wp-console-console-run-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:d,disabled:d,onClick:()=>(0,u.Z)(p,t)},(0,e.createElement)(r.JF,null)," ",(0,c.__)("Run","wp-console")))),n&&(0,e.createElement)(l.Modal,{className:"wp-console-snippet-manager-modal",title:(0,c.__)("WP Console Snippets","wp-console"),onRequestClose:()=>s&&o(!1)},(0,e.createElement)(h,{closeManager:()=>s&&o(!1),setCanCloseManager:i})))}));const w=(0,e.lazy)((()=>s.e(747).then(s.bind(s,747))));var C={id:"console",name:(0,c.__)("Console","wp-console"),icon:(0,e.createElement)(r.Ch,{width:"16",height:"16"}),PanelButtons:E,Panel:w},S=s(654),v=s(989),_=s.n(v),b=(0,a.Z)({select:["clearingLog","fetchingLog"],dispatch:["setNotice","startFetchingLog","finishFetchingLog","setLog","setExtraInfo","startClearingLog","finishClearingLog"]})((t=>{const{clearingLog:n,fetchingLog:o}=t,s=n?`${(0,c.__)("Clearing Log","wp-console")}...`:(0,c.__)("Clear Log","wp-console"),i=o?`${(0,c.__)("Fetching Log","wp-console")}...`:(0,c.__)("Fetch Log","wp-console");return(0,e.createElement)("ul",{className:"list-inline"},(0,e.createElement)("li",{className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:n,disabled:n||o,onClick:()=>(async e=>{const{setNotice:t,startClearingLog:n,finishClearingLog:o,setLog:s,setExtraInfo:i}=e;n(),t(""),s(""),i({});try{await _()({path:"/wp-console/v1/debug-log",method:"delete",headers:{"X-WP-Console":!0}}),t((0,c.__)("Cleared debug.log.","wp-console"),"success")}catch(e){s("API_ERROR"),e.message&&t(e.message)}finally{o()}})(t)},(0,e.createElement)(r.W7,null)," ",s)),(0,e.createElement)("li",{className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:o,disabled:o||n,onClick:()=>(0,S.Z)(t)},(0,e.createElement)(r.ey,null)," ",i)))}));const y=(0,e.lazy)((()=>s.e(5).then(s.bind(s,5))));var N={id:"debug-log",name:(0,c.__)("Debug Log","wp-console"),icon:(0,e.createElement)(r.ey,{width:"16",height:"16"}),PanelButtons:b,Panel:y},L=async function(e,t,n,o){try{const o=await _()({path:"/wp-console/v1/user-settings",method:"post",data:{[e]:{[t]:n}},headers:{"X-WP-Console":!0}});return wpConsole.hooks.doAction(`wp_console_after_save_user_settings_${e}_${t}`,n,o),o}catch(e){e.message&&o(e.message)}return null};const T={userSettings:wpConsole.user_settings,panels:[C,N],activePanelId:"console",notice:{message:"",type:"error"}},x={setUserSettings:(e,t,n,o)=>({type:"SET_USER_SETTINGS",section:e,option:t,value:n,response:L(e,t,n,o)}),setActivePanelId:e=>({type:"SET_ACTIVE_PANEL",activePanelId:e}),setNotice(e){return{type:"SET_NOTICE",notice:{message:e,type:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}}}},I={actions:x,reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_USER_SETTINGS":e={...e,userSettings:{...e.userSettings,[t.section]:{...e.userSettings[t.section],[t.option]:t.value}}};break;case"SET_ACTIVE_PANEL":e={...e,activePanelId:t.activePanelId};break;case"SET_NOTICE":e={...e,notice:t.notice}}return e},selectors:{userSettings(e){let{globalStore:t}=e;return t.userSettings},panels(e){let{globalStore:t}=e;return t.panels},activePanelId(e){let{globalStore:t}=e;return t.activePanelId},activePanel(e){let{globalStore:t}=e;return t.panels.filter((e=>e.id===t.activePanelId))[0]},notice(e){let{globalStore:t}=e;return t.notice}}},P={code:"<?php\n",output:null,dump:null,errorTrace:null,isExecuting:!1,settings:{horizontalSplit:!1},keyBindings:{execCode:{win:"Ctrl-Enter",mac:"Cmd-Enter"}},executionTime:null},O={actions:{updateCode:e=>({type:"UPDATE_CODE",code:e}),setOutput:e=>({type:"SET_OUTPUT",output:e}),setDump:e=>({type:"SET_DUMP",dump:e}),setErrorTrace:e=>({type:"SET_ERROR_TRACE",errorTrace:e}),resetConsoleResponses:()=>({type:"RESET_CONSOLE_RESPONSES"}),startExecuting:e=>(e(),{type:"START_EXECUTING"}),finishExecuting:()=>({type:"FINISH_EXECUTING"}),toggleHorizontalSplit:()=>({type:"TOGGLE_HORIZONTAL_SPLIT"}),setExecutionTime:e=>({type:"SET_EXECUTION_TIME",time:e})},reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CODE":e={...e,code:t.code};break;case"SET_OUTPUT":e={...e,output:t.output};break;case"SET_DUMP":e={...e,dump:t.dump};break;case"SET_ERROR_TRACE":e={...e,errorTrace:t.errorTrace};break;case"RESET_CONSOLE_RESPONSES":e={...e,output:P.output,dump:P.dump,errorTrace:P.errorTrace};break;case"START_EXECUTING":e={...e,isExecuting:!0};break;case"FINISH_EXECUTING":e={...e,isExecuting:!1};break;case"TOGGLE_HORIZONTAL_SPLIT":e={...e,settings:{...e.settings,horizontalSplit:!e.settings.horizontalSplit}};break;case"SET_EXECUTION_TIME":e={...e,executionTime:t.time}}return e},selectors:{code(e){let{consoleStore:t}=e;return t.code},output(e){let{consoleStore:t}=e;return t.output},dump(e){let{consoleStore:t}=e;return t.dump},errorTrace(e){let{consoleStore:t}=e;return t.errorTrace},isExecuting(e){let{consoleStore:t}=e;return t.isExecuting},horizontalSplit(e){let{consoleStore:t}=e;return t.settings.horizontalSplit},keyBindings(e){let{consoleStore:t}=e;return t.keyBindings},getExecutionTime(e){let{consoleStore:t}=e;return t.executionTime}}},k={clearingLog:!1,fetchingLog:!1,log:null,extraInfo:{}},M={actions:{startClearingLog:()=>({type:"START_CLEARING_LOG"}),finishClearingLog:()=>({type:"FINISH_CLEARING_LOG"}),startFetchingLog:()=>({type:"START_FETCHING_LOG"}),finishFetchingLog:()=>({type:"FINISH_FETCHING_LOG"}),setLog:e=>({type:"SET_LOG",log:e}),setExtraInfo:e=>({type:"SET_EXTRA_INFO",extraInfo:e})},reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_CLEARING_LOG":e={...e,clearingLog:!0};break;case"FINISH_CLEARING_LOG":e={...e,clearingLog:!1};break;case"START_FETCHING_LOG":e={...e,fetchingLog:!0};break;case"FINISH_FETCHING_LOG":e={...e,fetchingLog:!1};break;case"SET_LOG":e={...e,log:t.log};break;case"SET_EXTRA_INFO":e={...e,extraInfo:t.extraInfo}}return e},selectors:{clearingLog(e){let{debugLogStore:t}=e;return t.clearingLog},fetchingLog(e){let{debugLogStore:t}=e;return t.fetchingLog},log(e){let{debugLogStore:t}=e;return t.log},extraInfo(e){let{debugLogStore:t}=e;return t.extraInfo}}},R={actions:{...I.actions,...O.actions,...M.actions},reducer:(0,i.combineReducers)({globalStore:I.reducer,consoleStore:O.reducer,debugLogStore:M.reducer}),selectors:{...I.selectors,...O.selectors,...M.selectors}};(0,i.registerStore)("wp-console",R);var z=(0,a.Z)({select:["panels","activePanel","activePanelId"],dispatch:["setActivePanelId","resetConsoleResponses"]})((t=>{let{panels:o,activePanel:s,activePanelId:i,setActivePanelId:a,resetConsoleResponses:u}=t;const p=s.PanelButtons;return(0,e.createElement)("nav",{id:"wp-console-navbar",className:"display-flex"},(0,e.createElement)("div",{className:"wp-console-navbar-left display-flex"},(0,e.createElement)("h3",{id:"wp-console-logo",className:"align-self-center"},(0,c.__)("WP Console","wp-console")),(0,e.createElement)("ul",{id:"wp-console-panel-names",className:"display-flex"},o.map((t=>(0,e.createElement)("li",{key:t.id,role:"presentation",className:i===t.id?"active":"",onClick:()=>a(t.id)},t.icon," ",t.name))))),(0,e.createElement)("div",{className:"wp-console-navbar-right display-flex"},(0,e.createElement)("div",{className:"wp-console-panel-buttons align-self-center"},(0,e.createElement)(p,null)),(0,e.createElement)("div",{className:"wp-console-nav-buttons align-self-center"},(0,e.createElement)(l.Button,{className:"button-close",onClick:e=>((e,t)=>{e.preventDefault(),n()("body").removeClass("wp-console-active"),n()("#wp-console").removeClass("active").trigger("wp-console:close"),t()})(e,u)},(0,e.createElement)(r.AI,null)))))})),F=(0,a.Z)({select:["notice"],dispatch:["setNotice"]})((t=>{let{notice:n,setNotice:o}=t;return(0,e.createPortal)((0,e.createElement)("div",{id:"wp-console-app-notice"},(0,e.createElement)(l.Notice,{status:n.type,onRemove:()=>o("")},n.message)),document.body)})),A=(0,a.Z)({select:["notice","activePanel"]})((t=>{let{notice:n,activePanel:o}=t;const s=o.Panel,i=(0,e.createElement)("div",{className:"wp-console-spinner"},(0,e.createElement)(l.Spinner,null));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(z,null),(0,e.createElement)("div",{id:"wp-console-panel"},(0,e.createElement)(e.Suspense,{fallback:i},(0,e.createElement)(s,null))),n.message&&(0,e.createElement)(F,null))}));s.p=`${wpConsole.url.assests}/js/`,wpConsole.hooks=(0,o.createHooks)(),n()(document).ready((function(){n()("#wp-console").length&&n()(".ab-item","#wp-admin-bar-wp-console").on("click",(t=>{t.preventDefault(),n()("body").addClass("wp-console-active"),n()("#wp-console").addClass("active"),n()("#wp-console").children().length||(0,e.render)((0,e.createElement)(A,null),document.getElementById("wp-console"))}))}))}()}();
     2(0,c.__)("%1$s at line %2$d, column %3$d.","wp-console"),t.text,t.row+1,t.column+1))})),e.length&&a(e.join(" ")),e.length})())return;a(""),o(!1),E(!0);const e=f.findIndex((e=>e.id===u));f[e].snippets=g()(m.session.getValue())||"{}";const t=await i("console","snippets",f,a);await t.response&&(C(!0),setTimeout((()=>{m&&C(!1)}),4e3)),E(!1),o(!0)})(),isPrimary:!0,disabled:h,isBusy:h},h?(0,c.__)("Saving Snippets","wp-console"):(0,c.__)("Save Snippets","wp-console")))))})),E=(0,a.Z)({select:["userSettings","code","isExecuting"],dispatch:["setUserSettings","setNotice","setOutput","setDump","setErrorTrace","resetConsoleResponses","startExecuting","finishExecuting","setExecutionTime"]})((t=>{const[n,o]=(0,e.useState)(!1),[s,i]=(0,e.useState)(!0),{userSettings:a,code:p,isExecuting:d,setUserSettings:g,setNotice:m}=t,f=a.console.window_split,E="horizontal"===f?r.KX:r._u;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("ul",{className:"list-inline"},(0,e.createElement)("li",{id:"wp-console-console-snippets-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:()=>o(!0)},(0,e.createElement)(r.qv,null)," ",(0,c.__)("Snippets","wp-console"))),(0,e.createElement)("li",{id:"wp-console-console-split-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,onClick:()=>(async()=>{const e="horizontal"===f?"vertical":"horizontal";await g("console","window_split",e,m),wpConsole.hooks.doAction("wp_console_console_toggle_window_split",e)})()},(0,e.createElement)(E,null)," ",(0,c.__)("Split","wp-console"))),(0,e.createElement)("li",{id:"wp-console-console-run-button",className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:d,disabled:d,onClick:()=>(0,u.Z)(p,t)},(0,e.createElement)(r.JF,null)," ",(0,c.__)("Run","wp-console")))),n&&(0,e.createElement)(l.Modal,{className:"wp-console-snippet-manager-modal",title:(0,c.__)("WP Console Snippets","wp-console"),onRequestClose:()=>s&&o(!1)},(0,e.createElement)(h,{closeManager:()=>s&&o(!1),setCanCloseManager:i})))}));const w=(0,e.lazy)((()=>s.e(747).then(s.bind(s,747))));var C={id:"console",name:(0,c.__)("Console","wp-console"),icon:(0,e.createElement)(r.Ch,{width:"16",height:"16"}),PanelButtons:E,Panel:w},S=s(654),v=s(989),_=s.n(v),b=(0,a.Z)({select:["clearingLog","fetchingLog"],dispatch:["setNotice","startFetchingLog","finishFetchingLog","setLog","setExtraInfo","startClearingLog","finishClearingLog"]})((t=>{const{clearingLog:n,fetchingLog:o}=t,s=n?`${(0,c.__)("Clearing Log","wp-console")}...`:(0,c.__)("Clear Log","wp-console"),i=o?`${(0,c.__)("Fetching Log","wp-console")}...`:(0,c.__)("Fetch Log","wp-console");return(0,e.createElement)("ul",{className:"list-inline"},(0,e.createElement)("li",{className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:n,disabled:n||o,onClick:()=>(async e=>{const{setNotice:t,startClearingLog:n,finishClearingLog:o,setLog:s,setExtraInfo:i}=e;n(),t(""),s(""),i({});try{await _()({path:"/wp-console/v1/debug-log",method:"delete",headers:{"X-WP-Console":!0}}),t((0,c.__)("Cleared debug.log.","wp-console"),"success")}catch(e){s("API_ERROR"),e.message&&t(e.message)}finally{o()}})(t)},(0,e.createElement)(r.W7,null)," ",s)),(0,e.createElement)("li",{className:"list-inline-item"},(0,e.createElement)(l.Button,{className:"wp-console-panel-button wp-console-button-no-style",isSmall:!0,isBusy:o,disabled:o||n,onClick:()=>(0,S.Z)(t)},(0,e.createElement)(r.ey,null)," ",i)))}));const y=(0,e.lazy)((()=>s.e(5).then(s.bind(s,5))));var N={id:"debug-log",name:(0,c.__)("Debug Log","wp-console"),icon:(0,e.createElement)(r.ey,{width:"16",height:"16"}),PanelButtons:b,Panel:y},L=async function(e,t,n,o){try{const o=await _()({path:"/wp-console/v1/user-settings",method:"post",data:{[e]:{[t]:n}},headers:{"X-WP-Console":!0}});return wpConsole.hooks.doAction(`wp_console_after_save_user_settings_${e}_${t}`,n,o),o}catch(e){e.message&&o(e.message)}return null};const T={userSettings:wpConsole.user_settings,panels:[C,N],activePanelId:"console",notice:{message:"",type:"error"}},x={setUserSettings:(e,t,n,o)=>({type:"SET_USER_SETTINGS",section:e,option:t,value:n,response:L(e,t,n,o)}),setActivePanelId:e=>({type:"SET_ACTIVE_PANEL",activePanelId:e}),setNotice(e){return{type:"SET_NOTICE",notice:{message:e,type:arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error"}}}},I={actions:x,reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_USER_SETTINGS":e={...e,userSettings:{...e.userSettings,[t.section]:{...e.userSettings[t.section],[t.option]:t.value}}};break;case"SET_ACTIVE_PANEL":e={...e,activePanelId:t.activePanelId};break;case"SET_NOTICE":e={...e,notice:t.notice}}return e},selectors:{userSettings(e){let{globalStore:t}=e;return t.userSettings},panels(e){let{globalStore:t}=e;return t.panels},activePanelId(e){let{globalStore:t}=e;return t.activePanelId},activePanel(e){let{globalStore:t}=e;return t.panels.filter((e=>e.id===t.activePanelId))[0]},notice(e){let{globalStore:t}=e;return t.notice}}},P={code:"<?php\n",output:null,dump:null,errorTrace:null,isExecuting:!1,settings:{horizontalSplit:!1},keyBindings:{execCode:{win:"Ctrl-Enter",mac:"Cmd-Enter"}},executionTime:null},O={actions:{updateCode:e=>({type:"UPDATE_CODE",code:e}),setOutput:e=>({type:"SET_OUTPUT",output:e}),setDump:e=>({type:"SET_DUMP",dump:e}),setErrorTrace:e=>({type:"SET_ERROR_TRACE",errorTrace:e}),resetConsoleResponses:()=>({type:"RESET_CONSOLE_RESPONSES"}),startExecuting:e=>(e(),{type:"START_EXECUTING"}),finishExecuting:()=>({type:"FINISH_EXECUTING"}),toggleHorizontalSplit:()=>({type:"TOGGLE_HORIZONTAL_SPLIT"}),setExecutionTime:e=>({type:"SET_EXECUTION_TIME",time:e})},reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:P,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"UPDATE_CODE":e={...e,code:t.code};break;case"SET_OUTPUT":e={...e,output:t.output};break;case"SET_DUMP":e={...e,dump:t.dump};break;case"SET_ERROR_TRACE":e={...e,errorTrace:t.errorTrace};break;case"RESET_CONSOLE_RESPONSES":e={...e,output:P.output,dump:P.dump,errorTrace:P.errorTrace};break;case"START_EXECUTING":e={...e,isExecuting:!0};break;case"FINISH_EXECUTING":e={...e,isExecuting:!1};break;case"TOGGLE_HORIZONTAL_SPLIT":e={...e,settings:{...e.settings,horizontalSplit:!e.settings.horizontalSplit}};break;case"SET_EXECUTION_TIME":e={...e,executionTime:t.time}}return e},selectors:{code(e){let{consoleStore:t}=e;return t.code},output(e){let{consoleStore:t}=e;return t.output},dump(e){let{consoleStore:t}=e;return t.dump},errorTrace(e){let{consoleStore:t}=e;return t.errorTrace},isExecuting(e){let{consoleStore:t}=e;return t.isExecuting},horizontalSplit(e){let{consoleStore:t}=e;return t.settings.horizontalSplit},keyBindings(e){let{consoleStore:t}=e;return t.keyBindings},getExecutionTime(e){let{consoleStore:t}=e;return t.executionTime}}},k={clearingLog:!1,fetchingLog:!1,log:null,extraInfo:{}},M={actions:{startClearingLog:()=>({type:"START_CLEARING_LOG"}),finishClearingLog:()=>({type:"FINISH_CLEARING_LOG"}),startFetchingLog:()=>({type:"START_FETCHING_LOG"}),finishFetchingLog:()=>({type:"FINISH_FETCHING_LOG"}),setLog:e=>({type:"SET_LOG",log:e}),setExtraInfo:e=>({type:"SET_EXTRA_INFO",extraInfo:e})},reducer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"START_CLEARING_LOG":e={...e,clearingLog:!0};break;case"FINISH_CLEARING_LOG":e={...e,clearingLog:!1};break;case"START_FETCHING_LOG":e={...e,fetchingLog:!0};break;case"FINISH_FETCHING_LOG":e={...e,fetchingLog:!1};break;case"SET_LOG":e={...e,log:t.log};break;case"SET_EXTRA_INFO":e={...e,extraInfo:t.extraInfo}}return e},selectors:{clearingLog(e){let{debugLogStore:t}=e;return t.clearingLog},fetchingLog(e){let{debugLogStore:t}=e;return t.fetchingLog},log(e){let{debugLogStore:t}=e;return t.log},extraInfo(e){let{debugLogStore:t}=e;return t.extraInfo}}},R={actions:{...I.actions,...O.actions,...M.actions},reducer:(0,i.combineReducers)({globalStore:I.reducer,consoleStore:O.reducer,debugLogStore:M.reducer}),selectors:{...I.selectors,...O.selectors,...M.selectors}};(0,i.registerStore)("wp-console",R);var z=(0,a.Z)({select:["panels","activePanel","activePanelId"],dispatch:["setActivePanelId","resetConsoleResponses"]})((t=>{let{panels:o,activePanel:s,activePanelId:i,setActivePanelId:a,resetConsoleResponses:u}=t;const p=s.PanelButtons;return(0,e.createElement)("nav",{id:"wp-console-navbar",className:"display-flex"},(0,e.createElement)("div",{className:"wp-console-navbar-left display-flex"},(0,e.createElement)("h3",{id:"wp-console-logo",className:"align-self-center"},(0,c.__)("WP Console","wp-console")),(0,e.createElement)("ul",{id:"wp-console-panel-names",className:"display-flex"},o.map((t=>(0,e.createElement)("li",{key:t.id,role:"presentation",className:i===t.id?"active":"",onClick:()=>a(t.id)},t.icon," ",t.name))))),(0,e.createElement)("div",{className:"wp-console-navbar-right display-flex"},(0,e.createElement)("div",{className:"wp-console-panel-buttons align-self-center"},(0,e.createElement)(p,null)),(0,e.createElement)("div",{className:"wp-console-nav-buttons align-self-center"},(0,e.createElement)(l.Button,{className:"button-close",onClick:e=>((e,t)=>{e.preventDefault(),n()("body").removeClass("wp-console-active"),n()("#wp-console").removeClass("active").trigger("wp-console:close"),t()})(e,u)},(0,e.createElement)(r.AI,null)))))})),F=(0,a.Z)({select:["notice"],dispatch:["setNotice"]})((t=>{let{notice:n,setNotice:o}=t;return(0,e.createPortal)((0,e.createElement)("div",{id:"wp-console-app-notice"},(0,e.createElement)(l.Notice,{status:n.type,onRemove:()=>o("")},n.message)),document.body)})),A=(0,a.Z)({select:["notice","activePanel"]})((t=>{let{notice:n,activePanel:o}=t;const s=o.Panel,i=(0,e.createElement)("div",{className:"wp-console-spinner"},(0,e.createElement)(l.Spinner,null));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(z,null),(0,e.createElement)("div",{id:"wp-console-panel"},(0,e.createElement)(e.Suspense,{fallback:i},(0,e.createElement)(s,null))),n.message&&(0,e.createElement)(F,null))}));s.p=`${wpConsole.url.assests}/js/`,wpConsole.hooks=(0,o.createHooks)(),n()(document).ready((function(){)}))}))}()}();
  • wp-console/trunk/includes/AdminBar.php

    r2209682 r2995127  
    1818
    1919        add_action( 'wp_before_admin_bar_render', [ $this, 'add_admin_bar_quick_link' ] );
     20
     21
    2022        add_action( 'wp_after_admin_bar_render', [ $this, 'add_footer' ] );
    2123    }
     
    3941
    4042    /**
     43
     44
     45
     46
     47
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
    4165     * Add footer
    4266     *
     
    4872        echo '<div id="wp-console"></div>';
    4973    }
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
    5088}
  • wp-console/trunk/includes/WPConsole.php

    r2950053 r2995127  
    2121     * @var string
    2222     */
    23     public $version = '2.4.0';
     23    public $version = '2.4.';
    2424
    2525    /**
  • wp-console/trunk/languages/wp-console.pot

    r2950053 r2995127  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WP Console 2.3.1\n"
     5"Project-Id-Version: WP Console 2..1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-console\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-08-09T07:12:33+00:00\n"
     12"POT-Creation-Date: 2023-+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
     
    1616
    1717#. Plugin Name of the plugin
     18
     19
     20
    1821#: src/NavBar/NavBar.js:38
    1922msgid "WP Console"
     
    3639msgstr ""
    3740
    38 #: includes/AdminBar.php:36
     41#: includes/AdminBar.php:3
    3942#: src/Console/Console.js:16
    4043msgid "Console"
  • wp-console/trunk/readme.txt

    r2950145 r2995127  
    33Tags: console, repl, browser, psysh, shell, dump
    44Requires at least: 5.3.12
    5 Tested up to: 6.3
     5Tested up to: 6.
    66Requires PHP: 5.6
    7 Stable tag: 2.4.0
     7Stable tag: 2.4.
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    5757== Changelog ==
    5858
     59
     60
     61
     62
     63
    59642.4.0 - August 09, 2023
    6065* Add support for PHP 8.0+.
    61 * Update psysh version to 0.10.12.
    6266* Update Ace Editor version to 1.23.4.
    6367
  • wp-console/trunk/wp-console.php

    r2950053 r2995127  
    44 * Plugin URI: https://github.com/ediamin/wp-console
    55 * Description: An in-browser PHP console for WordPress powered by PsySH
    6  * Version: 2.4.0
     6 * Version: 2.4.
    77 * Author: Edi Amin
    88 * Author URI: https://github.com/ediamin
     
    1919    require_once __DIR__ . '/compat/php-8.0/nikic/php-parser/lib/PhpParser/NodeAbstract.php';
    2020    require_once __DIR__ . '/compat/php-8.0/nikic/php-parser/lib/PhpParser/Comment.php';
     21
    2122    require_once __DIR__ . '/compat/php-8.0/psy/psysh/src/VarDumper/Dumper.php';
    2223    require_once __DIR__ . '/compat/php-8.0/symfony/var-dumper/Cloner/Data.php';
Note: See TracChangeset for help on using the changeset viewer.