-window.vtex or= {}
-vtex.portalPlugins or= {}
-
 # Alias jQuery internally
 $ = window.jQuery
 

#
$.fn.skuSelector.defaults =
	addSkuToCartPreventDefault: true
	buyButtonSelector: ''
	warnUnavailable: false
	selectOnOpening: false
	selectors:
		listPriceValue: (context) -> $('.skuselector-list-price .value', context).add('.skuListPrice')
		bestPriceValue: (context) -> $('.skuselector-best-price .value', context).add('.skuBestPrice')
		installment: (context) -> $('.skuselector-installment', context)
		buyButton: (context) -> $('.skuselector-buy-btn', context)
		price: (context) -> $('.skuselector-price', context)
		warning: (context) -> $('.skuselector-warning', context)
		warnUnavailable: (context) -> $('.skuselector-warn-unavailable', context)
		itemDimensionListItem: (dimensionName, context) -> $(".item-dimension-#{sanitize(dimensionName)}", context)
		itemDimensionInput: (dimensionName, context) -> $(".item-dimension-#{sanitize(dimensionName)} input", context)
		itemDimensionLabel: (dimensionName, context) -> $(".item-dimension-#{sanitize(dimensionName)} label", context)

#
# EXPORTS
#
window.vtex or= {}
vtex.portalPlugins or= {}
vtex.portalPlugins.SkuSelector = SkuSelector