function Runtime_AttributeAndOptionList_Load_Product(t,e){return AJAX_Call(e,"runtime","Runtime_AttributeAndOptionList_Load_Product","Product_Code="+encodeURIComponent(t))}function Runtime_AttributeList_Load_ProductVariant_Possible(t,e,i,n,_,r,u,s,o,d,a,l){return AJAX_Call(l,"runtime","Runtime_AttributeList_Load_ProductVariant_Possible","Product_Code="+encodeURIComponent(t)+"&Dependency_Resolution="+encodeURIComponent(e)+"&Last_Selected_Attribute_ID="+encodeURIComponent(i)+"&Last_Selected_AttributeTemplateAttribute_ID="+encodeURIComponent(n)+"&Last_Selected_Option_ID="+encodeURIComponent(_)+"&Selected_Attribute_IDs="+EncodeArray(r)+"&Selected_AttributeTemplateAttribute_IDs="+EncodeArray(u)+"&Selected_Option_IDs="+EncodeArray(s)+"&Selected_Attribute_Types="+EncodeArray(o)+"&Unselected_Attribute_IDs="+EncodeArray(d)+"&Unselected_AttributeTemplateAttribute_IDs="+EncodeArray(a))}function Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(t,e,i,n,_,r,u,s,o,d,a,l){var m=new Object;return m.product_code=t,m.dependency_resolution=e,m.predictdiscounts=0,m.last_selected_attr_id=i,m.last_selected_attmpat_id=n,m.last_selected_option_id=_,m.selected_term_id=0,m.selected_attr_ids=r,m.selected_attmpat_ids=u,m.selected_option_ids=s,m.selected_attr_types=o,m.unselected_attr_ids=d,m.unselected_attmpat_ids=a,v96_Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(m,l)}function v96_Runtime_AttributeList_Load_ProductVariant_Possible_PredictDiscounts(t,e){return AJAX_Call(e,"runtime","Runtime_AttributeList_Load_ProductVariant_Possible","Product_Code="+encodeURIComponent(t.product_code)+"&Dependency_Resolution="+encodeURIComponent(t.dependency_resolution)+"&Predict_Discounts="+(t.predictdiscounts?"1":"0")+"&Calculate_Sale_Price="+(t.calculate_sale_price?"1":"0")+"&Last_Selected_Attribute_ID="+encodeURIComponent(t.last_selected_attr_id)+"&Last_Selected_AttributeTemplateAttribute_ID="+encodeURIComponent(t.last_selected_attmpat_id)+"&Last_Selected_Option_ID="+encodeURIComponent(t.last_selected_option_id)+"&Selected_Term_ID="+encodeURIComponent(t.selected_term_id)+"&Selected_Attribute_IDs="+EncodeArray(t.selected_attr_ids)+"&Selected_AttributeTemplateAttribute_IDs="+EncodeArray(t.selected_attmpat_ids)+"&Selected_Option_IDs="+EncodeArray(t.selected_option_ids)+"&Selected_Attribute_Types="+EncodeArray(t.selected_attr_types)+"&Unselected_Attribute_IDs="+EncodeArray(t.unselected_attr_ids)+"&Unselected_AttributeTemplateAttribute_IDs="+EncodeArray(t.unselected_attmpat_ids))}function Runtime_ProductVariant_Load_Attributes(t,e,i,n,_){return AJAX_Call(_,"runtime","Runtime_ProductVariant_Load_Attributes","Product_Code="+encodeURIComponent(t)+"&Attribute_IDs="+EncodeArray(e)+"&AttributeTemplateAttribute_IDs="+EncodeArray(i)+"&Option_IDs="+EncodeArray(n))}function Runtime_ProductImageList_Load_Product_Variant(t,e,i,n){return AJAX_Call(n,"runtime","Runtime_ProductImageList_Load_Product_Variant","Product_Code="+encodeURIComponent(t)+"&Variant_ID="+encodeURIComponent(e)+"&Image_Sizes="+EncodeArray(i))}function Runtime_BasketItem_Insert(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItem_Insert",{Product_ID:t.product_id??void 0,Product_Code:t.product_code??void 0,Quantity:t.quantity,Subscription_Term_ID:t.subterm_id,Attributes:t.attributes},i)}function Runtime_BasketItemList_Insert(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItemList_Insert",{Products:t},i)}function Runtime_BasketItem_Update(t,e,i,n){return AJAX_Call_JSON(i,"runtime","Runtime_BasketItem_Update",{Line_ID:t,Quantity:e.quantity,Subscription_Term_ID:e.subterm_id,Attributes:e.attributes},n)}function Runtime_BasketGroup_Update(t,e,i,n){return AJAX_Call_JSON(i,"runtime","Runtime_BasketItem_Update",{Group_ID:t,Quantity:e.quantity,Subscription_Term_ID:e.subterm_id,Attributes:e.attributes},n)}function Runtime_BasketItem_Delete(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItem_Delete",{Line_ID:t},i)}function Runtime_BasketGroup_Delete(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItem_Delete",{Group_ID:t},i)}function Runtime_Customer_Login(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_Customer_Login",{Customer_LoginEmail:t.email,Customer_Login:t.login,Customer_Password:t.password},i)}function Runtime_WishList_Insert(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_WishList_Insert",{WishList_Title:t.title,WishList_Notes:t.notes,WishList_Shared:t.shared},i)}function Runtime_WishListItemList_Insert(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_WishListItemList_Insert",{WishList_ID:t.wishlist_id,Products:t.products},i)}function Runtime_WishListItem_Delete(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_WishListItem_Delete",{Wish_ID:t},i)}function Runtime_BasketItemList_MoveToWishlist(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_BasketItemList_MoveToWishlist",{WishList_ID:t.wishlist_id,MoveAll:t.moveall,Line_IDs:t.line_ids,Group_IDs:t.group_ids},i)}function Runtime_WishListList_Load_Query(t,e,i,n,_,r){return AJAX_Call_JSON(_,"runtime","Runtime_WishListList_Load_Query",{Filter:t,Sort:e,Offset:i,Count:n},r)}function Runtime_WishListItemList_Load_Query(t,e,i,n,_,r,u){return AJAX_Call_JSON(r,"runtime","Runtime_WishListItemList_Load_Query",{WishList_ID:t,Filter:e,Sort:i,Offset:n,Count:_},u)}function Runtime_ShippingMethodList_Load(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_ShippingMethodList_Load",null,e)}function Runtime_PaymentMethodList_Load(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_PaymentMethodList_Load",null,e)}function Runtime_CalculateCharges(t,e,i,n){return AJAX_Call_JSON(i,"runtime","Runtime_CalculateCharges",{ShippingMethod:t,PaymentMethod:e},n)}function Runtime_ValidateAddress(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_ValidateAddress",{Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl},i)}function Runtime_InitiateCheckout(t,e){return AJAX_Call_JSON(t,"runtime","Runtime_InitiateCheckout",null,e)}function Runtime_UpdateShipping(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_UpdateShipping",{FirstName:t.fname,LastName:t.lname,Email:t.email,Phone:t.phone,Fax:t.fax,Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl,Update_Customer:t.update_customer},i)}function Runtime_UpdateBilling(t,e,i){return AJAX_Call_JSON(e,"runtime","Runtime_UpdateBilling",{FirstName:t.fname,LastName:t.lname,Email:t.email,Phone:t.phone,Fax:t.fax,Company:t.comp,Address1:t.addr1,Address2:t.addr2,City:t.city,State:t.state,Zip:t.zip,Country:t.country,Residential:t.resdntl,Update_Customer:t.update_customer},i)}