adminizer 4.1.0-commit.d8a06d3 → 4.1.1
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/Readme.md +46 -0
- package/assets/{VanillaJSONEditor-D-Lx670g.js → VanillaJSONEditor-DfRefswH.js} +104 -104
- package/assets/add-CJ1-zeA1.js +1 -0
- package/assets/add-form-CbNl0wdS.js +1 -0
- package/assets/add-group-form-Bt_Dx9wm.js +1 -0
- package/assets/add-group-pIFJV5qL.js +1 -0
- package/assets/add-user-D2US8hL_.js +1 -0
- package/assets/add-user-form-Bt8Jy6S2.js +1 -0
- package/assets/{app-WTooYWC3.css → app-B6cCPfWk.css} +1 -1
- package/assets/app-layout-B86jl9bH.js +1 -0
- package/assets/app-shell-CiGyzQ0C.js +1 -0
- package/assets/app-sidebar-Bz-SRwBg.js +1 -0
- package/assets/app-sidebar-header-7CNCx7Rs.js +11 -0
- package/assets/app.js +45 -37
- package/assets/breadcrumbs-_jhtTcOi.js +1 -0
- package/assets/catalog-CON6moaA.js +16 -0
- package/assets/catalog-Cc6Mk9sX.css +1 -0
- package/assets/checkbox-CQdZw5mb.js +1 -0
- package/assets/dashboard-es9ZT8qk.js +3 -0
- package/assets/{date-picker-DI1cCO7K.js → date-picker-Dz-d-YWX.js} +2 -2
- package/assets/debounce-qdyXyOeG.js +1 -0
- package/assets/del-modal-D0mrZvki.js +11 -0
- package/assets/dialog-stack-BiMbfm58.js +1 -0
- package/assets/dropdown-menu-BSBcRiXx.js +1 -0
- package/assets/{field-renderer-DVHZF6HS.js → field-renderer-B6hFAeiU.js} +3 -3
- package/assets/form-Buslty7y.js +1 -0
- package/assets/form-aqiRmPix.js +1 -0
- package/assets/{geo-json-BjiyTtMu.js → geo-json-BKmYmu3d.js} +2 -2
- package/assets/{handsontable-4mjU_b0n.js → handsontable-B8xVeMAQ.js} +5 -5
- package/assets/home-Dr72Jk-w.js +2 -0
- package/assets/icon-B-a7xg54.js +1 -0
- package/assets/index-B68_akQe.js +1 -0
- package/assets/index-B7-xTDyy.js +1 -0
- package/assets/index-BJFFlCSo.js +1 -0
- package/assets/{index-Cw5o84pO.js → index-BOuMo_nl.js} +3 -3
- package/assets/index-BzOcGsBq.js +1 -0
- package/assets/index-CFbQ2Rv0.js +1 -0
- package/assets/{index-D5ir9iUV.js → index-Cq31rrfZ.js} +1 -1
- package/assets/{index-Cgp8OfuI.js → index-D5UDXTFs.js} +1 -1
- package/assets/index-oxIQWAdI.js +41 -0
- package/assets/init-user-5H689LP0.js +1 -0
- package/assets/input-CSJjrf2i.js +1 -0
- package/assets/input-error-CK92Shhm.js +1 -0
- package/assets/label-Muj0-Efy.js +1 -0
- package/assets/list-Cvh7zbyG.js +1 -0
- package/assets/list-table-Bs_vbQiV.js +52 -0
- package/assets/login-DliJrjMQ.js +6 -0
- package/assets/manifest.json +575 -673
- package/assets/material-icon-BRS58Qpk.js +1 -0
- package/assets/module-CjG21VCT.js +1 -0
- package/assets/{monaco-editor-CJs0_GlD.js → monaco-editor-9fDiyfuW.js} +2 -2
- package/assets/{multi-select-BvRpAW8r.js → multi-select-CMQIJ0JT.js} +2 -2
- package/assets/nav-footer-IGMn9NiE.js +1 -0
- package/assets/nav-main-DBE4rMiZ.js +1 -0
- package/assets/nav-user-CjyLRyq-.js +1 -0
- package/assets/pagination-render-DUAq2klc.js +1 -0
- package/assets/popover-C_cww-4_.js +1 -0
- package/assets/register-UzQn3J0g.js +1 -0
- package/assets/{select-BWepUw-9.js → select-DzBno-dc.js} +2 -2
- package/assets/{sidebar-CAHsHdjM.js → sidebar-Dc4iqfu-.js} +2 -2
- package/assets/skeleton-Dkmj2o2Z.js +1 -0
- package/assets/sonner-De1t71Gj.js +1 -0
- package/assets/{toast-editor-CMK7QtF1.js → toast-editor-1Pul3oMs.js} +2 -2
- package/assets/tooltip-CwPrC-HD.js +1 -0
- package/assets/use-appearance-J8J2w43p.js +1 -0
- package/assets/use-window-size-DLSEoR6e.js +1 -0
- package/assets/{user-info-DFrmpJ4y.js → user-info-8RyDk7qh.js} +2 -2
- package/assets/user-menu-content-CpxTLH56.js +6 -0
- package/assets/welcome-BYKI6yO-.js +1 -0
- package/controllers/add.js +8 -8
- package/controllers/catalog/Catalog.d.ts +1 -1
- package/controllers/catalog/Catalog.js +40 -35
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +36 -26
- package/controllers/catalog/FrontentCatalogAdapter.js +71 -72
- package/controllers/edit.js +8 -11
- package/controllers/list.js +2 -2
- package/controllers/login.js +16 -7
- package/controllers/navigation/edit.js +1 -1
- package/controllers/remove.js +1 -1
- package/controllers/view.js +1 -1
- package/helpers/JsUtils.d.ts +1 -0
- package/helpers/JsUtils.js +3 -0
- package/helpers/accessRightsHelper.d.ts +3 -0
- package/helpers/accessRightsHelper.js +27 -4
- package/helpers/controllerHelper.js +39 -18
- package/helpers/fieldsHelper.d.ts +3 -2
- package/helpers/fieldsHelper.js +5 -1
- package/helpers/inertiaAddHelper.d.ts +4 -5
- package/helpers/inertiaAddHelper.js +25 -7
- package/helpers/inertiaFromHelper.js +1 -1
- package/helpers/inertiaMenuHelper.d.ts +1 -1
- package/helpers/inertiaMenuHelper.js +1 -1
- package/helpers/menuHelper.d.ts +8 -3
- package/helpers/menuHelper.js +26 -17
- package/index.d.ts +2 -6
- package/index.js +5 -6
- package/interfaces/adminpanelConfig.d.ts +35 -30
- package/interfaces/global.d.ts +5 -2
- package/interfaces/types.d.ts +1 -1
- package/lib/Adminizer.d.ts +9 -3
- package/lib/Adminizer.js +32 -16
- package/lib/media-manager/Items.js +0 -3
- package/lib/requestProcessor.js +10 -3
- package/lib/v4/DataAccessor.d.ts +3 -1
- package/lib/v4/DataAccessor.js +43 -18
- package/lib/v4/I18n.js +2 -0
- package/lib/{catalog → v4/catalog}/AbstractCatalog.d.ts +89 -60
- package/lib/{catalog → v4/catalog}/AbstractCatalog.js +59 -54
- package/lib/v4/catalog/Navigation.d.ts +43 -0
- package/lib/v4/catalog/Navigation.js +457 -0
- package/lib/{controls → v4/controls}/AbstractControls.d.ts +1 -1
- package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/markdown/ToastUiEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/table/Handsontable.d.ts +1 -1
- package/lib/{controls → v4/controls}/wysiwyg/CKeditor.d.ts +1 -1
- package/lib/{datatable → v4/datatable}/NodeTable.d.ts +3 -3
- package/lib/{datatable → v4/datatable}/NodeTable.js +8 -5
- package/lib/v4/model/AbstractModel.d.ts +5 -1
- package/lib/v4/model/AbstractModel.js +2 -1
- package/lib/v4/model/ModelHandler.js +1 -3
- package/lib/v4/model/adapter/sequelize.d.ts +8 -0
- package/lib/v4/model/adapter/sequelize.js +274 -133
- package/lib/v4/model/adapter/waterline.js +5 -2
- package/lib/{widgets → v4/widgets}/abstractLink.d.ts +1 -1
- package/lib/{widgets → v4/widgets}/abstractWidgetBase.d.ts +1 -1
- package/lib/{widgets → v4/widgets}/widgetHandler.d.ts +11 -4
- package/lib/{widgets → v4/widgets}/widgetHandler.js +1 -1
- package/models/NavigationAP.d.ts +2 -3
- package/models/NavigationAP.js +5 -6
- package/models/UserAP.d.ts +2 -3
- package/package.json +17 -6
- package/system/Router.js +8 -11
- package/system/bindAccessRights.js +0 -4
- package/system/bindControls.js +6 -6
- package/system/bindDev.js +1 -0
- package/system/bindInertia.js +9 -4
- package/system/bindMediaManager.js +0 -1
- package/system/bindModels.js +9 -6
- package/system/bindNavigation.d.ts +2 -0
- package/system/bindNavigation.js +42 -42
- package/system/bindReqFunctions.js +0 -1
- package/system/defaults.js +13 -6
- package/translations/ar.json +70 -1
- package/translations/cn.json +70 -1
- package/translations/de.json +71 -3
- package/translations/en.json +70 -102
- package/translations/es.json +70 -1
- package/translations/fr.json +70 -1
- package/translations/hi.json +70 -1
- package/translations/jp.json +70 -1
- package/translations/ko.json +70 -1
- package/translations/pt.json +70 -1
- package/translations/ru.json +71 -103
- package/translations/ua.json +70 -1
- package/translations/uz.json +72 -0
- package/translations/vi.json +70 -1
- package/assets/add-BP_u3Tjl.js +0 -1
- package/assets/add-form-nffmiYTh.js +0 -1
- package/assets/add-group-D4vcHlm-.js +0 -1
- package/assets/add-group-form-gNJW11-q.js +0 -1
- package/assets/add-user-DWh3Nas0.js +0 -1
- package/assets/add-user-form-BJ0FsZYJ.js +0 -1
- package/assets/app-layout-DYsRFUuP.js +0 -1
- package/assets/app-shell-Dd9Eknik.js +0 -1
- package/assets/app-sidebar-BOmu6-Sl.js +0 -1
- package/assets/app-sidebar-header-CoXSzWxk.js +0 -11
- package/assets/breadcrumbs-BmAq4fHT.js +0 -1
- package/assets/button-C9B_5Jf_.js +0 -1
- package/assets/checkbox-Fg27sL_1.js +0 -1
- package/assets/compiler-runtime-hB6dAw2d.js +0 -9
- package/assets/dashboard-BACj996r.js +0 -3
- package/assets/dropdown-menu-Bhj17ENm.js +0 -1
- package/assets/form-BgWdwvz1.js +0 -1
- package/assets/form-DgtErfln.js +0 -1
- package/assets/home-CHntBHJa.js +0 -2
- package/assets/icon-Dt0vBgDO.js +0 -1
- package/assets/index-B8BS9wMC.js +0 -1
- package/assets/index-BC0yfOHo.js +0 -1
- package/assets/index-BKCgnGj_.js +0 -1
- package/assets/index-BbXEMx9n.js +0 -1
- package/assets/index-BykbU6Ee.js +0 -41
- package/assets/index-CaJgc5EZ.js +0 -1
- package/assets/index-DrWfGwtf.js +0 -1
- package/assets/init-user-JfCKJ5Ce.js +0 -1
- package/assets/input-CvRbIbk4.js +0 -1
- package/assets/input-error-DMK7cAt7.js +0 -1
- package/assets/label-CSLFe9Bz.js +0 -1
- package/assets/list-B2Oa5O_Q.js +0 -1
- package/assets/list-table-DA9MhywL.js +0 -62
- package/assets/login-DQwGtdis.js +0 -6
- package/assets/material-icon-BJg8o_fs.js +0 -1
- package/assets/module-DWXp59Vg.js +0 -1
- package/assets/nav-footer-Bs4dmN1d.js +0 -1
- package/assets/nav-main-Bq3IMk4C.js +0 -1
- package/assets/nav-user-CbB22J5O.js +0 -1
- package/assets/pagination-render-DuXDDbC_.js +0 -1
- package/assets/popover-DtoGI2b1.js +0 -1
- package/assets/register-BSogVF0h.js +0 -1
- package/assets/skeleton-COOcAA8f.js +0 -1
- package/assets/sonner-BI0IFOQN.js +0 -1
- package/assets/tooltip-DHwpLKOI.js +0 -1
- package/assets/use-appearance-DRfIqTgw.js +0 -1
- package/assets/use-window-size-h0Sh_NvX.js +0 -1
- package/assets/user-menu-content-DPXQdERj.js +0 -6
- package/assets/utils-DjqsqOe8.js +0 -1
- package/assets/welcome-B4WCIXKf.js +0 -1
- package/controllers/processInstallFinalize.d.ts +0 -1
- package/controllers/processInstallFinalize.js +0 -16
- package/controllers/processInstallStep.d.ts +0 -0
- package/controllers/processInstallStep.js +0 -122
- package/lib/catalog/Navigation.d.ts +0 -0
- package/lib/catalog/Navigation.js +0 -532
- package/lib/installStepper/InstallStepAbstract.d.ts +0 -52
- package/lib/installStepper/InstallStepAbstract.js +0 -69
- package/lib/installStepper/finalizeStep.d.ts +0 -21
- package/lib/installStepper/finalizeStep.js +0 -48
- package/lib/installStepper/installStepper.d.ts +0 -40
- package/lib/installStepper/installStepper.js +0 -195
- package/models/MediaManagerAP.d.ts +0 -62
- package/models/MediaManagerAP.js +0 -45
- package/models/MediaManagerAssociationsAP.d.ts +0 -38
- package/models/MediaManagerAssociationsAP.js +0 -27
- package/models/MediaManagerMetaAP.d.ts +0 -30
- package/models/MediaManagerMetaAP.js +0 -21
- package/system/bindInstallStepper.d.ts +0 -2
- package/system/bindInstallStepper.js +0 -23
- /package/lib/{catalog → v4/catalog}/CatalogHandler.d.ts +0 -0
- /package/lib/{catalog → v4/catalog}/CatalogHandler.js +0 -0
- /package/lib/{controls → v4/controls}/AbstractControls.js +0 -0
- /package/lib/{controls → v4/controls}/ControlsHandler.d.ts +0 -0
- /package/lib/{controls → v4/controls}/ControlsHandler.js +0 -0
- /package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.js +0 -0
- /package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.js +0 -0
- /package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.js +0 -0
- /package/lib/{controls → v4/controls}/markdown/ToastUiEditor.js +0 -0
- /package/lib/{controls → v4/controls}/table/Handsontable.js +0 -0
- /package/lib/{controls → v4/controls}/wysiwyg/CKeditor.js +0 -0
- /package/lib/{inertia → v4/inertia}/flash.d.ts +0 -0
- /package/lib/{inertia → v4/inertia}/flash.js +0 -0
- /package/lib/{inertia → v4/inertia}/inertiaAdapter.d.ts +0 -0
- /package/lib/{inertia → v4/inertia}/inertiaAdapter.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractAction.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractAction.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractCustom.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractCustom.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractInfo.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractInfo.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractLink.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractSwitch.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractSwitch.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractWidgetBase.js +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{c as Fe,r as te,q as He,S as Oe,j as a,B as xe,J as ze}from"./app.js";import{L as be}from"./label-Muj0-Efy.js";import{I as _e}from"./input-CSJjrf2i.js";import{Icon as ue}from"./icon-B-a7xg54.js";import{T as De,t as Ee}from"./sonner-De1t71Gj.js";import pe from"./input-error-CK92Shhm.js";import{i as Ge}from"./use-appearance-J8J2w43p.js";import{c as Ke}from"./createLucideIcon-BFG25zNo.js";import{L as qe}from"./loader-circle-Utah5tGx.js";import"./index-B68_akQe.js";/**
|
|
2
|
+
* @license lucide-react v0.485.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const Ve=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],ke=Ke("user",Ve),ve=(e,t,s)=>{let r=1n,n=e%s;for(;t;)t&1n&&(r=r*n%s),n=n*n%s,t=t>>1n;return r};function re(e,t,s){return typeof e=="bigint"&&typeof t=="bigint"&&typeof s=="bigint"?ve(e,t,s):Number(ve(BigInt(e),BigInt(t),BigInt(s)))}const k=crypto,We=new TextEncoder,Xe=new TextDecoder("utf-8",{ignoreBOM:!0}),Y={encode:e=>We.encode(e),decode:e=>Xe.decode(e)},Ne=(()=>{const t=[..."0123456789abcdef"],s=new Array(256);for(let r=0;r<256;r++)s[r]=`${t[r>>>4&15]}${t[r&15]}`;return s})(),Je=(()=>{const e={};for(let t=0;t<256;t++){const s=Ne[t],r=s[0],n=r.toUpperCase(),c=s[1],o=c.toUpperCase();e[s]=t,e[`${r}${o}`]=t,e[`${n}${c}`]=t,e[`${n}${o}`]=t}return e})(),Ye=e=>!(e.length%2||!/^[a-fA-F0-9]*$/.test(e)),fe={encode:e=>{let t="";for(let s=0,r=e.length;s<r;s++)t+=Ne[e[s]];return t},encodeStr:e=>fe.encode(Y.encode(e)),decode:e=>{const t=e.length/2,s=new Uint8Array(t);for(let r=0;r<t;r++)s[r]=Je[e.slice(r*2,r*2+2)];return s},decodeStr:e=>Y.decode(fe.decode(e)),is:Ye},Ie=e=>fe.encode(e),Se=new TextEncoder,se=e=>{const t=async o=>o instanceof Uint8Array?k.subtle.importKey("raw",o,{name:"PBKDF2"},!1,["deriveBits"]):typeof o=="string"?t(Se.encode(o.normalize())):o,s=(o,i,l,d)=>(i=typeof i=="string"?Se.encode(i):i,k.subtle.deriveBits({name:"PBKDF2",salt:i,iterations:l,hash:{name:e}},o,d)),r=async(o,i,l,d)=>{const u=await t(o);return await s(u,i,l,d*8)},n=async(o,i,l,d)=>new Uint8Array(await r(o,i,l,d)),c=async(o,i,l,d)=>Ie(await n(o,i,l,d));return c.buffer=r,c.hex=c,c.uint8=n,c},Te={sha1:se("SHA-1"),sha256:se("SHA-256"),sha384:se("SHA-384"),sha512:se("SHA-512")},ge=e=>{const t=new Uint8Array(e);return k.getRandomValues(t),t},Qe=new TextEncoder,oe=e=>{const t=n=>(n=typeof n=="string"?Qe.encode(n):n,k.subtle.digest(e,n)),s=async n=>new Uint8Array(await t(n)),r=async n=>Ie(await s(n));return r.buffer=t,r.hex=r,r.uint8=s,r};oe("SHA-1");const Le=oe("SHA-256");oe("SHA-384");oe("SHA-512");const w={encode:e=>{if(e!==e>>0)throw new Error("Invalid 32-bit integer");const t=e>>24&255,s=e>>16&255,r=e>>8&255,n=e>>0&255;return new Uint8Array([t,s,r,n])},decode:e=>{if(e.length!==4)throw new Error("Invalid 32-bit integer");const t=e[0],s=e[1],r=e[2],n=e[3];return(t<<24)+(s<<16)+(r<<8)+(n<<0)}},Ue=e=>{const t=e.reduce((r,n)=>r+n.byteLength,0),s=new Uint8Array(t);for(let r=0,n=0,c=e.length;n<c;n++)s.set(e[n],r),r+=e[n].byteLength;return s},Ze=async(e,t,s,r)=>{e=typeof e=="string"?Y.encode(e):e,s=typeof s=="string"?Y.encode(s):s||ge(32),s=s.length===32?s:await Le.uint8(s);const n=new Uint8Array([1]),c=Math.max(1,r||0),o=await Te.sha256.uint8(t,s,c,32),i=await k.subtle.importKey("raw",o,"AES-GCM",!1,["encrypt"]),l=ge(16),d=await k.subtle.encrypt({name:"AES-GCM",iv:l,length:256,tagLength:128},i,e),u=new Uint8Array(d);return Ue([n,s,w.encode(c),l,u])},en=async(e,t)=>{if(e[0]!==1)throw new Error("Unsupported encrypted archive version");const r=e.subarray(1,33),n=w.decode(e.subarray(33,37)),c=e.subarray(37,53),o=e.subarray(53),i=await Te.sha256.uint8(t,r,n,32),l=await k.subtle.importKey("raw",i,"AES-GCM",!1,["decrypt"]),d=await k.subtle.decrypt({name:"AES-GCM",iv:c,length:256,tagLength:128},l,o);return new Uint8Array(d)},je=Object.freeze(Object.defineProperty({__proto__:null,decrypt:en,encrypt:Ze},Symbol.toStringTag,{value:"Module"}));function J(e){let t,s=0;return()=>((!t||s===t.length)&&(t=new e(65536/(e.BYTES_PER_ELEMENT*8)),s=0,k.getRandomValues(t)),t[s++])}function nn(e,t){let s=0,r=t;return()=>(r===t&&(s=e(),r=0),s&1<<r++?1:0)}const Q={get1:nn(J(Uint8Array),8),get8:J(Uint8Array),get16:J(Uint16Array),get32:J(Uint32Array),get64:J(BigUint64Array)},tn=Object.assign(()=>BigInt(Q.get1()),{BITS:1}),sn=Object.assign(()=>BigInt(Q.get8()),{BITS:8}),rn=Object.assign(()=>BigInt(Q.get16()),{BITS:16}),on=Object.assign(()=>BigInt(Q.get32()),{BITS:32}),cn=Object.assign(()=>Q.get64(),{BITS:64}),f=e=>{const t=e<=1?tn:e<=8?sn:e<=16?rn:e<=32?on:cn,s=t.BITS;if(e===s)return t();if(e===128)return t()<<64n|t();if(e===160)return f(128)<<32n|f(32);if(e===192)return f(128)<<64n|f(64);if(e===224)return f(160)<<64n|f(64);if(e===256)return f(128)<<128n|f(128);if(e===384)return f(256)<<128n|f(128);if(e===512)return f(256)<<256n|f(256);if(e===1024)return f(512)<<512n|f(512);if(e===2048)return f(1024)<<1024n|f(1024);let r=0,n=0n;for(;r<e;){const c=Math.min(s,e-r),o=2n**BigInt(c)-1n,l=t()&o;if(e===c)return l;n=r?n|l<<BigInt(r):l,r+=c}return n},Me=(e,t)=>{if(e=BigInt(e),t=BigInt(t),e<0n||t<0n)throw new Error("Negative ranges are not supported");if(t<=e)throw new Error('"max" must be at least equal to "min" plus 1');const s=t-e-1n,r=s.toString(2).length;for(;;){const n=f(r);if(!(n>s))return n+e}},Ce=[2n,3n,5n,7n,11n,13n,17n,19n,23n,29n,31n,37n,41n,43n,47n,53n,59n,61n,67n,71n,73n,79n,83n,89n,97n,101n,103n,107n,109n,113n,127n,131n,137n,139n,149n,151n,157n,163n,167n,173n,179n,181n,191n,193n,197n,199n,211n,223n,227n,229n,233n,239n,241n,251n,257n,263n,269n,271n,277n,281n,283n,293n,307n,311n,313n,317n,331n,337n,347n,349n,353n,359n,367n,373n,379n,383n,389n,397n,401n,409n,419n,421n,431n,433n,439n,443n,449n,457n,461n,463n,467n,479n,487n,491n,499n,503n,509n,521n,523n,541n,547n,557n,563n,569n,571n,577n,587n,593n,599n,601n,607n,613n,617n,619n,631n,641n,643n,647n,653n,659n,661n,673n,677n,683n,691n,701n,709n,719n,727n,733n,739n,743n,751n,757n,761n,769n,773n,787n,797n,809n,811n,821n,823n,827n,829n,839n,853n,857n,859n,863n,877n,881n,883n,887n,907n,911n,919n,929n,937n,941n,947n,953n,967n,971n,977n,983n,991n,997n],an=(e,t=8)=>{if(e<=1n)return!1;for(let n=0,c=Ce.length;n<c;n++){const o=Ce[n];if(e%o===0n)return e===o}if(e<=1000n)return!1;let s=0n,r=e-1n;for(;(r&1n)===0n;)s+=1n,r>>=1n;for(let n=0;n<t;n++){const c=Me(2n,e-2n);let o=re(c,r,e),i=0n;for(let l=0;l<s;l++){if(i=re(o,2n,e),i===1n&&o!==1n&&o!==e-1n)return!1;o=i}if(i!==1n)return!1}return!0},Be=(e,t=8)=>{let s=f(e);for((s&1n)===0n&&(s+=1n);;){if(an(s,t))return s;s+=2n}},x={encode:e=>{let t=0n;for(let s=0,r=e.length;s<r;s++)t|=BigInt(e[s])<<(BigInt(r)-BigInt(s)-1n)*8n;return t},decode:e=>{if(e<0n)throw new Error("Negative BigInts are not supported");const t=[];for(;e;)t.push(Number(e&0xffn)),e>>=8n;return new Uint8Array(t.reverse())}},Ae={archive:e=>{const[t,s,r,n,c]=e,o=x.decode(t),i=w.encode(o.length),l=x.decode(s),d=w.encode(l.length),u=x.decode(r),h=w.encode(u.length),g=x.decode(n),m=w.encode(g.length);return Ue([i,o,d,l,h,u,m,g,c])},unarchive:e=>{const s=e.slice(0,4),r=w.decode(s),n=4,c=e.slice(n,n+r),o=x.encode(c),i=n+r,l=e.slice(i,i+4),d=w.decode(l),u=i+4,h=e.slice(u,u+d),g=x.encode(h),m=u+d,y=e.slice(m,m+4),v=w.decode(y),p=m+4,N=e.slice(p,p+v),S=x.encode(N),b=p+v,I=e.slice(b,b+4),_=w.decode(I),j=b+4,C=e.slice(j,j+_),B=x.encode(C),A=j+_,E=e.slice(A);return[o,g,S,B,E]}},ln=(e,t,s)=>{let r=e%s;if(t<=BigInt(Number.MAX_SAFE_INTEGER))for(let n=Number(t);n>0;n--)r=r*r%s;else for(let n=t;n>0n;n--)r=r*r%s;return r%s},dn={generate:async e=>{const t=e.primeBits??100,s=e.primeRounds??20,r=e.opsPerSecond??33e5,n=e.duration??1e3,c=e.message,o=Be(t,s),i=Be(t,s),l=o*i,d=(o-1n)*(i-1n),u=r,h=n,g=BigInt(Math.round(Math.max(1,u/1e3)*h)),m=await Le.uint8(ge(32)),y=c,v=await je.encrypt(y,m),p=Me(1n,l-1n),N=re(2n,g,d),S=re(p,N,l),b=x.encode(m)+S;return Ae.archive([l,p,g,b,v])},solve:async e=>{const[t,s,r,n,c]=Ae.unarchive(e),o=ln(s,r,t),i=x.decode(n-o),l=await je.decrypt(c,i);return Y.decode(l)}};function Sn(){const e=Fe.c(85),[t,s]=te.useState(!1);let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0],te.useEffect(fn,r);const n=He(),c=Array.isArray(n.props.captchaTask)&&n.props.captchaTask.length>0,[o,i]=te.useState("I'm not a robot"),[l,d]=te.useState(!1);let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={login:"",password:"",captchaSolution:""},e[1]=u):u=e[1];const{post:h,data:g,setData:m,processing:y,transform:v,errors:p,clearErrors:N}=Oe(u);let S;e[2]!==c||e[3]!==n.props.captchaTask||e[4]!==n.props.submitLink||e[5]!==h||e[6]!==v?(S=T=>{if(T.preventDefault(),!c){h(n.props.submitLink,{onError:pn});return}s(!0),i("Solving CAPTCHA..."),d(!1),(async()=>{try{await function(Re){return new Promise($e=>setTimeout($e,Re))}(100);const ye=new Uint8Array(n.props.captchaTask),Pe=await dn.solve(ye);i("Verification complete!"),s(!1),d(!0),v(we=>({...we,captchaSolution:Pe})),h(n.props.submitLink,{onError:un})}catch(me){console.error("Error solving CAPTCHA:",me),i("Error solving CAPTCHA. Try again.")}})()},e[2]=c,e[3]=n.props.captchaTask,e[4]=n.props.submitLink,e[5]=h,e[6]=v,e[7]=S):S=e[7];const b=S;let I;e[8]!==N||e[9]!==m?(I=(T,he)=>{N(),m(T,he)},e[8]=N,e[9]=m,e[10]=I):I=e[10];const _=I;let j;e[11]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx(De,{position:"top-center",richColors:!0,closeButton:!0}),e[11]=j):j=e[11];let C;e[12]!==n.props.title?(C=a.jsx("h1",{className:"font-medium mb-6 text-xl",children:n.props.title}),e[12]=n.props.title,e[13]=C):C=e[13];let B;e[14]!==n.props.description?(B=n.props.description&&a.jsx("p",{className:"font-thin mb-6 text-xs pb-10",children:n.props.description}),e[14]=n.props.description,e[15]=B):B=e[15];let A;e[16]!==p.captchaSolution||e[17]!==c?(A=c&&a.jsx(pe,{message:p.captchaSolution}),e[16]=p.captchaSolution,e[17]=c,e[18]=A):A=e[18];let E;e[19]!==n.props.login?(E=a.jsx(be,{htmlFor:"login",children:n.props.login}),e[19]=n.props.login,e[20]=E):E=e[20];let Z;e[21]===Symbol.for("react.memo_cache_sentinel")?(Z=a.jsx(ue,{iconNode:ke,className:"size-5 absolute inset-2"}),e[21]=Z):Z=e[21];const ce=`pl-10 ${p.login?"border-red-500":""}`,ie=y||t;let L;e[22]!==_?(L=T=>{_("login",T.target.value)},e[22]=_,e[23]=L):L=e[23];let U;e[24]!==g.login||e[25]!==n.props.login||e[26]!==ce||e[27]!==ie||e[28]!==L?(U=a.jsx(_e,{id:"login",className:ce,type:"text",required:!0,tabIndex:1,autoComplete:"username",value:g.login,disabled:ie,onChange:L,placeholder:n.props.login}),e[24]=g.login,e[25]=n.props.login,e[26]=ce,e[27]=ie,e[28]=L,e[29]=U):U=e[29];let M;e[30]!==p.login?(M=a.jsx(pe,{message:p.login}),e[30]=p.login,e[31]=M):M=e[31];let P;e[32]!==U||e[33]!==M?(P=a.jsxs("div",{className:"relative",children:[Z,U,M]}),e[32]=U,e[33]=M,e[34]=P):P=e[34];let R;e[35]!==P||e[36]!==E?(R=a.jsxs("div",{className:"grid gap-4",children:[E,P]}),e[35]=P,e[36]=E,e[37]=R):R=e[37];let $;e[38]!==n.props.password?($=a.jsx(be,{htmlFor:"login",children:n.props.password}),e[38]=n.props.password,e[39]=$):$=e[39];let ee;e[40]===Symbol.for("react.memo_cache_sentinel")?(ee=a.jsx(ue,{iconNode:ke,className:"size-5 absolute inset-2"}),e[40]=ee):ee=e[40];const ae=`pl-10 ${p.password?"border-red-500":""}`,le=y||t;let F;e[41]!==_?(F=T=>{_("password",T.target.value)},e[41]=_,e[42]=F):F=e[42];let H;e[43]!==g.password||e[44]!==n.props.password||e[45]!==ae||e[46]!==le||e[47]!==F?(H=a.jsx(_e,{id:"password",className:ae,type:"password",required:!0,disabled:le,tabIndex:1,autoComplete:"current-password",value:g.password,onChange:F,placeholder:n.props.password}),e[43]=g.password,e[44]=n.props.password,e[45]=ae,e[46]=le,e[47]=F,e[48]=H):H=e[48];let O;e[49]!==p.password?(O=a.jsx(pe,{message:p.password}),e[49]=p.password,e[50]=O):O=e[50];let z;e[51]!==H||e[52]!==O?(z=a.jsxs("div",{className:"relative",children:[ee,H,O]}),e[51]=H,e[52]=O,e[53]=z):z=e[53];let D;e[54]!==$||e[55]!==z?(D=a.jsxs("div",{className:"grid gap-4",children:[$,z]}),e[54]=$,e[55]=z,e[56]=D):D=e[56];const de=y||t;let G;e[57]!==n.props.submitButton||e[58]!==de?(G=a.jsx(xe,{type:"submit",className:"w-fit",disabled:de,children:n.props.submitButton}),e[57]=n.props.submitButton,e[58]=de,e[59]=G):G=e[59];let K;e[60]!==t||e[61]!==n.props.registerLink||e[62]!==y?(K=n.props.registerLink&&a.jsx(xe,{asChild:!0,variant:"outline",children:a.jsx(ze,{href:n.props.registerLink.link,className:`${y||t} ? 'pointer-events-none opacity-50' : ''`,children:n.props.registerLink.title})}),e[60]=t,e[61]=n.props.registerLink,e[62]=y,e[63]=K):K=e[63];let q;e[64]!==G||e[65]!==K?(q=a.jsxs("div",{className:"flex gap-4",children:[G,K]}),e[64]=G,e[65]=K,e[66]=q):q=e[66];let V;e[67]!==R||e[68]!==D||e[69]!==q||e[70]!==A?(V=a.jsxs("div",{className:"grid gap-5",children:[A,R,D,q]}),e[67]=R,e[68]=D,e[69]=q,e[70]=A,e[71]=V):V=e[71];let W;e[72]!==o||e[73]!==t||e[74]!==c||e[75]!==l?(W=c&&a.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 mt-6 flex items-center space-x-4",children:[a.jsxs("div",{className:"relative",children:[a.jsx("div",{className:"w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center",children:a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 text-yellow-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:a.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 2l3.09 6.26L22 9.27l-5 4.87L18.18 22 12 18.27 5.82 22 7 14.14l-5-4.87 6.91-1.01L12 2z"})})}),a.jsx("div",{className:`${t?"":"hidden"}`,children:a.jsx(ue,{iconNode:qe,className:"animate-spin size-6 absolute inset-0 m-auto !text-gray-600"})})]}),a.jsx("div",{className:"text-gray-600 font-semibold",children:o}),a.jsx("div",{className:`transition-opacity ${l?"opacity-100 visible":"opacity-0 invisible"}`,children:a.jsx("svg",{id:"checkmark",xmlns:"http://www.w3.org/2000/svg",className:"h-8 w-8 text-green-500",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3",children:a.jsx("path",{className:"checkmark",strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})]}),e[72]=o,e[73]=t,e[74]=c,e[75]=l,e[76]=W):W=e[76];let X;e[77]!==b||e[78]!==V||e[79]!==W?(X=a.jsxs("form",{onSubmit:b,children:[V,W]}),e[77]=b,e[78]=V,e[79]=W,e[80]=X):X=e[80];let ne;return e[81]!==X||e[82]!==C||e[83]!==B?(ne=a.jsxs("div",{className:"bg-sidebar flex min-h-svh w-full justify-center",children:[j,a.jsxs("div",{className:"rounded-xl border bg-card text-card-foreground shadow p-6 max-w-sm w-full h-fit mt-[15%]",children:[C,B,X]})]}),e[81]=X,e[82]=C,e[83]=B,e[84]=ne):ne=e[84],ne}function un(e){for(const t of Object.keys(e))Ee.error(e[t])}function pn(e){for(const t of Object.keys(e))Ee.error(e[t])}function fn(){Ge()}export{Sn as default};
|