Files
vuefilemanager/public/js/chunks/pages.js
2022-03-02 07:47:10 +01:00

1 line
24 KiB
JavaScript
Vendored

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4331],{3485:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".preview-list-icon line,.preview-list-icon path{color:inherit}",""]);const n=s},3822:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".preview-list-icon line,.preview-list-icon rect{color:inherit}",""]);const n=s},5063:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".mobile-header[data-v-17905508]{background:#fff;display:none;padding:10px 0;position:-webkit-sticky;position:sticky;text-align:center;top:0;z-index:6}.mobile-header>div[data-v-17905508]{align-self:center;flex-grow:1;white-space:nowrap}.mobile-header .go-back[data-v-17905508]{text-align:left}.mobile-header .location-name[data-v-17905508]{color:#1b2539;display:inline-block;font-size:.9375em;font-weight:700;line-height:1;max-width:220px;overflow:hidden;text-align:center;text-overflow:ellipsis;vertical-align:middle;width:100%}.mobile-header .mobile-menu[data-v-17905508]{text-align:right}.mobile-header .icon[data-v-17905508]{margin-top:-4px;vertical-align:middle}@media only screen and (max-width:690px){.mobile-header[data-v-17905508]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-17905508]{background:#151515}.dark .mobile-header .location-name[data-v-17905508]{color:#bec6cf}",""]);const n=s},6798:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".color-label.purple[data-v-d470f17c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-d470f17c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-d470f17c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-d470f17c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const n=s},2384:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".empty-page-content[data-v-a2a9a508]{align-items:center;display:flex;height:100%;text-align:center;width:100%}.empty-page-content .content[data-v-a2a9a508]{margin:0 auto;max-width:360px}.empty-page-content .content[data-v-a2a9a508] .button-base{margin:0 auto}.empty-page-content .icon circle[data-v-a2a9a508],.empty-page-content .icon line[data-v-a2a9a508],.empty-page-content .icon path[data-v-a2a9a508],.empty-page-content .icon polyline[data-v-a2a9a508]{stroke:#00bc7e}.empty-page-content .header[data-v-a2a9a508]{margin-bottom:25px;margin-top:15px}.empty-page-content .title[data-v-a2a9a508]{font-size:1.4375em;font-weight:700;padding-bottom:5px}.empty-page-content .description[data-v-a2a9a508]{font-size:1em;font-weight:500}",""]);const n=s},6899:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".input-wrapper[data-v-f06bd638]{display:flex;width:100%}.input-wrapper .input-label[data-v-f06bd638]{color:#1b2539}.input-wrapper .switch-content[data-v-f06bd638]{width:100%}.input-wrapper .switch-content[data-v-f06bd638]:last-child{width:80px}.switch[data-v-f06bd638]{background:#f1f1f5;height:28px;position:relative;width:50px}.switch[data-v-f06bd638],.switch .switch-button[data-v-f06bd638]{border-radius:50px;display:block;transition:all .3s ease}.switch .switch-button[data-v-f06bd638]{background:#fff;box-shadow:0 2px 4px rgba(37,38,94,.1);cursor:pointer;height:22px;left:3px;position:absolute;top:3px;width:22px}.switch.active .switch-button[data-v-f06bd638]{left:25px}.dark .switch[data-v-f06bd638]{background:#1e2024}.dark .popup-wrapper .switch[data-v-f06bd638]{background:#25272c}",""]);const n=s},5377:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".page-header[data-v-719f11ff]{align-items:center;background:#fff;display:flex;padding-bottom:20px;padding-top:20px;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:9}.page-header .title[data-v-719f11ff]{color:#1b2539;font-size:1.125em;font-weight:700}.page-header .go-back[data-v-719f11ff]{cursor:pointer;margin-right:10px}.page-header .go-back svg[data-v-719f11ff]{margin-top:-4px;vertical-align:middle}@media only screen and (max-width:960px){.page-header .title[data-v-719f11ff]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-719f11ff]{display:none}}.dark .page-header[data-v-719f11ff]{background:#151515}.dark .page-header .title[data-v-719f11ff]{color:#bec6cf}.dark .page-header .icon path[data-v-719f11ff]{fill:#00bc7e}",""]);const n=s},820:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".text-label[data-v-b266b276]{color:#afafaf;display:block;font-size:.75em;font-weight:700;margin-bottom:20px}.dark .text-label[data-v-b266b276]{color:#00bc7e}",""]);const n=s},9611:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".table-row[data-v-4f806708]{border-radius:8px}.table-row[data-v-4f806708]:hover{background:#f4f5f6}.table-row .table-cell[data-v-4f806708]{padding-bottom:15px;padding-top:15px}.table-row .table-cell[data-v-4f806708]:first-child{padding-left:15px}.table-row .table-cell[data-v-4f806708]:last-child{padding-right:15px;text-align:right}.table-row .table-cell span[data-v-4f806708]{font-size:1em;font-weight:700}",""]);const n=s},5987:(t,a,e)=>{e.d(a,{Z:()=>n});var i=e(3645),s=e.n(i)()((function(t){return t[1]}));s.push([t.id,".page-link[data-v-4e214414]{@apply block flex h-8 w-8 cursor-pointer items-center justify-center rounded-lg text-sm font-bold transition duration-200 hover:bg-light-background}",""]);const n=s},6354:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"CloudPlusIcon"};var s=e(3379),n=e.n(s),o=e(3485),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 17 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("path",{attrs:{d:"M14.2729998,10.7729998 C15.6774712,10.0073227 16.384111,8.38688297 15.9895447,6.83668332 C15.5949785,5.28648367 14.1996249,4.20105605 12.5999998,4.19999993 L11.7179998,4.19999993 C11.1377566,1.9556703 9.23470173,0.300843012 6.93154234,0.0378706728 C4.62838295,-0.225101666 2.40127934,0.958148431 1.33005562,3.01391529 C0.258831904,5.06968215 0.564955244,7.57295196 2.09999996,9.30999984",id:"Path"}}),t._v(" "),e("line",{attrs:{x1:"8.5",y1:"7",x2:"8.5",y2:"12",id:"Path"}}),t._v(" "),e("line",{attrs:{x1:"6",y1:"9.5",x2:"11",y2:"9.5",id:"Path"}})])}),[],!1,null,null,null).exports},2617:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"SortingIcon"};var s=e(3379),n=e.n(s),o=e(3822),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("svg",{staticClass:"preview-list-icon",attrs:{fill:"none",stroke:"currentColor","stroke-width":"1.5","fill-rule":"evenodd","stroke-linecap":"round","stroke-linejoin":"round",width:"15px",height:"15px",viewBox:"0 0 20 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[e("rect",{attrs:{x:"9.77777778",y:"0",width:"6.22222222",height:"6.22222222"}}),t._v(" "),e("rect",{attrs:{x:"9.77777778",y:"9.77777778",width:"6.22222222",height:"6.22222222"}}),t._v(" "),e("line",{attrs:{x1:"0",y1:"2",x2:"6",y2:"2"}}),t._v(" "),e("line",{attrs:{x1:"0",y1:"8",x2:"6",y2:"8"}}),t._v(" "),e("line",{attrs:{x1:"0",y1:"14",x2:"6",y2:"14"}})])}),[],!1,null,null,null).exports},3911:(t,a,e)=>{e.d(a,{Z:()=>l});var i=e(9101),s=e(6354),n=e(2617);const o={name:"MobileActionButton",props:["icon"],components:{UserCheckIcon:i._uN,HardDriveIcon:i.zvn,UploadCloudIcon:i.jkV,LinkIcon:i.xPt,Trash2Icon:i.Bf1,UsersIcon:i.oyc,CheckSquareIcon:i.HQu,DollarSignIcon:i.bkH,CreditCardIcon:i.ciH,FolderPlusIcon:i.f1I,RefreshCwIcon:i.Iyk,CloudPlusIcon:s.Z,UserPlusIcon:i.oLu,DownloadIcon:i._8t,SortingIcon:n.Z,XSquareIcon:i.Zdw,FilterIcon:i.k1n,SearchIcon:i.W1M,CheckIcon:i.nQG,TrashIcon:i.XHJ,PlusIcon:i.pOD,CopyIcon:i.TIy,ListIcon:i.DE2,GridIcon:i.pso}};const l=(0,e(1900).Z)(o,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("button",{staticClass:"mr-2 inline-block rounded-xl bg-light-background py-2 px-3.5 dark:bg-2x-dark-foreground"},[e("div",{staticClass:"flex items-center"},["hard-drive"===t.icon?e("hard-drive-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"upload-cloud"===t.icon?e("upload-cloud-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"share"===t.icon?e("link-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash2"===t.icon?e("trash2-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"users"===t.icon?e("users-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-check"===t.icon?e("user-check-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"search"===t.icon?e("search-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"refresh"===t.icon?e("refresh-cw-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"download"===t.icon?e("download-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"copy"===t.icon?e("copy-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"filter"===t.icon?e("filter-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"credit-card"===t.icon?e("credit-card-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"folder-plus"===t.icon?e("folder-plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th-list"===t.icon?e("list-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"trash"===t.icon?e("trash-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"th"===t.icon?e("grid-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"user-plus"===t.icon?e("user-plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"plus"===t.icon?e("plus-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check-square"===t.icon?e("check-square-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"x-square"===t.icon?e("x-square-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"check"===t.icon?e("check-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"dollar-sign"===t.icon?e("dollar-sign-icon",{staticClass:"vue-feather dark-text-theme",attrs:{size:"15"}}):t._e(),t._v(" "),"preview-sorting"===t.icon?e("sorting-icon",{staticClass:"vue-feather dark-text-theme preview-sorting"}):t._e(),t._v(" "),"cloud-plus"===t.icon?e("cloud-plus-icon",{staticClass:"vue-feather dark-text-theme preview-sorting"}):t._e(),t._v(" "),t.$slots.default?e("span",{staticClass:"ml-2 text-sm font-bold"},[t._t("default")],2):t._e()],1)])}),[],!1,null,null,null).exports},3802:(t,a,e)=>{e.d(a,{Z:()=>c});e(826);var i=e(9101);const s={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:i.wyc,MenuIcon:i.Oqj},methods:{goBack:function(){this.$router.back()}}};var n=e(3379),o=e.n(n),l=e(5063),r={insert:"head",singleton:!1};o()(l.Z,r);l.Z.locals;const c=(0,e(1900).Z)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("header",{staticClass:"mobile-header"},[e("div",{staticClass:"go-back",on:{click:t.goBack}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),t._v(" "),e("div",{staticClass:"location-name"},[t._v(t._s(t.title))]),t._v(" "),e("div",{staticClass:"mobile-menu",on:{click:function(a){return t.$showMobileMenu("user-navigation")}}},[e("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"17905508",null).exports},3426:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"ColorLabel",props:["color"]};var s=e(3379),n=e.n(s),o=e(6798),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement;return(t._self._c||a)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"d470f17c",null).exports},6022:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"SwitchInput",props:["label","name","state","info","input"],data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched)}},mounted:function(){this.isSwitched=this.state}};var s=e(3379),n=e.n(s),o=e(6899),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"switch-content"},[t.label?e("label",{staticClass:"input-label"},[t._v(" "+t._s(t.label)+": ")]):t._e(),t._v(" "),t.info?e("small",{staticClass:"input-info"},[t._v("\n "+t._s(t.info)+"\n ")]):t._e()]),t._v(" "),e("div",{staticClass:"switch-content text-right"},[e("div",{staticClass:"switch",class:{active:t.state},on:{click:t.changeState}},[e("div",{staticClass:"switch-button"})])])])}),[],!1,null,"f06bd638",null).exports},522:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:e(9101).wyc}};var s=e(3379),n=e.n(s),o=e(5377),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"page-header"},[t.canBack?e("div",{staticClass:"go-back",on:{click:function(a){return t.$router.back()}}},[e("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),e("div",{staticClass:"content"},[e("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"719f11ff",null).exports},1726:(t,a,e)=>{e.d(a,{Z:()=>r});const i={name:"SectionTitle"};var s=e(3379),n=e.n(s),o=e(820),l={insert:"head",singleton:!1};n()(o.Z,l);o.Z.locals;const r=(0,e(1900).Z)(i,(function(){var t=this,a=t.$createElement;return(t._self._c||a)("b",{staticClass:"text-label"},[t._t("default")],2)}),[],!1,null,"b266b276",null).exports},8497:(t,a,e)=>{e.d(a,{Z:()=>v});var i=e(9101);const s={props:["data"],computed:{normalizedColumns:function(){return this.data.id&&delete this.data.id,Object.values(this.data)}}};var n=e(3379),o=e.n(n),l=e(9611),r={insert:"head",singleton:!1};o()(l.Z,r);l.Z.locals;var c=e(1900);const d=(0,c.Z)(s,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("tr",{staticClass:"table-row"},t._l(t.normalizedColumns,(function(a,i){return e("td",{key:i,staticClass:"table-cell"},[e("span",[t._v(t._s(a))])])})),0)}),[],!1,null,"4f806708",null).exports;var p=e(9669),u=e.n(p);const h={name:"DatatableWrapper",props:["paginator","tableData","columns","scope","api"],components:{ChevronRightIcon:i.XCv,ChevronLeftIcon:i.wyc,DatatableCell:d,ChevronUpIcon:i.g8U},computed:{hasData:function(){return this.data&&this.data.data&&this.data.data.length>0},floatPages:function(){return[this.pageIndex-1,this.pageIndex,this.pageIndex+1]}},data:function(){return{data:void 0,isLoading:!0,pageIndex:1,filter:{sort:"DESC",field:void 0}}},methods:{goToPage:function(t){t>this.data.meta.last_page||0===t||(this.pageIndex=t,this.getPage(t))},sort:function(t,a){a&&(this.filter.field=t,"DESC"===this.filter.sort?this.filter.sort="ASC":"ASC"===this.filter.sort&&(this.filter.sort="DESC"),this.getPage(this.pageIndex))},getPage:function(t){var a=this;this.URI=this.api,this.paginator&&(this.URI=this.URI+"?page="+t),this.filter.field&&(this.URI=this.URI+(this.paginator?"&":"?")+"sort="+this.filter.field+"&direction="+this.filter.sort),this.isLoading=!0,u().get(this.URI).then((function(t){a.data=t.data,a.$emit("data",t.data)})).catch((function(){return a.$isSomethingWrong()})).finally((function(){a.$emit("init",!0),a.isLoading=!1}))}},created:function(){this.api&&this.getPage(this.pageIndex),this.tableData&&(this.data=this.tableData,this.isLoading=!1)}};var g=e(5987),f={insert:"head",singleton:!1};o()(g.Z,f);g.Z.locals;const v=(0,c.Z)(h,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"w-full"},[t.hasData?e("table",{staticClass:"w-full"},[e("thead",[e("tr",{staticClass:"whitespace-nowrap"},t._l(t.columns,(function(a,i){return a.hidden?t._e():e("th",{key:i,staticClass:"text-left",class:{"sortable cursor-pointer":a.sortable,"text-right":Object.values(t.columns).length-1===i},on:{click:function(e){return t.sort(a.field,a.sortable)}}},[e("span",{staticClass:"text-xs text-gray-400 dark:text-gray-500"},[t._v("\n "+t._s(a.label)+"\n ")]),t._v(" "),a.sortable?e("chevron-up-icon",{staticClass:"vue-feather inline-block text-gray-300 dark:text-gray-500",class:{"arrow-down":"ASC"===t.filter.sort},attrs:{size:"12"}}):t._e()],1)})),0)]),t._v(" "),e("tbody",{staticClass:"table-body"},[t._l(t.data.data,(function(a){return t._t("default",(function(){return[e("DatatableCell",{key:a.id,attrs:{data:a}})]}),{row:a})}))],2)]):t._e(),t._v(" "),t.isLoading||t.hasData?t._e():t._t("empty-page"),t._v(" "),t.paginator&&t.hasData?e("div",{staticClass:"mt-6 flex items-center justify-between"},[t.data.meta.total>15&&t.data.meta.last_page<=6?e("ul",{staticClass:"pagination flex items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t._l(t.data.meta.last_page,(function(a,i){return e("li",{key:i,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])])})),t._v(" "),e("li",{staticClass:"next inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),t.data.meta.total>15&&t.data.meta.last_page>6?e("ul",{staticClass:"pagination flex items-center"},[e("li",{staticClass:"previous inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":1===t.pageIndex},on:{click:function(a){return t.goToPage(t.pageIndex-1)}}},[e("chevron-left-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)]),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(1)}}},[e("a",{staticClass:"page-link"},[t._v(" 1 ")])]):t._e(),t._v(" "),t._l(5,(function(a,i){return t.pageIndex<5?e("li",{key:i,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex>=5?e("li",{staticClass:"inline-block p-1"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(t.floatPages,(function(a,i){return t.pageIndex>=5&&t.pageIndex<t.data.meta.last_page-3?e("li",{key:i,staticClass:"inline-block p-1",on:{click:function(e){return t.goToPage(a)}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===a}},[t._v("\n "+t._s(a)+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?e("li",{staticClass:"inline-block p-1"},[e("a",{staticClass:"page-link"},[t._v("...")])]):t._e(),t._v(" "),t._l(5,(function(a,i){return t.pageIndex>t.data.meta.last_page-4?e("li",{key:i,staticClass:"inline-block p-1",on:{click:function(a){t.goToPage(t.data.meta.last_page-(4-i))}}},[e("a",{staticClass:"page-link",class:{"bg-light-background dark:bg-4x-dark-foreground dark:text-gray-300":t.pageIndex===t.data.meta.last_page-(4-i)}},[t._v("\n "+t._s(t.data.meta.last_page-(4-i))+"\n ")])]):t._e()})),t._v(" "),t.pageIndex<t.data.meta.last_page-3?e("li",{staticClass:"inline-block p-1",on:{click:function(a){return t.goToPage(t.data.meta.last_page)}}},[e("a",{staticClass:"page-link"},[t._v("\n "+t._s(t.data.meta.last_page)+"\n ")])]):t._e(),t._v(" "),e("li",{staticClass:"next inline-block p-1"},[e("a",{staticClass:"page-link",class:{"cursor-default opacity-20":t.pageIndex===t.data.meta.last_page},on:{click:function(a){return t.goToPage(t.pageIndex+1)}}},[e("chevron-right-icon",{staticClass:"inline-block",attrs:{size:"14"}})],1)])],2):t._e(),t._v(" "),e("span",{staticClass:"text-xs text-gray-600 dark:text-gray-500"},[t._v("\n Showing "+t._s(t.data.meta.from)+" - "+t._s(t.data.meta.to)+" from "+t._s(t.data.meta.total)+" records\n ")])]):t._e()],2)}),[],!1,null,"4e214414",null).exports},7982:(t,a,e)=>{e.r(a),e.d(a,{default:()=>k});var i=e(8497),s=e(3911),n=e(9101);const o={name:"EmptyPageContent",props:["icon","title","description"],components:{SettingsIcon:n.ewm,FileTextIcon:n.zPP,FileIcon:n.aAW}};var l=e(3379),r=e.n(l),c=e(2384),d={insert:"head",singleton:!1};r()(c.Z,d);c.Z.locals;var p=e(1900);const u=(0,p.Z)(o,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"empty-page-content"},[e("div",{staticClass:"content"},[e("div",{staticClass:"icon inline-block"},["file"===t.icon?e("file-icon",{attrs:{size:"38"}}):t._e(),t._v(" "),"file-text"===t.icon?e("file-text-icon",{attrs:{size:"38"}}):t._e(),t._v(" "),"settings"===t.icon?e("settings-icon",{attrs:{size:"38"}}):t._e()],1),t._v(" "),e("div",{staticClass:"header"},[e("h1",{staticClass:"title"},[t._v(t._s(t.title))]),t._v(" "),e("h2",{staticClass:"description"},[t._v(t._s(t.description))])]),t._v(" "),t._t("default")],2)])}),[],!1,null,"a2a9a508",null).exports;var h=e(6022),g=e(3802),f=e(1726),v=e(6746),b=e(522),x=e(3426),_=e(7318);e(9669);const m={name:"Pages",components:{MobileActionButton:s.Z,EmptyPageContent:u,DatatableWrapper:i.Z,SectionTitle:f.Z,MobileHeader:g.Z,SwitchInput:h.Z,Trash2Icon:n.Bf1,PageHeader:b.Z,ButtonBase:v.Z,ColorLabel:x.Z,Edit2Icon:n.me4,Spinner:_.Z},data:function(){return{isLoading:!0,columns:[{label:this.$t("admin_pages.table.page"),field:"title",sortable:!0},{label:this.$t("admin_pages.table.slug"),field:"slug",sortable:!0},{label:this.$t("admin_pages.table.status"),field:"visibility",sortable:!0},{label:this.$t("admin_page_user.table.action"),sortable:!1}]}}};const k=(0,p.Z)(m,(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",[e("div",{staticClass:"card shadow-card"},[e("DatatableWrapper",{staticClass:"overflow-x-auto",attrs:{api:"/api/admin/pages",paginator:!1,columns:t.columns},on:{init:function(a){t.isLoading=!1}},scopedSlots:t._u([{key:"default",fn:function(a){var i=a.row;return[e("tr",{staticClass:"whitespace-nowrap border-b border-dashed border-light dark:border-opacity-5"},[e("td",{staticClass:"py-5 pr-3 md:pr-1"},[e("router-link",{staticClass:"cursor-pointer text-sm font-bold",attrs:{to:{name:"PageEdit",params:{slug:i.data.attributes.slug}},tag:"div"}},[t._v("\n "+t._s(i.data.attributes.title)+"\n ")])],1),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[t._v("\n "+t._s(i.data.attributes.slug)+"\n ")])]),t._v(" "),e("td",{staticClass:"px-3 md:px-1"},[e("span",{staticClass:"text-sm font-bold"},[e("SwitchInput",{staticClass:"switch",attrs:{state:i.data.attributes.visibility},on:{input:function(a){return t.$updateText("/admin/pages/"+i.data.id,"visibility",i.data.attributes.visibility)}},model:{value:i.data.attributes.visibility,callback:function(a){t.$set(i.data.attributes,"visibility",a)},expression:"row.data.attributes.visibility"}})],1)]),t._v(" "),e("td",{staticClass:"pl-3 text-right md:pl-1"},[e("div",{staticClass:"flex w-full justify-end space-x-2"},[e("router-link",{staticClass:"flex h-8 w-8 items-center justify-center rounded-md bg-light-background transition-colors hover:bg-green-100 dark:bg-2x-dark-foreground",attrs:{to:{name:"PageEdit",params:{slug:i.data.attributes.slug}}}},[e("Edit2Icon",{staticClass:"opacity-75",attrs:{size:"15"}})],1)],1)])])]}}])})],1)])}),[],!1,null,null,null).exports}}]);