quantum-component-library 1.4.48-dev.6 → 1.4.48-dev.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.
Files changed (52) hide show
  1. package/dist/components.cjs +1 -1
  2. package/dist/components.js +490 -491
  3. package/dist/{dnd-core-vendor-C8EkmZ-Q.js → dnd-core-vendor-CEbjUoFs.js} +2 -2
  4. package/dist/{dnd-core-vendor-CrbsA5lC.cjs → dnd-core-vendor-gqRN0Czq.cjs} +1 -1
  5. package/dist/generated/graphql.d.ts +1 -1
  6. package/dist/{graphql-vendor-BGoVZGn3.cjs → graphql-vendor-AFHxLsy8.cjs} +1 -1
  7. package/dist/{graphql-vendor-BsmTENtE.js → graphql-vendor-hJezYUeG.js} +1 -1
  8. package/dist/hooks.cjs +1 -1
  9. package/dist/hooks.js +13 -13
  10. package/dist/index.cjs +1 -1
  11. package/dist/index.js +130 -125
  12. package/dist/lib/utils/cn.d.ts +2 -0
  13. package/dist/lib/utils/index.d.ts +1 -2
  14. package/dist/{lodash-vendor-CR237hSU.cjs → lodash-vendor-CF0pV_0E.cjs} +1 -1
  15. package/dist/{lodash-vendor-D4ZPCr77.js → lodash-vendor-apNdTTav.js} +1 -1
  16. package/dist/other-D9ROT7p0.js +20 -0
  17. package/dist/other-DyoApG-9.cjs +1 -0
  18. package/dist/quantum-component-library.css +1 -1
  19. package/dist/{react-dnd-vendor-DQO87S4J.js → react-dnd-vendor-BCrg2QCX.js} +2 -2
  20. package/dist/{react-dnd-vendor-BuaDqq1-.cjs → react-dnd-vendor-PwwXhPmK.cjs} +1 -1
  21. package/dist/react-icons-vendor-BF_sZq07.cjs +1 -0
  22. package/dist/{react-icons-vendor-TETORdU9.js → react-icons-vendor-CMsTQrA0.js} +51 -43
  23. package/dist/{react-select-vendor-C09H7eSP.cjs → react-select-vendor-BeWvSe2q.cjs} +1 -1
  24. package/dist/{react-select-vendor-D8Fzpeg3.js → react-select-vendor-BxbsY5Z-.js} +1 -1
  25. package/dist/services-action-CfZFwhy-.js +40 -0
  26. package/dist/services-action-DBOzfgMl.cjs +1 -0
  27. package/dist/services-human-B98qxeuS.js +798 -0
  28. package/dist/services-human-CnvSTmoF.cjs +1 -0
  29. package/dist/services-rom-DmV5X8yu.cjs +1 -0
  30. package/dist/services-rom-omMeC-vQ.js +18 -0
  31. package/dist/services.cjs +1 -1
  32. package/dist/services.js +52 -844
  33. package/dist/types.cjs +1 -1
  34. package/dist/types.js +11 -11
  35. package/dist/utils-cn-CgdSr4hO.js +7 -0
  36. package/dist/utils-cn-FIKrq5Mb.cjs +1 -0
  37. package/dist/utils-conversion-CWypeWsT.cjs +1 -0
  38. package/dist/utils-conversion-ChFbq8I2.js +94 -0
  39. package/dist/utils-memo-BJJP2KfI.cjs +1 -0
  40. package/dist/utils-memo-DtXdOqCT.js +13 -0
  41. package/dist/utils-parameters-BBFuBK2B.js +21 -0
  42. package/dist/utils-parameters-dwKmz1VU.cjs +1 -0
  43. package/dist/utils-text-CN3zLiZ7.js +5 -0
  44. package/dist/utils-text-lORqO4uI.cjs +1 -0
  45. package/dist/utils.cjs +1 -1
  46. package/dist/utils.js +29 -126
  47. package/dist/{vendor-CRvKgRcl.js → vendor-BOD7IxCS.js} +1 -1
  48. package/dist/{vendor-BwXiOWc8.cjs → vendor-IPtJZCbx.cjs} +1 -1
  49. package/package.json +1 -1
  50. package/dist/other-C4VnLmM6.js +0 -15
  51. package/dist/other-Dp3RPYfF.cjs +0 -1
  52. package/dist/react-icons-vendor-D2s8zw9h.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { c as j } from "./vendor-CRvKgRcl.js";
