PageSourceSearch

https://www.hillhousehome.com/cdn/shop/t/552/assets/bundled-order-status.directive.js

js hillhousehome.com collected 2026-09-24 22:11:01 UTC 1,643 bytes, 7 lines download raw bytes

1import { O as OrderFulfillmentsService } from './bundled-OrderFulfillments.service.js';
2import { s as sortFulfillments } from './bundled-ShopifyUtils.js';
3import { D as Directive, H as HostAttr } from './bundled-app.js';
4
5class OrderStatusDirective extends Directive{onAppInit(){this.getStatus();}async getStatus(){let[e]=await this.orderFulfillments.fetch(this.orderID),{fulfillments:t,displayFinancialStatus:r}=e,l={weekday:"long",day:"numeric",month:"long",year:"numeric"},o="";if(t.length){let{estimatedDeliveryAt:e,deliveredAt:r}=sortFulfillments(t)[0],n=new Date;if(r){let e=new Date(r);o=`Delivered ${e.toLocaleDateString("en-US",{...l,year:n.getFullYear()!==e.getFullYear()?"numeric":void 0})}`;}else if(e){let t=new Date(e);o=`Arrives ${t.toLocaleDateString("en-US",{...l,year:n.getFullYear()!==t.getFullYear()?"numeric":void 0})}`;}}else o="REFUNDED"===r?"Refunded":"PARTIALLY_REFUNDED"===r?"Partially refunded":"Unfulfilled";o?this.host.innerHTML=o:this.host.style.display="none";}constructor(...t){super(...t),this.orderFulfillments=OrderFulfillmentsService.getInstance();}}OrderStatusDirective.selector="[order-status]",function(e,t,r,i){var l,o=arguments.length,n=o<3?t:i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(l=e[a])&&(n=(o<3?l(n):o>3?l(t,r,n):l(t,r))||n);o>3&&n&&Object.defineProperty(t,r,n);}([HostAttr("#order-id",!0),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:type",Number)],OrderStatusDirective.prototype,"orderID",void 0);
6
7export { OrderStatusDirective };

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.