1"use strict";(self.webpackChunkgo4Whatsup=self.webpackChunkgo4Whatsup||[]).push([[8361],{8361:(q,O,g)=>{g.r(O),g.d(O,{startInputShims:()=>Z});var L=g(74523),l=g(28476),T=g(20909),m=g(84920),R=g(94379);g(78438);const M=new WeakMap,P=(e,t,s,o=0,r=!1)=>{M.has(e)!==s&&(s?H(e,t,o,r):G(e,t))},H=(e,t,s,o=!1)=>{const r=t.parentNode,n=t.cloneNode(!1);n.classList.add("cloned-input"),n.tabIndex=-1,o&&(n.disabled=!0),r.appendChild(n),M.set(e,n);const a="rtl"===e.ownerDocument.dir?9999:-9999;e.style.pointerEvents="none",t.style.transform=`translate3d(${a}px,${s}px,0) scale(0)`},G=(e,t)=>{const s=M.get(e);s&&(M.delete(e),s.remove()),e.style.pointerEvents="",t.style.transform=""},C="input, textarea, [no-blur], [contenteditable]",N="$ionPaddingTimer",p=(e,t,s)=>{const o=e[N];o&&clearTimeout(o),t>0?e.style.setProperty("--keyboard-offset",`${t}px`):e[N]=setTimeout(()=>{e.style.setProperty("--keyboard-offset","0px"),s&&s()},120)},U=(e,t,s)=>{e.addEventListener("focusout",()=>{t&&p(t,0,s)},{once:!0})};let A=0;const B="data-ionic-skip-scroll-assist",V=(e,t,s,o,r,n,i,a=!1)=>{const v=n&&(void 0===i||i.mode===R.a.None);let y=!1;const u=void 0!==l.w?l.w.innerHeight:0,f=h=>{!1!==y?k(e,t,s,o,h.detail.keyboardHeight,v,a,u,!1):y=!0},c=()=>{y=!1,null==l.w||l.w.removeEventListener("ionKeyboardDidShow",f),e.removeEventListener("focusout",c)},S=function(){var h=(0,L.A)(function*(){t.hasAttribute(B)?t.removeAttribute(B):(k(e,t,s,o,r,v,a,u),null==l.w||l.w.addEventListener("ionKeyboardDidShow",f),e.addEventListener("focusout",c))});return function(){return h.apply(this,arguments)}}();return e.addEventListener("focusin",S),()=>{e.removeEventListener("focusin",S),null==l.w||l.w.removeEventListener("ionKeyboardDidShow",f),e.removeEventListener("focusout",c)}},x=e=>{document.activeElement!==e&&(e.setAttribute(B,"true"),e.focus())},k=function(){var e=(0,L.A)(function*(t,s,o,r,n,i,a=!1,v=0,y=!0){if(!o&&!r)return;const u=((e,t,s,o)=>{var r;return((e,t,s,o)=>{const r=e.top,n=e.bottom,i=t.top,v=i+15,u=Math.min(t.bottom,o-s)-50-n,f=v-r,c=Math.round(u<0?-u:f>0?-f:0),S=Math.min(c,r-i),w=Math.abs(S)/.3;return{scrollAmount:S,scrollDuration:Math.min(400,Math.max(150,w)),scrollPadding:s,inputSafeY:4-(r-v)}})((null!==(r=e.closest("ion-item,[ion-item]"))&&void 0!==r?r:e).getBoundingClientRect(),t.getBoundingClientRect(),s,o)})(t,o||r,n,v);if(o&&Math.abs(u.scrollAmount)<4)return x(s),void(i&&null!==o&&(p(o,A),U(s,o,()=>A=0)));if(P(t,s,!0,u.inputSafeY,a),x(s),(0,m.r)(()=>t.click()),i&&o&&(A=u.scrollPadding,p(o,A)),typeof window<"u"){let f;const c=function(){var h=(0,L.A)(function*(){void 0!==f&&clearTimeout(f),window.removeEventListener("ionKeyboardDidShow",S),window.removeEventListener("ionKeyboardDidShow",c),o&&(yield(0,T.c)(o,0,u.scrollAmount,u.scrollDuration)),P(t,s,!1,u.inputSafeY),x(s),i&&U(s,o,()=>A=0)});return function(){return h.apply(this,arguments)}}(),S=()=>{window.removeEventListener("ionKeyboardDidShow",S),window.addEventListener("ionKeyboardDidShow",c)};if(o){const h=yield(0,T.g)(o);if(y&&u.scrollAmount>h.scrollHeight-h.clientHeight-h.scrollTop)return"password"===s.type?(u.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",S)):window.addEventListener("ionKeyboardDidShow",c),void(f=setTimeout(c,1e3))}c()}});return function(s,o,r,n,i,a){return e.apply(this,arguments)}}(),Z=function(){var e=(0,L.A)(function*(t,s){if(void 0===l.d)return;const o="ios"===s,r="android"===s,n=t.getNumber("keyboardHeight",290),i=t.getBoolean("scrollAssist",!0),a=t.getBoolean("hideCaretOnScroll",o),v=t.getBoolean("inputBlurring",!1),y=t.getBoolean("scrollPadding",!0),u=Array.from(l.d.querySelectorAll("ion-input, ion-textarea")),f=new WeakMap,c=new WeakMap,S=yield R.K.getResizeMode(),h=function(){var _=(0,L.A)(function*(d){yield new Promise(I=>(0,m.c)(d,I));const K=d.shadowRoot||d,b=K.querySelector("input")||K.querySelector("textarea"),D=(0,T.f)(d),F=D?null:d.closest("ion-footer");if(b){if(D&&a&&!f.has(d)){const I=((e,t,s)=>{if(!s||!t)return()=>{};const o=a=>{(e=>e===e.getRootNode().activeElement)(t)&&P(e,t,a)},r=()=>P(e,t,!1),n=()=>o(!0),i=()=>o(!1);return(0,m.a)(s,"ionScrollStart",n),(0,m.a)(s,"ionScrollEnd",i),t.addEventListener("blur",r),()=>{(0,m.b)(s,"ionScrollStart",n),(0,m.b)(s,"ionScrollEnd",i),t.removeEventListener("blur",r)}})(d,b,D);f.set(d,I)}
1if("date"!==b.type&&"datetime-local"!==b.type&&(D||F)&&i&&!c.has(d)){const I=V(d,b,D,F,n,y,S,r);c.set(d,I)}}});return function(K){return _.apply(this,arguments)}}();v&&(()=>{let e=!0,t=!1;const s=document;(0,m.a)(s,"ionScrollStart",()=>{t=!0}),s.addEventListener("focusin",()=>{e=!0},!0),s.addEventListener("touchend",i=>{if(t)return void(t=!1);const a=s.activeElement;if(!a||a.matches(C))return;const v=i.target;v!==a&&(v.matches(C)||v.closest(C)||(e=!1,setTimeout(()=>{e||a.blur()},50)))},!1)})();for(const _ of u)h(_);l.d.addEventListener("ionInputDidLoad",_=>{h(_.detail)}),l.d.addEventListener("ionInputDidUnload",_=>{(_=>{if(a){const d=f.get(_);d&&d(),f.delete(_)}if(i){const d=c.get(_);d&&d(),c.delete(_)}})(_.detail)})});return function(s,o){return e.apply(this,arguments)}}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.