2
- import { i as s, b as M } from "./react-dnd-vendor-DQO87S4J.js";
1
+ import { c as j } from "./vendor-BOD7IxCS.js";
2
+ import { i as s, b as M } from "./react-dnd-vendor-BCrg2QCX.js";
3
3
  function H(t, e, r) {
4
4
  return e.split(".").reduce(
5
5
  (n, i) => n && n[i] ? n[i] : r || null,
@@ -1 +1 @@
1
- "use strict";const M=require("./vendor-BwXiOWc8.cjs"),s=require("./react-dnd-vendor-BuaDqq1-.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
1
+ "use strict";const M=require("./vendor-IPtJZCbx.cjs"),s=require("./react-dnd-vendor-PwwXhPmK.cjs");function j(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function H(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function N(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function L(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function k(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,c=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,c,l);const f=X(r,c);if(f==null){t.dispatch(V);return}let D=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");B(a),D=a(f)}t.dispatch(_(o,D));const b=l.getSource(f).beginDrag(c,f);if(b==null)return;F(b),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:b,sourceId:f,clientOffset:o||null,sourceClientOffset:D||null,isSourcePublic:!!i}}}}function q(t,e,r){s.invariant(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s.invariant(r.getSource(n),"Expected sourceIds to be registered.")})}function B(t){s.invariant(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function F(t){s.invariant(U(t),"Item must be an object.")}function X(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function W(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function z(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){W(t,i,r[i])})}return t}function J(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Q(n),K(n).forEach((a,c)=>{const l=Y(a,c,i,n),f={type:y,payload:{dropResult:z({},r,l)}};t.dispatch(f)})}}function Q(t){s.invariant(t.isDragging(),"Cannot call drop while not dragging."),s.invariant(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Y(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return Z(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function Z(t){s.invariant(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function K(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function ee(t){return function(){const r=t.getMonitor(),n=t.getRegistry();te(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function te(t){s.invariant(t.isDragging(),"Cannot call endDrag while not dragging.")}function v(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function re(t){return function(r,{clientOffset:n}={}){ne(r);const i=r.slice(0),o=t.getMonitor(),a=t.getRegistry(),c=o.getItemType();return oe(i,a,c),ie(i,o,a),se(i,o,a),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ne(t){s.invariant(Array.isArray(t),"Expected targetIds to be an array.")}function ie(t,e,r){s.invariant(e.isDragging(),"Cannot call hover while not dragging."),s.invariant(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s.invariant(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s.invariant(o,"Expected targetIds to be registered.")}}function oe(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);v(o,r)||t.splice(n,1)}}function se(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ae(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ce(t){return{beginDrag:k(t),publishDragSource:ae(t),hover:re(t),drop:J(t),endDrag:ee(t)}}class ue{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const c=o.apply(e,a);typeof c<"u"&&r(c)}}const i=ce(this);return Object.keys(i).reduce((o,a)=>{const c=i[a];return o[a]=n(c),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function fe(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function le(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(fe(e,n),r)}function de(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],m=[];g.__IS_NONE__=!0;m.__IS_ALL__=!0;function ge(t,e){return t===g?!1:t===m||typeof e>"u"?!0:L(e,t).length>0}class pe{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s.invariant(typeof e=="function","listener must be a function."),s.invariant(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),c=a.stateId;try{c===i||c===i+1&&!ge(a.dirtyHandlerIds,n)||e()}finally{i=c}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s.invariant(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s.invariant(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s.invariant(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return v(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s.invariant(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!v(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const c=a.indexOf(e);return n?c===a.length-1:c>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return le(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return de(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const C="dnd-core/ADD_SOURCE",R="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function he(t){return{type:C,payload:{sourceId:t}}}function ye(t){return{type:R,payload:{targetId:t}}}function Se(t){return{type:x,payload:{sourceId:t}}}function Oe(t){return{type:O,payload:{targetId:t}}}function De(t){s.invariant(typeof t.canDrag=="function","Expected canDrag to be a function."),s.invariant(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s.invariant(typeof t.endDrag=="function","Expected endDrag to be a function.")}function be(t){s.invariant(typeof t.canDrop=="function","Expected canDrop to be a function."),s.invariant(typeof t.hover=="function","Expected hover to be a function."),s.invariant(typeof t.drop=="function","Expected beginDrag to be a function.")}function T(t,e){if(e&&Array.isArray(t)){t.forEach(r=>T(r,!1));return}s.invariant(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var u;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(u||(u={}));let ve=0;function Te(){return ve++}function Ee(t){const e=Te().toString();switch(t){case u.SOURCE:return`S${e}`;case u.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return u.SOURCE;case"T":return u.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ie{addSource(e,r){T(e),De(r);const n=this.addHandler(u.SOURCE,e,r);return this.store.dispatch(he(n)),n}addTarget(e,r){T(e,!0),be(r);const n=this.addHandler(u.TARGET,e,r);return this.store.dispatch(ye(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s.invariant(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s.invariant(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===u.SOURCE}isTargetId(e){return w(e)===u.TARGET}removeSource(e){s.invariant(this.getSource(e),"Expected an existing source."),this.store.dispatch(Se(e)),s.asap(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s.invariant(this.getTarget(e),"Expected an existing target."),this.store.dispatch(Oe(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s.invariant(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s.invariant(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ee(e);return this.types.set(i,r),e===u.SOURCE?this.dragSources.set(i,n):e===u.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const me=(t,e)=>t===e;function Ce(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function Re(t,e,r=me){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function xe(t=g,e){switch(e.type){case h:break;case C:case R:case O:case x:return g;case p:case I:case S:case y:default:return m}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=N(r,n);if(!(i.length>0||!Re(r,n)))return g;const a=n[n.length-1],c=r[r.length-1];return a!==c&&(a&&i.push(a),c&&i.push(c)),i}function _e(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function we(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){_e(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Pe(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return Ce(t.clientOffset,r.clientOffset)?t:we({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ae(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ae(t,i,r[i])})}return t}const Ue={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ge(t=Ue,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:H(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function $e(t=0,e){switch(e.type){case C:case R:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function je(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){je(t,i,r[i])})}return t}function Ne(t={},e){return{dirtyHandlerIds:xe(t.dirtyHandlerIds,{type:e.type,payload:He({},e.payload,{prevTargetIds:j(t,"dragOperation.targetIds",[])})}),dragOffset:Pe(t.dragOffset,e),refCount:$e(t.refCount,e),dragOperation:Ge(t.dragOperation,e),stateId:Me(t.stateId)}}function Le(t,e=void 0,r={},n=!1){const i=Ve(n),o=new pe(i,new Ie(i)),a=new ue(i,o),c=t(a,e,r);return a.receiveBackend(c),a}function Ve(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return M.createStore(Ne,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}exports.createDragDropManager=Le;
@@ -1,6 +1,6 @@
1
1
  import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
2
2
  export type Maybe<T> = T | null;
3
- export type InputMaybe<T> = Maybe<T>;
3
+ export type InputMaybe<T> = T | null | undefined;
4
4
  export type Exact<T extends {
5
5
  [key: string]: unknown;
6
6
  }> = {
@@ -1,4 +1,4 @@
1
- "use strict";const A=require("./vendor-BwXiOWc8.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
1
+ "use strict";const A=require("./vendor-IPtJZCbx.cjs");var Z={OPERATION_DEFINITION:"OperationDefinition"};class J extends Error{constructor(t,n,a,c,l,s,f){super(t),this.name="GraphQLError",this.message=t,l&&(this.path=l),n&&(this.nodes=Array.isArray(n)?n:[n]),a&&(this.source=a),c&&(this.positions=c),s&&(this.originalError=s);var p=f;if(!p&&s){var v=s.extensions;v&&typeof v=="object"&&(p=v)}this.extensions=p||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}var i,r;function m(e){return new J(`Syntax Error: Unexpected token at ${r} in ${e}`)}function R(e){if(e.lastIndex=r,e.test(i))return i.slice(r,r=e.lastIndex)}var _=/ +(?=[^\s])/y;function ee(e){for(var t=e.split(`
2
2
  `),n="",a=0,c=0,l=t.length-1,s=0;s<t.length;s++)_.lastIndex=0,_.test(t[s])&&(s&&(!a||_.lastIndex<a)&&(a=_.lastIndex),c=c||s,l=s);for(var f=c;f<=l;f++)f!==c&&(n+=`
3
3
  `),n+=t[f].slice(a).replace(/\\"""/g,'"""');return n}function u(){for(var e=0|i.charCodeAt(r++);e===9||e===10||e===13||e===32||e===35||e===44||e===65279;e=0|i.charCodeAt(r++))if(e===35)for(;(e=0|i.charCodeAt(r++))&&e!==10&&e!==13;);r--}function M(){for(var e=r,t=0|i.charCodeAt(r++);t>=48&&t<=57||t>=65&&t<=90||t===95||t>=97&&t<=122;t=0|i.charCodeAt(r++));if(e===r-1)throw m("Name");var n=i.slice(e,--r);return u(),n}function k(){return{kind:"Name",value:M()}}var te=/(?:"""|(?:[\s\S]*?[^\\])""")/y,re=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function x(e){var t;switch(i.charCodeAt(r)){case 91:r++,u();for(var n=[];i.charCodeAt(r)!==93;)n.push(x(e));return r++,u(),{kind:"ListValue",values:n};case 123:r++,u();for(var a=[];i.charCodeAt(r)!==125;){var c=k();if(i.charCodeAt(r++)!==58)throw m("ObjectField");u(),a.push({kind:"ObjectField",name:c,value:x(e)})}return r++,u(),{kind:"ObjectValue",fields:a};case 36:if(e)throw m("Variable");return r++,{kind:"Variable",name:k()};case 34:if(i.charCodeAt(r+1)===34&&i.charCodeAt(r+2)===34){if(r+=3,(t=R(te))==null)throw m("StringValue");return u(),{kind:"StringValue",value:ee(t.slice(0,-3)),block:!0}}else{var l=r,s;r++;var f=!1;for(s=0|i.charCodeAt(r++);s===92&&(r++,f=!0)||s!==10&&s!==13&&s!==34&&s;s=0|i.charCodeAt(r++));if(s!==34)throw m("StringValue");return t=i.slice(l,r),u(),{kind:"StringValue",value:f?JSON.parse(t):t.slice(1,-1),block:!1}}case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var p=r++,v;(v=0|i.charCodeAt(r++))>=48&&v<=57;);var h=i.slice(p,--r);if((v=i.charCodeAt(r))===46||v===69||v===101){if((t=R(re))==null)throw m("FloatValue");return u(),{kind:"FloatValue",value:h+t}}else return u(),{kind:"IntValue",value:h};case 110:if(i.charCodeAt(r+1)===117&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===108)return r+=4,u(),{kind:"NullValue"};break;case 116:if(i.charCodeAt(r+1)===114&&i.charCodeAt(r+2)===117&&i.charCodeAt(r+3)===101)return r+=4,u(),{kind:"BooleanValue",value:!0};break;case 102:if(i.charCodeAt(r+1)===97&&i.charCodeAt(r+2)===108&&i.charCodeAt(r+3)===115&&i.charCodeAt(r+4)===101)return r+=5,u(),{kind:"BooleanValue",value:!1};break}return{kind:"EnumValue",value:M()}}function W(e){if(i.charCodeAt(r)===40){var t=[];r++,u();do{var n=k();if(i.charCodeAt(r++)!==58)throw m("Argument");u(),t.push({kind:"Argument",name:n,value:x(e)})}while(i.charCodeAt(r)!==41);return r++,u(),t}}function b(e){if(i.charCodeAt(r)===64){var t=[];do r++,t.push({kind:"Directive",name:k(),arguments:W(e)});while(i.charCodeAt(r)===64);return t}}function ne(){for(var e=0;i.charCodeAt(r)===91;)e++,r++,u();var t={kind:"NamedType",name:k()};do if(i.charCodeAt(r)===33&&(r++,u(),t={kind:"NonNullType",type:t}),e){if(i.charCodeAt(r++)!==93)throw m("NamedType");u(),t={kind:"ListType",type:t}}while(e--);return t}function j(){if(i.charCodeAt(r++)!==123)throw m("SelectionSet");return u(),L()}function L(){var e=[];do if(i.charCodeAt(r)===46){if(i.charCodeAt(++r)!==46||i.charCodeAt(++r)!==46)throw m("SelectionSet");switch(r++,u(),i.charCodeAt(r)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:b(!1),selectionSet:j()});break;case 111:i.charCodeAt(r+1)===110?(r+=2,u(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()})):e.push({kind:"FragmentSpread",name:k(),directives:b(!1)});break;case 123:r++,u(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:L()});break;default:e.push({kind:"FragmentSpread",name:k(),directives:b(!1)})}}else{var t=k(),n=void 0;i.charCodeAt(r)===58&&(r++,u(),n=t,t=k());var a=W(!1),c=b(!1),l=void 0;i.charCodeAt(r)===123&&(r++,u(),l=L()),e.push({kind:"Field",alias:n,name:t,arguments:a,directives:c,selectionSet:l})}while(i.charCodeAt(r)!==125);return r++,u(),{kind:"SelectionSet",selections:e}}function ie(){if(u(),i.charCodeAt(r)===40){var e=[];r++,u();do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r++)!==36)throw m("Variable");var n=k();if(i.charCodeAt(r++)!==58)throw m("VariableDefinition");u();var a=ne(),c=void 0;i.charCodeAt(r)===61&&(r++,u(),c=x(!0)),u();var l={kind:"VariableDefinition",variable:{kind:"Variable",name:n},type:a,defaultValue:c,directives:b(!0)};t&&(l.description=t),e.push(l)}while(i.charCodeAt(r)!==41);return r++,u(),e}}function ae(e){var t=k();if(i.charCodeAt(r++)!==111||i.charCodeAt(r++)!==110)throw m("FragmentDefinition");u();var n={kind:"FragmentDefinition",name:t,typeCondition:{kind:"NamedType",name:k()},directives:b(!1),selectionSet:j()};return e&&(n.description=e),n}function B(){var e=[];do{var t=void 0;if(i.charCodeAt(r)===34&&(t=x(!0)),i.charCodeAt(r)===123){if(t)throw m("Document");r++,u(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:L()})}else{var n=M();switch(n){case"fragment":e.push(ae(t));break;case"query":case"mutation":case"subscription":var a,c=void 0;(a=i.charCodeAt(r))!==40&&a!==64&&a!==123&&(c=k());var l={kind:"OperationDefinition",operation:n,name:c,variableDefinitions:ie(),directives:b(!1),selectionSet:j()};t&&(l.description=t),e.push(l);break;default:throw m("Document")}}}while(r<i.length);return e}function oe(e,t){return i=e.body?e.body:e,r=0,u(),t&&t.noLocation?{kind:"Document",definitions:B()}:{kind:"Document",definitions:B(),loc:{start:0,end:i.length,startToken:void 0,endToken:void 0,source:{body:i,name:"graphql.web",locationOffset:{line:1,column:1}}}}}function g(e,t,n){for(var a="",c=0;c<e.length;c++)c&&(a+=t),a+=n(e[c]);return a}function se(e){return JSON.stringify(e)}function ce(e){return`"""
4
4
  `+e.replace(/"""/g,'\\"""')+`
@@ -1,4 +1,4 @@
1
- import { f as q, m as R, t as te, a as re, b as B, d as ne, o as ie } from "./vendor-CRvKgRcl.js";
1
+ import { f as q, m as R, t as te, a as re, b as B, d as ne, o as ie } from "./vendor-BOD7IxCS.js";
2
2
  var ae = {
3
3
  OPERATION_DEFINITION: "OperationDefinition"
4
4
  };
package/dist/hooks.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./graphql-vendor-BGoVZGn3.cjs"),a=require("react"),l=require("urql"),i=require("./services.cjs"),u=require("./types.cjs"),h=require("./providers.cjs");require("./react-jsx-runtime-vendor-Dszzpdy0.cjs");require("./graphql-Ce2MNCsk.cjs");const f=({url:e,getAuthToken:t})=>new l.Client({url:e,requestPolicy:"cache-and-network",exchanges:[g.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),q=({url:e,getAuthToken:t})=>a.useMemo(()=>f({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),b=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),p=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(L=>L.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},F=e=>{const t=d(e),r=m(e),n=b(r.map(o=>o.id),u.AngleDataSource.Sensor),s=p(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]},P=()=>{const e=a.useContext(h.UiLabelContext);if(e===void 0)throw new Error("useUiLabelContext must be used within a UiLabelProvider");return e};exports.useGraphqlClient=q;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=b;exports.usePartOptionsForLimbs=p;exports.usePartOptionsForSensorLocations=F;exports.useUiLabelContext=P;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./graphql-vendor-AFHxLsy8.cjs"),a=require("react"),l=require("urql"),i=require("./services-human-CnvSTmoF.cjs"),u=require("./types.cjs"),h=require("./providers.cjs");require("./react-jsx-runtime-vendor-Dszzpdy0.cjs");require("./graphql-Ce2MNCsk.cjs");const f=({url:e,getAuthToken:t})=>new l.Client({url:e,requestPolicy:"cache-and-network",exchanges:[g.authExchange(r=>{const n=t();return Promise.resolve({addAuthToOperation(s){return n?r.appendHeaders(s,{Authorization:`Bearer ${n}`}):s},didAuthError:s=>/unauthorized/gi.test(s?.message),refreshAuth:()=>Promise.resolve()})}),l.fetchExchange]}),q=({url:e,getAuthToken:t})=>a.useMemo(()=>f({url:e,getAuthToken:t}),[e,t]),c=e=>{const t=i.getAllAvailableJoints();return a.useMemo(()=>t.filter(r=>r.id==="NavalSpine"||r.id==="ChestSpine"?!1:i.limbsRequiredForJoints[r.id].every(s=>e.includes(s))),[e,t])},m=e=>{const t=a.useMemo(()=>e.map(u.sensorLocationToLimbId).filter(n=>!!n),[e]);return c(t)},d=e=>a.useMemo(()=>{const r=i.getAllAvailableLimbs(),n=e.map(u.sensorLocationToLimbId);return r.filter(s=>n.includes(s.id))},[e]),b=(e,t)=>a.useMemo(()=>e.flatMap(n=>i.getEnabledJointPlanes(n,t).map(s=>({id:{joint:n},plane:s,...i.getDefaultJointRange(n,s)}))),[e,t]),p=(e,t)=>{const r=a.useMemo(()=>{const s=i.getAllAvailableLimbs();return e.filter(o=>s.some(L=>L.id===o))},[e]);return a.useMemo(()=>r.flatMap(s=>i.getEnabledSegmentPlanes(s,t).map(o=>({id:{segment:s},plane:o,...i.getDefaultLimbRange(s,o)}))),[r,t])},F=e=>{const t=d(e),r=m(e),n=b(r.map(o=>o.id),u.AngleDataSource.Sensor),s=p(t.map(o=>o.id),u.AngleDataSource.Sensor);return[...n,...s]},P=()=>{const e=a.useContext(h.UiLabelContext);if(e===void 0)throw new Error("useUiLabelContext must be used within a UiLabelProvider");return e};exports.useGraphqlClient=q;exports.useJointsForLimbIds=c;exports.useJointsForSensorLocations=m;exports.useLimbsForSensorLocations=d;exports.usePartOptionsForJoints=b;exports.usePartOptionsForLimbs=p;exports.usePartOptionsForSensorLocations=F;exports.useUiLabelContext=P;
package/dist/hooks.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as c } from "./graphql-vendor-BsmTENtE.js";
1
+ import { a as c } from "./graphql-vendor-hJezYUeG.js";
2
2
  import { useMemo as i, useContext as d } from "react";
3
- import { Client as p, fetchExchange as b } from "urql";
4
- import { getAllAvailableJoints as f, limbsRequiredForJoints as g, getAllAvailableLimbs as m, getEnabledJointPlanes as h, getDefaultJointRange as L, getEnabledSegmentPlanes as x, getDefaultLimbRange as P } from "./services.js";
3
+ import { Client as p, fetchExchange as f } from "urql";
4
+ import { e as b, l as h, f as m, h as g, i as L, j as x, k as P } from "./services-human-B98qxeuS.js";
5
5
  import { sensorLocationToLimbId as u, AngleDataSource as a } from "./types.js";
6
6
  import { UiLabelContext as v } from "./providers.js";
7
7
  import "./react-jsx-runtime-vendor-OVHDjVDe.js";
@@ -25,17 +25,17 @@ const A = ({
25
25
  refreshAuth: () => Promise.resolve()
26
26
  });
27
27
  }),
28
- b
28
+ f
29
29
  ]
30
- }), y = ({
30
+ }), k = ({
31
31
  url: e,
32
32
  getAuthToken: r
33
33
  }) => i(
34
34
  () => A({ url: e, getAuthToken: r }),
35
35
  [e, r]
36
36
  ), C = (e) => {
37
- const r = f();
38
- return i(() => r.filter((s) => s.id === "NavalSpine" || s.id === "ChestSpine" ? !1 : g[s.id].every((t) => e.includes(t))), [e, r]);
37
+ const r = b();
38
+ return i(() => r.filter((s) => s.id === "NavalSpine" || s.id === "ChestSpine" ? !1 : h[s.id].every((t) => e.includes(t))), [e, r]);
39
39
  }, J = (e) => {
40
40
  const r = i(() => e.map(u).filter((n) => !!n), [e]);
41
41
  return C(r);
@@ -44,7 +44,7 @@ const A = ({
44
44
  return s.filter((t) => n.includes(t.id));
45
45
  }, [e]), S = (e, r) => i(
46
46
  () => e.flatMap(
47
- (n) => h(n, r).map((t) => ({
47
+ (n) => g(n, r).map((t) => ({
48
48
  id: { joint: n },
49
49
  plane: t,
50
50
  ...L(n, t)
@@ -66,7 +66,7 @@ const A = ({
66
66
  ),
67
67
  [s, r]
68
68
  );
69
- }, z = (e) => {
69
+ }, y = (e) => {
70
70
  const r = F(e), s = J(e), n = S(
71
71
  s.map((o) => o.id),
72
72
  a.Sensor
@@ -75,19 +75,19 @@ const A = ({
75
75
  a.Sensor
76
76
  );
77
77
  return [...n, ...t];
78
- }, k = () => {
78
+ }, z = () => {
79
79
  const e = d(v);
80
80
  if (e === void 0)
81
81
  throw new Error("useUiLabelContext must be used within a UiLabelProvider");
82
82
  return e;
83
83
  };
84
84
  export {
85
- y as useGraphqlClient,
85
+ k as useGraphqlClient,
86
86
  C as useJointsForLimbIds,
87
87
  J as useJointsForSensorLocations,
88
88
  F as useLimbsForSensorLocations,
89
89
  S as usePartOptionsForJoints,
90
90
  E as usePartOptionsForLimbs,
91
- z as usePartOptionsForSensorLocations,
92
- k as useUiLabelContext
91
+ y as usePartOptionsForSensorLocations,
92
+ z as useUiLabelContext
93
93
  };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-Dp3RPYfF.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),r=require("./providers.cjs"),e=require("./services.cjs"),t=require("./types.cjs"),i=require("./utils.cjs");exports.ActivityList=o.ActivityList;exports.CopyActivityForm=o.CopyActivityForm;exports.CopyModuleForm=o.CopyModuleForm;exports.ModuleForm=o.ModuleForm;exports.ParameterEditList=o.ParameterEditList;exports.ParameterEditSelect=o.ParameterEditSelect;exports.UpsertActivityForm=o.UpsertActivityForm;exports.UpsertModuleForm=o.UpsertModuleForm;exports.useGraphqlClient=a.useGraphqlClient;exports.useJointsForLimbIds=a.useJointsForLimbIds;exports.useJointsForSensorLocations=a.useJointsForSensorLocations;exports.useLimbsForSensorLocations=a.useLimbsForSensorLocations;exports.usePartOptionsForJoints=a.usePartOptionsForJoints;exports.usePartOptionsForLimbs=a.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=a.usePartOptionsForSensorLocations;exports.useUiLabelContext=a.useUiLabelContext;exports.QuantumLibraryProvider=r.QuantumLibraryProvider;exports.UiLabelContext=r.UiLabelContext;exports.UiLabelProvider=r.UiLabelProvider;exports.getActivityKindFromActivityType=e.getActivityKindFromActivityType;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mapActivityTypeEnumToLabel=e.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=e.mapSessionTypeEnumToLabel;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.capitalizeAll=i.capitalizeAll;exports.cn=i.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.memo=i.memo;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.parameterToThreshold=i.parameterToThreshold;exports.parametersToThresholds=i.parametersToThresholds;exports.pluralize=i.pluralize;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.thresholdToParameter=i.thresholdToParameter;exports.thresholdsToParameters=i.thresholdsToParameters;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./other-DyoApG-9.cjs");const o=require("./components.cjs"),a=require("./hooks.cjs"),n=require("./providers.cjs"),s=require("./services-action-DBOzfgMl.cjs"),e=require("./services-human-CnvSTmoF.cjs"),t=require("./types.cjs"),m=require("./utils-cn-FIKrq5Mb.cjs"),i=require("./utils-conversion-CWypeWsT.cjs"),g=require("./utils-memo-BJJP2KfI.cjs"),r=require("./utils-parameters-dwKmz1VU.cjs"),l=require("./utils-text-lORqO4uI.cjs");exports.ActivityList=o.ActivityList;exports.CopyActivityForm=o.CopyActivityForm;exports.CopyModuleForm=o.CopyModuleForm;exports.ModuleForm=o.ModuleForm;exports.ParameterEditList=o.ParameterEditList;exports.ParameterEditSelect=o.ParameterEditSelect;exports.UpsertActivityForm=o.UpsertActivityForm;exports.UpsertModuleForm=o.UpsertModuleForm;exports.useGraphqlClient=a.useGraphqlClient;exports.useJointsForLimbIds=a.useJointsForLimbIds;exports.useJointsForSensorLocations=a.useJointsForSensorLocations;exports.useLimbsForSensorLocations=a.useLimbsForSensorLocations;exports.usePartOptionsForJoints=a.usePartOptionsForJoints;exports.usePartOptionsForLimbs=a.usePartOptionsForLimbs;exports.usePartOptionsForSensorLocations=a.usePartOptionsForSensorLocations;exports.useUiLabelContext=a.useUiLabelContext;exports.QuantumLibraryProvider=n.QuantumLibraryProvider;exports.UiLabelContext=n.UiLabelContext;exports.UiLabelProvider=n.UiLabelProvider;exports.getActivityKindFromActivityType=s.getActivityKindFromActivityType;exports.mapActivityTypeEnumToLabel=s.mapActivityTypeEnumToLabel;exports.mapSessionTypeEnumToLabel=s.mapSessionTypeEnumToLabel;exports.getAllAvailableJoints=e.getAllAvailableJoints;exports.getAllAvailableLimbs=e.getAllAvailableLimbs;exports.getAllAvailablePoseJoints=e.getAllAvailablePoseJoints;exports.getAllAvailablePoseLimbs=e.getAllAvailablePoseLimbs;exports.getAllAvailableSensorJoints=e.getAllAvailableSensorJoints;exports.getAngleDirectionNames=e.getAngleDirectionNames;exports.getAvailableLimbsForLimbIds=e.getAvailableLimbsForLimbIds;exports.getAvailablePoseJointsForLimbIds=e.getAvailablePoseJointsForLimbIds;exports.getAvailableSensorJointsForLimbIds=e.getAvailableSensorJointsForLimbIds;exports.getAxis=e.getAxis;exports.getDefaultAngleSource=e.getDefaultAngleSource;exports.getDefaultJointRange=e.getDefaultJointRange;exports.getDefaultLimbRange=e.getDefaultLimbRange;exports.getEnabledJointPlanes=e.getEnabledJointPlanes;exports.getEnabledSegmentPlanes=e.getEnabledSegmentPlanes;exports.getHumanBodyAngle=e.getHumanBodyAngle;exports.getIsDefaultAngleAllowed=e.getIsDefaultAngleAllowed;exports.getJointAngleDirectionAbbr=e.getJointAngleDirectionAbbr;exports.getJointAngleDirectionName=e.getJointAngleDirectionName;exports.getJointNameWithPlane=e.getJointNameWithPlane;exports.getJointOrSegmentNameWithPlane=e.getJointOrSegmentNameWithPlane;exports.getJointPlaneName=e.getJointPlaneName;exports.getNormativeJointRange=e.getNormativeJointRange;exports.getParameterAngleDirectionName=e.getParameterAngleDirectionName;exports.getParameterDirectionNames=e.getParameterDirectionNames;exports.getPartName=e.getPartName;exports.getPartNameNoSide=e.getPartNameNoSide;exports.getPlane=e.getPlane;exports.getSegmentAngleDirectionAbbr=e.getSegmentAngleDirectionAbbr;exports.getSegmentAngleDirectionName=e.getSegmentAngleDirectionName;exports.getSegmentNameWithPlane=e.getSegmentNameWithPlane;exports.getSegmentXyzName=e.getSegmentXyzName;exports.getTypicalRom=e.getTypicalRom;exports.getTypicalRomSize=e.getTypicalRomSize;exports.isAxis=e.isAxis;exports.isJoint=e.isJoint;exports.isLimb=e.isLimb;exports.isPlane=e.isPlane;exports.jointNames=e.jointNames;exports.jointsUsedByLimbs=e.jointsUsedByLimbs;exports.limbNames=e.limbNames;exports.limbsRequiredForJoints=e.limbsRequiredForJoints;exports.mkAccelerationPart=e.mkAccelerationPart;exports.mkAngularVelocityPart=e.mkAngularVelocityPart;exports.mkHumanPart=e.mkHumanPart;exports.mkJointPart=e.mkJointPart;exports.mkLimbPart=e.mkLimbPart;exports.planeOrAxis=e.planeOrAxis;exports.AngleDataSource=t.AngleDataSource;exports.analysisStatBuilder=t.analysisStatBuilder;exports.areThresholdsEmpty=t.areThresholdsEmpty;exports.availablePlanes=t.availablePlanes;exports.axes=t.axes;exports.canBeVerticalForce=t.canBeVerticalForce;exports.dimensionName=t.dimensionName;exports.dimensionToLegacy=t.dimensionToLegacy;exports.getAnalysisName=t.getAnalysisName;exports.getAnalysisPartIdNoSide=t.getAnalysisPartIdNoSide;exports.getJointIdNoSide=t.getJointIdNoSide;exports.getJointIdWithSide=t.getJointIdWithSide;exports.getLimbIdNoSide=t.getLimbIdNoSide;exports.getLimbIdWithSide=t.getLimbIdWithSide;exports.getPointSide=t.getPointSide;exports.isDeviceEqual=t.isDeviceEqual;exports.isLimbTrackingFrame=t.isLimbTrackingFrame;exports.isSyncError=t.isSyncError;exports.jointAngle=t.jointAngle;exports.jointOrLimbHasThreshold=t.jointOrLimbHasThreshold;exports.jointOrLimbThresholdCount=t.jointOrLimbThresholdCount;exports.limbAngle=t.limbAngle;exports.mkUnit=t.mkUnit;exports.partAndPlaneHasThreshold=t.partAndPlaneHasThreshold;exports.partIdName=t.partIdName;exports.partIdToJointLimbId=t.partIdToJointLimbId;exports.partIdToString=t.partIdToString;exports.partKinds=t.partKinds;exports.planes=t.planes;exports.sensorLocationName=t.sensorLocationName;exports.sensorLocationToLimbId=t.sensorLocationToLimbId;exports.thresholdForPart=t.thresholdForPart;exports.thresholdFragmentsToThresholds=t.thresholdFragmentsToThresholds;exports.thresholdsToInput=t.thresholdsToInput;exports.tryMkUnit=t.tryMkUnit;exports.updateThreshold=t.updateThreshold;exports.cn=m.cn;exports.degToRad=i.degToRad;exports.getFormatterForParameter=i.getFormatterForParameter;exports.getUnitFormatted=i.getUnitFormatted;exports.getUnitValueFormatted=i.getUnitValueFormatted;exports.hourMinSecStrToMs=i.hourMinSecStrToMs;exports.inchesToMeters=i.inchesToMeters;exports.kgToPounds=i.kgToPounds;exports.metersToInches=i.metersToInches;exports.msToDurationStr=i.msToDurationStr;exports.msToHourMinSecStr=i.msToHourMinSecStr;exports.msToPrettyStr=i.msToPrettyStr;exports.msToTimestampStr=i.msToTimestampStr;exports.poundsToKg=i.poundsToKg;exports.radToDeg=i.radToDeg;exports.sToTimestampStr=i.sToTimestampStr;exports.safelyConvertEnum=i.safelyConvertEnum;exports.secondsToTimestampStr=i.secondsToTimestampStr;exports.memo=g.memo;exports.parameterToThreshold=r.parameterToThreshold;exports.parametersToThresholds=r.parametersToThresholds;exports.thresholdToParameter=r.thresholdToParameter;exports.thresholdsToParameters=r.thresholdsToParameters;exports.capitalizeAll=l.capitalizeAll;exports.pluralize=l.pluralize;
package/dist/index.js CHANGED
@@ -1,139 +1,144 @@
1
- import "./other-C4VnLmM6.js";
2
- import { ActivityList as i, CopyActivityForm as a, CopyModuleForm as r, ModuleForm as n, ParameterEditList as s, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
3
- import { useGraphqlClient as b, useJointsForLimbIds as A, useJointsForSensorLocations as T, useLimbsForSensorLocations as c, usePartOptionsForJoints as p, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P, useUiLabelContext as h } from "./hooks.js";
1
+ import "./other-D9ROT7p0.js";
2
+ import { ActivityList as s, CopyActivityForm as o, CopyModuleForm as i, ModuleForm as r, ParameterEditList as n, ParameterEditSelect as m, UpsertActivityForm as l, UpsertModuleForm as g } from "./components.js";
3
+ import { useGraphqlClient as p, useJointsForLimbIds as b, useJointsForSensorLocations as c, useLimbsForSensorLocations as A, usePartOptionsForJoints as T, usePartOptionsForLimbs as u, usePartOptionsForSensorLocations as P, useUiLabelContext as h } from "./hooks.js";
4
4
  import { QuantumLibraryProvider as L, UiLabelContext as y, UiLabelProvider as F } from "./providers.js";
5
- import { getActivityKindFromActivityType as J, getAllAvailableJoints as v, getAllAvailableLimbs as I, getAllAvailablePoseJoints as D, getAllAvailablePoseLimbs as x, getAllAvailableSensorJoints as f, getAngleDirectionNames as E, getAvailableLimbsForLimbIds as U, getAvailablePoseJointsForLimbIds as k, getAvailableSensorJointsForLimbIds as M, getAxis as C, getDefaultAngleSource as O, getDefaultJointRange as R, getDefaultLimbRange as j, getEnabledJointPlanes as H, getEnabledSegmentPlanes as W, getHumanBodyAngle as z, getIsDefaultAngleAllowed as B, getJointAngleDirectionAbbr as q, getJointAngleDirectionName as K, getJointNameWithPlane as V, getJointOrSegmentNameWithPlane as w, getJointPlaneName as G, getNormativeJointRange as Q, getParameterAngleDirectionName as X, getParameterDirectionNames as Y, getPartName as Z, getPartNameNoSide as _, getPlane as $, getSegmentAngleDirectionAbbr as ee, getSegmentAngleDirectionName as te, getSegmentNameWithPlane as oe, getSegmentXyzName as ie, getTypicalRom as ae, getTypicalRomSize as re, isAxis as ne, isJoint as se, isLimb as me, isPlane as le, jointNames as ge, jointsUsedByLimbs as de, limbNames as be, limbsRequiredForJoints as Ae, mapActivityTypeEnumToLabel as Te, mapSessionTypeEnumToLabel as ce, mkAccelerationPart as pe, mkAngularVelocityPart as ue, mkHumanPart as Pe, mkJointPart as he, mkLimbPart as Se, planeOrAxis as Le } from "./services.js";
6
- import { AngleDataSource as Fe, analysisStatBuilder as Ne, areThresholdsEmpty as Je, availablePlanes as ve, axes as Ie, canBeVerticalForce as De, dimensionName as xe, dimensionToLegacy as fe, getAnalysisName as Ee, getAnalysisPartIdNoSide as Ue, getJointIdNoSide as ke, getJointIdWithSide as Me, getLimbIdNoSide as Ce, getLimbIdWithSide as Oe, getPointSide as Re, isDeviceEqual as je, isLimbTrackingFrame as He, isSyncError as We, jointAngle as ze, jointOrLimbHasThreshold as Be, jointOrLimbThresholdCount as qe, limbAngle as Ke, mkUnit as Ve, partAndPlaneHasThreshold as we, partIdName as Ge, partIdToJointLimbId as Qe, partIdToString as Xe, partKinds as Ye, planes as Ze, sensorLocationName as _e, sensorLocationToLimbId as $e, thresholdForPart as et, thresholdFragmentsToThresholds as tt, thresholdsToInput as ot, tryMkUnit as it, updateThreshold as at } from "./types.js";
7
- import { capitalizeAll as nt, cn as st, degToRad as mt, getFormatterForParameter as lt, getUnitFormatted as gt, getUnitValueFormatted as dt, hourMinSecStrToMs as bt, inchesToMeters as At, kgToPounds as Tt, memo as ct, metersToInches as pt, msToDurationStr as ut, msToHourMinSecStr as Pt, msToPrettyStr as ht, msToTimestampStr as St, parameterToThreshold as Lt, parametersToThresholds as yt, pluralize as Ft, poundsToKg as Nt, radToDeg as Jt, sToTimestampStr as vt, safelyConvertEnum as It, secondsToTimestampStr as Dt, thresholdToParameter as xt, thresholdsToParameters as ft } from "./utils.js";
5
+ import { g as J, m as v, a as f } from "./services-action-CfZFwhy-.js";
6
+ import { e as I, f as D, r as k, s as E, q as U, T as M, p as C, u as O, t as R, H as j, N as H, i as z, k as B, h as W, j as q, P as K, O as V, v as w, b as G, a as Q, S as X, Q as Y, d as Z, V as _, U as $, J as ee, K as ae, I as te, w as se, c as oe, g as ie, R as re, L as ne, M as me, B as le, E as ge, D as de, C as pe, n as be, o as ce, m as Ae, l as Te, z as ue, A as Pe, F as he, x as Se, y as Le, G as ye } from "./services-human-B98qxeuS.js";
7
+ import { AngleDataSource as Ne, analysisStatBuilder as Je, areThresholdsEmpty as ve, availablePlanes as fe, axes as xe, canBeVerticalForce as Ie, dimensionName as De, dimensionToLegacy as ke, getAnalysisName as Ee, getAnalysisPartIdNoSide as Ue, getJointIdNoSide as Me, getJointIdWithSide as Ce, getLimbIdNoSide as Oe, getLimbIdWithSide as Re, getPointSide as je, isDeviceEqual as He, isLimbTrackingFrame as ze, isSyncError as Be, jointAngle as We, jointOrLimbHasThreshold as qe, jointOrLimbThresholdCount as Ke, limbAngle as Ve, mkUnit as we, partAndPlaneHasThreshold as Ge, partIdName as Qe, partIdToJointLimbId as Xe, partIdToString as Ye, partKinds as Ze, planes as _e, sensorLocationName as $e, sensorLocationToLimbId as ea, thresholdForPart as aa, thresholdFragmentsToThresholds as ta, thresholdsToInput as sa, tryMkUnit as oa, updateThreshold as ia } from "./types.js";
8
+ import { c as na } from "./utils-cn-CgdSr4hO.js";
9
+ import { d as la, n as ga, j as da, g as pa, h as ba, i as ca, k as Aa, m as Ta, a as ua, e as Pa, c as ha, b as Sa, p as La, r as ya, s as Fa, l as Na, f as Ja } from "./utils-conversion-ChFbq8I2.js";
10
+ import { m as fa } from "./utils-memo-DtXdOqCT.js";
11
+ import { a as Ia, p as Da, b as ka, t as Ea } from "./utils-parameters-BBFuBK2B.js";
12
+ import { c as Ma, p as Ca } from "./utils-text-CN3zLiZ7.js";
8
13
  export {
9
- i as ActivityList,
10
- Fe as AngleDataSource,
11
- a as CopyActivityForm,
12
- r as CopyModuleForm,
13
- n as ModuleForm,
14
- s as ParameterEditList,
14
+ s as ActivityList,
15
+ Ne as AngleDataSource,
16
+ o as CopyActivityForm,
17
+ i as CopyModuleForm,
18
+ r as ModuleForm,
19
+ n as ParameterEditList,
15
20
  m as ParameterEditSelect,
16
21
  L as QuantumLibraryProvider,
17
22
  y as UiLabelContext,
18
23
  F as UiLabelProvider,
19
24
  l as UpsertActivityForm,
20
25
  g as UpsertModuleForm,
21
- Ne as analysisStatBuilder,
22
- Je as areThresholdsEmpty,
23
- ve as availablePlanes,
24
- Ie as axes,
25
- De as canBeVerticalForce,
26
- nt as capitalizeAll,
27
- st as cn,
28
- mt as degToRad,
29
- xe as dimensionName,
30
- fe as dimensionToLegacy,
26
+ Je as analysisStatBuilder,
27
+ ve as areThresholdsEmpty,
28
+ fe as availablePlanes,
29
+ xe as axes,
30
+ Ie as canBeVerticalForce,
31
+ Ma as capitalizeAll,
32
+ na as cn,
33
+ la as degToRad,
34
+ De as dimensionName,
35
+ ke as dimensionToLegacy,
31
36
  J as getActivityKindFromActivityType,
32
- v as getAllAvailableJoints,
33
- I as getAllAvailableLimbs,
34
- D as getAllAvailablePoseJoints,
35
- x as getAllAvailablePoseLimbs,
36
- f as getAllAvailableSensorJoints,
37
+ I as getAllAvailableJoints,
38
+ D as getAllAvailableLimbs,
39
+ k as getAllAvailablePoseJoints,
40
+ E as getAllAvailablePoseLimbs,
41
+ U as getAllAvailableSensorJoints,
37
42
  Ee as getAnalysisName,
38
43
  Ue as getAnalysisPartIdNoSide,
39
- E as getAngleDirectionNames,
40
- U as getAvailableLimbsForLimbIds,
41
- k as getAvailablePoseJointsForLimbIds,
42
- M as getAvailableSensorJointsForLimbIds,
43
- C as getAxis,
44
- O as getDefaultAngleSource,
45
- R as getDefaultJointRange,
46
- j as getDefaultLimbRange,
47
- H as getEnabledJointPlanes,
48
- W as getEnabledSegmentPlanes,
49
- lt as getFormatterForParameter,
50
- z as getHumanBodyAngle,
51
- B as getIsDefaultAngleAllowed,
52
- q as getJointAngleDirectionAbbr,
53
- K as getJointAngleDirectionName,
54
- ke as getJointIdNoSide,
55
- Me as getJointIdWithSide,
56
- V as getJointNameWithPlane,
57
- w as getJointOrSegmentNameWithPlane,
58
- G as getJointPlaneName,
59
- Ce as getLimbIdNoSide,
60
- Oe as getLimbIdWithSide,
61
- Q as getNormativeJointRange,
62
- X as getParameterAngleDirectionName,
63
- Y as getParameterDirectionNames,
64
- Z as getPartName,
65
- _ as getPartNameNoSide,
66
- $ as getPlane,
67
- Re as getPointSide,
68
- ee as getSegmentAngleDirectionAbbr,
69
- te as getSegmentAngleDirectionName,
70
- oe as getSegmentNameWithPlane,
71
- ie as getSegmentXyzName,
72
- ae as getTypicalRom,
73
- re as getTypicalRomSize,
74
- gt as getUnitFormatted,
75
- dt as getUnitValueFormatted,
76
- bt as hourMinSecStrToMs,
77
- At as inchesToMeters,
78
- ne as isAxis,
79
- je as isDeviceEqual,
80
- se as isJoint,
81
- me as isLimb,
82
- He as isLimbTrackingFrame,
83
- le as isPlane,
84
- We as isSyncError,
85
- ze as jointAngle,
86
- ge as jointNames,
87
- Be as jointOrLimbHasThreshold,
88
- qe as jointOrLimbThresholdCount,
89
- de as jointsUsedByLimbs,
90
- Tt as kgToPounds,
91
- Ke as limbAngle,
92
- be as limbNames,
93
- Ae as limbsRequiredForJoints,
94
- Te as mapActivityTypeEnumToLabel,
95
- ce as mapSessionTypeEnumToLabel,
96
- ct as memo,
97
- pt as metersToInches,
98
- pe as mkAccelerationPart,
99
- ue as mkAngularVelocityPart,
100
- Pe as mkHumanPart,
101
- he as mkJointPart,
102
- Se as mkLimbPart,
103
- Ve as mkUnit,
104
- ut as msToDurationStr,
105
- Pt as msToHourMinSecStr,
106
- ht as msToPrettyStr,
107
- St as msToTimestampStr,
108
- Lt as parameterToThreshold,
109
- yt as parametersToThresholds,
110
- we as partAndPlaneHasThreshold,
111
- Ge as partIdName,
112
- Qe as partIdToJointLimbId,
113
- Xe as partIdToString,
114
- Ye as partKinds,
115
- Le as planeOrAxis,
116
- Ze as planes,
117
- Ft as pluralize,
118
- Nt as poundsToKg,
119
- Jt as radToDeg,
120
- vt as sToTimestampStr,
121
- It as safelyConvertEnum,
122
- Dt as secondsToTimestampStr,
123
- _e as sensorLocationName,
124
- $e as sensorLocationToLimbId,
125
- et as thresholdForPart,
126
- tt as thresholdFragmentsToThresholds,
127
- xt as thresholdToParameter,
128
- ot as thresholdsToInput,
129
- ft as thresholdsToParameters,
130
- it as tryMkUnit,
131
- at as updateThreshold,
132
- b as useGraphqlClient,
133
- A as useJointsForLimbIds,
134
- T as useJointsForSensorLocations,
135
- c as useLimbsForSensorLocations,
136
- p as usePartOptionsForJoints,
44
+ M as getAngleDirectionNames,
45
+ C as getAvailableLimbsForLimbIds,
46
+ O as getAvailablePoseJointsForLimbIds,
47
+ R as getAvailableSensorJointsForLimbIds,
48
+ j as getAxis,
49
+ H as getDefaultAngleSource,
50
+ z as getDefaultJointRange,
51
+ B as getDefaultLimbRange,
52
+ W as getEnabledJointPlanes,
53
+ q as getEnabledSegmentPlanes,
54
+ ga as getFormatterForParameter,
55
+ K as getHumanBodyAngle,
56
+ V as getIsDefaultAngleAllowed,
57
+ w as getJointAngleDirectionAbbr,
58
+ G as getJointAngleDirectionName,
59
+ Me as getJointIdNoSide,
60
+ Ce as getJointIdWithSide,
61
+ Q as getJointNameWithPlane,
62
+ X as getJointOrSegmentNameWithPlane,
63
+ Y as getJointPlaneName,
64
+ Oe as getLimbIdNoSide,
65
+ Re as getLimbIdWithSide,
66
+ Z as getNormativeJointRange,
67
+ _ as getParameterAngleDirectionName,
68
+ $ as getParameterDirectionNames,
69
+ ee as getPartName,
70
+ ae as getPartNameNoSide,
71
+ te as getPlane,
72
+ je as getPointSide,
73
+ se as getSegmentAngleDirectionAbbr,
74
+ oe as getSegmentAngleDirectionName,
75
+ ie as getSegmentNameWithPlane,
76
+ re as getSegmentXyzName,
77
+ ne as getTypicalRom,
78
+ me as getTypicalRomSize,
79
+ da as getUnitFormatted,
80
+ pa as getUnitValueFormatted,
81
+ ba as hourMinSecStrToMs,
82
+ ca as inchesToMeters,
83
+ le as isAxis,
84
+ He as isDeviceEqual,
85
+ ge as isJoint,
86
+ de as isLimb,
87
+ ze as isLimbTrackingFrame,
88
+ pe as isPlane,
89
+ Be as isSyncError,
90
+ We as jointAngle,
91
+ be as jointNames,
92
+ qe as jointOrLimbHasThreshold,
93
+ Ke as jointOrLimbThresholdCount,
94
+ ce as jointsUsedByLimbs,
95
+ Aa as kgToPounds,
96
+ Ve as limbAngle,
97
+ Ae as limbNames,
98
+ Te as limbsRequiredForJoints,
99
+ v as mapActivityTypeEnumToLabel,
100
+ f as mapSessionTypeEnumToLabel,
101
+ fa as memo,
102
+ Ta as metersToInches,
103
+ ue as mkAccelerationPart,
104
+ Pe as mkAngularVelocityPart,
105
+ he as mkHumanPart,
106
+ Se as mkJointPart,
107
+ Le as mkLimbPart,
108
+ we as mkUnit,
109
+ ua as msToDurationStr,
110
+ Pa as msToHourMinSecStr,
111
+ ha as msToPrettyStr,
112
+ Sa as msToTimestampStr,
113
+ Ia as parameterToThreshold,
114
+ Da as parametersToThresholds,
115
+ Ge as partAndPlaneHasThreshold,
116
+ Qe as partIdName,
117
+ Xe as partIdToJointLimbId,
118
+ Ye as partIdToString,
119
+ Ze as partKinds,
120
+ ye as planeOrAxis,
121
+ _e as planes,
122
+ Ca as pluralize,
123
+ La as poundsToKg,
124
+ ya as radToDeg,
125
+ Fa as sToTimestampStr,
126
+ Na as safelyConvertEnum,
127
+ Ja as secondsToTimestampStr,
128
+ $e as sensorLocationName,
129
+ ea as sensorLocationToLimbId,
130
+ aa as thresholdForPart,
131
+ ta as thresholdFragmentsToThresholds,
132
+ ka as thresholdToParameter,
133
+ sa as thresholdsToInput,
134
+ Ea as thresholdsToParameters,
135
+ oa as tryMkUnit,
136
+ ia as updateThreshold,
137
+ p as useGraphqlClient,
138
+ b as useJointsForLimbIds,
139
+ c as useJointsForSensorLocations,
140
+ A as useLimbsForSensorLocations,
141
+ T as usePartOptionsForJoints,
137
142
  u as usePartOptionsForLimbs,
138
143
  P as usePartOptionsForSensorLocations,
139
144
  h as useUiLabelContext
@@ -0,0 +1,2 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -1,5 +1,4 @@
1
- import { ClassValue } from 'clsx';
2
- export declare function cn(...inputs: ClassValue[]): string;
1
+ export * from './cn';
3
2
  export * from './conversion';
4
3
  export * from './memo';
5
4
  export * from './parameters';