"use strict";(self.webpackJSONPwpmdb=self.webpackJSONPwpmdb||[]).push([[970],{46970:(e,t,l)=>{l.d(t,{A:()=>i});var n=l(52888),r=l(82511),a=l(45494),s=l(95274);const i=e=>{var t="exclude-files-".concat(e.type),l=e=>{var t=e.type,l=(0,r.d4)(e=>e.migrations),i=l.current_migration,p=l.local_site,u=l.remote_site;return n.createElement("p",null,(0,s.Ay)((0,a.nv)((0,a.__)('Use <a href="%s" target="_blank" rel="noopener noreferrer">gitignore patterns</a> to exclude files relative to <code>%s</code>',"wp-migrate-db"),"https://deliciousbrains.com/wp-migrate-db-pro/doc/ignored-files/",(()=>{var e,l,n,r,a,s="pull"===i.intent,c=s?u:p,d=c.site_details,o=d.themes_path,m=d.plugins_path,g=d.muplugins_path,_=d.content_dir,h=s?c.path:c.this_path,v=(e,t)=>void 0===e?null:e.replace(t,"").replace(/^\/|\/$/g,"");switch(t){case"themes":return null!==(e=v(o,h))&&void 0!==e?e:"wp-content/themes";case"plugins":return null!==(l=v(m,h))&&void 0!==l?l:"wp-content/plugins";case"muplugins":return null!==(n=v(g,h))&&void 0!==n?n:"wp-content/mu-plugins";case"media":return null!==(r=v(s?c.wp_upload_dir:c.this_wp_upload_dir,h))&&void 0!==r?r:"wp-content/uploads";case"others":return null!==(a=v(_,h))&&void 0!==a?a:"wp-content";default:return""}})())))};return n.createElement(n.Fragment,null,n.createElement("h4",{className:"exclude-files-title",id:t},(0,s.Ay)((0,a.nv)((0,a.__)('Excluded Files<span class="screen-reader-text"> %s</span>',"wp-migrate-db"),e.type))),n.createElement(l,{type:e.type}),n.createElement("textarea",{onChange:t=>{e.excludesUpdater(t.target.value,e.type)},value:e.excludes||"","aria-labelledby":t}))}}}]);