"use strict";(self.webpackChunkweb_toolbox=self.webpackChunkweb_toolbox||[]).push([[279],{50057:(e,t,r)=>{r.d(t,{n:()=>i});var a=r(9950),o=r(25131),n=r(72772),l=r(73931);const s=(0,o.A)((e=>({root:{margin:e.spacing(1)}}))),i=e=>{let{title:t,iconType:r,children:o}=e;const i=s();return a.createElement(a.Fragment,null,a.createElement(n.m,{titleTemplate:"Web Toolbox - %s",defaultTitle:"Web Toolbox",title:t}),a.createElement("div",{className:i.root},a.createElement(l.A,{iconType:r,title:t}),o))}},73931:(e,t,r)=>{r.d(t,{A:()=>l});var a=r(9950),o=r(82053);const n=(0,r(25131).A)((e=>({title:{wordBreak:"break-word"},titleWithIcon:{display:"flex",justifyContent:"center",alignItems:"center",marginBottom:e.spacing(1)},icon:{height:"40px",width:"40px",marginRight:e.spacing(1)}}))),l=e=>{let{title:t,iconType:r}=e;const l=n();return a.createElement("div",{className:l.titleWithIcon},a.createElement(r,{className:l.icon}),a.createElement(o.A,{variant:"h5",className:l.title},t))}},65279:(e,t,r)=>{r.r(t),r.d(t,{default:()=>E,mapDispatchToProps:()=>y,mapStateToProps:()=>T});var a=r(9950),o=r(58531),n=r(2235),l=r(15769),s=r(34075),i=r(1320),c=r(69780),u=r(9213),d=r(8145),m=r(10300),p=r(33602),h=r(50057),f=r(1810);var A=r(21671),v=r(39287),b=r(25131);const g=(0,v.A)((e=>({body:{fontSize:e.spacing(1.75),whiteSpace:"normal",wordBreak:"break-word"}})))(A.A),x=(0,v.A)((e=>({root:{"&:nth-of-type(even)":{backgroundColor:e.palette.action.hover}}})))(u.A),w=(0,b.A)((e=>({panel:{marginBottom:e.spacing(3)},tableHeader:{backgroundColor:e.palette.primary.main}})));function T(e){return{inputText:e.textInputs.lastUrlParserValue}}function y(e){return{storeInputText:(t,r)=>e((0,p.s)(t,r))}}const E=(0,m.Ng)(T,y)((e=>{let{inputText:t,storeInputText:r}=e;const m=w(),p=(0,f.Pb)("md"),[A,v]=a.useState(new Map),[b,T]=a.useState(new Map);return a.useEffect((()=>{v(function(e){const t=new Map;if(!e)return t;try{const r=new URL(e);t.set("host",r.host),t.set("protocol",r.protocol),t.set("hash",r.hash),t.set("origin",r.origin),t.set("pathname",r.pathname),t.set("port",r.port?r.port:"<default>"),t.set("search",r.search)}catch(r){}return t}(t)),T(function(e){const t=new Map;if(!e)return t;try{new URL(e).searchParams.forEach(((e,r)=>t.set(r,e)))}catch(r){}return t}(t))}),[t]),a.createElement(h.n,{iconType:o.A,title:"URL Parser"},a.createElement(d.A,{autoFocus:p,label:"URL",placeholder:"Paste or type the url here",multiline:!0,minRows:4,maxRows:p?20:4,variant:"outlined",margin:"normal",fullWidth:!0,value:t,className:m.panel,onChange:e=>r("lastUrlParserValue",e.target.value)}),t&&a.createElement("ul",null,a.createElement("li",null,a.createElement("a",{href:t,target:"_blank",rel:"noreferrer"},"Click the link to open the URL in a new tab"))),a.createElement(i.A,{component:n.A,className:m.panel},a.createElement(l.A,{size:p?"medium":"small"},a.createElement(c.A,{className:m.tableHeader},a.createElement(u.A,null,a.createElement(g,null,"Fragment"),a.createElement(g,null,"Value"))),a.createElement(s.A,null,[...A.keys()].sort().map((e=>a.createElement(x,{key:e},a.createElement(g,{component:"th",scope:"row"},e),a.createElement(g,null,A.get(e)))))))),a.createElement(i.A,{component:n.A},a.createElement(l.A,{size:p?"medium":"small"},a.createElement(c.A,{className:m.tableHeader},a.createElement(u.A,null,a.createElement(g,null,"Parameter"),a.createElement(g,null,"Value"))),a.createElement(s.A,null,[...b.keys()].sort().map((e=>a.createElement(x,{key:e},a.createElement(g,{component:"th",scope:"row"},e),a.createElement(g,null,b.get(e)))))))))}))},58531:(e,t,r)=>{var a=r(24994);t.A=void 0;var o=a(r(79526)),n=r(44414);t.A=(0,o.default)((0,n.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link")},24516:(e,t,r)=>{r.d(t,{A:()=>w});var a=r(98587),o=r(58168),n=r(9950),l=r(72004),s=r(74061),i=r(68624),c=r(39766),u=r(59254),d=r(61676),m=r(80863),p=r(68483);function h(e){return(0,p.Ay)("MuiFormHelperText",e)}const f=(0,m.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var A,v=r(48283),b=r(44414);const g=["children","className","component","disabled","error","filled","focused","margin","required","variant"],x=(0,u.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t["size".concat((0,d.A)(r.size))],r.contained&&t.contained,r.filled&&t.filled]}})((e=>{let{theme:t,ownerState:r}=e;return(0,o.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(f.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(f.error)]:{color:(t.vars||t).palette.error.main}},"small"===r.size&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})})),w=n.forwardRef((function(e,t){const r=(0,v.A)({props:e,name:"MuiFormHelperText"}),{children:n,className:u,component:m="p"}=r,p=(0,a.A)(r,g),f=(0,c.A)(),w=(0,i.A)({props:r,muiFormControl:f,states:["variant","size","disabled","error","filled","focused","required"]}),T=(0,o.A)({},r,{component:m,contained:"filled"===w.variant||"outlined"===w.variant,variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required}),y=(e=>{const{classes:t,contained:r,size:a,disabled:o,error:n,filled:l,focused:i,required:c}=e,u={root:["root",o&&"disabled",n&&"error",a&&"size".concat((0,d.A)(a)),r&&"contained",i&&"focused",l&&"filled",c&&"required"]};return(0,s.A)(u,h,t)})(T);return(0,b.jsx)(x,(0,o.A)({as:m,ownerState:T,className:(0,l.A)(y.root,u),ref:t},p,{children:" "===n?A||(A=(0,b.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}))},69780:(e,t,r)=>{r.d(t,{A:()=>g});var a=r(58168),o=r(98587),n=r(9950),l=r(72004),s=r(74061),i=r(89330),c=r(48283),u=r(59254),d=r(80863),m=r(68483);function p(e){return(0,m.Ay)("MuiTableHead",e)}(0,d.A)("MuiTableHead",["root"]);var h=r(44414);const f=["className","component"],A=(0,u.Ay)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),v={variant:"head"},b="thead",g=n.forwardRef((function(e,t){const r=(0,c.A)({props:e,name:"MuiTableHead"}),{className:n,component:u=b}=r,d=(0,o.A)(r,f),m=(0,a.A)({},r,{component:u}),g=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},p,t)})(m);return(0,h.jsx)(i.A.Provider,{value:v,children:(0,h.jsx)(A,(0,a.A)({as:u,className:(0,l.A)(g.root,n),ref:t,role:u===b?null:"rowgroup",ownerState:m},d))})}))},8145:(e,t,r)=>{r.d(t,{A:()=>R});var a=r(58168),o=r(98587),n=r(9950),l=r(72004),s=r(74061),i=r(28767),c=r(59254),u=r(48283),d=r(19890),m=r(78089),p=r(3198),h=r(3788),f=r(25979),A=r(24516),v=r(10024),b=r(80863),g=r(68483);function x(e){return(0,g.Ay)("MuiTextField",e)}(0,b.A)("MuiTextField",["root"]);var w=r(44414);const T=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],y={standard:d.A,filled:m.A,outlined:p.A},E=(0,c.Ay)(f.A,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),R=n.forwardRef((function(e,t){const r=(0,u.A)({props:e,name:"MuiTextField"}),{autoComplete:n,autoFocus:c=!1,children:d,className:m,color:p="primary",defaultValue:f,disabled:b=!1,error:g=!1,FormHelperTextProps:R,fullWidth:P=!1,helperText:F,id:N,InputLabelProps:k,inputProps:M,InputProps:H,inputRef:z,label:C,maxRows:S,minRows:j,multiline:q=!1,name:I,onBlur:L,onChange:W,onFocus:V,placeholder:B,required:U=!1,rows:_,select:D=!1,SelectProps:G,type:J,value:K,variant:O="outlined"}=r,Q=(0,o.A)(r,T),X=(0,a.A)({},r,{autoFocus:c,color:p,disabled:b,error:g,fullWidth:P,multiline:q,required:U,select:D,variant:O}),Y=(e=>{const{classes:t}=e;return(0,s.A)({root:["root"]},x,t)})(X);const Z={};"outlined"===O&&(k&&"undefined"!==typeof k.shrink&&(Z.notched=k.shrink),Z.label=C),D&&(G&&G.native||(Z.id=void 0),Z["aria-describedby"]=void 0);const $=(0,i.A)(N),ee=F&&$?"".concat($,"-helper-text"):void 0,te=C&&$?"".concat($,"-label"):void 0,re=y[O],ae=(0,w.jsx)(re,(0,a.A)({"aria-describedby":ee,autoComplete:n,autoFocus:c,defaultValue:f,fullWidth:P,multiline:q,name:I,rows:_,maxRows:S,minRows:j,type:J,value:K,id:$,inputRef:z,onBlur:L,onChange:W,onFocus:V,placeholder:B,inputProps:M},Z,H));return(0,w.jsxs)(E,(0,a.A)({className:(0,l.A)(Y.root,m),disabled:b,error:g,fullWidth:P,ref:t,required:U,color:p,variant:O,ownerState:X},Q,{children:[null!=C&&""!==C&&(0,w.jsx)(h.A,(0,a.A)({htmlFor:$,id:te},k,{children:C})),D?(0,w.jsx)(v.A,(0,a.A)({"aria-describedby":ee,id:$,labelId:te,value:K,input:ae},G,{children:d})):ae,F&&(0,w.jsx)(A.A,(0,a.A)({id:ee},R,{children:F}))]}))}))},39287:(e,t,r)=>{r.d(t,{A:()=>p});var a=r(58168),o=r(98587),n=r(9950),l=r(23876),s=r.n(l),i=r(25131);var c=r(80806),u=r(44414);const d=["defaultTheme","withTheme","name"],m=["classes"],p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r=>{const{defaultTheme:l,withTheme:p=!1,name:h}=t,f=(0,o.A)(t,d);let A=h;const v=(0,i.A)(e,(0,a.A)({defaultTheme:l,Component:r,name:h||r.displayName,classNamePrefix:A},f)),b=n.forwardRef((function(e,t){const n=(0,o.A)(e,m),s=v((0,a.A)({},r.defaultProps,e));let i,d=n;return("string"===typeof h||p)&&(i=(0,c.A)()||l,h&&(d=function(e){const{theme:t,name:r,props:o}=e;if(!t||!t.components||!t.components[r]||!t.components[r].defaultProps)return o;const n=(0,a.A)({},o),l=t.components[r].defaultProps;let s;for(s in l)void 0===n[s]&&(n[s]=l[s]);return n}({theme:i,name:h,props:n})),p&&!d.theme&&(d.theme=i)),(0,u.jsx)(r,(0,a.A)({ref:t,classes:s},d))}));return s()(b,r),b}}}}]);