{I" class:ETI"ProcessedAsset;FI"logical_path;TI"4sprangular/directives/shippingRatesSelection.js;FI" pathname;TI"u/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee;FI"content_type;TI"application/javascript;TI" mtime;Tl+Gå%UI" length;TiUI" digest;TI"%bf2dc35d94e414bee5b494689e02ee0d;FI" source;TI"U(function() { Sprangular.directive('shippingRateSelection', function() { return { restrict: 'E', templateUrl: 'shipping/rates.html', scope: { order: '=', disabled: '=' }, controller: function($scope, Checkout, Env, _) { $scope.loading = false; $scope.address = {}; $scope.currencySymbol = Env.currency.symbol; $scope.$watch('order.shippingRate', function(rate, oldRate) { var order; if (!oldRate || !rate || (rate.shippingMethodId === oldRate.shippingMethodId && rate.cost === oldRate.cost)) { return; } order = $scope.order; order.shipTotal = rate.cost; order.updateTotals(); return Checkout.setDelivery(); }); return $scope.$watch('order.shippingAddress', function() { return $scope.address = $scope.order.shippingAddress; }, true); }, link: function(element, attrs) { if (attrs.disabled == null) { return attrs.disabled = false; } } }; }); }).call(this); ;TI"dependency_digest;TI"%d53461470c54a1e8a28cdf8a236607a7;FI"required_paths;T[I"u/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee;FI"dependency_paths;T[{I" path;TI"u/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/directives/shippingRatesSelection.coffee;FI" mtime;TI"2015-04-08T22:34:47-04:00;TI" digest;TI"%69ac7e2bd390c84aa1e092007387d4ed;FI" _version;TI"%64e62ddc273c2f5847f30d698ca14b67;F