PageSourceSearch

https://naemo.ai/_next/static/chunks/7135-c8592368e5eaa0ee.js

js naemo.ai collected 2026-09-24 14:29:59 UTC 9,100 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7135],{17829:function(e,t,n){n.d(t,{Z:function(){return m}});var r=n(57437),i=n(2265),c=n(99376),u=n(81906),a=n(33728),o=n(22825),l=n(13100),s=n(45007),d=n(92846),f=n(21652);function h(e,t){if(!e)return!1;let n=t;for(;n&&n!==e;){if(n.scrollTop>0)return!0;n=n.parentElement}let r=e.querySelector("[data-pull-scroll]");if(r&&r.scrollTop>0||e.scrollTop>0)return!0;let i=e.querySelectorAll('[data-pull-scroll], .overflow-y-auto, [class*="overflow-y"]');for(let e=0;e<i.length;e++)if(i[e].scrollTop>0)return!0;return!1}function m(e){let{children:t,enabled:n=!0}=e,m=(0,i.useRef)(null),v=(0,i.useRef)(0),p=(0,i.useRef)(0),b=(0,i.useRef)(!1),g=(0,i.useRef)(!1),[y,w]=(0,i.useState)(!1),E=(0,c.useRouter)(),P=(0,i.useRef)(null),T=(0,i.useRef)(null),k=(0,i.useRef)(null),x=(0,i.useRef)(null),C=(0,u.c)(0),L=(0,a.H)(C,[0,60],[0,1]),j=(0,a.H)(C,[0,60],[.5,1]);(0,a.H)(C,[0,80],[0,360]);let R=(0,i.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b.current=!1,g.current=!1,x.current&&(x.current.stop(),x.current=null),e?(C.set(0),w(!1)):x.current=(0,o.j)(C,0,{duration:.25,ease:"easeOut",onComplete:()=>{C.set(0),w(!1),x.current=null}})},[C]);(0,i.useEffect)(()=>{y||b.current||0===C.get()||C.set(0)},[y,C]);let M=(0,i.useCallback)(e=>{n&&!y&&(0,f.UM)()&&(h(m.current,e.target)||(v.current=e.touches[0].clientX,p.current=e.touches[0].clientY,b.current=!0,g.current=!1))},[n,y]),A=(0,i.useCallback)(e=>{if(!b.current||!n||y)return;if(h(m.current,e.target)){b.current=!1,g.current=!1,C.set(0);return}let t=Math.abs(e.touches[0].clientX-v.current),r=e.touches[0].clientY-p.current;if(t>.7*r||r<=0){b.current=!1,g.current=!1,C.set(0);return}if(!g.current){if(r<10)return;g.current=!0}e.cancelable&&e.preventDefault(),C.set(Math.min((r-10)*.4,100))},[n,y,C]),S=(0,i.useCallback)(()=>{if(!b.current||!n)return;let e=C.get();b.current=!1,g.current=!1,e>=60&&!y?(w(!0),x.current&&(x.current.stop(),x.current=null),x.current=(0,o.j)(C,60,{duration:.2}),P.current&&clearTimeout(P.current),T.current&&clearTimeout(T.current),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{R(!1)},3e3),P.current=setTimeout(()=>{d.MU.impact("medium"),E.refresh(),window.dispatchEvent(new CustomEvent("refresh-active-view")),T.current=setTimeout(()=>{k.current&&clearTimeout(k.current),R(!1)},500)},600)):R(!1)},[n,y,C,E,R]),z=(0,i.useCallback)(()=>{b.current&&R(!1)},[R]);return((0,i.useEffect)(()=>{let e=m.current;if(e&&n)return e.addEventListener("touchstart",M,{passive:!0}),e.addEventListener("touchmove",A,{passive:!1}),e.addEventListener("touchend",S,{passive:!0}),e.addEventListener("touchcancel",z,{passive:!0}),()=>{e.removeEventListener("touchstart",M),e.removeEventListener("touchmove",A),e.removeEventListener("touchend",S),e.removeEventListener("touchcancel",z)}},[n,M,A,S,z]),(0,i.useEffect)(()=>()=>{P.current&&clearTimeout(P.current),T.current&&clearTimeout(T.current),k.current&&clearTimeout(k.current),x.current&&(x.current.stop(),x.current=null),C.set(0)},[C]),n)?(0,r.jsxs)("div",{ref:m,className:"relative h-full flex flex-col min-h-0 md:contents",children:[(0,r.jsx)(l.E.div,{className:"md:hidden absolute top-0 left-0 right-0 flex items-center justify-center z-40 pointer-events-none",style:{height:C,opacity:L},children:(0,r.jsx)(l.E.div,{style:{scale:j},className:"flex items-center justify-center w-9 h-9 rounded-full bg-white dark:bg-zinc-800 shadow-md border border-zinc-200/60 dark:border-zinc-700/60",children:(0,r.jsx)(s.w,{src:"/lordicons/refresh.json",size:24,trigger:y?"loop":"in",originalColors:!0})})}),t]}):(0,r.jsx)(r.Fragment,{children:t})}},92846:function(e,t,n){n.d(t,{MU:function(){return l},Jn:function(){return o}});var r=n(9244),i=n(61882);let c="naemo-ios-haptic";function u(e,t,n){return!!(0,i.ei)(e)||"MacIntel"===t&&(null!=n?n:0)>1}function a(e,t){if("undefined"!=typeof navigator&&u(navigator.userAgent,navigator.platform,navigator.maxTouchPoints)){try{!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(e<1)return;let n=function(e){var t;let n=e.getElementById(c);if(n instanceof HTMLLabelElement)return n;if(!e.body&&!e.documentElement)return null;let r=e.createElement("label");r.id=c,r.setAttribute("aria-hidden","true"),r.style.cssText="position:fixed;left:0;bottom:0;width:1px;height:1px;opacity:0.01;pointer-events:none;overflow:hidden;z-index:-1";let i=e.createElement("input");return i.type="checkbox",i.setAttribute("switch",""),i.tabIndex=-1,r.appendChild(i),(null!==(t=e.body)&&void 0!==t?t:e.documentElement).appendChild(r),r}(t);if(n)for(let t=0;t<e;t++)n.click()}("error"===e?3:"success"===e||"warning"===e?2:1)}catch(e){}return}!function(e){if("navigator"in window&&"function"==typeof navigator.vibrate)try{navigator.vibrate(e)}catch(e){}}(t)}async function o(){if((0,r.c)())try{let{Haptics:e,ImpactStyle:t}=await n.e(8140).then(n.bind(n,98140));
1await e.impact({style:t.Light});return}catch(e){}a("tap",25)}let l={tap:o,selection:async function(){if((0,r.c)())try{let{Haptics:e}=await n.e(8140).then(n.bind(n,98140));await e.selectionChanged();return}catch(e){}a("selection",15)},impact:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";if((0,r.c)())try{let{Haptics:t,ImpactStyle:r}=await n.e(8140).then(n.bind(n,98140)),i={light:r.Light,medium:r.Medium,heavy:r.Heavy};await t.impact({style:i[e]});return}catch(e){}a("impact",{light:25,medium:45,heavy:70}[e])},success:async function(){if((0,r.c)())try{let{Haptics:e,NotificationType:t}=await n.e(8140).then(n.bind(n,98140));await e.notification({type:t.Success});return}catch(e){}a("success",[25,60,35])},warning:async function(){if((0,r.c)())try{let{Haptics:e,NotificationType:t}=await n.e(8140).then(n.bind(n,98140));await e.notification({type:t.Warning});return}catch(e){}a("warning",[40,50,40])},error:async function(){if((0,r.c)())try{let{Haptics:e,NotificationType:t}=await n.e(8140).then(n.bind(n,98140));await e.notification({type:t.Error});return}catch(e){}a("error",[60,50,60])},isSupported:function(){return"undefined"!=typeof navigator&&("function"==typeof navigator.vibrate||u(navigator.userAgent,navigator.platform,navigator.maxTouchPoints))}}},61882:function(e,t,n){function r(e){return/iPad|iPhone|iPod/.test(e)}function i(e){return/iPhone/.test(e)}function c(e){return e.hasAndroidPrompt?"android":e.isIOS?"ios":"other"}function u(e){var t,n;return!e.isStandalone&&!e.isInstalled&&"other"!==e.platform&&!!e.delayElapsed&&(t=e.dismissedAt,n=e.now,!t||!(n-t<6048e5))}n.d(t,{E1:function(){return c},ei:function(){return r},nO:function(){return i},vy:function(){return u}})},52570:function(e,t,n){n.d(t,{T:function(){return u}});var r=n(21652);let i={hub:()=>n.e(1487).then(n.bind(n,41487)),settings:()=>Promise.all([n.e(4561),n.e(2145),n.e(4908),n.e(809),n.e(8259),n.e(6664)]).then(n.bind(n,68259)),dashboard:()=>Promise.all([n.e(4065),n.e(4561),n.e(2145),n.e(3500),n.e(8726),n.e(4908),n.e(809),n.e(2360),n.e(9717),n.e(8390),n.e(5238),n.e(8782)]).then(n.bind(n,55238)),"student-management":()=>Promise.all([n.e(4561),n.e(2145),n.e(3500),n.e(4908),n.e(809),n.e(3917),n.e(2407),n.e(5551)]).then(n.bind(n,48457)),attendance:()=>Promise.all([n.e(4561),n.e(5804),n.e(4908),n.e(6710),n.e(7502),n.e(7276)]).then(n.bind(n,67502)),seating:()=>Promise.all([n.e(4561),n.e(6988),n.e(4908),n.e(3450),n.e(1870)]).then(n.bind(n,93450)),cleaning:()=>Promise.all([n.e(4561),n.e(4908),n.e(8331),n.e(6171)]).then(n.bind(n,58331)),activity:()=>Promise.all([n.e(3719),n.e(4561),n.e(2145),n.e(5398),n.e(4908),n.e(809),n.e(9136),n.e(3202),n.e(9284),n.e(8637)]).then(n.bind(n,49284)),"work-schedule":()=>Promise.all([n.e(4561),n.e(5804),n.e(6941),n.e(4908),n.e(2360),n.e(6710),n.e(8037),n.e(6593)]).then(n.bind(n,78037)),nametag:()=>Promise.all([n.e(4561),n.e(4908),n.e(3285),n.e(8035)]).then(n.bind(n,13285)),"random-picker":()=>Promise.all([n.e(4561),n.e(4831),n.e(4908),n.e(6806),n.e(4928)]).then(n.bind(n,96806)),survey:()=>Promise.all([n.e(3719),n.e(4561),n.e(2145),n.e(5398),n.e(4908),n.e(9646),n.e(8532)]).then(n.bind(n,89646)),"work-notes":()=>Promise.all([n.e(2145),n.e(2207),n.e(9925)]).then(n.bind(n,72207)),"evaluation-record":()=>Promise.all([n.e(4561),n.e(2145),n.e(4908),n.e(809),n.e(9136),n.e(3202),n.e(8280),n.e(7467)]).then(n.bind(n,48280)),"behavior-record":()=>Promise.all([n.e(4561),n.e(2145),n.e(37),n.e(4908),n.e(809),n.e(9136),n.e(7861),n.e(6480)]).then(n.bind(n,67861)),plans:()=>Promise.all([n.e(6703),n.e(2009)]).then(n.bind(n,46703)),checkout:()=>Promise.all([n.e(1658),n.e(8299)]).then(n.bind(n,61658)),"attendance-print":()=>Promise.all([n.e(4561),n.e(4908),n.e(2537),n.e(2283)]).then(n.bind(n,52537))},c={cleaning:()=>Promise.all([n.e(4561),n.e(2397),n.e(4908),n.e(6038),n.e(8893)]).then(n.bind(n,96038)),activity:()=>Promise.all([n.e(3719),n.e(4561),n.e(5398),n.e(3086),n.e(4908),n.e(9136),n.e(9589),n.e(8290)]).then(n.bind(n,99589)),"random-picker":()=>Promise.all([n.e(4561),n.e(4831),n.e(4908),n.e(5784),n.e(4565)]).then(n.bind(n,5784))};function u(e){let t=(0,r.UM)()&&c[e]||i[e];t&&t().catch(()=>{})}}}]);

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.