-
Notifications
You must be signed in to change notification settings - Fork 0
/
chunk-ZIYBLAUZ.js
1 lines (1 loc) · 4.11 KB
/
chunk-ZIYBLAUZ.js
1
import{a as j}from"./chunk-RE3XNR4Y.js";import{b as A,c as U,f as Y,m as q}from"./chunk-OYOJDGFY.js";import"./chunk-MXT3O4VA.js";import"./chunk-XBDSX75X.js";import"./chunk-YBC3GFJ3.js";import"./chunk-WEZ63LNF.js";import{Ba as _,Da as w,Ga as p,Ha as T,Ia as I,Ja as y,Ka as s,La as m,Lb as H,Ma as d,Na as N,Oa as V,P as E,Qa as h,Sa as b,Ta as a,Vd as O,Ve as L,W as u,X as C,Xd as B,_d as P,fb as f,hb as $,kb as g,la as l,lb as D,mb as F,ob as k,sb as x,tb as S,ua as v,ue as W,uf as M,xa as c}from"./chunk-A6GZZ5JF.js";function z(t,i){if(t&1&&d(0,"app-shop-item-data-details",1),t&2){let e=a();_("shopItemData",e.selectedEntity)}}function G(t,i){t&1&&d(0,"app-opening-hours",4),t&2&&_("openingHours",i)}function J(t,i){if(t&1&&(c(0,G,1,1,"app-opening-hours",4),x(1,"async")),t&2){let e,n=a();p((e=S(1,1,n.openingHours$))?0:-1,e)}}function K(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function Q(t,i){if(t&1&&(s(0,"div",7),I(1,K,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function R(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function X(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,Q,3,0,"div",7)(2,R,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function Z(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Indoor"),m(),c(2,X,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataIndoor$))?2:-1,e)}}function tt(t,i){if(t&1){let e=h();s(0,"app-item-icon",10),b("click",function(){let r=u(e).$implicit,o=a(4);return C(o.showDetails(r))}),m()}if(t&2){let e=i.$implicit,n=a(4);w("selected-icon",(n.selectedEntity==null||n.selectedEntity.item==null?null:n.selectedEntity.item.id)===e.item.id),_("itemName",e.item.iconName)}}function et(t,i){if(t&1&&(s(0,"div",7),I(1,tt,1,3,"app-item-icon",9,T),m()),t&2){let e=a();l(),y(e)}}function it(t,i){if(t&1&&d(0,"app-shop-item-data-table",8),t&2){let e=a();_("dataSource",e)}}function nt(t,i){if(t&1){let e=h();s(0,"app-data-filter",6),F("showTableChange",function(r){u(e);let o=a(2);return D(o.showTable,r)||(o.showTable=r),C(r)}),m(),c(1,et,3,0,"div",7)(2,it,1,1,"app-shop-item-data-table",8)}if(t&2){let e=a(2);g("showTable",e.showTable),l(),p(e.showTable?-1:1),l(),p(e.showTable?2:-1)}}function ot(t,i){if(t&1&&(s(0,"h2",5),f(1,"Stock list Outdoor"),m(),c(2,nt,3,3),x(3,"async")),t&2){let e,n=a();l(2),p((e=S(3,1,n.shopItemDataOutdoor$))?2:-1,e)}}var xt=(()=>{let i=class i extends j{constructor(){super(),this.shopName="furniture-store",this.shopItemDataIndoor$=this._database.fetchShopItemData$(this.shopName+"-indoor"),this.shopItemDataOutdoor$=this._database.fetchShopItemData$(this.shopName+"-outdoor"),this.openingHours$=this._database.fetchOpeningHours$(this.shopName)}};i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=E({type:i,selectors:[["app-furniture-store"]],standalone:!0,features:[v,k],decls:10,vars:6,consts:[["listDetail",""],[3,"shopItemData"],[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"]],template:function(r,o){r&1&&(s(0,"app-list-detail-container"),N(1,0),c(2,z,1,1,"app-shop-item-data-details",1),V(),s(3,"app-card")(4,"h1",2),d(5,"app-ui-icon",3),f(6),m(),c(7,J,2,3),m(),c(8,Z,4,3)(9,ot,4,3),m()),r&2&&(l(2),p(o.selectedEntity?2:-1),l(3),_("uiIcon",o.SHOP_ICONS[o.shopName]),l(),$(" ",o.SHOP_DISPLAY_NAMES[o.shopName]," "),l(),p(o.openingHours$?7:-1),l(),p(o.shopItemDataIndoor$?8:-1),l(),p(o.shopItemDataOutdoor$?9:-1))},dependencies:[M,B,P,W,L,q,U,Y,A,H,O],encapsulation:2});let t=i;return t})();export{xt as FurnitureStoreComponent};