/*! Build based on gin-vue-admin Time : 1776662816000 */ !function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t0?t.push.apply(t,e(T(n.children))):n.meta.title&&n.meta.title.indexOf(O.value)>-1&&t.push({label:n.meta.title,func:function(){return z(n)}})}),t},N=function(){var n,t,r={label:"跳转",children:[]},o=T((null===(n=q.asyncRouters[0])||void 0===n?void 0:n.children)||[]);(t=r.children).push.apply(t,e(o)),I.push(r)},U=function(){var n,t={label:"操作",children:[]},r=[{label:"亮色主题",func:function(){return K(!1)}},{label:"暗色主题",func:function(){return K(!0)}},{label:"退出登录",func:function(){return j.LoginOut()}}];(n=t.children).push.apply(n,e(r.filter(function(e){return e.label.indexOf(O.value)>-1}))),I.push(t)};N(),U();var z=function(e){var n,t,r=e.name,o={},i={};(null===(n=q.routeMap[r])||void 0===n?void 0:n.parameters)&&(null===(t=q.routeMap[r])||void 0===t||t.parameters.forEach(function(e){"query"===e.type?o[e.key]=e.value:i[e.key]=e.value})),r!==A.name&&(e.name.indexOf("http://")>-1||e.name.indexOf("https://")>-1?window.open(e.name):E.push({name:r,query:o,params:i}),M.value=!1)},K=function(e){_.toggleTheme(e)},L=function(){M.value=!1};return C({open:function(){M.value=!0}}),c(O,function(){I.length=0,N(),U()}),function(n,t){var r=d("el-button"),o=d("el-dialog");return f(),s(o,{modelValue:M.value,"onUpdate:modelValue":t[1]||(t[1]=function(e){return M.value=e}),width:"30%",class:"overlay","show-close":!1},{header:p(function(){return[x(h("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return O.value=e}),class:"quick-input",placeholder:"请输入你需要快捷到达的功能"},null,512),[[B,O.value]])]}),footer:p(function(){return[h("span",S,[w(r,{onClick:L},{default:p(function(){return e(t[2]||(t[2]=[k("关闭",-1)]))}),_:1})])]}),default:p(function(){return[(f(!0),m(b,null,y(I,function(e,n){return f(),m("div",{key:n},[e.children.length?(f(),m("div",V,g(e.label),1)):v("",!0),(f(!0),m(b,null,y(e.children,function(e,t){return f(),m("div",{key:n+"-"+t,class:"quick-item",onClick:e.func},g(e.label),9,D)}),128))])}),128))]}),_:1},8,["modelValue"])}}}),M={class:"flex items-center mx-4 gap-4"},O={class:"w-8 h-8 p-2 rounded-full flex items-center justify-center shadow border border-gray-200 dark:border-gray-600 cursor-pointer border-solid"},I={class:"w-8 h-8 p-2 rounded-full flex items-center justify-center shadow border border-gray-200 dark:border-gray-600 cursor-pointer border-solid"},T={class:"w-8 h-8 p-2 rounded-full flex items-center justify-center shadow border border-gray-200 dark:border-gray-600 cursor-pointer border-solid"},N={class:"w-8 h-8 p-2 rounded-full flex items-center justify-center shadow border border-gray-200 dark:border-gray-600 cursor-pointer border-solid"},U={class:"w-8 h-8 p-2 rounded-full flex items-center justify-center shadow border border-gray-200 dark:border-gray-600 cursor-pointer border-solid"};n("default",{__name:"tools",setup:function(e){var n=r(),t=a(!1),o=a(!1),i=function(){o.value=!0,j.emit("reload"),setTimeout(function(){o.value=!1},1e3)},l=function(){t.value=!0},u=a(""),c=a(),v=function(){c.value.open()};!function(){"WIN"===window.localStorage.getItem("osType")?u.value="Ctrl":u.value="⌘";window.addEventListener("keydown",function(e){e.ctrlKey&&"k"===e.key&&(e.preventDefault(),v())})}();var x=[{title:"1.clone项目和安装依赖",link:"https://www.bilibili.com/video/BV1jx4y1s7xx"},{title:"2.初始化项目",link:"https://www.bilibili.com/video/BV1sr421K7sv"},{title:"3.开启调试工具+创建初始化包",link:"https://www.bilibili.com/video/BV1iH4y1c7Na"},{title:"4.手动使用自动化创建功能",link:"https://www.bilibili.com/video/BV1UZ421T7fV"},{title:"5.使用已有表格创建业务",link:"https://www.bilibili.com/video/BV1NE4m1977s"},{title:"6.使用AI创建业务和创建数据源模式的可选项",link:"https://www.bilibili.com/video/BV17i421a7DE"},{title:"7.创建自己的后端方法",link:"https://www.bilibili.com/video/BV1Yw4m1k7fg"},{title:"8.新增一个前端页面",link:"https://www.bilibili.com/video/BV12y411i7oE"},{title:"9.配置一个前端二级页面",link:"https://www.bilibili.com/video/BV1ZM4m1y7i3"},{title:"10.配置一个前端菜单参数",link:"https://www.bilibili.com/video/BV1WS42197DZ"},{title:"11.菜单参数实战+动态菜单标题+菜单高亮配置",link:"https://www.bilibili.com/video/BV1NE4m1979c"},{title:"12.增加菜单可控按钮",link:"https://www.bilibili.com/video/BV1Sw4m1k746"},{title:"14.新增客户角色和其相关配置教学",link:"https://www.bilibili.com/video/BV1Ki421a7X2"},{title:"15.发布项目上线",link:"https://www.bilibili.com/video/BV1Lx4y1s77D"}];return function(e,r){var a=d("Film"),u=d("el-icon"),B=d("el-dropdown-item"),j=d("el-dropdown-menu"),V=d("el-dropdown"),D=d("el-tooltip"),S=d("Search"),z=d("Setting"),K=d("Refresh"),L=d("Sunny"),R=d("Moon");return f(),m("div",M,[w(D,{class:"",effect:"dark",content:"视频教程",placement:"bottom"},{default:p(function(){return[w(V,{onCommand:C(A)},{dropdown:p(function(){return[w(j,null,{default:p(function(){return[(f(),m(b,null,y(x,function(e){return w(B,{key:e.link,command:e.link},{default:p(function(){return[k(g(e.title),1)]}),_:2},1032,["command"])}),64))]}),_:1})]}),default:p(function(){return[h("span",O,[w(u,null,{default:p(function(){return[w(a)]}),_:1})])]}),_:1},8,["onCommand"])]}),_:1}),w(D,{class:"",effect:"dark",content:"搜索",placement:"bottom"},{default:p(function(){return[h("span",I,[w(u,{onClick:v},{default:p(function(){return[w(S)]}),_:1})])]}),_:1}),w(D,{class:"",effect:"dark",content:"系统设置",placement:"bottom"},{default:p(function(){return[h("span",T,[w(u,{onClick:l},{default:p(function(){return[w(z)]}),_:1})])]}),_:1}),w(D,{class:"",effect:"dark",content:"刷新",placement:"bottom"},{default:p(function(){return[h("span",N,[w(u,{class:_(o.value?"animate-spin":""),onClick:i},{default:p(function(){return[w(K)]}),_:1},8,["class"])])]}),_:1}),w(D,{class:"",effect:"dark",content:"切换主题",placement:"bottom"},{default:p(function(){return[h("span",U,[C(n).isDark?(f(),s(u,{key:0,onClick:r[0]||(r[0]=function(e){return C(n).toggleTheme(!1)})},{default:p(function(){return[w(L)]}),_:1})):(f(),s(u,{key:1,onClick:r[1]||(r[1]=function(e){return C(n).toggleTheme(!0)})},{default:p(function(){return[w(R)]}),_:1}))])]}),_:1}),w(E,{drawer:t.value,"onUpdate:drawer":r[2]||(r[2]=function(e){return t.value=e})},null,8,["drawer"]),w(q,{ref_key:"command",ref:c},null,512)])}}})}}})}();