1(globalThis.webpackChunkvar=globalThis.webpackChunkvar||[]).push([[4516],{94516(t,e,i){i.d(e,{A:()=>T});var s=i(20089),r=i(55055),a=i(64082),E=i(81160),_=i(14414);class o extends s.EventEmitter{constructor(){super(),this.rootId="na",this.productStatus={STATUS_ENABLED:"E",STATUS_DISABLED:"D"},this.productServiceType={SERVICE_TYPE_MERCHANT:"M",SERVICE_TYPE_PROVISIONING:"P"},this.productActivationMode={ACTIVATION_MODE_APPROVAL:0,ACTIVATION_MODE_AUTO:1},this.billingTypes={BILLING_TYPE_MONTHLY_FIRST:"A",BILLING_TYPE_MONTHLY_BY_DAY:"B",BILLING_TYPE_MONTHLY_LAST:"C",BILLING_TYPE_MONTHLY_CUSTOM:"D",BILLING_TYPE_YEARLY_BY_MONTH:"E",BILLING_TYPE_YEARLY_BY_DAY:"F",BILLING_TYPE_ONE_TIME:"G"},this.productOfferCommitmentType={PRODUCTOFFER_COMMITMENT_TYPE_NO_COMMITMENT:"A",PRODUCTOFFER_COMMITMENT_TYPE_14:"B",PRODUCTOFFER_COMMITMENT_TYPE_1_MONTH:"C",PRODUCTOFFER_COMMITMENT_TYPE_6_MONTHS:"D",PRODUCTOFFER_COMMITMENT_TYPE_1_YEAR:"E",PRODUCTOFFER_COMMITMENT_TYPE_SAME_AS_BILLING_CYCLE:"F",PRODUCTOFFER_COMMITMENT_TYPE_CUSTOM:"G"},this.productOfferRefundType={PRODUCTOFFER_REFUND_TYPE_FULL:"A",PRODUCTOFFER_REFUND_TYPE_END_OF_BILLING_CYCLE:"B",PRODUCTOFFER_REFUND_TYPE_END_OF_MONTH:"C",PRODUCTOFFER_REFUND_TYPE_END_OF_YEAR:"D",PRODUCTOFFER_REFUND_TYPE_CUSTOM:"E"},this.productParameterLimit={DESCRIPTION:255,PARAMETER_VALUE:64,PARAMETER_VALUES:15},this.productOfferStatus={STATUS_ENABLED:"E",STATUS_DISABLED:"D"},this.productParameterTypes={SF_TYPE_TEXT:"text",SF_TYPE_INT:"int",SF_TYPE_FLOAT:"float",SF_TYPE_DATE:"date"},this.cartStatus={STATUS_ENABLED:"E",STATUS_DISABLED:"D",STATUS_ARCHIVED:"A"},this.ordersListViewPeriods={PERIOD_ALL:1,PERIOD_30_DAYS:2,PERIOD_60_DAYS:3,PERIOD_THIS_YEAR:4,PERIOD_LAST_YEAR:5},this.orderStatus={ORDER_STATUS_COMPLETED:"C",ORDER_STATUS_PENDING:"P",ORDER_STATUS_CANCELLED:"D",ORDER_STATUS_TERMINATED:"T"},this.orderProductOfferStatus={ORDERPRODUCTOFFERPRICE_STATUS_ACTIVE:"A",ORDERPRODUCTOFFERPRICE_STATUS_SUSPENDED:"S"},this.priceListStatus={PRICE_LIST_STATUS_ENABLED:"E",PRICE_LIST_STATUS_DISABLED:"D"},this.priceListStatusValues=new Map([[this.priceListStatus.PRICE_LIST_STATUS_ENABLED,"Enabled"],[this.priceListStatus.PRICE_LIST_STATUS_DISABLED,"Disabled"]]),this.priceListMenuViewType={PRICE_LIST_VIEW_TYPE_VENDOR:"V",PRICE_LIST_VIEW_TYPE_TAGS:"T"},this.priceListMenuViewTypeValues=new Map([[this.priceListMenuViewType.PRICE_LIST_VIEW_TYPE_VENDOR,"Vendor"],[this.priceListMenuViewType.PRICE_LIST_VIEW_TYPE_TAGS,"Tags"]]),this.productOfferBillingTypes=new Map([[this.billingTypes.BILLING_TYPE_MONTHLY_FIRST,"Monthly - First day of the month"],[this.billingTypes.BILLING_TYPE_MONTHLY_BY_DAY,"Monthly by the day"],[this.billingTypes.BILLING_TYPE_MONTHLY_LAST,"Monthly - Last day of the month"],[this.billingTypes.BILLING_TYPE_MONTHLY_CUSTOM,"Monthly Custom"],[this.billingTypes.BILLING_TYPE_YEARLY_BY_MONTH,"Yearly by the month"],[this.billingTypes.BILLING_TYPE_YEARLY_BY_DAY,"Yearly by the day"],[this.billingTypes.BILLING_TYPE_ONE_TIME,"One Time"]]),this.productOfferCommitmentTypes=new Map([[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_NO_COMMITMENT,"No commitment"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_14,"14 days"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_1_MONTH,"1 month"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_6_MONTHS,"6 months"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_1_YEAR,"1 year"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_SAME_AS_BILLING_CYCLE,"Same as billing cycle"],[this.productOfferCommitmentType.PRODUCTOFFER_COMMITMENT_TYPE_CUSTOM,"Custom"]]),this.productOfferRefundTypes=new Map([[this.productOfferRefundType.PRODUCTOFFER_REFUND_TYPE_FULL,"Full refund"],[this.productOfferRefundType.PRODUCTOFFER_REFUND_TYPE_END_OF_BILLING_CYCLE,"End of billing cycle"],[this.productOfferRefundType.PRODUCTOFFER_REFUND_TYPE_END_OF_MONTH,"End of the month"],[this.productOfferRefundType.PRODUCTOFFER_REFUND_TYPE_END_OF_YEAR,"End of the year"],[this.productOfferRefundType.PRODUCTOFFER_REFUND_TYPE_CUSTOM,"Custom"]]),this.productOfferStatusMap=new Map([[this.productOfferStatus.STATUS_ENABLED,"Enabled"],[this.productOfferStatus.STATUS_DISABLED,"Disabled"]]),this.currency=new Map([[1,"USD"],[2,"EUR"],[3,"ILS"]]),this.productStatusMap=new Map([[this.productStatus.STATUS_ENABLED,"Enabled"],[this.productStatus.STATUS_DISABLED,"Disabled"]]),this.productServiceTypeMap=new Map([[this.productServiceType.SERVICE_TYPE_MERCHANT,"Merchant"],[this.productServiceType.SERVICE_TYPE_PROVISIONING,"Provisioning"]]),this.productActivationModeMap=new Map([[this.productActivationMode.ACTIVATION_MODE_APPROVAL,"Waiting for Approval"],[this.productActivationMode.ACTIVATION_MODE_AUTO,"Automatically Activated"]]),this.productParameterScope={PRODUCT_PARAMETER_SCOPE_GLOBAL:1,PRODUCT_PARAMETER_SCOPE_LINKED:2,PRODUCT_PARAMETER_SCOPE_GLOBAL_FIXED_VALUES:3},this.productParameterScopeMap=new Map([[this.productParameterScope.PRODUCT_PARAMETER_SCOPE_GLOBAL,"Global Free Text"],[this.productParameterScope.PRODUCT_PARAMETER_SCOPE_GLOBAL_FIXED_VALUES,"Global Fixed Values"],[this.productParameterScope.PRODUCT_PARAMETER_SCOPE_LINKED,"Linked Service"]]),this.productParameterServiceType={PRODUCT_PARAMETER_SERVICE_TYPE_SERVER:"server",PRODUCT_PARAMETER_SERVICE_TYPE_USER:"user"},this.productParameterServiceTypeMap=new Map([[this.productParameterServiceType.PRODUCT_PARAMETER_SERVICE_TYPE_SERVER,"Servers"]]),this.orderStatusMap=new Map([[this.orderStatus.ORDER_STATUS_PENDING,"Pending"],[this.orderStatus.ORDER_STATUS_COMPLETED,"Completed"],[this.orderStatus.ORDER_STATUS_CANCELLED,"Cancelled"],[this.orderStatus.ORDER_STATUS_TERMINATED,"Terminated"]]),this.orderProductOfferStatusMap=new Map([[this.orderProductOfferStatus.ORDERPRODUCTOFFERPRICE_STATUS_ACTIVE,"Active"],[this.orderProductOfferStatus.ORDERPRODUCTOFFERPRICE_STATUS_SUSPENDED,"Suspended"]]),this.orderListViewPeriod={ORDERLISTVIEW_PERIOD_ALL:1,ORDERLISTVIEW_PERIOD_30_DAYS:2,ORDERLISTVIEW_PERIOD_60_DAYS:3,ORDERLISTVIEW_PERIOD_THIS_YEAR:4,ORDERLISTVIEW_PERIOD_LAST_YEAR:5,ORDERLISTVIEW_PERIOD_CUSTOM:6},this.orderListViewPeriodMap=new Map([[this.orderListViewPeriod.ORDERLISTVIEW_PERIOD_30_DAYS,"Last 30 days"],[this.orderListViewPeriod.ORDERLISTVIEW_PERIOD_60_DAYS,"Last 60 days"],[this.orderListViewPeriod.ORDERLISTVIEW_PERIOD_THIS_YEAR,"This year"],[this.orderListViewPeriod.ORDERLISTVIEW_PERIOD_LAST_YEAR,"Last year"]]),this.operationLogTableName={ORDER:"scOrder",ORDERPRODUYCTOFFER:"scOrderProductOfferPrice"},this.operationLogType={OPERATIONLOG_TYPE_CREATEORDER_FROM_CART_BY_CUSTOMER:1,OPERATIONLOG_TYPE_CREATEORDER_FROM_CART_BY_MERCHANT:2,OPERATIONLOG_TYPE_ADDED_ITEM_TO_ORDER:3,OPERATIONLOG_TYPE_ORDER_MODIFIED_BY_CUSTOMER:4,OPERATIONLOG_TYPE_ORDER_MODIFIED_BY_MERCHANT:5,OPERATIONLOG_TYPE_ORDER_MODIFICATION_REQUEST:6,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_MODIFICATION_REQUEST:7,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_MODIFIED_BY_CUSTOMER:8,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_MODIFIED_BY_MERCHANT:9,OPERATIONLOG_TYPE_CLONEDORDER_BY_CUSTOMER:10,OP
1ERATIONLOG_TYPE_CLONEDORDER_BY_MERCHANT:11,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_CREATED_BY_CUSTOMER:12,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_CREATED_BY_MERCHANT:13,OPERATIONLOG_TYPE_CREATESUBSCRIPTION_BY_CUSTOMER:14,OPERATIONLOG_TYPE_CREATESUBSCRIPTION_BY_MERCHANT:15,OPERATIONLOG_TYPE_SPECIAL_FIELDS_EDIT:16,OPERATIONLOG_TYPE_ORDER_CURRENT_STATE:50,OPERATIONLOG_TYPE_ORDERPRODUCTOFFER_CURRENT_STATE:51,OPERATIONLOG_TYPE_SPECIAL_FIELDS_CURRENT_STATE:52},this.productOfferPriceStatus={STATUS_ENABLED:"E",STATUS_DISABLED:"D"},this.productOfferPriceStatusMap=new Map([[this.productOfferPriceStatus.STATUS_ENABLED,"Enabled"],[this.productOfferPriceStatus.STATUS_DISABLED,"Disabled"]]),this.productOfferPriceSellingPriceType={PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_REVENUE:"R",PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_PERCENTAGE:"P",PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_MANUAL:"M"},this.productOfferPriceSellingPriceTypeMap=new Map([[this.productOfferPriceSellingPriceType.PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_REVENUE,"Default Price List Profit Margin"],[this.productOfferPriceSellingPriceType.PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_PERCENTAGE,"Custom Percentage Profit Margin"],[this.productOfferPriceSellingPriceType.PRODUCTOFFERPRICE_SELLINGPRICE_TYPE_MANUAL,"Set a Fixed Price"]]),this.productPriceListFilter={PRODUCT_PRICE_LIST_FILTER_ALL:"A",PRODUCT_PRICE_LIST_FILTER_ENABLED:"E",PRODUCT_PRICE_LIST_FILTER_DISABLED:"D"},this.productPriceListFilterMap=new Map([[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_ENABLED,"Link Product To Price Lists"],[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_DISABLED,"Unlink Product To Price Lists"],[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_ALL,"All Price Lists"]]),this.priceListProductFilterMap=new Map([[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_ENABLED,"Link Products"],[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_DISABLED,"Unlink Products"],[this.productPriceListFilter.PRODUCT_PRICE_LIST_FILTER_ALL,"All Products"]]),this.priceListsPermissions={PERM_SERVICE_CATALOG:"sc",PERM_SERVICE_CATALOG_SELL:"sc.sell",PERM_SERVICE_CATALOG_HIDE:"sc.hide"},this.originForFilters={MARKETPLACE:0,MARKETPLACE_ADMIN:1},this.orderLineQtyEdit={ORDERPRODUCTOFFERPRICE_EDIT_NOT_ALLOWED:0,ORDERPRODUCTOFFERPRICE_EDIT_DECREASE_ONLY:1,ORDERPRODUCTOFFERPRICE_EDIT_ALLOWED:2},this.linkedServiceSuggestOrigin={SC_LINKED_SERVICE_AUTOCOMPLETE_AUTHORIZED_ORIGIN_CART_ADD:"CartAdd",SC_LINKED_SERVICE_AUTOCOMPLETE_AUTHORIZED_ORIGIN_CART_EDIT:"CartEdit",SC_LINKED_SERVICE_AUTOCOMPLETE_AUTHORIZED_ORIGIN_SUBSCRIPTION_ADD:"SubscriptionAdd",SC_LINKED_SERVICE_AUTOCOMPLETE_AUTHORIZED_ORIGIN_ORDERLINE_EDIT:"OrderLineEdit"},this.purchaseStatus={PURCHASE_STATUS_WAITING_FOR_APPROVAL:"W",PURCHASE_STATUS_ACTIVE:"A",PURCHASE_STATUS_CANCELLED:"C",PURCHASE_STATUS_SUSPENDED:"S",PURCHASE_STATUS_TERMINATED:"T"},this.purchaseStatusMap=new Map([[this.purchaseStatus.PURCHASE_STATUS_WAITING_FOR_APPROVAL,"Waiting For Approval"],[this.purchaseStatus.PURCHASE_STATUS_ACTIVE,"Active"],[this.purchaseStatus.PURCHASE_STATUS_CANCELLED,"Cancelled"],[this.purchaseStatus.PURCHASE_STATUS_SUSPENDED,"Suspended"],[this.purchaseStatus.PURCHASE_STATUS_TERMINATED,"Terminated"]]),this.priceLists=new a.A,this.productsList=new a.A,this.productDetails=new a.A,this.relatedProductsList=new a.A,this.relatableProductsList=new a.A,this.productOffers=new a.A,this.productPriceList=new a.A,this.productParameters=new a.A,this.priceListsList=new a.A,this.priceListDetails=new a.A,this.priceListPrice=new a.A,this.priceListAccesses=new a.A,this.ordersList=new a.A,this.orderDetails=new a.A,this.requestsList=new a.A,this.logsList=new a.A,this.subscriptionsList=new a.A,this.subscriptionDetails=new a.A,this.myOrdersList=new a.A,this.mySubscriptionsList=new a.A,this.marketPlaceChoices=new a.A,this.marketPlaceSVChoices=new a.A,this.marketPlaceOffers=new a.A,this.activeCartItemsList=new a.A,this.detailledActiveCartItemsList=new a.A,this.cartsManagementChoices=new a.A,this.importStatusInfo=new a.A,this.agreementsList=new a.A}isMonthlyBillingType(t){return-1!==[this.billingTypes.BILLING_TYPE_MONTHLY_FIRST,this.billingTypes.BILLING_TYPE_MONTHLY_BY_DAY,this.billingTypes.BILLING_TYPE_MONTHLY_LAST,this.billingTypes.BILLING_TYPE_MONTHLY_CUSTOM].indexOf(t)}isYearlyBillingType(t){return-1!==[this.billingTypes.BILLING_TYPE_YEARLY_BY_MONTH,this.billingTypes.BILLING_TYPE_YEARLY_BY_DAY].indexOf(t)}getProductName(t){const e=this.productsList.data(this.rootId);if(e)for(let i=0;i<e.items.length;i++){const s=e.items[i];if(s.idProduct==t)return s.productName}}getProductFromProductList(t,e){const i=this.productsList.data(this.rootId);if(i){for(let s=0;s<i.items.length;s++){const r=i.items[s];if(r.idProduct==t&&r.idPriceList==e)return r}return null}}getProductNameFromProductDetails(t){const e=this.productDetailsData(t);if(e)return e.product.productName}getPriceListById(t){const e=this.priceListsList.data(this.rootId);if(e)for(let i=0;i<e.items.length;i++){const s=e.items[i];if(s.idPriceList==t)return s}}getPriceListName(t){return this.getPriceListById(t).priceListName}getProductReference(t){const e=this.productsList.data(this.rootId);if(e)for(let i=0;i<e.items.length;i++){const s=e.items[i];if(s.idProduct==t)return s.reference}}getBillingTypes(){let t={};return Object.assign(t,this.billingTypes),t}getProductParameterTypes(){let t={};return Object.assign(t,this.productParameterTypes),t}getBillingTypeLabelFromValue(t){switch(t){case this.billingTypes.BILLING_TYPE_MONTHLY_FIRST:return"Monthly First day of the month";case this.billingTypes.BILLING_TYPE_MONTHLY_BY_DAY:return"Monthly by the day";case this.billingTypes.BILLING_TYPE_MONTHLY_LAST:return"Monthly Last day of the month";case this.billingTypes.BILLING_TYPE_MONTHLY_CUSTOM:return"Monthly Custom";case this.billingTypes.BILLING_TYPE_YEARLY_BY_MONTH:return"Yearly by the month";case this.billingTypes.BILLING_TYPE_YEARLY_BY_DAY:return"Yearly by the day";case this.billingTypes.BILLING_TYPE_ONE_TIME:return"One Time";default:return"N/A"}}getProductParameterTypeLabelFromValue(t){switch(t){case this.productParameterTypes.SF_TYPE_TEXT:return"Text";case this.productParameterTypes.SF_TYPE_INT:return"Integer";case this.productParameterTypes.SF_TYPE_FLOAT:return"Float";
1case this.productParameterTypes.SF_TYPE_DATE:return"Date";default:return"N/A"}}getProductParameter(t,e){const i=this.productParameters.data(t).productParameters;if(i)for(let s=0;s<i.length;s++){const t=i[s];if(t.idProductParameter==e)return t}}getProductOfferById(t,e){const i=this.productOffers.data(t).productOffers;let s;if(i)return i.map(t=>{t.idProductOffer==e&&(s=t)}),s}getOrderListItemViewItemById(t){let e=null;if(e=this.orderDetails.data(t),e)return e}getIsRootBySiteId(t){const e=this.ordersList.data(t);if(e)return e.info.isRoot;const i=this.subscriptionsList.data(t);return!!i&&i.info.isRoot}setOrderListItemViewItemById(t,e,i){t?this.subscriptionDetails.setData(e,i):this.orderDetails.setData(e,i),this.emit(E.A.DATA_CHANGE)}getSubscriptionListItemViewItemById(t){let e=null;if(e=this.subscriptionDetails.data(t),e)return e}updateOrderListItemViewListById(t,e,i){let s=null;switch(e){case"mySubscriptions":s=this.mySubscriptionsList.data(this.rootId);break;case"subscriptions":s=this.subscriptionsList.data(t);break;case"myOrders":s=this.myOrdersList.data(this.rootId);break;case"orders":s=this.ordersList.data(t)}for(let r in s.items)s.items[r].order.idOrder===i.order.idOrder&&(E.A.processDateTimesFromObject(i),s.items[r]=i);switch(e){case"mySubscriptions":this.mySubscriptionsList.setData(this.rootId,s);break;case"subscriptions":this.subscriptionsList.setData(t,s);break;case"myOrders":this.myOrdersList.setData(this.rootId,s);break;case"orders":this.ordersList.setData(t,s)}this.emit(E.A.DATA_CHANGE)}getCartItemByIdProductOffer(t,e){const i=this.activeCartItemsList.data(t);let s;if(i&&i.response!==this.codes.ERR_SC_MARKETPLACE_NO_ACTIVE_CART)return i.map(t=>{t.idProductOffer==e&&(s=t)}),s}getDetailledCartItemByIdProductOfferPrice(t,e){const i=this.detailledActiveCartItemsList.data(t);let s;if(i&&i.response!==_.Ay.ERR_SC_MARKETPLACE_NO_ACTIVE_CART)return i.map(t=>{t.cartItem.idProductOfferPrice==e&&(s=t)}),s}resetOrdersList(t){this.ordersList.setData(t,null)}resetSubscriptionsList(t){this.subscriptionsList.setData(t,null)}resetMarketPlaceChoices(){this.marketPlaceChoices.setData(this.rootId,null)}resetMarketPlace(t){this.marketPlaceOffers.setData(t,null)}resetDetailledCart(t){this.detailledActiveCartItemsList.setData(t,null)}productsListData(){return this.productsList.data(this.rootId)}productsListError(){return this.productsList.error(this.rootId)}productsListLoading(){return this.productsList.loading(this.rootId)}productDetailsData(t){return this.productDetails.data(t)}productDetailsError(t){return this.productDetails.error(t)}productDetailsLoading(t){return this.productDetails.loading(t)}relatedProductsListData(t){return this.relatedProductsList.data(t)}relatedProductsListError(t){return this.relatedProductsList.error(t)}relatedProductsListLoading(t){return this.relatedProductsList.loading(t)}relatableProductsListData(t){return this.relatableProductsList.data(t)}relatableProductsListError(t){return this.relatableProductsList.error(t)}relatableProductsListLoading(t){return this.relatableProductsList.loading(t)}productOffersData(t){return this.productOffers.data(t)}productOffersError(t){return this.productOffers.error(t)}productOffersLoading(t){return this.productOffers.loading(t)}productPriceListData(t){return this.productPriceList.data(t)}productPriceListError(t){return this.productPriceList.error(t)}productPriceListLoading(t){return this.productPriceList.loading(t)}productParametersData(t){return this.productParameters.data(t)}productParametersError(t){return this.productParameters.error(t)}productParametersLoading(t){return this.productParameters.loading(t)}priceListsListLoading(){return this.priceListsList.loading(this.rootId)}priceListsListData(){return this.priceListsList.data(this.rootId)}priceListsListError(){return this.priceListsList.error(this.rootId)}priceListDetailsLoading(t){return this.priceListDetails.loading(t)}priceListDetailsData(t){return this.priceListDetails.data(t)}priceListDetailsError(t){return this.priceListDetails.error(t)}priceListsData(){return this.priceLists.data(this.rootId)}priceListsError(){return this.priceLists.error(this.rootId)}priceListsLoading(){return this.priceLists.loading(this.rootId)}priceListPriceData(t){return this.priceListPrice.data(t)}priceListPriceError(t){return this.priceListPrice.error(t)}
1priceListPriceLoading(t){return this.priceListPrice.loading(t)}priceListAccessesLoading(t){return this.priceListAccesses.loading(t)}priceListAccessesData(t){return this.priceListAccesses.data(t)}priceListAccessesError(t){return this.priceListAccesses.error(t)}editProductLoading(t){return this.editProduct.loading(t)}editProductData(t){return this.editProduct.data(t)}editProductSelected(t){return this.editProduct.selected(t)}editProductError(t){return this.editProduct.error(t)}ordersListLoading(t){return this.ordersList.loading(t)}ordersListData(t){return this.ordersList.data(t)}ordersListError(t){return this.ordersList.error(t)}orderDetailsLoading(t){return this.orderDetails.loading(t)}orderDetailsData(t){return this.orderDetails.data(t)}orderDetailsError(t){return this.orderDetails.error(t)}requestsListLoading(t){return this.requestsList.loading(t)}requestsListData(t){return this.requestsList.data(t)}requestsListError(t){return this.requestsList.error(t)}logsListLoading(t){return this.logsList.loading(t)}logsListData(t){return this.logsList.data(t)}logsListError(t){return this.logsList.error(t)}subscriptionsListLoading(t){return this.subscriptionsList.loading(t)}subscriptionsListData(t){return this.subscriptionsList.data(t)}subscriptionsListError(t){return this.subscriptionsList.error(t)}subscriptionDetailsLoading(t){return this.subscriptionDetails.loading(t)}subscriptionDetailsData(t){return this.subscriptionDetails.data(t)}subscriptionDetailsError(t){return this.subscriptionDetails.error(t)}myOrdersListLoading(){return this.myOrdersList.loading(this.rootId)}myOrdersListData(){return this.myOrdersList.data(this.rootId)}myOrdersListError(){return this.myOrdersList.error(this.rootId)}mySubscriptionsListLoading(){return this.mySubscriptionsList.loading(this.rootId)}mySubscriptionsListData(){return this.mySubscriptionsList.data(this.rootId)}mySubscriptionsListError(){return this.mySubscriptionsList.error(this.rootId)}marketplaceChoicesLoading(){return this.marketPlaceChoices.loading(this.rootId)}marketplaceChoicesData(){return this.marketPlaceChoices.data(this.rootId)}marketplaceChoicesError(){return this.marketPlaceChoices.error(this.rootId)}marketplaceSVChoicesLoading(){return this.marketPlaceSVChoices.loading(this.rootId)}marketplaceSVChoicesData(){return this.marketPlaceSVChoices.data(this.rootId)}marketplaceSVChoicesError(){return this.marketPlaceSVChoices.error(this.rootId)}marketplaceOffersLoading(t){return this.marketPlaceOffers.loading(t)}marketplaceOffersData(t){return this.marketPlaceOffers.data(t)}marketplaceOffersError(t){return this.marketPlaceOffers.error(t)}activeCartItemsListLoading(t){return this.activeCartItemsList.loading(t)}activeCartItemsListData(t){return this.activeCartItemsList.data(t)}activeCartItemsListError(t){return this.activeCartItemsList.error(t)}detailledActiveCartItemsListLoading(t){return this.detailledActiveCartItemsList.loading(t)}detailledActiveCartItemsListData(t){return this.detailledActiveCartItemsList.data(t)}detailledActiveCartItemsListError(t){return this.detailledActiveCartItemsList.error(t)}cartsManagementChoicesLoading(){return this.cartsManagementChoices.loading(this.rootId)}cartsManagementChoicesData(){return this.cartsManagementChoices.data(this.rootId)}cartsManagementChoicesError(){return this.cartsManagementChoices.error(this.rootId)}importStatusInfoLoading(){return this.importStatusInfo.loading(this.rootId)}importStatusInfoData(){return this.importStatusInfo.data(this.rootId)}importStatusInfoError(){return this.importStatusInfo.error(this.rootId)}agreementsListLoading(){return this.agreementsList.loading(this.rootId)}agreementsListData(){return this.agreementsList.data(this.rootId)}agreementsListError(){return this.agreementsList.error(this.rootId)}act(t){if("PRODUCTS_LIST_LOADING"===t.type?(this.productsList.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"PRODUCTS_LIST_LOADED"===t.type?(this.productsList.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCTS_LIST_LOADING_FAILED"===t.type&&(this.productsList.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE)),"PRODUCT_SAVE_LOADING"===t.type?(this.productDetails.setLoa
1ding(t.idProduct),this.emit(E.A.DATA_CHANGE)):"PRODUCT_SAVE_LOADED"===t.type?(this.productDetails.setData(t.data.idProduct,t.data),E.A.servicesCatalogInfo(this.rootId,"product.save.success",t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCT_SAVE_LOADING_FAILED"===t.type&&(this.productDetails.setError(t.idProduct,t.error),this.emit(E.A.DATA_CHANGE)),"RELATED_PRODUCTS_LIST_LOADING"===t.type?(this.relatedProductsList.setLoading(t.idProduct,!0),this.emit(E.A.DATA_CHANGE)):"RELATED_PRODUCTS_LIST_LOADED"===t.type?(this.relatedProductsList.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"RELATED_PRODUCTS_LIST_LOADING_FAILED"===t.type&&(this.relatedProductsList.setError(t.idProduct,t.error,!0),this.emit(E.A.DATA_CHANGE)),"RELATABLE_PRODUCTS_LIST_LOADING"===t.type?(this.relatableProductsList.setLoading(t.idProduct,!0),this.emit(E.A.DATA_CHANGE)):"RELATABLE_PRODUCTS_LIST_LOADED"===t.type?(this.relatableProductsList.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"RELATABLE_PRODUCTS_LIST_LOADING_FAILED"===t.type&&(this.relatableProductsList.setError(t.idProduct,t.error,!0),this.emit(E.A.DATA_CHANGE)),"PRODUCT_PRICE_LIST_LOADING"===t.type?(this.productPriceList.setLoading(t.idProduct,!0),this.emit(E.A.DATA_CHANGE)):"PRODUCT_PRICE_LIST_LOADED"===t.type?(this.productPriceList.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCT_PRICE_LIST_LOADING_FAILED"===t.type&&(this.productPriceList.setError(t.idProduct,t.error,!0),this.emit(E.A.DATA_CHANGE)),"PRODUCT_OFFERS_LOADING"===t.type?(this.productOffers.setLoading(t.idProduct),this.emit(E.A.DATA_CHANGE)):"PRODUCT_OFFERS_LOADED"===t.type?(this.productOffers.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCT_OFFERS_LOADING_FAILED"===t.type&&(this.productOffers.setError(t.idProduct,t.error),this.emit(E.A.DATA_CHANGE)),"PRODUCT_PARAMETERS_LOADING"===t.type?(this.productParameters.setLoading(t.idProduct),this.emit(E.A.DATA_CHANGE)):"PRODUCT_PARAMETERS_LOADED"===t.type?(this.productParameters.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCT_PARAMETERS_LOADING_FAILED"===t.type&&(this.productParameters.setError(t.idProduct,t.error),this.emit(E.A.DATA_CHANGE)),"GET_PRICELISTS_LOADING"===t.type?(this.priceLists.setLoading(this.rootId),this.emit(E.A.DATA_CHANGE)):"GET_PRICELISTS_LOADED"===t.type?(this.priceLists.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"GET_PRICELISTS_FAILED"===t.type?(this.priceLists.setError(this.rootId,t.error),this.emit(E.A.DATA_CHANGE)):"PRODUCT_DETAILS_LOADING"===t.type?(this.productDetails.setLoading(t.idProduct,!0),this.emit(E.A.DATA_CHANGE)):"PRODUCT_DETAILS_LOADED"===t.type?(this.productDetails.setData(t.idProduct,t.data),this.emit(E.A.DATA_CHANGE)):"PRODUCT_DETAILS_LOADING_FAILED"===t.type?(this.productDetails.setError(t.idProduct,t.error,!0),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_LIST_LOADING"===t.type?(this.priceListsList.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_LIST_LOADED"===t.type?(this.priceListsList.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_LIST_LOADING_FAILED"===t.type?(this.priceListsList.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_DETAILS_LOADING"===t.type?(this.priceListDetails.setLoading(t.idPriceList,!0),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_DETAILS_LOADED"===t.type?(this.priceListDetails.setData(t.idPriceList,t.data),this.emit(E.A.DATA_CHANGE)):"PRICELISTS_DETAILS_LOADING_FAILED"===t.type&&(this.priceListDetails.setError(t.idPriceList,t.error,!0),this.emit(E.A.DATA_CHANGE)),"PRICELIST_PRICE_LOADING"===t.type)this.priceListPrice.setLoading(t.idPriceList,!0),this.emit(E.A.DATA_CHANGE);else if("PRICELIST_PRICE_LOADED"===t.type)this.priceListPrice.setData(t.idPriceList,t.data),this.emit(E.A.DATA_CHANGE);else if("PRICELIST_PRICE_LOADING_FAILED"===t.type)this.priceListPrice.setError(t.idPriceList,t.error,!0),this.emit(E.A.DATA_CHANGE);else if("PRICELIST_ACCESSES_LOADING"===t.type)this.priceListAccesses.setLoading(t.idPriceList,!0),this.emit(E.A.DATA_CHANGE);else if("PRICELIST_ACCESSES_LOADED"===t.type)this.priceListAccesses.setData(t.idPriceList,t.data),this.emit
1(E.A.DATA_CHANGE);else if("PRICELIST_ACCESSES_LOADING_FAILED"===t.type)this.priceListAccesses.setError(t.idPriceList,t.error,!0),this.emit(E.A.DATA_CHANGE);else if("ORDERS_LIST_LOADING"===t.type)this.ordersList.setLoading(t.siteId,!0),this.emit(E.A.DATA_CHANGE);else if("ORDERS_LIST_LOADED"===t.type){this.ordersList.setData(t.siteId,t.data);for(let e in t.data.items)this.orderDetails.setData(t.data.items[e].order.idOrder,t.data.items[e]);this.emit(E.A.DATA_CHANGE)}else if("ORDERS_LIST_LOADING_FAILED"===t.type)this.ordersList.setError(t.siteId,t.error,!0),this.emit(E.A.DATA_CHANGE);else if("REQUESTS_LIST_LOADING"===t.type)this.requestsList.setLoading(t.id),this.emit(E.A.DATA_CHANGE);else if("REQUESTS_LIST_LOADED"===t.type)this.requestsList.setData(t.id,t.data),this.emit(E.A.DATA_CHANGE);else if("REQUESTS_LIST_LOADING_FAILED"===t.type)this.requestsList.setError(t.id,t.error),this.emit(E.A.DATA_CHANGE);else if("LOGS_LIST_LOADING"===t.type)this.logsList.setLoading(t.id),this.emit(E.A.DATA_CHANGE);else if("LOGS_LIST_LOADED"===t.type)this.logsList.setData(t.id,t.data),this.emit(E.A.DATA_CHANGE);else if("LOGS_LIST_LOADING_FAILED"===t.type)this.logsList.setError(t.id,t.error),this.emit(E.A.DATA_CHANGE);else if("SUBSCRIPTIONS_LIST_LOADING"===t.type)this.subscriptionsList.setLoading(t.siteId,!0),this.emit(E.A.DATA_CHANGE);else if("SUBSCRIPTIONS_LIST_LOADED"===t.type){this.subscriptionsList.setData(t.siteId,t.data);for(let e in t.data.items)this.subscriptionDetails.setData(t.data.items[e].order.idOrder,t.data.items[e]);this.emit(E.A.DATA_CHANGE)}else if("SUBSCRIPTIONS_LIST_LOADING_FAILED"===t.type)this.subscriptionsList.setError(t.siteId,t.error,!0),this.emit(E.A.DATA_CHANGE);else if("MYORDERS_LIST_LOADING"===t.type)this.myOrdersList.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE);else if("MYORDERS_LIST_LOADED"===t.type){this.myOrdersList.setData(this.rootId,t.data);for(let e in t.data.items)this.orderDetails.setData(t.data.items[e].order.idOrder,t.data.items[e]);this.emit(E.A.DATA_CHANGE)}else if("MYORDERS_LIST_LOADING_FAILED"===t.type)this.myOrdersList.setError(this.rootId,t.error),this.emit(E.A.DATA_CHANGE);else if("MYSUBSCRIPTIONS_LIST_LOADING"===t.type)this.mySubscriptionsList.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE);else if("MYSUBSCRIPTIONS_LIST_LOADED"===t.type){this.mySubscriptionsList.setData(this.rootId,t.data);for(let e in t.data.items)this.subscriptionDetails.setData(t.data.items[e].order.idOrder,t.data.items[e]);this.emit(E.A.DATA_CHANGE)}else"MYSUBSCRIPTIONS_LIST_LOADING_FAILED"===t.type?(this.mySubscriptionsList.setError(this.rootId,t.error),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_CHOICES_LOADING"===t.type?(this.marketPlaceChoices.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_CHOICES_LOADED"===t.type?(this.marketPlaceChoices.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_CHOICES_LOADING_FAILED"===t.type?(this.marketPlaceChoices.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_SV_CHOICES_LOADING"===t.type?(this.marketPlaceSVChoices.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_SV_CHOICES_LOADED"===t.type?(this.marketPlaceSVChoices.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"SC_MARKETPLACE_SV_CHOICES_LOADING_FAILED"===t.type?(this.marketPlaceSVChoices.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE)):"SC_MP_LIST_LOADING"===t.type?(this.detailledActiveCartItemsList.setLoading(t.userId,!0),this.marketPlaceOffers.setLoading(t.id,!0),this.emit(E.A.DATA_CHANGE)):"SC_MP_LIST_LOADED"===t.type?(this.detailledActiveCartItemsList.setData(t.userId,t.data.info.activeCartItems),this.marketPlaceOffers.setData(t.id,t.data),this.emit(E.A.DATA_CHANGE)):"SC_MP_LIST_LOADING_FAILED"===t.type?(this.detailledActiveCartItemsList.setError(t.userId,t.error,!0),this.marketPlaceOffers.setError(t.id,t.error,!0),this.emit(E.A.DATA_CHANGE)):"ACTIVE_CART_LOADING"===t.type?(this.activeCartItemsList.setLoading(t.userId,!0),this.emit(E.A.DATA_CHANGE)):"ACTIVE_CART_LOADED"===t.type?(this.activeCartItemsList.setData(t.userId,t.data),this.emit
1(E.A.DATA_CHANGE)):"ACTIVE_CART_LOADING_FAILED"===t.type?(this.activeCartItemsList.setError(t.userId,t.error),this.emit(E.A.DATA_CHANGE)):"DETAILLED_ACTIVE_CART_LOADING"===t.type?(this.detailledActiveCartItemsList.setLoading(t.userId,!0),this.emit(E.A.DATA_CHANGE)):"DETAILLED_ACTIVE_CART_LOADED"===t.type?(this.detailledActiveCartItemsList.setData(t.userId,t.data),this.emit(E.A.DATA_CHANGE)):"DETAILLED_ACTIVE_CART_LOADING_FAILED"===t.type?(this.detailledActiveCartItemsList.setError(t.userId,t.error,!0),this.emit(E.A.DATA_CHANGE)):"SC_CARTS_MANAGEMENT_CHOICES_LOADING"===t.type?(this.cartsManagementChoices.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"SC_CARTS_MANAGEMENT_CHOICES_LOADED"===t.type?(this.cartsManagementChoices.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"SC_CARTS_MANAGEMENT_CHOICES_LOADING_FAILED"===t.type?(this.cartsManagementChoices.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE)):"SC_IMPORT_INFO_LOADING"===t.type?(this.importStatusInfo.setLoading(this.rootId),this.emit(E.A.DATA_CHANGE)):"SC_IMPORT_INFO_LOADED"===t.type?(this.importStatusInfo.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"SC_IMPORT_INFO_LOADING_FAILED"===t.type?(this.importStatusInfo.setError(this.rootId,t.error),this.emit(E.A.DATA_CHANGE)):"AGREEMENTS_LIST_LOADING"===t.type?(this.agreementsList.setLoading(this.rootId,!0),this.emit(E.A.DATA_CHANGE)):"AGREEMENTS_LIST_LOADED"===t.type?(this.agreementsList.setData(this.rootId,t.data),this.emit(E.A.DATA_CHANGE)):"AGREEMENTS_LIST_LOADING_FAILED"===t.type&&(this.agreementsList.setError(this.rootId,t.error,!0),this.emit(E.A.DATA_CHANGE))}}const A=new o;r.A.register(A.act.bind(A));const T=A},64082(t,e,i){i.d(e,{A:()=>r});var s=i(81160);class r{constructor(){this.e={}}clear(){this.e={}}_o(t){return t in this.e||(this.e[t]={loading:0,data:null,error:null,isOpen:!1}),this.e[t]}loading(t){return this._o(t).loading}data(t){return this._o(t).data}error(t){return this._o(t).error}isOpen(t){return this._o(t).isOpen}setLoading(t,e){let i=e?this._o(t).data:null;Object.assign(this._o(t),{loading:s.A.DATA_LOADING,error:null,data:i})}setCreated(t,e){let i=e?this._o(t).data:null;Object.assign(this._o(t),{loading:s.A.DATA_CREATED,error:null,data:i})}setUpdating(t,e){let i=e?this._o(t).data:null;Object.assign(this._o(t),{loading:s.A.DATA_UPDATING,error:null,data:i})}setUpdated(t,e){Object.assign(this._o(t),{loading:s.A.DATA_UPDATED,error:null,data:e})}setRemoving(t,e){let i=e?this._o(t).data:null;Object.assign(this._o(t),{loading:s.A.DATA_REMOVING,error:null,data:i})}setRemoved(t,e){Object.assign(this._o(t),{loading:s.A.DATA_REMOVED,error:null,data:e})}setData(t,e){Object.assign(this._o(t),{loading:s.A.DATA_LOADED,error:null,data:e})}setError(t,e,i){let r=i?this._o(t).data:null;Object.assign(this._o(t),{loading:s.A.DATA_FAILED,error:e,data:r})}setActionError(t,e){let i=this.data(t);Object.assign(this._o(t),{loading:s.A.DATA_ACTION_FAILED,error:e,data:i})}setOpen(t,e){this._o(t).isOpen=!!e}itemsMap(t,e){this.data(t).items&&this.data(t).items.forEach(t=>{e(t)})}}}}]); 2//# sourceMappingURL=4516.f9dfdeaa.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.