-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-WNPEKHLA.js
1 lines (1 loc) · 5.75 KB
/
chunk-WNPEKHLA.js
1
import{a as A,b as Y,c as j,d as z,e as G,f as J,g as K,h as Q,m as R}from"./chunk-OYOJDGFY.js";import"./chunk-MXT3O4VA.js";import"./chunk-XBDSX75X.js";import"./chunk-YBC3GFJ3.js";import"./chunk-WEZ63LNF.js";import{Ba as m,Da as g,Ga as r,Ha as w,Ia as y,Ja as I,Ka as d,La as s,Lb as B,Ma as _,Na as U,Oa as V,P as v,Qa as T,Rb as F,Sa as b,Ta as a,Vd as H,Ve as O,W as C,X as h,Xd as W,_d as L,fb as u,gb as N,hb as k,kb as S,la as l,lb as D,mb as P,ob as $,sb as x,tb as f,ua as E,ue as M,uf as q,xa as c}from"./chunk-A6GZZ5JF.js";function X(e,i){if(e&1&&_(0,"app-shop-item-process-data-details",1),e&2){let t=a();m("itemProcessData",t.selectedProcessEntity)}}function Z(e,i){if(e&1&&_(0,"app-shop-item-data-details",2),e&2){let t=a();m("shopItemData",t.selectedEntity)}}function ee(e,i){if(e&1&&_(0,"app-item-upgrade-details",3),e&2){let t=a();m("itemUpgradeData",t.selectedItemUpgrade)}}function te(e,i){e&1&&_(0,"app-opening-hours",6),e&2&&m("openingHours",i)}function ie(e,i){if(e&1&&(c(0,te,1,1,"app-opening-hours",6),x(1,"async")),e&2){let t,n=a();r((t=f(1,1,n.openingHours$))?0:-1,t)}}function ne(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===t.item.id),m("itemName",t.item.iconName)}}function oe(e,i){if(e&1&&(d(0,"div",9),y(1,ne,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function ae(e,i){if(e&1&&_(0,"app-shop-item-data-table",10),e&2){let t=a();m("dataSource",t)}}function le(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showTable,p)||(o.showTable=p),h(p)}),s(),c(1,oe,3,0,"div",9)(2,ae,1,1,"app-shop-item-data-table",10)}if(e&2){let t=a(2);S("showTable",t.showTable),l(),r(t.showTable?-1:1),l(),r(t.showTable?2:-1)}}function pe(e,i){if(e&1&&(d(0,"h2",7),u(1,"Stock list"),s(),c(2,le,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.shopItemData$))?2:-1,t)}}function re(e,i){if(e&1){let t=T();d(0,"app-item-icon",12),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showProcessDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedProcessEntity==null||n.selectedProcessEntity.input==null?null:n.selectedProcessEntity.input.id)===t.input.id),m("itemName",t.input.iconName)}}function se(e,i){if(e&1&&(d(0,"div",9),y(1,re,1,3,"app-item-icon",11,w),s()),e&2){let t=a();l(),I(t)}}function de(e,i){if(e&1&&_(0,"app-shop-item-process-table",10),e&2){let t=a();m("dataSource",t)}}function me(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showProcessingTable,p)||(o.showProcessingTable=p),h(p)}),s(),c(1,se,3,0,"div",9)(2,de,1,1,"app-shop-item-process-table",10)}if(e&2){let t=a(2);S("showTable",t.showProcessingTable),l(),r(t.showProcessingTable?-1:1),l(),r(t.showProcessingTable?2:-1)}}function ce(e,i){if(e&1&&(d(0,"h2",7),u(1,"Item processing"),s(),c(2,me,3,3),x(3,"async")),e&2){let t,n=a();l(2),r((t=f(3,1,n.itemProcessing$))?2:-1,t)}}function _e(e,i){if(e&1){let t=T();d(0,"app-item-icon",14),b("click",function(){let p=C(t).$implicit,o=a(4);return h(o.showItemUpgradeDetails(p))}),s()}if(e&2){let t=i.$implicit,n=a(4);g("selected-icon",(n.selectedItemUpgrade==null||n.selectedItemUpgrade.item==null?null:n.selectedItemUpgrade.item.id)===t.item.id),m("itemName",t.item.iconName)("quality",t.level)}}function Ce(e,i){if(e&1&&(d(0,"div",9),y(1,_e,1,4,"app-item-icon",13,w),s()),e&2){let t=a();l(),I(t)}}function he(e,i){if(e&1&&_(0,"app-item-upgrade-table",10),e&2){let t=a();m("dataSource",t)}}function Te(e,i){if(e&1){let t=T();d(0,"app-data-filter",8),P("showTableChange",function(p){C(t);let o=a(2);return D(o.showPItemUpgradeTable,p)||(o.showPItemUpgradeTable=p),h(p)}),s(),c(1,Ce,3,0,"div",9)(2,he,1,1,"app-item-upgrade-table",10)}if(e&2){let t=a(2);S("showTable",t.showPItemUpgradeTable),l(),r(t.showPItemUpgradeTable?-1:1),l(),r(t.showPItemUpgradeTable?2:-1)}}function ue(e,i){if(e&1&&(d(0,"h2",7),u(1),s(),c(2,Te,3,3),x(3,"async")),e&2){let t,n=a();l(),N(n.upgradeHeaderText),l(),r((t=f(3,2,n.itemUpgrade$))?2:-1,t)}}var Be=(()=>{let i=class i extends A{constructor(){super(),this.shopName="tidal-threads",this.shopItemData$=this._database.fetchShopItemData$(this.shopName),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(p){return new(p||i)},i.\u0275cmp=v({type:i,selectors:[["app-tidal-threads"]],standalone:!0,features:[E,$],decls:13,vars:9,consts:[["listDetail",""],[3,"itemProcessData"],[3,"shopItemData"],[3,"itemUpgradeData"],[1,"mb-4","font-semibold","text-3xl","text-black","flex","items-center","gap-x-4"],[3,"uiIcon"],[3,"openingHours"],[1,"mt-6","mb-3","font-semibold","text-2xl","text-white"],[3,"showTableChange","showTable"],[1,"icon-grid"],[3,"dataSource"],[1,"icon-grid-item",3,"selected-icon","itemName"],[1,"icon-grid-item",3,"click","itemName"],[1,"icon-grid-item",3,"selected-icon","itemName","quality"],[1,"icon-grid-item",3,"click","itemName","quality"]],template:function(p,o){p&1&&(d(0,"app-list-detail-container"),U(1,0),c(2,X,1,1,"app-shop-item-process-data-details",1)(3,Z,1,1,"app-shop-item-data-details",2)(4,ee,1,1,"app-item-upgrade-details",3),V(),d(5,"app-card")(6,"h1",4),_(7,"app-ui-icon",5),u(8),s(),c(9,ie,2,3),s(),c(10,pe,4,3)(11,ce,4,3)(12,ue,4,4),s()),p&2&&(l(2),r(o.selectedProcessEntity?2:-1),l(),r(o.selectedEntity?3:-1),l(),r(o.selectedItemUpgrade?4:-1),l(3),m("uiIcon",o.SHOP_ICONS[o.shopName]),l(),k(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),r(o.openingHours$?9:-1),l(),r(o.shopItemData$?10:-1),l(),r(o.itemProcessing$?11:-1),l(),r(o.itemUpgrade$?12:-1))},dependencies:[R,j,z,Q,J,Y,K,G,q,W,L,M,O,B,F,H],encapsulation:2});let e=i;return e})();export{Be as TidalThreadsComponent};