| Server IP : 185.252.147.100 / Your IP : 216.73.217.33 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/html/east-point.site/public/wp-content/plugins/staatic/assets/ |
Upload File : |
(()=>{var e={369:(e,t,s)=>{"use strict";s.r(t),s.d(t,{AdditionalPaths:()=>u,default:()=>p});var a=s(196),n=s(736),i=s(609),l=s(307),o=s(697),r=s.n(o);class d extends l.Component{constructor(e){super(e),this.state={focusedInput:null}}setInputFocus=e=>{this.setState({focusedInput:e})};resetInputFocus=()=>{this.setState({focusedInput:null})};onKeyUp(e){13===e.charCode&&this.setState({inputValue:e.target.value})}uriBasePathPlaceholder(e){const{rootPath:t,rootUrlPath:s}=this.props;if(!(e=(e=function(e){return(e=(e=e.replace(/\\/g,"/")).replace(/(?<=.)(\/+)/g,"/")).length>1&&":"===e[1]&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}(e)).replace(/[/\\]+$/,"")))return(0,n.__)("URL base path","staatic");if(t==e)return(0,n.__)("Path cannot be used.","staatic");if(!e.startsWith(t))return(0,n.__)("Provide URL base path manually.","staatic");let a=("/"===s?"":s)+e.substring(t.length);return/[^\/]+\.[^\/]+$/.test(a)&&(a=a.substring(0,a.lastIndexOf("/"))),a}render(){const{index:e,item:t,onChange:s,onDelete:l,placeholderText:o,showUriBasePath:r,showFollow:d,showSave:c,showRecursive:h}=this.props,u=e=>{"Enter"===e.key&&e.preventDefault()},p=t.isEnabled?"":"staatic-disabled",m=e=>this.state.focusedInput===e?"staatic-focused":"",g=this.uriBasePathPlaceholder(t.path);return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("input",{type:"checkbox",defaultChecked:t.isEnabled,onChange:t=>s(e,"isEnabled",t.target.checked),onKeyDown:u}),(0,a.createElement)("input",{type:"text",value:t.path,placeholder:o||"",className:`staatic-value ${p} ${m("path")}`,onChange:t=>s(e,"path",t.target.value),onKeyDown:u,onFocus:()=>this.setInputFocus("path"),onBlur:this.resetInputFocus}),r?(0,a.createElement)("input",{type:"text",value:t.uriBasePath,placeholder:g||"",className:`staatic-value ${p} ${m("uriBasePath")}`,onChange:t=>s(e,"uriBasePath",t.target.value),onKeyDown:u,onFocus:()=>this.setInputFocus("uriBasePath"),onBlur:this.resetInputFocus}):null,d?(0,a.createElement)("label",{title:(0,n.__)("Enable to extract links from this item.","staatic"),className:p},(0,a.createElement)("input",{type:"checkbox",defaultChecked:!t.dontFollow,onChange:t=>s(e,"dontFollow",!t.target.checked),onKeyDown:u}),(0,n.__)("Follow","staatic")):null,c?(0,a.createElement)("label",{title:(0,n.__)("Enable to include this item in the build.","staatic"),className:p},(0,a.createElement)("input",{type:"checkbox",defaultChecked:!t.dontSave,onChange:t=>s(e,"dontSave",!t.target.checked),onKeyDown:u}),(0,n.__)("Save","staatic")):null,h?(0,a.createElement)("label",{title:(0,n.__)("Enable to scan this path recursively.","staatic"),className:p},(0,a.createElement)("input",{type:"checkbox",defaultChecked:!t.nonRecursive,onChange:t=>s(e,"nonRecursive",!t.target.checked),onKeyDown:u}),(0,n.__)("Recursive","staatic")):null,(0,a.createElement)("button",{onClick:t=>{t.preventDefault(),l(e)},className:"staatic-delete"},(0,a.createElement)(i.Dashicon,{icon:"trash"}),(0,n.__)("Delete","staatic")))}}d.propTypes={index:r().number.isRequired,item:r().object.isRequired,rootPath:r().string.isRequired,rootUrlPath:r().string.isRequired,placeholderText:r().string,showUriBasePath:r().bool,showFollow:r().bool,showSave:r().bool,showRecursive:r().bool};var c=s(934),h=s(234);class u extends l.Component{static format=["path","uriBasePath","flags"];constructor(e){super(...arguments);const t=this.getItems(),s=this.shouldShowAdvancedOptions(t);this.state={items:t,editAsText:"text"===e.defaultMode,showAdvancedOptions:s},this.handleToggleEditMode=this.handleToggleEditMode.bind(this),this.handleToggleShowAdvancedOptions=this.handleToggleShowAdvancedOptions.bind(this),this.handleChange=this.handleChange.bind(this),this.handleDelete=this.handleDelete.bind(this)}componentDidMount(){document.getElementById(this.props.name).style.display="text"===this.props.defaultMode?"block":"none"}componentDidUpdate(e,t){t.items!==this.state.items&&this.updateItems()}getItems(){const e=document.getElementById(this.props.name).value,t=(0,c.Z)(e,u.format).map((e=>({isEnabled:"true"===e.isEnabled,path:e.path||"",uriBasePath:e.uriBasePath||"",dontTouch:e.flags&&e.flags.includes("T"),dontFollow:e.flags&&e.flags.includes("F"),dontSave:e.flags&&e.flags.includes("S"),nonRecursive:e.flags&&e.flags.includes("R")}))).filter((e=>e.path));return 0===t.length&&t.push({isEnabled:!0,path:"",uriBasePath:"",dontTouch:!1,dontFollow:!1,dontSave:!1,nonRecursive:!1}),t}shouldShowAdvancedOptions(e){let t=!1;return e.forEach((function(e){(e.uriBasePath||e.dontTouch||e.dontFollow||e.dontSave)&&(t=!0)})),t}updateItems(){const e=this.state.items.map((e=>{let t="";return e.dontTouch&&(t+="T"),e.dontFollow&&(t+="F"),e.dontSave&&(t+="S"),e.nonRecursive&&(t+="R"),{isEnabled:e.isEnabled?"true":"false",path:e.path,uriBasePath:e.uriBasePath,flags:t}})).filter((e=>e.path));document.getElementById(this.props.name).value=(0,h.Z)(e,u.format)}handleToggleEditMode(){document.getElementById(this.props.name).style.display=this.state.editAsText?"none":"inline-block",this.state.editAsText&&this.setState({items:this.getItems()}),this.setState({editAsText:!this.state.editAsText})}handleToggleShowAdvancedOptions(){this.setState({showAdvancedOptions:!this.state.showAdvancedOptions})}handleAddItem(){this.setState({items:[...this.state.items,{isEnabled:!0,path:"",uriBasePath:"",dontTouch:!1,dontFollow:!1,dontSave:!1,nonRecursive:!1}]})}handleChange(e,t,s){const a=[...this.state.items];a[e][t]=s,this.setState({items:a})}handleDelete(e){const t=[...this.state.items];t.splice(e,1),this.setState({items:t})}render(){const{rootPath:e,rootUrlPath:t,placeholderText:s,addButtonText:l}=this.props,{editAsText:o,showAdvancedOptions:r}=this.state;return o?(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Visual mode","staatic"))):(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Text mode","staatic")),(0,a.createElement)("a",{onClick:this.handleToggleShowAdvancedOptions},r?(0,n.__)("Hide advanced options","staatic"):(0,n.__)("Advanced options","staatic"))),(0,a.createElement)("div",{className:"staatic-list"},this.state.items.map(((n,i)=>(0,a.createElement)("div",{key:i,className:"staatic-item"},(0,a.createElement)(d,{index:i,item:n,rootPath:e,rootUrlPath:t,onChange:this.handleChange,onDelete:this.handleDelete,showUriBasePath:r,showFollow:r,showSave:r,showRecursive:!0,placeholderText:s})))),(0,a.createElement)("button",{className:"staatic-add",onClick:e=>{e.preventDefault(),this.handleAddItem()}},(0,a.createElement)(i.Dashicon,{icon:"plus"}),l||(0,n.__)("Add item","staatic"))))}}u.propTypes={name:r().string.isRequired,rootPath:r().string.isRequired,rootUrlPath:r().string.isRequired,defaultMode:r().string,placeholderText:r().string,addButtonText:r().string};const p=u},641:(e,t,s)=>{"use strict";s.r(t),s.d(t,{CrawlItems:()=>u,default:()=>p});var a=s(196),n=s(736),i=s(609),l=s(307),o=s(697),r=s.n(o);class d extends l.Component{onKeyUp(e){13===e.charCode&&this.setState({inputValue:e.target.value})}render(){const{index:e,item:t,onChange:s,onDelete:l,placeholderText:o,showFollow:r,showSave:d}=this.props,c=e=>{"Enter"===e.key&&e.preventDefault()},h=t.isEnabled?"":"staatic-disabled";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("input",{type:"checkbox",defaultChecked:t.isEnabled,onChange:t=>s(e,"isEnabled",t.target.checked),onKeyDown:c}),(0,a.createElement)("input",{type:"text",value:t.path,placeholder:o||"",className:`staatic-value ${h}`,onChange:t=>s(e,"path",t.target.value),onKeyDown:c}),r?(0,a.createElement)("label",{title:(0,n.__)("Enable to extract links from this item.","staatic"),className:h},(0,a.createElement)("input",{type:"checkbox",defaultChecked:!t.dontFollow,onChange:t=>s(e,"dontFollow",!t.target.checked),onKeyDown:c}),(0,n.__)("Follow","staatic")):null,d?(0,a.createElement)("label",{title:(0,n.__)("Enable to include this item in the build.","staatic"),className:h},(0,a.createElement)("input",{type:"checkbox",defaultChecked:!t.dontSave,onChange:t=>s(e,"dontSave",!t.target.checked),onKeyDown:c}),(0,n.__)("Save","staatic")):null,(0,a.createElement)("button",{onClick:t=>{t.preventDefault(),l(e)},className:"staatic-delete"},(0,a.createElement)(i.Dashicon,{icon:"trash"}),(0,n.__)("Delete","staatic")))}}d.propTypes={index:r().number.isRequired,item:r().object.isRequired,placeholderText:r().string,showFollow:r().bool,showSave:r().bool};var c=s(934),h=s(234);class u extends l.Component{static format=["path","flags"];constructor(e){super(...arguments);const t=this.getItems(),s=this.shouldShowAdvancedOptions(t);this.state={items:t,editAsText:"text"===e.defaultMode,showAdvancedOptions:s},this.handleToggleEditMode=this.handleToggleEditMode.bind(this),this.handleToggleShowAdvancedOptions=this.handleToggleShowAdvancedOptions.bind(this),this.handleChange=this.handleChange.bind(this),this.handleDelete=this.handleDelete.bind(this)}componentDidMount(){document.getElementById(this.props.name).style.display="text"===this.props.defaultMode?"block":"none"}componentDidUpdate(e,t){t.items!==this.state.items&&this.updateItems()}getItems(){const e=document.getElementById(this.props.name).value,t=(0,c.Z)(e,u.format).map((e=>({isEnabled:"true"===e.isEnabled,path:e.path||"",dontTouch:e.flags&&e.flags.includes("T"),dontFollow:e.flags&&e.flags.includes("F"),dontSave:e.flags&&e.flags.includes("S")}))).filter((e=>e.path));return 0===t.length&&t.push({isEnabled:!0,path:"",dontTouch:!1,dontFollow:!1,dontSave:!1}),t}shouldShowAdvancedOptions(e){if("true"!==this.props.hasAdvancedOptions)return!1;let t=!1;return e.forEach((function(e){(e.dontTouch||e.dontFollow||e.dontSave)&&(t=!0)})),t}updateItems(){const e=this.state.items.map((e=>{let t="";return e.dontTouch&&(t+="T"),e.dontFollow&&(t+="F"),e.dontSave&&(t+="S"),e.nonRecursive&&(t+="R"),{isEnabled:e.isEnabled?"true":"false",path:e.path,flags:t}})).filter((e=>e.path));document.getElementById(this.props.name).value=(0,h.Z)(e,u.format)}handleToggleEditMode(){document.getElementById(this.props.name).style.display=this.state.editAsText?"none":"inline-block",this.state.editAsText&&this.setState({items:this.getItems()}),this.setState({editAsText:!this.state.editAsText})}handleToggleShowAdvancedOptions(){this.setState({showAdvancedOptions:!this.state.showAdvancedOptions})}handleAddItem(){this.setState({items:[...this.state.items,{isEnabled:!0,path:"",dontTouch:!1,dontFollow:!1,dontSave:!1}]})}handleChange(e,t,s){const a=[...this.state.items];a[e][t]=s,this.setState({items:a})}handleDelete(e){const t=[...this.state.items];t.splice(e,1),this.setState({items:t})}render(){const{placeholderText:e,addButtonText:t,hasAdvancedOptions:s}=this.props,{editAsText:l,showAdvancedOptions:o}=this.state;return l?(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Visual mode","staatic"))):(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Text mode","staatic")),"true"===s?(0,a.createElement)("a",{onClick:this.handleToggleShowAdvancedOptions},o?(0,n.__)("Hide advanced options","staatic"):(0,n.__)("Advanced options","staatic")):null),(0,a.createElement)("div",{className:"staatic-list"},this.state.items.map(((t,s)=>(0,a.createElement)("div",{key:s,className:"staatic-item"},(0,a.createElement)(d,{index:s,item:t,onChange:this.handleChange,onDelete:this.handleDelete,placeholderText:e,showFollow:o,showSave:o})))),(0,a.createElement)("button",{className:"staatic-add",onClick:e=>{e.preventDefault(),this.handleAddItem()}},(0,a.createElement)(i.Dashicon,{icon:"plus"}),t||(0,n.__)("Add item","staatic"))))}}u.propTypes={name:r().string.isRequired,defaultMode:r().string,placeholderText:r().string,addButtonText:r().string,hasAdvancedOptions:r().string};const p=u},845:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DestinationUrl:()=>r,default:()=>d});var a=s(196),n=s(736),i=s(307),l=s(697),o=s.n(l);class r extends i.Component{constructor(e){super(e),this.valueInputRef=React.createRef(),this.setInitialState()}setInitialState(){const e=document.getElementById(this.props.name).value;this.state=""===e?{type:"offline",value:""}:{type:"regular",value:e}}componentDidMount(){document.getElementById(this.props.name).style.display="none"}componentDidUpdate(){this.updateExternalValue()}updateExternalValue(){const e="offline"===this.state.type?"":this.state.value;document.getElementById(this.props.name).value=e}handleChange(e,t){this.setState({[e]:t}),"type"===e&&"regular"===t&&setTimeout((()=>this.valueInputRef.current.focus()),50)}render(){return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-destination-url"},(0,a.createElement)("fieldset",null,(0,a.createElement)("div",null,(0,a.createElement)("input",{id:"destination-url-type-regular",type:"radio",value:"regular",checked:"regular"===this.state.type,onChange:e=>this.handleChange("type",e.target.value)})),(0,a.createElement)("div",{className:"staatic-field"},(0,a.createElement)("label",{htmlFor:"destination-url-type-regular"},(0,n.__)("Regular URL","staatic")),(0,a.createElement)("input",{ref:this.valueInputRef,className:"staatic-value",type:"text",value:this.state.value,disabled:"regular"!==this.state.type,onChange:e=>this.handleChange("value",e.target.value)}),(0,a.createElement)("p",{className:"description",dangerouslySetInnerHTML:{__html:(0,n.__)("Using an <em>absolute</em> URL (e.g. <code>https://example.com/</code>) is recommended for production use. Alternatively a <em>relative</em> URL (e.g. <code>//example.com/</code> or <code>/</code>) can be used to host your site on multiple schemes or domains. If the URL contains a <em>path</em> other than <code>/</code>, it will be prepended to all URLs, allowing the site to be placed in a subdirectory.","staatic")}}))),this.props.hideOfflineUrl?null:(0,a.createElement)("fieldset",null,(0,a.createElement)("div",null,(0,a.createElement)("input",{id:"destination-url-type-offline",type:"radio",value:"offline",checked:"offline"===this.state.type,onChange:e=>this.handleChange("type",e.target.value)})),(0,a.createElement)("div",{className:"staatic-field"},(0,a.createElement)("label",{htmlFor:"destination-url-type-offline"},(0,n.__)("Offline URL","staatic")),(0,a.createElement)("p",{className:"description",dangerouslySetInnerHTML:{__html:(0,n.__)("Using offline URLs is recommended only when you would like to be able to browse your site locally, without hosting it on a webserver.","staatic")}})))))}}r.propTypes={name:o().string.isRequired,hideOfflineUrl:o().bool};const d=r},713:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ExcludeUrls:()=>u,default:()=>p});var a=s(196),n=s(736),i=s(609),l=s(307),o=s(697),r=s.n(o);class d extends l.Component{render(){const{index:e,item:t,onChange:s,onDelete:l}=this.props,o=e=>{"Enter"===e.key&&e.preventDefault()},r=t.isEnabled?"":"staatic-disabled";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("input",{type:"checkbox",defaultChecked:t.isEnabled,onChange:t=>s(e,"isEnabled",t.target.checked),onKeyDown:o}),(0,a.createElement)("input",{type:"text",value:t.path,placeholder:(0,n.__)("URL","staatic"),className:`staatic-value ${r}`,onChange:t=>s(e,"path",t.target.value),onKeyDown:o}),(0,a.createElement)("button",{onClick:t=>{t.preventDefault(),l(e)},className:"staatic-delete"},(0,a.createElement)(i.Dashicon,{icon:"trash"}),(0,n.__)("Delete","staatic")))}}d.propTypes={index:r().number.isRequired,item:r().object.isRequired};var c=s(934),h=s(234);class u extends l.Component{static format=["path"];constructor(e){super(...arguments),this.state={items:this.getItems(),editAsText:!1},this.handleToggleEditMode=this.handleToggleEditMode.bind(this),this.handleChange=this.handleChange.bind(this),this.handleDelete=this.handleDelete.bind(this)}componentDidMount(){document.getElementById(this.props.name).style.display="none"}componentDidUpdate(e,t){t.items!==this.state.items&&this.updateItems()}getItems(){const e=document.getElementById(this.props.name).value,t=(0,c.Z)(e,u.format).map((e=>({isEnabled:"true"===e.isEnabled,path:e.path||""}))).filter((e=>e.path));return 0===t.length&&t.push({isEnabled:!0,path:""}),t}updateItems(){const e=this.state.items.map((e=>({isEnabled:e.isEnabled?"true":"false",path:e.path}))).filter((e=>e.path));document.getElementById(this.props.name).value=(0,h.Z)(e,u.format)}handleToggleEditMode(){document.getElementById(this.props.name).style.display=this.state.editAsText?"none":"inline-block",this.state.editAsText&&this.setState({items:this.getItems()}),this.setState({editAsText:!this.state.editAsText})}handleAddItem(){this.setState({items:[...this.state.items,{isEnabled:!0,path:""}]})}handleChange(e,t,s){const a=[...this.state.items];a[e][t]=s,this.setState({items:a})}handleDelete(e){const t=[...this.state.items];t.splice(e,1),this.setState({items:t})}render(){return this.state.editAsText?(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Visual mode","staatic"))):(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Text mode","staatic"))),(0,a.createElement)("div",{className:"staatic-list"},this.state.items.map(((e,t)=>(0,a.createElement)("div",{key:t,className:"staatic-item"},(0,a.createElement)(d,{index:t,item:e,onChange:this.handleChange,onDelete:this.handleDelete})))),(0,a.createElement)("button",{className:"staatic-add",onClick:e=>{e.preventDefault(),this.handleAddItem()}},(0,a.createElement)(i.Dashicon,{icon:"plus"}),(0,n.__)("Add URL","staatic"))))}}u.propTypes={name:r().string.isRequired};const p=u},143:(e,t,s)=>{"use strict";s.r(t),s.d(t,{GithubStatus:()=>h,default:()=>u});var a=s(196),n=s(989),i=s.n(n),l=s(307),o=s(609),r=s(736),d=s(697),c=s.n(d);class h extends l.Component{constructor(e){super(...arguments),this.tokenInput=document.getElementById(this.props.token),this.token=this.tokenInput.value,this.state={loading:!1,error:!1,status:null},this.updateStatus=this.updateStatus.bind(this)}componentDidMount(){this.bindInputs(),this.setupIntersectionObserver()}bindInputs(){this.tokenInput.addEventListener("change",(e=>this.handleTokenInput(e)))}componentWillUnmount(){this.observer&&this.observer.disconnect()}setupIntersectionObserver(){this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.updateStatus(),this.observer.unobserve(this.tokenInput))}))}),{root:null,threshold:.1}),this.observer.observe(this.tokenInput)}handleTokenInput(e){const{value:t}=e.target;this.token=t,this.updateStatus()}updateStatus(){this.token&&(this.setState({loading:!0,error:!1}),i()({path:"staatic-github/v1/github-status",method:"POST",data:{token:this.token}}).then((({status:e})=>{this.setState({loading:!1,status:e})})).catch((e=>{this.setState({loading:!1,error:!0}),console.error(e)})))}render(){const{instanceId:e}=this.props;if(this.state.error)return(0,a.createElement)("div",{className:"staatic-github-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Unable to verify connection status, please try again later.","staatic")));if(this.state.loading)return(0,a.createElement)("div",{className:"staatic-github-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),(0,r.__)("Verifying connection status...","staatic")));const{status:t}=this.state;return t?(0,a.createElement)("div",{className:"staatic-github-status"},(0,a.createElement)("p",{className:t.success?"staatic-success":"staatic-error"},(0,a.createElement)(o.Dashicon,{icon:t.success?"yes":"no"}),t.message),t.detail?(0,a.createElement)("p",{className:"staatic-detail"},t.detail):""):null}}h.propTypes={token:c().string.isRequired};const u=h},996:(e,t,s)=>{"use strict";s.r(t),s.d(t,{NetlifyStatus:()=>h,default:()=>u});var a=s(196),n=s(989),i=s.n(n),l=s(307),o=s(609),r=s(736),d=s(697),c=s.n(d);class h extends l.Component{constructor(e){super(...arguments),this.tokenInput=document.getElementById(this.props.token),this.siteIdInput=document.getElementById(this.props.siteId),this.token=this.tokenInput.value,this.siteId=this.siteIdInput.value,this.state={loading:!1,error:!1,status:null},this.updateStatus=this.updateStatus.bind(this)}componentDidMount(){this.bindInputs(),this.setupIntersectionObserver()}bindInputs(){this.tokenInput.addEventListener("change",(e=>this.handleTokenInput(e))),this.siteIdInput.addEventListener("change",(e=>this.handleSiteIdInput(e)))}componentWillUnmount(){this.observer&&this.observer.disconnect()}setupIntersectionObserver(){this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.updateStatus(),this.observer.unobserve(this.tokenInput))}))}),{root:null,threshold:.1}),this.observer.observe(this.tokenInput)}handleTokenInput(e){const{value:t}=e.target;this.token=t,this.updateStatus()}handleSiteIdInput(e){const{value:t}=e.target;this.siteId=t,this.updateStatus()}updateStatus(){this.token&&(this.setState({loading:!0,error:!1}),i()({path:"staatic-netlify/v1/netlify-status",method:"POST",data:{token:this.token,siteId:this.siteId}}).then((({status:e})=>{this.setState({loading:!1,status:e})})).catch((e=>{this.setState({loading:!1,error:!0}),console.error(e)})))}render(){const{instanceId:e}=this.props;if(this.state.error)return(0,a.createElement)("div",{className:"staatic-netlify-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Unable to verify connection status, please try again later.","staatic")));if(this.state.loading)return(0,a.createElement)("div",{className:"staatic-netlify-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),(0,r.__)("Verifying connection status...","staatic")));const{status:t}=this.state;return t?(0,a.createElement)("div",{className:"staatic-netlify-status"},(0,a.createElement)("p",{className:t.success?"staatic-success":"staatic-error"},(0,a.createElement)(o.Dashicon,{icon:t.success?"yes":"no"}),t.message),t.detail?(0,a.createElement)("p",{className:"staatic-detail"},t.detail):""):null}}h.propTypes={token:c().string.isRequired,siteId:c().string};const u=h},325:(e,t,s)=>{"use strict";s.r(t),s.d(t,{PublicationLogs:()=>h,default:()=>u});var a=s(196),n=s(989),i=s.n(n),l=s(307),o=s(609),r=s(736),d=s(697),c=s.n(d);class h extends l.Component{constructor(e){super(...arguments),this.state={loading:!0,error:!1,publication:null,logs:[],unloaded:!1},this.interval=null,this.updateLogs=this.updateLogs.bind(this)}componentDidMount(){window.addEventListener("beforeunload",this.handleBeforeUnload),this.updateLogs()}componentWillUnmount(){this.interval&&clearInterval(this.interval),window.removeEventListener("beforeunload",this.handleBeforeUnload)}handleBeforeUnload=()=>{this.setState({unloaded:!0})};updateLogs(){i()({path:"staatic/v1/publication-logs",method:"POST",data:{id:this.props.id}}).then((({publication:e,logs:t})=>{this.setState({loading:!1,publication:e,logs:t});const s="pending"===e.status||"in_progress"===e.status;s&&!this.interval?this.interval=setInterval(this.updateLogs,2e3):!s&&this.interval&&clearInterval(this.interval)})).catch((e=>{this.setState({loading:!1,error:!0}),console.error(e),this.interval&&clearInterval(this.interval)}))}render(){const{instanceId:e}=this.props;return this.state.error&&!this.state.unloaded?(0,a.createElement)("div",{className:"staatic-publication-logs"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Unable to load publication logs, please try again later","staatic"))):this.state.loading?(0,a.createElement)("div",{className:"staatic-publication-logs"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),(0,r.__)("Loading publication logs","staatic"))):(0,a.createElement)("div",{className:"staatic-publication-logs"},(0,a.createElement)("ul",null,this.state.logs.map((e=>(0,a.createElement)("li",{key:e.id,className:"staatic-log-level-"+e.level},(0,a.createElement)("span",{className:"staatic-date"},e.dateFormatted," - "),e.source?(0,a.createElement)("span",null,e.source," - "):"",(0,a.createElement)("span",{className:"staatic-message"},e.message))))))}}h.propTypes={id:c().string.isRequired};const u=h},27:(e,t,s)=>{"use strict";s.r(t),s.d(t,{PublicationStatus:()=>h,default:()=>u});var a=s(196),n=s(989),i=s.n(n),l=s(307),o=s(609),r=s(736),d=s(697),c=s.n(d);class h extends l.Component{constructor(e){super(...arguments),this.state={loading:!0,error:!1,publication:{status:"pending"},progress:null,unloaded:!1},this.interval=null,this.updateStatus=this.updateStatus.bind(this)}componentDidMount(){window.addEventListener("beforeunload",this.handleBeforeUnload),this.updateStatus()}componentWillUnmount(){this.interval&&clearInterval(this.interval),window.removeEventListener("beforeunload",this.handleBeforeUnload)}handleBeforeUnload=()=>{this.setState({unloaded:!0})};updateStatus(){i()({path:"staatic/v1/publication-status",method:"POST",data:{id:this.props.id}}).then((({publication:e,progress:t})=>{this.setState({loading:!1,publication:e,progress:t});const s="pending"===e.status||"in_progress"===e.status;s&&!this.interval?this.interval=setInterval(this.updateStatus,2e3):!s&&this.interval&&(clearInterval(this.interval),location.reload())})).catch((e=>{this.setState({loading:!1,error:!0}),console.error(e),this.interval&&clearInterval(this.interval)}))}renderProgressBar(e,t){switch(e){case"crawl":return this.renderCrawlProgressBar(t);case"deploy":return this.renderDeployProgressBar(t);default:return""}}renderCrawlProgressBar(e){const t=e.crawlPercent,s=parseInt(t)+"%";return(0,a.createElement)("div",{className:"staatic-progress-bar"},(0,a.createElement)("div",{className:"staatic-progress-bar-inner",style:{width:t+"%"}},(0,a.createElement)("span",null,e.numUrlsCrawled," / ~",e.numUrlsCrawlable," (",s,")")))}renderMaybeStuck(){const e=sprintf(/* translators: 1: Link to troubleshooting guide. */
(0,r.__)("This process is taking longer than anticipated. Please consider restarting the publication or consulting our %1$s for assistance.","staatic"),`<a href="https://staatic.com/wordpress/troubleshooting/" target="_blank" rel="noopener">${(0,r.__)("troubleshooting guide","staatic")}</a>`);return(0,a.createElement)("p",{className:"staatic-maybe-stuck",dangerouslySetInnerHTML:{__html:e}})}renderDeployProgressBar(e){const t=e.deployPercent,s=parseInt(t)+"%";return(0,a.createElement)("div",{className:"staatic-progress-bar"},(0,a.createElement)("div",{className:"staatic-progress-bar-inner",style:{width:t+"%"}},(0,a.createElement)("span",null,e.numResultsDeployed," / ~",e.numResultsDeployable," (",s,")")))}renderStatus(e){const{publication:t,progress:s}=this.state;switch(e){case"pending":return(0,a.createElement)("p",null,(0,r.__)("Publication is pending processing.","staatic"));case"in_progress":return(0,a.createElement)("div",null,(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),t.currentTask?t.currentTask.description:(0,r.__)("Preparing publication.","staatic")),t.isMaybeStuck?this.renderMaybeStuck():null,t.currentTask?this.renderProgressBar(t.currentTask.name,s):"");case"finished":return(0,a.createElement)("div",null,(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"smiley"}),(0,r.__)("Deployed","staatic")+" "+s.dateDeploymentFinished,t.publisher?" "+(0,r.__)("by","staatic")+" "+t.publisher:""),(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"clock"}),(0,r.__)("Total time taken:","staatic")+" "+s.timeTaken));default:return(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Publication has failed.","staatic"))}}render(){const{instanceId:e}=this.props;return this.state.error&&!this.state.unloaded?(0,a.createElement)("div",{className:"staatic-publication-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Unable to load publication status, please try again later.","staatic"))):this.state.loading?(0,a.createElement)("div",{className:"staatic-publication-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),(0,r.__)("Loading publication status.","staatic"))):(0,a.createElement)("div",{className:"staatic-publication-status"},this.renderStatus(this.state.publication.status))}}h.propTypes={id:c().string.isRequired};const u=h},181:(e,t,s)=>{"use strict";s.r(t),s.d(t,{RedirectItems:()=>u,default:()=>p});var a=s(196),n=s(736),i=s(609),l=s(307),o=s(697),r=s.n(o);class d extends l.Component{constructor(e){super(e),this.state={focusedInput:null}}setInputFocus=e=>{this.setState({focusedInput:e})};resetInputFocus=()=>{this.setState({focusedInput:null})};render(){const{index:e,item:t,onChange:s,onDelete:l}=this.props,o=e=>{"Enter"===e.key&&e.preventDefault()},r=t.isEnabled?"":"staatic-disabled",d=e=>this.state.focusedInput===e?"staatic-focused":"";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("input",{type:"checkbox",defaultChecked:t.isEnabled,onChange:t=>s(e,"isEnabled",t.target.checked),onKeyDown:o}),(0,a.createElement)("input",{type:"text",value:t.path,placeholder:(0,n.__)("Original path","staatic"),className:`staatic-value ${r} ${d("path")}`,onChange:t=>s(e,"path",t.target.value),onKeyDown:o,onFocus:()=>this.setInputFocus("path"),onBlur:this.resetInputFocus}),(0,a.createElement)("input",{type:"text",value:t.redirectUrl,placeholder:(0,n.__)("Redirect URL","staatic"),className:`staatic-value ${r} ${d("redirectUrl")}`,onChange:t=>s(e,"redirectUrl",t.target.value),onKeyDown:o,onFocus:()=>this.setInputFocus("redirectUrl"),onBlur:this.resetInputFocus}),(0,a.createElement)("select",{value:t.statusCode,className:r,onChange:t=>s(e,"statusCode",t.target.value),onKeyDown:o},(0,a.createElement)("option",null),(0,a.createElement)("option",{value:"301"},"301 Moved Permanently"),(0,a.createElement)("option",{value:"302"},"302 Found"),(0,a.createElement)("option",{value:"307"},"307 Temporary Redirect"),(0,a.createElement)("option",{value:"308"},"308 Permanent Redirect")),(0,a.createElement)("button",{onClick:t=>{t.preventDefault(),l(e)},className:"staatic-delete"},(0,a.createElement)(i.Dashicon,{icon:"trash"}),(0,n.__)("Delete","staatic")))}}d.propTypes={index:r().number.isRequired,item:r().object.isRequired};var c=s(934),h=s(234);class u extends l.Component{static format=["path","redirectUrl","statusCode"];static defaultStatusCode="302";constructor(e){super(...arguments),this.state={items:this.getItems(),editAsText:!1},this.handleToggleEditMode=this.handleToggleEditMode.bind(this),this.handleChange=this.handleChange.bind(this),this.handleDelete=this.handleDelete.bind(this)}componentDidMount(){document.getElementById(this.props.name).style.display="none"}componentDidUpdate(e,t){t.items!==this.state.items&&this.updateItems()}getItems(){const e=document.getElementById(this.props.name).value,t=(0,c.Z)(e,u.format).map((e=>({isEnabled:"true"===e.isEnabled,path:e.path||"",redirectUrl:e.redirectUrl||"",statusCode:e.statusCode||u.defaultStatusCode}))).filter((e=>e.path));return 0===t.length&&t.push({isEnabled:!0,path:"",redirectUrl:"",statusCode:u.defaultStatusCode}),t}updateItems(){const e=this.state.items.map((e=>({isEnabled:e.isEnabled?"true":"false",path:e.path,redirectUrl:e.redirectUrl,statusCode:e.statusCode===u.defaultStatusCode?"":e.statusCode}))).filter((e=>e.path));document.getElementById(this.props.name).value=(0,h.Z)(e,u.format)}handleToggleEditMode(){document.getElementById(this.props.name).style.display=this.state.editAsText?"none":"inline-block",this.state.editAsText&&this.setState({items:this.getItems()}),this.setState({editAsText:!this.state.editAsText})}handleAddItem(){this.setState({items:[...this.state.items,{isEnabled:!0,path:"",redirectUrl:"",statusCode:u.defaultStatusCode}]})}handleChange(e,t,s){const a=[...this.state.items];a[e][t]=s,this.setState({items:a})}handleDelete(e){const t=[...this.state.items];t.splice(e,1),this.setState({items:t})}render(){return this.state.editAsText?(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Visual mode","staatic"))):(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Text mode","staatic"))),(0,a.createElement)("div",{className:"staatic-list"},this.state.items.map(((e,t)=>(0,a.createElement)("div",{key:t,className:"staatic-item staatic-redirect-item"},(0,a.createElement)(d,{index:t,item:e,onChange:this.handleChange,onDelete:this.handleDelete})))),(0,a.createElement)("button",{className:"staatic-add",onClick:e=>{e.preventDefault(),this.handleAddItem()}},(0,a.createElement)(i.Dashicon,{icon:"plus"}),(0,n.__)("Add Redirect","staatic"))))}}u.propTypes={name:r().string.isRequired};const p=u},723:(e,t,s)=>{"use strict";s.r(t),s.d(t,{RetainPaths:()=>u,default:()=>p});var a=s(196),n=s(736),i=s(609),l=s(307),o=s(697),r=s.n(o);class d extends l.Component{render(){const{index:e,item:t,onChange:s,onDelete:l}=this.props,o=e=>{"Enter"===e.key&&e.preventDefault()},r=t.isEnabled?"":"staatic-disabled";return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("input",{type:"checkbox",defaultChecked:t.isEnabled,onChange:t=>s(e,"isEnabled",t.target.checked),onKeyDown:o}),(0,a.createElement)("input",{type:"text",value:t.path,placeholder:(0,n.__)("Path","staatic"),className:`staatic-value ${r}`,onChange:t=>s(e,"path",t.target.value),onKeyDown:o}),(0,a.createElement)("button",{onClick:t=>{t.preventDefault(),l(e)},className:"staatic-delete"},(0,a.createElement)(i.Dashicon,{icon:"trash"}),(0,n.__)("Delete","staatic")))}}d.propTypes={index:r().number.isRequired,item:r().object.isRequired};var c=s(934),h=s(234);class u extends l.Component{static format=["path"];constructor(e){super(...arguments),this.state={items:this.getItems(),editAsText:!1},this.handleToggleEditMode=this.handleToggleEditMode.bind(this),this.handleChange=this.handleChange.bind(this),this.handleDelete=this.handleDelete.bind(this)}componentDidMount(){document.getElementById(this.props.name).style.display="none"}componentDidUpdate(e,t){t.items!==this.state.items&&this.updateItems()}getItems(){const e=document.getElementById(this.props.name).value,t=(0,c.Z)(e,u.format).map((e=>({isEnabled:"true"===e.isEnabled,path:e.path||""}))).filter((e=>e.path));return 0===t.length&&t.push({isEnabled:!0,path:""}),t}updateItems(){const e=this.state.items.map((e=>({isEnabled:e.isEnabled?"true":"false",path:e.path}))).filter((e=>e.path));document.getElementById(this.props.name).value=(0,h.Z)(e,u.format)}handleToggleEditMode(){document.getElementById(this.props.name).style.display=this.state.editAsText?"none":"inline-block",this.state.editAsText&&this.setState({items:this.getItems()}),this.setState({editAsText:!this.state.editAsText})}handleAddItem(){this.setState({items:[...this.state.items,{isEnabled:!0,path:""}]})}handleChange(e,t,s){const a=[...this.state.items];a[e][t]=s,this.setState({items:a})}handleDelete(e){const t=[...this.state.items];t.splice(e,1),this.setState({items:t})}render(){return this.state.editAsText?(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Visual mode","staatic"))):(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-list-toggle"},(0,a.createElement)("a",{onClick:this.handleToggleEditMode},(0,n.__)("Text mode","staatic"))),(0,a.createElement)("div",{className:"staatic-list"},this.state.items.map(((e,t)=>(0,a.createElement)("div",{key:t,className:"staatic-item"},(0,a.createElement)(d,{index:t,item:e,onChange:this.handleChange,onDelete:this.handleDelete})))),(0,a.createElement)("button",{className:"staatic-add",onClick:e=>{e.preventDefault(),this.handleAddItem()}},(0,a.createElement)(i.Dashicon,{icon:"plus"}),(0,n.__)("Add Path","staatic"))))}}u.propTypes={name:r().string.isRequired};const p=u},421:(e,t,s)=>{"use strict";s.r(t),s.d(t,{S3Endpoint:()=>r,default:()=>d});var a=s(196),n=s(736),i=s(307),l=s(697),o=s.n(l);class r extends i.Component{constructor(e){super(e),this.providers=[{name:"aws",label:"Amazon S3 ("+(0,n.__)("automatic","staatic")+")"},{name:"custom",label:(0,n.__)("Custom endpoint","staatic")}],this.setInitialState()}setInitialState(){const e=document.getElementById(this.props.name).value;this.state={provider:e?"custom":"aws",endpoint:e}}componentDidMount(){document.getElementById(this.props.name).style.display="none"}componentDidUpdate(){this.updateExternalValue()}updateExternalValue(){document.getElementById(this.props.name).value=this.state.endpoint}handleProviderChange(e){this.setState({provider:e,endpoint:""})}handleEndpointChange(e){this.setState({endpoint:e})}render(){return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"staatic-s3-endpoint"},(0,a.createElement)("select",{value:this.state.provider,onChange:e=>this.handleProviderChange(e.target.value)},(0,a.createElement)("option",null),this.providers.map((e=>(0,a.createElement)("option",{key:e.name,value:e.name},e.label)))),"custom"===this.state.provider?(0,a.createElement)("input",{className:"regular-text code",type:"text",value:this.state.endpoint,onChange:e=>this.handleEndpointChange(e.target.value),placeholder:"https://"}):null))}}r.propTypes={name:o().string.isRequired};const d=r},473:(e,t,s)=>{"use strict";s.r(t),s.d(t,{SftpStatus:()=>h,default:()=>u});var a=s(196),n=s(989),i=s.n(n),l=s(307),o=s(609),r=s(736),d=s(697),c=s.n(d);class h extends l.Component{constructor(e){super(...arguments),this.hostInput=document.getElementById(this.props.host),this.portInput=document.getElementById(this.props.port),this.usernameInput=document.getElementById(this.props.username),this.passwordInput=document.getElementById(this.props.password),this.sshKeyInput=document.getElementById(this.props.sshKey),this.sshKeyPasswordInput=document.getElementById(this.props.sshKeyPassword),this.host=this.hostInput.value,this.port=this.portInput.value,this.username=this.usernameInput.value,this.password=this.passwordInput.value,this.sshKey=this.sshKeyInput.value,this.sshKeyPassword=this.sshKeyPasswordInput.value,this.state={loading:!1,error:!1,status:null},this.updateStatus=this.updateStatus.bind(this)}componentDidMount(){this.bindInputs(),this.setupIntersectionObserver()}bindInputs(){this.hostInput.addEventListener("change",(e=>this.handleHostInput(e))),this.portInput.addEventListener("change",(e=>this.handlePortInput(e))),this.usernameInput.addEventListener("change",(e=>this.handleUsernameInput(e))),this.passwordInput.addEventListener("change",(e=>this.handlePasswordInput(e))),this.sshKeyInput.addEventListener("change",(e=>this.handleSshKeyInput(e))),this.sshKeyPasswordInput.addEventListener("change",(e=>this.handleSshKeyPasswordInput(e)))}componentWillUnmount(){this.observer&&this.observer.disconnect()}setupIntersectionObserver(){this.observer=new IntersectionObserver((e=>{e.forEach((e=>{e.isIntersecting&&(this.updateStatus(),this.observer.unobserve(this.usernameInput))}))}),{root:null,threshold:.1}),this.observer.observe(this.usernameInput)}handleHostInput(e){const{value:t}=e.target;this.host=t,this.updateStatus()}handlePortInput(e){const{value:t}=e.target;this.port=t,this.updateStatus()}handleUsernameInput(e){const{value:t}=e.target;this.username=t,this.updateStatus()}handlePasswordInput(e){const{value:t}=e.target;this.password=t,this.updateStatus()}handleSshKeyInput(e){const{value:t}=e.target;this.sshKey=t,this.updateStatus()}handleSshKeyPasswordInput(e){const{value:t}=e.target;this.sshKeyPassword=t,this.updateStatus()}updateStatus(){this.host&&this.port&&this.username&&(this.password||this.sshKey)&&(this.setState({loading:!0,error:!1}),i()({path:"staatic-sftp/v1/sftp-status",method:"POST",data:{host:this.host,port:this.port,username:this.username,password:this.password,sshKey:this.sshKey,sshKeyPassword:this.sshKeyPassword}}).then((({status:e})=>{this.setState({loading:!1,status:e})})).catch((e=>{this.setState({loading:!1,error:!0}),console.error(e)})))}render(){const{instanceId:e}=this.props;if(this.state.error)return(0,a.createElement)("div",{className:"staatic-sftp-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"warning"}),(0,r.__)("Unable to verify connection status, please try again later.","staatic")));if(this.state.loading)return(0,a.createElement)("div",{className:"staatic-sftp-status"},(0,a.createElement)("p",null,(0,a.createElement)(o.Dashicon,{icon:"update",className:"spin"}),(0,r.__)("Verifying connection status...","staatic")));const{status:t}=this.state;return t?(0,a.createElement)("div",{className:"staatic-sftp-status"},(0,a.createElement)("p",{className:t.success?"staatic-success":"staatic-error"},(0,a.createElement)(o.Dashicon,{icon:t.success?"yes":"no"}),t.message),t.detail?(0,a.createElement)("p",{className:"staatic-detail"},t.detail):""):null}}h.propTypes={host:c().string.isRequired,port:c().string.isRequired,username:c().string.isRequired,password:c().string,sshKey:c().string,sshKeyPassword:c().string};const u=h},934:(e,t,s)=>{"use strict";function a(e,t){const s=[],a=["isEnabled",...t];return e.trim().split("\n").forEach((e=>{let t=!1,n=!1,i="",l=[],o=!0;e.startsWith("#")&&(o=!1,e=e.substring(1).trim());for(let s of e)n?(i+=s,n=!1):"\\"===s?n=!0:'"'!==s||n?" "!==s||t?i+=s:(l.push(i),i=""):t=!t;l.push(i),l.unshift(o.toString());const r=a.reduce(((e,t,s)=>(e[t]=s<l.length?l[s]:null,e)),{});s.push(r)})),s}s.d(t,{Z:()=>a})},234:(e,t,s)=>{"use strict";function a(e,t){const s=["isEnabled",...t].filter(((e,t,s)=>s.indexOf(e)===t));let a="";return e.forEach((e=>{let t=[];"false"!==e.isEnabled||t.push("#"),s.forEach((s=>{if("isEnabled"!==s){let a=e[s]||"";a=a.replace(/"/g,'\\"'),(a.indexOf(" ")>=0||a.indexOf('\\"')>=0)&&(a=`"${a}"`),t.push(a)}})),a+=t.join(" ").trim()+"\n"})),a.trim()}s.d(t,{Z:()=>a})},703:(e,t,s)=>{"use strict";var a=s(414);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,s,n,i,l){if(l!==a){var o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function t(){return e}e.isRequired=e;var s={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return s.PropTypes=s,s}},697:(e,t,s)=>{e.exports=s(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},323:(e,t,s)=>{var a={"./AdditionalPaths/index.js":369,"./CrawlItems/index.js":641,"./DestinationUrl/index.js":845,"./ExcludeUrls/index.js":713,"./GithubStatus/index.js":143,"./NetlifyStatus/index.js":996,"./PublicationLogs/index.js":325,"./PublicationStatus/index.js":27,"./RedirectItems/index.js":181,"./RetainPaths/index.js":723,"./S3Endpoint/index.js":421,"./SftpStatus/index.js":473};function n(e){var t=i(e);return s(t)}function i(e){if(!s.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]}n.keys=function(){return Object.keys(a)},n.resolve=i,e.exports=n,n.id=323},196:e=>{"use strict";e.exports=window.React},989:e=>{"use strict";e.exports=window.wp.apiFetch},609:e=>{"use strict";e.exports=window.wp.components},307:e=>{"use strict";e.exports=window.wp.element},736:e=>{"use strict";e.exports=window.wp.i18n}},t={};function s(a){var n=t[a];if(void 0!==n)return n.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,s),i.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";const e=window.wp.domReady;var t=s.n(e),a=s(307);class n{constructor(){this.settings=[]}setup(e){this.findSettings(),this.toggleRelevantSettingsFor(e.value),e.addEventListener("change",(e=>{this.toggleRelevantSettingsFor(e.target.value)}))}findSettings(){document.querySelectorAll("#staatic-settings tr").forEach(((e,t)=>{e.classList.contains("staatic_deployment_method")||e.classList.forEach((t=>{const s=t.match(/^staatic_(.+?)_(.+)$/);s&&this.settings.push({name:s[0],group:s[1],element:e})}))}))}toggleRelevantSettingsFor(e){this.settings.forEach((t=>{const s=t.group===e;t.element.style.display=s?"":"none"}))}}var i=s(196);t()((function(){const e=document.querySelector("select#staatic_deployment_method");var t;e&&(new n).setup(e),t=a.createRoot,document.querySelectorAll("[data-staatic-component]").forEach((e=>{const a=s(323)(`./${e.dataset.staaticComponent}/index.js`).default;t(e).render((0,i.createElement)(a,{...e.dataset}))}))}))})()})();