@lateralus-ai/shipping-ui 1.1.1 → 1.1.2

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.
@@ -2,7 +2,7 @@ interface ImageViewerProps {
2
2
  onClose: () => void;
3
3
  totalPages: number;
4
4
  getImageSrc: (page: number) => string;
5
- title: string;
5
+ title?: string;
6
6
  }
7
7
  export declare const ImageViewer: ({ onClose, totalPages, getImageSrc, title, }: ImageViewerProps) => import("react/jsx-runtime").JSX.Element;
8
8
  export {};
@@ -1,7 +1,7 @@
1
1
  interface PdfViewerProps {
2
2
  onClose: () => void;
3
3
  src: string;
4
- title: string;
4
+ title?: string;
5
5
  }
6
- export declare const PdfViewer: ({ onClose, src, title, }: PdfViewerProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const PdfViewer: ({ onClose, src, title, className, }: PdfViewerProps) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
package/dist/index.cjs CHANGED
@@ -14,17 +14,17 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Xe;function Br(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var r=_,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),P=Symbol.iterator,N="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var a=P&&e[P]||e[N];return typeof a=="function"?a:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,c=new Array(a>1?a-1:0),p=1;p<a;p++)c[p-1]=arguments[p];te("error",e,c)}}function te(e,a,c){{var p=A.ReactDebugCurrentFrame,m=p.getStackAddendum();m!==""&&(a+="%s",c=c.concat([m]));var y=c.map(function(h){return String(h)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,y)}}var ue=!1,fe=!1,pe=!1,ge=!1,oe=!1,J;J=Symbol.for("react.module.reference");function be(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===l||oe||e===i||e===v||e===g||ge||e===I||ue||fe||pe||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===x||e.$$typeof===u||e.$$typeof===d||e.$$typeof===f||e.$$typeof===J||e.getModuleId!==void 0))}function ve(e,a,c){var p=e.displayName;if(p)return p;var m=a.displayName||a.name||"";return m!==""?c+"("+m+")":c}function $(e){return e.displayName||"Context"}function V(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var a=e;return $(a)+".Consumer";case u:var c=e;return $(c._context)+".Provider";case f:return ve(e,e.render,"ForwardRef");case x:var p=e.displayName||null;return p!==null?p:V(e.type)||"Memo";case j:{var m=e,y=m._payload,h=m._init;try{return V(h(y))}catch{return null}}}return null}var z=Object.assign,D=0,K,F,ne,G,U,T,Oe;function Ne(){}Ne.__reactDisabledLog=!0;function pr(){{if(D===0){K=console.log,F=console.info,ne=console.warn,G=console.error,U=console.group,T=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function gr(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:K}),info:z({},e,{value:F}),warn:z({},e,{value:ne}),error:z({},e,{value:G}),group:z({},e,{value:U}),groupCollapsed:z({},e,{value:T}),groupEnd:z({},e,{value:Oe})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=A.ReactCurrentDispatcher,je;function he(e,a,c){{if(je===void 0)try{throw Error()}catch(m){var p=m.stack.trim().match(/\n( *(at )?)/);je=p&&p[1]||""}return`
18
- `+je+e}}var ke=!1,me;{var br=typeof WeakMap=="function"?WeakMap:Map;me=new br}function ze(e,a){if(!e||ke)return"";{var c=me.get(e);if(c!==void 0)return c}var p;ke=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Ce.current,Ce.current=null,pr();try{if(a){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(O){p=O}Reflect.construct(e,[],h)}else{try{h.call()}catch(O){p=O}e.call(h.prototype)}}else{try{throw Error()}catch(O){p=O}e()}}catch(O){if(O&&p&&typeof O.stack=="string"){for(var b=O.stack.split(`
17
+ */var Xe;function Br(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var r=_,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),P=Symbol.iterator,N="@@iterator";function H(e){if(e===null||typeof e!="object")return null;var a=P&&e[P]||e[N];return typeof a=="function"?a:null}var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var a=arguments.length,c=new Array(a>1?a-1:0),p=1;p<a;p++)c[p-1]=arguments[p];te("error",e,c)}}function te(e,a,c){{var p=A.ReactDebugCurrentFrame,m=p.getStackAddendum();m!==""&&(a+="%s",c=c.concat([m]));var y=c.map(function(h){return String(h)});y.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,y)}}var fe=!1,pe=!1,ge=!1,be=!1,oe=!1,J;J=Symbol.for("react.module.reference");function ve(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===l||oe||e===i||e===v||e===g||be||e===I||fe||pe||ge||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===x||e.$$typeof===u||e.$$typeof===d||e.$$typeof===f||e.$$typeof===J||e.getModuleId!==void 0))}function he(e,a,c){var p=e.displayName;if(p)return p;var m=a.displayName||a.name||"";return m!==""?c+"("+m+")":c}function $(e){return e.displayName||"Context"}function V(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case n:return"Portal";case l:return"Profiler";case i:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case d:var a=e;return $(a)+".Consumer";case u:var c=e;return $(c._context)+".Provider";case f:return he(e,e.render,"ForwardRef");case x:var p=e.displayName||null;return p!==null?p:V(e.type)||"Memo";case j:{var m=e,y=m._payload,h=m._init;try{return V(h(y))}catch{return null}}}return null}var z=Object.assign,D=0,K,F,ne,G,U,T,Oe;function Ne(){}Ne.__reactDisabledLog=!0;function pr(){{if(D===0){K=console.log,F=console.info,ne=console.warn,G=console.error,U=console.group,T=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}D++}}function gr(){{if(D--,D===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},e,{value:K}),info:z({},e,{value:F}),warn:z({},e,{value:ne}),error:z({},e,{value:G}),group:z({},e,{value:U}),groupCollapsed:z({},e,{value:T}),groupEnd:z({},e,{value:Oe})})}D<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ce=A.ReactCurrentDispatcher,je;function me(e,a,c){{if(je===void 0)try{throw Error()}catch(m){var p=m.stack.trim().match(/\n( *(at )?)/);je=p&&p[1]||""}return`
18
+ `+je+e}}var ke=!1,xe;{var br=typeof WeakMap=="function"?WeakMap:Map;xe=new br}function ze(e,a){if(!e||ke)return"";{var c=xe.get(e);if(c!==void 0)return c}var p;ke=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Ce.current,Ce.current=null,pr();try{if(a){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(O){p=O}Reflect.construct(e,[],h)}else{try{h.call()}catch(O){p=O}e.call(h.prototype)}}else{try{throw Error()}catch(O){p=O}e()}}catch(O){if(O&&p&&typeof O.stack=="string"){for(var b=O.stack.split(`
19
19
  `),M=p.stack.split(`
20
20
  `),C=b.length-1,k=M.length-1;C>=1&&k>=0&&b[C]!==M[k];)k--;for(;C>=1&&k>=0;C--,k--)if(b[C]!==M[k]){if(C!==1||k!==1)do if(C--,k--,k<0||b[C]!==M[k]){var L=`
21
- `+b[C].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),typeof e=="function"&&me.set(e,L),L}while(C>=1&&k>=0);break}}}finally{ke=!1,Ce.current=y,gr(),Error.prepareStackTrace=m}var Q=e?e.displayName||e.name:"",Y=Q?he(Q):"";return typeof e=="function"&&me.set(e,Y),Y}function vr(e,a,c){return ze(e,!1)}function hr(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function xe(e,a,c){if(e==null)return"";if(typeof e=="function")return ze(e,hr(e));if(typeof e=="string")return he(e);switch(e){case v:return he("Suspense");case g:return he("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return vr(e.render);case x:return xe(e.type,a,c);case j:{var p=e,m=p._payload,y=p._init;try{return xe(y(m),a,c)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,Le={},Ve=A.ReactDebugCurrentFrame;function ye(e){if(e){var a=e._owner,c=xe(e.type,e._source,a?a.type:null);Ve.setExtraStackFrame(c)}else Ve.setExtraStackFrame(null)}function mr(e,a,c,p,m){{var y=Function.call.bind(ae);for(var h in e)if(y(e,h)){var b=void 0;try{if(typeof e[h]!="function"){var M=Error((p||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}b=e[h](a,h,p,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){b=C}b&&!(b instanceof Error)&&(ye(m),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",c,h,typeof b),ye(null)),b instanceof Error&&!(b.message in Le)&&(Le[b.message]=!0,ye(m),E("Failed %s type: %s",c,b.message),ye(null))}}}var xr=Array.isArray;function Re(e){return xr(e)}function yr(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,c=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c}}function wr(e){try{return We(e),!1}catch{return!0}}function We(e){return""+e}function He(e){if(wr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(e)),We(e)}var De=A.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},Fe,Ge;function jr(e){if(ae.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function kr(e){if(ae.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Rr(e,a){typeof e.ref=="string"&&De.current}function _r(e,a){{var c=function(){Fe||(Fe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}}function Er(e,a){{var c=function(){Ge||(Ge=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};c.isReactWarning=!0,Object.defineProperty(e,"ref",{get:c,configurable:!0})}}var Sr=function(e,a,c,p,m,y,h){var b={$$typeof:t,type:e,key:a,ref:c,props:h,_owner:y};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Tr(e,a,c,p,m){{var y,h={},b=null,M=null;c!==void 0&&(He(c),b=""+c),kr(a)&&(He(a.key),b=""+a.key),jr(a)&&(M=a.ref,Rr(a,m));for(y in a)ae.call(a,y)&&!Cr.hasOwnProperty(y)&&(h[y]=a[y]);if(e&&e.defaultProps){var C=e.defaultProps;for(y in C)h[y]===void 0&&(h[y]=C[y])}if(b||M){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&_r(h,k),M&&Er(h,k)}return Sr(e,b,M,m,p,De.current,h)}}var _e=A.ReactCurrentOwner,Be=A.ReactDebugCurrentFrame;function X(e){if(e){var a=e._owner,c=xe(e.type,e._source,a?a.type:null);Be.setExtraStackFrame(c)}else Be.setExtraStackFrame(null)}var Ee;Ee=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function $e(){{if(_e.current){var e=V(_e.current.type);if(e)return`
21
+ `+b[C].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),typeof e=="function"&&xe.set(e,L),L}while(C>=1&&k>=0);break}}}finally{ke=!1,Ce.current=y,gr(),Error.prepareStackTrace=m}var Q=e?e.displayName||e.name:"",Y=Q?me(Q):"";return typeof e=="function"&&xe.set(e,Y),Y}function vr(e,a,c){return ze(e,!1)}function hr(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function ye(e,a,c){if(e==null)return"";if(typeof e=="function")return ze(e,hr(e));if(typeof e=="string")return me(e);switch(e){case v:return me("Suspense");case g:return me("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return vr(e.render);case x:return ye(e.type,a,c);case j:{var p=e,m=p._payload,y=p._init;try{return ye(y(m),a,c)}catch{}}}return""}var ae=Object.prototype.hasOwnProperty,Le={},Ve=A.ReactDebugCurrentFrame;function we(e){if(e){var a=e._owner,c=ye(e.type,e._source,a?a.type:null);Ve.setExtraStackFrame(c)}else Ve.setExtraStackFrame(null)}function mr(e,a,c,p,m){{var y=Function.call.bind(ae);for(var h in e)if(y(e,h)){var b=void 0;try{if(typeof e[h]!="function"){var M=Error((p||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}b=e[h](a,h,p,c,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){b=C}b&&!(b instanceof Error)&&(we(m),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",p||"React class",c,h,typeof b),we(null)),b instanceof Error&&!(b.message in Le)&&(Le[b.message]=!0,we(m),E("Failed %s type: %s",c,b.message),we(null))}}}var xr=Array.isArray;function Re(e){return xr(e)}function yr(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,c=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return c}}function wr(e){try{return We(e),!1}catch{return!0}}function We(e){return""+e}function He(e){if(wr(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(e)),We(e)}var De=A.ReactCurrentOwner,Cr={key:!0,ref:!0,__self:!0,__source:!0},Fe,Ge;function jr(e){if(ae.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function kr(e){if(ae.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function Rr(e,a){typeof e.ref=="string"&&De.current}function _r(e,a){{var c=function(){Fe||(Fe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};c.isReactWarning=!0,Object.defineProperty(e,"key",{get:c,configurable:!0})}}function Er(e,a){{var c=function(){Ge||(Ge=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",a))};c.isReactWarning=!0,Object.defineProperty(e,"ref",{get:c,configurable:!0})}}var Sr=function(e,a,c,p,m,y,h){var b={$$typeof:t,type:e,key:a,ref:c,props:h,_owner:y};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Tr(e,a,c,p,m){{var y,h={},b=null,M=null;c!==void 0&&(He(c),b=""+c),kr(a)&&(He(a.key),b=""+a.key),jr(a)&&(M=a.ref,Rr(a,m));for(y in a)ae.call(a,y)&&!Cr.hasOwnProperty(y)&&(h[y]=a[y]);if(e&&e.defaultProps){var C=e.defaultProps;for(y in C)h[y]===void 0&&(h[y]=C[y])}if(b||M){var k=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&_r(h,k),M&&Er(h,k)}return Sr(e,b,M,m,p,De.current,h)}}var _e=A.ReactCurrentOwner,Be=A.ReactDebugCurrentFrame;function X(e){if(e){var a=e._owner,c=ye(e.type,e._source,a?a.type:null);Be.setExtraStackFrame(c)}else Be.setExtraStackFrame(null)}var Ee;Ee=!1;function Se(e){return typeof e=="object"&&e!==null&&e.$$typeof===t}function $e(){{if(_e.current){var e=V(_e.current.type);if(e)return`
22
22
 
23
23
  Check the render method of \``+e+"`."}return""}}function Mr(e){return""}var Ue={};function Ir(e){{var a=$e();if(!a){var c=typeof e=="string"?e:e.displayName||e.name;c&&(a=`
24
24
 
25
- Check the top-level render call using <`+c+">.")}return a}}function Ye(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=Ir(a);if(Ue[c])return;Ue[c]=!0;var p="";e&&e._owner&&e._owner!==_e.current&&(p=" It was passed a child from "+V(e._owner.type)+"."),X(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,p),X(null)}}function Ze(e,a){{if(typeof e!="object")return;if(Re(e))for(var c=0;c<e.length;c++){var p=e[c];Se(p)&&Ye(p,a)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var m=H(e);if(typeof m=="function"&&m!==e.entries)for(var y=m.call(e),h;!(h=y.next()).done;)Se(h.value)&&Ye(h.value,a)}}}function Pr(e){{var a=e.type;if(a==null||typeof a=="string")return;var c;if(typeof a=="function")c=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===f||a.$$typeof===x))c=a.propTypes;else return;if(c){var p=V(a);mr(c,e.props,"prop",p,e)}else if(a.PropTypes!==void 0&&!Ee){Ee=!0;var m=V(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(e){{for(var a=Object.keys(e.props),c=0;c<a.length;c++){var p=a[c];if(p!=="children"&&p!=="key"){X(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),X(null);break}}e.ref!==null&&(X(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),X(null))}}var qe={};function Je(e,a,c,p,m,y){{var h=be(e);if(!h){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=Mr();M?b+=M:b+=$e();var C;e===null?C="null":Re(e)?C="array":e!==void 0&&e.$$typeof===t?(C="<"+(V(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,b)}var k=Tr(e,a,c,m,y);if(k==null)return k;if(h){var L=a.children;if(L!==void 0)if(p)if(Re(L)){for(var Q=0;Q<L.length;Q++)Ze(L[Q],e);Object.freeze&&Object.freeze(L)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ze(L,e)}if(ae.call(a,"key")){var Y=V(e),O=Object.keys(a).filter(function(Wr){return Wr!=="key"}),Te=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[Y+Te]){var Vr=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+c+">.")}return a}}function Ye(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var c=Ir(a);if(Ue[c])return;Ue[c]=!0;var p="";e&&e._owner&&e._owner!==_e.current&&(p=" It was passed a child from "+V(e._owner.type)+"."),X(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',c,p),X(null)}}function Ze(e,a){{if(typeof e!="object")return;if(Re(e))for(var c=0;c<e.length;c++){var p=e[c];Se(p)&&Ye(p,a)}else if(Se(e))e._store&&(e._store.validated=!0);else if(e){var m=H(e);if(typeof m=="function"&&m!==e.entries)for(var y=m.call(e),h;!(h=y.next()).done;)Se(h.value)&&Ye(h.value,a)}}}function Pr(e){{var a=e.type;if(a==null||typeof a=="string")return;var c;if(typeof a=="function")c=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===f||a.$$typeof===x))c=a.propTypes;else return;if(c){var p=V(a);mr(c,e.props,"prop",p,e)}else if(a.PropTypes!==void 0&&!Ee){Ee=!0;var m=V(a);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ar(e){{for(var a=Object.keys(e.props),c=0;c<a.length;c++){var p=a[c];if(p!=="children"&&p!=="key"){X(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),X(null);break}}e.ref!==null&&(X(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),X(null))}}var qe={};function Je(e,a,c,p,m,y){{var h=ve(e);if(!h){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var M=Mr();M?b+=M:b+=$e();var C;e===null?C="null":Re(e)?C="array":e!==void 0&&e.$$typeof===t?(C="<"+(V(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,b)}var k=Tr(e,a,c,m,y);if(k==null)return k;if(h){var L=a.children;if(L!==void 0)if(p)if(Re(L)){for(var Q=0;Q<L.length;Q++)Ze(L[Q],e);Object.freeze&&Object.freeze(L)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ze(L,e)}if(ae.call(a,"key")){var Y=V(e),O=Object.keys(a).filter(function(Wr){return Wr!=="key"}),Te=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[Y+Te]){var Vr=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Te,Y,Vr,Y),qe[Y+Te]=!0}}return e===o?Ar(k):Pr(k),k}}function Or(e,a,c){return Je(e,a,c,!0)}function Nr(e,a,c){return Je(e,a,c,!1)}var zr=Nr,Lr=Or;se.Fragment=o,se.jsx=zr,se.jsxs=Lr}()),se}process.env.NODE_ENV==="production"?Ie.exports=Gr():Ie.exports=Br();var s=Ie.exports;const $r=()=>s.jsx("div",{className:"bg-red-800 text-white p-2",children:"Hello world"});function Ur(){for(var r=0,t,n,o="";r<arguments.length;)(t=arguments[r++])&&(n=tr(t))&&(o&&(o+=" "),o+=n);return o}function tr(r){if(typeof r=="string")return r;for(var t,n="",o=0;o<r.length;o++)r[o]&&(t=tr(r[o]))&&(n&&(n+=" "),n+=t);return n}var Ae="-";function Yr(r){var t=qr(r);function n(i){var l=i.split(Ae);return l[0]===""&&l.length!==1&&l.shift(),or(l,t)||Zr(i)}function o(i){return r.conflictingClassGroups[i]||[]}return{getClassGroupId:n,getConflictingClassGroupIds:o}}function or(r,t){var u;if(r.length===0)return t.classGroupId;var n=r[0],o=t.nextPart.get(n),i=o?or(r.slice(1),o):void 0;if(i)return i;if(t.validators.length!==0){var l=r.join(Ae);return(u=t.validators.find(function(d){var f=d.validator;return f(l)}))==null?void 0:u.classGroupId}}var Qe=/^\[(.+)\]$/;function Zr(r){if(Qe.test(r)){var t=Qe.exec(r)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function qr(r){var t=r.theme,n=r.prefix,o={nextPart:new Map,validators:[]},i=Kr(Object.entries(r.classGroups),n);return i.forEach(function(l){var u=l[0],d=l[1];Pe(d,o,u,t)}),o}function Pe(r,t,n,o){r.forEach(function(i){if(typeof i=="string"){var l=i===""?t:er(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(Jr(i)){Pe(i(o),t,n,o);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(function(u){var d=u[0],f=u[1];Pe(f,er(t,d),n,o)})})}function er(r,t){var n=r;return t.split(Ae).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function Jr(r){return r.isThemeGetter}function Kr(r,t){return t?r.map(function(n){var o=n[0],i=n[1],l=i.map(function(u){return typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(function(d){var f=d[0],v=d[1];return[t+f,v]})):u});return[o,l]}):r}function Xr(r){if(r<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function i(l,u){n.set(l,u),t++,t>r&&(t=0,o=n,n=new Map)}return{get:function(u){var d=n.get(u);if(d!==void 0)return d;if((d=o.get(u))!==void 0)return i(u,d),d},set:function(u,d){n.has(u)?n.set(u,d):i(u,d)}}}var nr="!";function Qr(r){var t=r.separator||":";return function(o){for(var i=0,l=[],u=0,d=0;d<o.length;d++){var f=o[d];i===0&&f===t[0]&&(t.length===1||o.slice(d,d+t.length)===t)&&(l.push(o.slice(u,d)),u=d+t.length),f==="["?i++:f==="]"&&i--}var v=l.length===0?o:o.substring(u),g=v.startsWith(nr),x=g?v.substring(1):v;return{modifiers:l,hasImportantModifier:g,baseClassName:x}}}function et(r){if(r.length<=1)return r;var t=[],n=[];return r.forEach(function(o){var i=o[0]==="[";i?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function rt(r){return{cache:Xr(r.cacheSize),splitModifiers:Qr(r),...Yr(r)}}var tt=/\s+/;function ot(r,t){var n=t.splitModifiers,o=t.getClassGroupId,i=t.getConflictingClassGroupIds,l=new Set;return r.trim().split(tt).map(function(u){var d=n(u),f=d.modifiers,v=d.hasImportantModifier,g=d.baseClassName,x=o(g);if(!x)return{isTailwindClass:!1,originalClassName:u};var j=et(f).join(":"),I=v?j+nr:j;return{isTailwindClass:!0,modifierId:I,classGroupId:x,originalClassName:u}}).reverse().filter(function(u){if(!u.isTailwindClass)return!0;var d=u.modifierId,f=u.classGroupId,v=d+f;return l.has(v)?!1:(l.add(v),i(f).forEach(function(g){return l.add(d+g)}),!0)}).reverse().map(function(u){return u.originalClassName}).join(" ")}function nt(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var o,i,l,u=d;function d(v){var g=t[0],x=t.slice(1),j=x.reduce(function(I,P){return P(I)},g());return o=rt(j),i=o.cache.get,l=o.cache.set,u=f,f(v)}function f(v){var g=i(v);if(g)return g;var x=ot(v,o);return l(v,x),x}return function(){return u(Ur.apply(null,arguments))}}function w(r){var t=function(o){return o[r]||[]};return t.isThemeGetter=!0,t}var ar=/^\[(?:([a-z-]+):)?(.+)\]$/i,at=/^\d+\/\d+$/,it=new Set(["px","full","screen"]),st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,ct=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function W(r){return de(r)||it.has(r)||at.test(r)||Z(r)}function Z(r){return q(r,"length",gt)}function dt(r){return q(r,"size",ir)}function ut(r){return q(r,"position",ir)}function ft(r){return q(r,"url",bt)}function Me(r){return q(r,"number",de)}function de(r){return!Number.isNaN(Number(r))}function le(r){return rr(r)||q(r,"number",rr)}function R(r){return ar.test(r)}function ce(){return!0}function B(r){return st.test(r)}function pt(r){return q(r,"",vt)}function q(r,t,n){var o=ar.exec(r);return o?o[1]?o[1]===t:n(o[2]):!1}function gt(r){return lt.test(r)}function ir(){return!1}function bt(r){return r.startsWith("url(")}function rr(r){return Number.isInteger(Number(r))}function vt(r){return ct.test(r)}function ht(){var r=w("colors"),t=w("spacing"),n=w("blur"),o=w("brightness"),i=w("borderColor"),l=w("borderRadius"),u=w("borderSpacing"),d=w("borderWidth"),f=w("contrast"),v=w("grayscale"),g=w("hueRotate"),x=w("invert"),j=w("gap"),I=w("gradientColorStops"),P=w("inset"),N=w("margin"),H=w("opacity"),A=w("padding"),E=w("saturate"),te=w("scale"),ue=w("sepia"),fe=w("skew"),pe=w("space"),ge=w("translate"),oe=function(){return["auto","contain","none"]},J=function(){return["auto","hidden","clip","visible","scroll"]},be=function(){return["auto",t]},ve=function(){return["",W]},$=function(){return["auto",de,R]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},z=function(){return["solid","dashed","dotted","double","none"]},D=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly"]},F=function(){return["","0",R]},ne=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},G=function(){return[de,Me]},U=function(){return[de,R]};return{cacheSize:500,theme:{colors:[ce],spacing:[W],blur:["none","",B,Z],brightness:G(),borderColor:[r],borderRadius:["none","","full",B,Z],borderSpacing:[t],borderWidth:ve(),contrast:G(),grayscale:F(),hueRotate:U(),invert:F(),gap:[t],gradientColorStops:[r],inset:be(),margin:be(),opacity:G(),padding:[t],saturate:G(),scale:G(),sepia:F(),skew:U(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",R]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[R])}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",R]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",le]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:[le]},R]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[le]},R]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",R]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",R]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:K()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[pe]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[pe]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",W]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[B]},B,Z]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",B,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Me]}],"font-family":[{font:[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W]}],"list-style-type":[{list:["none","disc","decimal",R]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(z(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",W]}],"underline-offset":[{"underline-offset":["auto",W]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[ut])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[I]}],"gradient-via":[{via:[I]}],"gradient-to":[{to:[I]}],rounded:[{rounded:[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[].concat(z(),["hidden"])}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(z())}],"outline-offset":[{"outline-offset":[W]}],"outline-w":[{outline:[W]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[W]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",B,pt]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":D()}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,R]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[x]}],saturate:[{saturate:[E]}],sepia:[{sepia:[ue]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[ue]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",R]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",R]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",R]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[te]}],"scale-x":[{"scale-x":[te]}],"scale-y":[{"scale-y":[te]}],rotate:[{rotate:[le,R]}],"translate-x":[{"translate-x":[ge]}],"translate-y":[{"translate-y":[ge]}],"skew-x":[{"skew-x":[fe]}],"skew-y":[{"skew-y":[fe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",R]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[W,Me]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var mt=nt(ht);function sr(r){var t,n,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=sr(r[t]))&&(o&&(o+=" "),o+=n);else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function xt(){for(var r,t,n=0,o="";n<arguments.length;)(r=arguments[n++])&&(t=sr(r))&&(o&&(o+=" "),o+=t);return o}function we(...r){return mt(xt(r))}function yt({className:r="",size:t="1em"}){return s.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[s.jsx("path",{d:"M12.001 7.7395C12.2367 7.73978 12.4591 7.85076 12.6006 8.03931L15.376 11.7395C15.5459 11.9666 15.5731 12.2708 15.4463 12.5247C15.3193 12.7785 15.0592 12.9395 14.7754 12.9397H12.75V17.2766C12.7499 17.6907 12.4142 18.0266 12 18.0266C11.5858 18.0266 11.2501 17.6907 11.25 17.2766V12.9397H9.22559C8.94169 12.9397 8.68182 12.7785 8.55469 12.5247C8.42778 12.2706 8.45558 11.9667 8.62598 11.7395L11.4004 8.03931L11.457 7.97192C11.5977 7.82422 11.7945 7.7395 12.001 7.7395Z",fill:"currentColor"}),s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.65161C17.5228 2.65161 22 7.12876 22 12.6516C22 18.1744 17.5228 22.6516 12 22.6516C6.47715 22.6516 2 18.1744 2 12.6516C2 7.12876 6.47715 2.65161 12 2.65161ZM12 4.15161C7.30558 4.15161 3.5 7.95719 3.5 12.6516C3.5 17.346 7.30558 21.1516 12 21.1516C16.6944 21.1516 20.5 17.346 20.5 12.6516C20.5 7.95719 16.6944 4.15161 12 4.15161Z",fill:"currentColor"})]})}function wt({className:r="",size:t="1em"}){return s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:s.jsx("path",{d:"M12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17316C2.00433 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8078C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C21.9971 9.34871 20.9426 6.80684 19.0679 4.9321C17.1932 3.05736 14.6513 2.00287 12 2ZM15.7092 11.7642C15.6751 11.8349 15.6217 11.8945 15.5553 11.9363C15.4888 11.978 15.4118 12.0001 15.3333 12H12.8333V16.1667C12.8333 16.3877 12.7455 16.5996 12.5893 16.7559C12.433 16.9122 12.221 17 12 17C11.779 17 11.567 16.9122 11.4107 16.7559C11.2545 16.5996 11.1667 16.3877 11.1667 16.1667V12H8.66667C8.58819 12 8.5113 11.9779 8.44484 11.9362C8.37839 11.8945 8.32507 11.8348 8.29102 11.7641C8.25697 11.6934 8.24359 11.6145 8.2524 11.5365C8.26121 11.4586 8.29187 11.3847 8.34084 11.3233L11.6742 7.15667C11.7146 7.10991 11.7646 7.07241 11.8209 7.04671C11.8771 7.021 11.9382 7.0077 12 7.0077C12.0618 7.0077 12.1229 7.021 12.1791 7.04671C12.2354 7.07241 12.2854 7.10991 12.3258 7.15667L15.6592 11.3233C15.7082 11.3846 15.7389 11.4585 15.7477 11.5365C15.7566 11.6145 15.7432 11.6934 15.7092 11.7642Z",fill:"#1DA56A"})})}const Ct=({tooltipContent:r="Send message",className:t,...n})=>{const[o,i]=_.useState(!1);return s.jsx(S.Tooltip,{content:r,children:s.jsx(S.IconButton,{variant:"text",color:"gray",className:we(t,"hover:rounded-lg hover:bg-gray-100"),type:"submit",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...n,children:o?s.jsx(wt,{className:"size-6 "}):s.jsx(yt,{className:"size-6 "})})})},lr=({onSubmit:r=()=>{},...t})=>s.jsx(Hr,{autoFocus:!0,placeholder:"Write your message here",className:"pl-1 block w-full focus:outline-none max-h-32 resize-none placeholder:text-gray-400",onKeyDown:n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),r())},...t}),jt=({bottom:r,right:t,top:n,textArea:o=s.jsx(lr,{}),...i})=>s.jsxs("div",{className:"border gap-2 rounded-lg bg-white shadow-[0px_2px_2px_0px_#0000000A,0px_8px_8px_-8px_#0000000A] border-gray-100",...i,children:[n,s.jsxs("div",{className:"flex gap-2 p-4 rounded-lg bg-white",children:[s.jsxs("div",{className:"grow flex flex-col items-start justify-center",children:[o,r]}),s.jsx("div",{className:"shrink flex items-end justify-end",children:t})]})]}),kt=Object.freeze(Object.defineProperty({__proto__:null,Container:jt,SubmitButton:Ct,Textarea:lr},Symbol.toStringTag,{value:"Module"})),re=_.createContext(void 0),cr=({children:r,isCollapsed:t,onSwitchLayout:n})=>{const[o,i]=_.useState(!1),[l,u]=_.useState(!1),d=t!==void 0?t:o,f=v=>{const g=v??!d;t===void 0&&i(g),n==null||n(g)};return s.jsx(re.Provider,{value:{isCollapsed:d,toggleCollapsed:f,isHovered:l,setIsHovered:u},children:r})},dr=({className:r,children:t,...n})=>{const{isCollapsed:o,isHovered:i,setIsHovered:l}=_.useContext(re);return s.jsx("div",{className:we(r,o&&"shadow-lg",o&&!i?"w-auto":"w-[280px]","bg-gray-50 p-2 flex flex-col justify-between items-center rounded-lg"),onMouseEnter:()=>o&&l(!0),onMouseLeave:()=>o&&l(!1),...n,children:t})},Rt=({className:r,children:t,isCollapsed:n,onSwitchLayout:o,...i})=>s.jsx(cr,{isCollapsed:n,onSwitchLayout:o,children:s.jsx(dr,{className:r,...i,children:t})}),_t=({icon:r,children:t,...n})=>{const{isCollapsed:o,isHovered:i}=_.useContext(re);return s.jsxs("button",{className:"flex items-center gap-2 w-full hover:bg-gray-100 text-caption-1-em text-gray-600 hover:text-gray-900 h-[38px] rounded-lg px-2",...n,children:[r," ",(!o||i)&&t]})};function Et(r){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM3.75 3.5C4.16421 3.5 4.5 3.83579 4.5 4.25V11.75C4.5 12.1642 4.16421 12.5 3.75 12.5C3.33579 12.5 3 12.1642 3 11.75V4.25C3 3.83579 3.33579 3.5 3.75 3.5Z",fill:"currentColor"})})}function St(r){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM7.5 4C7.77614 4 8 4.22386 8 4.5V11.5C8 11.7761 7.77614 12 7.5 12H3.5C3.22386 12 3 11.7761 3 11.5V4.5C3 4.22386 3.22386 4 3.5 4H7.5Z",fill:"currentColor"})})}const Tt=()=>{const{isCollapsed:r,isHovered:t,toggleCollapsed:n}=_.useContext(re);return r&&!t?null:s.jsx(S.IconButton,{variant:"text",color:"gray",onClick:()=>n(),children:r?s.jsx(Et,{className:"size-4"}):s.jsx(St,{className:"size-4"})})},Mt=({children:r,className:t,icon:n,isActive:o,trailing:i,...l})=>{const{isCollapsed:u,isHovered:d}=_.useContext(re);return s.jsxs("div",{className:we(o?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg px-2 cursor-pointer group",t),...l,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[n,(!u||d)&&r]}),(!u||d)&&i]})},It=({children:r,className:t,isActive:n,trailing:o,icon:i,...l})=>{const{isCollapsed:u,isHovered:d}=_.useContext(re);return s.jsxs("div",{className:we(n?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg pr-2 pl-3 cursor-pointer group text-sm",t),...l,children:[s.jsxs("div",{className:"flex items-center gap-2 overflow-auto",children:[(!u||d)&&i," ",(!u||d)&&r]}),(!u||d)&&o]})},Pt=Object.freeze(Object.defineProperty({__proto__:null,Button:_t,Container:dr,Item:Mt,Layout:Rt,Provider:cr,SecondaryItem:It,ToggleCollapseButton:Tt},Symbol.toStringTag,{value:"Module"})),At=r=>s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M12.7197 2.21954C13.0125 1.92683 13.4874 1.92694 13.7803 2.21954C14.073 2.51241 14.073 2.98722 13.7803 3.28008L9.05955 7.99981L13.7803 12.7205L13.832 12.7772C14.0721 13.0717 14.0548 13.5065 13.7803 13.7811C13.5057 14.0555 13.0709 14.0729 12.7764 13.8328L12.7197 13.7811L7.99901 9.06036L3.27928 13.7811C2.9864 14.0737 2.51156 14.0738 2.21873 13.7811C1.92618 13.4882 1.92616 13.0133 2.21873 12.7205L6.93846 7.99981L2.21873 3.28008C1.92615 2.98722 1.92607 2.51235 2.21873 2.21954C2.51154 1.92673 2.98637 1.92691 3.27928 2.21954L7.99901 6.93926L12.7197 2.21954Z",fill:"currentColor"})}),Ot=({onClose:r,right:t,children:n})=>s.jsxs("div",{className:"bg-gray-50 flex gap-2 items-center px-2 py-3 rounded-t-xl",children:[s.jsx("div",{className:"grow text-subheader-em",children:n}),s.jsxs("div",{className:"flex items-center gap-4",children:[t,s.jsx(S.IconButton,{variant:"text",size:"sm",color:"gray",className:"rounded-full",onClick:r,children:s.jsx(At,{className:"size-4 text-gray-600"})})]})]}),ur={Header:Ot},fr=r=>s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M2.25 5.5C2.66421 5.5 3 5.83579 3 6.25C3 6.66421 2.66421 7 2.25 7H2C1.72386 7 1.5 7.22386 1.5 7.5V13.5C1.5 13.7761 1.72386 14 2 14H8C8.27614 14 8.5 13.7761 8.5 13.5V13.25C8.5 12.8358 8.83579 12.5 9.25 12.5C9.66421 12.5 10 12.8358 10 13.25V13.5C10 14.5357 9.21278 15.387 8.2041 15.4893L8 15.5H2L1.7959 15.4893C0.854346 15.3938 0.1062 14.6457 0.0107422 13.7041L0 13.5V7.5C0 6.39543 0.895431 5.5 2 5.5H2.25ZM13.75 0C14.7165 1.28853e-07 15.5 0.783502 15.5 1.75V9.75C15.5 10.7165 14.7165 11.5 13.75 11.5H5.75C4.7835 11.5 4 10.7165 4 9.75V1.75C4 0.783502 4.7835 8.0532e-09 5.75 0H13.75ZM5.75 1.5C5.61193 1.5 5.5 1.61193 5.5 1.75V9.75C5.5 9.88807 5.61193 10 5.75 10H13.75C13.8881 10 14 9.88807 14 9.75V1.75C14 1.61193 13.8881 1.5 13.75 1.5H5.75ZM11.75 3C11.795 3 11.839 3.00413 11.8818 3.01172C11.8874 3.0127 11.8929 3.01354 11.8984 3.01465C11.9118 3.01733 11.9244 3.02298 11.9375 3.02637C11.9707 3.03495 12.0041 3.04344 12.0361 3.05664C12.0653 3.06868 12.092 3.08512 12.1191 3.10059C12.1763 3.1331 12.2316 3.171 12.2803 3.21973C12.3287 3.26812 12.366 3.3232 12.3984 3.37988C12.414 3.40703 12.4303 3.43375 12.4424 3.46289C12.4631 3.51289 12.4779 3.56459 12.4873 3.61719C12.495 3.66035 12.5 3.70462 12.5 3.75V7.75C12.5 8.16421 12.1642 8.5 11.75 8.5C11.3358 8.5 11 8.16421 11 7.75V5.56055L8.28027 8.28027C7.98738 8.57317 7.51262 8.57317 7.21973 8.28027C6.92683 7.98738 6.92683 7.51262 7.21973 7.21973L9.93945 4.5H7.75C7.33579 4.5 7 4.16421 7 3.75C7 3.33579 7.33579 3 7.75 3H11.75Z",fill:"currentColor"})}),Nt=(r=100,t=50,n=990,o=10)=>{const[i,l]=_.useState(r);return[i,{...{zoomIn:()=>l(f=>Math.min(f+o,n)),zoomOut:()=>l(f=>Math.max(f-o,t)),reset:()=>l(r),zoomToValue:f=>l(Math.max(t,Math.min(f,n)))},handleWheel:f=>{f.preventDefault();const v=f.deltaY>0?-o:o;l(g=>Math.max(t,Math.min(g+v,n)))}}]},zt=()=>{const[r,t]=_.useState(0);return[r,{rotateClockwise:()=>t(o=>(o+90)%360),rotateCounterClockwise:()=>t(o=>(o-90+360)%360)}]},Lt=()=>{const[r,t]=_.useState({x:0,y:0}),[n,o]=_.useState(!1),[i,l]=_.useState({x:0,y:0});return[{pan:r,isDragging:n},{handleMouseDown:g=>{o(!0),l({x:g.clientX-r.x,y:g.clientY-r.y})},handleMouseMove:g=>{n&&t({x:g.clientX-i.x,y:g.clientY-i.y})},handleMouseUp:()=>{o(!1)},reset:()=>t({x:0,y:0})}]},Vt=(r=1)=>{const[t,n]=_.useState(1);return[t,{nextPage:()=>n(i=>Math.min(i+1,r)),prevPage:()=>n(i=>Math.max(i-1,1)),goToPage:i=>n(Math.max(1,Math.min(i,r)))}]},Wt=({onClose:r,totalPages:t,getImageSrc:n,title:o="PDF Viewer"})=>{const[i,l]=Nt(),[u,d]=zt(),[{pan:f,isDragging:v},g]=Lt(),[x,j]=Vt(t),I=s.jsx(S.IconButton,{variant:"text",color:"gray",children:s.jsx(fr,{className:"size-4"})});return s.jsxs("div",{className:"shadow rounded-t-lg",children:[s.jsx(ur.Header,{onClose:r,right:I,children:o}),s.jsx("div",{className:"grid",children:s.jsxs("div",{className:"grid relative",children:[s.jsx("div",{className:"overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative",onMouseMove:g.handleMouseMove,onMouseUp:g.handleMouseUp,onMouseLeave:g.handleMouseUp,onWheel:l.handleWheel,children:s.jsx("div",{style:{transform:`translate(${f.x}px, ${f.y}px)`,cursor:v?"grabbing":"grab",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},onMouseDown:g.handleMouseDown,children:s.jsx("div",{style:{transform:`scale(${i/100}) rotate(${u}deg)`,transformOrigin:"center",transition:v?"none":"transform 0.3s ease"},children:s.jsx("img",{src:n(x),style:{userSelect:"none",pointerEvents:"none"}})})})}),s.jsxs("div",{className:"col-start-1 row-start-1 self-end p-4 flex gap-2 justify-between w-full z-10",children:[s.jsxs(S.ButtonGroup,{className:"divide-x-0 h-[52px]",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:l.zoomOut,children:s.jsx(ee.Icon,{icon:"lucide:minus"})}),s.jsx(S.Tooltip,{content:"Click to reset zoom and pan",children:s.jsxs("button",{className:"!bg-white text-center cursor-pointer w-[60px]",onClick:()=>{l.reset(),g.reset()},children:[i,"%"]})}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:l.zoomIn,children:s.jsx(ee.Icon,{icon:"lucide:plus"})})]}),s.jsxs(S.ButtonGroup,{className:"divide-x-0 h-[52px]",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:d.rotateClockwise,children:s.jsx(ee.Icon,{icon:"lucide:iteration-cw"})}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:d.rotateCounterClockwise,children:s.jsx(ee.Icon,{icon:"lucide:iteration-ccw"})})]}),s.jsxs(S.ButtonGroup,{className:"divide-x-0 ",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:j.prevPage,disabled:x===1,children:s.jsx(ee.Icon,{icon:"lucide:chevron-left"})}),s.jsx("input",{className:"bg-white pl-4 flex items-center w-[50px] text-center focus:outline-none w-[60px]",value:x,onChange:P=>{const N=parseInt(P.target.value);isNaN(N)||j.goToPage(N)},type:"number",min:"1",max:t}),s.jsxs("div",{className:"flex items-center bg-white px-2",children:["of ",t]}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:j.nextPage,disabled:x===t,children:s.jsx(ee.Icon,{icon:"lucide:chevron-right"})})]})]})]})})]})},Ht=r=>{const[t,n]=_.useState({width:1,height:2});return _.useEffect(()=>{if(r.current){const{current:o}=r,i=o.getBoundingClientRect(),{width:l,height:u}=i;n({width:Math.round(l),height:Math.round(u)})}},[r]),t},Dt=({onClose:r,src:t,title:n="PDF Viewer"})=>{const o=_.useRef(null),i=Ht(o),l=s.jsx(S.IconButton,{variant:"text",color:"gray",children:s.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:s.jsx(fr,{className:"size-4"})})});return s.jsxs("div",{className:"shadow rounded-t-lg",children:[s.jsx(ur.Header,{onClose:r,right:l,children:n}),s.jsx("div",{className:"grid",children:s.jsx("div",{className:"grid relative",children:s.jsx("div",{ref:o,className:"overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative",children:s.jsx("embed",{src:`${t}#view=FitH&navpanes=0&scrollbar=0`,type:"application/pdf",width:i.width,height:i.height,style:{border:"none"}})})})})]})};exports.HelloWorld=$r;exports.ImageViewer=Wt;exports.InputPrompt=kt;exports.PdfViewer=Dt;exports.Sidebar=Pt;exports.materialTheme=Fr;exports.tailwindTheme=Dr;
30
+ <%s key={someKey} {...props} />`,Te,Y,Vr,Y),qe[Y+Te]=!0}}return e===o?Ar(k):Pr(k),k}}function Or(e,a,c){return Je(e,a,c,!0)}function Nr(e,a,c){return Je(e,a,c,!1)}var zr=Nr,Lr=Or;se.Fragment=o,se.jsx=zr,se.jsxs=Lr}()),se}process.env.NODE_ENV==="production"?Ie.exports=Gr():Ie.exports=Br();var s=Ie.exports;const $r=()=>s.jsx("div",{className:"bg-red-800 text-white p-2",children:"Hello world"});function Ur(){for(var r=0,t,n,o="";r<arguments.length;)(t=arguments[r++])&&(n=tr(t))&&(o&&(o+=" "),o+=n);return o}function tr(r){if(typeof r=="string")return r;for(var t,n="",o=0;o<r.length;o++)r[o]&&(t=tr(r[o]))&&(n&&(n+=" "),n+=t);return n}var Ae="-";function Yr(r){var t=qr(r);function n(i){var l=i.split(Ae);return l[0]===""&&l.length!==1&&l.shift(),or(l,t)||Zr(i)}function o(i){return r.conflictingClassGroups[i]||[]}return{getClassGroupId:n,getConflictingClassGroupIds:o}}function or(r,t){var u;if(r.length===0)return t.classGroupId;var n=r[0],o=t.nextPart.get(n),i=o?or(r.slice(1),o):void 0;if(i)return i;if(t.validators.length!==0){var l=r.join(Ae);return(u=t.validators.find(function(d){var f=d.validator;return f(l)}))==null?void 0:u.classGroupId}}var Qe=/^\[(.+)\]$/;function Zr(r){if(Qe.test(r)){var t=Qe.exec(r)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}function qr(r){var t=r.theme,n=r.prefix,o={nextPart:new Map,validators:[]},i=Kr(Object.entries(r.classGroups),n);return i.forEach(function(l){var u=l[0],d=l[1];Pe(d,o,u,t)}),o}function Pe(r,t,n,o){r.forEach(function(i){if(typeof i=="string"){var l=i===""?t:er(t,i);l.classGroupId=n;return}if(typeof i=="function"){if(Jr(i)){Pe(i(o),t,n,o);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(function(u){var d=u[0],f=u[1];Pe(f,er(t,d),n,o)})})}function er(r,t){var n=r;return t.split(Ae).forEach(function(o){n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n}function Jr(r){return r.isThemeGetter}function Kr(r,t){return t?r.map(function(n){var o=n[0],i=n[1],l=i.map(function(u){return typeof u=="string"?t+u:typeof u=="object"?Object.fromEntries(Object.entries(u).map(function(d){var f=d[0],v=d[1];return[t+f,v]})):u});return[o,l]}):r}function Xr(r){if(r<1)return{get:function(){},set:function(){}};var t=0,n=new Map,o=new Map;function i(l,u){n.set(l,u),t++,t>r&&(t=0,o=n,n=new Map)}return{get:function(u){var d=n.get(u);if(d!==void 0)return d;if((d=o.get(u))!==void 0)return i(u,d),d},set:function(u,d){n.has(u)?n.set(u,d):i(u,d)}}}var nr="!";function Qr(r){var t=r.separator||":";return function(o){for(var i=0,l=[],u=0,d=0;d<o.length;d++){var f=o[d];i===0&&f===t[0]&&(t.length===1||o.slice(d,d+t.length)===t)&&(l.push(o.slice(u,d)),u=d+t.length),f==="["?i++:f==="]"&&i--}var v=l.length===0?o:o.substring(u),g=v.startsWith(nr),x=g?v.substring(1):v;return{modifiers:l,hasImportantModifier:g,baseClassName:x}}}function et(r){if(r.length<=1)return r;var t=[],n=[];return r.forEach(function(o){var i=o[0]==="[";i?(t.push.apply(t,n.sort().concat([o])),n=[]):n.push(o)}),t.push.apply(t,n.sort()),t}function rt(r){return{cache:Xr(r.cacheSize),splitModifiers:Qr(r),...Yr(r)}}var tt=/\s+/;function ot(r,t){var n=t.splitModifiers,o=t.getClassGroupId,i=t.getConflictingClassGroupIds,l=new Set;return r.trim().split(tt).map(function(u){var d=n(u),f=d.modifiers,v=d.hasImportantModifier,g=d.baseClassName,x=o(g);if(!x)return{isTailwindClass:!1,originalClassName:u};var j=et(f).join(":"),I=v?j+nr:j;return{isTailwindClass:!0,modifierId:I,classGroupId:x,originalClassName:u}}).reverse().filter(function(u){if(!u.isTailwindClass)return!0;var d=u.modifierId,f=u.classGroupId,v=d+f;return l.has(v)?!1:(l.add(v),i(f).forEach(function(g){return l.add(d+g)}),!0)}).reverse().map(function(u){return u.originalClassName}).join(" ")}function nt(){for(var r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var o,i,l,u=d;function d(v){var g=t[0],x=t.slice(1),j=x.reduce(function(I,P){return P(I)},g());return o=rt(j),i=o.cache.get,l=o.cache.set,u=f,f(v)}function f(v){var g=i(v);if(g)return g;var x=ot(v,o);return l(v,x),x}return function(){return u(Ur.apply(null,arguments))}}function w(r){var t=function(o){return o[r]||[]};return t.isThemeGetter=!0,t}var ar=/^\[(?:([a-z-]+):)?(.+)\]$/i,at=/^\d+\/\d+$/,it=new Set(["px","full","screen"]),st=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh)/,ct=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function W(r){return de(r)||it.has(r)||at.test(r)||Z(r)}function Z(r){return q(r,"length",gt)}function dt(r){return q(r,"size",ir)}function ut(r){return q(r,"position",ir)}function ft(r){return q(r,"url",bt)}function Me(r){return q(r,"number",de)}function de(r){return!Number.isNaN(Number(r))}function le(r){return rr(r)||q(r,"number",rr)}function R(r){return ar.test(r)}function ce(){return!0}function B(r){return st.test(r)}function pt(r){return q(r,"",vt)}function q(r,t,n){var o=ar.exec(r);return o?o[1]?o[1]===t:n(o[2]):!1}function gt(r){return lt.test(r)}function ir(){return!1}function bt(r){return r.startsWith("url(")}function rr(r){return Number.isInteger(Number(r))}function vt(r){return ct.test(r)}function ht(){var r=w("colors"),t=w("spacing"),n=w("blur"),o=w("brightness"),i=w("borderColor"),l=w("borderRadius"),u=w("borderSpacing"),d=w("borderWidth"),f=w("contrast"),v=w("grayscale"),g=w("hueRotate"),x=w("invert"),j=w("gap"),I=w("gradientColorStops"),P=w("inset"),N=w("margin"),H=w("opacity"),A=w("padding"),E=w("saturate"),te=w("scale"),fe=w("sepia"),pe=w("skew"),ge=w("space"),be=w("translate"),oe=function(){return["auto","contain","none"]},J=function(){return["auto","hidden","clip","visible","scroll"]},ve=function(){return["auto",t]},he=function(){return["",W]},$=function(){return["auto",de,R]},V=function(){return["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"]},z=function(){return["solid","dashed","dotted","double","none"]},D=function(){return["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]},K=function(){return["start","end","center","between","around","evenly"]},F=function(){return["","0",R]},ne=function(){return["auto","avoid","all","avoid-page","page","left","right","column"]},G=function(){return[de,Me]},U=function(){return[de,R]};return{cacheSize:500,theme:{colors:[ce],spacing:[W],blur:["none","",B,Z],brightness:G(),borderColor:[r],borderRadius:["none","","full",B,Z],borderSpacing:[t],borderWidth:he(),contrast:G(),grayscale:F(),hueRotate:U(),invert:F(),gap:[t],gradientColorStops:[r],inset:ve(),margin:ve(),opacity:G(),padding:[t],saturate:G(),scale:G(),sepia:F(),skew:U(),space:[t],translate:[t]},classGroups:{aspect:[{aspect:["auto","square","video",R]}],container:["container"],columns:[{columns:[B]}],"break-after":[{"break-after":ne()}],"break-before":[{"break-before":ne()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(V(),[R])}],overflow:[{overflow:J()}],"overflow-x":[{"overflow-x":J()}],"overflow-y":[{"overflow-y":J()}],overscroll:[{overscroll:oe()}],"overscroll-x":[{"overscroll-x":oe()}],"overscroll-y":[{"overscroll-y":oe()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[P]}],"inset-x":[{"inset-x":[P]}],"inset-y":[{"inset-y":[P]}],top:[{top:[P]}],right:[{right:[P]}],bottom:[{bottom:[P]}],left:[{left:[P]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",le]}],basis:[{basis:[t]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",R]}],grow:[{grow:F()}],shrink:[{shrink:F()}],order:[{order:["first","last","none",le]}],"grid-cols":[{"grid-cols":[ce]}],"col-start-end":[{col:["auto",{span:[le]},R]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[ce]}],"row-start-end":[{row:["auto",{span:[le]},R]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",R]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",R]}],gap:[{gap:[j]}],"gap-x":[{"gap-x":[j]}],"gap-y":[{"gap-y":[j]}],"justify-content":[{justify:K()}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:[].concat(K(),["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(K(),["baseline","stretch"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[N]}],mx:[{mx:[N]}],my:[{my:[N]}],mt:[{mt:[N]}],mr:[{mr:[N]}],mb:[{mb:[N]}],ml:[{ml:[N]}],"space-x":[{"space-x":[ge]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[ge]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",t]}],"min-w":[{"min-w":["min","max","fit",W]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[B]},B,Z]}],h:[{h:[t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",W]}],"max-h":[{"max-h":[t,"min","max","fit"]}],"font-size":[{text:["base",B,Z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Me]}],"font-family":[{font:[ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",W]}],"list-style-type":[{list:["none","disc","decimal",R]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[r]}],"placeholder-opacity":[{"placeholder-opacity":[H]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[r]}],"text-opacity":[{"text-opacity":[H]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(z(),["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",W]}],"underline-offset":[{"underline-offset":["auto",W]}],"text-decoration-color":[{decoration:[r]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:[t]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap"]}],break:[{break:["normal","words","all","keep"]}],content:[{content:["none",R]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[H]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(V(),[ut])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ft]}],"bg-color":[{bg:[r]}],"gradient-from":[{from:[I]}],"gradient-via":[{via:[I]}],"gradient-to":[{to:[I]}],rounded:[{rounded:[l]}],"rounded-t":[{"rounded-t":[l]}],"rounded-r":[{"rounded-r":[l]}],"rounded-b":[{"rounded-b":[l]}],"rounded-l":[{"rounded-l":[l]}],"rounded-tl":[{"rounded-tl":[l]}],"rounded-tr":[{"rounded-tr":[l]}],"rounded-br":[{"rounded-br":[l]}],"rounded-bl":[{"rounded-bl":[l]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[H]}],"border-style":[{border:[].concat(z(),["hidden"])}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[H]}],"divide-style":[{divide:z()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[""].concat(z())}],"outline-offset":[{"outline-offset":[W]}],"outline-w":[{outline:[W]}],"outline-color":[{outline:[r]}],"ring-w":[{ring:he()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[r]}],"ring-opacity":[{"ring-opacity":[H]}],"ring-offset-w":[{"ring-offset":[W]}],"ring-offset-color":[{"ring-offset":[r]}],shadow:[{shadow:["","inner","none",B,pt]}],"shadow-color":[{shadow:[ce]}],opacity:[{opacity:[H]}],"mix-blend":[{"mix-blend":D()}],"bg-blend":[{"bg-blend":D()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",B,R]}],grayscale:[{grayscale:[v]}],"hue-rotate":[{"hue-rotate":[g]}],invert:[{invert:[x]}],saturate:[{saturate:[E]}],sepia:[{sepia:[fe]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[v]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[g]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[H]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[u]}],"border-spacing-x":[{"border-spacing-x":[u]}],"border-spacing-y":[{"border-spacing-y":[u]}],"table-layout":[{table:["auto","fixed"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",R]}],duration:[{duration:U()}],ease:[{ease:["linear","in","out","in-out",R]}],delay:[{delay:U()}],animate:[{animate:["none","spin","ping","pulse","bounce",R]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[te]}],"scale-x":[{"scale-x":[te]}],"scale-y":[{"scale-y":[te]}],rotate:[{rotate:[le,R]}],"translate-x":[{"translate-x":[be]}],"translate-y":[{"translate-y":[be]}],"skew-x":[{"skew-x":[pe]}],"skew-y":[{"skew-y":[pe]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",R]}],accent:[{accent:["auto",r]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",R]}],"caret-color":[{caret:[r]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":[t]}],"scroll-mx":[{"scroll-mx":[t]}],"scroll-my":[{"scroll-my":[t]}],"scroll-mt":[{"scroll-mt":[t]}],"scroll-mr":[{"scroll-mr":[t]}],"scroll-mb":[{"scroll-mb":[t]}],"scroll-ml":[{"scroll-ml":[t]}],"scroll-p":[{"scroll-p":[t]}],"scroll-px":[{"scroll-px":[t]}],"scroll-py":[{"scroll-py":[t]}],"scroll-pt":[{"scroll-pt":[t]}],"scroll-pr":[{"scroll-pr":[t]}],"scroll-pb":[{"scroll-pb":[t]}],"scroll-pl":[{"scroll-pl":[t]}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",R]}],fill:[{fill:[r,"none"]}],"stroke-w":[{stroke:[W,Me]}],stroke:[{stroke:[r,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-t","rounded-r","rounded-b","rounded-l","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]}}}var mt=nt(ht);function sr(r){var t,n,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r))for(t=0;t<r.length;t++)r[t]&&(n=sr(r[t]))&&(o&&(o+=" "),o+=n);else for(t in r)r[t]&&(o&&(o+=" "),o+=t);return o}function xt(){for(var r,t,n=0,o="";n<arguments.length;)(r=arguments[n++])&&(t=sr(r))&&(o&&(o+=" "),o+=t);return o}function ue(...r){return mt(xt(r))}function yt({className:r="",size:t="1em"}){return s.jsxs("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:[s.jsx("path",{d:"M12.001 7.7395C12.2367 7.73978 12.4591 7.85076 12.6006 8.03931L15.376 11.7395C15.5459 11.9666 15.5731 12.2708 15.4463 12.5247C15.3193 12.7785 15.0592 12.9395 14.7754 12.9397H12.75V17.2766C12.7499 17.6907 12.4142 18.0266 12 18.0266C11.5858 18.0266 11.2501 17.6907 11.25 17.2766V12.9397H9.22559C8.94169 12.9397 8.68182 12.7785 8.55469 12.5247C8.42778 12.2706 8.45558 11.9667 8.62598 11.7395L11.4004 8.03931L11.457 7.97192C11.5977 7.82422 11.7945 7.7395 12.001 7.7395Z",fill:"currentColor"}),s.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12 2.65161C17.5228 2.65161 22 7.12876 22 12.6516C22 18.1744 17.5228 22.6516 12 22.6516C6.47715 22.6516 2 18.1744 2 12.6516C2 7.12876 6.47715 2.65161 12 2.65161ZM12 4.15161C7.30558 4.15161 3.5 7.95719 3.5 12.6516C3.5 17.346 7.30558 21.1516 12 21.1516C16.6944 21.1516 20.5 17.346 20.5 12.6516C20.5 7.95719 16.6944 4.15161 12 4.15161Z",fill:"currentColor"})]})}function wt({className:r="",size:t="1em"}){return s.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,children:s.jsx("path",{d:"M12 2C10.0222 2 8.08879 2.58649 6.4443 3.6853C4.79981 4.78412 3.51809 6.3459 2.76121 8.17316C2.00433 10.0004 1.8063 12.0111 2.19215 13.9509C2.578 15.8907 3.53041 17.6725 4.92894 19.0711C6.32746 20.4696 8.10929 21.422 10.0491 21.8078C11.9889 22.1937 13.9996 21.9957 15.8268 21.2388C17.6541 20.4819 19.2159 19.2002 20.3147 17.5557C21.4135 15.9112 22 13.9778 22 12C21.9971 9.34871 20.9426 6.80684 19.0679 4.9321C17.1932 3.05736 14.6513 2.00287 12 2ZM15.7092 11.7642C15.6751 11.8349 15.6217 11.8945 15.5553 11.9363C15.4888 11.978 15.4118 12.0001 15.3333 12H12.8333V16.1667C12.8333 16.3877 12.7455 16.5996 12.5893 16.7559C12.433 16.9122 12.221 17 12 17C11.779 17 11.567 16.9122 11.4107 16.7559C11.2545 16.5996 11.1667 16.3877 11.1667 16.1667V12H8.66667C8.58819 12 8.5113 11.9779 8.44484 11.9362C8.37839 11.8945 8.32507 11.8348 8.29102 11.7641C8.25697 11.6934 8.24359 11.6145 8.2524 11.5365C8.26121 11.4586 8.29187 11.3847 8.34084 11.3233L11.6742 7.15667C11.7146 7.10991 11.7646 7.07241 11.8209 7.04671C11.8771 7.021 11.9382 7.0077 12 7.0077C12.0618 7.0077 12.1229 7.021 12.1791 7.04671C12.2354 7.07241 12.2854 7.10991 12.3258 7.15667L15.6592 11.3233C15.7082 11.3846 15.7389 11.4585 15.7477 11.5365C15.7566 11.6145 15.7432 11.6934 15.7092 11.7642Z",fill:"#1DA56A"})})}const Ct=({tooltipContent:r="Send message",className:t,...n})=>{const[o,i]=_.useState(!1);return s.jsx(S.Tooltip,{content:r,children:s.jsx(S.IconButton,{variant:"text",color:"gray",className:ue(t,"hover:rounded-lg hover:bg-gray-100"),type:"submit",onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),...n,children:o?s.jsx(wt,{className:"size-6 "}):s.jsx(yt,{className:"size-6 "})})})},lr=({onSubmit:r=()=>{},...t})=>s.jsx(Hr,{autoFocus:!0,placeholder:"Write your message here",className:"pl-1 block w-full focus:outline-none max-h-32 resize-none placeholder:text-gray-400",onKeyDown:n=>{n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),r())},...t}),jt=({bottom:r,right:t,top:n,textArea:o=s.jsx(lr,{}),...i})=>s.jsxs("div",{className:"border gap-2 rounded-lg bg-white shadow-[0px_2px_2px_0px_#0000000A,0px_8px_8px_-8px_#0000000A] border-gray-100",...i,children:[n,s.jsxs("div",{className:"flex gap-2 p-4 rounded-lg bg-white",children:[s.jsxs("div",{className:"grow flex flex-col items-start justify-center",children:[o,r]}),s.jsx("div",{className:"shrink flex items-end justify-end",children:t})]})]}),kt=Object.freeze(Object.defineProperty({__proto__:null,Container:jt,SubmitButton:Ct,Textarea:lr},Symbol.toStringTag,{value:"Module"})),re=_.createContext(void 0),cr=({children:r,isCollapsed:t,onSwitchLayout:n})=>{const[o,i]=_.useState(!1),[l,u]=_.useState(!1),d=t!==void 0?t:o,f=v=>{const g=v??!d;t===void 0&&i(g),n==null||n(g)};return s.jsx(re.Provider,{value:{isCollapsed:d,toggleCollapsed:f,isHovered:l,setIsHovered:u},children:r})},dr=({className:r,children:t,...n})=>{const{isCollapsed:o,isHovered:i,setIsHovered:l}=_.useContext(re);return s.jsx("div",{className:ue(r,o&&"shadow-lg",o&&!i?"w-auto":"w-[280px]","bg-gray-50 p-2 flex flex-col justify-between items-center rounded-lg"),onMouseEnter:()=>o&&l(!0),onMouseLeave:()=>o&&l(!1),...n,children:t})},Rt=({className:r,children:t,isCollapsed:n,onSwitchLayout:o,...i})=>s.jsx(cr,{isCollapsed:n,onSwitchLayout:o,children:s.jsx(dr,{className:r,...i,children:t})}),_t=({icon:r,children:t,...n})=>{const{isCollapsed:o,isHovered:i}=_.useContext(re);return s.jsxs("button",{className:"flex items-center gap-2 w-full hover:bg-gray-100 text-caption-1-em text-gray-600 hover:text-gray-900 h-[38px] rounded-lg px-2",...n,children:[r," ",(!o||i)&&t]})};function Et(r){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM3.75 3.5C4.16421 3.5 4.5 3.83579 4.5 4.25V11.75C4.5 12.1642 4.16421 12.5 3.75 12.5C3.33579 12.5 3 12.1642 3 11.75V4.25C3 3.83579 3.33579 3.5 3.75 3.5Z",fill:"currentColor"})})}function St(r){return s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M13 1C14.6569 1 16 2.34315 16 4V12L15.9961 12.1543C15.9158 13.7394 14.6051 15 13 15H3L2.8457 14.9961C1.31166 14.9184 0.0816253 13.6883 0.00390625 12.1543L0 12V4C1.28853e-07 2.34315 1.34315 1 3 1H13ZM3 2.5C2.17157 2.5 1.5 3.17157 1.5 4V12C1.5 12.8284 2.17157 13.5 3 13.5H13C13.8284 13.5 14.5 12.8284 14.5 12V4C14.5 3.17157 13.8284 2.5 13 2.5H3ZM7.5 4C7.77614 4 8 4.22386 8 4.5V11.5C8 11.7761 7.77614 12 7.5 12H3.5C3.22386 12 3 11.7761 3 11.5V4.5C3 4.22386 3.22386 4 3.5 4H7.5Z",fill:"currentColor"})})}const Tt=()=>{const{isCollapsed:r,isHovered:t,toggleCollapsed:n}=_.useContext(re);return r&&!t?null:s.jsx(S.IconButton,{variant:"text",color:"gray",onClick:()=>n(),children:r?s.jsx(Et,{className:"size-4"}):s.jsx(St,{className:"size-4"})})},Mt=({children:r,className:t,icon:n,isActive:o,trailing:i,...l})=>{const{isCollapsed:u,isHovered:d}=_.useContext(re);return s.jsxs("div",{className:ue(o?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg px-2 cursor-pointer group",t),...l,children:[s.jsxs("div",{className:"flex items-center gap-2",children:[n,(!u||d)&&r]}),(!u||d)&&i]})},It=({children:r,className:t,isActive:n,trailing:o,icon:i,...l})=>{const{isCollapsed:u,isHovered:d}=_.useContext(re);return s.jsxs("div",{className:ue(n?"!text-gray-900":"!text-gray-600","flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg pr-2 pl-3 cursor-pointer group text-sm",t),...l,children:[s.jsxs("div",{className:"flex items-center gap-2 overflow-auto",children:[(!u||d)&&i," ",(!u||d)&&r]}),(!u||d)&&o]})},Pt=Object.freeze(Object.defineProperty({__proto__:null,Button:_t,Container:dr,Item:Mt,Layout:Rt,Provider:cr,SecondaryItem:It,ToggleCollapseButton:Tt},Symbol.toStringTag,{value:"Module"})),At=r=>s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M12.7197 2.21954C13.0125 1.92683 13.4874 1.92694 13.7803 2.21954C14.073 2.51241 14.073 2.98722 13.7803 3.28008L9.05955 7.99981L13.7803 12.7205L13.832 12.7772C14.0721 13.0717 14.0548 13.5065 13.7803 13.7811C13.5057 14.0555 13.0709 14.0729 12.7764 13.8328L12.7197 13.7811L7.99901 9.06036L3.27928 13.7811C2.9864 14.0737 2.51156 14.0738 2.21873 13.7811C1.92618 13.4882 1.92616 13.0133 2.21873 12.7205L6.93846 7.99981L2.21873 3.28008C1.92615 2.98722 1.92607 2.51235 2.21873 2.21954C2.51154 1.92673 2.98637 1.92691 3.27928 2.21954L7.99901 6.93926L12.7197 2.21954Z",fill:"currentColor"})}),Ot=({onClose:r,right:t,children:n})=>s.jsxs("div",{className:"bg-gray-50 flex gap-2 items-center px-2 py-3 rounded-t-xl",children:[s.jsx("div",{className:"grow text-subheader-em",children:n}),s.jsxs("div",{className:"flex items-center gap-4",children:[t,s.jsx(S.IconButton,{variant:"text",size:"sm",color:"gray",className:"rounded-full",onClick:r,children:s.jsx(At,{className:"size-4 text-gray-600"})})]})]}),ur={Header:Ot},fr=r=>s.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...r,children:s.jsx("path",{d:"M2.25 5.5C2.66421 5.5 3 5.83579 3 6.25C3 6.66421 2.66421 7 2.25 7H2C1.72386 7 1.5 7.22386 1.5 7.5V13.5C1.5 13.7761 1.72386 14 2 14H8C8.27614 14 8.5 13.7761 8.5 13.5V13.25C8.5 12.8358 8.83579 12.5 9.25 12.5C9.66421 12.5 10 12.8358 10 13.25V13.5C10 14.5357 9.21278 15.387 8.2041 15.4893L8 15.5H2L1.7959 15.4893C0.854346 15.3938 0.1062 14.6457 0.0107422 13.7041L0 13.5V7.5C0 6.39543 0.895431 5.5 2 5.5H2.25ZM13.75 0C14.7165 1.28853e-07 15.5 0.783502 15.5 1.75V9.75C15.5 10.7165 14.7165 11.5 13.75 11.5H5.75C4.7835 11.5 4 10.7165 4 9.75V1.75C4 0.783502 4.7835 8.0532e-09 5.75 0H13.75ZM5.75 1.5C5.61193 1.5 5.5 1.61193 5.5 1.75V9.75C5.5 9.88807 5.61193 10 5.75 10H13.75C13.8881 10 14 9.88807 14 9.75V1.75C14 1.61193 13.8881 1.5 13.75 1.5H5.75ZM11.75 3C11.795 3 11.839 3.00413 11.8818 3.01172C11.8874 3.0127 11.8929 3.01354 11.8984 3.01465C11.9118 3.01733 11.9244 3.02298 11.9375 3.02637C11.9707 3.03495 12.0041 3.04344 12.0361 3.05664C12.0653 3.06868 12.092 3.08512 12.1191 3.10059C12.1763 3.1331 12.2316 3.171 12.2803 3.21973C12.3287 3.26812 12.366 3.3232 12.3984 3.37988C12.414 3.40703 12.4303 3.43375 12.4424 3.46289C12.4631 3.51289 12.4779 3.56459 12.4873 3.61719C12.495 3.66035 12.5 3.70462 12.5 3.75V7.75C12.5 8.16421 12.1642 8.5 11.75 8.5C11.3358 8.5 11 8.16421 11 7.75V5.56055L8.28027 8.28027C7.98738 8.57317 7.51262 8.57317 7.21973 8.28027C6.92683 7.98738 6.92683 7.51262 7.21973 7.21973L9.93945 4.5H7.75C7.33579 4.5 7 4.16421 7 3.75C7 3.33579 7.33579 3 7.75 3H11.75Z",fill:"currentColor"})}),Nt=(r=100,t=50,n=990,o=10)=>{const[i,l]=_.useState(r);return[i,{...{zoomIn:()=>l(f=>Math.min(f+o,n)),zoomOut:()=>l(f=>Math.max(f-o,t)),reset:()=>l(r),zoomToValue:f=>l(Math.max(t,Math.min(f,n)))},handleWheel:f=>{f.preventDefault();const v=f.deltaY>0?-o:o;l(g=>Math.max(t,Math.min(g+v,n)))}}]},zt=()=>{const[r,t]=_.useState(0);return[r,{rotateClockwise:()=>t(o=>(o+90)%360),rotateCounterClockwise:()=>t(o=>(o-90+360)%360)}]},Lt=()=>{const[r,t]=_.useState({x:0,y:0}),[n,o]=_.useState(!1),[i,l]=_.useState({x:0,y:0});return[{pan:r,isDragging:n},{handleMouseDown:g=>{o(!0),l({x:g.clientX-r.x,y:g.clientY-r.y})},handleMouseMove:g=>{n&&t({x:g.clientX-i.x,y:g.clientY-i.y})},handleMouseUp:()=>{o(!1)},reset:()=>t({x:0,y:0})}]},Vt=(r=1)=>{const[t,n]=_.useState(1);return[t,{nextPage:()=>n(i=>Math.min(i+1,r)),prevPage:()=>n(i=>Math.max(i-1,1)),goToPage:i=>n(Math.max(1,Math.min(i,r)))}]},Wt=({onClose:r,totalPages:t,getImageSrc:n,title:o="PDF Viewer"})=>{const[i,l]=Nt(),[u,d]=zt(),[{pan:f,isDragging:v},g]=Lt(),[x,j]=Vt(t),I=s.jsx(S.IconButton,{variant:"text",color:"gray",children:s.jsx(fr,{className:"size-4"})});return s.jsxs("div",{className:"shadow rounded-t-lg",children:[s.jsx(ur.Header,{onClose:r,right:I,children:o}),s.jsx("div",{className:"flex-1 grid",children:s.jsxs("div",{className:"grid relative",children:[s.jsx("div",{className:"overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative",onMouseMove:g.handleMouseMove,onMouseUp:g.handleMouseUp,onMouseLeave:g.handleMouseUp,onWheel:l.handleWheel,children:s.jsx("div",{style:{transform:`translate(${f.x}px, ${f.y}px)`,cursor:v?"grabbing":"grab",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center"},onMouseDown:g.handleMouseDown,children:s.jsx("div",{style:{transform:`scale(${i/100}) rotate(${u}deg)`,transformOrigin:"center",transition:v?"none":"transform 0.3s ease"},children:s.jsx("img",{src:n(x),style:{userSelect:"none",pointerEvents:"none"}})})})}),s.jsxs("div",{className:"col-start-1 row-start-1 self-end p-4 flex gap-2 justify-between w-full z-10",children:[s.jsxs(S.ButtonGroup,{className:"divide-x-0 h-[52px]",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:l.zoomOut,children:s.jsx(ee.Icon,{icon:"lucide:minus"})}),s.jsx(S.Tooltip,{content:"Click to reset zoom and pan",children:s.jsxs("button",{className:"!bg-white text-center cursor-pointer w-[60px]",onClick:()=>{l.reset(),g.reset()},children:[i,"%"]})}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:l.zoomIn,children:s.jsx(ee.Icon,{icon:"lucide:plus"})})]}),s.jsxs(S.ButtonGroup,{className:"divide-x-0 h-[52px]",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:d.rotateClockwise,children:s.jsx(ee.Icon,{icon:"lucide:iteration-cw"})}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:d.rotateCounterClockwise,children:s.jsx(ee.Icon,{icon:"lucide:iteration-ccw"})})]}),s.jsxs(S.ButtonGroup,{className:"divide-x-0 ",children:[s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:j.prevPage,disabled:x===1,children:s.jsx(ee.Icon,{icon:"lucide:chevron-left"})}),s.jsx("input",{className:"bg-white pl-4 flex items-center w-[50px] text-center focus:outline-none w-[60px]",value:x,onChange:P=>{const N=parseInt(P.target.value);isNaN(N)||j.goToPage(N)},type:"number",min:"1",max:t}),s.jsxs("div",{className:"flex items-center bg-white px-2",children:["of ",t]}),s.jsx(S.IconButton,{variant:"filled",color:"white",className:"py-[26px]",onClick:j.nextPage,disabled:x===t,children:s.jsx(ee.Icon,{icon:"lucide:chevron-right"})})]})]})]})})]})},Ht=r=>{const[t,n]=_.useState({width:1,height:2});return _.useEffect(()=>{if(r.current){const{current:o}=r,i=o.getBoundingClientRect(),{width:l,height:u}=i;n({width:Math.round(l),height:Math.round(u)})}},[r]),t},Dt=({onClose:r,src:t,title:n="PDF Viewer",className:o})=>{const i=_.useRef(null);Ht(i);const l=s.jsx(S.IconButton,{variant:"text",color:"gray",children:s.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:s.jsx(fr,{className:"size-4"})})});return s.jsxs("div",{className:ue("shadow rounded-t-lg flex flex-col h-full",o),children:[s.jsx(ur.Header,{onClose:r,right:l,children:n}),s.jsx("div",{className:"flex-1 grid",children:s.jsx("div",{className:"grid relative",children:s.jsx("div",{ref:i,className:"overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative",children:s.jsx("embed",{src:`${t}#view=FitH&navpanes=0&scrollbar=0`,type:"application/pdf",width:"100%",height:"100%",style:{border:"none"}})})})})]})};exports.HelloWorld=$r;exports.ImageViewer=Wt;exports.InputPrompt=kt;exports.PdfViewer=Dt;exports.Sidebar=Pt;exports.materialTheme=Fr;exports.tailwindTheme=Dr;
package/dist/index.esm.js CHANGED
@@ -716,16 +716,16 @@ function Jr() {
716
716
  y.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, y);
717
717
  }
718
718
  }
719
- var fe = !1, pe = !1, ge = !1, be = !1, oe = !1, K;
719
+ var pe = !1, ge = !1, be = !1, ve = !1, oe = !1, K;
720
720
  K = Symbol.for("react.module.reference");
721
- function ve(e) {
722
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === l || oe || e === i || e === v || e === g || be || e === T || fe || pe || ge || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === x || e.$$typeof === u || e.$$typeof === d || e.$$typeof === f || // This needs to include all possible module reference object
721
+ function he(e) {
722
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === l || oe || e === i || e === v || e === g || ve || e === T || pe || ge || be || typeof e == "object" && e !== null && (e.$$typeof === j || e.$$typeof === x || e.$$typeof === u || e.$$typeof === d || e.$$typeof === f || // This needs to include all possible module reference object
723
723
  // types supported by any Flight configuration anywhere since
724
724
  // we don't know which Flight build this will end up being used
725
725
  // with.
726
726
  e.$$typeof === K || e.getModuleId !== void 0));
727
727
  }
728
- function he(e, a, c) {
728
+ function me(e, a, c) {
729
729
  var p = e.displayName;
730
730
  if (p)
731
731
  return p;
@@ -765,7 +765,7 @@ function Jr() {
765
765
  var c = e;
766
766
  return U(c._context) + ".Provider";
767
767
  case f:
768
- return he(e, e.render, "ForwardRef");
768
+ return me(e, e.render, "ForwardRef");
769
769
  case x:
770
770
  var p = e.displayName || null;
771
771
  return p !== null ? p : z(e.type) || "Memo";
@@ -843,7 +843,7 @@ function Jr() {
843
843
  }
844
844
  }
845
845
  var je = P.ReactCurrentDispatcher, ke;
846
- function me(e, a, c) {
846
+ function xe(e, a, c) {
847
847
  {
848
848
  if (ke === void 0)
849
849
  try {
@@ -856,16 +856,16 @@ function Jr() {
856
856
  ` + ke + e;
857
857
  }
858
858
  }
859
- var Re = !1, xe;
859
+ var Re = !1, ye;
860
860
  {
861
861
  var xr = typeof WeakMap == "function" ? WeakMap : Map;
862
- xe = new xr();
862
+ ye = new xr();
863
863
  }
864
864
  function Ve(e, a) {
865
865
  if (!e || Re)
866
866
  return "";
867
867
  {
868
- var c = xe.get(e);
868
+ var c = ye.get(e);
869
869
  if (c !== void 0)
870
870
  return c;
871
871
  }
@@ -920,7 +920,7 @@ function Jr() {
920
920
  if (C--, k--, k < 0 || b[C] !== S[k]) {
921
921
  var N = `
922
922
  ` + b[C].replace(" at new ", " at ");
923
- return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && xe.set(e, N), N;
923
+ return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && ye.set(e, N), N;
924
924
  }
925
925
  while (C >= 1 && k >= 0);
926
926
  break;
@@ -929,8 +929,8 @@ function Jr() {
929
929
  } finally {
930
930
  Re = !1, je.current = y, mr(), Error.prepareStackTrace = m;
931
931
  }
932
- var Q = e ? e.displayName || e.name : "", Y = Q ? me(Q) : "";
933
- return typeof e == "function" && xe.set(e, Y), Y;
932
+ var Q = e ? e.displayName || e.name : "", Y = Q ? xe(Q) : "";
933
+ return typeof e == "function" && ye.set(e, Y), Y;
934
934
  }
935
935
  function yr(e, a, c) {
936
936
  return Ve(e, !1);
@@ -939,29 +939,29 @@ function Jr() {
939
939
  var a = e.prototype;
940
940
  return !!(a && a.isReactComponent);
941
941
  }
942
- function ye(e, a, c) {
942
+ function we(e, a, c) {
943
943
  if (e == null)
944
944
  return "";
945
945
  if (typeof e == "function")
946
946
  return Ve(e, wr(e));
947
947
  if (typeof e == "string")
948
- return me(e);
948
+ return xe(e);
949
949
  switch (e) {
950
950
  case v:
951
- return me("Suspense");
951
+ return xe("Suspense");
952
952
  case g:
953
- return me("SuspenseList");
953
+ return xe("SuspenseList");
954
954
  }
955
955
  if (typeof e == "object")
956
956
  switch (e.$$typeof) {
957
957
  case f:
958
958
  return yr(e.render);
959
959
  case x:
960
- return ye(e.type, a, c);
960
+ return we(e.type, a, c);
961
961
  case j: {
962
962
  var p = e, m = p._payload, y = p._init;
963
963
  try {
964
- return ye(y(m), a, c);
964
+ return we(y(m), a, c);
965
965
  } catch {
966
966
  }
967
967
  }
@@ -969,9 +969,9 @@ function Jr() {
969
969
  return "";
970
970
  }
971
971
  var ae = Object.prototype.hasOwnProperty, We = {}, He = P.ReactDebugCurrentFrame;
972
- function we(e) {
972
+ function Ce(e) {
973
973
  if (e) {
974
- var a = e._owner, c = ye(e.type, e._source, a ? a.type : null);
974
+ var a = e._owner, c = we(e.type, e._source, a ? a.type : null);
975
975
  He.setExtraStackFrame(c);
976
976
  } else
977
977
  He.setExtraStackFrame(null);
@@ -991,7 +991,7 @@ function Jr() {
991
991
  } catch (C) {
992
992
  b = C;
993
993
  }
994
- b && !(b instanceof Error) && (we(m), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", c, h, typeof b), we(null)), b instanceof Error && !(b.message in We) && (We[b.message] = !0, we(m), _("Failed %s type: %s", c, b.message), we(null));
994
+ b && !(b instanceof Error) && (Ce(m), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", c, h, typeof b), Ce(null)), b instanceof Error && !(b.message in We) && (We[b.message] = !0, Ce(m), _("Failed %s type: %s", c, b.message), Ce(null));
995
995
  }
996
996
  }
997
997
  }
@@ -1116,7 +1116,7 @@ function Jr() {
1116
1116
  var Ee = P.ReactCurrentOwner, Be = P.ReactDebugCurrentFrame;
1117
1117
  function X(e) {
1118
1118
  if (e) {
1119
- var a = e._owner, c = ye(e.type, e._source, a ? a.type : null);
1119
+ var a = e._owner, c = we(e.type, e._source, a ? a.type : null);
1120
1120
  Be.setExtraStackFrame(c);
1121
1121
  } else
1122
1122
  Be.setExtraStackFrame(null);
@@ -1226,7 +1226,7 @@ Check the top-level render call using <` + c + ">.");
1226
1226
  var qe = {};
1227
1227
  function Xe(e, a, c, p, m, y) {
1228
1228
  {
1229
- var h = ve(e);
1229
+ var h = he(e);
1230
1230
  if (!h) {
1231
1231
  var b = "";
1232
1232
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -1557,13 +1557,13 @@ function yt(r) {
1557
1557
  return pt.test(r);
1558
1558
  }
1559
1559
  function wt() {
1560
- var r = w("colors"), t = w("spacing"), n = w("blur"), o = w("brightness"), i = w("borderColor"), l = w("borderRadius"), u = w("borderSpacing"), d = w("borderWidth"), f = w("contrast"), v = w("grayscale"), g = w("hueRotate"), x = w("invert"), j = w("gap"), T = w("gradientColorStops"), M = w("inset"), I = w("margin"), W = w("opacity"), P = w("padding"), _ = w("saturate"), te = w("scale"), fe = w("sepia"), pe = w("skew"), ge = w("space"), be = w("translate"), oe = function() {
1560
+ var r = w("colors"), t = w("spacing"), n = w("blur"), o = w("brightness"), i = w("borderColor"), l = w("borderRadius"), u = w("borderSpacing"), d = w("borderWidth"), f = w("contrast"), v = w("grayscale"), g = w("hueRotate"), x = w("invert"), j = w("gap"), T = w("gradientColorStops"), M = w("inset"), I = w("margin"), W = w("opacity"), P = w("padding"), _ = w("saturate"), te = w("scale"), pe = w("sepia"), ge = w("skew"), be = w("space"), ve = w("translate"), oe = function() {
1561
1561
  return ["auto", "contain", "none"];
1562
1562
  }, K = function() {
1563
1563
  return ["auto", "hidden", "clip", "visible", "scroll"];
1564
- }, ve = function() {
1565
- return ["auto", t];
1566
1564
  }, he = function() {
1565
+ return ["auto", t];
1566
+ }, me = function() {
1567
1567
  return ["", L];
1568
1568
  }, U = function() {
1569
1569
  return ["auto", de, R];
@@ -1594,15 +1594,15 @@ function wt() {
1594
1594
  borderColor: [r],
1595
1595
  borderRadius: ["none", "", "full", $, Z],
1596
1596
  borderSpacing: [t],
1597
- borderWidth: he(),
1597
+ borderWidth: me(),
1598
1598
  contrast: G(),
1599
1599
  grayscale: F(),
1600
1600
  hueRotate: B(),
1601
1601
  invert: F(),
1602
1602
  gap: [t],
1603
1603
  gradientColorStops: [r],
1604
- inset: ve(),
1605
- margin: ve(),
1604
+ inset: he(),
1605
+ margin: he(),
1606
1606
  opacity: G(),
1607
1607
  padding: [t],
1608
1608
  saturate: G(),
@@ -2133,7 +2133,7 @@ function wt() {
2133
2133
  * @see https://tailwindcss.com/docs/space
2134
2134
  */
2135
2135
  "space-x": [{
2136
- "space-x": [ge]
2136
+ "space-x": [be]
2137
2137
  }],
2138
2138
  /**
2139
2139
  * Space Between X Reverse
@@ -2145,7 +2145,7 @@ function wt() {
2145
2145
  * @see https://tailwindcss.com/docs/space
2146
2146
  */
2147
2147
  "space-y": [{
2148
- "space-y": [ge]
2148
+ "space-y": [be]
2149
2149
  }],
2150
2150
  /**
2151
2151
  * Space Between Y Reverse
@@ -2745,7 +2745,7 @@ function wt() {
2745
2745
  * @see https://tailwindcss.com/docs/ring-width
2746
2746
  */
2747
2747
  "ring-w": [{
2748
- ring: he()
2748
+ ring: me()
2749
2749
  }],
2750
2750
  /**
2751
2751
  * Ring Width Inset
@@ -2886,7 +2886,7 @@ function wt() {
2886
2886
  * @see https://tailwindcss.com/docs/sepia
2887
2887
  */
2888
2888
  sepia: [{
2889
- sepia: [fe]
2889
+ sepia: [pe]
2890
2890
  }],
2891
2891
  /**
2892
2892
  * Backdrop Filter
@@ -2957,7 +2957,7 @@ function wt() {
2957
2957
  * @see https://tailwindcss.com/docs/backdrop-sepia
2958
2958
  */
2959
2959
  "backdrop-sepia": [{
2960
- "backdrop-sepia": [fe]
2960
+ "backdrop-sepia": [pe]
2961
2961
  }],
2962
2962
  // Tables
2963
2963
  /**
@@ -3072,28 +3072,28 @@ function wt() {
3072
3072
  * @see https://tailwindcss.com/docs/translate
3073
3073
  */
3074
3074
  "translate-x": [{
3075
- "translate-x": [be]
3075
+ "translate-x": [ve]
3076
3076
  }],
3077
3077
  /**
3078
3078
  * Translate Y
3079
3079
  * @see https://tailwindcss.com/docs/translate
3080
3080
  */
3081
3081
  "translate-y": [{
3082
- "translate-y": [be]
3082
+ "translate-y": [ve]
3083
3083
  }],
3084
3084
  /**
3085
3085
  * Skew X
3086
3086
  * @see https://tailwindcss.com/docs/skew
3087
3087
  */
3088
3088
  "skew-x": [{
3089
- "skew-x": [pe]
3089
+ "skew-x": [ge]
3090
3090
  }],
3091
3091
  /**
3092
3092
  * Skew Y
3093
3093
  * @see https://tailwindcss.com/docs/skew
3094
3094
  */
3095
3095
  "skew-y": [{
3096
- "skew-y": [pe]
3096
+ "skew-y": [ge]
3097
3097
  }],
3098
3098
  /**
3099
3099
  * Transform Origin
@@ -3382,7 +3382,7 @@ function jt() {
3382
3382
  for (var r, t, n = 0, o = ""; n < arguments.length; ) (r = arguments[n++]) && (t = ur(r)) && (o && (o += " "), o += t);
3383
3383
  return o;
3384
3384
  }
3385
- function Ce(...r) {
3385
+ function fe(...r) {
3386
3386
  return Ct(jt(r));
3387
3387
  }
3388
3388
  function kt({ className: r = "", size: t = "1em" }) {
@@ -3447,7 +3447,7 @@ const _t = ({
3447
3447
  {
3448
3448
  variant: "text",
3449
3449
  color: "gray",
3450
- className: Ce(t, "hover:rounded-lg hover:bg-gray-100"),
3450
+ className: fe(t, "hover:rounded-lg hover:bg-gray-100"),
3451
3451
  type: "submit",
3452
3452
  onMouseEnter: () => i(!0),
3453
3453
  onMouseLeave: () => i(!1),
@@ -3522,7 +3522,7 @@ const _t = ({
3522
3522
  return /* @__PURE__ */ s.jsx(
3523
3523
  "div",
3524
3524
  {
3525
- className: Ce(
3525
+ className: fe(
3526
3526
  r,
3527
3527
  o && "shadow-lg",
3528
3528
  o && !i ? "w-auto" : "w-[280px]",
@@ -3610,7 +3610,7 @@ const At = () => {
3610
3610
  return /* @__PURE__ */ s.jsxs(
3611
3611
  "div",
3612
3612
  {
3613
- className: Ce(
3613
+ className: fe(
3614
3614
  o ? "!text-gray-900" : "!text-gray-600",
3615
3615
  "flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg px-2 cursor-pointer group",
3616
3616
  t
@@ -3637,7 +3637,7 @@ const At = () => {
3637
3637
  return /* @__PURE__ */ s.jsxs(
3638
3638
  "div",
3639
3639
  {
3640
- className: Ce(
3640
+ className: fe(
3641
3641
  n ? "!text-gray-900" : "!text-gray-600",
3642
3642
  "flex items-center justify-between w-full hover:bg-gray-100 text-caption-1-em hover:text-gray-900 h-[38px] rounded-lg pr-2 pl-3 cursor-pointer group text-sm",
3643
3643
  t
@@ -3772,11 +3772,11 @@ const At = () => {
3772
3772
  const [i, l] = Lt(), [u, d] = Vt(), [{ pan: f, isDragging: v }, g] = Wt(), [x, j] = Ht(t), T = /* @__PURE__ */ s.jsx(V, { variant: "text", color: "gray", children: /* @__PURE__ */ s.jsx(vr, { className: "size-4" }) });
3773
3773
  return /* @__PURE__ */ s.jsxs("div", { className: "shadow rounded-t-lg", children: [
3774
3774
  /* @__PURE__ */ s.jsx(br.Header, { onClose: r, right: T, children: o }),
3775
- /* @__PURE__ */ s.jsx("div", { className: "grid", children: /* @__PURE__ */ s.jsxs("div", { className: "grid relative", children: [
3775
+ /* @__PURE__ */ s.jsx("div", { className: "flex-1 grid", children: /* @__PURE__ */ s.jsxs("div", { className: "grid relative", children: [
3776
3776
  /* @__PURE__ */ s.jsx(
3777
3777
  "div",
3778
3778
  {
3779
- className: "overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative",
3779
+ className: "overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative",
3780
3780
  onMouseMove: g.handleMouseMove,
3781
3781
  onMouseUp: g.handleMouseUp,
3782
3782
  onMouseLeave: g.handleMouseUp,
@@ -3929,23 +3929,26 @@ const At = () => {
3929
3929
  }, Xt = ({
3930
3930
  onClose: r,
3931
3931
  src: t,
3932
- title: n = "PDF Viewer"
3932
+ title: n = "PDF Viewer",
3933
+ className: o
3933
3934
  }) => {
3934
- const o = Br(null), i = Dt(o), l = /* @__PURE__ */ s.jsx(V, { variant: "text", color: "gray", children: /* @__PURE__ */ s.jsx("a", { href: t, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ s.jsx(vr, { className: "size-4" }) }) });
3935
- return /* @__PURE__ */ s.jsxs("div", { className: "shadow rounded-t-lg", children: [
3935
+ const i = Br(null);
3936
+ Dt(i);
3937
+ const l = /* @__PURE__ */ s.jsx(V, { variant: "text", color: "gray", children: /* @__PURE__ */ s.jsx("a", { href: t, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ s.jsx(vr, { className: "size-4" }) }) });
3938
+ return /* @__PURE__ */ s.jsxs("div", { className: fe("shadow rounded-t-lg flex flex-col h-full", o), children: [
3936
3939
  /* @__PURE__ */ s.jsx(br.Header, { onClose: r, right: l, children: n }),
3937
- /* @__PURE__ */ s.jsx("div", { className: "grid", children: /* @__PURE__ */ s.jsx("div", { className: "grid relative", children: /* @__PURE__ */ s.jsx(
3940
+ /* @__PURE__ */ s.jsx("div", { className: "flex-1 grid", children: /* @__PURE__ */ s.jsx("div", { className: "grid relative", children: /* @__PURE__ */ s.jsx(
3938
3941
  "div",
3939
3942
  {
3940
- ref: o,
3941
- className: "overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative",
3943
+ ref: i,
3944
+ className: "overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative",
3942
3945
  children: /* @__PURE__ */ s.jsx(
3943
3946
  "embed",
3944
3947
  {
3945
3948
  src: `${t}#view=FitH&navpanes=0&scrollbar=0`,
3946
3949
  type: "application/pdf",
3947
- width: i.width,
3948
- height: i.height,
3950
+ width: "100%",
3951
+ height: "100%",
3949
3952
  style: { border: "none" }
3950
3953
  }
3951
3954
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lateralus-ai/shipping-ui",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Shared UI theme and components for Lateralus shipping applications",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.esm.js",
@@ -12,7 +12,7 @@ interface ImageViewerProps {
12
12
  onClose: () => void;
13
13
  totalPages: number;
14
14
  getImageSrc: (page: number) => string;
15
- title: string;
15
+ title?: string;
16
16
  }
17
17
 
18
18
  export const ImageViewer = ({
@@ -38,10 +38,10 @@ export const ImageViewer = ({
38
38
  {title}
39
39
  </ModalPanel.Header>
40
40
 
41
- <div className="grid">
41
+ <div className="flex-1 grid">
42
42
  <div className="grid relative">
43
43
  <div
44
- className="overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative"
44
+ className="overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative"
45
45
  onMouseMove={panActions.handleMouseMove}
46
46
  onMouseUp={panActions.handleMouseUp}
47
47
  onMouseLeave={panActions.handleMouseUp}
@@ -3,17 +3,19 @@ import { IconButton } from "@material-tailwind/react";
3
3
  import { ModalPanel } from "../ModalPanel";
4
4
  import ExpandIcon from "../icons/ExpandIcon";
5
5
  import { useRefDimensions } from "./useRefDimensions";
6
+ import { cn } from "../../utils/cn";
6
7
 
7
8
  interface PdfViewerProps {
8
9
  onClose: () => void;
9
10
  src: string;
10
- title: string;
11
+ title?: string;
11
12
  }
12
13
 
13
14
  export const PdfViewer = ({
14
15
  onClose,
15
16
  src,
16
17
  title = "PDF Viewer",
18
+ className,
17
19
  }: PdfViewerProps) => {
18
20
  const containerRef = useRef(null);
19
21
  const dimensions = useRefDimensions(containerRef);
@@ -27,22 +29,22 @@ export const PdfViewer = ({
27
29
  );
28
30
 
29
31
  return (
30
- <div className="shadow rounded-t-lg">
32
+ <div className={cn("shadow rounded-t-lg flex flex-col h-full", className)}>
31
33
  <ModalPanel.Header onClose={onClose} right={rightButtons}>
32
34
  {title}
33
35
  </ModalPanel.Header>
34
36
 
35
- <div className="grid">
37
+ <div className="flex-1 grid">
36
38
  <div className="grid relative">
37
39
  <div
38
40
  ref={containerRef}
39
- className="overflow-hidden col-start-1 row-start-1 bg-gray-200 h-[600px] relative"
41
+ className="overflow-hidden col-start-1 row-start-1 bg-gray-200 h-full relative"
40
42
  >
41
43
  <embed
42
44
  src={`${src}#view=FitH&navpanes=0&scrollbar=0`}
43
45
  type="application/pdf"
44
- width={dimensions.width}
45
- height={dimensions.height}
46
+ width="100%"
47
+ height="100%"
46
48
  style={{ border: "none" }}
47
49
  />
48
50
  </div>
@@ -13,11 +13,11 @@ const StoryPage = () => {
13
13
  }
14
14
  />
15
15
  </div>
16
- <div className="w-[600px] h-[800px] p-8" title="Document Viewer">
17
- <PdfViewer
18
- totalPages={100}
19
- src="https://www.antennahouse.com/hubfs/xsl-fo-sample/pdf/basic-link-1.pdf"
20
- />
16
+ <div
17
+ className="w-[600px] h-[800px] p-8 flex flex-col"
18
+ title="Document Viewer"
19
+ >
20
+ <PdfViewer src="https://www.antennahouse.com/hubfs/xsl-fo-sample/pdf/basic-link-1.pdf" />
21
21
  </div>
22
22
  </div>
23
23
  );