"use strict";(self.webpackChunkCustomerApp=self.webpackChunkCustomerApp||[]).push([[9389,3038],{19389:(t,e,n)=>{n.r(e),n.d(e,{SafeAreaConsumer:()=>E,SafeAreaContext:()=>S,SafeAreaFrameContext:()=>g,SafeAreaInsetsContext:()=>p,SafeAreaProvider:()=>m,SafeAreaView:()=>P,initialWindowMetrics:()=>R,initialWindowSafeAreaInsets:()=>j,useSafeArea:()=>C,useSafeAreaFrame:()=>y,useSafeAreaInsets:()=>v,withSafeAreaInsets:()=>b});var i=n(32330),r=n(59113);const o={WebkitTransition:"webkitTransitionEnd",Transition:"transitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd"};function a(t){let{children:e,style:n,onInsetsChange:o}=t;return i.useEffect((()=>{if("undefined"==typeof document)return;const t=function(){const t=document.createElement("div"),{style:e}=t;return e.position="fixed",e.left="0",e.top="0",e.width="0",e.height="0",e.zIndex="-1",e.overflow="hidden",e.visibility="hidden",e.transitionDuration="0.05s",e.transitionProperty="padding",e.transitionDelay="0s",e.paddingTop=u("top"),e.paddingBottom=u("bottom"),e.paddingLeft=u("left"),e.paddingRight=u("right"),t}();document.body.appendChild(t);const e=()=>{const{paddingTop:e,paddingBottom:n,paddingLeft:i,paddingRight:r}=window.getComputedStyle(t),a={top:e?parseInt(e,10):0,bottom:n?parseInt(n,10):0,left:i?parseInt(i,10):0,right:r?parseInt(r,10):0},s={x:0,y:0,width:document.documentElement.offsetWidth,height:document.documentElement.offsetHeight};o({nativeEvent:{insets:a,frame:s}})};return t.addEventListener(l(),e),e(),()=>{document.body.removeChild(t),t.removeEventListener(l(),e)}}),[o]),i.createElement(r.View,{style:n},e)}let s=null;function l(){if(null!=s)return s;const t=document.createElement("invalidtype");s=o.Transition;for(const e in o)if(void 0!==t.style[e]){s=o[e];break}return s}let d=null;function u(t){return`${function(){if(null!==d)return d;const{CSS:t}=window;return d=t&&t.supports&&t.supports("top: constant(safe-area-inset-top)")?"constant":"env",d}()}(safe-area-inset-${t})`}function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}const f=!1,p=i.createContext(null);const g=i.createContext(null);function m(t){let{children:e,initialMetrics:n,initialSafeAreaInsets:o,style:s,...l}=t;const d=i.useContext(p),u=i.useContext(g),[f,m]=i.useState((null==n?void 0:n.insets)??o??d??null),[w,v]=i.useState((null==n?void 0:n.frame)??u??{x:0,y:0,width:r.Dimensions.get("window").width,height:r.Dimensions.get("window").height}),y=i.useCallback((t=>{const{nativeEvent:{frame:e,insets:n}}=t;!e||e.height===w.height&&e.width===w.width&&e.x===w.x&&e.y===w.y||v(e),f&&n.bottom===f.bottom&&n.left===f.left&&n.right===f.right&&n.top===f.top||m(n)}),[w,f]);return i.createElement(a,c({style:[h.fill,s],onInsetsChange:y},l),null!=f?i.createElement(g.Provider,{value:w},i.createElement(p.Provider,{value:f},e)):null)}const h=r.StyleSheet.create({fill:{flex:1}});const w="No safe area value available. Make sure you are rendering `<SafeAreaProvider>` at the top of your app.";function v(){const t=i.useContext(p);if(null==t)throw new Error(w);return t}function y(){const t=i.useContext(g);if(null==t)throw new Error(w);return t}function b(t){return i.forwardRef(((e,n)=>i.createElement(p.Consumer,null,(r=>{if(null==r)throw new Error(w);return i.createElement(t,c({},e,{insets:r,ref:n}))}))))}function C(){return v()}const E=p.Consumer,S=p;function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},x.apply(this,arguments)}const A=8,T=4,I=2,k=1,O=15,L={top:A,right:T,bottom:I,left:k};function P(t){let{style:e={},mode:n,edges:o,...a}=t;const s=v(),l=null!=o?o.reduce(((t,e)=>t|L[e]),0):O,d=i.useMemo((()=>{const t=l&A?s.top:0,i=l&T?s.right:0,o=l&I?s.bottom:0,a=l&k?s.left:0,d=r.StyleSheet.flatten(e);if("margin"===n){const{margin:n=0,marginVertical:r=n,marginHorizontal:s=n,marginTop:l=r,marginRight:u=s,marginBottom:c=r,marginLeft:f=s}=d;return[e,{marginTop:l+t,marginRight:u+i,marginBottom:c+o,marginLeft:f+a}]}{const{padding:n=0,paddingVertical:r=n,paddingHorizontal:s=n,paddingTop:l=r,paddingRight:u=s,paddingBottom:c=r,paddingLeft:f=s}=d;return[e,{paddingTop:l+t,paddingRight:u+i,paddingBottom:c+o,paddingLeft:f+a}]}}),[e,s,n,l]);return i.createElement(r.View,x({style:d},a))}const R=null,j=null}}]);