index-legacy.DM-gK1tJ.js 7.9 KB

1234
  1. /*!
  2. Build based on gin-vue-admin
  3. Time : 1757946830000 */
  4. !function(){function e(e){return function(e){if(Array.isArray(e))return r(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 r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(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 r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",i=a.toStringTag||"@@toStringTag";function u(t,a,o,i){var u=a&&a.prototype instanceof c?a:c,d=Object.create(u.prototype);return n(d,"_invoke",function(t,n,a){var o,i,u,c=0,d=a||[],s=!1,f={p:0,n:0,v:e,a:b,f:b.bind(e,4),d:function(r,t){return o=r,i=0,u=e,f.n=t,l}};function b(t,n){for(i=t,u=n,r=0;!s&&c&&!a&&r<d.length;r++){var a,o=d[r],b=f.p,y=o[2];t>3?(a=y===n)&&(u=o[(i=o[4])?5:(i=3,3)],o[4]=o[5]=e):o[0]<=b&&((a=t<2&&b<o[1])?(i=0,f.v=n,f.n=o[1]):b<y&&(a=t<3||o[0]>n||n>y)&&(o[4]=t,o[5]=n,f.n=y,i=0))}if(a||t>1)return l;throw s=!0,n}return function(a,d,y){if(c>1)throw TypeError("Generator is already running");for(s&&1===d&&b(d,y),i=d,u=y;(r=i<2?e:u)||!s;){o||(i?i<3?(i>1&&(f.n=-1),b(i,u)):f.n=u:f.v=u);try{if(c=2,o){if(i||(a="next"),r=o[a]){if(!(r=r.call(o,u)))throw TypeError("iterator result is not an object");if(!r.done)return r;u=r.value,i<2&&(i=0)}else 1===i&&(r=o.return)&&r.call(o),i<2&&(u=TypeError("The iterator does not provide a '"+a+"' method"),i=1);o=e}else if((r=(s=f.n<0)?u:t.call(n,f))!==l)break}catch(r){o=e,i=1,u=r}finally{c=1}}return{value:r,done:s}}}(t,o,i),!0),d}var l={};function c(){}function d(){}function s(){}r=Object.getPrototypeOf;var f=[][o]?r(r([][o]())):(n(r={},o,function(){return this}),r),b=s.prototype=c.prototype=Object.create(f);function y(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,n(e,i,"GeneratorFunction")),e.prototype=Object.create(b),e}return d.prototype=s,n(b,"constructor",s),n(s,"constructor",d),d.displayName="GeneratorFunction",n(s,i,"GeneratorFunction"),n(b),n(b,i,"Generator"),n(b,o,function(){return this}),n(b,"toString",function(){return"[object Generator]"}),(t=function(){return{w:u,m:y}})()}function n(e,r,t,a){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}n=function(e,r,t,a){function i(r,t){n(e,r,function(e){return this._invoke(r,t,e)})}r?o?o(e,r,{value:t,enumerable:!a,configurable:!a,writable:!a}):e[r]=t:(i("next",0),i("throw",1),i("return",2))},n(e,r,t,a)}function a(e,r,t,n,a,o,i){try{var u=e[o](i),l=u.value}catch(e){return void t(e)}u.done?r(l):Promise.resolve(l).then(n,a)}function o(e){return function(){var r=this,t=arguments;return new Promise(function(n,o){var i=e.apply(r,t);function u(e){a(i,n,o,u,l,"next",e)}function l(e){a(i,n,o,u,l,"throw",e)}u(void 0)})}}System.register(["./index-legacy.C7yqTvSr.js","./index-legacy.DB6xNFxw.js","./index-legacy.Bu2_qpKX.js","./index-legacy.BLe17B16.js","./themeModeSelector-legacy.DoovLbbK.js","./themeColorPicker-legacy.CjXGnBYA.js","./settingItem-legacy.DsMh-VWJ.js","./layoutModeCard-legacy.D6i7tA0P.js"],function(r,n){"use strict";var a,i,u,l,c,d,s,f,b,y,g,v,p,m,h,k,w,x,j,S,_,C,O,I,P,A,G;return{setters:[function(e){a=e._,i=e.M,u=e.N,l=e.a,c=e.O,d=e.ap,s=e.U,f=e.g,b=e.i,y=e.o,g=e.w,v=e.b,p=e.c,m=e.F,h=e.I,k=e.a0,w=e.v,x=e.n,j=e.C,S=e.d,_=e.f,C=e.h,O=e.aq,I=e.E},function(e){P=e.default},function(e){A=e.default},function(e){G=e.default},null,null,null,null],execute:function(){var n=document.createElement("style");n.textContent=".theme-config-drawer[data-v-96674046]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.theme-config-drawer[data-v-96674046] .el-drawer{background:#fff}.theme-config-drawer[data-v-96674046] .el-drawer__header{padding:0;border:0}.theme-config-drawer[data-v-96674046] .el-drawer__body{padding:0}.dark .theme-config-drawer[data-v-96674046] .el-drawer{background:#111827}.font-inter[data-v-96674046]{font-family:Inter,sans-serif}.reset-btn[data-v-96674046]{border-radius:.5rem;font-weight:500;transition:all .15s ease-in-out}.reset-btn[data-v-96674046]:hover{transform:translateY(-2px);filter:brightness(.9);box-shadow:0 4px 12px rgba(0,0,0,.15)}[data-v-96674046]::-webkit-scrollbar{width:6px}[data-v-96674046]::-webkit-scrollbar-track{background:#f3f4f6;border-radius:3px}[data-v-96674046]::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}[data-v-96674046]::-webkit-scrollbar-thumb:hover{background:#9ca3af}.dark[data-v-96674046] ::-webkit-scrollbar-track{background:#1f2937}.dark[data-v-96674046] ::-webkit-scrollbar-thumb{background:#4b5563}.dark[data-v-96674046] ::-webkit-scrollbar-thumb:hover{background:#6b7280}\n/*$vite$:1*/",document.head.appendChild(n);var M={class:"flex items-center justify-between w-full px-6 py-4 bg-white dark:bg-gray-900 border-b border-gray-200 dark:border-gray-700"},T={class:"bg-white dark:bg-gray-900"},E={class:"px-8 pt-4 pb-6 border-b border-gray-200 dark:border-gray-700"},F={class:"flex justify-center"},N={class:"inline-flex bg-gray-100 dark:bg-gray-800 rounded-xl p-1.5 border border-gray-200 dark:border-gray-700 shadow-sm"},U=["onClick"],z={class:"pb-8 h-full overflow-y-auto"},V={class:"transition-all duration-300 ease-in-out"},$=Object.assign({name:"GvaSetting"},{__name:"index",props:{drawer:{default:!0,type:Boolean},drawerModifiers:{}},emits:["update:drawer"],setup:function(r){var n=i(),a=u(n),$=a.config,B=a.device,q=l("appearance"),J=[{key:"appearance",label:"外观"},{key:"layout",label:"布局"},{key:"general",label:"通用"}],K=c(function(){return"mobile"===B.value?"100%":"500px"}),L=d(r,"drawer"),Q=function(){var e=o(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,O($.value);case 1:0===e.v.code&&(localStorage.setItem("originSetting",JSON.stringify($.value)),I.success("保存成功"));case 2:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),R=function(){n.resetConfig()};return s($,o(t().m(function e(){return t().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,Q();case 1:return e.a(2)}},e)})),{deep:!0}),function(r,t){var n=f("el-button"),a=f("el-drawer");return y(),b(a,{modelValue:L.value,"onUpdate:modelValue":t[0]||(t[0]=function(e){return L.value=e}),title:"系统配置",direction:"rtl",size:K.value,"show-close":!1,class:"theme-config-drawer"},{header:g(function(){return[v("div",M,[t[2]||(t[2]=v("h2",{class:"text-xl font-semibold text-gray-900 dark:text-white font-inter"},"系统配置",-1)),_(n,{type:"primary",size:"small",class:"reset-btn",style:k({backgroundColor:w($).primaryColor,borderColor:w($).primaryColor}),onClick:R},{default:g(function(){return e(t[1]||(t[1]=[C(" 重置配置 ",-1)]))}),_:1},8,["style"])])]}),default:g(function(){return[v("div",T,[v("div",E,[v("div",F,[v("div",N,[(y(),p(m,null,h(J,function(e){return v("div",{key:e.key,class:x(["px-6 py-3 text-base text-center cursor-pointer font-medium rounded-lg transition-all duration-150 ease-in-out min-w-[80px]",[q.value===e.key?"text-white shadow-md transform -translate-y-0.5":"text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-200 hover:bg-gray-50 dark:hover:bg-gray-700"]]),style:k(q.value===e.key?{backgroundColor:w($).primaryColor}:{}),onClick:function(r){return q.value=e.key}},j(e.label),15,U)}),64))])])]),v("div",z,[v("div",V,["appearance"===q.value?(y(),b(P,{key:0})):"layout"===q.value?(y(),b(A,{key:1})):"general"===q.value?(y(),b(G,{key:2})):S("",!0)])])])]}),_:1},8,["modelValue","size"])}}});r("default",a($,[["__scopeId","data-v-96674046"]]))}}})}();