UNPKG

@devlander/hooks

Version:
3 lines (2 loc) 39.2 kB
import t,{useMemo as r,useState as e,useRef as n,useCallback as o,useEffect as i,useReducer as a,createContext as u,useContext as l}from"react";import{Dimensions as c,Platform as s,Keyboard as f,StyleSheet as d}from"react-native";import{jsx as p}from"react/jsx-runtime";function y(t,r){return r}function v(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}function g(t,r,e,n,o,i,a){try{var u=t[i](a),l=u.value}catch(t){return void e(t)}u.done?r(l):Promise.resolve(l).then(n,o)}function h(t){return function(){var r=this,e=arguments;return new Promise((function(n,o){var i=t.apply(r,e);function a(t){g(i,n,o,a,u,"next",t)}function u(t){g(i,n,o,a,u,"throw",t)}a(void 0)}))}}function m(t,r,e){return(r=function(t){var r=function(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"==typeof r?r:r+""}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function w(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function E(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?w(Object(e),!0).forEach((function(r){m(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):w(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function S(){S=function(){return r};var t,r={},e=Object.prototype,n=e.hasOwnProperty,o=Object.defineProperty||function(t,r,e){t[r]=e.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function s(t,r,e,n){var i=r&&r.prototype instanceof h?r:h,a=Object.create(i.prototype),u=new C(n||[]);return o(a,"_invoke",{value:A(t,e,u)}),a}function f(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}r.wrap=s;var d="suspendedStart",p="suspendedYield",y="executing",v="completed",g={};function h(){}function m(){}function w(){}var E={};c(E,a,(function(){return this}));var b=Object.getPrototypeOf,L=b&&b(b(j([])));L&&L!==e&&n.call(L,a)&&(E=L);var T=w.prototype=h.prototype=Object.create(E);function O(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function x(t,r){function e(o,i,a,u){var l=f(t[o],t,i);if("throw"!==l.type){var c=l.arg,s=c.value;return s&&"object"==typeof s&&n.call(s,"__await")?r.resolve(s.__await).then((function(t){e("next",t,a,u)}),(function(t){e("throw",t,a,u)})):r.resolve(s).then((function(t){c.value=t,a(c)}),(function(t){return e("throw",t,a,u)}))}u(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new r((function(r,o){e(t,n,r,o)}))}return i=i?i.then(o,o):o()}})}function A(r,e,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var u=n.delegate;if(u){var l=I(u,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=f(r,e,n);if("normal"===c.type){if(o=n.done?v:p,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function I(r,e){var n=e.method,o=r.iterator[n];if(o===t)return e.delegate=null,"throw"===n&&r.iterator.return&&(e.method="return",e.arg=t,I(r,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=f(o,r.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,"return"!==e.method&&(e.method="next",e.arg=t),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function R(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function _(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(R,this),this.reset(!0)}function j(r){if(r||""===r){var e=r[a];if(e)return e.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,i=function e(){for(;++o<r.length;)if(n.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return i.next=i}}throw new TypeError(typeof r+" is not iterable")}return m.prototype=w,o(T,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:m,configurable:!0}),m.displayName=c(w,l,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===m||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,c(t,l,"GeneratorFunction")),t.prototype=Object.create(T),t},r.awrap=function(t){return{__await:t}},O(x.prototype),c(x.prototype,u,(function(){return this})),r.AsyncIterator=x,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new x(s(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},O(T),c(T,l,"Generator"),c(T,a,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=Object(t),e=[];for(var n in r)e.push(n);return e.reverse(),function t(){for(;e.length;){var n=e.pop();if(n in r)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=j,C.prototype={constructor:C,reset:function(r){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!r)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var e=this;function o(n,o){return u.type="throw",u.arg=r,e.next=n,o&&(e.method="next",e.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),g},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),_(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;_(e)}return o}}throw Error("illegal catch attempt")},delegateYield:function(r,e,n){return this.delegate={iterator:j(r),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function b(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;l=!1}else for(;!(l=(n=i.call(e)).done)&&(u.push(n.value),u.length!==r);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,r)||O(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function O(t,r){if(t){if("string"==typeof t)return v(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?v(t,r):void 0}}function x(t){return r((function(){var r=t.colors||[],e=t.locations||[],n=Math.max(r.length,e.length);return e.length<r.length&&(e=[].concat(L(e),[1])),{colors:Array.from({length:n},(function(t,e){return r[e]||"#FFFFFF"})),locations:Array.from({length:n},(function(t,r){return e[r]||0}))}}),[t.colors,t.locations])}var A,I,R,_=function(t,e){return r((function(){var r=t?Array.isArray(t)?t.reduce((function(t,r){return E(E({},t),r)}),{}):t:{},n=e?Array.isArray(e)?e.reduce((function(t,r){return E(E({},t),r)}),{}):e:{};return E(E({},r),n)}),[t,e])};!function(t){t.ExtraSmall="ExtraSmall",t.Small="Small",t.Medium="Medium",t.Large="Large",t.ExtraLarge="ExtraLarge"}(A||(A={})),function(t){t.SmallMobile="SmallMobile",t.Mobile="Mobile",t.Tablet="Tablet",t.Desktop="Desktop",t.LargeDesktop="LargeDesktop",t.TV="TV"}(I||(I={})),function(t){t.ExtraSmall="ExtraSmall",t.Small="Small",t.Medium="Medium",t.Large="Large",t.ExtraLarge="ExtraLarge"}(R||(R={}));var C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["window","screen"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.forcePortrait,l=a.forceLandscape,s=a.mediaQueryConfig,f=r((function(){return{extraSmall:{maxWidth:360},small:{minWidth:360,maxWidth:640},medium:{minWidth:640,maxWidth:1024},large:{minWidth:1024,maxWidth:1440},extraLarge:{minWidth:1440}}}),[]),d=r((function(){return E(E({},f),s)}),[f,s]),p=b(e((function(){return c.get(t.includes("window")?"window":"screen")})),2),y=p[0],v=p[1],g=n(null),h=o((function(r){var e=r.window,n=r.screen;g.current&&clearTimeout(g.current),g.current=setTimeout((function(){v(t.includes("window")?e:n)}),100)}),[t]);i((function(){var t=c.addEventListener("change",h);return function(){return t.remove()}}),[h]);var m=r((function(){return!!u||!l&&y.height>y.width}),[y,u,l]),w=r((function(){var t=y.width,r=d.extraSmall,e=d.small,n=d.medium,o=d.large,i=d.extraLarge;return r&&t<=(r.maxWidth||0)?R.ExtraSmall:e&&t>=(e.minWidth||0)&&t<=(e.maxWidth||1/0)?R.Small:n&&t>=(n.minWidth||0)&&t<=(n.maxWidth||1/0)?R.Medium:o&&t>=(o.minWidth||0)&&t<=(o.maxWidth||1/0)?R.Large:(i&&i.minWidth,R.ExtraLarge)}),[y,d]);return r((function(){return{isExtraSmall:w===R.ExtraSmall,isSmall:w===R.Small,isMedium:w===R.Medium,isLarge:w===R.Large,isExtraLarge:w===R.ExtraLarge,isPortrait:m,dimensions:y,orientation:m?"portrait":"landscape",viewportCategory:w}}),[w,m,y])};function j(t,r){switch(r.type){case"SET_FIELD":return E(E({},t),{},{formValues:E(E({},t.formValues),{},m({},r.field,r.value))});case"SET_ERRORS":return E(E({},t),{},{formErrors:r.errors});case"RESET_FORM":return E(E({},t),{},{formValues:r.values,formErrors:{}});default:return t}}function N(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=b(a(j,{formValues:t,formErrors:{}}),2),o=n[0],i=n[1],u=function(t){var r=t.name,e=t.value;i({type:"SET_FIELD",field:r,value:e})};return{formState:o,handleChange:u,handleSubmit:function(){(function(){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=r,a=e[n],u=a?a(o.formValues[n]):null;u&&(t[n]=u)}return i({type:"SET_ERRORS",errors:t}),0===Object.keys(t).length})()&&r(o.formValues)},setFormErrors:function(t){i({type:"SET_ERRORS",errors:t})},resetForm:function(){i({type:"RESET_FORM",values:t})},getInputProps:function(t){return{value:o.formValues[t],onChangeText:function(r){return u({name:t,value:r})},onSubmitEditing:function(){var r,n=null===(r=e[t])||void 0===r?void 0:r.call(e,o.formValues[t]);n&&i({type:"SET_ERRORS",errors:E(E({},o.formErrors),{},m({},t,n))})},onFocus:function(){i({type:"SET_ERRORS",errors:E(E({},o.formErrors),{},m({},t,""))})},onBlur:function(){var r,n=null===(r=e[t])||void 0===r?void 0:r.call(e,o.formValues[t]);n&&i({type:"SET_ERRORS",errors:E(E({},o.formErrors),{},m({},t,n))})}}}}}var P,D=function(){var t=C().dimensions.width;return{platform:s.OS,xSmall:t<640,small:t>=640&&t<768,medium:t>=768&&t<1024,large:t>=1024&&t<1280,xLarge:t>=1280&&t<1536,xxLarge:t>=1536}};!function(t){t.NONE="",t.K="K",t.M="M",t.B="B",t.T="T",t.P="P",t.E="E"}(P||(P={}));function F(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}function k(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?F(Object(e),!0).forEach((function(r){M(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):F(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function U(t){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},U(t)}function M(t,r,e){return(r=function(t){var r=function(t){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,"string");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof r?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function G(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,r){if(t){if("string"==typeof t)return W(t,r);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?W(t,r):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=new Array(r);e<r;e++)n[e]=t[e];return n}var B,H,V,z,K,J,Y,Z,$=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function q(t,r,e,n){var o=k({},e),i=function(t,r){"number"==typeof r&&(r=r.toString());for(var e=r.toLowerCase(),n=Object.keys(t),o=n.length;o-- >0;){var i=n[o];if(e===i.toString().toLowerCase())return i}return null}(e,r)||r;$(e[i])&&$(t)?e[i]=n(o,r,t):$(t)?e[i]=n({},r,t):Array.isArray(t)?e[i]=t.slice():e[i]=t}function Q(t){return new Promise((function(r,e){if("undefined"==typeof Blob||!(t instanceof Blob))return e(new Error("The provided value is not a valid Blob."));if("undefined"==typeof FileReader)return e(new Error("FileReader is not available in this environment."));var n=new FileReader;n.readAsDataURL(t),n.onloadend=function(){r(n.result)},n.onerror=function(){e(new Error("Error occurred while reading the Blob."))}}))}function X(t,r){var e=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,n=void 0!==e&&e;if(null!=t)if("object"!==U(t)&&(t=[t]),Array.isArray(t))for(var o=0,i=t.length;o<i;o++)r.call(null,t[o],o,t);else for(var a=n?Object.getOwnPropertyNames(t):Object.keys(t),u=a.length,l=0;l<u;l++){var c=a[l];r.call(null,t[c],c,t)}}!function(t){t.Only="Only",t.Exclusive="Exclusive to",t.Solely="Solely in"}(B||(B={})),function(t){t.IncludedIn="Included in",t.FoundWithin="Found in",t.PresentIn="Present in"}(H||(H={})),function(t){t.And="and",t.AsWellAs="as well as",t.AlongWith="along with"}(V||(V={})),function(t){t.STRING="string",t.OBJECT="object",t.ARRAY="array",t.NUMBER="number",t.MATRIX="matrix"}(z||(z={})),function(t){t.None=" ",t.Range="Range",t.Amount="Amount"}(K||(K={})),function(t){t.Empty=" ",t.UpTo="up to",t.About="about",t.Around="around",t.Approximately="approximately"}(J||(J={})),function(t){t.HTTPS="https://",t.HTTP="http://",t.NONE=""}(Y||(Y={})),function(t){t["4:3"]="4:3",t["16:9"]="16:9",t["1:1"]="1:1",t["3:2"]="3:2",t["8:5"]="8:5"}(Z||(Z={}));var tt,rt=function(t){return null==t||"object"===U(t)&&0===Object.keys(t).length||"string"==typeof t&&0===t.trim().length},et=(tt=Object.create(null),function(t){var r=toString.call(t);return tt[r]||(tt[r]=r.slice(8,-1).toLowerCase())}),nt=function(t){return t=t.toLowerCase(),function(r){return et(r)===t}};function ot(){for(var t={},r=function(r,e){q(r,e,t,ot)},e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=0,a=n;i<a.length;i++){var u=a[i];u&&X(u,r)}return t}nt("ArrayBuffer"),nt("Date"),nt("File");var it=function t(r,e){var n=k({},r);return Object.keys(e).forEach((function(r){var o=e[r],i=n[r];Array.isArray(o)&&Array.isArray(i)?n[r]=[].concat(G(i),G(o)):"object"!==U(o)||null===o||Array.isArray(o)||"object"!==U(i)||Array.isArray(i)?n[r]=o:n[r]=t(i,o)})),n},at=function(t,e){return r((function(){var r=t&&!rt(t)?t:{},n=e&&!rt(e)?e:{};return E(E({},r),n)}),[t,e])},ut=function(){var t=b(e({width:0,height:0,x:0,y:0}),2),r=t[0],n=t[1];return[r,o((function(t){var r=t.nativeEvent.layout;n(r)}),[])]};function lt(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.3125,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.3521;return{borderTopRightRadius:("string"==typeof t&&t.includes("%")?parseFloat(t.replace("%","")):Number(t))/100*e*100,borderBottomLeftRadius:("string"==typeof r&&r.includes("%")?parseFloat(r.replace("%","")):Number(r))/100*n*100}}var ct=function(t){var e=t.containerStyle,n=t.additionalContainerStyleFromTheme,o=t.imageStyle,i=b(ut(),2),a=i[0],u=i[1],l=r((function(){return it({maxWidth:"100%",maxHeight:"100%",overflow:"hidden",borderTopLeftRadius:0,borderTopRightRadius:25,borderBottomLeftRadius:25,borderBottomRightRadius:0},E(E({},n),e))}),[n,e]),c=r((function(){return lt(a.width||0,a.height||0)}),[a]),s=r((function(){return E(E({},l),{},{borderTopRightRadius:c.borderTopRightRadius,borderBottomLeftRadius:c.borderBottomLeftRadius})}),[l,c]),f=r((function(){return E({maxWidth:"100%",maxHeight:"100%",borderTopLeftRadius:0,borderBottomRightRadius:0},o)}),[o]),d=r((function(){return lt(a.width||0,a.height||0)}),[a]);return{mergedContainerStyles:s,mergedImageStyles:r((function(){return E(E({},f),{},{borderTopRightRadius:d.borderTopRightRadius,borderBottomLeftRadius:d.borderBottomLeftRadius})}),[f,d]),setSize:u}},st=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=r((function(){return JSON.stringify(e)}),[e]);return r((function(){var t=JSON.parse(o);if(!t||0===t.length)return{};var r=t.filter((function(t){return null!=t}));return ot.apply(void 0,[{}].concat(L(r)))}),[o])},ft=function(t){var r=n([]);return{registerInput:o((function(t,e){t&&(r.current[e]=t)}),[]),handleNextInput:o((function(e){var n=r.current[e+1];n?n.focus():(t&&t(),f.dismiss())}),[t])}},dt=function(t){var r=t.styleName,e=t.onPress;return o((function(t){var n=d.flatten(t);if(n&&n[r]&&"function"==typeof e)return e}),[r,e])};function pt(){var t=c.get("window");return t.height>=t.width?"portrait":"landscape"}function yt(){var r=b(t.useState(pt()),2),e=r[0],n=r[1],o=function(){var t=c.get("window"),r=t.height,e=t.width;n(r>=e?"portrait":"landscape")};return t.useEffect((function(){var t=c.addEventListener("change",o);return function(){null!=t&&t.remove&&t.remove()}}),[]),e}var vt=function(t,r){switch(r.type){case"SET_LAYOUT":var e=r.payload.x+r.payload.width>c.get("window").width;return E(E({},t),{},{layout:r.payload,isOverflowing:e});case"SET_TEMP_UNIT":return E(E({},t),{},{tempUnit:r.payload});case"CONFIRM_UNIT":return E(E({},t),{},{unit:t.tempUnit});default:throw new Error("Unhandled action type")}},gt=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,e=b(a(vt,{unit:t,tempUnit:t,isOverflowing:!1,layout:{width:0,x:0}}),2),n=e[0],i=e[1],u=o((function(t){var e=t.nativeEvent.layout.width,o=t.nativeEvent.layout.x;i({type:"SET_LAYOUT",payload:{width:e,x:o}});for(var a=n.tempUnit,u=c.get("window").width;a>0&&o+e>u;)a-=r,e-=r;i({type:"SET_TEMP_UNIT",payload:a}),o+e<=u&&i({type:"CONFIRM_UNIT"})}),[n.tempUnit,r]);return{unit:n.unit,onLayout:u,isOverflowing:n.isOverflowing}},ht=function(t,r){return"SET_LAYOUT"===r.type?r.payload:t},mt=function(){var t=b(a(ht,{width:0,x:0}),2),r=t[0],e=t[1],n=c.get("window").width;return{onLayout:o((function(t){var r=t.nativeEvent.layout,n=r.width,o=r.x;e({type:"SET_LAYOUT",payload:{width:n,x:o}})}),[]),isOverflowing:r.x+r.width>n}},wt={tileCount:1,loadingTileCount:!0};function Et(t,r){switch(r.type){case"SET_TILE_COUNT":return E(E({},t),{},{tileCount:r.payload});case"SET_LOADING":return E(E({},t),{},{loadingTileCount:r.payload});default:return t}}function St(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{xs:320,sm:576,md:768,lg:992},e=b(a(Et,wt),2),u=e[0],l=e[1],s=n(null),f=o((function(){var e=c.get("window"),n=e.width,o=n>e.height?"landscape":"portrait",i="xs";n<=r.xs?i="xs":n<=r.sm?i="sm":n<=r.md?i="md":n<=r.lg&&(i="lg");var a=t[o][i];return void 0!==t.minColumns&&(a=Math.max(t.minColumns,a)),void 0!==t.maxColumns&&(a=Math.min(t.maxColumns,a)),a}),[t,r]);return i((function(){var t=function(){l({type:"SET_LOADING",payload:!0}),s.current&&clearTimeout(s.current),s.current=setTimeout((function(){var t=f();l({type:"SET_TILE_COUNT",payload:t}),l({type:"SET_LOADING",payload:!1})}),200)};t();var r=c.addEventListener("change",t);return function(){s.current&&clearTimeout(s.current),r.remove()}}),[t,r,f]),{tileCount:u.tileCount,loadingTileCount:u.loadingTileCount}}var bt=function(t){var e=t.configs,n=t.options||{},o=n.transformItem,a=n.transformHeader,u=n.emptyStateFallback,l=n.debug,c=r((function(){return L(e)}),[e]);return i((function(){l&&c.forEach((function(t,r){t.title&&Array.isArray(t.items)?t.items.forEach((function(r,e){r.id||console.error("Invalid item at index ".concat(e,' in section "').concat(t.title,'": Expected an id.'))})):console.error("Invalid config at index ".concat(r,": Expected a title and items array."))}))}),[c,l]),{sections:r((function(){return!c.length&&u?u:c.map((function(t){return{title:a?a(t.title):t.title,data:t.items.map((function(t){return o?o(t):t}))}}))}),[c,o,a,u])}},Lt={loading:!1,errors:[],resolvedSrc:void 0},Tt=function(t,r){switch(r.type){case"FETCH_INIT":return E(E({},t),{},{loading:!0,errors:[]});case"FETCH_SUCCESS":return E(E({},t),{},{loading:!1,resolvedSrc:r.payload});case"FETCH_FAILURE":return E(E({},t),{},{loading:!1,errors:[].concat(L(t.errors),[r.payload])});default:return t}},Ot=function(t){var r=b(a(Tt,Lt),2),e=r[0],n=r[1];return i((function(){var r=function(){var r=h(S().mark((function r(){var e;return S().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n({type:"FETCH_INIT"}),r.prev=1,"string"!=typeof t){r.next=6;break}n({type:"FETCH_SUCCESS",payload:t}),r.next=15;break;case 6:if(!(t&&"object"===T(t)&&"uri"in t&&t.uri)){r.next=10;break}n({type:"FETCH_SUCCESS",payload:t.uri}),r.next=15;break;case 10:if("function"!=typeof t){r.next=15;break}return r.next=13,t();case 13:e=r.sent,n({type:"FETCH_SUCCESS",payload:e});case 15:r.next=21;break;case 17:r.prev=17,r.t0=r.catch(1),console.error("Error resolving source:",r.t0),n({type:"FETCH_FAILURE",payload:{key:"resolve",error:r.t0 instanceof Error?r.t0:new Error(String(r.t0))}});case 21:case"end":return r.stop()}}),r,null,[[1,17]])})));return function(){return r.apply(this,arguments)}}();r()}),[t]),{loading:e.loading,errors:e.errors,resolvedSrc:e.resolvedSrc}},xt=function(t,e){var n=r((function(){return JSON.stringify(t||{})}),[t]),o=r((function(){return JSON.stringify(e||{})}),[e]);return r((function(){var t=JSON.parse(n),r=JSON.parse(o);return E(E({},t),r)}),[n,o])};function At(t){var e=t||{},n=e.input,o=e.rounding,i=void 0===o?"none":o,a=e.case,u=void 0===a?"upper":a,l=r((function(){var t=function(t,r){var e=[P.NONE,P.K,P.M,P.B,P.T,P.P,P.E];if(void 0===t)return"";var n="string"==typeof t?parseFloat(t):t;if(isNaN(n))return"Invalid input";var o=Math.log10(Math.abs(n))/3|0;if(0===o)return n.toString();var i=e[o],a=n/Math.pow(10,3*o);if(null!=r&&r.rounding)switch(r.rounding){case"up":a=Math.ceil(10*a)/10;break;case"down":a=Math.floor(10*a)/10}return"lower"===(null==r?void 0:r.case)?i=i.toLowerCase():"upper"===(null==r?void 0:r.case)&&(i=i.toUpperCase()),a.toFixed(1)+i}(n,{rounding:i,case:u});return t.replace(/\.0(?=[A-Za-z])/,"")}),[n,i,u]);return l}var It=function(t,r){var e=Array.isArray(r)?r.every(Boolean):r;return o((function(){t&&"function"==typeof t&&e&&t.apply(void 0,arguments)}),[t,e])},Rt=function(t,e){return r((function(){var r=/^[a-zA-Z\s]+$/.test(t),n=r?t:e,o=r?e:t;if(n&&o){var i=n.replace(/\s+/g,"").toLowerCase().replace(/[^a-z0-9]/gi,"");return"".concat(o,"-").concat(i,"-key")}}),[t,e])},_t=function(t,r){var n=b(e(t),2),o=n[0],a=n[1];return i((function(){var e=setTimeout((function(){a(t)}),r);return function(){clearTimeout(e)}}),[t,r]),o},Ct=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=r((function(){return t.split("\n")}),[t]);return r((function(){return e.filter((function(t){return""!==t.trim()}))}),[e]).join("\n")};function jt(){var t=n(!1);return i((function(){return t.current=!0,function(){t.current=!1}}),[]),t}var Nt={logs:{error:{},info:{},success:{},warning:{}},logsEmpty:{error:!0,info:!0,success:!0,warning:!0},toasts:{severity:"info",open:!1,message:"",autoHideDuration:1e4},loading:{}},Pt=function(t,r){switch(r.type){case"SET_LOGS":return E(E({},t),{},{logs:E(E({},t.logs),{},m({},r.payload.severity,r.payload.logs)),logsEmpty:E(E({},t.logsEmpty),{},m({},r.payload.severity,!1))});case"CLEAR_LOGS":return E(E({},t),{},{logs:E(E({},t.logs),{},m({},r.payload,{})),logsEmpty:E(E({},t.logsEmpty),{},m({},r.payload,!0))});default:return t}},Dt=function(t){var r=b(a(Pt,Nt),2),e=r[0],n=r[1],o=function(r,e){for(var n=arguments.length,o=new Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];t.loggers.forEach((function(t){var n=t[r];n&&n.apply(void 0,[e].concat(o))}))};return{logState:e,dispatch:n,logInfo:function(t){o("info",t),n({type:"SET_LOGS",payload:{logs:t,severity:"info"}})},logError:function(t){o("error",t),n({type:"SET_LOGS",payload:{logs:t,severity:"error"}})},logSuccess:function(t){o("log",t),n({type:"SET_LOGS",payload:{logs:t,severity:"success"}})},logWarning:function(t){o("warn",t),n({type:"SET_LOGS",payload:{logs:t,severity:"warning"}})},resetLogs:function(t){t?n({type:"CLEAR_LOGS",payload:t}):["info","error","success","warning"].forEach((function(t){n({type:"CLEAR_LOGS",payload:t})}))}}};function Ft(t,e){var n=o((function(t,r){for(var e in r)r[e]&&"object"===T(r[e])&&!Array.isArray(r[e])?(t[e]&&"object"===T(t[e])||(t[e]={}),n(t[e],r[e])):t[e]=r[e];return t}),[]);return r((function(){return n(E({},t),e)}),[n,t,e])}var kt={xs:{portrait:320,landscape:480},sm:{portrait:360,landscape:600},md:{portrait:768,landscape:1024},lg:{portrait:1024,landscape:1366},xl:{portrait:1440,landscape:1920}};function Ut(){var t=c.get("window"),r=t.width;return t.height>=r?"portrait":"landscape"}function Mt(t){var r=c.get("window").width,e=Ut();return r>=t.xl[e]?"xl":r>=t.lg[e]?"lg":r>=t.md[e]?"md":r>=t.sm[e]?"sm":"xs"}function Gt(t,r){return"SET_DIMENSIONS"===r.type?E(E({},t),{},{width:r.payload.width,orientation:Ut(),sizeCategory:Mt(r.payload.breakpoints)}):t}var Wt,Bt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kt,e=r((function(){return E(E({},kt),t)}),[t]),n=a(Gt,function(t){return{orientation:Ut(),sizeCategory:Mt(t),width:c.get("window").width}}(e)),o=b(n,2),u=o[0],l=o[1];return i((function(){var t=c.addEventListener("change",(function(t){var r=t.window;l({type:"SET_DIMENSIONS",payload:{width:r.width,breakpoints:e}})}));return function(){return t.remove()}}),[e]),{orientation:u.orientation,sizeCategory:u.sizeCategory,getResponsiveValue:function(t,r){var n,o,i=u.orientation,a=e[r][i],l=function(t){var r=["xs","sm","md","lg","xl"],e=r.indexOf(t);return r[e+1]||t}(r),c=e[l]?e[l][i]:a,s=t.min,f=t.max;return(u.width-(n=a))*(f-(o=s))/(c-n)+o}}},Ht=function(){var t=b(e(c.get("window")),2),r=t[0],n=t[1],o=b(e(c.get("screen")),2),a=o[0],u=o[1];return i((function(){var t=c.addEventListener("change",(function(t){n(t.window),u(t.screen)}));return function(){return t.remove()}}),[]),{windowDimensions:r,screenDimensions:a}};!function(t){t[t.FULL=1]="FULL",t[t.PARTIAL=.5]="PARTIAL",t[t.MINIMAL=.25]="MINIMAL"}(Wt||(Wt={}));var Vt=function(t,r){switch(r.type){case"SET_DIMENSIONS":return E(E({},t),{},{dimensions:r.payload});case"SET_LAST_VALUE":return E(E({},t),{},{lastValue:r.payload});default:return t}},zt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=n(null),s=b(a(Vt,{dimensions:{rectTop:0,rectBottom:0,rectWidth:0},lastValue:!1}),2),f=s[0],d=s[1],p=r((function(){return E({visibilityOffset:Wt.FULL,checkInterval:1e3},e)}),[e]),y=o((function(){if(!u){var t=setInterval((function(){l.current&&l.current.measure((function(t,r,e,n,o,i){d({type:"SET_DIMENSIONS",payload:{rectTop:i,rectBottom:i+n,rectWidth:o+e}})}))}),p.checkInterval);return function(){return clearInterval(t)}}}),[p.checkInterval,u]);return i((function(){var t=y();return function(){t&&t()}}),[y]),i((function(){var r=c.get("window"),e=p.visibilityOffset,n=r.height*e,o=f.dimensions.rectBottom>n&&f.dimensions.rectTop>=0&&f.dimensions.rectWidth>0&&f.dimensions.rectWidth<=r.width;f.lastValue!==o&&(d({type:"SET_LAST_VALUE",payload:o}),t(o))}),[f.dimensions,f.lastValue,t,p]),l},Kt=function(){var t=n(null),r=b(e({width:0,height:0,x:0,y:0}),2),o=r[0],a=r[1];return i((function(){var r=function(){if(t.current){var r=t.current.getBoundingClientRect();a({width:r.width||0,height:r.height||0,x:r.x||0,y:r.y||0})}};return r(),window.addEventListener("resize",r),function(){window.removeEventListener("resize",r)}}),[]),[o,t]},Jt={fileData:"",alert:"",loading:!1},Yt=function(t,r){switch(r.type){case"SET_FILE_DATA":return E(E({},t),{},{fileData:r.payload,loading:!1});case"SET_ALERT":return E(E({},t),{},{alert:r.payload,loading:!1});case"SET_LOADING":return E(E({},t),{},{loading:!0});default:return t}},Zt=function(t){var r=t.validFileTypes,e=void 0===r?["image/jpeg","image/png","application/pdf"]:r,i=t.fileSizeLimit,u=void 0===i?1e6:i,l=t.Compressor,c=t.compressionOptions,s=void 0===c?{}:c,f=t.onProcessStart,d=t.onProcessEnd,p=b(a(Yt,Jt),2),y=p[0],v=p[1],g=n(null),m=o((function(t){v({type:"SET_ALERT",payload:t})}),[]),w=o((function(t){return e.includes(t.type)?!(t.size>=u)||(m("Please upload a file smaller than ".concat(u/1e6,"MB")),!1):(m("Please upload a valid file type (".concat(e.join(", "),")")),!1)}),[u,e,m]),L=o(function(){var t=h(S().mark((function t(r){var e;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(v({type:"SET_LOADING"}),null==f||f(),t.prev=2,!l||!r.type.startsWith("image/")){t.next=7;break}new l(r,E(E({convertSize:50,quality:.5},s),{},{success:function(){var t=h(S().mark((function t(r){var e;return S().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Q(r);case 2:e=t.sent,v({type:"SET_FILE_DATA",payload:e}),null==d||d();case 5:case"end":return t.stop()}}),t)})));return function(r){return t.apply(this,arguments)}}(),error:function(t){m("Error compressing image: ".concat(t.message)),null==d||d()}})),t.next=12;break;case 7:return t.next=9,Q(r);case 9:e=t.sent,v({type:"SET_FILE_DATA",payload:e}),null==d||d();case 12:t.next=19;break;case 14:t.prev=14,t.t0=t.catch(2),console.error(t.t0),m("Error processing file"),null==d||d();case 19:case"end":return t.stop()}}),t,null,[[2,14]])})));return function(r){return t.apply(this,arguments)}}(),[l,s,m,f,d]),T=o((function(t){g.current&&clearTimeout(g.current),g.current=setTimeout((function(){t&&w(t)&&L(t)}),300)}),[w,L]);return{fileData:y.fileData,alert:y.alert,loading:y.loading,handleFileChange:T}};function $t(){return{left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36}}var qt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.navigationKey,e=void 0===r?"Enter":r,i=t.scrollIntoViewOptions,a=void 0===i?{behavior:"smooth",block:"center"}:i,u=n([]),l=o((function(t,r){t&&(u.current[r]=t)}),[]),c=o((function(t,r,n){if(t.key===e)if(t.preventDefault(),r<n-1){var o=u.current[r+1];if(o){o.focus();var i=o.getBoundingClientRect();(i.top<0||i.bottom>(window.innerHeight||document.documentElement.clientHeight))&&o.scrollIntoView(a)}}else{var l=t.target.closest("form");l&&l.requestSubmit()}}),[e,a]);return{setInputRef:l,handleKeyDown:c}};function Qt(t){var r=t.className,e=void 0===r?"onclick-class":r,n=t.onClick;return o((function(t){t.target&&t.target.className&&"function"==typeof t.target.className.includes&&t.target.className.includes(e)&&"function"==typeof n&&n()}),[e,n])}var Xt=function(t){var r=t.onSubmitEditing,e=n(null),i=o((function(t){"Enter"!==t.key&&"Return"!==t.key||!r||(t.preventDefault(),r())}),[r]);return{handleKeyDown:i,inputRef:e}};function tr(){function t(t){t.preventDefault()}return{preventDefault:t,preventDefaultForScrollKeys:function(r){if({left:37,up:38,right:39,down:40,spacebar:32,pageup:33,pagedown:34,end:35,home:36}[r.keyCode])return t(r),!1}}}function rr(){var t=tr(),r=t.preventDefault,e=t.preventDefaultForScrollKeys;return{disableScroll:function(){window.addEventListener&&(window.addEventListener("DOMMouseScroll",r,!1),document.addEventListener("wheel",r,{passive:!1}),window.onwheel=r,window.ontouchmove=r,document.onkeydown=e)},enableScroll:function(){window.removeEventListener&&(window.removeEventListener("DOMMouseScroll",r,!1),document.removeEventListener("wheel",r),window.onwheel=null,window.ontouchmove=null,document.onkeydown=null)}}}var er={isLoading:!1,isLoggingIn:!1,isLoggingOut:!1,isRefreshing:!1,isContinuingAsGuest:!1,isRegistering:!1,session:null,isGuest:!1,isUser:!1,status:"loggedOut",error:null,loginError:null,logoutError:null,refreshError:null,guestError:null,registerError:null};function nr(t,r){switch(r.type){case"INITIALIZING":return E(E({},t),{},{isLoading:!0,status:"initializing"});case"INITIALIZE":return E(E({},t),{},{isLoading:!1,session:r.payload.session,isGuest:r.payload.isGuest,isUser:!!r.payload.session,status:r.payload.session?"loggedIn":"loggedOut",error:null});case"SET_LOADING":return E(E({},t),{},m({},r.payload,!0));case"AUTH_SUCCESS":return E(E({},t),{},{isLoggingIn:"login"!==r.payload.actionType&&t.isLoggingIn,isRegistering:"register"!==r.payload.actionType&&t.isRegistering,session:r.payload.session,isUser:!0,loginError:null,registerError:null});case"LOGOUT_SUCCESS":return E(E({},t),{},{isLoggingOut:!1,session:null,isUser:!1,logoutError:null});case"CONTINUE_AS_GUEST_SUCCESS":return E(E({},t),{},{isContinuingAsGuest:!1,session:null,isGuest:!0,guestError:null});case"REFRESH_SUCCESS":return E(E({},t),{},{isRefreshing:!1,refreshError:null});case"ERROR":return E(E({},t),{},m(m({},r.payload.method,!1),"".concat(r.payload.method,"Error"),r.payload.message));case"RESET":return E({},er);default:return t}}function or(){var t=b(a(nr,er),2);return[t[0],t[1]]}var ir=u(null),ar=u(null);function ur(t){var r=t.children,e=b(or(),2),n=e[0],o=e[1];return p(ir.Provider,{value:n,children:p(ar.Provider,{value:o,children:r})})}function lr(){var t=l(ir);if(null===t)throw new Error("useAuthState must be used within an AuthProvider");return t}function cr(){var t=l(ar);if(null===t)throw new Error("useAuthDispatch must be used within an AuthProvider");return t}var sr,fr=function(t,r){switch(r.type){case"SET_LOGS":var e=r.payload,n=e.logs,o=e.severity;return E(E({},t),{},{logs:E(E({},t.logs),{},m({},o,E(E({},t.logs[o]),n))),logsEmpty:E(E({},t.logsEmpty),{},m({},o,0===Object.keys(n).length))});case"CLEAR_LOGS":var i=r.payload;return E(E({},t),{},{logs:E(E({},t.logs),{},m({},i,{})),logsEmpty:E(E({},t.logsEmpty),{},m({},i,!0))});case"TOGGLE_TOAST":var a=r.payload,u=a.severity,l=a.open,c=a.message,s=void 0===c?"":c,f=a.autoHideDuration,d=void 0===f?1e4:f;return E(E({},t),{},{toasts:{severity:u,open:l,message:s,autoHideDuration:d}});case"SET_LOADING":var p=r.payload,y=p.id,v=p.loading;return E(E({},t),{},{loading:E(E({},t.loading),{},m({},y,v))});default:return t}};!function(t){t.Enter="Enter",t.Tab="Tab",t.ArrowDown="ArrowDown",t.ArrowUp="ArrowUp",t.ArrowLeft="ArrowLeft",t.ArrowRight="ArrowRight",t.Space=" "}(sr||(sr={}));export{ar as AuthDispatchContext,ur as AuthProvider,ir as AuthStateContext,A as DeviceCategory,I as DeviceCategoryType,sr as NavigationKey,R as ViewportCategory,Wt as VisibilityOffset,nr as authReducer,kt as defaultBreakpoints,j as formReducer,pt as getOrientation,er as initialAuthState,fr as loggingReducer,At as useAbbreviateNumber,cr as useAuthDispatch,or as useAuthReducer,lr as useAuthState,y as useClientOnlyValue,x as useColorsAndLocations,It as useConditionalCallback,Rt as useConsistentKey,_ as useContainerStyle,_t as useDebounce,C as useDeviceResponsiveState,Kt as useElementSize,Zt as useFileUploader,N as useFormManager,Ct as useFormattedParagraphs,D as useGetMediaQueryInfo,at as useImageStyle,jt as useIsMounted,$t as useKeyCodes,ct as useLeafStyle,Dt as useLoggingReducer,st as useMergedObjects,Ft as useMergedProps,qt as useNextInputFocus,ft as useNextTextInputFocus,Qt as useOnClickByClassName,dt as useOnPressByStyle,yt as useOrientation,gt as useOverflowAdjuster,mt as useOverflowDetection,tr as usePreventDefault,Bt as useResponsive,St as useResponsiveColumns,rr as useScrollControl,bt as useSectionListData,Ot as useSrcResolver,Xt as useSubmitEditing,xt as useTextStyle,ut as useViewSize,Ht as useViewportInfo,zt as useVisibilitySensor}; //# sourceMappingURL=index.js.map