PageSourceSearch

https://www.dow.com/etc.clientlibs/dow-platform/clientlibs/clientl…/resources/5234.38925c0202b46a6c.js

js dow.com collected 2026-09-24 15:17:53 UTC 8,410 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkdow_platform_ui_frontend"]=self["webpackChunkdow_platform_ui_frontend"]||[]).push([[5234],{6301:function(e,t,n){n.d(t,{A:function(){return l}});var o=n(60168),r=n(39578),u=function(){return r.A.Date.now()},a=u,c=n(10754),i="Expected a function",s=Math.max,d=Math.min;function f(e,t,n){var r,u,f,l,v,p,m=0,E=!1,w=!1,h=!0;if("function"!=typeof e)throw new TypeError(i);function y(t){var n=r,o=u;return r=u=void 0,m=t,l=e.apply(o,n),l}function L(e){return m=e,v=setTimeout(k,t),E?y(e):l}function T(e){var n=e-p,o=e-m,r=t-n;return w?d(r,f-o):r}function b(e){var n=e-p,o=e-m;return void 0===p||n>=t||n<0||w&&o>=f}function k(){var e=a();if(b(e))return A(e);v=setTimeout(k,T(e))}function A(e){return v=void 0,h&&r?y(e):(r=u=void 0,l)}function g(){void 0!==v&&clearTimeout(v),m=0,r=p=u=v=void 0}function _(){return void 0===v?l:A(a())}function N(){var e=a(),n=b(e);if(r=arguments,u=this,p=e,n){if(void 0===v)return L(p);if(w)return clearTimeout(v),v=setTimeout(k,t),y(p)}return void 0===v&&(v=setTimeout(k,t)),l}return t=(0,c.A)(t)||0,(0,o.A)(n)&&(E=!!n.leading,w="maxWait"in n,f=w?s((0,c.A)(n.maxWait)||0,t):f,h="trailing"in n?!!n.trailing:h),N.cancel=g,N.flush=_,N}var l=f},10754:function(e,t,n){n.d(t,{A:function(){return w}});var o=/\s/;function r(e){var t=e.length;while(t--&&o.test(e.charAt(t)));return t}var u=r,a=/^\s+/;function c(e){return e?e.slice(0,u(e)+1).replace(a,""):e}var i=c,s=n(60168),d=n(18095),f=NaN,l=/^[-+]0x[0-9a-f]+$/i,v=/^0b[01]+$/i,p=/^0o[0-7]+$/i,m=parseInt;function E(e){if("number"==typeof e)return e;if((0,d.A)(e))return f;if((0,s.A)(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=(0,s.A)(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=v.test(e);return n||p.test(e)?m(e.slice(2),n?2:8):l.test(e)?f:+e}var w=E},38299:function(e,t,n){n.d(t,{k:function(){return r}});var o=n(47378);const r=(0,o.b_)({to:{type:(0,o.jq)([String,Object]),required:!0},disabled:Boolean})},76834:function(e,t,n){n.d(t,{A:function(){return C}});n(44114);var o=n(77001),r=n(16032),u=n(93291),a=n(6340);const c=(0,o.ref)(),i=(0,o.ref)(0),s=(0,o.ref)(0);let d=0;const f=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});while(n.nextNode())t.push(n.currentNode);return t},l=(e,t)=>{for(const n of e)if(!v(n,t))return n},v=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;while(e){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},p=e=>{const t=f(e),n=l(t,e),o=l(t.reverse(),e);return[n,o]},m=e=>e instanceof HTMLInputElement&&"select"in e,E=(e,t)=>{if(e){const n=document.activeElement;(0,a.pW)(e,{preventScroll:!0}),s.value=window.performance.now(),e!==n&&m(e)&&t&&e.select()}};function w(e,t){const n=[...e],o=e.indexOf(t);return-1!==o&&n.splice(o,1),n}const h=()=>{let e=[];const t=t=>{const n=e[0];n&&t!==n&&n.pause(),e=w(e,t),e.unshift(t)},n=t=>{var n,o;e=w(e,t),null==(o=null==(n=e[0])?void 0:n.resume)||o.call(n)};return{push:t,remove:n}},y=(e,t=!1)=>{const n=document.activeElement;for(const o of e)if(E(o,t),document.activeElement!==n)return},L=h(),T=()=>i.value>s.value,b=()=>{c.value="pointer",i.value=window.performance.now()},k=()=>{c.value="keyboard",i.value=window.performance.now()},A=()=>((0,o.onMounted)(()=>{0===d&&(document.addEventListener("mousedown",b),document.addEventListener("touchstart",b),document.addEventListener("keydown",k)),d++}),(0,o.onBeforeUnmount)(()=>{d--,d<=0&&(document.removeEventListener("mousedown",b),document.removeEventListener("touchstart",b),document.removeEventListener("keydown",k))}),{focusReason:c,lastUserFocusTimestamp:i,lastAutomatedFocusTimestamp:s}),g=e=>new CustomEvent(u.d,{...u.oV,detail:e});var _=n(99077),N=n(20153),P=n(10515);let R=[];const S=e=>{e.code===P.R.esc&&R.forEach(t=>t(e))},I=e=>{(0,o.onMounted)(()=>{0===R.length&&document.addEventListener("keydown",S),N.oc&&R.push(e)}),(0,o.onBeforeUnmount)(()=>{R=R.filter(t=>t!==e),0===R.length&&N.oc&&document.removeEventListener("keydown",S)})};var F=n(24232);
1const K=(0,o.defineComponent)({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[u.NP,u.fI,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=(0,o.ref)();let a,c;const{focusReason:i}=A();I(n=>{e.trapped&&!s.paused&&t("release-requested",n)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},d=n=>{if(!e.loop&&!e.trapped)return;if(s.paused)return;const{code:o,altKey:r,ctrlKey:u,metaKey:a,currentTarget:c,shiftKey:d}=n,{loop:f}=e,l=o===P.R.tab&&!r&&!u&&!a,v=document.activeElement;if(l&&v){const e=c,[o,r]=p(e),u=o&&r;if(u)if(d||v!==r){if(d&&[o,e].includes(v)){const e=g({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),f&&E(r,!0))}}else{const e=g({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||(n.preventDefault(),f&&E(o,!0))}else if(v===e){const e=g({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||n.preventDefault()}}};(0,o.provide)(u.r3,{focusTrapRef:n,onKeydown:d}),(0,o.watch)(()=>e.focusTrapEl,e=>{e&&(n.value=e)},{immediate:!0}),(0,o.watch)([n],([e],[t])=>{e&&(e.addEventListener("keydown",d),e.addEventListener("focusin",m),e.addEventListener("focusout",w)),t&&(t.removeEventListener("keydown",d),t.removeEventListener("focusin",m),t.removeEventListener("focusout",w))});const l=e=>{t(u.NP,e)},v=e=>t(u.fI,e),m=r=>{const u=(0,o.unref)(n);if(!u)return;const i=r.target,d=r.relatedTarget,f=i&&u.contains(i);if(!e.trapped){const e=d&&u.contains(d);e||(a=d)}f&&t("focusin",r),s.paused||e.trapped&&(f?c=i:E(c,!0))},w=u=>{const a=(0,o.unref)(n);if(!s.paused&&a)if(e.trapped){const n=u.relatedTarget;(0,r.A)(n)||a.contains(n)||setTimeout(()=>{if(!s.paused&&e.trapped){const e=g({focusReason:i.value});t("focusout-prevented",e),e.defaultPrevented||E(c,!0)}},0)}else{const e=u.target,n=e&&a.contains(e);n||t("focusout",u)}};async function h(){await(0,o.nextTick)();const t=(0,o.unref)(n);if(t){L.push(s);const n=t.contains(document.activeElement)?a:document.activeElement;a=n;const r=t.contains(n);if(!r){const r=new Event(u.Ll,u.MP);t.addEventListener(u.Ll,l),t.dispatchEvent(r),r.defaultPrevented||(0,o.nextTick)(()=>{let o=e.focusStartEl;(0,F.Kg)(o)||(E(o),document.activeElement!==o&&(o="first")),"first"===o&&y(f(t),!0),document.activeElement!==n&&"container"!==o||E(t)})}}}function b(){const e=(0,o.unref)(n);if(e){e.removeEventListener(u.Ll,l);const t=new CustomEvent(u.aw,{...u.MP,detail:{focusReason:i.value}});e.addEventListener(u.aw,v),e.dispatchEvent(t),t.defaultPrevented||"keyboard"!=i.value&&T()&&!e.contains(document.activeElement)||E(null!=a?a:document.body),e.removeEventListener(u.aw,v),L.remove(s),a=null,c=null}}return(0,o.onMounted)(()=>{e.trapped&&h(),(0,o.watch)(()=>e.trapped,e=>{e?h():b()})}),(0,o.onBeforeUnmount)(()=>{e.trapped&&b(),n.value&&(n.value.removeEventListener("keydown",d),n.value.removeEventListener("focusin",m),n.value.removeEventListener("focusout",w),n.value=void 0)}),{onKeydown:d}}});function x(e,t,n,r,u,a){return(0,o.renderSlot)(e.$slots,"default",{handleKeydown:e.onKeydown})}var C=(0,_.A)(K,[["render",x],["__file","focus-trap.vue"]])},93291:function(e,t,n){n.d(t,{Ll:function(){return o},MP:function(){return a},NP:function(){return i},aw:function(){return r},d:function(){return u},fI:function(){return s},oV:function(){return c},r3:function(){return d}});const o="focus-trap.focus-after-trapped",r="focus-trap.focus-after-released",u="focus-trap.focusout-prevented",a={cancelable:!0,bubbles:!1},c={cancelable:!0,bubbles:!1},i="focusAfterTrapped",s="focusAfterReleased",d=Symbol("elFocusTrap")},98769:function(e,t,n){n.d(t,{Nr:function(){return s}});var o=n(77001),r=n(38299),u=n(99077);const a=(0,o.defineComponent)({__name:"teleport",props:r.k,setup(e){return(e,t)=>e.disabled?(0,o.renderSlot)(e.$slots,"default",{key:0}):((0,o.openBlock)(),(0,o.createBlock)(o.Teleport,{key:1,to:e.to},[(0,o.renderSlot)(e.$slots,"default")],8,["to"]))}});var c=(0,u.A)(a,[["__file","teleport.vue"]]),i=n(25376);const s=(0,i.GU)(c)}}]);
2//# sourceMappingURL=clientlib-dependencies/resources/5234.38925c0202b46a6c.js.map

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.