PageSourceSearch

https://www.artechschool.com/_next/static/chunks/1353-3ef155e185fe89cb.js

js artechschool.com collected 2026-09-25 03:34:35 UTC 5,104 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1353],{58068:function(e,t,r){r.d(t,{B:function(){return a}});var n=r(2265),o=r(73966),l=r(98575),u=r(37053),i=r(57437);function a(e){let t=e+"CollectionProvider",[r,a]=(0,o.b)(t),[c,f]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,o=n.useRef(null),l=n.useRef(new Map).current;return(0,i.jsx)(c,{scope:t,itemMap:l,collectionRef:o,children:r})};s.displayName=t;let d=e+"CollectionSlot",p=(0,u.Z8)(d),v=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,o=f(d,r),u=(0,l.e)(t,o.collectionRef);return(0,i.jsx)(p,{ref:u,children:n})});v.displayName=d;let m=e+"CollectionItemSlot",w="data-radix-collection-item",b=(0,u.Z8)(m),R=n.forwardRef((e,t)=>{let{scope:r,children:o,...u}=e,a=n.useRef(null),c=(0,l.e)(t,a),s=f(m,r);return n.useEffect(()=>(s.itemMap.set(a,{ref:a,...u}),()=>void s.itemMap.delete(a))),(0,i.jsx)(b,{[w]:"",ref:c,children:o})});return R.displayName=m,[{Provider:s,Slot:v,ItemSlot:R},function(t){let r=f(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(w,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},a]}},29114:function(e,t,r){r.d(t,{gm:function(){return l}});var n=r(2265);r(57437);var o=n.createContext(void 0);function l(e){let t=n.useContext(o);return e||t||"ltr"}},1353:function(e,t,r){r.d(t,{Pc:function(){return x},ck:function(){return k},fC:function(){return E}});var n=r(2265),o=r(6741),l=r(58068),u=r(98575),i=r(73966),a=r(99255),c=r(66840),f=r(26606),s=r(80886),d=r(29114),p=r(57437),v="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},w="RovingFocusGroup",[b,R,g]=(0,l.B)(w),[h,x]=(0,i.b)(w,[g]),[y,M]=h(w),C=n.forwardRef((e,t)=>(0,p.jsx)(b.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(b.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(j,{...e,ref:t})})}));C.displayName=w;var j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:l,loop:i=!1,dir:a,currentTabStopId:b,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:h,onEntryFocus:x,preventScrollOnEntryFocus:M=!1,...C}=e,j=n.useRef(null),A=(0,u.e)(t,j),F=(0,d.gm)(a),[I,E]=(0,s.T)({prop:b,defaultProp:null!=g?g:null,onChange:h,caller:w}),[k,T]=n.useState(!1),D=(0,f.W)(x),P=R(r),_=n.useRef(!1),[K,N]=n.useState(0);return n.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(v,D),()=>e.removeEventListener(v,D)},[D]),(0,p.jsx)(y,{scope:r,orientation:l,dir:F,loop:i,currentTabStopId:I,onItemFocus:n.useCallback(e=>E(e),[E]),onItemShiftTab:n.useCallback(()=>T(!0),[]),onFocusableItemAdd:n.useCallback(()=>N(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>N(e=>e-1),[]),children:(0,p.jsx)(c.WV.div,{tabIndex:k||0===K?-1:0,"data-orientation":l,...C,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,o.Mj)(e.onMouseDown,()=>{_.current=!0}),onFocus:(0,o.Mj)(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(v,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=P().filter(e=>e.focusable);S([e.find(e=>e.active),e.find(e=>e.id===I),...e].filter(Boolean).map(e=>e.ref.current),M)}}_.current=!1}),onBlur:(0,o.Mj)(e.onBlur,()=>T(!1))})})}),A="RovingFocusGroupItem",F=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:l=!0,active:u=!1,tabStopId:i,children:f,...s}=e,d=(0,a.M)(),v=i||d,m=M(A,r),w=m.currentTabStopId===v,g=R(r),{onFocusableItemAdd:h,onFocusableItemRemove:x,currentTabStopId:y}=m;return n.useEffect(()=>{if(l)return h(),()=>x()},[l,h,x]),(0,p.jsx)(b.ItemSlot,{scope:r,id:v,focusable:l,active:u,children:(0,p.jsx)(c.WV.span,{tabIndex:w?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:(0,o.Mj)(e.onMouseDown,e=>{l?m.onItemFocus(v):e.preventDefault()}),onFocus:(0,o.Mj)(e.onFocus,()=>m.onItemFocus(v)),onKeyDown:(0,o.Mj)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return I[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=g().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let l=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=l+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(l+1)}setTimeout(()=>S(o))}}),children:"function"==typeof f?f({isCurrentTabStop:w,hasTabStop:null!=y}):f})})});F.displayName=A;var I={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var E=C,k=F}}]);

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.