1(()=>{var e={973(e,t,n){e.exports={...n(174)}},288(e,t,n){e.exports={...n(742)}},390(e,t,n){"use strict";n.d(t,{A:()=>r});const r={hours:function(e={},t=null){return!t.error&&t.payload&&"SET_HOURS"===t.type?t.payload:e}}},606(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var i,l=[],c=!1,u=-1;function d(){c&&i&&(c=!1,i.length?l=i.concat(l):u=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(i=l,l=[];++u<t;)i&&i[u].run();u=-1,t=l.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new g(e,t)),1!==l.length||c||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},742(e,t,n){const{log:r}=n(437);e.exports={fatal:(e,t=null)=>{r("FATAL",e,t)},error:(e,t=null)=>{r("ERROR",e,t)},warn:(e,t=null)=>{r("WARN",e,t)},info:(e,t=null)=>{r("INFO",e,t)},debug:(e,t=null)=>{r("DEBUG",e,t)},trace:(e,t=null)=>{r("TRACE",e,t)}}},437(e,t,n){const{levels:r,colors:o,logLevel:s,stderrLevels:a}=n(812);r[s];e.exports={log:(e,t,n)=>{false}}},812(e,t,n){const r=n(606).env.LOG_LEVEL||"INFO",o={FATAL:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,TRACE:5},s=new Set;Object.keys(o).forEach(e=>{o[e]<o.INFO&&s.add(e)});e.exports={levels:o,logLevel:r,stderrLevels:s,colors:{FATAL:"red bold",ERROR:"red",WARN:"yellow",INFO:"green",DEBUG:"cyan",TRACE:"blue"}}},174(e){"use strict";e.exports=DDC.WsmCommonData}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=ReactDOM,t=React;var r=n.n(t);const o=ReactRedux;var s=n(973);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(null,arguments)}class i extends r().Component{constructor(e){super(e),this.renderDelegate=this.renderDelegate.bind(this)}renderDelegate({labels:e}){const{HeadingTag:t,headingText:n,widgetId:o,toggleCollapse:s,showIcon:i,headingClasses:l,iconClasses:c}=this.props,u=[...c];let d={};if(s){const e="ddc-icon-expand";u.push(e),u.push("icon-style-collapse"),d={role:"button","data-toggle":"collapse","data-target":`#${o}-collapse`,"data-expand-icon-class":`${e}`,"data-collapse-icon-class":"ddc-icon-collapse","aria-expanded":"false","aria-controls":`${o}-collapse`}}return r().createElement(t,a({className:l.join(" ")},d),i&&r().createElement(r().Fragment,null,r().createElement("i",{className:u.join(" ")})," "),e.getHTML(n))}render(){return this.props.headingText&&"FALSE"!==this.props.headingText.toUpperCase()?r().createElement(s.Common,{render:this.renderDelegate}):null}}i.defaultProps={HeadingTag:"h3",headingText:""};const l=i,c=e=>{const{id:t,children:n,toggleCollapse:o}=e;return o?r().createElement("div",{id:`${t}-collapse`,className:"collapse collapse-content"},n):n};c.defaultProps={toggleCollapse:!1};const u=c;var d=n(174);const p=({showIcon:e,iconName:t,iconColor:n})=>{const{iconAdditionalClasses:o}=(0,s.usePrefs)();return"true"===e&&""!==t?r().createElement("i",{className:`ddc-icon today-hours-icon ddc-icon-${t} ${n} ${o}`,"aria-hidden":"true","data-testid":"icon",role:"presentation"}):null},g=e=>[...new Set(e)].filter(e=>e).join(" ")||null,h=()=>"undefined"!=typeof window&&window.newrelic&&"object"==typeof window.newrelic;n(288);const f="ws-todays-hours",m=(e="",t)=>{((e,t)=>
1{h()&&window.newrelic.setCustomAttribute(e,t)})(`${f}-${e}`,t)};const w=e=>/^([01]?[0-9]|2[0-3]):[0-5][0-9] (am|pm)$/i.test(e.trim()),T=(e=null)=>{if(null===e)return new Date;const t=new Date,[n,r,o]=e.trim().split(/[:\s]/);let s=0;if(r&&(s=parseInt(r,10)),!o)throw m("WrongFormatHours",e),new Error('Time must be in the format "hh:mm am/pm" or "hh am/pm"');const a=n%12+("pm"===o.toLowerCase()?12:0);return t.setHours(a),t.setMinutes(s),t},y=(e,t=!1)=>{const n=e.getHours();return`${n%12||12}:${t?(e.getMinutes()<10?"0":"")+e.getMinutes():""} ${n>=12?"pm":"am"}`},E=(e,t,n)=>"string"==typeof t?`${n.get("TODAY")}: ${t}`:((e,t,n,r,o)=>{if("string"==typeof t&&"closed"===t.trim().toLowerCase()||"string"==typeof n&&"Closed"===n.trim().toLowerCase())return o.get("CLOSED_TODAY");if(!("string"==typeof e&&t instanceof Date&&n instanceof Date&&r instanceof Date&&o&&"object"==typeof o&&o.get))throw m("WrongDataType",{openingTime:t,closingTime:n,currentTime:r}),new Error("Not passing the correct data types through the arguments");let s=`${o.get("TODAY")}: ${y(t,!0)} - ${y(n,!0)}`;return r.getHours()>=t.getHours()&&r.getHours()<=n.getHours()&&"true"===e&&(s=`${o.get("OPEN_TODAY_UNTIL")} ${y(n,!0)}`),s})(e,w(t.openingTime)?T(t.openingTime):t.openingTime,w(t.closingTime)?T(t.closingTime):t.closingTime,T(),n),C=({hours:e,labels:t,contentColor:n})=>{const{showOpenTodayUntil:o}=(0,s.usePrefs)();return r().createElement("span",{className:g([n,"today-hours-content"])},E(o,e,t))},v=()=>{const{showIcon:e,iconName:t,iconColor:n,contentColor:a,hoursContainerClasses:i}=(0,s.usePrefs)(),l=(0,o.useSelector)(e=>e.hours),c=(0,d.useLabels)();return l?r().createElement("div",{className:`todays-hours ${i}`},r().createElement(p,{showIcon:e,iconName:t,iconColor:n}),r().createElement(C,{hours:l,labels:c,contentColor:a})):null},D=(e,t,n)=>{const r=["ddc-content",t];return e&&r.push(e),n&&r.push("collapse-container"),r},S=(e,t,n)=>{const r=[],{widgetHeading:o,headingIconClasses:s,headingIconSize:a,headingIconStyle:i}=e;return o&&t&&(r.push("ddc-icon"),n||r.push(`ddc-icon-${i}`),a&&r.push(`ddc-icon-size-${a}`),s&&r.push(s)),r},O=(e,t,n)=>{const r=[],{headingSize:o,headingStyles:s,headingClasses:a}=e;return r.push("widget-heading"),"MOBILE"===t&&r.push("ddc-heading"),a&&r.push(a),o&&r.push(o),s&&r.push(`ddc-heading-${s}`),n&&r.push("collapse-heading"),r},A=({outputWrapperDiv:e,store:t,widgetId:n,widgetName:s})=>{const a=t.getState(),i=a.prefs||{},c=i.widgetHeading&&"true"===i.toggleCollapse||!1,d=!!i.headingIconStyle||c;const p=r().createElement(o.Provider,{store:t},r().createElement(l,{HeadingTag:i.headingTag,headingText:i.widgetHeading,widgetId:n,toggleCollapse:c,showIcon:d,headingClasses:O(i,a.requestData.deviceType,c),iconClasses:S(i,d,c)}),r().createElement(u,{id:n,toggleCollapse:c},r().createElement(v,null)));if(e){if(!s)throw new Error("widgetName is required if outputWrapperDiv is true.");return r().createElement("div",{id:`${n}-app-root`,className:D(i.widgetClasses,s,c).join(" "),"data-widget-name":s,"data-widget-id":n},p)}return p},R=RTK;const b=[],I={requestData:function(e={},t=null){return!t.error&&t.payload&&"WS_SCRIPTS_SET_REQUEST_DATA"===t.type?t.payload:e},prefs:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_PREFS"!==t.type?e:t.payload},labels:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_LABELS"!==t.type?e:{...e,...t.payload}},sitemap:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_ADD_SITEMAP"!==t.type?e:{...e,...t.payload}},flags:function(e={},t=null){return t.error||void 0===t.payload||"WS_SCRIPTS_SET_FEATURE_FLAGS"!==t.type?e:t.payload}};function L(e){const[t,r]=(()=>{let e={},t={};const r=[];try{e=n(390).A,r.push("../reducers")}catch(e){}try{t=Object(function(){var e=new Error("Cannot find module '../features'");throw e.code="MODULE_NOT_FOUND",e}()),r.push("../features")}catch(e){}return[{...e,...t},r]})();return(0,R.configureStore)({reducer:{...t,...I},middleware:e=>e().concat(b),preloadedState:e})}const N={};(()=>{const t=(n="ws-todays-hours",window.DDC&&window.DDC.WS&&window.DDC.WS.state&&window.DDC.WS.state[n]?window.DDC.WS.state[n]:{});var n;Object.keys(t).forEach(n=>{const r=L(((e,t)=>{let n=e[t];return"string"==typeof n&&(n=JSON.parse(n)),n})(t,n));N[n]=r,(0,e.hydrate)(React.createElement(A,{outputWrapperDiv:!1,store:r,widgetId:n}),document.getElementById(`${n}-app-root`)),delete t[n]})})()})()})(); 2//# sourceMappingURL=bundle.4e1a2fa114ae21e4c44b6b4fcd38057d.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.