PageSourceSearch

https://www.texaschildrens.org/themes/custom/tc/dist/js/03-organis…/alerts-notifications.js?tm8ji8

js texaschildrens.org collected 2026-10-02 02:35:36 UTC 10,866 bytes, 1 lines download raw bytes

1!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=38)}({0:function(t,e){function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,a,i,c=[],u=!0,s=!1;try{if(a=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(s)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}t.exports={makeRequest:function(t){var e=t.method,n=void 0===e?"GET":e,o=t.url,a=t.data,i=void 0===a?{}:a,c=t.headers,u=void 0===c?{}:c;return new Promise((function(t,e){var a=new XMLHttpRequest;if("GET"===n){var c="";if(0!=Object.keys(i).length){var s=function(t){return Object.entries(t).map((function(t){return"".concat(t[0],"=").concat(t[1])})).join("&")}(i);c=i?"?"+s:""}a.open(n,"".concat(o).concat(c))}else a.open(n,"".concat(o));a.setRequestHeader("X-Requested-With","XMLHttpRequest"),(a=function(t,e){for(var n,o=0,a=Object.entries(e);o<a.length;o++)n=r(a[o],2),key=n[0],value=n[1],t.setRequestHeader(key,value);return t}(a,u)).onload=function(){200<=a.status&&400>a.status?t(JSON.parse(a.responseText)):t(a.responseText)},a.onerror=function(){return e(a.statusText)},"GET"===n?a.send():(a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),a.send(i))}))}}},38:function(t,e,r){"use strict";r.r(e);r(0);function n(){function t(t,r,n,a){var i=r&&r.prototype instanceof e?r:e,s=Object.create(i.prototype);return o(s,"_invoke",function(t,e,r){function n(t,e){for(a=t,i=e,u=0;!d&&s&&!r&&u<l.length;u++){var r,n=l[u],o=f.p,m=n[2];3<t?(r=m===e)&&(i=n[(a=n[4])?5:(a=3,3)],n[4]=n[5]=c):n[0]<=o&&((r=2>t&&o<n[1])?(a=0,f.v=e,f.n=n[1]):o<m&&(r=3>t||n[0]>e||e>m)&&(n[4]=t,n[5]=e,f.n=m,a=0))}if(r||1<t)return p;throw d=!0,e}var o,a,i,s=0,l=r||[],d=!1,f={p:0,n:0,v:c,a:n,f:n.bind(c,4),d:function(t,e){return o=t,a=0,i=c,f.n=e,p}};return function(r,l,m){if(1<s)throw TypeError("Generator is already running");for(d&&1===l&&n(l,m),a=l,i=m;(u=2>a?c:i)||!d;){o||(a?3>a?(1<a&&(f.n=-1),n(a,i)):f.n=i:f.v=i);try{if(s=2,o){if(a||(r="next"),u=o[r]){if(!(u=u.call(o,i)))throw TypeError("iterator result is not an object");if(!u.done)return u;i=u.value,2>a&&(a=0)}else 1===a&&(u=o.return)&&u.call(o),2>a&&(i=TypeError("The iterator does not provide a '"+r+"' method"),a=1);o=c}else if((u=(d=0>f.n)?i:t.call(e,f))!==p)break}catch(r){o=c,a=1,i=r}finally{s=1}}return{value:u,done:d}}}(t,n,a),!0),s}function e(){}function r(){}function a(){}function i(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,o(t,d,"GeneratorFunction")),t.prototype=Object.create(m),t}var c,u,s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",d=s.toStringTag||"@@toStringTag",p={};u=Object.getPrototypeOf;var f=[][l]?u(u([][l]())):(o(u={},l,(function(){return this})),u),m=a.prototype=e.prototype=Object.create(f);return r.prototype=a,o(m,"constructor",a),o(a,"constructor",r),r.displayName="GeneratorFunction",o(a,d,"GeneratorFunction"),o(m),o(m,d,"Generator"),o(m,l,(function(){return this})),o(m,"toString",(function(){return"[object Generator]"})),(n=function(){return{w:t,m:i}})()}function o(t,e,r,n){var a=Object.defineProperty;try{a({},"",{})}catch(r){a=0}(o=function(t,e,r,n){function i(e,r){o(t,e,(function(t){return this._invoke(e,r,t)}))}e?a?a(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))})(t,e,r,n)}function a(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(e){return void r(e)}c.done?e(u):Promise.resolve(u).then(n,o)}Drupal.behaviors.alertsAnotifications={attach:function(t){return function(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){function a(t){c(u,n,o,a,i,"next",t)}function i(t){c(u,n,o,a,i,"throw",t)}var u=t.apply(e,r);a(void 0)}))}}(n().m((function e(){var r,o,i,c,u,s,l,d,p,f,m,y,b,h,g,v,S,w;return n().w((function(e){for(;;)switch(e.n){case 0:if(b=function(){var t=r.querySelectorAll('[role="tab"]'),e=r.querySelector('[role="tablist"]');t.forEach((function(t){t.addEventListener("click",y)}));var n=0;e.addEventListener("keydown",(function(e){(39===e.keyCode||37===e.ke
1yCode)&&(t[parseInt(n,10)].setAttribute("tabindex",-1),39===e.keyCode?++n>=t.length&&(n=0):37===e.keyCode&&(0>--n&&(n=t.length-1)),t[parseInt(n,10)].setAttribute("tabindex",0),t[parseInt(n,10)].focus())}))},y=function(t){var e=t.target,r=e.parentNode;return"true"===e.getAttribute("aria-selected")?(r.querySelectorAll('[aria-selected="true"]').forEach((function(t){return t.setAttribute("aria-selected",!1)})),void s.querySelectorAll('[role="tabpanel"]').forEach((function(t){return t.setAttribute("hidden",!0)}))):(r.querySelectorAll('[aria-selected="true"]').forEach((function(t){return t.setAttribute("aria-selected",!1)})),e.setAttribute("aria-selected",!0),s.querySelectorAll('[role="tabpanel"]').forEach((function(t){return t.setAttribute("hidden",!0)})),void s.querySelector("#".concat(e.getAttribute("aria-controls"))).removeAttribute("hidden"))},m=function(t,e){var r=p.content.cloneNode(!0),n=r.querySelector(".container-alert"),o=r.querySelector(".list-alert"),a=r.querySelector(".content-alert");o.innerHTML="",n.setAttribute("id","panel-".concat(e)),t.forEach((function(t){var e=a.cloneNode(!0);e.innerHTML="\n          ".concat(t.image?t.image:"",'\n          <div>\n            <span class="head-alert">').concat(t.headline,"</span> ").concat(t.content,"\n          </div>\n        "),o.append(e)})),s.appendChild(r)},f=function(t,e){var r=d.content.cloneNode(!0).querySelector(".cta-button");r.setAttribute("aria-controls","panel-".concat(e)),r.setAttribute("id","tab-".concat(e)),0===e&&r.setAttribute("tabindex",0),r.prepend(t),r.dataset.analyticsValue=t,u.appendChild(r)},r=t.querySelector(".alerts-notifications"),o=t.querySelector("[data-node-id]"),r&&o&&o.dataset.nodeId){e.n=1;break}return e.a(2);case 1:i=o.dataset.nodeId,c=r.querySelector(".alerts-notifications__close"),r.dataset.endpoint,u=r.querySelector(".tabs-btn-container"),s=r.querySelector(".tabs-container"),l="alerts-notifications--active",d=u.querySelector("#tab-btn-template"),p=s.querySelector("#tab-container-template"),c.addEventListener("click",(function(){r.classList.remove(l)})),(h="https://www.texaschildrens.org/")+"export/alert/global-alerts",g=h+"export/alert/page-specific/".concat(i),v=fetch("https://www.texaschildrens.org/export/alert/global-alerts").then((function(t){return t.json()})),S=fetch(g).then((function(t){return t.json()})),w={"Partnership Announcement":["/departments/cancer-and-hematology","/departments/brain-tumor-program","/departments/brain-and-spinal-cord-tumor-program","/research/areas-research/cancer-genetics-and-genomics","/departments/cancer-genetics-clinic","/departments/cancer-prevention-and-screening-clinic","/departments/precision-oncology-consultation-service","/departments/developmental-therapeutics-phase-i-clinic","/departments/histiocytosis-program","/departments/immunotherapy-program","/departments/leukemia-program","/departments/long-term-survivor-program","/departments/lymphoma-program","/departments/palliative-care-program-cancer-and-hematology","/departments/retinoblastoma-center","/departments/solid-tumor-programs","/departments/bone-tumor-program","/departments/ewing-sarcoma-center","/departments/liver-tumor-program","/departments/neuroblastoma-program","/departments/rare-tumors-program","/departments/soft-tissue-sarcoma-program","/departments/thyroid-program/thyroid-cancer-program","/departments/surgical-oncology-program","/departments/bone-marrow-failure-program","/departments/general-hematology-program","/departments/hemostasis-and-thrombosis-program","/departments/pediatric-and-adolescent-hematology-and-gynecology-clinic","/departments/iron-disorders-and-nutritional-anemias-program","/departments/itp-and-immune-hematology-program","/departments/sickle-cell-and-thalassemia-program","/departments/vascular-anomalies-center","/departments/cell-therapy-and-bone-marrow-transplant","/departments/retinoblastoma-center/"]},Promise.all([v,S]).then((function(t){if(t&&0!==t.length){t=t.flat().sort((function(t,e){return new Date(t.startDate)<new Date(e.startDate)?1:new Date(t.startDate)>new Date(e.startDate)?-1:0}));var e=a(new Set(t.map((function(t){return t.category})))),n=!1;e.forEach((function(e,r){return Object.keys(w).includes(e)&&!w[e].find((function(t){return window.location.pathname.startsWith(t)}))?void(n=!0):(f(e,r),void m(t.filter((function(t){return t.category===e})),r))})),n||(b(),r.classList.toggle(l,e.length))}})).catch((function(t){console.error(t)}));case 2:return e.a(2)}}),e)})))()}}}});

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.