PageSourceSearch

https://www.hoffmanacademy.com/_next/static/chunks/3140.aac8b6f78a1ba9b7.js

js hoffmanacademy.com collected 2026-10-02 05:12:01 UTC 18,497 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3140],{23160:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(85893);n(67294);var s=n(31);let i=e=>{let{className:t="",children:n,href:i="",label:o,title:a,type:l="",useNext:c=!1,variant:d="blue",...p}=e,u=["badge",t];switch(u.push("badge-"+d+("status"===l?"-fade":"")),l){case"pill":u.push("badge-pill");break;case"sale":u.push("badge-sale");break;case"topic":u.push("badge-topic");break;case"status":u.push("badge-status");break;case"carousel":u.push("badge-activity")}let h=u.join(" ");return(0,r.jsx)(r.Fragment,{children:i?(0,r.jsx)(s.N,{href:i,extraClass:h,useNext:c,title:a,children:o}):(0,r.jsxs)("span",{className:h,children:[o,n]})})}},3025:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(85893);n(67294);let s=e=>{let{withFloater:t=!1,...n}=e;return(0,r.jsx)("div",{className:"section container-lg px-1 px-xs-3 pt-4 ".concat(t?"mb-10vh pb-10vh":""),children:n.children})}},70127:function(e,t,n){"use strict";n.d(t,{H:function(){return s}});var r=n(85893);n(67294);let s=e=>{let{breadcrumbs:t,button:n,subTitle:s,title:i,...o}=e;return(0,r.jsx)("div",{className:"container-fluid bg-shadow section pt-5 pb-5 shadow-sm",children:(0,r.jsxs)("div",{className:"container-lg pt-5",children:[t&&(0,r.jsx)("div",{className:"row pt-5 mb-n5",children:(0,r.jsx)("div",{className:"col text-tan-light body-small text-underline text-center",children:t})}),(0,r.jsxs)("div",{className:"row pt-5",children:[(0,r.jsxs)("div",{className:"px-0 px-md-3 ".concat(!n&&"text-center col"),children:[i&&(0,r.jsx)("h2",{className:"text-tan-light mb-0",children:i}),s&&(0,r.jsx)("div",{className:"text-tan-light mb-0 body-large",children:s})]}),n&&(0,r.jsx)("div",{className:"col px-0 px-md-3 d-flex align-items-center justify-content-end",children:n})]})]})})}},13140:function(e,t,n){"use strict";n.r(t),n.d(t,{OrdersTemplate:function(){return C},default:function(){return O}});var r=n(85893),s=n(67294),i=n(18624),o=n(46290),a=n(63046),l=n(93562),c=n(31),d=n(46050),p=n(3025),u=n(70127),h=n(97893),g=n.n(h),m=n(74737),f=n(23160),b=n(74582),x=n(36190),v=n(61557),y=n(58846),N=n(46946),j=e=>{var t;let{expandedId:n,order:i,fileHandler:a=e=>console.log("CollapsibleOrderPanelProps",e),...l}=e,d=(null==i?void 0:i.id)===n,[p,u]=(0,s.useState)(d),[h,j]=(0,s.useState)(!1),C=s.useRef(null);(0,s.useEffect)(()=>u(d),[d]),(0,s.useEffect)(()=>(document.addEventListener("mouseup",O),()=>{document.removeEventListener("mouseup",O)}));let O=e=>{C.current&&!C.current.contains(e.target)&&h&&!h&&j(!h)},w=()=>(null==i?void 0:i.status)==="succeeded"?"green":(null==i?void 0:i.status)==="pending"?"purple":(null==i?void 0:i.status)==="failed"?"orange":(null==i?void 0:i.status)==="refunded"?"tan":"gray",T=e=>(0,r.jsx)(f.C,{className:"py-2 px-3 px-sm-2 px-lg-3 font-size-14",label:e,type:"status",useNext:!0,variant:w()}),S=()=>m.G.makePrettyDate(null==i?void 0:i.orderDate),P=(0,r.jsx)(c.N,{href:o.m.getHAPIUrl(null==i?void 0:i.receiptUrl),target:"_blank",extraClass:"btn btn-sm-tight btn-white border text-purple m-auto text-center",children:(0,r.jsx)(x.J,{icon:"receipt"})}),_=()=>I()?(0,r.jsx)("div",{className:"text-center ml-2 ml-sm-0",children:(0,r.jsx)("button",{className:"btn btn-sm-tight btn-white border text-purple m-auto text-center",onClick:()=>u(!p),title:"View Downloadable Files",children:(0,r.jsx)(x.J,{icon:"file-download"})})}):null,k=(0,r.jsx)("div",{className:"text-dark font-secondary body-small font-weight-bolder mb-2 mb-sm-0",children:null==i?void 0:i.id}),E=null==i?void 0:null===(t=i.products)||void 0===t?void 0:t.map((e,t)=>{let n=(null==e?void 0:e.qty)>1?(null==e?void 0:e.qty)+" x ":"",s=(null==e?void 0:e.name)?null==e?void 0:e.name:"Downloads",i=(null==e?void 0:e.license_type)?(0,r.jsx)(b.z,{className:"font-size-22 line-height-28 scale-0-7",label:"?",onClick:()=>j(!0),round:!0,size:"sm",variant:"light"}):"";return(0,r.jsx)(v.Z,{product:e,title:n+s,subTitle:(null==e?void 0:e.license_type)?(0,r.jsxs)(r.Fragment,{children:[m.G.toLicenseString(null==e?void 0:e.license_type)," ",i]}):"",fileHandler:a},t)}),I=()=>{var e;let t=0;return null==i||null===(e=i.products)||void 0===e||e.map(e=>{var n;return(null==e?void 0:null===(n=e.downloadFiles)||void 0===n?void 0:n.length)>0?t+=1:""}),t>0};return(0,r.jsxs)("div",{className:"card shadow-sm mb-2 w-100 text-gray",children:[(0,r.jsxs)("div",{className:"d-none d-sm-flex w-100 flex-row py-3 py-sm-2 align-items-center",children:[(0,r.jsx)("div",{className:"col-2 col-md-1 pr-0",children:k}),(0,r.jsx)("div",{className:"col-3 col-md-2 px-0",children:(0,r.jsx)("div",{className:"w-100 text-left text-sm-center",children:T(null==i?void 0:i.status)})}),(0,r.jsx)("div",{className:"col",children:(0,r.jsx)("div",{className:"",children:S()})}),(0,r.jsxs)("div",{className:"col-3 col-md-2 px-0 d-flex flex-row justify-content-sm-between",children:[(0,r.jsx)("div",{className:"text-center mr-1",children:P}),(0,r.jsx)("div",{className:"text-center mr-3",children:_()})]})]}),(0,r.jsxs)("div",{className:"d-flex d-sm-none w-100 flex-column py-3 py-sm-2",children:[(0,r.jsxs)("div",{className:"d-flex",children:[(0,r.jsx)("div",{className:"col-6",children:k}),(0,r.jsx)("div",{className:"col-6",children:(0,r.jsx)("div",{className:"text-right",children:S()})})]}),(0,r.jsxs)("div",{className:"d-flex align-items-between",children:[(0,r.jsx)("div",{className:"col text-left text-sm-center",children:T(null==i?void 0:i.status)}),(0,r.jsxs)("div",{className:"col-5 col-xs-5 col-sm-4 pl-0 d-flex flex-row justify-content-between",children:[(0,r.jsx)("div",{className:"text-center",children:P}),_()]})]})]}),I()&&(0,r.jsx)(g(),{easing:"ease",open:p,transitionTime:250,trigger:null,children:(0,r.jsx)("div",{className:"w-100 border-top border-darken px-3 pb-3",children:E})}),(0,r.jsx)(y.Z,{licenseTypes:N.u.getLicenseFromOrder(i),open:h,openHandler:()=>j(!1),refModal:C})]})};let C=e=>{let{expandedOrderId:t,loading:n=!1,orderDate:s,orderNumber:h,orders:g,orderStatus:m,fileHandler:f=e=>console.log("OrdersTemplate receiptHandler",e),storeHomeLink:b="/store",total:x,useNext:v=!0,...y}=e,N=null==g?void 0:g.map((e,n)=>(0,r.jsx)(j,{expandedId:t,order:e,fileHandler:f},n));return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(u.H,{title:"My Orders",button:(0,r.jsx)(c.N,{href:b||i.N.cartUrl,useNext:v,extraClass:"btn btn-light btn-sm-tight",children:"Browse The Store"})}),(0,r.jsxs)(p.P,{children:[null===g||n?(0,r.jsx)("div",{className:"mt-5 pt-8vh pb-8vh z-index-1 position-relative shadow-sm",children:(0,r.jsx)(d.Spinner,{loading:!0,spinnerClass:""})}):(null==g?void 0:g.length)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"text-gray font-weight-bolder body-small text-uppercase mb-3 d-none d-sm-flex align-items-baseline",children:[(0,r.jsx)("div",{className:"col-2 col-md-1",children:(0,r.jsx)("div",{children:"Order"})}),(0,r.jsx)("div",{className:"col-3 col-md-2 px-0",children:(0,r.jsx)("div",{className:"text-center",children:"Status"})}),(0,r.jsx)("div",{className:"col",children:(0,r.jsx)("div",{children:"Order Date"})}),(0,r.jsxs)("div",{className:"col-3 col-md-2 px-0 d-flex flex-row justify-content-sm-between",children:[(0,r.jsx)("div",{className:"text-center",children:"Receipt"}),(0,r.jsx)("div",{className:"text-center mr-3",children:"Files"})]})]}),N]}):(0,r.jsxs)("div",{className:"mt-5 bg-white p-5 rounded text-center mb-0 shadow-sm",children:[(0,r.jsx)(l.c,{src:a.Z,useNext:v,lazy:!1,alt:"Shopping cart with presents and paper notes",width:106.686,height:95.024,extraClass:"mb-3"}),(0,r.jsx)("h4",{children:"Add items to your cart to place your first order."}),(0,r.jsx)(c.N,{href:b||i.N.cartUrl,useNext:v,extraClass:"btn btn-primary btn-sm",children:"Shop Now"})]}),(0,r.jsxs)("div",{className:"mt-4 mx-auto",children:["If you have a problem with one of your orders, please ",(0,r.jsx)("a",{href:o.m.supportEmailLink,className:"text-purple underline",children:"contact us"}),"."]})]})]})};var O=C},97893:function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var s=t[r]={i:r,l:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}
1),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(r,s,(function(t){return e[t]}).bind(null,s));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(3);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,n,s,i,o){if(o!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";n.r(t);var r=n(1),s=n.n(r),i=n(0),o=n.n(i),a=function(e){return 0!==e};function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(o,e);var t,n,r,i=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,n=h(o);return e=t?Reflect.construct(n,arguments,h(this).constructor):n.apply(this,arguments),function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return u(e)}(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,o),g(u(t=i.call(this,e)),"continueOpenCollapsible",function(){var e=u(t).innerRef;t.setState({height:e.scrollHeight,transition:"height ".concat(t.props.transitionTime,"ms ").concat(t.props.easing),isClosed:!1,hasBeenOpened:!0,inTransition:a(e.scrollHeight),shouldOpenOnNextCycle:!1})}),g(u(t),"handleTriggerClick",function(e){t.props.triggerDisabled||t.state.inTransition||(e.preventDefault(),t.props.handleTriggerClick?t.props.handleTriggerClick(t.props.accordionPosition):!0===t.state.isClosed?(t.openCollapsible(),t.props.onOpening(),t.props.onTriggerOpening()):(t.closeCollapsible(),t.props.onClosing(),t.props.onTriggerClosing()))}),g(u(t),"handleTransitionEnd",function(e){e.target===t.innerRef&&(t.state.isClosed?(t.setState({inTransition:!1}),t.props.onClose()):(t.setState({height:"auto",overflow:t.props.overflowWhenOpen,inTransition:!1}),t.props.onOpen()))}),g(u(t),"setInnerRef",function(e){return t.innerRef=e}),t.timeout=void 0,t.contentId=e.contentElementId||"collapsible-content-".concat(Date.now()),t.triggerId=e.triggerElementProps.id||"collapsible-trigger-".concat(Date.now()),e.open?t.state={isClosed:!1,shouldSwitchAutoOnNextCycle:!1,height:"auto",transition:"none",hasBeenOpened:!0,overflow:e.overflowWhenOpen,inTransition:!1}:t.state={isClosed:!0,shouldSwitchAutoOnNextCycle:!1,height:0,transition:"height ".concat(e.transitionTime,"ms ").concat(e.easing),hasBeenOpened:!1,overflow:"hidden",inTransition:!1},t}return n=[{key:"componentDidUpdate",value:function(e,t){var n=this;this.state.shouldOpenOnNextCycle&&this.continueOpenCollapsible(),"auto"!==t.height&&0!==t.height||!0!==this.state.shouldSwitchAutoOnNextCycle||(window.clearTimeout(this.timeout),this.timeout=window.setTimeout(function(){n.setState({height:0,overflow:"hidden",isClosed:!0,shouldSwitchAutoOnNextCycle:!1})},50)),e.open!==this.props.open&&(!0===this.props.open?(this.openCollapsible(),this.props.onOpening()):(this.closeCollapsible(),this.props.onClosing()))}},{key:"componentWillUnmount",value:function(){window.clearTimeout(this.timeout)}},{key:"closeCollapsible",value:function(){var e=this.innerRef;this.setState({shouldSwitchAutoOnNextCycle:!0,height:e.scrollHeight,transition:"height ".concat(this.props.transitionCloseTime?this.props.transitionCloseTime:this.props.transitionTime,"ms ").concat(this.props.easing),inTransition:a(e.scrollHeight)})}},{key:"openCollapsible",value:function(){this.setState({inTransition:a(this.innerRef.scrollHeight),shouldOpenOnNextCycle:!0})}},{key:"renderNonClickableTriggerElement",value:function(){var e=this.props,t=e.triggerSibling,n=e.classParentString;if(!t)return null;switch(c(t)){case"string":return s.a.createElement("span",{className:"".concat(n,"__trigger-sibling")},t);case"function":return t();case"object":return t;default:return null}}},{key:"render",value:function(){var e=this,t={height:this.state.height,WebkitTransition:this.state.transition,msTransition:this.state.transition,transition:this.state.transition,overflow:this.state.overflow},n=this.state.isClosed?"is-closed":"is-open",r=this.props.triggerDisabled?"is-disabled":"",i=!1===this.state.isClosed&&void 0!==this.props.triggerWhenOpen?this.props.triggerWhenOpen:this.props.trigger,o=this.props.contentContainerTagName,a=this.props.triggerTagName,c=this.props.lazyRender&&!this.state.hasBeenOpened&&this.state.isClosed&&!this.state.inTransition?null:this.props.children,d=this.props,p=d.classParentString,u=d.contentOuterClassName,h=d.contentInnerClassName,g="".concat(p,"__trigger ").concat(n," ").concat(r," ").concat(this.state.isClosed?this.props.triggerClassName:this.props.triggerOpenedClassName),m="".concat(p," ").concat(this.state.isClosed?this.props.className:this.props.openedClassName),f="".concat(p,"__contentOuter ").concat(u),b="".concat(p,"__contentInner ").concat(h);return s.a.createElement(o,l({className:m.trim()},this.props.containerElementProps),s.a.createElement(a,l({id:this.triggerId,className:g.trim(),onClick:this.handleTriggerClick,style:this.props.triggerStyle&&this.props.triggerStyle,onKeyPress:function(t){var n=t.key;(" "===n&&"button"!==e.props.triggerTagName.toLowerCase()||"Enter"===n)&&e.handleTriggerClick(t)},tabIndex:this.props.tabIndex&&this.props.tabIndex,"aria-expanded":!this.state.isClosed,"aria-disabled":this.props.triggerDisabled,"aria-controls":this.contentId,role:"button"},this.props.triggerElementProps),i),this.renderNonClickableTriggerElement(),s.a.createElement("div",{id:this.contentId,className:f.trim(),style:t,onTransitionEnd:this.handleTransitionEnd,ref:this.setInnerRef,hidden:this.props.contentHiddenWhenClosed&&this.state.isClosed&&!this.state.inTransition,role:"region","aria-labelledby":this.triggerId},s.a.createElement("div",{className:b.trim()},c)))}}],d(o.prototype,n),r&&d(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(r.Component);m.propTypes={transitionTime:o.a.number,transitionCloseTime:o.a.number,triggerTagName:o.a.string,easing:o.a.string,open:o.a.bool,containerElementProps:o.a.object,triggerElementProps:o.a.object,contentElementId:o.a.string,classParentString:o.a.string,className:o.a.string,openedClassName:o.a.string,triggerStyle:o.a.object,triggerClassName:o.a.string,triggerOpenedClassName:o.a.string,contentOuterClassName:o.a.string,contentInnerClassName:o.a.string,accordionPosition:o.a.oneOfType([o.a.string,o.a.number]),handleTriggerClick:o.a.func,onOpen:o.a.func,onClose:o.a.func,onOpening:o.a.func,onClosing:o.a.func,onTriggerOpening:o.a.func,onTriggerClosing:o.a.func,trigger:o.a.oneOfType([o.a.string,o.a.element]),triggerWhenOpen:o.a.oneOfType([o.a.string,o.a.element]),triggerDisabled:o.a.bool,lazyRender:o.a.bool,overflowWhenOpen:o.a.oneOf(["hidden","visible","auto","scroll","inherit","
1initial","unset"]),contentHiddenWhenClosed:o.a.bool,triggerSibling:o.a.oneOfType([o.a.string,o.a.element,o.a.func]),tabIndex:o.a.number,contentContainerTagName:o.a.string,children:o.a.oneOfType([o.a.string,o.a.element])},m.defaultProps={transitionTime:400,transitionCloseTime:null,triggerTagName:"span",easing:"linear",open:!1,classParentString:"Collapsible",triggerDisabled:!1,lazyRender:!1,overflowWhenOpen:"hidden",contentHiddenWhenClosed:!1,openedClassName:"",triggerStyle:null,triggerClassName:"",triggerOpenedClassName:"",contentOuterClassName:"",contentInnerClassName:"",className:"",triggerSibling:null,onOpen:function(){},onClose:function(){},onOpening:function(){},onClosing:function(){},onTriggerOpening:function(){},onTriggerClosing:function(){},tabIndex:null,contentContainerTagName:"div",triggerElementProps:{}},t.default=m}])},e.exports=r(n(67294))}}]);

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.