PageSourceSearch

https://www.workday.com/etc.clientlibs/atlas/clientlibs/common/pub…/js/4548.12f616c5a7876cc3e621.bundle.js

js workday.com collected 2026-10-01 08:36:28 UTC 5,744 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkui_apps=self.webpackChunkui_apps||[]).push([[4548],{4548(__unused_webpack_module,__webpack_exports__,__webpack_require__){eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3029);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2901);\n/* harmony import */ var ClientLibsJS_utils_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(222);\n/* harmony import */ var ClientLibsJS_utils_analytics__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(7683);\nvar CARD_CLICK_BOUND_ATTR='data-standardcard-click-bound';var BUTTON_CLICK_BOUND_ATTR='data-standardcard-btn-bound';/** Brief delay so ACDL / Alloy can send before same-tab navigation unloads the page. */var SAME_TAB_NAV_DELAY_MS=1500;var StandardCard=/*#__PURE__*/function(){function StandardCard(){(0,_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .A)(this,StandardCard);this.standardCard=document.querySelectorAll('.cmp-standardcard');}return (0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__/* [\"default\"] */ .A)(StandardCard,[{key:\"applyTextColor\",value:function applyTextColor(card){var parent=(0,ClientLibsJS_utils_helpers__WEBPACK_IMPORTED_MODULE_2__/* .getParentByClass */ .s_)(card,'standardcard');if(parent){var getSectionColor=window.getComputedStyle(card).backgroundColor;if(getSectionColor==='rgb(0, 92, 185)'||getSectionColor==='rgb(8, 117, 225)'||getSectionColor==='rgb(0, 0, 0)'||getSectionColor==='rgb(51, 51, 51)'||getSectionColor==='rgb(134, 96, 209)'||getSectionColor==='rgb(97, 97, 97)'||getSectionColor==='rgb(0, 67, 135)'){card.classList.add('french-vanilla');}else if(getSectionColor==='rgb(255, 255, 255)'||getSectionColor==='rgb(0, 0, 0, 0)'){card.classList.add('black-pepper','bg-white');}else{card.classList.add('black-pepper');}}}},{key:\"run\",value:function run(){var _this=this;this.standardCard.forEach(function(card){card.parentNode.parentNode.classList.add('standardcard__container-wrapper');_this.applyTextColor(card);});var waitForListToLoad=setInterval(function(){var standardCardList=document.querySelectorAll('.standardcard__container-wrapper');if(standardCardList!==null){clearInterval(waitForListToLoad);for(var i=0;i<standardCardList.length;i++){var standardCardListContent=standardCardList[i].querySelectorAll('.standardcard__container');if(standardCardListContent!==null){var fourCards='standardcard__container-wrapper-four';var threeCards='standardcard__container-wrapper-three';var twoCards='standardcard__container-wrapper-two';var cardCount=standardCardListContent.length;var containerHasLargeCard=Array.from(standardCardListContent).some(function(card){var _card$classList;return card===null||card===void 0||(_card$classList=card.classList)===null||_card$classList===void 0?void 0:_card$classList.contains('standardcard-large');});var setCountClassName=cardCount>=4?fourCards:cardCount===3?threeCards:twoCards;if(!containerHasLargeCard){standardCardList[i].classList.add(setCountClassName);}var standardCardItem=standardCardList[i].querySelectorAll('.standardcard__container');standardCardItem.forEach(function(card){var standardCardButton=card.querySelector('.wd-btn');if(standardCardButton){_this.bindCardClick(card,standardCardButton);_this.bindButtonClick(card,standardCardButton);}else{card.classList.add('no-hover-state');}});}}}},10);}},{key:\"standardCardAnalytics\",value:function standardCardAnalytics(card,targetElement){if(!targetElement)return;(0,ClientLibsJS_utils_analytics__WEBPACK_IMPORTED_MODULE_3__/* .standardCardACDLAnalytics */ .eR)(card,targetElement);}},{key:\"isModifiedClick\",value:function isModifiedClick(event){return event.button!==0||event.metaKey||event.ctrlKey||event.shiftKey||event.altKey;}},{key:\"opensNewTab\",value:function opensNewTab(button){var target=(button.getAttribute('target')||'_self').toLowerCase();return target==='_blank'||target==='_new';}}
1,{key:\"bindCardClick\",value:function bindCardClick(card,standardCardButton){var _this2=this;if(card.hasAttribute(CARD_CLICK_BOUND_ATTR))return;card.setAttribute(CARD_CLICK_BOUND_ATTR,'true');card.addEventListener('click',function(event){if(event.target.closest('.wd-btn')){return;}_this2.standardCardAnalytics(card,standardCardButton);var href=standardCardButton.getAttribute('href');var target=standardCardButton.getAttribute('target')||'_self';window.open(href,target);var videoEl=card.querySelector('a.cmp-videomodal');if(videoEl){videoEl.click();}});}},{key:\"bindButtonClick\",value:function bindButtonClick(card,standardCardButton){var _this3=this;if(standardCardButton.hasAttribute(BUTTON_CLICK_BOUND_ATTR))return;standardCardButton.setAttribute(BUTTON_CLICK_BOUND_ATTR,'true');standardCardButton.addEventListener('click',function(event){_this3.standardCardAnalytics(card,standardCardButton);if(_this3.opensNewTab(standardCardButton)||_this3.isModifiedClick(event)||standardCardButton.classList.contains('cmp-videomodal')||!standardCardButton.href||standardCardButton.getAttribute('href')==='#0'){return;}event.preventDefault();var href=standardCardButton.href;window.setTimeout(function(){window.location.assign(href);},SAME_TAB_NAV_DELAY_MS);},{capture:true});}}]);}();/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardCard);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, [\n/* harmony export */   \"default\", 0, __WEBPACK_DEFAULT_EXPORT__\n/* harmony export */ ]);\n\n\n//# sourceURL=webpack://ui.apps/./src/main/content/jcr_root/apps/atlas/components/content/standardcard/v1/standardcard/standardcard.js?\n}")}}]);

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.