(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{226:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(1),s=n(6),i=n(7),l=n(3),c=n(21),u=n(104);const f=({type:e="post"})=>{const t="fl-content",{query:n,listStyle:r}=Object(i.useAppState)(t),{setQuery:s,setListStyle:c}=Object(i.getAppActions)(t),f=u.a.query,d=()=>{const t={title:Object(a.__)("Title"),author:Object(a.__)("Author"),ID:Object(a.__)("Post ID"),date:Object(a.__)("Date Created"),modified:Object(a.__)("Date Modified")},i={any:Object(a.__)("Any"),publish:Object(a.__)("Published"),draft:Object(a.__)("Drafted"),pending:Object(a.__)("Pending"),future:Object(a.__)("Scheduled"),private:Object(a.__)("Private"),trash:Object(a.__)("Trashed")},d={ASC:Object(a.__)("Ascending"),DESC:Object(a.__)("Descending")},p={"":Object(a.__)("List"),thumb:Object(a.__)("Post Thumbnails")};return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.Filter,null,o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Status"),items:i,value:n.post_status,defaultValue:f.post_status,onChange:e=>s({...n,post_status:e})}),o.a.createElement(l.Filter.LabelsItem,{value:n.label,defaultValue:f.label,onChange:e=>s({...n,label:e})}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Display As"),items:p,value:r,defaultValue:u.a.listStyle,onChange:e=>c(e)}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Sort By"),items:t,value:n.orderby,defaultValue:f.orderby,onChange:e=>s({...n,orderby:e})}),o.a.createElement(l.Filter.RadioGroupItem,{title:Object(a.__)("Order"),items:d,value:n.order,defaultValue:u.a.query.order,onChange:e=>s({...n,order:e})}),o.a.createElement(l.Filter.Button,{onClick:()=>s(f)},Object(a.__)("Reset Filter"))),o.a.createElement(l.List.InlineCreate,{postType:e,onPostCreated:()=>s({...u.a.query,order:"DESC",orderby:"ID",key:(new Date).getTime()})}))};return o.a.createElement(l.Layout.Box,{outset:!0,padY:!1,style:{maxHeight:"100%",minHeight:0,flex:"1 1 auto"}},o.a.createElement(l.List.Posts,{query:{...n,post_type:e},listStyle:r,getItemProps:(e,n)=>e.id?{...n,to:{pathname:`/${t}/post/${e.id}`,state:{item:e}}}:n,before:o.a.createElement(d,null)}))};Object(c.addFilter)("fl-asst.list-item-actions","fl-assistant",((e,{item:t,listType:n})=>{if("post"===n){const n=e.findIndex((e=>"edit-post"===e.handle));if(n){const r=e[n];delete r.href,r.isShowing=!0,r.title=Object(a.__)("Edit Details"),r.to={pathname:`/fl-content/post/${t.id}`,state:{item:t}}}}return e}));var d=n(90);n(262),t.default=({baseURL:e})=>o.a.createElement(s.Switch,null,o.a.createElement(s.Route,{exact:!0,path:e},o.a.createElement(s.Redirect,{to:{pathname:`${e}/tab/post`}})),o.a.createElement(s.Route,{path:`${e}/tab/:tab`,component:p}),o.a.createElement(s.Route,{path:`${e}/post/new`,component:l.Page.CreatePost}),o.a.createElement(s.Route,{path:`${e}/post/:id`,component:l.Page.Post}));const p=()=>{const{contentTypes:e}=Object(i.getSystemConfig)(),t=()=>o.a.createElement(l.Layout.Tabs,{tabs:n,shouldHandleOverflow:!0}),n=(()=>{let t=[];return Object.keys(e).map((n=>{const r=e[n];t.push({handle:n,path:"/fl-content/tab/"+n,label:r.labels.plural,component:()=>o.a.createElement(f,{type:n})})})),t})();return o.a.createElement(l.Page,{id:"fl-asst-content-list-page",title:Object(a.__)("Content"),icon:o.a.createElement(d.a,{context:"sidebar"}),padY:!1,header:o.a.createElement(t,null),topContentStyle:{border:"none"},shouldScroll:!1,shouldShowBackButton:!1,showAsRoot:!0,onLoad:()=>{const e=document.querySelector(".fl-asst-filter .fluid-button");e&&e.focus()}},o.a.createElement(l.Layout.CurrentTab,{tabs:n}))}},26:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var o,a=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(a)?e:(o=0===a.indexOf("//")?a:0===a.indexOf("/")?n+a:r+a.replace(/^\.\//,""),"url("+JSON.stringify(o)+")")}))}},262:function(e,t,n){var r=n(263);"string"==typeof r&&(r=[[e.i,r,""]]);var o={sourceMap:!0,hmr:!0,transform:undefined,insertInto:void 0};n(9)(r,o);r.locals&&(e.exports=r.locals)},263:function(e,t,n){"use strict";n.r(t)},9:function(e,t,n){var r,o,a={},s=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===o&&(o=r.apply(this,arguments)),o}),i=function(e,t){return t?t.querySelector(e):document.querySelector(e)},l=function(e){var t={};return function(e,n){if("function"==typeof e)return e();if(void 0===t[e]){var r=i.call(this,e,n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}}(),c=null,u=0,f=[],d=n(26);function p(e,t){for(var n=0;n=0&&f.splice(t,1)}function y(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var r=function(){0;return n.nc}();r&&(e.attrs.nonce=r)}return v(t,e.attrs),h(e,t),t}function v(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function _(e,t){var n,r,o,a;if(t.transform&&e.css){if(!(a="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=a}if(t.singleton){var s=u++;n=c||(c=y(t)),r=j.bind(null,n,s,!1),o=j.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",v(t,e.attrs),h(e,t),t}(t),r=E.bind(null,n,t),o=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=w.bind(null,n),o=function(){m(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=b(e,t);return p(n,t),function(e){for(var r=[],o=0;o