adminizer 4.3.0-build.75 → 4.3.0-build.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/add-DSapOiv0.js +1 -0
- package/assets/add-form-C04ZI5LT.js +1 -0
- package/assets/add-group-DWR7SBTO.js +1 -0
- package/assets/add-group-form-CyRwxTs3.js +1 -0
- package/assets/add-user-acATGxUL.js +1 -0
- package/assets/add-user-form-yp020h4r.js +1 -0
- package/assets/app-layout-BmT5KQwc.js +1 -0
- package/assets/app-shell-xEVbINZV.js +1 -0
- package/assets/app-sidebar-4lm9f_CG.js +1 -0
- package/assets/app-sidebar-header-CxXmzszq.js +1 -0
- package/assets/app.js +1699 -1657
- package/assets/breadcrumbs-livOfa2Z.js +1 -0
- package/assets/catalog-CG_EB2kz.js +6 -0
- package/assets/dashboard-CsmJfdLb.js +3 -0
- package/assets/date-picker-By3kj-Rx.js +1 -0
- package/assets/del-modal-DlcbcdR5.js +1 -0
- package/assets/dynamic-controls-PxBg8yMz.js +1 -0
- package/assets/{field-renderer-CrsFaZNM.js → field-renderer-Bp1lfm0v.js} +136 -136
- package/assets/form-CSTeMDf5.js +1 -0
- package/assets/form-CxHRGp7p.js +1 -0
- package/assets/geo-json-CCgjEQfu.js +4 -0
- package/assets/{handsontable-DQYtlTE2.js → handsontable-D6MvFmcM.js} +54 -120
- package/assets/home-D00XjLjD.js +2 -0
- package/assets/icon-ButfCBrt.js +1 -0
- package/assets/init-user-L-oxFTOv.js +1 -0
- package/assets/input-error-CHsDLcK0.js +1 -0
- package/assets/{VanillaJSONEditor-x8tDbio1.js → jsoneditor-CBqATVR0.js} +107 -107
- package/assets/list-4TOTsjqE.js +1 -0
- package/assets/list-table-vIvydJV2.js +22 -0
- package/assets/login-DLMJ6l_r.js +1 -0
- package/assets/manifest.json +297 -214
- package/assets/material-icon-sXk4BK-N.js +1 -0
- package/assets/media-manager-ASGJ4PcS.js +14 -0
- package/assets/module-mxngd2cA.js +1 -0
- package/assets/monaco-B1uVVM7f.js +11 -0
- package/assets/nav-footer-DbGCtmmN.js +1 -0
- package/assets/nav-main-BcWhl71g.js +1 -0
- package/assets/nav-user-BN2veV3l.js +1 -0
- package/assets/notification-BEfA5sT6.js +1 -0
- package/assets/pagination-render-BceTnewI.js +1 -0
- package/assets/register-C_W_hOmq.js +1 -0
- package/assets/tabs-CgZW_LLn.js +1 -0
- package/assets/theme-switcher-D1G6OSMc.js +1 -0
- package/assets/toast-editor-CfgZXoQZ.js +845 -0
- package/assets/user-info-BrWerGLc.js +1 -0
- package/assets/user-menu-content-D61_auxX.js +1 -0
- package/assets/vendor-DoC2WAmd.js +17 -0
- package/assets/welcome-FHRCdke0.js +1 -0
- package/package.json +1 -1
- package/ui/components/VanillaJSONEditor.d.ts +2 -0
- package/ui/components/VanillaJSONEditor.js +101 -0
- package/ui/components/handsontable.d.ts +10 -0
- package/ui/components/handsontable.js +51 -0
- package/ui/components/monaco-editor.d.ts +11 -0
- package/ui/components/monaco-editor.js +57 -0
- package/ui/hooks/form-state.d.ts +4 -0
- package/ui/hooks/form-state.js +45 -0
- package/ui/hooks/use-appearance.d.ts +7 -0
- package/ui/hooks/use-appearance.js +76 -0
- package/ui/hooks/use-window-size.d.ts +5 -0
- package/ui/hooks/use-window-size.js +21 -0
- package/assets/add-B-wtzl14.js +0 -1
- package/assets/add-form-BlPl0S7W.js +0 -1
- package/assets/add-group-CGiSK3je.js +0 -1
- package/assets/add-group-form-Chb9XkVr.js +0 -1
- package/assets/add-user-CI91aShE.js +0 -1
- package/assets/add-user-form-CpszaZtW.js +0 -1
- package/assets/app-layout-CDjEwM9a.js +0 -1
- package/assets/app-shell-CByYJPLe.js +0 -1
- package/assets/app-sidebar-CLPoDV2f.js +0 -1
- package/assets/app-sidebar-header-B1mI-oGm.js +0 -1
- package/assets/breadcrumbs-0GLBx1iv.js +0 -1
- package/assets/catalog-BEnuFPi6.js +0 -6
- package/assets/dashboard-Cb4RAfgr.js +0 -3
- package/assets/date-picker-Gy19IF7Q.js +0 -1
- package/assets/debounce-D6eaSoDg.js +0 -1
- package/assets/del-modal-COG1XcES.js +0 -1
- package/assets/dynamic-controls-CSVVCONh.js +0 -1
- package/assets/form-BwafUUB7.js +0 -1
- package/assets/form-X67d3x3D.js +0 -1
- package/assets/form-state-702tb_BV.js +0 -1
- package/assets/geo-json-Dswzlx0K.js +0 -4
- package/assets/home-DlxjWnrt.js +0 -2
- package/assets/icon-BWrEqTE-.js +0 -1
- package/assets/index-C148XJoK.js +0 -1
- package/assets/index-Vcq4gwWv.js +0 -1
- package/assets/init-user-DKSIGCcH.js +0 -1
- package/assets/input-error-BBzQCTcg.js +0 -1
- package/assets/list-CjOxUyML.js +0 -1
- package/assets/list-table-DMJKIWta.js +0 -22
- package/assets/login-5G-1gzoH.js +0 -1
- package/assets/material-icon-BE8cT_z7.js +0 -1
- package/assets/media-manager-DWLUhFyJ.js +0 -14
- package/assets/module-9RNagTns.js +0 -1
- package/assets/monaco-editor-XX8Hz76f.js +0 -11
- package/assets/multi-select-BnR59_kI.js +0 -1
- package/assets/nav-footer-Dq1Z6Fmw.js +0 -1
- package/assets/nav-main-DQNNAKwu.js +0 -1
- package/assets/nav-user-q7QW6ZiI.js +0 -1
- package/assets/notification-CIUVTHsw.js +0 -1
- package/assets/pagination-render-PLbPRWg5.js +0 -1
- package/assets/register-48nlLgHz.js +0 -1
- package/assets/tabs-D5eQoog9.js +0 -1
- package/assets/theme-switcher-BZ6eg-WU.js +0 -1
- package/assets/toast-editor-C0550yms.js +0 -845
- package/assets/use-appearance-CXP5cHaQ.js +0 -1
- package/assets/use-window-size-DLSEoR6e.js +0 -1
- package/assets/user-info-CJp_GYZl.js +0 -1
- package/assets/user-menu-content-ljwR9luU.js +0 -1
- package/assets/welcome-CBKz_MRJ.js +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as u,e as H,c as we,j as ne}from"./app.js";import{u as ye}from"./use-appearance-CXP5cHaQ.js";import{u as Oe}from"./use-window-size-DLSEoR6e.js";function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ie(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oe(Object(r),!0).forEach(function(n){je(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Me(t,e){if(t==null)return{};var r={},n=Object.keys(t),o,i;for(i=0;i<n.length;i++)o=n[i],!(e.indexOf(o)>=0)&&(r[o]=t[o]);return r}function Ee(t,e){if(t==null)return{};var r=Me(t,e),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Se(t,e){return Pe(t)||Re(t,e)||Ce(t,e)||Ie()}function Pe(t){if(Array.isArray(t))return t}function Re(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,o=!1,i=void 0;try{for(var l=t[Symbol.iterator](),d;!(n=(d=l.next()).done)&&(r.push(d.value),!(e&&r.length===e));n=!0);}catch(b){o=!0,i=b}finally{try{!n&&l.return!=null&&l.return()}finally{if(o)throw i}}return r}}function Ce(t,e){if(t){if(typeof t=="string")return ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ae(t,e)}}function ae(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ue(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function ce(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ue(Object(r),!0).forEach(function(n){Le(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Te(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return e.reduceRight(function(o,i){return i(o)},n)}}function G(t){return function e(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=t.length?t.apply(this,o):function(){for(var l=arguments.length,d=new Array(l),b=0;b<l;b++)d[b]=arguments[b];return e.apply(r,[].concat(o,d))}}}function Z(t){return{}.toString.call(t).includes("Object")}function Ae(t){return!Object.keys(t).length}function Y(t){return typeof t=="function"}function xe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function De(t,e){return Z(e)||z("changeType"),Object.keys(e).some(function(r){return!xe(t,r)})&&z("changeField"),e}function Ve(t){Y(t)||z("selectorType")}function $e(t){Y(t)||Z(t)||z("handlerType"),Z(t)&&Object.values(t).some(function(e){return!Y(e)})&&z("handlersType")}function Ne(t){t||z("initialIsRequired"),Z(t)||z("initialType"),Ae(t)&&z("initialContent")}function We(t,e){throw new Error(t[e]||t.default)}var ze={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},z=G(We)(ze),Q={changes:De,selector:Ve,handler:$e,initial:Ne};function qe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Q.initial(t),Q.handler(e);var r={current:t},n=G(He)(r,e),o=G(Fe)(r),i=G(Q.changes)(t),l=G(Ue)(r);function d(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(T){return T};return Q.selector(w),w(r.current)}function b(w){Te(n,o,i,l)(w)}return[d,b]}function Ue(t,e){return Y(e)?e(t.current):e}function Fe(t,e){return t.current=ce(ce({},t.current),e),e}function He(t,e,r){return Y(e)?e(t.current):Object.keys(r).forEach(function(n){var o;return(o=e[n])===null||o===void 0?void 0:o.call(e,t.current[n])}),r}var Be={create:qe},ke={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Ge(t){return function e(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=t.length?t.apply(this,o):function(){for(var l=arguments.length,d=new Array(l),b=0;b<l;b++)d[b]=arguments[b];return e.apply(r,[].concat(o,d))}}}function Ke(t){return{}.toString.call(t).includes("Object")}function Ye(t){return t||le("configIsRequired"),Ke(t)||le("configType"),t.urls?(Je(),{paths:{vs:t.urls.monacoBase}}):t}function Je(){console.warn(se.deprecation)}function Qe(t,e){throw new Error(t[e]||t.default)}var se={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
|
-
You are using deprecated way of configuration.
|
|
4
|
-
|
|
5
|
-
Instead of using
|
|
6
|
-
monaco.config({ urls: { monacoBase: '...' } })
|
|
7
|
-
use
|
|
8
|
-
monaco.config({ paths: { vs: '...' } })
|
|
9
|
-
|
|
10
|
-
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
11
|
-
`},le=Ge(Qe)(se),Xe={config:Ye},Ze=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return function(o){return r.reduceRight(function(i,l){return l(i)},o)}};function fe(t,e){return Object.keys(e).forEach(function(r){e[r]instanceof Object&&t[r]&&Object.assign(e[r],fe(t[r],e[r]))}),ie(ie({},t),e)}var _e={type:"cancelation",msg:"operation is manually canceled"};function ee(t){var e=!1,r=new Promise(function(n,o){t.then(function(i){return e?o(_e):n(i)}),t.catch(o)});return r.cancel=function(){return e=!0},r}var et=Be.create({config:ke,isInitialized:!1,resolve:null,reject:null,monaco:null}),de=Se(et,2),J=de[0],_=de[1];function tt(t){var e=Xe.config(t),r=e.monaco,n=Ee(e,["monaco"]);_(function(o){return{config:fe(o.config,n),monaco:r}})}function rt(){var t=J(function(e){var r=e.monaco,n=e.isInitialized,o=e.resolve;return{monaco:r,isInitialized:n,resolve:o}});if(!t.isInitialized){if(_({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),ee(te);if(window.monaco&&window.monaco.editor)return pe(window.monaco),t.resolve(window.monaco),ee(te);Ze(nt,it)(at)}return ee(te)}function nt(t){return document.body.appendChild(t)}function ot(t){var e=document.createElement("script");return t&&(e.src=t),e}function it(t){var e=J(function(n){var o=n.config,i=n.reject;return{config:o,reject:i}}),r=ot("".concat(e.config.paths.vs,"/loader.js"));return r.onload=function(){return t()},r.onerror=e.reject,r}function at(){var t=J(function(r){var n=r.config,o=r.resolve,i=r.reject;return{config:n,resolve:o,reject:i}}),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],function(r){pe(r),t.resolve(r)},function(r){t.reject(r)})}function pe(t){J().monaco||_({monaco:t})}function ut(){return J(function(t){var e=t.monaco;return e})}var te=new Promise(function(t,e){return _({resolve:t,reject:e})}),ge={config:tt,init:rt,__getMonacoInstance:ut},ct={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},re=ct,lt={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},st=lt;function ft({children:t}){return H.createElement("div",{style:st.container},t)}var dt=ft,pt=dt;function gt({width:t,height:e,isEditorReady:r,loading:n,_ref:o,className:i,wrapperProps:l}){return H.createElement("section",{style:{...re.wrapper,width:t,height:e},...l},!r&&H.createElement(pt,null,n),H.createElement("div",{ref:o,style:{...re.fullWidth,...!r&&re.hide},className:i}))}var ht=gt,he=u.memo(ht);function vt(t){u.useEffect(t,[])}var ve=vt;function mt(t,e,r=!0){let n=u.useRef(!0);u.useEffect(n.current||!r?()=>{n.current=!1}:t,e)}var S=mt;function K(){}function F(t,e,r,n){return bt(t,n)||wt(t,e,r,n)}function bt(t,e){return t.editor.getModel(me(t,e))}function wt(t,e,r,n){return t.editor.createModel(e,r,n?me(t,n):void 0)}function me(t,e){return t.Uri.parse(e)}function yt({original:t,modified:e,language:r,originalLanguage:n,modifiedLanguage:o,originalModelPath:i,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:b=!1,theme:w="light",loading:T="Loading...",options:j={},height:v="100%",width:$="100%",className:N,wrapperProps:q={},beforeMount:A=K,onMount:C=K}){let[y,x]=u.useState(!1),[P,h]=u.useState(!0),m=u.useRef(null),p=u.useRef(null),R=u.useRef(null),O=u.useRef(C),c=u.useRef(A),M=u.useRef(!1);ve(()=>{let a=ge.init();return a.then(f=>(p.current=f)&&h(!1)).catch(f=>(f==null?void 0:f.type)!=="cancelation"&&console.error("Monaco initialization: error:",f)),()=>m.current?D():a.cancel()}),S(()=>{if(m.current&&p.current){let a=m.current.getOriginalEditor(),f=F(p.current,t||"",n||r||"text",i||"");f!==a.getModel()&&a.setModel(f)}},[i],y),S(()=>{if(m.current&&p.current){let a=m.current.getModifiedEditor(),f=F(p.current,e||"",o||r||"text",l||"");f!==a.getModel()&&a.setModel(f)}},[l],y),S(()=>{let a=m.current.getModifiedEditor();a.getOption(p.current.editor.EditorOption.readOnly)?a.setValue(e||""):e!==a.getValue()&&(a.executeEdits("",[{range:a.getModel().getFullModelRange(),text:e||"",forceMoveMarkers:!0}]),a.pushUndoStop())},[e],y),S(()=>{var a,f;(f=(a=m.current)==null?void 0:a.getModel())==null||f.original.setValue(t||"")},[t],y),S(()=>{let{original:a,modified:f}=m.current.getModel();p.current.editor.setModelLanguage(a,n||r||"text"),p.current.editor.setModelLanguage(f,o||r||"text")},[r,n,o],y),S(()=>{var a;(a=p.current)==null||a.editor.setTheme(w)},[w],y),S(()=>{var a;(a=m.current)==null||a.updateOptions(j)},[j],y);let W=u.useCallback(()=>{var L;if(!p.current)return;c.current(p.current);let a=F(p.current,t||"",n||r||"text",i||""),f=F(p.current,e||"",o||r||"text",l||"");(L=m.current)==null||L.setModel({original:a,modified:f})},[r,e,o,t,n,i,l]),I=u.useCallback(()=>{var a;!M.current&&R.current&&(m.current=p.current.editor.createDiffEditor(R.current,{automaticLayout:!0,...j}),W(),(a=p.current)==null||a.editor.setTheme(w),x(!0),M.current=!0)},[j,w,W]);u.useEffect(()=>{y&&O.current(m.current,p.current)},[y]),u.useEffect(()=>{!P&&!y&&I()},[P,y,I]);function D(){var f,L,V,B;let a=(f=m.current)==null?void 0:f.getModel();d||((L=a==null?void 0:a.original)==null||L.dispose()),b||((V=a==null?void 0:a.modified)==null||V.dispose()),(B=m.current)==null||B.dispose()}return H.createElement(he,{width:$,height:v,isEditorReady:y,loading:T,_ref:R,className:N,wrapperProps:q})}var Ot=yt;u.memo(Ot);function jt(t){let e=u.useRef();return u.useEffect(()=>{e.current=t},[t]),e.current}var Mt=jt,X=new Map;function Et({defaultValue:t,defaultLanguage:e,defaultPath:r,value:n,language:o,path:i,theme:l="light",line:d,loading:b="Loading...",options:w={},overrideServices:T={},saveViewState:j=!0,keepCurrentModel:v=!1,width:$="100%",height:N="100%",className:q,wrapperProps:A={},beforeMount:C=K,onMount:y=K,onChange:x,onValidate:P=K}){let[h,m]=u.useState(!1),[p,R]=u.useState(!0),O=u.useRef(null),c=u.useRef(null),M=u.useRef(null),W=u.useRef(y),I=u.useRef(C),D=u.useRef(),a=u.useRef(n),f=Mt(i),L=u.useRef(!1),V=u.useRef(!1);ve(()=>{let s=ge.init();return s.then(g=>(O.current=g)&&R(!1)).catch(g=>(g==null?void 0:g.type)!=="cancelation"&&console.error("Monaco initialization: error:",g)),()=>c.current?be():s.cancel()}),S(()=>{var g,E,k,U;let s=F(O.current,t||n||"",e||o||"",i||r||"");s!==((g=c.current)==null?void 0:g.getModel())&&(j&&X.set(f,(E=c.current)==null?void 0:E.saveViewState()),(k=c.current)==null||k.setModel(s),j&&((U=c.current)==null||U.restoreViewState(X.get(i))))},[i],h),S(()=>{var s;(s=c.current)==null||s.updateOptions(w)},[w],h),S(()=>{!c.current||n===void 0||(c.current.getOption(O.current.editor.EditorOption.readOnly)?c.current.setValue(n):n!==c.current.getValue()&&(V.current=!0,c.current.executeEdits("",[{range:c.current.getModel().getFullModelRange(),text:n,forceMoveMarkers:!0}]),c.current.pushUndoStop(),V.current=!1))},[n],h),S(()=>{var g,E;let s=(g=c.current)==null?void 0:g.getModel();s&&o&&((E=O.current)==null||E.editor.setModelLanguage(s,o))},[o],h),S(()=>{var s;d!==void 0&&((s=c.current)==null||s.revealLine(d))},[d],h),S(()=>{var s;(s=O.current)==null||s.editor.setTheme(l)},[l],h);let B=u.useCallback(()=>{var s;if(!(!M.current||!O.current)&&!L.current){I.current(O.current);let g=i||r,E=F(O.current,n||t||"",e||o||"",g||"");c.current=(s=O.current)==null?void 0:s.editor.create(M.current,{model:E,automaticLayout:!0,...w},T),j&&c.current.restoreViewState(X.get(g)),O.current.editor.setTheme(l),d!==void 0&&c.current.revealLine(d),m(!0),L.current=!0}},[t,e,r,n,o,i,w,T,j,l,d]);u.useEffect(()=>{h&&W.current(c.current,O.current)},[h]),u.useEffect(()=>{!p&&!h&&B()},[p,h,B]),a.current=n,u.useEffect(()=>{var s,g;h&&x&&((s=D.current)==null||s.dispose(),D.current=(g=c.current)==null?void 0:g.onDidChangeModelContent(E=>{V.current||x(c.current.getValue(),E)}))},[h,x]),u.useEffect(()=>{if(h){let s=O.current.editor.onDidChangeMarkers(g=>{var k;let E=(k=c.current.getModel())==null?void 0:k.uri;if(E&&g.find(U=>U.path===E.path)){let U=O.current.editor.getModelMarkers({resource:E});P==null||P(U)}});return()=>{s==null||s.dispose()}}return()=>{}},[h,P]);function be(){var s,g;(s=D.current)==null||s.dispose(),v?j&&X.set(i,c.current.saveViewState()):(g=c.current.getModel())==null||g.dispose(),c.current.dispose()}return H.createElement(he,{width:$,height:N,isEditorReady:h,loading:b,_ref:M,className:q,wrapperProps:A})}var St=Et,Pt=u.memo(St),Rt=Pt;const Tt=t=>{const e=we.c(32),{onChange:r,value:n,options:o,disabled:i}=t,{appearance:l}=ye(),[d,b]=u.useState("light"),w=u.useRef(null),T=u.useRef(null),{width:j}=Oe(),v=j<768,$=j>=768&&j<1024;let N;e[0]!==r?(N=a=>{r(a)},e[0]=r,e[1]=N):N=e[1];const q=N;let A,C;e[2]!==v||e[3]!==$?(A=a=>{w.current=a,C()},C=()=>{var f;if(!w.current)return;const a={minimap:{enabled:!v},fontSize:v?12:$?13:14,lineNumbers:v?"off":"on",lineDecorationsWidth:v?5:10,scrollBeyondLastLine:!v,wordWrap:v?"on":"bounded",renderWhitespace:v?"none":"selection",padding:{top:v?8:16,bottom:v?8:16}};w.current.updateOptions(a),(f=T.current)==null||f.classList.add("overflow-hidden"),setTimeout(()=>{var L,V;(L=w.current)==null||L.layout(),(V=T.current)==null||V.classList.remove("overflow-hidden")},100)},e[2]=v,e[3]=$,e[4]=A,e[5]=C):(A=e[4],C=e[5]);let y,x;e[6]!==l?(y=()=>{b(l==="dark"?"vs-dark":"light")},x=[l],e[6]=l,e[7]=y,e[8]=x):(y=e[7],x=e[8]),u.useEffect(y,x);let P;e[9]!==C?(P=()=>{C()},e[9]=C,e[10]=P):P=e[10];let h;e[11]!==j?(h=[j],e[11]=j,e[12]=h):h=e[12],u.useEffect(P,h);const m=v?"300px":$?"400px":"500px",p=`border rounded-lg ${v?"p-1":"p-2"}`;let R;e[13]!==v?(R=v&&{wordWrap:"on"},e[13]=v,e[14]=R):R=e[14];const O=!v;let c;e[15]!==O?(c={enabled:O},e[15]=O,e[16]=c):c=e[16];let M;e[17]!==R||e[18]!==c?(M={automaticLayout:!0,...R,minimap:c},e[17]=R,e[18]=c,e[19]=M):M=e[19];const W=`transition-all duration-200 ease-in-out ${i?"pointer-events-none opacity-50 cursor-not-allowed":""}`;let I;e[20]!==m||e[21]!==q||e[22]!==A||e[23]!==o.language||e[24]!==M||e[25]!==W||e[26]!==d||e[27]!==n?(I=ne.jsx(Rt,{height:m,language:o.language,value:n,theme:d,options:M,onChange:q,onMount:A,className:W}),e[20]=m,e[21]=q,e[22]=A,e[23]=o.language,e[24]=M,e[25]=W,e[26]=d,e[27]=n,e[28]=I):I=e[28];let D;return e[29]!==I||e[30]!==p?(D=ne.jsx("div",{className:p,ref:T,children:I}),e[29]=I,e[30]=p,e[31]=D):D=e[31],D};export{Tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as _,c as fe,aa as R,j as t,bF as oe,bG as xe,at as he,bH as pe,bI as ie,bl as ge,B as be,bJ as ve,bK as je,bL as ye,bM as we,ap as Ce,bN as Ne,bO as Se,bP as Pe,bn as ke,bQ as Ve,bo as Ee}from"./app.js";const ce=xe("m-1 flex items-center border rounded-sm px-1",{variants:{variant:{default:"border-foreground/10 text-foreground bg-card hover:bg-card/80",secondary:"border-foreground/10 bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",inverted:"inverted"}},defaultVariants:{variant:"default"}}),Ie=_.forwardRef((E,q)=>{const e=fe.c(87);let x,h,a,o,p,g,m,I,D,O,F,K,$,U,B,u;e[0]!==E?({options:o,onValueChange:a,variant:u,processing:p,disabled:h,defaultValue:m,placeholder:I,notFound:D,search:O,animation:F,maxCount:K,modalPopover:$,asChild:U,className:x,mode:B,...g}=E,e[0]=E,e[1]=x,e[2]=h,e[3]=a,e[4]=o,e[5]=p,e[6]=g,e[7]=m,e[8]=I,e[9]=D,e[10]=O,e[11]=F,e[12]=K,e[13]=$,e[14]=U,e[15]=B,e[16]=u):(x=e[1],h=e[2],a=e[3],o=e[4],p=e[5],g=e[6],m=e[7],I=e[8],D=e[9],O=e[10],F=e[11],K=e[12],$=e[13],U=e[14],B=e[15],u=e[16]);let T;e[17]!==m?(T=m===void 0?[]:m,e[17]=m,e[18]=T):T=e[18];const de=T,Y=I===void 0?"":I,Z=D===void 0?"":D,ee=O===void 0?"":O,f=F===void 0?0:F,i=K===void 0?3:K,te=$===void 0?!1:$,n=B===void 0?"multiple":B,[s,A]=_.useState(de),[se,M]=_.useState(!1),[c,me]=_.useState(!1);let G;e[19]!==a||e[20]!==s?(G=l=>{if(l.key==="Enter")M(!0);else if(l.key==="Backspace"&&!l.currentTarget.value){const r=[...s];r.pop(),A(r),a(r)}},e[19]=a,e[20]=s,e[21]=G):G=e[21];const le=G;let L;e[22]!==n||e[23]!==a||e[24]!==s?(L=l=>{let r;n==="single"?r=s.includes(l)?[]:[l]:r=s.includes(l)?s.filter(V=>V!==l):[...s,l],A(r),a(r),n==="single"&&M(!1)},e[22]=n,e[23]=a,e[24]=s,e[25]=L):L=e[25];const d=L;let X;e[26]!==a?(X=()=>{A([]),a([])},e[26]=a,e[27]=X):X=e[27];const re=X;let z;e[28]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{M(De)},e[28]=z):z=e[28];const ue=z;let H;e[29]!==i||e[30]!==a||e[31]!==s?(H=()=>{const l=s.slice(0,i);A(l),a(l)},e[29]=i,e[30]=a,e[31]=s,e[32]=H):H=e[32];const ae=H;let b;e[33]!==x?(b=R("flex w-full p-1 rounded-md border-input border-1 min-h-10 h-auto items-center justify-between bg-inherit hover:bg-inherit [&_svg]:pointer-events-auto",x),e[33]=x,e[34]=b):b=e[34];let v;e[35]!==f||e[36]!==ae||e[37]!==re||e[38]!==c||e[39]!==i||e[40]!==n||e[41]!==o||e[42]!==Y||e[43]!==p||e[44]!==s||e[45]!==d||e[46]!==u?(v=s.length>0?t.jsxs("div",{className:"flex justify-between items-center w-full",children:[t.jsxs("div",{className:"flex flex-wrap items-center",children:[s.slice(0,i).map(l=>{const r=o.find(ne=>ne.value===l),V=r==null?void 0:r.icon;return t.jsxs("div",{className:R(c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[V&&t.jsx(V,{className:"h-4 w-4 mr-2"}),r==null?void 0:r.label,t.jsx(oe,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:ne=>{ne.stopPropagation(),p||d(l)}})]},l)}),n==="multiple"&&s.length>i&&t.jsxs("div",{className:R("bg-transparent text-foreground border-foreground/1 hover:bg-transparent",c?"animate-bounce":"",ce({variant:u})),style:{animationDuration:`${f}s`},children:[`+ ${s.length-i} more`,t.jsx(oe,{className:"ml-2 h-4 w-4 cursor-pointer",onClick:l=>{l.stopPropagation(),ae()}})]})]}),t.jsxs("div",{className:"flex items-center justify-between",children:[s.length>0&&t.jsxs(t.Fragment,{children:[t.jsx(he,{className:"h-4 mx-2 cursor-pointer text-muted-foreground",onClick:l=>{l.stopPropagation(),re()}}),t.jsx(pe,{orientation:"vertical",className:"flex min-h-6 h-full"})]}),t.jsx(ie,{className:"h-4 mx-2 cursor-pointer text-muted-foreground"})]})]}):t.jsxs("div",{className:"flex items-center justify-between w-full mx-auto",children:[t.jsx("span",{className:"text-sm text-muted-foreground mx-3",children:Y}),t.jsx(ie,{className:"h-4 cursor-pointer text-muted-foreground mx-2"})]}),e[35]=f,e[36]=ae,e[37]=re,e[38]=c,e[39]=i,e[40]=n,e[41]=o,e[42]=Y,e[43]=p,e[44]=s,e[45]=d,e[46]=u,e[47]=v):v=e[47];let j;e[48]!==h||e[49]!==g||e[50]!==q||e[51]!==b||e[52]!==v?(j=t.jsx(ge,{asChild:!0,children:t.jsx(be,{ref:q,...g,onClick:ue,disabled:h,className:b,children:v})}),e[48]=h,e[49]=g,e[50]=q,e[51]=b,e[52]=v,e[53]=j):j=e[53];let J;e[54]===Symbol.for("react.memo_cache_sentinel")?(J=()=>M(!1),e[54]=J):J=e[54];let y;e[55]!==le||e[56]!==ee?(y=t.jsx(je,{placeholder:ee,onKeyDown:le}),e[55]=le,e[56]=ee,e[57]=y):y=e[57];let w;e[58]!==Z?(w=t.jsx(ye,{children:Z}),e[58]=Z,e[59]=w):w=e[59];let C;if(e[60]!==o||e[61]!==s||e[62]!==d){let l;e[64]!==s||e[65]!==d?(l=r=>{const V=s.includes(r.value);return t.jsxs(we,{onSelect:()=>d(r.value),className:"cursor-pointer",children:[t.jsx("div",{className:R("mr-2 flex h-5 w-5 items-center justify-center rounded border border-primary",V?"bg-primary text-primary-foreground":"opacity-50 [&_svg]:invisible"),children:t.jsx(Ce,{className:"h-4 w-4 text-primary-foreground"})}),r.icon&&t.jsx(r.icon,{className:"mr-2 h-4 w-4 text-muted-foreground"}),t.jsx("span",{children:r.label})]},r.value)},e[64]=s,e[65]=d,e[66]=l):l=e[66],C=o.map(l),e[60]=o,e[61]=s,e[62]=d,e[63]=C}else C=e[63];let N;e[67]!==C?(N=t.jsx(Ne,{children:C}),e[67]=C,e[68]=N):N=e[68];let Q;e[69]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsx(Se,{}),e[69]=Q):Q=e[69];let S;e[70]!==w||e[71]!==N?(S=t.jsxs(Pe,{children:[w,N,Q]}),e[70]=w,e[71]=N,e[72]=S):S=e[72];let P;e[73]!==y||e[74]!==S?(P=t.jsx(ke,{className:"w-auto p-0 z-[410]",align:"start",onEscapeKeyDown:J,children:t.jsxs(Ve,{children:[y,S]})}),e[73]=y,e[74]=S,e[75]=P):P=e[75];let k;e[76]!==f||e[77]!==c||e[78]!==n||e[79]!==s.length?(k=f>0&&s.length>0&&n==="multiple"&&t.jsx(ve,{className:R("cursor-pointer my-2 text-foreground bg-background w-3 h-3",c?"":"text-muted-foreground"),onClick:()=>me(!c)}),e[76]=f,e[77]=c,e[78]=n,e[79]=s.length,e[80]=k):k=e[80];let W;return e[81]!==se||e[82]!==te||e[83]!==j||e[84]!==P||e[85]!==k?(W=t.jsxs(Ee,{open:se,onOpenChange:M,modal:te,children:[j,P,k]}),e[81]=se,e[82]=te,e[83]=j,e[84]=P,e[85]=k,e[86]=W):W=e[86],W});Ie.displayName="MultiSelect";function De(E){return!E}export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,j as t,ba as d,aY as p,b4 as x,bu as h,aX as f}from"./app.js";import{Icon as m}from"./icon-BWrEqTE-.js";function S(r){const e=u.c(12);let o,a,s;e[0]!==r?({items:a,className:o,...s}=r,e[0]=r,e[1]=o,e[2]=a,e[3]=s):(o=e[1],a=e[2],s=e[3]);const c=`group-data-[collapsible=icon]:p-0 ${o||""}`;let n;e[4]!==a?(n=a.map(b),e[4]=a,e[5]=n):n=e[5];let l;e[6]!==n?(l=t.jsx(h,{children:t.jsx(f,{children:n})}),e[6]=n,e[7]=l):l=e[7];let i;return e[8]!==s||e[9]!==c||e[10]!==l?(i=t.jsx(d,{...s,className:c,children:l}),e[8]=s,e[9]=c,e[10]=l,e[11]=i):i=e[11],i}function b(r){return t.jsx(p,{children:t.jsx(x,{asChild:!0,className:"text-neutral-600 hover:text-neutral-800 dark:text-neutral-300 dark:hover:text-neutral-100",children:t.jsxs("a",{href:r.href,target:"_blank",rel:"noopener noreferrer",children:[r.icon&&t.jsx(m,{iconNode:r.icon,className:"h-5 w-5"}),t.jsx("span",{children:r.title})]})})},r.title)}export{S as NavFooter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as w,q as E,r as G,j as e,br as $,aY as N,b3 as _,b4 as g,C as M,bs as A,aV as O,b5 as R,b6 as z,$ as v,ba as B,bt as L,bu as P,aX as Q}from"./app.js";import m from"./material-icon-BE8cT_z7.js";function T(a){const t=w.c(15),{items:l}=a;let f;t[0]!==l?(f=l===void 0?[]:l,t[0]=l,t[1]=f):f=t[1];const p=f,h=E();let b;t[2]!==p?(b=()=>{const u={};return p.forEach(o=>{const c=o.section||"Platform";c in u||(u[c]=!0)}),u},t[2]=p,t[3]=b):b=t[3];const[d,y]=G.useState(b),k=q;let x;if(t[4]!==p||t[5]!==d||t[6]!==h){const u=p.reduce(U,{});let o;if(t[8]!==h){o=r=>{var n,C;const{item:s}=r;return((n=s.actions)==null?void 0:n.length)>0?e.jsx($,{asChild:!0,defaultOpen:j(s.link),className:"group/collapsible",children:e.jsxs(N,{children:[e.jsx(_,{asChild:!0,children:e.jsxs(g,{tooltip:s.title,children:[e.jsx(m,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{className:"overflow-hidden text-ellipsis whitespace-nowrap",children:s.title}),e.jsx(M,{className:"ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90"})]})}),e.jsx(A,{children:e.jsx(O,{children:(C=s.actions)==null?void 0:C.map(i=>e.jsx(R,{children:e.jsx(z,{asChild:!0,isActive:j(i.link),children:i.type==="blank"?e.jsxs("a",{href:i.link,target:"_blank",rel:"noopener noreferrer",children:[i.icon&&e.jsx(m,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]}):e.jsxs(v,{href:i.link,children:[i.icon&&e.jsx(m,{name:i.icon,className:"!text-[18px]"}),e.jsx("span",{children:i.title})]})})},i.id))})})]})},s.title):e.jsx(N,{children:e.jsx(g,{asChild:!0,isActive:j(s.link),tooltip:{children:s.title},children:s.type==="blank"?e.jsxs("a",{href:s.link,target:"_blank",rel:"noopener noreferrer",children:[s.icon&&e.jsx(m,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{children:s.title})]}):e.jsxs(v,{href:s.link,children:[s.icon&&e.jsx(m,{name:s.icon,className:"!text-[18px]"}),e.jsx("span",{children:s.title})]})})},s.title)};const j=r=>{const s=k(h.url),n=k(r);return s===n||s.startsWith(`${n}/`)};t[8]=h,t[9]=o}else o=t[9];let c;t[10]!==o||t[11]!==d?(c=j=>{const[r,s]=j;return e.jsxs(B,{className:"px-2 py-0",children:[e.jsx(L,{asChild:!0,className:"cursor-pointer",onClick:()=>y(n=>({...n,[r]:!n[r]})),children:e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(M,{className:`transform transition-transform duration-200 ${d[r]?"rotate-90":""}`}),e.jsx("span",{children:r})]})}),d[r]&&e.jsx(P,{children:e.jsx(Q,{children:s.map(n=>e.jsx(o,{item:n},n.id||n.title))})})]},r)},t[10]=o,t[11]=d,t[12]=c):c=t[12],x=Object.entries(u).map(c),t[4]=p,t[5]=d,t[6]=h,t[7]=x}else x=t[7];let S;return t[13]!==x?(S=e.jsx(e.Fragment,{children:x}),t[13]=x,t[14]=S):S=t[14],S}function U(a,t){const l=t.section||"Platform";return a[l]||(a[l]=[]),a[l].push(t),a}function q(a){return a.split("?")[0].replace(/\/$/,"")}export{T as NavMain};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as b,q as f,bv as x,bw as g,j as s,aS as h,w as j,b4 as w,y as M,aX as S,aY as N,aN as v}from"./app.js";import{UserInfo as C}from"./user-info-CJp_GYZl.js";import{UserMenuContent as D}from"./user-menu-content-ljwR9luU.js";function y(){const e=b.c(15),{auth:t,logout:u,logoutBtn:c}=f().props,{state:m}=x(),p=g();let r;e[0]!==t.user?(r=s.jsx(C,{user:t.user}),e[0]=t.user,e[1]=r):r=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(h,{className:"ml-auto size-4"}),e[2]=a):a=e[2];let o;e[3]!==r?(o=s.jsx(j,{asChild:!0,children:s.jsxs(w,{size:"lg",className:"text-sidebar-accent-foreground data-[state=open]:bg-sidebar-accent group focus-visible:ring-0 cursor-pointer",children:[r,a]})}),e[3]=r,e[4]=o):o=e[4];const d=p?"bottom":m==="collapsed"?"left":"bottom";let n;e[5]!==t.user||e[6]!==u||e[7]!==c?(n=s.jsx(D,{user:t.user,logout:u,logoutBtn:c}),e[5]=t.user,e[6]=u,e[7]=c,e[8]=n):n=e[8];let i;e[9]!==d||e[10]!==n?(i=s.jsx(M,{className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg z-[1002]",align:"end",side:d,children:n}),e[9]=d,e[10]=n,e[11]=i):i=e[11];let l;return e[12]!==o||e[13]!==i?(l=s.jsx(S,{children:s.jsx(N,{children:s.jsxs(v,{children:[o,i]})})}),e[12]=o,e[13]=i,e[14]=l):l=e[14],l}export{y as NavUser};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as V,j as t,a3 as X,a4 as I,a5 as k,a6 as T,U as Y,V as Z,B as G,a7 as F,W as ee,a8 as se,a9 as te,aa as U,ab as W,e as ae,P as le,ac as ie,ad as ne,r as C,ae as oe,af as ce,ag as de,ah as me,ai as he,q as pe,p as ue,L as xe}from"./app.js";import{A as fe}from"./app-layout-CDjEwM9a.js";import{T as K,a as Q,b as ge,c as je}from"./tabs-D5eQoog9.js";import{u as be}from"./app-sidebar-header-B1mI-oGm.js";import"./app-shell-CByYJPLe.js";import"./app-sidebar-CLPoDV2f.js";import"./nav-main-DQNNAKwu.js";import"./material-icon-BE8cT_z7.js";import"./breadcrumbs-0GLBx1iv.js";import"./nav-user-q7QW6ZiI.js";import"./user-info-CJp_GYZl.js";import"./user-menu-content-ljwR9luU.js";import"./theme-switcher-BZ6eg-WU.js";import"./use-appearance-CXP5cHaQ.js";import"./icon-BWrEqTE-.js";const Ne=s=>{const e=V.c(10),{notifications:o,onMarkAsRead:N}=s;let p;e[0]!==N?(p=async(l,a)=>{try{await N(l,a)}catch(f){console.error("Error marking as read:",f)}},e[0]=N,e[1]=p):p=e[1];const g=p;let x;e[2]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(X,{className:"sticky top-0 bg-background shadow z-1",children:t.jsxs(I,{children:[t.jsx(k,{className:"p-2 text-left"}),t.jsx(k,{className:"p-2 text-left",children:"Title"}),t.jsx(k,{className:"p-2 text-left",children:"Message"}),t.jsx(k,{className:"p-2 text-left",children:"Date"})]})}),e[2]=x):x=e[2];let c;if(e[3]!==g||e[4]!==o){let l;e[6]!==g?(l=a=>t.jsxs(I,{className:`${a.read?"":"bg-chart-1/20 hover:bg-chart-1/20"}`,children:[t.jsx(T,{className:"p-2 align-top pt-2.5",children:t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"icon",className:`size-4 ${a.read?"opacity-50 pointer-events-none":""}`,onClick:()=>g(a.notificationClass,a.id),children:t.jsx(F,{className:"text-primary"})})}),t.jsx(ee,{side:"right",className:"z-[1003]",children:t.jsx("p",{children:"Make read"})})]})}),t.jsx(T,{className:"p-2 align-top font-medium",children:a.title}),t.jsx(T,{className:"p-2 whitespace-break-spaces",children:t.jsx("div",{className:"max-w-[500px] whitespace-break-spaces",children:a.message})}),t.jsx(T,{className:"p-2 align-top",children:new Date(a.createdAt).toLocaleString()})]},a.id),e[6]=g,e[7]=l):l=e[7],c=o.map(l),e[3]=g,e[4]=o,e[5]=c}else c=e[5];let j;return e[8]!==c?(j=t.jsxs(se,{wrapperHeight:"max-h-[75vh]",children:[x,t.jsx(te,{children:c})]}),e[8]=c,e[9]=j):j=e[9],j},ve=s=>{const e=V.c(20),{changes:o,title:N,className:p}=s,g=N===void 0?"Changes":N,x=p===void 0?"":p;if(!o||o.length===0){let m;e[0]!==x?(m=U("bg-muted border border-border rounded-lg p-4",x),e[0]=x,e[1]=m):m=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs("div",{className:"flex items-center text-muted-foreground",children:[t.jsx(F,{className:"w-5 h-5 mr-2"}),t.jsx("span",{children:"Changes not found"})]}),e[2]=i):i=e[2];let u;return e[3]!==m?(u=t.jsx("div",{className:m,children:i}),e[3]=m,e[4]=u):u=e[4],u}const c=ye,j=we;let l;e[5]!==x?(l=U("bg-card border border-border rounded-lg shadow-sm",x),e[5]=x,e[6]=l):l=e[6];let a;e[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(W,{className:"w-5 h-5 mr-2"}),e[7]=a):a=e[7];let f;e[8]!==o.length||e[9]!==g?(f=t.jsx("div",{className:"px-4 py-3 border-b border-border bg-muted",children:t.jsxs("h3",{className:"text-lg font-semibold text-card-foreground flex items-center",children:[a,g," (",o.length,")"]})}),e[8]=o.length,e[9]=g,e[10]=f):f=e[10];let d;if(e[11]!==o){let m;e[13]===Symbol.for("react.memo_cache_sentinel")?(m=(i,u)=>{const n=j(i),b=n==="added"?le:n==="removed"?ie:W,h=U("text-xs px-2 py-1 rounded-full bg-opacity-10",n==="added"&&"text-green-600 bg-green-100",n==="removed"&&"text-destructive bg-destructive/20",n==="modified"&&"text-primary bg-primary/20"),w=n==="added"?"text-green-600":n==="removed"?"text-destructive":"text-primary";return t.jsxs("div",{className:"p-4 hover:bg-muted/50 transition-colors",children:[t.jsxs("div",{className:"flex items-center justify-between mb-2",children:[t.jsxs("div",{className:"flex items-center",children:[ae.createElement(b,{className:U("w-4 h-4 mr-2",w)}),t.jsx("span",{className:"font-medium text-card-foreground",children:i.field})]}),t.jsx("span",{className:h,children:n==="added"?"Added":n==="removed"?"Removed":"Updated"})]}),t.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3 text-sm",children:[n!=="added"&&t.jsxs("div",{className:"p-2 bg-destructive/10 border border-destructive/20 rounded",children:[t.jsx("div",{className:"text-xs text-destructive font-medium mb-1",children:"Old:"}),t.jsx("div",{className:"text-destructive-foreground font-mono break-words",children:c(i.oldValue)})]}),n!=="removed"&&t.jsxs("div",{className:"p-2 bg-green-50 border border-green-100 rounded",children:[t.jsx("div",{className:"text-xs text-green-600 font-medium mb-1",children:"New:"}),t.jsx("div",{className:"text-green-800 font-mono break-words",children:c(i.newValue)})]})]}),n==="modified"&&t.jsxs("div",{className:"mt-2 flex items-center text-xs text-muted-foreground",children:[t.jsx(ne,{className:"w-3 h-3 mr-1"}),"changed type: ",i.type]})]},u)},e[13]=m):m=e[13],d=o.map(m),e[11]=o,e[12]=d}else d=e[12];let v;e[14]!==d?(v=t.jsx("div",{className:"divide-y divide-border",children:d}),e[14]=d,e[15]=v):v=e[15];let r;return e[16]!==l||e[17]!==f||e[18]!==v?(r=t.jsxs("div",{className:l,children:[f,v]}),e[16]=l,e[17]=f,e[18]=v,e[19]=r):r=e[19],r};function ye(s){return s===null?"null":s===void 0?"—":typeof s=="boolean"?s?"Да":"Нет":typeof s=="object"?JSON.stringify(s):String(s)}function we(s){return s.oldValue===void 0?"added":s.newValue===void 0?"removed":"modified"}const Ae=s=>{const e=V.c(20),{notifications:o,onMarkAsRead:N}=s,[p,g]=C.useState(!1),[x,c]=C.useState(null);let j;e[0]!==N?(j=async(b,h)=>{try{await N(b,h)}catch(w){console.error("Error marking as read:",w)}},e[0]=N,e[1]=j):j=e[1];const l=j;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(X,{className:"sticky top-0 bg-background shadow z-1",children:t.jsxs(I,{children:[t.jsx(k,{className:"p-2 text-left"}),t.jsx(k,{className:"p-2 text-left",children:"Title"}),t.jsx(k,{className:"p-2 text-left",children:"Message"}),t.jsx(k,{className:"p-2 text-left",children:"Date"}),t.jsx(k,{className:"p-2 text-left",children:"Diff"})]})}),e[2]=a):a=e[2];let f;if(e[3]!==l||e[4]!==o){let b;e[6]!==l?(b=h=>{var w;return t.jsxs(I,{className:`${h.read?"":"bg-chart-1/20 hover:bg-chart-1/20"}`,children:[t.jsx(T,{className:"p-2 pt-2.5",children:t.jsxs(Y,{children:[t.jsx(Z,{asChild:!0,children:t.jsx(G,{variant:"ghost",size:"icon",className:`size-4 ${h.read?"opacity-50 pointer-events-none":""}`,onClick:()=>l(h.notificationClass,h.id),children:t.jsx(F,{className:"text-primary"})})}),t.jsx(ee,{side:"right",className:"z-[1003]",children:t.jsx("p",{children:"Make read"})})]})}),t.jsx(T,{className:"p-2 font-medium",children:h.title}),t.jsx(T,{className:"p-2 whitespace-break-spaces",children:t.jsx("div",{className:"max-w-[500px] whitespace-break-spaces",children:h.message})}),t.jsx(T,{className:"p-2",children:new Date(h.createdAt).toLocaleString()}),t.jsx(T,{className:"p-2",children:((w=h.metadata)==null?void 0:w.changes)&&t.jsx(G,{variant:"green",size:"sm",onClick:()=>{var S;c((S=h.metadata)==null?void 0:S.changes),g(!0)},children:t.jsx(oe,{})})})]},h.id)},e[6]=l,e[7]=b):b=e[7],f=o.map(b),e[3]=l,e[4]=o,e[5]=f}else f=e[5];let d;e[8]!==f?(d=t.jsxs(se,{wrapperHeight:"max-h-[75vh]",children:[a,t.jsx(te,{children:f})]}),e[8]=f,e[9]=d):d=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=b=>{g(b),b||setTimeout(ke,300)},e[10]=v):v=e[10];let r;e[11]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(ce,{children:t.jsx(de,{children:"Diff"})}),e[11]=r):r=e[11];const m=x;let i;e[12]!==m?(i=t.jsxs(me,{className:"z-[1022] sm:max-w-[60vw]",children:[r,t.jsx(ve,{changes:m,className:"max-h-[80vh] overflow-auto sm:max-w-[60vw] w-full"})]}),e[12]=m,e[13]=i):i=e[13];let u;e[14]!==p||e[15]!==i?(u=t.jsx(he,{open:p,onOpenChange:v,children:i}),e[14]=p,e[15]=i,e[16]=u):u=e[16];let n;return e[17]!==d||e[18]!==u?(n=t.jsxs("div",{children:[d,u]}),e[17]=d,e[18]=u,e[19]=n):n=e[19],n};function ke(){document.body.removeAttribute("style")}const Te=()=>{const s=V.c(54),e=pe(),{allNotifications:o,markAsRead:N,fetchAllNotifications:p,loading:g,refreshBellNotifications:x}=be(),[c,j]=C.useState(!0);let l;s[0]===Symbol.for("react.memo_cache_sentinel")?(l=[],s[0]=l):l=s[0];const[a,f]=C.useState(l);let d;s[1]!==e.props.auth.user.isAdministrator||s[2]!==e.url?(d=()=>{const A=new URL(e.url,window.location.origin).searchParams.get("type");return A==="system"&&e.props.auth.user.isAdministrator?"system":"general"},s[1]=e.props.auth.user.isAdministrator,s[2]=e.url,s[3]=d):d=s[3];const v=d,[r,m]=C.useState(v());let i,u;s[4]!==r||s[5]!==e.props.auth.user.isAdministrator||s[6]!==e.url?(i=()=>{const A=new URL(e.url,window.location.origin).searchParams.get("type");if(A&&A!==r){if(A==="system"&&!e.props.auth.user.isAdministrator){m("general");return}m(A)}},u=[e.url,r,e.props.auth.user.isAdministrator],s[4]=r,s[5]=e.props.auth.user.isAdministrator,s[6]=e.url,s[7]=i,s[8]=u):(i=s[7],u=s[8]),C.useEffect(i,u);let n;s[9]!==r||s[10]!==p?(n=()=>{(async()=>{j(!0),await p(r),j(!1)})()},s[9]=r,s[10]=p,s[11]=n):n=s[11];let b;s[12]!==r?(b=[r],s[12]=r,s[13]=b):b=s[13],C.useEffect(n,b);let h,w;s[14]!==r||s[15]!==o?(h=()=>{const y=o.filter(A=>A.notificationClass===r);f(y)},w=[o,r],s[14]=r,s[15]=o,s[16]=h,s[17]=w):(h=s[16],w=s[17]),C.useEffect(h,w);let S;s[18]!==p||s[19]!==e.props.auth.user.isAdministrator||s[20]!==e.url?(S=async y=>{y==="system"&&!e.props.auth.user.isAdministrator||(m(y),j(!0),ue.get(e.url,{type:y},{preserveState:!0,preserveScroll:!0,replace:!0}),await p(y),j(!1))},s[18]=p,s[19]=e.props.auth.user.isAdministrator,s[20]=e.url,s[21]=S):S=s[21];const q=S;let P;s[22]!==N||s[23]!==x?(P=async(y,A)=>{try{await N(y,A),await x()}catch(re){const J=re;throw console.error("Error marking as read:",J),J}},s[22]=N,s[23]=x,s[24]=P):P=s[24];const B=P;let H;s[25]!==g||s[26]!==a||s[27]!==B||s[28]!==c?(H=y=>c||g?t.jsx(xe,{className:"mx-auto mt-14 size-8 animate-spin"}):a.length===0?t.jsx("div",{className:"text-center font-medium mt-8",children:"No notifications found"}):y==="general"?t.jsx(Ne,{notifications:a,onMarkAsRead:B}):t.jsx(Ae,{notifications:a,onMarkAsRead:B}),s[25]=g,s[26]=a,s[27]=B,s[28]=c,s[29]=H):H=s[29];const _=H;let D;s[30]!==e.props.title?(D=t.jsx("h1",{className:"font-bold text-xl",children:e.props.title}),s[30]=e.props.title,s[31]=D):D=s[31];let R;s[32]!==c?(R=t.jsx(K,{value:"general",disabled:c,children:"General"}),s[32]=c,s[33]=R):R=s[33];let L;s[34]!==c||s[35]!==e.props.auth.user.isAdministrator?(L=e.props.auth.user.isAdministrator&&t.jsx(K,{value:"system",disabled:c,children:"System"}),s[34]=c,s[35]=e.props.auth.user.isAdministrator,s[36]=L):L=s[36];let M;s[37]!==R||s[38]!==L?(M=t.jsxs(ge,{className:"w-full mb-4",children:[R,L]}),s[37]=R,s[38]=L,s[39]=M):M=s[39];let z;s[40]!==_?(z=t.jsx(Q,{value:"general",children:_("general")}),s[40]=_,s[41]=z):z=s[41];let E;s[42]!==e.props.auth.user.isAdministrator||s[43]!==_?(E=e.props.auth.user.isAdministrator&&t.jsx(Q,{value:"system",children:_("system")}),s[42]=e.props.auth.user.isAdministrator,s[43]=_,s[44]=E):E=s[44];let $;s[45]!==r||s[46]!==q||s[47]!==M||s[48]!==z||s[49]!==E?($=t.jsxs(je,{value:r,className:"w-full",onValueChange:q,children:[M,z,E]}),s[45]=r,s[46]=q,s[47]=M,s[48]=z,s[49]=E,s[50]=$):$=s[50];let O;return s[51]!==D||s[52]!==$?(O=t.jsxs("div",{className:"flex h-auto flex-1 flex-col gap-4 rounded-xl p-4",children:[D,$]}),s[51]=D,s[52]=$,s[53]=O):O=s[53],O},Se=[],Ie=()=>{const s=V.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(fe,{breadcrumbs:Se,children:t.jsx(Te,{})}),s[0]=e):e=s[0],e};export{Ie as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as F,j as a,bV as k,bW as _,bX as w,bY as A,bZ as W,b_ as X}from"./app.js";const z=i=>{const e=F.c(44),{pagination:t,pageChange:n,currentPage:s}=i,D=t.links.filter(Y).map(Z),I=D.includes(1),L=D.includes(t.last_page),y=`${I?"opacity-50 pointer-events-none":"opacity-100"}`,j=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===1?"opacity-50 pointer-events-none":""}`;let o;e[0]!==s||e[1]!==n?(o=r=>{r.preventDefault(),s!==1&&n(1)},e[0]=s,e[1]=n,e[2]=o):o=e[2];let l;e[3]!==j||e[4]!==o?(l=a.jsx(k,{className:j,onClick:o,children:"First"}),e[3]=j,e[4]=o,e[5]=l):l=e[5];let c;e[6]!==y||e[7]!==l?(c=a.jsx(_,{className:y,children:l}),e[6]=y,e[7]=l,e[8]=c):c=e[8];const P=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.prev_page_url?"":"opacity-50 pointer-events-none"}`;let p;e[9]!==s||e[10]!==n||e[11]!==t.prev_page_url?(p=r=>{r.preventDefault(),t.prev_page_url&&n(s-1)},e[9]=s,e[10]=n,e[11]=t.prev_page_url,e[12]=p):p=e[12];let u;e[13]!==P||e[14]!==p?(u=a.jsx(_,{children:a.jsx(w,{className:P,onClick:p})}),e[13]=P,e[14]=p,e[15]=u):u=e[15];let g;if(e[16]!==n||e[17]!==t.links){let r;e[19]!==n?(r=(v,R)=>v.label==="Previous"||v.label==="Next"?null:a.jsx(_,{children:a.jsx(k,{className:`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${v.active?"!bg-primary dark:!bg-muted-foreground !text-primary-foreground dark:!text-ring":""}`,onClick:V=>{V.preventDefault();const E=parseInt(v.label);n(E)},isActive:v.active,children:v.label})},R),e[19]=n,e[20]=r):r=e[20],g=t.links.map(r),e[16]=n,e[17]=t.links,e[18]=g}else g=e[18];const N=`cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${t.next_page_url?"":"opacity-50 pointer-events-none"}`;let f;e[21]!==s||e[22]!==n||e[23]!==t.next_page_url?(f=r=>{r.preventDefault(),t.next_page_url&&n(s+1)},e[21]=s,e[22]=n,e[23]=t.next_page_url,e[24]=f):f=e[24];let d;e[25]!==N||e[26]!==f?(d=a.jsx(_,{children:a.jsx(A,{className:N,onClick:f})}),e[25]=N,e[26]=f,e[27]=d):d=e[27];const $=`${L?"opacity-50 pointer-events-none":"opacity-100"}`,C=`px-6 cursor-pointer bg-secondary hover:bg-muted-foreground/15 ${s===t.last_page?"opacity-50 pointer-events-none":""}`;let b;e[28]!==s||e[29]!==n||e[30]!==t.last_page?(b=r=>{r.preventDefault(),s!==t.last_page&&n(t.last_page)},e[28]=s,e[29]=n,e[30]=t.last_page,e[31]=b):b=e[31];let m;e[32]!==C||e[33]!==b?(m=a.jsx(k,{className:C,onClick:b,children:"Last"}),e[32]=C,e[33]=b,e[34]=m):m=e[34];let x;e[35]!==$||e[36]!==m?(x=a.jsx(_,{className:$,children:m}),e[35]=$,e[36]=m,e[37]=x):x=e[37];let h;return e[38]!==d||e[39]!==x||e[40]!==c||e[41]!==u||e[42]!==g?(h=a.jsx(W,{children:a.jsxs(X,{className:"flex-wrap",children:[c,u,g,d,x]})}),e[38]=d,e[39]=x,e[40]=c,e[41]=u,e[42]=g,e[43]=h):h=e[43],h};function Y(i){return i.label!=="Previous"&&i.label!=="Next"}function Z(i){return parseInt(i.label)}export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as Pe,q as _e,r as ye,a1 as Se,j as l,a as W,I as X,S as ke,b as Ce,B as Le,$ as Ee,T as Te,i as Ie,f as $e,k as qe,t as Be}from"./app.js";import Y from"./input-error-BBzQCTcg.js";import{i as Fe}from"./use-appearance-CXP5cHaQ.js";function Ae(){const e=Pe.c(151),s=_e();let Z;e[0]===Symbol.for("react.memo_cache_sentinel")?(Z=[],e[0]=Z):Z=e[0],ye.useEffect(Ve,Z);let ee;e[1]===Symbol.for("react.memo_cache_sentinel")?(ee={locale:"en",email:"",confirmPassword:"",password:"",fullName:"",login:""},e[1]=ee):ee=e[1];const{post:de,data:r,setData:me,processing:a,setError:fe,errors:t,clearErrors:ue}=Se(ee);let se;e[2]!==r.confirmPassword||e[3]!==r.password||e[4]!==s.props.confirmError||e[5]!==s.props.submitLink||e[6]!==de||e[7]!==fe?(se=i=>{if(i.preventDefault(),r.password!==r.confirmPassword){fe("confirmPassword",s.props.confirmError);return}de(s.props.submitLink,{onSuccess:Re,onError:De})},e[2]=r.confirmPassword,e[3]=r.password,e[4]=s.props.confirmError,e[5]=s.props.submitLink,e[6]=de,e[7]=fe,e[8]=se):se=e[8];const be=se;let le;e[9]!==ue||e[10]!==me?(le=(i,ve)=>{ue(),me(i,ve)},e[9]=ue,e[10]=me,e[11]=le):le=e[11];const o=le;let ae;e[12]===Symbol.for("react.memo_cache_sentinel")?(ae=l.jsx(Te,{position:"top-center",richColors:!0,closeButton:!0}),e[12]=ae):ae=e[12];let n;e[13]!==s.props.header.title?(n=l.jsx("h1",{className:"font-medium mb-2 text-xl",children:s.props.header.title}),e[13]=s.props.header.title,e[14]=n):n=e[14];let p;e[15]!==s.props.header.desc?(p=l.jsx("p",{className:"text-muted-foreground text-sm",children:s.props.header.desc}),e[15]=s.props.header.desc,e[16]=p):p=e[16];let re;e[17]===Symbol.for("react.memo_cache_sentinel")?(re=l.jsx("span",{className:"text-red-500",children:"*"}),e[17]=re):re=e[17];let c;e[18]!==s.props.loginLabel?(c=l.jsxs(W,{htmlFor:"login",children:[s.props.loginLabel,re]}),e[18]=s.props.loginLabel,e[19]=c):c=e[19];const he=`${t.login?"border-red-500":""}`;let d;e[20]!==o?(d=i=>{o("login",i.target.value)},e[20]=o,e[21]=d):d=e[21];let m;e[22]!==r.login||e[23]!==s.props.loginLabel||e[24]!==a||e[25]!==d||e[26]!==he?(m=l.jsx(X,{id:"login",className:he,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:r.login,disabled:a,onChange:d,placeholder:s.props.loginLabel}),e[22]=r.login,e[23]=s.props.loginLabel,e[24]=a,e[25]=d,e[26]=he,e[27]=m):m=e[27];let f;e[28]!==t.login?(f=l.jsx(Y,{message:t.login}),e[28]=t.login,e[29]=f):f=e[29];let u;e[30]!==m||e[31]!==f?(u=l.jsxs("div",{className:"relative",children:[m,f]}),e[30]=m,e[31]=f,e[32]=u):u=e[32];let b;e[33]!==u||e[34]!==c?(b=l.jsxs("div",{className:"grid gap-4",children:[c,u]}),e[33]=u,e[34]=c,e[35]=b):b=e[35];let te;e[36]===Symbol.for("react.memo_cache_sentinel")?(te=l.jsx("span",{className:"text-red-500",children:"*"}),e[36]=te):te=e[36];let h;e[37]!==s.props.fullNameLabel?(h=l.jsxs(W,{htmlFor:"fullName",children:[s.props.fullNameLabel,te]}),e[37]=s.props.fullNameLabel,e[38]=h):h=e[38];const xe=`${t.fullName?"border-red-500":""}`;let x;e[39]!==o?(x=i=>{o("fullName",i.target.value)},e[39]=o,e[40]=x):x=e[40];let g;e[41]!==r.fullName||e[42]!==s.props.fullNameLabel||e[43]!==a||e[44]!==xe||e[45]!==x?(g=l.jsx(X,{id:"fullName",className:xe,type:"text",required:!0,tabIndex:1,autoComplete:"fullName",value:r.fullName,disabled:a,onChange:x,placeholder:s.props.fullNameLabel}),e[41]=r.fullName,e[42]=s.props.fullNameLabel,e[43]=a,e[44]=xe,e[45]=x,e[46]=g):g=e[46];let w;e[47]!==t.fullName?(w=l.jsx(Y,{message:t.fullName}),e[47]=t.fullName,e[48]=w):w=e[48];let j;e[49]!==g||e[50]!==w?(j=l.jsxs("div",{className:"relative",children:[g,w]}),e[49]=g,e[50]=w,e[51]=j):j=e[51];let N;e[52]!==h||e[53]!==j?(N=l.jsxs("div",{className:"grid gap-4",children:[h,j]}),e[52]=h,e[53]=j,e[54]=N):N=e[54];let oe;e[55]===Symbol.for("react.memo_cache_sentinel")?(oe=l.jsx("span",{className:"text-red-500",children:"*"}),e[55]=oe):oe=e[55];let L;e[56]!==s.props.passwordLabel?(L=l.jsxs(W,{htmlFor:"password",children:[s.props.passwordLabel,oe]}),e[56]=s.props.passwordLabel,e[57]=L):L=e[57];const ge=`${t.password?"border-red-500":""}`;let v;e[58]!==o?(v=i=>{o("password",i.target.value)},e[58]=o,e[59]=v):v=e[59];let P;e[60]!==r.password||e[61]!==s.props.passwordLabel||e[62]!==a||e[63]!==ge||e[64]!==v?(P=l.jsx(X,{id:"password",className:ge,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.password,disabled:a,onChange:v,placeholder:s.props.passwordLabel}),e[60]=r.password,e[61]=s.props.passwordLabel,e[62]=a,e[63]=ge,e[64]=v,e[65]=P):P=e[65];let _;e[66]!==t.password?(_=l.jsx(Y,{message:t.password}),e[66]=t.password,e[67]=_):_=e[67];let y;e[68]!==P||e[69]!==_?(y=l.jsxs("div",{className:"relative",children:[P,_]}),e[68]=P,e[69]=_,e[70]=y):y=e[70];let S;e[71]!==L||e[72]!==y?(S=l.jsxs("div",{className:"grid gap-4",children:[L,y]}),e[71]=L,e[72]=y,e[73]=S):S=e[73];let ie;e[74]===Symbol.for("react.memo_cache_sentinel")?(ie=l.jsx("span",{className:"text-red-500",children:"*"}),e[74]=ie):ie=e[74];let k;e[75]!==s.props.confirmPasswordLabel?(k=l.jsxs(W,{htmlFor:"confirmPassword",children:[s.props.confirmPasswordLabel,ie]}),e[75]=s.props.confirmPasswordLabel,e[76]=k):k=e[76];const we=`${t.confirmPassword?"border-red-500":""}`;let C;e[77]!==o?(C=i=>{o("confirmPassword",i.target.value)},e[77]=o,e[78]=C):C=e[78];let E;e[79]!==r.confirmPassword||e[80]!==s.props.confirmPasswordLabel||e[81]!==a||e[82]!==we||e[83]!==C?(E=l.jsx(X,{id:"confirmPassword",className:we,type:"password",required:!0,tabIndex:1,autoComplete:"new-password",value:r.confirmPassword,disabled:a,onChange:C,placeholder:s.props.confirmPasswordLabel}),e[79]=r.confirmPassword,e[80]=s.props.confirmPasswordLabel,e[81]=a,e[82]=we,e[83]=C,e[84]=E):E=e[84];let T;e[85]!==t.confirmPassword?(T=l.jsx(Y,{message:t.confirmPassword}),e[85]=t.confirmPassword,e[86]=T):T=e[86];let I;e[87]!==E||e[88]!==T?(I=l.jsxs("div",{className:"relative",children:[E,T]}),e[87]=E,e[88]=T,e[89]=I):I=e[89];let $;e[90]!==k||e[91]!==I?($=l.jsxs("div",{className:"grid gap-4",children:[k,I]}),e[90]=k,e[91]=I,e[92]=$):$=e[92];let ne;e[93]===Symbol.for("react.memo_cache_sentinel")?(ne=l.jsx("span",{className:"text-red-500",children:"*"}),e[93]=ne):ne=e[93];let q;e[94]!==s.props.emailLabel?(q=l.jsxs(W,{htmlFor:"email",children:[s.props.emailLabel,ne]}),e[94]=s.props.emailLabel,e[95]=q):q=e[95];const je=`${t.email?"border-red-500":""}`;let B;e[96]!==o?(B=i=>{o("email",i.target.value)},e[96]=o,e[97]=B):B=e[97];let F;e[98]!==r.email||e[99]!==s.props.emailLabel||e[100]!==a||e[101]!==je||e[102]!==B?(F=l.jsx(X,{id:"email",className:je,type:"email",required:!0,tabIndex:1,autoComplete:"email",value:r.email,disabled:a,onChange:B,placeholder:s.props.emailLabel}),e[98]=r.email,e[99]=s.props.emailLabel,e[100]=a,e[101]=je,e[102]=B,e[103]=F):F=e[103];let D;e[104]!==t.email?(D=l.jsx(Y,{message:t.email}),e[104]=t.email,e[105]=D):D=e[105];let R;e[106]!==F||e[107]!==D?(R=l.jsxs("div",{className:"relative",children:[F,D]}),e[106]=F,e[107]=D,e[108]=R):R=e[108];let V;e[109]!==q||e[110]!==R?(V=l.jsxs("div",{className:"grid gap-4",children:[q,R]}),e[109]=q,e[110]=R,e[111]=V):V=e[111];let z;e[112]!==s.props.localeLabel?(z=l.jsx(W,{htmlFor:"locale",children:s.props.localeLabel}),e[112]=s.props.localeLabel,e[113]=z):z=e[113];let J;e[114]!==o?(J=i=>o("locale",i),e[114]=o,e[115]=J):J=e[115];let O;e[116]!==s.props.localeLabel?(O=l.jsx(ke,{className:"w-full cursor-pointer",children:l.jsx(Ce,{placeholder:s.props.localeLabel})}),e[116]=s.props.localeLabel,e[117]=O):O=e[117];let pe;e[118]===Symbol.for("react.memo_cache_sentinel")?(pe=l.jsx(Ie,{children:l.jsx($e,{value:"en",children:"EN"})}),e[118]=pe):pe=e[118];let A;e[119]!==a||e[120]!==J||e[121]!==O?(A=l.jsxs(qe,{onValueChange:J,defaultValue:"en",disabled:a,children:[O,pe]}),e[119]=a,e[120]=J,e[121]=O,e[122]=A):A=e[122];let G;e[123]!==z||e[124]!==A?(G=l.jsxs("div",{className:"grid gap-4",children:[z,A]}),e[123]=z,e[124]=A,e[125]=G):G=e[125];let H;e[126]!==s.props.submitButton||e[127]!==a?(H=l.jsx(Le,{type:"submit",className:"w-fit",disabled:a,children:s.props.submitButton}),e[126]=s.props.submitButton,e[127]=a,e[128]=H):H=e[128];const Ne=`${a} ? 'pointer-events-none opacity-50' : ''`;let K;e[129]!==s.props.backToLogin.link||e[130]!==s.props.backToLogin.text||e[131]!==Ne?(K=l.jsx(Le,{asChild:!0,variant:"outline",children:l.jsx(Ee,{href:s.props.backToLogin.link,className:Ne,children:s.props.backToLogin.text})}),e[129]=s.props.backToLogin.link,e[130]=s.props.backToLogin.text,e[131]=Ne,e[132]=K):K=e[132];let M;e[133]!==H||e[134]!==K?(M=l.jsxs("div",{className:"flex gap-4",children:[H,K]}),e[133]=H,e[134]=K,e[135]=M):M=e[135];let Q;e[136]!==b||e[137]!==N||e[138]!==S||e[139]!==$||e[140]!==V||e[141]!==G||e[142]!==M?(Q=l.jsxs("div",{className:"grid gap-5",children:[b,N,S,$,V,G,M]}),e[136]=b,e[137]=N,e[138]=S,e[139]=$,e[140]=V,e[141]=G,e[142]=M,e[143]=Q):Q=e[143];let U;e[144]!==be||e[145]!==Q?(U=l.jsx("form",{onSubmit:be,className:"mt-6",children:Q}),e[144]=be,e[145]=Q,e[146]=U):U=e[146];let ce;return e[147]!==n||e[148]!==U||e[149]!==p?(ce=l.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center items-center",children:[ae,l.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit",children:[n,p,U]})]}),e[147]=n,e[148]=U,e[149]=p,e[150]=ce):ce=e[150],ce}function De(e){for(const s of Object.keys(e))Be.error(e[s])}function Re(){}function Ve(){Fe()}export{Ae as default};
|
package/assets/tabs-D5eQoog9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,j as d,aB as fe,aC as $,e as y,aD as G,aE as B,aF as R,aG as U,aH as H,aI as pe,aJ as me,c as P,aa as j}from"./app.js";function L(t){const e=ve(t),n=a.forwardRef((o,r)=>{const{children:s,...i}=o,l=a.Children.toArray(s),v=l.find(ge);if(v){const p=v.props.children,c=l.map(f=>f===v?a.Children.count(p)>1?a.Children.only(null):a.isValidElement(p)?p.props.children:null:f);return d.jsx(e,{...i,ref:r,children:a.isValidElement(p)?a.cloneElement(p,void 0,c):null})}return d.jsx(e,{...i,ref:r,children:s})});return n.displayName=`${t}.Slot`,n}function ve(t){const e=a.forwardRef((n,o)=>{const{children:r,...s}=n;if(a.isValidElement(r)){const i=Ce(r),l=Ie(s,r.props);return r.type!==a.Fragment&&(l.ref=o?fe(o,i):i),a.cloneElement(r,l)}return a.Children.count(r)>1?a.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var be=Symbol("radix.slottable");function ge(t){return a.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===be}function Ie(t,e){const n={...e};for(const o in e){const r=t[o],s=e[o];/^on[A-Z]/.test(o)?r&&s?n[o]=(...l)=>{const v=s(...l);return r(...l),v}:r&&(n[o]=r):o==="style"?n[o]={...r,...s}:o==="className"&&(n[o]=[r,s].filter(Boolean).join(" "))}return{...t,...n}}function Ce(t){var o,r;let e=(o=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:o.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function xe(t){const e=t+"CollectionProvider",[n,o]=$(e),[r,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),i=x=>{const{scope:u,children:g}=x,T=y.useRef(null),m=y.useRef(new Map).current;return d.jsx(r,{scope:u,itemMap:m,collectionRef:T,children:g})};i.displayName=e;const l=t+"CollectionSlot",v=L(l),p=y.forwardRef((x,u)=>{const{scope:g,children:T}=x,m=s(l,g),b=G(u,m.collectionRef);return d.jsx(v,{ref:b,children:T})});p.displayName=l;const c=t+"CollectionItemSlot",f="data-radix-collection-item",I=L(c),E=y.forwardRef((x,u)=>{const{scope:g,children:T,...m}=x,b=y.useRef(null),w=G(u,b),F=s(c,g);return y.useEffect(()=>(F.itemMap.set(b,{ref:b,...m}),()=>void F.itemMap.delete(b))),d.jsx(I,{[f]:"",ref:w,children:T})});E.displayName=c;function h(x){const u=s(t+"CollectionConsumer",x);return y.useCallback(()=>{const T=u.collectionRef.current;if(!T)return[];const m=Array.from(T.querySelectorAll(`[${f}]`));return Array.from(u.itemMap.values()).sort((F,A)=>m.indexOf(F.ref.current)-m.indexOf(A.ref.current))},[u.collectionRef,u.itemMap])}return[{Provider:i,Slot:p,ItemSlot:E},h,o]}var Te=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],_=Te.reduce((t,e)=>{const n=L(`Primitive.${e}`),o=a.forwardRef((r,s)=>{const{asChild:i,...l}=r,v=i?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(v,{...l,ref:s})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{}),O="rovingFocusGroup.onEntryFocus",Re={bubbles:!1,cancelable:!0},N="RovingFocusGroup",[k,W,Ee]=xe(N),[Se,z]=$(N,[Ee]),[ye,he]=Se(N),Y=a.forwardRef((t,e)=>d.jsx(k.Provider,{scope:t.__scopeRovingFocusGroup,children:d.jsx(k.Slot,{scope:t.__scopeRovingFocusGroup,children:d.jsx(we,{...t,ref:e})})}));Y.displayName=N;var we=a.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:r=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:v,onEntryFocus:p,preventScrollOnEntryFocus:c=!1,...f}=t,I=a.useRef(null),E=G(e,I),h=U(s),[x,u]=H({prop:i,defaultProp:l??null,onChange:v,caller:N}),[g,T]=a.useState(!1),m=pe(p),b=W(n),w=a.useRef(!1),[F,A]=a.useState(0);return a.useEffect(()=>{const C=I.current;if(C)return C.addEventListener(O,m),()=>C.removeEventListener(O,m)},[m]),d.jsx(ye,{scope:n,orientation:o,dir:h,loop:r,currentTabStopId:x,onItemFocus:a.useCallback(C=>u(C),[u]),onItemShiftTab:a.useCallback(()=>T(!0),[]),onFocusableItemAdd:a.useCallback(()=>A(C=>C+1),[]),onFocusableItemRemove:a.useCallback(()=>A(C=>C-1),[]),children:d.jsx(_.div,{tabIndex:g||F===0?-1:0,"data-orientation":o,...f,ref:E,style:{outline:"none",...t.style},onMouseDown:R(t.onMouseDown,()=>{w.current=!0}),onFocus:R(t.onFocus,C=>{const ce=!w.current;if(C.target===C.currentTarget&&ce&&!g){const K=new CustomEvent(O,Re);if(C.currentTarget.dispatchEvent(K),!K.defaultPrevented){const D=b().filter(S=>S.focusable),le=D.find(S=>S.active),ue=D.find(S=>S.id===x),de=[le,ue,...D].filter(Boolean).map(S=>S.ref.current);Z(de,c)}}w.current=!1}),onBlur:R(t.onBlur,()=>T(!1))})})}),q="RovingFocusGroupItem",J=a.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:r=!1,tabStopId:s,children:i,...l}=t,v=B(),p=s||v,c=he(q,n),f=c.currentTabStopId===p,I=W(n),{onFocusableItemAdd:E,onFocusableItemRemove:h,currentTabStopId:x}=c;return a.useEffect(()=>{if(o)return E(),()=>h()},[o,E,h]),d.jsx(k.ItemSlot,{scope:n,id:p,focusable:o,active:r,children:d.jsx(_.span,{tabIndex:f?0:-1,"data-orientation":c.orientation,...l,ref:e,onMouseDown:R(t.onMouseDown,u=>{o?c.onItemFocus(p):u.preventDefault()}),onFocus:R(t.onFocus,()=>c.onItemFocus(p)),onKeyDown:R(t.onKeyDown,u=>{if(u.key==="Tab"&&u.shiftKey){c.onItemShiftTab();return}if(u.target!==u.currentTarget)return;const g=Ne(u,c.orientation,c.dir);if(g!==void 0){if(u.metaKey||u.ctrlKey||u.altKey||u.shiftKey)return;u.preventDefault();let m=I().filter(b=>b.focusable).map(b=>b.ref.current);if(g==="last")m.reverse();else if(g==="prev"||g==="next"){g==="prev"&&m.reverse();const b=m.indexOf(u.currentTarget);m=c.loop?Ae(m,b+1):m.slice(b+1)}setTimeout(()=>Z(m))}}),children:typeof i=="function"?i({isCurrentTabStop:f,hasTabStop:x!=null}):i})})});J.displayName=q;var Fe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _e(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function Ne(t,e,n){const o=_e(t.key,n);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Fe[o]}function Z(t,e=!1){const n=document.activeElement;for(const o of t)if(o===n||(o.focus({preventScroll:e}),document.activeElement!==n))return}function Ae(t,e){return t.map((n,o)=>t[(e+o)%t.length])}var Pe=Y,je=J,M="Tabs",[Me,Ke]=$(M,[z]),Q=z(),[De,V]=Me(M),X=a.forwardRef((t,e)=>{const{__scopeTabs:n,value:o,onValueChange:r,defaultValue:s,orientation:i="horizontal",dir:l,activationMode:v="automatic",...p}=t,c=U(l),[f,I]=H({prop:o,onChange:r,defaultProp:s??"",caller:M});return d.jsx(De,{scope:n,baseId:B(),value:f,onValueChange:I,orientation:i,dir:c,activationMode:v,children:d.jsx(_.div,{dir:c,"data-orientation":i,...p,ref:e})})});X.displayName=M;var ee="TabsList",te=a.forwardRef((t,e)=>{const{__scopeTabs:n,loop:o=!0,...r}=t,s=V(ee,n),i=Q(n);return d.jsx(Pe,{asChild:!0,...i,orientation:s.orientation,dir:s.dir,loop:o,children:d.jsx(_.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});te.displayName=ee;var oe="TabsTrigger",ne=a.forwardRef((t,e)=>{const{__scopeTabs:n,value:o,disabled:r=!1,...s}=t,i=V(oe,n),l=Q(n),v=ae(i.baseId,o),p=ie(i.baseId,o),c=o===i.value;return d.jsx(je,{asChild:!0,...l,focusable:!r,active:c,children:d.jsx(_.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":p,"data-state":c?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:v,...s,ref:e,onMouseDown:R(t.onMouseDown,f=>{!r&&f.button===0&&f.ctrlKey===!1?i.onValueChange(o):f.preventDefault()}),onKeyDown:R(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&i.onValueChange(o)}),onFocus:R(t.onFocus,()=>{const f=i.activationMode!=="manual";!c&&!r&&f&&i.onValueChange(o)})})})});ne.displayName=oe;var re="TabsContent",se=a.forwardRef((t,e)=>{const{__scopeTabs:n,value:o,forceMount:r,children:s,...i}=t,l=V(re,n),v=ae(l.baseId,o),p=ie(l.baseId,o),c=o===l.value,f=a.useRef(c);return a.useEffect(()=>{const I=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(I)},[]),d.jsx(me,{present:r||c,children:({present:I})=>d.jsx(_.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":v,hidden:!I,id:p,tabIndex:0,...i,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:I&&s})})});se.displayName=re;function ae(t,e){return`${t}-trigger-${e}`}function ie(t,e){return`${t}-content-${e}`}var Oe=X,Ge=te,Le=ne,ke=se;function Be(t){const e=P.c(8);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=j("flex flex-col gap-2",n),e[3]=n,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=d.jsx(Oe,{"data-slot":"tabs",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function Ue(t){const e=P.c(8);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=j("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]",n),e[3]=n,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=d.jsx(Ge,{"data-slot":"tabs-list",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function He(t){const e=P.c(8);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=j("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",n),e[3]=n,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=d.jsx(Le,{"data-slot":"tabs-trigger",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}function We(t){const e=P.c(8);let n,o;e[0]!==t?({className:n,...o}=t,e[0]=t,e[1]=n,e[2]=o):(n=e[1],o=e[2]);let r;e[3]!==n?(r=j("flex-1 outline-none",n),e[3]=n,e[4]=r):r=e[4];let s;return e[5]!==o||e[6]!==r?(s=d.jsx(ke,{"data-slot":"tabs-content",className:r,...o}),e[5]=o,e[6]=r,e[7]=s):s=e[7],s}export{He as T,We as a,Ue as b,Be as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,bx as h,by as d,bz as x,j as m,B as k}from"./app.js";import{u as y}from"./use-appearance-CXP5cHaQ.js";import{Icon as b}from"./icon-BWrEqTE-.js";function _(){const e=u.c(10),{appearance:s,updateAppearance:r}=y();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={light:"dark",dark:"system",system:"light"},e[0]=n):n=e[0];const p=n;let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={light:x,dark:d,system:h},e[1]=o):o=e[1];const f=o;let a;e[2]!==s||e[3]!==r?(a=()=>r(p[s]),e[2]=s,e[3]=r,e[4]=a):a=e[4];const i=a,l=f[s];let t;e[5]!==l?(t=m.jsx(b,{iconNode:l}),e[5]=l,e[6]=t):t=e[6];let c;return e[7]!==i||e[8]!==t?(c=m.jsx(k,{variant:"ghost",size:"icon",onClick:i,className:"shrink-0",children:t}),e[7]=i,e[8]=t,e[9]=c):c=e[9],c}export{_ as ThemeSwitcher,_ as default};
|