@shumai-one/shumai 0.3.7 → 0.3.8
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/bin/{chunk-9nyhmtp9.js → chunk-0mmw31pj.js} +2 -2
- package/bin/{chunk-gjn3w26y.js → chunk-0pm8c9bq.js} +2 -2
- package/bin/{chunk-50keqtz9.js → chunk-0qpz48vc.js} +1 -1
- package/bin/{chunk-zjj9qj6y.js → chunk-0zbwpfsk.js} +2 -2
- package/bin/chunk-15jsnygy.js +5 -0
- package/bin/chunk-16s5kfy8.css +1 -0
- package/bin/{chunk-hqkmdp31.js → chunk-21rp4vzr.js} +2 -2
- package/bin/chunk-24ke0th1.css +1 -0
- package/bin/{chunk-260wywfb.js → chunk-28n8xqhm.js} +1 -1
- package/bin/{chunk-7hnw6y6d.js → chunk-2dxd0bar.js} +2 -2
- package/bin/{chunk-3dx0p1ge.js → chunk-2ejky9qv.js} +1 -1
- package/bin/{chunk-dej1gq35.js → chunk-2em77vjv.js} +1 -1
- package/bin/{chunk-zg60j9x2.js → chunk-2q26gz0p.js} +1 -1
- package/bin/{chunk-9s02m95j.js → chunk-2t0asg3w.js} +2 -2
- package/bin/{chunk-rfyaphas.js → chunk-2xaq1y16.js} +2 -2
- package/bin/{chunk-qmpph1gt.js → chunk-33r4w0yv.js} +2 -2
- package/bin/{chunk-1xzc6z02.js → chunk-3bm3be9d.js} +1 -1
- package/bin/{chunk-1sqz0va1.js → chunk-3mx22sn7.js} +2 -2
- package/bin/chunk-4cmw4qmt.js +1 -0
- package/bin/chunk-4d3wm83a.js +2 -0
- package/bin/{chunk-0jkqmbcx.js → chunk-4g4g02e0.js} +1 -1
- package/bin/{chunk-tpp9qf5m.js → chunk-5386brz2.js} +2 -2
- package/bin/{chunk-98j2z6he.js → chunk-5f9fk8x0.js} +3 -3
- package/bin/chunk-5fj5w0gg.js +2 -0
- package/bin/chunk-61bxmjd9.js +2 -0
- package/bin/{chunk-ptw49k86.js → chunk-6pcs8810.js} +1 -1
- package/bin/{chunk-x3ynjbt5.js → chunk-6pmsknnk.js} +2 -2
- package/bin/{chunk-9xhnmnnb.js → chunk-6vwqg1ra.js} +2 -2
- package/bin/{chunk-2mqqghrz.js → chunk-75segwsp.js} +2 -2
- package/bin/{chunk-ftc48rbb.js → chunk-7c85cyn0.js} +3 -3
- package/bin/chunk-7eyg2kgv.js +1 -0
- package/bin/chunk-7r22vcjy.js +2 -0
- package/bin/{chunk-0ycwr0kb.js → chunk-80g5kcm0.js} +1 -1
- package/bin/{chunk-5gtew41y.js → chunk-8bhsdk1v.js} +1 -1
- package/bin/{chunk-1khzycf9.js → chunk-8fsrs7mh.js} +1 -1
- package/bin/chunk-8jfm1j41.js +1 -0
- package/bin/chunk-8n6segk5.js +1 -0
- package/bin/chunk-99f9r6xm.js +2 -0
- package/bin/{chunk-2086rsb2.js → chunk-9acfydwy.js} +1 -1
- package/bin/{chunk-vxpnp4xg.js → chunk-9ntwrvhz.js} +2 -2
- package/bin/{chunk-s0hgykza.js → chunk-agdza65r.js} +2 -2
- package/bin/{chunk-6zs49mef.js → chunk-antsxrw9.js} +1 -1
- package/bin/chunk-bapy3qv8.js +1 -0
- package/bin/chunk-bc2bf144.js +2 -0
- package/bin/{chunk-v8w2nxew.js → chunk-bznz6h19.js} +1 -1
- package/bin/{chunk-qcqw7wnv.js → chunk-c24an5j3.js} +1 -1
- package/bin/chunk-cm74nd4n.js +1 -0
- package/bin/{chunk-87wqbn4g.js → chunk-cynjx7ha.js} +2 -2
- package/bin/chunk-cyq3m4qz.js +1 -0
- package/bin/chunk-ddff7vm3.js +2 -0
- package/bin/{chunk-br5xkaf7.js → chunk-djqs6m7w.js} +3 -3
- package/bin/{chunk-60hpa5kf.js → chunk-dn8k5ef5.js} +1 -1
- package/bin/chunk-dqdqs0d9.js +1 -0
- package/bin/chunk-drjaw6a5.js +14 -0
- package/bin/chunk-drvwchyn.js +2 -0
- package/bin/{chunk-esrtafz0.js → chunk-e4se9q6n.js} +1 -1
- package/bin/chunk-eb551xw7.js +1 -0
- package/bin/{chunk-nvjp2rnh.js → chunk-en96pr5c.js} +2 -2
- package/bin/{chunk-r5dv0rfv.js → chunk-ep138kb3.js} +2 -2
- package/bin/{chunk-jszpvg8e.js → chunk-eqf7k7ax.js} +2 -2
- package/bin/{chunk-f2j2cqd1.js → chunk-f3rqamey.js} +2 -2
- package/bin/{chunk-3kqdgddm.js → chunk-fvwz4mgw.js} +2 -2
- package/bin/chunk-g3p6h6sw.js +68 -0
- package/bin/{chunk-81tb4v5v.js → chunk-h9f55mjv.js} +2 -2
- package/bin/{chunk-n4gghgrj.js → chunk-jfjjh86p.js} +2 -2
- package/bin/{chunk-83k0wa5k.js → chunk-jg31cnqc.js} +2 -2
- package/bin/chunk-jk87gxbb.js +2 -0
- package/bin/{chunk-4bn9eb9h.js → chunk-jqzvazsf.js} +1 -1
- package/bin/chunk-jyk483r4.js +1 -0
- package/bin/{chunk-48nzw50r.js → chunk-k0ysbh3h.js} +1 -1
- package/bin/{chunk-fcs4v6jq.js → chunk-k5yxntns.js} +2 -2
- package/bin/chunk-khjybf4y.js +1 -0
- package/bin/{chunk-38g3s1f3.js → chunk-kmt9fj1z.js} +2 -2
- package/bin/{chunk-503qq6sa.js → chunk-m49ar48r.js} +2 -2
- package/bin/{chunk-a0k1b4sq.js → chunk-m7d52gfe.js} +1 -1
- package/bin/{chunk-x6532q76.js → chunk-mjxay7yv.js} +1 -1
- package/bin/{chunk-zqg4f56h.js → chunk-mp5etccz.js} +1 -1
- package/bin/{chunk-9gzy30zm.js → chunk-n8pas7tj.js} +2 -2
- package/bin/{chunk-b8v7jvkb.js → chunk-nc632fxz.js} +2 -2
- package/bin/{chunk-6fv38qdc.js → chunk-nffrjwb7.js} +2 -2
- package/bin/{chunk-7k3ccca6.js → chunk-p1rrkrn4.js} +1 -1
- package/bin/chunk-p6ep6grv.js +1 -0
- package/bin/{chunk-p4c4z0f2.js → chunk-ph43tgr6.js} +1 -1
- package/bin/{chunk-3xzgddev.js → chunk-pqtwzb3s.js} +1 -1
- package/bin/chunk-q0xv46wa.js +2 -0
- package/bin/{chunk-qh9rz2ee.js → chunk-qhxznkjk.js} +5 -5
- package/bin/chunk-qmja7bsr.js +2 -0
- package/bin/{chunk-v98e3gex.js → chunk-qyegjbzd.js} +1 -1
- package/bin/{chunk-gjdmnfms.js → chunk-r5rf62aa.js} +1 -1
- package/bin/{chunk-2xmsrq7f.js → chunk-rjkj0dr9.js} +2 -2
- package/bin/chunk-rjr8c8be.js +3 -0
- package/bin/{chunk-af6wbhkv.js → chunk-rq4h4p2g.js} +2 -2
- package/bin/{chunk-zwgf211t.js → chunk-scmhhrte.js} +2 -2
- package/bin/chunk-sjr6mvgm.js +78 -0
- package/bin/{chunk-t9t9evan.js → chunk-ssz62jfs.js} +2 -2
- package/bin/{chunk-g60v3jc1.js → chunk-ta02azkp.js} +1 -1
- package/bin/{chunk-tzt4c1dm.js → chunk-tfnh9sk9.js} +2 -2
- package/bin/{chunk-cqq8e3hc.js → chunk-thqahbva.js} +2 -2
- package/bin/chunk-tvzfm7g8.js +2 -0
- package/bin/{chunk-k48y9e5s.js → chunk-twm329fs.js} +1 -1
- package/bin/{chunk-0t8q76ac.js → chunk-ve826t5r.js} +1 -1
- package/bin/chunk-vpfj3q7r.js +1 -0
- package/bin/chunk-vqakgjsf.js +1 -0
- package/bin/chunk-wgjghs54.js +7 -0
- package/bin/chunk-wy1ytxw7.js +41 -0
- package/bin/{chunk-t3tp9trj.js → chunk-x788nk6z.js} +2 -2
- package/bin/{chunk-b3jh3hf1.js → chunk-x8ksced7.js} +2 -2
- package/bin/{chunk-qdycy714.js → chunk-xexxh1zq.js} +1 -1
- package/bin/{chunk-6v39c8eg.js → chunk-xktnqktj.js} +2 -2
- package/bin/{chunk-7872prvg.js → chunk-xpce3j7g.js} +1 -1
- package/bin/{chunk-karn564z.js → chunk-xyzsmjtk.js} +2 -2
- package/bin/chunk-y03s8bkz.js +1 -0
- package/bin/{chunk-kpn9d97x.js → chunk-y5g2ge6f.js} +1 -1
- package/bin/{chunk-qy93r7tm.js → chunk-ygcmv04c.js} +2 -2
- package/bin/{chunk-ytzk81tr.js → chunk-ykarhcph.js} +1 -1
- package/bin/{chunk-bancgvrc.js → chunk-yr8a8nzv.js} +2 -2
- package/bin/chunk-yxtb7xn8.js +2 -0
- package/bin/{chunk-n76r6s9k.js → chunk-zaft3sfe.js} +2 -2
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +237 -215
- package/package.json +7 -7
- package/prisma/migrations/20260814090300_add_asset_agentmd/migration.sql +2 -0
- package/prisma/migrations/20260814125921_create_asset_agentmd_table/migration.sql +21 -0
- package/prisma/schema.prisma +12 -0
- package/bin/chunk-0xern7e4.js +0 -1
- package/bin/chunk-0yngn45x.js +0 -2
- package/bin/chunk-4egayx81.js +0 -2
- package/bin/chunk-4rbzswqs.js +0 -71
- package/bin/chunk-69tt1pvr.js +0 -2
- package/bin/chunk-815ezj20.js +0 -1
- package/bin/chunk-85eg9xqx.js +0 -1
- package/bin/chunk-86aagej8.js +0 -1
- package/bin/chunk-8y1v9dm9.js +0 -2
- package/bin/chunk-9gq9782d.js +0 -1
- package/bin/chunk-bv88se28.css +0 -1
- package/bin/chunk-dv1zpd2p.js +0 -15
- package/bin/chunk-eetrc0j1.js +0 -3
- package/bin/chunk-eztggp8r.js +0 -1
- package/bin/chunk-gf5ds9r9.js +0 -2
- package/bin/chunk-h9emz0zb.js +0 -2
- package/bin/chunk-h9k2atte.js +0 -1
- package/bin/chunk-kkq4wvnc.js +0 -1
- package/bin/chunk-ksx113sp.js +0 -1
- package/bin/chunk-m6a4rzdt.js +0 -62
- package/bin/chunk-mw8f8ngt.js +0 -7
- package/bin/chunk-rvspnthy.js +0 -1
- package/bin/chunk-sjjndwt4.js +0 -2
- package/bin/chunk-tvg9gvqs.js +0 -1
- package/bin/chunk-xp4dcyk3.js +0 -1
- package/bin/chunk-y8aehqr8.js +0 -2
- package/bin/chunk-yvxt48r4.js +0 -1
package/bin/chunk-y8aehqr8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ca as r,da as s,ea as a}from"./chunk-83k0wa5k.js";import{ga as h,ha as Y0,na as u1,oa as G2}from"./chunk-8y1v9dm9.js";import{$a as d1,Ba as m2,Ca as g5,Da as m5,Ea as b5,Fa as c5,Ga as d5,Ha as u5,Ia as l5,Ja as b2,Ka as c2,La as d2,Ma as i5,Na as p5,Oa as n5,Pa as o5,Qa as m1,Ra as b1,Sa as c1,Ta as r5,Ua as s5,Va as q2,Wa as H1,Xa as q1,Ya as B1,Za as m,_a as B2,ab as W1,ra as g,sa as j2,ta as j5,ua as d0,va as h2,wa as h5,xa as g2,za as l2}from"./chunk-4rbzswqs.js";import{jb as w2}from"./chunk-3kqdgddm.js";import{wg as F2}from"./chunk-eetrc0j1.js";import{Lg as A0}from"./chunk-af6wbhkv.js";import{Ng as _0,Og as j,Tg as U5,Yg as w0,bh as _2}from"./chunk-2mqqghrz.js";import{hh as v1,jh as j1,kh as h1,lh as g1}from"./chunk-n4gghgrj.js";import{$h as P0,Ah as U,Ak as I0,Bh as C1,Bi as M1,Ck as o,Dk as T0,Ei as z2,Ek as E0,Fj as G0,Fk as S0,Gh as a2,Hi as P1,Ik as T,Ji as U2,Jk as l0,Ki as R0,Kk as w1,Li as A5,Lj as k0,Lk as U1,Mi as R5,Mk as F1,Nj as I1,Nk as V1,Pk as L1,Qk as A1,Si as k5,Tj as X2,Uj as f1,Wh as $2,Wj as D1,Xh as M5,Yj as y1,ak as x1,bi as t,bk as _1,ej as T1,fj as E1,fk as C0,hi as s2,oj as S1,qi as W2,si as O1,vk as p0,xh as d,zh as N}from"./chunk-m6a4rzdt.js";import{Nl as c}from"./chunk-dej1gq35.js";function a1($){let J=$.lastIndexOf(".");if(J>0)return[0,J];return[0,$.length]}function Q$($){$.focus();let[J,Z]=a1($.value);if(typeof $.setSelectionRange==="function")$.setSelectionRange(J,Z);else $.select()}var Q5=Symbol.for("immer-nothing"),$5=Symbol.for("immer-draftable"),b=Symbol.for("immer-state");function i($,...J){throw Error(`[Immer] minified error nr: ${$}. Full error at: https://bit.ly/3cXEKWf`)}var f0=Object.getPrototypeOf;function M0($){return!!$&&!!$[b]}function q0($){if(!$)return!1;return K5($)||Array.isArray($)||!!$[$5]||!!$.constructor?.[$5]||x0($)||t0($)}var t1=Object.prototype.constructor.toString(),J5=new WeakMap;function K5($){if(!$||typeof $!=="object")return!1;let J=Object.getPrototypeOf($);if(J===null||J===Object.prototype)return!0;let Z=Object.hasOwnProperty.call(J,"constructor")&&J.constructor;if(Z===Object)return!0;if(typeof Z!=="function")return!1;let X=J5.get(Z);if(X===void 0)X=Function.toString.call(Z),J5.set(Z,X);return X===t1}function o0($,J,Z=!0){if(a0($)===0)(Z?Reflect.ownKeys($):Object.keys($)).forEach((Y)=>{J(Y,$[Y],$)});else $.forEach((X,Y)=>J(Y,X,$))}function a0($){let J=$[b];return J?J.type_:Array.isArray($)?1:x0($)?2:t0($)?3:0}function R2($,J){return a0($)===2?$.has(J):Object.prototype.hasOwnProperty.call($,J)}function H5($,J,Z){let X=a0($);if(X===2)$.set(J,Z);else if(X===3)$.add(Z);else $[J]=Z}function e1($,J){if($===J)return $!==0||1/$===1/J;else return $!==$&&J!==J}function x0($){return $ instanceof Map}function t0($){return $ instanceof Set}function H0($){return $.copy_||$.base_}function k2($,J){if(x0($))return new Map($);if(t0($))return new Set($);if(Array.isArray($))return Array.prototype.slice.call($);let Z=K5($);if(J===!0||J==="class_only"&&!Z){let X=Object.getOwnPropertyDescriptors($);delete X[b];let Y=Reflect.ownKeys(X);for(let H=0;H<Y.length;H++){let Q=Y[H],K=X[Q];if(K.writable===!1)K.writable=!0,K.configurable=!0;if(K.get||K.set)X[Q]={configurable:!0,writable:!0,enumerable:K.enumerable,value:$[Q]}}return Object.create(f0($),X)}else{let X=f0($);if(X!==null&&Z)return{...$};let Y=Object.create(X);return Object.assign(Y,$)}}function E2($,J=!1){if(e0($)||M0($)||!q0($))return $;if(a0($)>1)Object.defineProperties($,{set:n0,add:n0,clear:n0,delete:n0});if(Object.freeze($),J)Object.values($).forEach((Z)=>E2(Z,!0));return $}function $4(){i(2)}var n0={value:$4};function e0($){if($===null||typeof $!=="object")return!0;return Object.isFrozen($)}var J4={};function B0($){let J=J4[$];if(!J)i(0,$);return J}var D0;function q5(){return D0}function Z4($,J){return{drafts_:[],parent_:$,immer_:J,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Z5($,J){if(J)B0("Patches"),$.patches_=[],$.inversePatches_=[],$.patchListener_=J}function C2($){O2($),$.drafts_.forEach(X4),$.drafts_=null}function O2($){if($===D0)D0=$.parent_}function X5($){return D0=Z4(D0,$)}function X4($){let J=$[b];if(J.type_===0||J.type_===1)J.revoke_();else J.revoked_=!0}function Y5($,J){J.unfinalizedDrafts_=J.drafts_.length;let Z=J.drafts_[0];if($!==void 0&&$!==Z){if(Z[b].modified_)C2(J),i(4);if(q0($)){if($=r0(J,$),!J.parent_)s0(J,$)}if(J.patches_)B0("Patches").generateReplacementPatches_(Z[b].base_,$,J.patches_,J.inversePatches_)}else $=r0(J,Z,[]);if(C2(J),J.patches_)J.patchListener_(J.patches_,J.inversePatches_);return $!==Q5?$:void 0}function r0($,J,Z){if(e0(J))return J;let X=$.immer_.shouldUseStrictIteration(),Y=J[b];if(!Y)return o0(J,(H,Q)=>N5($,Y,J,H,Q,Z),X),J;if(Y.scope_!==$)return J;if(!Y.modified_)return s0($,Y.base_,!0),Y.base_;if(!Y.finalized_){Y.finalized_=!0,Y.scope_.unfinalizedDrafts_--;let H=Y.copy_,Q=H,K=!1;if(Y.type_===3)Q=new Set(H),H.clear(),K=!0;if(o0(Q,(z,W)=>N5($,Y,H,z,W,Z,K),X),s0($,H,!1),Z&&$.patches_)B0("Patches").generatePatches_(Y,Z,$.patches_,$.inversePatches_)}return Y.copy_}function N5($,J,Z,X,Y,H,Q){if(Y==null)return;if(typeof Y!=="object"&&!Q)return;let K=e0(Y);if(K&&!Q)return;if(M0(Y)){let z=H&&J&&J.type_!==3&&!R2(J.assigned_,X)?H.concat(X):void 0,W=r0($,Y,z);if(H5(Z,X,W),M0(W))$.canAutoFreeze_=!1;else return}else if(Q)Z.add(Y);if(q0(Y)&&!K){if(!$.immer_.autoFreeze_&&$.unfinalizedDrafts_<1)return;if(J&&J.base_&&J.base_[X]===Y&&K)return;if(r0($,Y),(!J||!J.scope_.parent_)&&typeof X!=="symbol"&&(x0(Z)?Z.has(X):Object.prototype.propertyIsEnumerable.call(Z,X)))s0($,Y)}}function s0($,J,Z=!1){if(!$.parent_&&$.immer_.autoFreeze_&&$.canAutoFreeze_)E2(J,Z)}function Y4($,J){let Z=Array.isArray($),X={type_:Z?1:0,scope_:J?J.scope_:q5(),modified_:!1,finalized_:!1,assigned_:{},parent_:J,base_:$,draft_:null,copy_:null,revoke_:null,isManual_:!1},Y=X,H=S2;if(Z)Y=[X],H=y0;let{revoke:Q,proxy:K}=Proxy.revocable(Y,H);return X.draft_=K,X.revoke_=Q,K}var S2={get($,J){if(J===b)return $;let Z=H0($);if(!R2(Z,J))return N4($,Z,J);let X=Z[J];if($.finalized_||!q0(X))return X;if(X===L2($.base_,J))return A2($),$.copy_[J]=T2(X,$);return X},has($,J){return J in H0($)},ownKeys($){return Reflect.ownKeys(H0($))},set($,J,Z){let X=B5(H0($),J);if(X?.set)return X.set.call($.draft_,Z),!0;if(!$.modified_){let Y=L2(H0($),J),H=Y?.[b];if(H&&H.base_===Z)return $.copy_[J]=Z,$.assigned_[J]=!1,!0;if(e1(Z,Y)&&(Z!==void 0||R2($.base_,J)))return!0;A2($),P2($)}if($.copy_[J]===Z&&(Z!==void 0||(J in $.copy_))||Number.isNaN(Z)&&Number.isNaN($.copy_[J]))return!0;return $.copy_[J]=Z,$.assigned_[J]=!0,!0},deleteProperty($,J){if(L2($.base_,J)!==void 0||J in $.base_)$.assigned_[J]=!1,A2($),P2($);else delete $.assigned_[J];if($.copy_)delete $.copy_[J];return!0},getOwnPropertyDescriptor($,J){let Z=H0($),X=Reflect.getOwnPropertyDescriptor(Z,J);if(!X)return X;return{writable:!0,configurable:$.type_!==1||J!=="length",enumerable:X.enumerable,value:Z[J]}},defineProperty(){i(11)},getPrototypeOf($){return f0($.base_)},setPrototypeOf(){i(12)}},y0={};o0(S2,($,J)=>{y0[$]=function(){return arguments[0]=arguments[0][0],J.apply(this,arguments)}});y0.deleteProperty=function($,J){return y0.set.call(this,$,J,void 0)};y0.set=function($,J,Z){return S2.set.call(this,$[0],J,Z,$[0])};function L2($,J){let Z=$[b];return(Z?H0(Z):$)[J]}function N4($,J,Z){let X=B5(J,Z);return X?"value"in X?X.value:X.get?.call($.draft_):void 0}function B5($,J){if(!(J in $))return;let Z=f0($);while(Z){let X=Object.getOwnPropertyDescriptor(Z,J);if(X)return X;Z=f0(Z)}return}function P2($){if(!$.modified_){if($.modified_=!0,$.parent_)P2($.parent_)}}function A2($){if(!$.copy_)$.copy_=k2($.base_,$.scope_.immer_.useStrictShallowCopy_)}var Q4=class{constructor($){if(this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(J,Z,X)=>{if(typeof J==="function"&&typeof Z!=="function"){let H=Z;Z=J;let Q=this;return function(z=H,...W){return Q.produce(z,(w)=>Z.call(this,w,...W))}}if(typeof Z!=="function")i(6);if(X!==void 0&&typeof X!=="function")i(7);let Y;if(q0(J)){let H=X5(this),Q=T2(J,void 0),K=!0;try{Y=Z(Q),K=!1}finally{if(K)C2(H);else O2(H)}return Z5(H,X),Y5(Y,H)}else if(!J||typeof J!=="object"){if(Y=Z(J),Y===void 0)Y=J;if(Y===Q5)Y=void 0;if(this.autoFreeze_)E2(Y,!0);if(X){let H=[],Q=[];B0("Patches").generateReplacementPatches_(J,Y,H,Q),X(H,Q)}return Y}else i(1,J)},this.produceWithPatches=(J,Z)=>{if(typeof J==="function")return(Q,...K)=>this.produceWithPatches(Q,(z)=>J(z,...K));let X,Y;return[this.produce(J,Z,(Q,K)=>{X=Q,Y=K}),X,Y]},typeof $?.autoFreeze==="boolean")this.setAutoFreeze($.autoFreeze);if(typeof $?.useStrictShallowCopy==="boolean")this.setUseStrictShallowCopy($.useStrictShallowCopy);if(typeof $?.useStrictIteration==="boolean")this.setUseStrictIteration($.useStrictIteration)}createDraft($){if(!q0($))i(8);if(M0($))$=K4($);let J=X5(this),Z=T2($,void 0);return Z[b].isManual_=!0,O2(J),Z}finishDraft($,J){let Z=$&&$[b];if(!Z||!Z.isManual_)i(9);let{scope_:X}=Z;return Z5(X,J),Y5(void 0,X)}setAutoFreeze($){this.autoFreeze_=$}setUseStrictShallowCopy($){this.useStrictShallowCopy_=$}setUseStrictIteration($){this.useStrictIteration_=$}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches($,J){let Z;for(Z=J.length-1;Z>=0;Z--){let Y=J[Z];if(Y.path.length===0&&Y.op==="replace"){$=Y.value;break}}if(Z>-1)J=J.slice(Z+1);let X=B0("Patches").applyPatches_;if(M0($))return X($,J);return this.produce($,(Y)=>X(Y,J))}};function T2($,J){let Z=x0($)?B0("MapSet").proxyMap_($,J):t0($)?B0("MapSet").proxySet_($,J):Y4($,J);return(J?J.scope_:q5()).drafts_.push(Z),Z}function K4($){if(!M0($))i(10,$);return W5($)}function W5($){if(!q0($)||e0($))return $;let J=$[b],Z,X=!0;if(J){if(!J.modified_)return J.base_;J.finalized_=!0,Z=k2($,J.scope_.immer_.useStrictShallowCopy_),X=J.scope_.immer_.shouldUseStrictIteration()}else Z=k2($,!0);if(o0(Z,(Y,H)=>{H5(Z,Y,W5(H))},X),J)J.finalized_=!1;return Z}var H4=new Q4,z5=H4.produce;var q4=($)=>(J,Z,X)=>{return X.setState=(Y,H,...Q)=>{let K=typeof Y==="function"?z5(Y):Y;return J(K,H,...Q)},$(X.setState,Z,X)},G5=q4;var J2=$2()(M5(G5(($,J)=>({members:[],loading:!1,fetchMembers:async(Z,X,Y)=>{if(!Y&&J().loadedTeamId===Z&&J().loadedWithAgents===X)return;$({loading:!0});try{let H=await t.api.teams[":teamId"].members.$get({param:{teamId:Z},query:{includeAgents:X?"true":"false"}});if(!H.ok)throw Error("failed to fetch members");let Q=await H.json();$({members:Q||[],loadedTeamId:Z,loadedWithAgents:X,loading:!1})}catch{$({loading:!1})}}}))));var $0=$2(($)=>({fields:[],loadedProjectId:null,setFields:(J,Z)=>$({fields:J,loadedProjectId:Z}),updateFields:(J)=>$({fields:J})}));function I2($,J,Z){let X=j($,Z?.in);if(isNaN(J))return _0(Z?.in||$,NaN);if(!J)return X;let Y=X.getDate(),H=_0(Z?.in||$,X.getTime());H.setMonth(X.getMonth()+J+1,0);let Q=H.getDate();if(Y>=Q)return H;else return X.setFullYear(H.getFullYear(),H.getMonth(),Y),X}function w5($,J){let Z=j($,J?.in),X=Z.getMonth();return Z.setFullYear(Z.getFullYear(),X+1,0),Z.setHours(23,59,59,999),Z}function F5($,J){let[Z,X]=U5($,J.start,J.end);return{start:Z,end:X}}function V5($,J){let{start:Z,end:X}=F5(J?.in,$),Y=+Z>+X,H=Y?+Z:+X,Q=Y?X:Z;Q.setHours(0,0,0,0);let K=J?.step??1;if(!K)return[];if(K<0)K=-K,Y=!Y;let z=[];while(+Q<=H)z.push(_0(Z,Q)),Q.setDate(Q.getDate()+K),Q.setHours(0,0,0,0);return Y?z.reverse():z}function Z2($,J){return j($,J?.in).getDate()}function L5($,J){return j($,J?.in).getDay()}function f2($,J){return j($,J?.in).getHours()}function D2($,J){return j($,J?.in).getMinutes()}function y2($,J){return j($,J?.in).getMonth()}function x2($,J){return j($,J?.in).getFullYear()}var J0=c(d(),1);var B4=({value:$,config:J,onSave:Z,readOnly:X})=>{let Y=J?.date,[H,Q]=J0.useState(!1),K=J0.useRef(null),z=$?new Date($):new Date,W=w0(z)?z:new Date,[w,F]=J0.useState(W);J0.useEffect(()=>{if(H&&$){let V=new Date($);if(w0(V))F(V)}},[H,$]),J0.useEffect(()=>{let V=(G)=>{if(K.current&&!K.current.contains(G.target)){if(H)Q(!1)}};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[H]);let M=()=>{if(!X)Q(!0)},k=(V)=>{if(!V)return"";let G=new Date(V);if(!w0(G))return"Invalid Date";let E="PPP";if(Y?.displayFormat==="usa")E="MM/dd/yyyy";else if(Y?.displayFormat==="euro")E="dd/MM/yyyy";else if(Y?.displayFormat==="iso")E="yyyy-MM-dd";if(Y?.includeTime)if(Y?.timeFormat==="twenty_four_hour")E+=" HH:mm";else E+=" p";let D=_2(G,E);if(Y?.displayTimezone)D+=` (${Intl.DateTimeFormat().resolvedOptions().timeZone})`;return D},q=new Date(w.getFullYear(),w.getMonth(),1),O=w5(w),S=V5({start:q,end:O}),R=L5(q),L=(V)=>{let G=new Date(V);if(Y?.includeTime)G.setHours(f2(W)),G.setMinutes(D2(W));let E=G.toISOString();if(Z(E),!Y?.includeTime)Q(!1)},C=(V,G)=>{let E=$?new Date($):new Date;if(!w0(E))E.setTime(new Date().getTime());if(V==="hour")E.setHours(G);if(V==="minute")E.setMinutes(G);let D=E.toISOString();Z(D)},B=Array.from({length:24},(V,G)=>G),A=Array.from({length:12},(V,G)=>G*5);if(H)return U("div",{className:"relative w-full",ref:K,children:[N("div",{className:"w-full px-2 py-1 border border-ring rounded bg-background text-sm shadow-sm min-h-[28px] flex items-center",children:$?k($):N("span",{className:"text-muted-foreground",children:"Select date..."})}),U("div",{className:"absolute z-50 top-full left-0 mt-1 bg-popover border border-border rounded-lg shadow-xl flex flex-col md:flex-row overflow-hidden min-w-[280px]",children:[U("div",{className:"p-4 w-64",children:[U("div",{className:"flex justify-between items-center mb-4",children:[N("button",{onClick:()=>F(I2(w,-1)),className:"p-1 hover:bg-accent rounded",children:N(A5,{className:"w-4 h-4"})}),N("span",{className:"font-semibold text-sm",children:_2(w,"MMMM yyyy")}),N("button",{onClick:()=>F(I2(w,1)),className:"p-1 hover:bg-accent rounded",children:N(R5,{className:"w-4 h-4"})})]}),N("div",{className:"grid grid-cols-7 gap-1 text-center text-xs mb-2 text-muted-foreground",children:["Su","Mo","Tu","We","Th","Fr","Sa"].map((V)=>N("div",{children:V},V))}),U("div",{className:"grid grid-cols-7 gap-1 text-center text-sm",children:[Array.from({length:R}).map((V,G)=>N("div",{},`empty-${G}`)),S.map((V)=>{let G=$?new Date($):null,E=G&&w0(G)&&Z2(G)===Z2(V)&&y2(G)===y2(V)&&x2(G)===x2(V);return N("button",{onClick:()=>L(V),className:`w-8 h-8 rounded-full flex items-center justify-center hover:bg-accent transition-colors ${E?"bg-primary text-primary-foreground hover:bg-primary/90":"text-foreground"}`,children:Z2(V)},V.toString())})]})]}),Y?.includeTime&&U("div",{className:"border-l border-border bg-muted w-32 flex flex-col",children:[U("div",{className:"p-2 border-b border-border text-xs font-semibold text-muted-foreground flex items-center justify-center gap-1",children:[N(k5,{className:"w-3 h-3"})," Time"]}),U("div",{className:"flex flex-1 h-64",children:[N("div",{className:"flex-1 overflow-y-auto scrollbar-hide border-r border-border",children:B.map((V)=>N("div",{onClick:()=>C("hour",V),className:`px-2 py-1 text-center text-sm cursor-pointer hover:bg-accent ${f2(W)===V?"bg-primary/10 font-medium text-primary":""}`,children:V.toString().padStart(2,"0")},V))}),N("div",{className:"flex-1 overflow-y-auto scrollbar-hide",children:A.map((V)=>N("div",{onClick:()=>C("minute",V),className:`px-2 py-1 text-center text-sm cursor-pointer hover:bg-accent ${D2(W)===V?"bg-primary/10 font-medium text-primary":""}`,children:V.toString().padStart(2,"0")},V))})]})]})]})]});return N("div",{onClick:M,className:`w-full min-h-[28px] px-2 py-1 text-sm text-foreground rounded border border-transparent transition-colors ${!X?"cursor-pointer hover:bg-accent hover:border-border":""}`,children:$?k($):N("span",{className:"text-muted-foreground italic",children:"Empty"})})},C5=B4;var p=c(d(),1);var W4=({value:$,onSave:J,readOnly:Z})=>{let[X,Y]=p.useState(!1),[H,Q]=p.useState($||""),K=p.useRef(null),z=p.useRef(null),[W,w]=p.useState(!1);p.useEffect(()=>{Q($||"")},[$]),p.useEffect(()=>{if(X&&K.current)K.current.focus(),w(!1)},[X]),p.useEffect(()=>{let q=(O)=>{if(W&&z.current&&!z.current.contains(O.target))w(!1)};if(W)document.addEventListener("mousedown",q);return()=>{document.removeEventListener("mousedown",q)}},[W]);let F=()=>{Y(!1),J(H)},M=(q)=>{q.stopPropagation(),w(!0)},k=(q)=>{if(q.stopPropagation(),!Z)Y(!0)};if(X)return N("textarea",{ref:K,value:H,onChange:(q)=>Q(q.target.value),onBlur:F,className:"w-full min-h-[80px] p-2 border border-ring rounded bg-background text-sm outline-none shadow-sm resize-none"});return U("div",{ref:z,className:"relative w-full text-sm",children:[N("div",{onClick:M,className:`w-full text-foreground rounded border border-transparent transition-all px-2 py-1 h-[48px] line-clamp-2 whitespace-pre-wrap overflow-hidden ${!Z?"cursor-pointer hover:bg-accent hover:border-border":"cursor-pointer"}`,title:"Click to expand",children:$?$:N("span",{className:"text-muted-foreground italic",children:"Empty"})}),W&&N("div",{onClick:k,className:`absolute top-0 left-0 w-full min-h-full h-auto z-50 bg-background border border-ring rounded shadow-lg px-2 py-1 whitespace-pre-wrap ${!Z?"cursor-text":""}`,children:$?$:N("span",{className:"text-muted-foreground italic",children:"Empty"})})]})},O5=W4;var Z0=c(d(),1);var z4=({value:$,config:J,onSave:Z,readOnly:X})=>{let Y=J?.number,[H,Q]=Z0.useState(!1),[K,z]=Z0.useState(""),W=Z0.useRef(null);Z0.useEffect(()=>{z($!==void 0&&$!==null?$.toString():"")},[$]),Z0.useEffect(()=>{if(H&&W.current)W.current.focus()},[H]);let w=()=>{if(!X)Q(!0)},F=()=>{if(Q(!1),K==="")Z(void 0);else{let q=parseFloat(K);Z(isNaN(q)?void 0:q)}},M=(q)=>{if(q.key==="Enter")q.stopPropagation(),W.current?.blur()},k=(q)=>{if(q===void 0||q===null||isNaN(q))return"";return q.toFixed(Y?.scale)};if(H)return N("input",{ref:W,type:"number",step:1/Math.pow(10,Y?.scale||0),value:K,onChange:(q)=>z(q.target.value),onBlur:F,onKeyDown:M,onDoubleClick:(q)=>q.stopPropagation(),className:"w-full px-2 py-1 border border-ring rounded bg-background text-sm outline-none shadow-sm text-left font-mono"});return N("div",{onClick:w,onDoubleClick:(q)=>q.stopPropagation(),className:`w-full min-h-[28px] px-2 py-1 text-sm text-foreground rounded border border-transparent transition-colors text-left font-mono ${!X?"cursor-pointer hover:bg-accent hover:border-border":""}`,children:$!==void 0&&$!==null?k($):N("span",{className:"text-muted-foreground italic font-sans text-left block",children:"Empty"})})},P5=z4;var T5=c(d(),1);var G4=({value:$,config:J,onSave:Z,readOnly:X})=>{let Y=J?.rating,H=Math.max(2,Math.min(6,Y?.maxValue||5)),[Q,K]=T5.useState(null),z=(w,F)=>{if(w.stopPropagation(),X)return;let M;if($===F)M=0;else M=F;Z(M)},W=Array.from({length:H},(w,F)=>F+1);return N("div",{className:"flex items-center gap-1 h-[28px]",onMouseLeave:()=>!X&&K(null),onDoubleClick:(w)=>w.stopPropagation(),children:W.map((w)=>{let F=Q!==null?w<=Q:w<=($||0);return N("button",{onClick:(M)=>z(M,w),onMouseEnter:()=>!X&&K(w),className:`focus:outline-none transition-transform ${!X?"cursor-pointer hover:scale-110":"cursor-default"}`,type:"button",disabled:X,children:N(X2,{className:`w-5 h-5 transition-colors ${F?"fill-yellow-400 text-yellow-400":"fill-muted text-muted-foreground/30"}`})},w)})})},E5=G4;var e2=c(d(),1);var W0;(function($){$.Base32IncorrectEncoding="B32_ENC_INVALID",$.DecodeTimeInvalidCharacter="DEC_TIME_CHAR",$.DecodeTimeValueMalformed="DEC_TIME_MALFORMED",$.EncodeTimeNegative="ENC_TIME_NEG",$.EncodeTimeSizeExceeded="ENC_TIME_SIZE_EXCEED",$.EncodeTimeValueMalformed="ENC_TIME_MALFORMED",$.PRNGDetectFailure="PRNG_DETECT",$.ULIDInvalid="ULID_INVALID",$.Unexpected="UNEXPECTED",$.UUIDInvalid="UUID_INVALID"})(W0||(W0={}));class U0 extends Error{constructor($,J){super(`${J} (${$})`);this.name="ULIDError",this.code=$}}function M4($){let J=Math.floor($()*32)%32;return"0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(J)}function w4($){let J=U4(),Z=J&&(J.crypto||J.msCrypto)||null;if(typeof Z?.getRandomValues==="function")return()=>{let X=new Uint8Array(1);return Z.getRandomValues(X),X[0]/256};else if(typeof Z?.randomBytes==="function")return()=>Z.randomBytes(1).readUInt8()/256;throw new U0(W0.PRNGDetectFailure,"Failed to find a reliable PRNG")}function U4(){if(L4())return self;if(typeof window<"u")return window;if(typeof global<"u")return global;if(typeof globalThis<"u")return globalThis;return null}function F4($,J){let Z="";for(;$>0;$--)Z=M4(J)+Z;return Z}function V4($,J=10){if(isNaN($))throw new U0(W0.EncodeTimeValueMalformed,`Time must be a number: ${$}`);else if($>281474976710655)throw new U0(W0.EncodeTimeSizeExceeded,`Cannot encode a time larger than 281474976710655: ${$}`);else if($<0)throw new U0(W0.EncodeTimeNegative,`Time must be positive: ${$}`);else if(Number.isInteger($)===!1)throw new U0(W0.EncodeTimeValueMalformed,`Time must be an integer: ${$}`);let Z,X="";for(let Y=J;Y>0;Y--)Z=$%32,X="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(Z)+X,$=($-Z)/32;return X}function L4(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}function S5($,J){let Z=J||w4(),X=!$||isNaN($)?Date.now():$;return V4(X,10)+F4(16,Z)}var u0=c(d(),1);var{create:A4,defineProperty:a5,defineProperties:R4,getOwnPropertyDescriptor:k4,getOwnPropertyDescriptors:C4,getOwnPropertySymbols:H2}=Object,t5=Object.prototype.hasOwnProperty,e5=Object.prototype.propertyIsEnumerable,O4=($,J)=>(J=Symbol[$])?J:Symbol.for("Symbol."+$),b0=($)=>{throw TypeError($)},u2=($,J,Z)=>(J in $)?a5($,J,{enumerable:!0,configurable:!0,writable:!0,value:Z}):$[J]=Z,I5=($,J)=>{for(var Z in J||(J={}))if(t5.call(J,Z))u2($,Z,J[Z]);if(H2){for(var Z of H2(J))if(e5.call(J,Z))u2($,Z,J[Z])}return $},f5=($,J)=>R4($,C4(J)),P4=($,J)=>{var Z={};for(var X in $)if(t5.call($,X)&&J.indexOf(X)<0)Z[X]=$[X];if($!=null&&H2){for(var X of H2($))if(J.indexOf(X)<0&&e5.call($,X))Z[X]=$[X]}return Z},T4=($)=>{var J;return[,,,A4((J=void 0)!=null?J:null)]},$1=["class","method","getter","setter","accessor","field","value","get","set"],j0=($)=>$!==void 0&&typeof $!=="function"?b0("Function expected"):$,E4=($,J,Z,X,Y)=>({kind:$1[$],name:J,metadata:X,addInitializer:(H)=>Z._?b0("Already initialized"):Y.push(j0(H||null))}),S4=($,J)=>u2(J,O4("metadata"),$[3]),Y2=($,J,Z,X)=>{for(var Y=0,H=$[J>>1],Q=H&&H.length;Y<Q;Y++)J&1?H[Y].call(Z):X=H[Y].call(Z,X);return X},J1=($,J,Z,X,Y,H)=>{var Q,K,z,W,w,F=J&7,M=!1,k=!1,q=$.length+1,O=$1[F+5],S=$[q-1]=[],R=$[q]||($[q]=[]),L=(Y=Y.prototype,k4({get[Z](){return h0(this,H)},set[Z](B){return z0(this,H,B)}},Z));for(var C=X.length-1;C>=0;C--)if(W=E4(F,Z,z={},$[3],R),W.static=M,W.private=k,w=W.access={has:(B)=>(Z in B)},w.get=(B)=>B[Z],w.set=(B,A)=>B[Z]=A,K=(0,X[C])({get:L.get,set:L.set},W),z._=1,K===void 0)j0(K)&&(L[O]=K);else if(typeof K!=="object"||K===null)b0("Object expected");else j0(Q=K.get)&&(L.get=Q),j0(Q=K.set)&&(L.set=Q),j0(Q=K.init)&&S.unshift(Q);return L&&a5(Y,Z,L),Y},Z1=($,J,Z)=>J.has($)||b0("Cannot "+Z),h0=($,J,Z)=>(Z1($,J,"read from private field"),J.get($)),v0=($,J,Z)=>J.has($)?b0("Cannot add the same private member more than once"):J instanceof WeakSet?J.add($):J.set($,Z),z0=($,J,Z,X)=>(Z1($,J,"write to private field"),J.set($,Z),Z);function n($){return $ instanceof o2||$ instanceof N1}var N2=10,I4=class extends l2{constructor($){super($);let J=j5(()=>{let{dragOperation:X}=$;if(!d2(X.activatorEvent))return;if(!n(X.source))return;if(X.status.initialized){let Y=$.registry.plugins.get(o5);if(Y)return Y.disable(),()=>Y.enable()}}),Z=$.monitor.addEventListener("dragmove",(X,Y)=>{queueMicrotask(()=>{if(this.disabled||X.defaultPrevented||!X.nativeEvent)return;let{dragOperation:H}=Y;if(!d2(X.nativeEvent))return;if(!n(H.source))return;if(!H.shape)return;let{actions:Q,collisionObserver:K,registry:z}=Y,{by:W}=X;if(!W)return;let w=f4(W),{source:F,target:M}=H,{center:k}=H.shape.current,q=[],O=[];g(()=>{for(let A of z.droppables){let{id:V}=A;if(!A.accepts(F)||V===(M==null?void 0:M.id)&&n(A)||!A.element)continue;let G=A.shape,E=new c2(A.element,{getBoundingClientRect:(D)=>m5(D,void 0,0.2)});if(!E.height||!E.width)continue;if(w=="down"&&k.y+N2<E.center.y||w=="up"&&k.y-N2>E.center.y||w=="left"&&k.x-N2>E.center.x||w=="right"&&k.x+N2<E.center.x)q.push(A),A.shape=E,O.push(()=>A.shape=G)}}),X.preventDefault(),K.disable();let S=K.computeCollisions(q,p5);g(()=>O.forEach((A)=>A()));let[R]=S;if(!R)return;let{id:L}=R,{index:C,group:B}=F.sortable;Q.setDropTarget(L).then(()=>{let{source:A,target:V,shape:G}=H;if(!A||!n(A)||!G)return;let{index:E,group:D,target:y}=A.sortable,I=C!==E||B!==D,v=I?y:V==null?void 0:V.element;if(!v)return;u5(v);let P=new c2(v);if(!P)return;let f=g2.delta(P,g2.from(G.current.boundingRectangle),A.alignment);if(Q.move({by:f}),I)Q.setDropTarget(A.id).then(()=>K.enable());else K.enable()})})});this.destroy=()=>{Z(),J()}}};function f4($){let{x:J,y:Z}=$;if(J>0)return"right";else if(J<0)return"left";else if(Z>0)return"down";else if(Z<0)return"up"}var{defineProperty:D4,defineProperties:y4,getOwnPropertyDescriptors:x4,getOwnPropertySymbols:D5}=Object,_4=Object.prototype.hasOwnProperty,v4=Object.prototype.propertyIsEnumerable,y5=($,J,Z)=>(J in $)?D4($,J,{enumerable:!0,configurable:!0,writable:!0,value:Z}):$[J]=Z,F0=($,J)=>{for(var Z in J||(J={}))if(_4.call(J,Z))y5($,Z,J[Z]);if(D5){for(var Z of D5(J))if(v4.call(J,Z))y5($,Z,J[Z])}return $},V0=($,J)=>y4($,x4(J));function j4($,J,Z){if(J===Z)return $;let X=$.slice();return X.splice(Z,0,X.splice(J,1)[0]),X}function v2($){return"initialIndex"in $&&typeof $.initialIndex==="number"&&"index"in $&&typeof $.index==="number"}function h4($,J,Z){var X,Y,H;let{source:Q,target:K,canceled:z}=J.operation;if(!Q||!K||z){if("preventDefault"in J)J.preventDefault();return $}let W=(B,A)=>B===A||typeof B==="object"&&("id"in B)&&B.id===A;if(Array.isArray($)){let B=$.findIndex((V)=>W(V,Q.id)),A=$.findIndex((V)=>W(V,K.id));if(B===-1||A===-1){if(v2(Q)){let{initialIndex:V,index:G}=Q;if(V===G||V<0||V>=$.length){if("preventDefault"in J)J.preventDefault();return $}return Z($,V,G)}return $}if(!z&&"index"in Q&&typeof Q.index==="number"){let V=Q.index;if(V!==B)return Z($,B,V)}return Z($,B,A)}let w=Object.entries($),F=-1,M,k=-1,q;for(let[B,A]of w){if(F===-1){if(F=A.findIndex((V)=>W(V,Q.id)),F!==-1)M=B}if(k===-1){if(k=A.findIndex((V)=>W(V,K.id)),k!==-1)q=B}if(F!==-1&&k!==-1)break}if(F===-1&&v2(Q)){let{initialGroup:B,initialIndex:A,group:V,index:G}=Q;if(B==null||V==null||!(B in $)||!(V in $)){if("preventDefault"in J)J.preventDefault();return $}if(B===V&&A===G){if("preventDefault"in J)J.preventDefault();return $}if(B===V)return V0(F0({},$),{[B]:Z($[B],A,G)});let E=$[B][A];return V0(F0({},$),{[B]:[...$[B].slice(0,A),...$[B].slice(A+1)],[V]:[...$[V].slice(0,G),E,...$[V].slice(G)]})}if(!Q.manager)return $;let{dragOperation:O}=Q.manager,S=(Y=(X=O.shape)==null?void 0:X.current.center)!=null?Y:O.position.current;if(q==null){if(K.id in $){let B=K.shape&&S.y>K.shape.center.y?$[K.id].length:0;q=K.id,k=B}}if(M==null||q==null||M===q&&F===k){if(M!=null&&M===q&&F===k&&v2(Q)){let B=Q.group!=null&&Q.group!==M,A=Q.index!==F;if(B||A){let V=(H=Q.group)!=null?H:M;if(V in $){if(M===V)return V0(F0({},$),{[M]:Z($[M],F,Q.index)});let G=$[M][F];return V0(F0({},$),{[M]:[...$[M].slice(0,F),...$[M].slice(F+1)],[V]:[...$[V].slice(0,Q.index),G,...$[V].slice(Q.index)]})}}}if("preventDefault"in J)J.preventDefault();return $}if(M===q)return V0(F0({},$),{[M]:Z($[M],F,k)});let L=K.shape&&Math.round(S.y)>Math.round(K.shape.center.y)?1:0,C=$[M][F];return V0(F0({},$),{[M]:[...$[M].slice(0,F),...$[M].slice(F+1)],[q]:[...$[q].slice(0,k+L),C,...$[q].slice(k+L)]})}function g4($,J){return h4($,J,j4)}var x5="__default__",m4=class extends l2{constructor($){super($);let J=()=>{let X=new Map;for(let Y of $.registry.droppables)if(Y instanceof o2){let{sortable:H}=Y,{group:Q}=H,K=X.get(Q);if(!K)K=new Set,X.set(Q,K);K.add(H)}for(let[Y,H]of X)X.set(Y,new Set(Q2(H)));return X},Z=[$.monitor.addEventListener("dragover",(X,Y)=>{if(this.disabled)return;let{dragOperation:H}=Y,{source:Q,target:K}=H;if(!n(Q)||!n(K))return;if(Q.sortable===K.sortable)return;let z=J(),W=Q.sortable.group===K.sortable.group,w=z.get(Q.sortable.group),F=W?w:z.get(K.sortable.group);if(!w||!F)return;queueMicrotask(()=>{if(X.defaultPrevented)return;Y.renderer.rendering.then(()=>{var M,k,q;let O=J();for(let[y,I]of z.entries()){let v=Array.from(I).entries();for(let[P,f]of v)if(f.index!==P||f.group!==y||!((M=O.get(y))==null?void 0:M.has(f)))return}let S=Q.sortable.element,R=K.sortable.element;if(!R||!S)return;if(!W&&K.id===Q.sortable.group)return;let L=Q2(w),C=W?L:Q2(F),B=(k=Q.sortable.group)!=null?k:x5,A=(q=K.sortable.group)!=null?q:x5,V={[B]:L,[A]:C},G=g4(V,X);if(V===G)return;let E=G[A].indexOf(Q.sortable),D=G[A].indexOf(K.sortable);Y.collisionObserver.disable(),_5(S,E,R,D),g(()=>{for(let[y,I]of G[B].entries())I.index=y;if(!W)for(let[y,I]of G[A].entries())I.group=K.sortable.group,I.index=y}),Y.actions.setDropTarget(Q.id).then(()=>Y.collisionObserver.enable())})})}),$.monitor.addEventListener("dragend",(X,Y)=>{if(!X.canceled)return;let{dragOperation:H}=Y,{source:Q}=H;if(!n(Q))return;if(Q.sortable.initialIndex===Q.sortable.index&&Q.sortable.initialGroup===Q.sortable.group)return;queueMicrotask(()=>{let K=J(),z=K.get(Q.sortable.initialGroup);if(!z)return;Y.renderer.rendering.then(()=>{for(let[k,q]of K.entries()){let O=Array.from(q).entries();for(let[S,R]of O)if(R.index!==S||R.group!==k)return}let W=Q2(z),w=Q.sortable.element,F=W[Q.sortable.initialIndex],M=F==null?void 0:F.element;if(!F||!M||!w)return;_5(w,F.index,M,Q.index),g(()=>{for(let[k,q]of K.entries()){let O=Array.from(q).values();for(let S of O)S.index=S.initialIndex,S.group=S.initialGroup}})})})})];this.destroy=()=>{for(let X of Z)X()}}};function _5($,J,Z,X){let Y=X<J?"afterend":"beforebegin";Z.insertAdjacentElement(Y,$)}function b4($,J){return $.index-J.index}function Q2($){return Array.from($).sort(b4)}var v5=[I4,m4],i2={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},K2=new h5,X1,Y1,X0,p2,g0,m0,n2,L0;Y1=[h2],X1=[h2];var c0=class{constructor($,J){v0(this,p2,Y2(X0,8,this)),Y2(X0,11,this),v0(this,g0),v0(this,m0),v0(this,n2,Y2(X0,12,this)),Y2(X0,15,this),v0(this,L0),this.register=()=>{return g(()=>{var M,k;(M=this.manager)==null||M.registry.register(this.droppable),(k=this.manager)==null||k.registry.register(this.draggable)}),()=>this.unregister()},this.unregister=()=>{g(()=>{var M,k;(M=this.manager)==null||M.registry.unregister(this.droppable),(k=this.manager)==null||k.registry.unregister(this.draggable)})},this.destroy=()=>{g(()=>{this.droppable.destroy(),this.draggable.destroy()})};var Z=$,{effects:X=()=>[],group:Y,index:H,sensors:Q,type:K,transition:z=i2,plugins:W}=Z,w=P4(Z,["effects","group","index","sensors","type","transition","plugins"]);let F=m2(W,v5);this.droppable=new o2(w,J,this),this.draggable=new N1(f5(I5({},w),{plugins:F,effects:()=>[()=>{var M,k,q;let O=(M=this.manager)==null?void 0:M.dragOperation.status;if((O==null?void 0:O.initializing)&&this.id===((q=(k=this.manager)==null?void 0:k.dragOperation.source)==null?void 0:q.id))K2.clear(this.manager);if(O==null?void 0:O.dragging)K2.set(this.manager,this.id,j2(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{let{index:M,group:k,manager:q}=this,O=h0(this,m0),S=h0(this,g0);if(M!==O||k!==S)z0(this,m0,M),z0(this,g0,k),this.animate()},()=>{var M,k;let{target:q}=this,{isDragSource:O}=this.draggable;if(((k=(M=this.draggable.pluginConfig(n5))==null?void 0:M.feedback)!=null?k:"default")==="move"&&O)this.droppable.disabled=!q},...X()],type:K,sensors:Q}),J,this),z0(this,L0,w.element),this.manager=J,this.index=H,z0(this,m0,H),this.group=Y,z0(this,g0,Y),this.type=K,this.transition=z}get initialIndex(){var $,J;return(J=($=K2.get(this.manager,this.id))==null?void 0:$.initialIndex)!=null?J:this.index}get initialGroup(){var $,J;return(J=($=K2.get(this.manager,this.id))==null?void 0:$.initialGroup)!=null?J:this.group}animate(){j2(()=>{let{manager:$,transition:J}=this,{shape:Z}=this.droppable;if(!$)return;let{idle:X}=$.dragOperation.status;if(!Z||!J||X&&!J.idle)return;$.renderer.rendering.then(()=>{let{element:Y}=this;if(!Y)return;for(let w of Y.getAnimations())if("transitionProperty"in w&&(w.transitionProperty==="transform"||w.transitionProperty==="translate"||w.transitionProperty==="scale"))w.cancel();let H=this.refreshShape();if(!H)return;let Q={x:Z.boundingRectangle.left-H.boundingRectangle.left,y:Z.boundingRectangle.top-H.boundingRectangle.top},{translate:K}=d5(Y),z=b2(Y,K,!1),W=b2(Y,K);if(Q.x||Q.y){let w=b5(g5(Y))?f5(I5({},J),{duration:0}):J;l5({element:Y,keyframes:{translate:[`${z.x+Q.x}px ${z.y+Q.y}px ${z.z}`,`${W.x}px ${W.y}px ${W.z}`]},options:w}).then(()=>{if(!$.dragOperation.status.dragging)this.droppable.shape=void 0})}})})}get manager(){return this.draggable.manager}set manager($){g(()=>{this.draggable.manager=$,this.droppable.manager=$})}set element($){g(()=>{let J=h0(this,L0),Z=this.droppable.element,X=this.draggable.element;if(!Z||Z===J)this.droppable.element=$;if(!X||X===J)this.draggable.element=$;z0(this,L0,$)})}get element(){var $,J;let Z=h0(this,L0);if(!Z)return;return(J=($=c5.get(Z))!=null?$:Z)!=null?J:this.droppable.element}set target($){this.droppable.element=$}get target(){return this.droppable.element}set source($){this.draggable.element=$}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set plugins($){this.draggable.plugins=m2($,v5)}set disabled($){g(()=>{this.droppable.disabled=$,this.draggable.disabled=$})}set data($){g(()=>{this.droppable.data=$,this.draggable.data=$})}set handle($){this.draggable.handle=$}set id($){this.droppable.id=$,this.draggable.id=$}get id(){return this.droppable.id}set sensors($){this.draggable.sensors=$}set modifiers($){this.draggable.modifiers=$}set collisionPriority($){this.droppable.collisionPriority=$}set collisionDetector($){this.droppable.collisionDetector=$!=null?$:i5}set alignment($){this.draggable.alignment=$}get alignment(){return this.draggable.alignment}set type($){g(()=>{this.droppable.type=$,this.draggable.type=$})}get type(){return this.draggable.type}set accept($){this.droppable.accept=$}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts($){return this.droppable.accepts($)}};X0=T4();p2=new WeakMap;g0=new WeakMap;m0=new WeakMap;n2=new WeakMap;L0=new WeakMap;J1(X0,4,"index",Y1,c0,p2);J1(X0,4,"group",X1,c0,n2);S4(X0,c0);var N1=class extends r5{constructor($,J,Z){super($,J);this.sortable=Z}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},o2=class extends s5{constructor($,J,Z){super($,J);this.sortable=Z}get index(){return this.sortable.index}get group(){return this.sortable.group}};var{defineProperty:c4,defineProperties:d4,getOwnPropertyDescriptors:u4,getOwnPropertySymbols:Q1}=Object,l4=Object.prototype.hasOwnProperty,i4=Object.prototype.propertyIsEnumerable,K1=($,J,Z)=>(J in $)?c4($,J,{enumerable:!0,configurable:!0,writable:!0,value:Z}):$[J]=Z,r2=($,J)=>{for(var Z in J||(J={}))if(l4.call(J,Z))K1($,Z,J[Z]);if(Q1){for(var Z of Q1(J))if(i4.call(J,Z))K1($,Z,J[Z])}return $},p4=($,J)=>d4($,u4(J));function z1($){let{accept:J,collisionDetector:Z,collisionPriority:X,id:Y,data:H,element:Q,handle:K,index:z,group:W,disabled:w,modifiers:F,sensors:M,target:k,type:q,plugins:O}=$,S=r2(r2({},i2),$.transition),R=W1((C)=>{return new c0(p4(r2({},$),{transition:S,register:!1,handle:q2(K),element:q2(Q),target:q2(k)}),C)}),L=q1(R,n4);return m(Y,()=>R.id=Y),H1(()=>{g(()=>{R.group=W,R.index=z})},[R,W,z]),m(q,()=>R.type=q),m(J,()=>R.accept=J,void 0,d0),m(H,()=>H&&(R.data=H)),m(z,()=>{var C;if(((C=R.manager)==null?void 0:C.dragOperation.status.idle)&&(S==null?void 0:S.idle))R.refreshShape()},B1),B2(K,(C)=>R.handle=C),B2(Q,(C)=>R.element=C),B2(k,(C)=>R.target=C),m(w,()=>R.disabled=w===!0),m(M,()=>R.sensors=M),m(Z,()=>R.collisionDetector=Z),m(X,()=>R.collisionPriority=X),m(O,()=>R.plugins=O,void 0,d0),m(S,()=>R.transition=S,void 0,d0),m(F,()=>R.modifiers=F,void 0,d0),m($.alignment,()=>R.alignment=$.alignment),{sortable:L,get isDragging(){return L.isDragging},get isDropping(){return L.isDropping},get isDragSource(){return L.isDragSource},get isDropTarget(){return L.isDropTarget},handleRef:u0.useCallback((C)=>{R.handle=C!=null?C:void 0},[R]),ref:u0.useCallback((C)=>{var B,A;if(!C&&((B=R.element)==null?void 0:B.isConnected)&&!((A=R.manager)==null?void 0:A.dragOperation.status.idle))return;R.element=C!=null?C:void 0},[R]),sourceRef:u0.useCallback((C)=>{var B,A;if(!C&&((B=R.source)==null?void 0:B.isConnected)&&!((A=R.manager)==null?void 0:A.dragOperation.status.idle))return;R.source=C!=null?C:void 0},[R]),targetRef:u0.useCallback((C)=>{var B,A;if(!C&&((B=R.target)==null?void 0:B.isConnected)&&!((A=R.manager)==null?void 0:A.dragOperation.status.idle))return;R.target=C!=null?C:void 0},[R])}}function n4($,J,Z){if($==="isDragSource"&&!Z&&J)return!0;return!1}function o4($,J,Z){let X=$.slice();return X.splice(Z,0,X.splice(J,1)[0]),X}function G1($,J,Z,X){if(Z===X)return $;let Y=o4(J,Z,X),H=new Set(J.map((K)=>K.id)),Q=0;return $.map((K)=>H.has(K.id)?Y[Q++]:K)}async function C8($){let J=[],Z=[],X=$.items;if(X)for(let Q=0;Q<X.length;Q++){let K=X[Q];if(K.kind==="file"){let z=K.webkitGetAsEntry?.();if(z)Z.push({entry:z,path:""})}}else return Array.from($.files);let Y=(Q)=>{return new Promise((K)=>{Q.readEntries((z)=>K(z),()=>K([]))})},H=(Q)=>{return new Promise((K,z)=>{Q.file((W)=>K(W),(W)=>z(W))})};while(Z.length>0){let Q=Z.shift();if(!Q)continue;let{entry:K,path:z}=Q;if(K.isFile)try{let W=await H(K),w=z?`${z}/${W.name}`:W.name;Object.defineProperty(W,"webkitRelativePath",{value:w,writable:!1,configurable:!0}),J.push(W)}catch(W){console.error("Error reading file entry:",W)}else if(K.isDirectory){let W=K.createReader(),w=[],F=await Y(W);while(F.length>0)w=w.concat(F),F=await Y(W);let M=z?`${z}/${K.name}`:K.name;for(let k of w)Z.push({entry:k,path:M})}}return J}var u=c(d(),1);var R1=c(d(),1);function k1(){let[$,J]=R1.useState(!1);return U(w1,{open:$,onOpenChange:J,children:[N(U1,{asChild:!0,children:U(o,{type:"button",variant:"ghost",size:"icon",className:"h-4 w-4 p-0 hover:bg-transparent text-muted-foreground hover:text-foreground inline-flex items-center justify-center shrink-0 ml-1",title:T.autofill_source_help_title(),children:[N(s2,{className:"h-3.5 w-3.5"}),N("span",{className:"sr-only",children:T.autofill_source_help_title()})]})}),U(F1,{className:"sm:max-w-[500px]",children:[U(V1,{children:[U(L1,{className:"flex items-center gap-2",children:[N(s2,{className:"h-5 w-5 text-muted-foreground"}),T.autofill_source_help_title()]}),N(A1,{children:T.autofill_source_help_desc()})]}),U("div",{className:"space-y-4 py-2",children:[U("div",{className:"rounded-lg border p-3.5 space-y-1.5 bg-muted/30",children:[U("div",{className:"flex items-center gap-2 font-medium text-sm",children:[N(M1,{className:"h-4 w-4 text-muted-foreground shrink-0"}),N("span",{children:T.autofill_source_none()})]}),N("p",{className:"text-xs text-muted-foreground leading-relaxed",children:T.autofill_source_none_desc()}),N("p",{className:"text-xs italic text-muted-foreground/80",children:T.autofill_source_none_example()})]}),U("div",{className:"rounded-lg border p-3.5 space-y-1.5 bg-muted/30",children:[U("div",{className:"flex items-center gap-2 font-medium text-sm",children:[N(W2,{className:"h-4 w-4 text-amber-500 shrink-0"}),N("span",{children:T.autofill_source_content()})]}),N("p",{className:"text-xs text-muted-foreground leading-relaxed",children:T.autofill_source_content_desc()}),N("p",{className:"text-xs italic text-muted-foreground/80",children:T.autofill_source_content_example()})]}),U("div",{className:"rounded-lg border p-3.5 space-y-1.5 bg-muted/30",children:[U("div",{className:"flex items-center gap-2 font-medium text-sm",children:[N(z2,{className:"h-4 w-4 text-blue-500 shrink-0"}),N("span",{children:T.autofill_source_creation_context()})]}),N("p",{className:"text-xs text-muted-foreground leading-relaxed",children:T.autofill_source_creation_context_desc()}),N("p",{className:"text-xs italic text-muted-foreground/80",children:T.autofill_source_creation_context_example()})]})]})]})]})}var M2=["red","orange","yellow","green","blue","purple","gray"],t2={red:{bg:"rgba(239, 68, 68, 0.15)",text:"#ef4444",hex:"#ef4444"},orange:{bg:"rgba(249, 115, 22, 0.15)",text:"#f97316",hex:"#f97316"},yellow:{bg:"rgba(234, 179, 8, 0.15)",text:"#ca8a04",hex:"#eab308"},green:{bg:"rgba(34, 197, 94, 0.15)",text:"#16a34a",hex:"#22c55e"},blue:{bg:"rgba(59, 130, 246, 0.15)",text:"#2563eb",hex:"#3b82f6"},purple:{bg:"rgba(168, 85, 247, 0.15)",text:"#9333ea",hex:"#a855f7"},gray:{bg:"rgba(128, 128, 128, 0.15)",text:"#4b5563",hex:"#808080"},system:{bg:"rgba(128, 128, 128, 0.1)",text:"#6b7280",hex:"#808080"}};function O0($){if(!$)return{backgroundColor:"rgba(128, 128, 128, 0.1)",color:"#6b7280"};let J=$.toLowerCase(),Z=t2[J];if(Z)return{backgroundColor:Z.bg,color:Z.text};if($.startsWith("#"))return{backgroundColor:`${$}33`,color:$};return{backgroundColor:"rgba(128, 128, 128, 0.1)",color:$}}function i0($=[]){let J=new Set($.map((X)=>X.color?.toLowerCase()).filter(Boolean)),Z=M2.filter((X)=>!J.has(X.toLowerCase()));if(Z.length>0)return Z[Math.floor(Math.random()*Z.length)];return M2[Math.floor(Math.random()*M2.length)]}var r4={[h.text]:y1,[h.longText]:O1,[h.select]:S1,[h.selectMulti]:f1,[h.rating]:X2,[h.number]:E1,[h.toggle]:D1,[h.date]:P1,[h.user]:x1,[h.userMulti]:_1};function s4({field:$,index:J,onVisibilityChange:Z}){let{ref:X,handleRef:Y}=z1({id:$.id,index:J}),H=$.config?.type?r4[$.config.type]:null;return U("div",{ref:X,className:"flex items-center justify-between p-2 rounded-md hover:bg-muted",children:[U("div",{className:"flex items-center gap-2",children:[N("div",{ref:Y,className:"cursor-grab",children:N(T1,{className:"h-4 w-4 text-muted-foreground"})}),H&&N(H,{className:"h-4 w-4 text-muted-foreground shrink-0"}),$.config?.autofillSource===Y0.CONTENT&&N(W2,{className:"h-4 w-4 text-muted-foreground shrink-0"}),$.config?.autofillSource===Y0.CREATION_CONTEXT&&N(z2,{className:"h-4 w-4 text-muted-foreground shrink-0"}),N("span",{className:"text-sm truncate",children:$.config?.name})]}),N(w2,{checked:$.visible,onCheckedChange:(Q)=>Z($.id,Q)})]})}function s8({projectId:$,onManageFields:J,onSave:Z}){let{fields:X,updateFields:Y}=$0(),[H,Q]=u.useState(""),[K,z]=u.useState("list"),[W,w]=u.useState(""),[F,M]=u.useState(""),[k,q]=u.useState(Y0.NONE),[O,S]=u.useState(""),[R,L]=u.useState([]),C=C1();u.useEffect(()=>{C.invalidateQueries({queryKey:["fields",$]})},[$,C]);let B=t.api.projects[":projectId"].fields.order.$patch,{mutate:A}=a2({mutationFn:async(P)=>{if(!(await B(P)).ok)throw Error(T.failed_update_fields_order());return null}}),V=t.api.projects[":projectId"].fields.$post,{mutate:G}=a2({mutationFn:async(P)=>{let f=await V(P);if(!f.ok)throw Error(T.failed_create_field());return await f.json()},onSuccess:(P)=>{let f={...P,visible:!0},_=[...X,f];Y(_),w(""),L([]),A({param:{projectId:$},json:_.map((x)=>({fieldId:x.id,visible:x.visible||!1}))}),Z?.()}}),E=u.useMemo(()=>X.filter((P)=>P.config?.name?.toLowerCase().includes(H.toLowerCase())),[X,H]),D=(P)=>{if(P.canceled)return;let{source:f}=P.operation;if(!n(f))return;let{initialIndex:_,index:x}=f;if(_===x)return;let l=G1(X,E,_,x);Y(l),A({param:{projectId:$},json:l.map((K0)=>({fieldId:K0.id,visible:K0.visible||!1}))})},y=(P,f)=>{let _=X.map((x)=>x.id===P?{...x,visible:f}:x);Y(_),A({param:{projectId:$},json:_.map((x)=>({fieldId:x.id,visible:x.visible||!1}))})},I=()=>{if(!W||!F)return;let P=F===h.select?{select:{options:R}}:F===h.selectMulti?{selectMulti:{options:R}}:{};G({param:{projectId:$},json:{config:{name:W,type:F,autofillSource:k,...P},label:W,description:O}})},v=X.filter((P)=>P.visible).length;if(K==="create")return N("div",{className:"w-80 p-4",children:U("div",{className:"space-y-4",children:[U("div",{className:"space-y-2",children:[N(A0,{htmlFor:"field-name",children:T.field_name()}),N(l0,{id:"field-name",placeholder:T.new_field_placeholder(),value:W,onChange:(P)=>w(P.target.value),autoFocus:!0})]}),U("div",{className:"space-y-2",children:[N(A0,{children:T.field_type()}),U(v1,{children:[N(j1,{asChild:!0,children:U(o,{variant:"outline",className:"w-full justify-between font-normal",children:[F?N("span",{className:"capitalize",children:F.replace(/_/g," ")}):N("span",{className:"text-muted-foreground border-dashed",children:T.select_field_type()}),N(R0,{className:"ml-2 h-4 w-4 opacity-50"})]})}),N(h1,{className:"w-[--radix-dropdown-menu-trigger-width]",children:Object.values(h).map((P)=>N(g1,{onClick:()=>{M(P),L([])},className:"capitalize",children:P.replace(/_/g," ")},P))})]})]}),U("div",{className:"space-y-2",children:[N(A0,{htmlFor:"field-desc",children:T.description()}),N(l0,{id:"field-desc",placeholder:T.description_optional_placeholder(),value:O,onChange:(P)=>S(P.target.value)})]}),U("div",{className:"space-y-2",children:[U("div",{className:"flex items-center gap-1",children:[N(A0,{children:T.autofill_source()}),N(k1,{})]}),U(u1,{type:"single",value:k,onValueChange:(P)=>{if(P)q(P)},className:"w-full grid grid-cols-3 border rounded-md p-1 gap-1",children:[N(G2,{value:Y0.NONE,className:"text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium",children:T.autofill_source_none()}),N(G2,{value:Y0.CONTENT,className:"text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium",children:T.autofill_source_content()}),N(G2,{value:Y0.CREATION_CONTEXT,className:"text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium",children:T.autofill_source_creation_context()})]})]}),(F===h.select||F===h.selectMulti)&&U("div",{className:"space-y-2",children:[U("div",{className:"flex items-center justify-between",children:[N(A0,{className:"text-sm font-medium",children:T.options()}),U(o,{variant:"ghost",size:"sm",className:"h-8 px-2",onClick:()=>{let P={id:S5(),displayName:T.new_option(),color:i0(R)};L([...R,P])},children:[N(G0,{className:"h-4 w-4 mr-1"})," ",T.add_option()]})]}),N("div",{className:"space-y-2 max-h-40 overflow-y-auto pr-1",children:R.map((P,f)=>U("div",{className:"flex items-center gap-2",children:[N(l0,{value:P.displayName,onChange:(_)=>{let x=[...R];x[f]={...P,displayName:_.target.value},L(x)},placeholder:T.option_name_placeholder(),className:"h-8 flex-1"}),U(r,{children:[N(s,{asChild:!0,children:N("button",{type:"button",className:"w-6 h-6 rounded-full border shrink-0 cursor-pointer focus:outline-none hover:scale-105 transition-transform",style:{backgroundColor:t2[P.color||""]?.hex||P.color||"#808080"}})}),N(a,{className:"p-2 w-auto",align:"end",children:N("div",{className:"flex gap-1",children:M2.map((_)=>N("button",{type:"button",className:"w-5 h-5 rounded-full border cursor-pointer hover:scale-110 transition-transform",style:{backgroundColor:t2[_]?.hex||_},onClick:()=>{let x=[...R];x[f]={...P,color:_},L(x)}},_))})})]}),N(o,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-destructive hover:text-destructive hover:bg-destructive/10",onClick:()=>{L(R.filter((_,x)=>x!==f))},children:N(C0,{className:"h-4 w-4"})})]},P.id))})]}),U("div",{className:"flex gap-2 pt-2",children:[N(o,{variant:"secondary",className:"flex-1",onClick:()=>{z("list"),w(""),M(""),q(Y0.NONE),S(""),L([])},children:T.cancel()}),N(o,{className:"flex-1",onClick:I,disabled:!W||!F,children:T.save()})]})]})});return U("div",{className:"w-80 p-4",children:[N("div",{className:"flex items-center justify-between mb-4",children:U("h3",{className:"font-semibold",children:[T.fields()," ",N("span",{className:"text-muted-foreground text-sm font-normal",children:T.visible_count({count:v})})]})}),U("div",{className:"relative mb-4",children:[N(k0,{className:"absolute left-2 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),N(l0,{placeholder:T.search_fields_placeholder(),value:H,onChange:(P)=>Q(P.target.value),className:"pl-8"})]}),N("div",{className:"max-h-60 overflow-y-auto pr-2",children:N(d1,{sensors:[c1.configure({activationConstraints:[new b1.Distance({value:8})]}),m1],onDragEnd:D,children:E.map((P,f)=>N(s4,{field:P,index:f,onVisibilityChange:y},P.id))})}),J&&U("div",{className:"mt-4 space-y-2",children:[U(o,{variant:"secondary",className:"w-full",onClick:J,children:[N(I1,{className:"h-4 w-4 mr-2"}),T.manage_fields()]}),U(o,{className:"w-full",onClick:()=>z("create"),children:[N(G0,{className:"h-4 w-4 mr-2"}),T.new_field()]})]})]})}var a4=({value:$,config:J,onSave:Z,readOnly:X,fieldId:Y})=>{let H=J?.select,Q=H?.options||[],[K,z]=e2.useState(!1),[W,w]=e2.useState(""),F=Q.find((B)=>B.id===$),M=W.trim(),k=Q.filter((B)=>B.displayName.toLowerCase().includes(M.toLowerCase())),q=Q.some((B)=>B.displayName.trim().toLowerCase()===M.toLowerCase()||B.id.toLowerCase()===M.toLowerCase()),O=()=>{if(!X)z(!0)},S=(B)=>{Z(B),z(!1),w("")},R=(B)=>{if(X)return;if(z(B),!B)w("")},L=async()=>{if(!M)return;let B={id:M.toLowerCase().replace(/\s+/g,"-"),displayName:M,color:i0(Q)},A=[...Q,B],V={...J,select:{...H,options:A}};if(Y)try{let G=await t.api.fields[":fieldId"].$put({param:{fieldId:Y},json:{config:V}});if(!G.ok){P0.error(T.failed_update_field());return}let E=await G.json(),y=$0.getState().fields.map((I)=>I.id===E.id?{...I,...E,visible:I.visible}:I);$0.getState().updateFields(y)}catch{P0.error(T.failed_update_field());return}Z(B.id),w(""),z(!1)};return N("div",{className:"relative w-full",onClick:(B)=>B.stopPropagation(),children:U(r,{open:!X&&K,onOpenChange:R,children:[N(s,{asChild:!0,children:U("div",{onClick:O,className:`flex items-center justify-between w-full h-[28px] px-2 rounded border border-transparent transition-colors ${!X?"cursor-pointer hover:bg-accent hover:border-border group":""}`,children:[((B)=>{if(!B)return N("span",{className:"text-muted-foreground italic text-sm",children:"Select an option"});return N("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium h-[22px]",style:O0(B.color),children:B.displayName})})(F),!X&&N(R0,{className:"w-4 h-4 text-muted-foreground opacity-0 group-hover:opacity-100"})]})}),U(a,{side:"bottom",align:"start",sideOffset:4,className:"p-1.5 w-64 max-h-72 flex flex-col bg-popover border border-border rounded-lg shadow-lg",children:[U("div",{className:"relative pb-1.5 border-b border-border mb-1",onClick:(B)=>B.stopPropagation(),children:[N(k0,{className:"w-3.5 h-3.5 absolute left-2 top-2 text-muted-foreground"}),N("input",{type:"text",className:"w-full pl-7 pr-2 py-1 text-xs bg-muted/50 border border-input rounded-md focus:outline-none focus:ring-1 focus:ring-ring text-foreground",placeholder:T.search_options_placeholder(),value:W,onChange:(B)=>w(B.target.value),autoFocus:!0})]}),U("div",{className:"overflow-y-auto max-h-48 min-h-[120px] space-y-0.5",children:[W===""&&U("div",{onClick:()=>S(""),className:"px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground rounded cursor-pointer flex items-center gap-2",children:[N(C0,{className:"w-3.5 h-3.5"})," Clear"]}),k.map((B)=>N("div",{onClick:()=>S(B.id),className:`px-2.5 py-1.5 text-xs hover:bg-accent rounded cursor-pointer flex items-center justify-between ${$===B.id?"bg-accent/50 font-medium":""}`,children:N("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",style:O0(B.color),children:B.displayName})},B.id)),k.length===0&&!M&&N("div",{className:"px-2.5 py-2 text-xs text-muted-foreground italic text-center",children:T.no_options_found()}),M!==""&&!q&&U("div",{onClick:L,className:"px-2.5 py-1.5 text-xs text-primary hover:bg-accent rounded cursor-pointer flex items-center gap-1.5 font-medium border-t border-border mt-1 pt-1.5",children:[N(G0,{className:"w-3.5 h-3.5 shrink-0"}),N("span",{className:"truncate",children:T.add_option_with_name({name:M})})]})]})]})]})})},l1=a4;var N0=c(d(),1);var t4=({value:$=[],config:J,onSave:Z,readOnly:X,fieldId:Y})=>{let H=J?.selectMulti,Q=H?.options||[],K=N0.useRef(null),[z,W]=N0.useState(!1),[w,F]=N0.useState($.length),[M,k]=N0.useState(""),q=Q.filter((G)=>($||[]).includes(G.id))||[],O=M.trim(),S=Q.filter((G)=>G.displayName.toLowerCase().includes(O.toLowerCase())),R=Q.some((G)=>G.displayName.trim().toLowerCase()===O.toLowerCase()||G.id.toLowerCase()===O.toLowerCase());N0.useLayoutEffect(()=>{if(z){F(q.length);return}if(K.current){let G=K.current.clientWidth-8,D=document.createElement("canvas").getContext("2d");if(D&&G>0){D.font="500 12px ui-sans-serif, system-ui, sans-serif";let y=4,I=q.map((l)=>Math.ceil(D.measureText(l.displayName).width)+18);if(I.reduce((l,K0)=>l+K0,0)+Math.max(0,I.length-1)*y<=G){F(q.length);return}let f=G-32-y,_=0,x=0;for(let l=0;l<I.length;l++){let K0=x>0?_+y+I[l]:I[l];if(K0>f)break;_=K0,x++}F(x)}}},[q,z,$]);let L=(G)=>{let E=$||[],D;if(E.includes(G))D=E.filter((y)=>y!==G);else D=[...E,G];Z(D)},C=async()=>{if(!O)return;let G={id:O.toLowerCase().replace(/\s+/g,"-"),displayName:O,color:i0(Q)},E=[...Q,G],D={...J,selectMulti:{...H,options:E}};if(Y)try{let y=await t.api.fields[":fieldId"].$put({param:{fieldId:Y},json:{config:D}});if(!y.ok){P0.error(T.failed_update_field());return}let I=await y.json(),P=$0.getState().fields.map((f)=>f.id===I.id?{...f,...I,visible:f.visible}:f);$0.getState().updateFields(P)}catch{P0.error(T.failed_update_field());return}Z([...$||[],G.id]),k("")},B=(G)=>{if(G.stopPropagation(),!X)W(!0)},A=q.length-w;return N("div",{className:"relative w-full",onClick:(G)=>G.stopPropagation(),children:U(r,{open:!X&&z,onOpenChange:(G)=>{if(X)return;if(W(G),!G)k("")},children:[N(s,{asChild:!0,children:U("div",{ref:K,onClick:B,className:`w-full px-1 py-1 flex flex-wrap gap-1 rounded border border-transparent transition-all box-border h-[32px] overflow-hidden ${!X||A>0?"cursor-pointer hover:bg-accent hover:border-border":""}`,children:[q.length===0&&N("span",{className:"text-muted-foreground text-sm italic px-1 pt-0.5",children:"Empty"}),q.slice(0,w).map((G)=>N("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium border border-transparent whitespace-nowrap h-[22px]",style:O0(G.color),children:G.displayName},G.id)),A>0&&U("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-xs font-medium bg-muted text-muted-foreground h-[22px]",children:["+",A]})]})}),U(a,{side:"bottom",align:"start",sideOffset:4,className:"p-1.5 w-64 max-h-72 flex flex-col bg-popover border border-border rounded-lg shadow-lg",children:[U("div",{className:"relative pb-1.5 border-b border-border mb-1",onClick:(G)=>G.stopPropagation(),children:[N(k0,{className:"w-3.5 h-3.5 absolute left-2 top-2 text-muted-foreground"}),N("input",{type:"text",className:"w-full pl-7 pr-2 py-1 text-xs bg-muted/50 border border-input rounded-md focus:outline-none focus:ring-1 focus:ring-ring text-foreground",placeholder:T.search_options_placeholder(),value:M,onChange:(G)=>k(G.target.value),autoFocus:!0})]}),U("div",{className:"overflow-y-auto max-h-48 min-h-[120px] space-y-0.5",children:[S.map((G)=>{let E=($||[]).includes(G.id);return U("div",{onClick:()=>L(G.id),className:`px-2.5 py-1.5 hover:bg-accent rounded cursor-pointer flex items-center justify-between text-xs ${E?"bg-accent/30 font-medium":""}`,children:[N("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium",style:O0(G.color),children:G.displayName}),E&&N(U2,{className:"w-3.5 h-3.5 text-primary"})]},G.id)}),S.length===0&&!O&&N("div",{className:"px-2.5 py-2 text-xs text-muted-foreground italic text-center",children:T.no_options_found()}),O!==""&&!R&&U("div",{onClick:C,className:"px-2.5 py-1.5 text-xs text-primary hover:bg-accent rounded cursor-pointer flex items-center gap-1.5 font-medium border-t border-border mt-1 pt-1.5",children:[N(G0,{className:"w-3.5 h-3.5 shrink-0"}),N("span",{className:"truncate",children:T.add_option_with_name({name:O})})]})]})]})]})})},i1=t4;var Q0=c(d(),1);var e4=({value:$,onSave:J,readOnly:Z})=>{let[X,Y]=Q0.useState(!1),[H,Q]=Q0.useState($||""),K=Q0.useRef(null);Q0.useEffect(()=>{Q($||"")},[$]),Q0.useEffect(()=>{if(X&&K.current)K.current.focus()},[X]);let z=()=>{if(!Z)Y(!0)},W=()=>{Y(!1),J(H)},w=(F)=>{if(F.key==="Enter")K.current?.blur()};if(X)return N("input",{ref:K,type:"text",value:H,onChange:(F)=>Q(F.target.value),onBlur:W,onKeyDown:w,className:"w-full px-2 py-1 border border-ring rounded bg-background text-sm outline-none shadow-sm"});return N("div",{onClick:z,className:`w-full min-h-[28px] px-2 py-1 text-sm text-foreground rounded truncate border border-transparent transition-colors ${!Z?"cursor-pointer hover:bg-accent hover:border-border":""}`,children:$||N("span",{className:"text-muted-foreground italic",children:"Empty"})})},p1=e4;var $$=({value:$,onSave:J,readOnly:Z})=>{return N("div",{className:"flex items-center h-[28px] w-full",onClick:(Y)=>Y.stopPropagation(),children:N(w2,{checked:$,onCheckedChange:(Y)=>{if(!Z)J(Y)},disabled:Z,className:"cursor-pointer"})})},n1=$$;var V2=c(d(),1);var J$=({value:$,onSave:J,readOnly:Z})=>{let X=F2(),{members:Y,fetchMembers:H}=J2(),[Q,K]=V2.useState(!1);V2.useEffect(()=>{if(X)H(X)},[X,H]);let z=Y.find((q)=>q.id===$),W=()=>{if(!Z)K(!0)},w=(q)=>{J(q),K(!1)},F=(q)=>{if(Z)return;K(q)},M=(q)=>{return q.split(" ").map((O)=>O[0]).slice(0,2).join("").toUpperCase()};return N("div",{className:"relative w-full",onClick:(q)=>q.stopPropagation(),children:U(r,{open:!Z&&Q,onOpenChange:F,children:[N(s,{asChild:!0,children:U("div",{onClick:W,className:`flex items-center justify-between w-full h-[28px] px-2 rounded border border-transparent transition-colors ${!Z?"cursor-pointer hover:bg-accent hover:border-border group":""}`,children:[((q)=>{if(!q)return N("span",{className:"text-muted-foreground italic text-sm",children:"Select user"});return U("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium bg-muted text-foreground border h-[22px]",children:[U(T0,{className:"w-4 h-4",children:[N(E0,{src:q.image,alt:q.name,className:"object-cover"}),N(S0,{className:"text-[8px] bg-rose-400 text-black font-semibold",children:M(q.name)})]}),N("span",{className:"truncate max-w-[120px]",children:q.name})]})})(z),!Z&&N(R0,{className:"w-4 h-4 text-muted-foreground opacity-0 group-hover:opacity-100"})]})}),U(a,{className:"p-1 w-[--radix-popover-trigger-width] min-w-[200px] max-h-60 overflow-auto bg-popover border border-border rounded-lg shadow-lg",align:"start",children:[U("div",{onClick:()=>w(""),className:"px-3 py-2 text-sm text-muted-foreground hover:bg-accent cursor-pointer flex items-center gap-2 rounded-sm",children:[N(C0,{className:"w-3 h-3"})," Clear"]}),Y.map((q)=>U("div",{onClick:()=>w(q.id),className:"px-3 py-2 hover:bg-accent cursor-pointer flex items-center gap-2 rounded-sm",children:[U(T0,{className:"w-5 h-5",children:[N(E0,{src:q.image,alt:q.name,className:"object-cover"}),N(S0,{className:"text-[10px] bg-rose-400 text-black font-semibold",children:M(q.name)})]}),N("span",{className:"text-sm font-medium text-foreground",children:q.name})]},q.id))]})]})})},o1=J$;var e=c(d(),1);var Z$=({value:$=[],onSave:J,readOnly:Z})=>{let X=F2(),{members:Y,fetchMembers:H}=J2(),Q=e.useRef(null),[K,z]=e.useState(!1),[W,w]=e.useState($.length);e.useEffect(()=>{if(X)H(X)},[X,H]);let F=Y.filter((L)=>($||[]).includes(L.id)),M=(L)=>{return L.split(" ").map((C)=>C[0]).slice(0,2).join("").toUpperCase()};e.useLayoutEffect(()=>{if(K){w(F.length);return}if(Q.current){let L=Q.current.clientWidth-8,B=document.createElement("canvas").getContext("2d");if(B&&L>0){B.font="500 12px ui-sans-serif, system-ui, sans-serif";let A=4,V=F.map((v)=>{return Math.min(100,Math.ceil(B.measureText(v.name).width))+40});if(V.reduce((v,P)=>v+P,0)+Math.max(0,V.length-1)*A<=L){w(F.length);return}let D=L-32-A,y=0,I=0;for(let v=0;v<V.length;v++){let P=I>0?y+A+V[v]:V[v];if(P>D)break;y=P,I++}w(I)}}},[F,K,$]);let k=(L)=>{let C=$||[],B;if(C.includes(L))B=C.filter((A)=>A!==L);else B=[...C,L];J(B)},q=(L)=>{if(L.stopPropagation(),!Z)z(!0)},O=F.length-W,S=(L)=>{if(Z)return;z(L)},R=(L)=>{return U("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium bg-muted text-foreground border whitespace-nowrap h-[22px]",children:[U(T0,{className:"w-4 h-4",children:[N(E0,{src:L.image,alt:L.name,className:"object-cover"}),N(S0,{className:"text-[8px] bg-rose-400 text-black font-semibold",children:M(L.name)})]}),N("span",{className:"truncate max-w-[100px]",children:L.name})]},L.id)};return N("div",{className:"relative w-full",onClick:(L)=>L.stopPropagation(),children:U(r,{open:!Z&&K,onOpenChange:S,children:[N(s,{asChild:!0,children:U("div",{ref:Q,onClick:q,className:`w-full px-1 py-1 flex flex-wrap gap-1 rounded border border-transparent transition-all box-border h-[32px] overflow-hidden ${!Z||O>0?"cursor-pointer hover:bg-accent hover:border-border":""}`,children:[F.length===0&&N("span",{className:"text-muted-foreground text-sm italic px-1 pt-0.5",children:"Empty"}),F.slice(0,W).map(R),O>0&&U("span",{className:"inline-flex items-center px-1.5 py-0.5 rounded-full text-xs font-medium bg-muted text-muted-foreground h-[22px]",children:["+",O]})]})}),N(a,{className:"p-1 w-[--radix-popover-trigger-width] min-w-[200px] max-h-60 overflow-auto bg-popover border border-border rounded-lg shadow-lg",align:"start",children:Y.map((L)=>{let C=($||[]).includes(L.id);return U("div",{onClick:()=>k(L.id),className:"px-3 py-2 hover:bg-accent cursor-pointer flex items-center justify-between rounded-sm",children:[U("div",{className:"flex items-center gap-2",children:[U(T0,{className:"w-5 h-5",children:[N(E0,{src:L.image,alt:L.name,className:"object-cover"}),N(S0,{className:"text-[10px] bg-rose-400 text-black font-semibold",children:M(L.name)})]}),N("span",{className:"text-sm font-medium text-foreground",children:L.name})]}),C&&N(U2,{className:"w-4 h-4 text-primary"})]},L.id)})})]})})},r1=Z$;var X$=($)=>{if(!$.config)return N("div",{children:"Unknown Field Type"});switch($.config.type){case"text":return N(p1,{...$,value:$.value,onSave:$.onSave});case"longText":return N(O5,{...$,value:$.value,onSave:$.onSave});case"select":return N(l1,{...$,value:$.value,onSave:$.onSave});case"selectMulti":return N(i1,{...$,value:$.value,onSave:$.onSave});case"rating":return N(E5,{...$,value:$.value,onSave:$.onSave});case"number":return N(P5,{...$,value:$.value,onSave:$.onSave});case"toggle":return N(n1,{...$,value:$.value,onSave:$.onSave});case"date":return N(C5,{...$,value:$.value,onSave:$.onSave});case"user":return N(o1,{...$,value:$.value,onSave:$.onSave});case"userMulti":return N(r1,{...$,value:$.value,onSave:$.onSave});default:return N("div",{children:"Unknown Field Type"})}},t6=X$;var J7=({progress:$,className:J})=>{let X=2*Math.PI*20,Y=X-Math.min(100,Math.max(0,$))/100*X;return U("svg",{viewBox:"0 0 50 50",className:I0("w-12 h-12",J),children:[N("circle",{cx:"25",cy:"25",r:20,className:"stroke-muted",strokeWidth:"4",fill:"transparent"}),N("circle",{cx:"25",cy:"25",r:20,className:"stroke-primary transition-all duration-300 ease-out",strokeWidth:"4",fill:"transparent",strokeDasharray:X,strokeDashoffset:Y,transform:"rotate(-90 25 25)"}),N("text",{x:"50%",y:"50%",textAnchor:"middle",dy:".3em",className:"fill-foreground text-[10px] font-bold",children:`${Math.round($)}%`})]})};var Y$=($)=>{if(isNaN($))return"00:00";let J=new Date($*1000),Z=J.getUTCHours(),X=J.getUTCMinutes().toString().padStart(2,"0"),Y=J.getUTCSeconds().toString().padStart(2,"0");if(Z)return`${Z}:${X}:${Y}`;return`${X}:${Y}`},Y7=($,J,Z,X)=>{if(Z==="frames")return`${$} fr`;if(Z==="standard")return Y$($/J);let Y=Math.round(J),H=J!==Y,Q=!1;if(H&&(Y===30||Y===60))Q=!0;let K=0;if(X){let q=X.match(/^([012]\d):(\d\d):(\d\d)(:|;|\.)(\d+)$/);if(q){let O=parseInt(q[1],10),S=parseInt(q[2],10),R=parseInt(q[3],10),L=parseInt(q[5],10);if(Q=q[4]!==":",K=(O*3600+S*60+R)*Y+L,Q){let C=O*60+S,B=J<30?2:4;K-=B*(C-Math.floor(C/10))}}}let z=$+K;if(Q){let q=J<30?2:4,O=Math.floor(z/(17982*q/2)),S=z%(17982*q/2);if(S<q)S=S+q;z+=9*q*O+q*Math.floor((S-q)/(1798*q/2))}let W=z%Y,w=Math.floor(z/Y)%60,F=Math.floor(z/(Y*60))%60,M=Math.floor(z/(Y*3600))%24,k=Q?";":":";return`${M.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}:${w.toString().padStart(2,"0")}${k}${W.toString().padStart(2,"0")}`};var N7=($,J)=>{if(!J)return 0;let Z=1/J;return $*Z+Z/2},N$=($)=>Math.max(100,3000/($||30)),Q7=({dbTotalFrames:$,containerDuration:J,frameRate:Z})=>{let X=Z||30,Y=Math.round(J*X);if($<=0)return Y;let H=$/X,Q=J-H,K=N$(X)/1000;return Q>K?Y:$};var s1=c(d(),1);function B7({className:$,defaultValue:J,value:Z,min:X=0,max:Y=100,...H}){let Q=s1.useMemo(()=>Array.isArray(Z)?Z:Array.isArray(J)?J:[X,Y],[Z,J,X,Y]);return U(p0.Root,{"data-slot":"slider",defaultValue:J,value:Z,min:X,max:Y,className:I0("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",$),...H,children:[N(p0.Track,{"data-slot":"slider-track",className:I0("relative grow overflow-hidden rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:N(p0.Range,{"data-slot":"slider-range",className:I0("absolute bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:Q.length},(K,z)=>N(p0.Thumb,{"data-slot":"slider-thumb",className:"block size-4 shrink-0 rounded-full border border-primary bg-white shadow-sm ring-ring/50 transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},z))]})}
|
|
2
|
-
export{I2 as v,w5 as w,F5 as x,y2 as y,x2 as z,G1 as A,C8 as B,$0 as C,S5 as D,J7 as E,Q$ as F,E5 as G,n as H,z1 as I,k1 as J,M2 as K,t2 as L,O0 as M,i0 as N,r4 as O,s8 as P,J2 as Q,t6 as R,Y$ as S,Y7 as T,N7 as U,N$ as V,Q7 as W,B7 as X};
|
package/bin/chunk-yvxt48r4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as a}from"./chunk-t3tp9trj.js";import"./chunk-n76r6s9k.js";import"./chunk-x3ynjbt5.js";import"./chunk-dv1zpd2p.js";import"./chunk-mw8f8ngt.js";import"./chunk-y8aehqr8.js";import"./chunk-9nyhmtp9.js";import"./chunk-r5dv0rfv.js";import"./chunk-83k0wa5k.js";import"./chunk-8y1v9dm9.js";import"./chunk-tpp9qf5m.js";import"./chunk-4rbzswqs.js";import"./chunk-rfyaphas.js";import"./chunk-0yngn45x.js";import"./chunk-5gtew41y.js";import"./chunk-3kqdgddm.js";import"./chunk-karn564z.js";import"./chunk-h9emz0zb.js";import"./chunk-6v39c8eg.js";import"./chunk-qmpph1gt.js";import"./chunk-zjj9qj6y.js";import"./chunk-eetrc0j1.js";import"./chunk-9s02m95j.js";import"./chunk-87wqbn4g.js";import"./chunk-69tt1pvr.js";import"./chunk-f2j2cqd1.js";import"./chunk-2xmsrq7f.js";import"./chunk-af6wbhkv.js";import"./chunk-2mqqghrz.js";import"./chunk-n4gghgrj.js";import{Rh as t,zh as e}from"./chunk-m6a4rzdt.js";import"./chunk-dej1gq35.js";function n(){let{shareId:s}=o.useParams();return e(a,{shareId:s})}var o=t("/share/$shareId/")({component:n});export{o as Route};
|